From bfd2840f47efbdda7e7dbf41a7f2360d236436d4 Mon Sep 17 00:00:00 2001 From: Alex Kupryienka Date: Wed, 11 Mar 2026 15:55:45 -0400 Subject: [PATCH] Update API to 7.9.0 baseline --- README.md | 93 +- docs/Activity.md | 2 +- docs/ActivityRequest.md | 4 +- docs/AgentApp.md | 2 + docs/AllowedDomainsResponse.md | 9 + docs/AssessmentHistory.md | 13 + docs/AssessmentHistoryLineItem.md | 11 + docs/AttachInterfaceRequest.md | 10 + docs/ClusterConfigurationPayload.md | 10 + docs/ClusterSnapshot.md | 9 + docs/ConfigResponse.md | 2 + docs/CoordinatorConfig.md | 9 + docs/CorelliumApi.md | 3139 ++++++++++++++--- docs/CreateInterconnectRequest.md | 24 + docs/DetachInterfaceRequest.md | 9 + docs/Device.md | 17 + docs/ExtendedFirmwareAssetInfo.md | 10 + docs/FirmwareAsset.md | 18 + docs/FirmwareServiceConfiguration.md | 13 + docs/GetInterconnectsResponse.md | 13 + docs/GetStorageResponse.md | 13 + docs/InstallFirmwareAssetsRequest.md | 9 + docs/InstallFirmwareAssetsResponse.md | 9 + docs/InstallFirmwareRequest.md | 10 + docs/InstallFirmwareResponse.md | 10 + docs/Instance.md | 2 +- docs/InstanceBootOptions.md | 1 + docs/InstanceBootOptionsKernel.md | 9 + docs/InstanceCreateOptions.md | 5 +- docs/InstanceInterface.md | 10 + docs/InterconnectResponse.md | 28 + docs/MediaStore.md | 19 + docs/NodeInformation.md | 13 + docs/NodeUpdatesFailed.md | 10 + docs/PartialUpdateInterconnectRequest.md | 10 + docs/PatchInstanceReadOnly.md | 9 + docs/ResetLinkInfoReturn.md | 11 + docs/RestoreBackupData.md | 9 + docs/SnapshotList.md | 12 + docs/SnapshotRequest.md | 19 + docs/Token.md | 3 +- docs/UpdateInterconnectRequest.md | 10 + docs/UpdateTrialRequestParams.md | 10 + docs/User.md | 1 + docs/UserCreate.md | 14 + docs/UserCreateReturn.md | 9 + docs/UserUpdate.md | 10 + docs/V1UpdateHookParameters.md | 24 + docs/VolumeOptions.md | 5 +- package.json | 2 +- src/ApiClient.js | 6 +- src/api/CorelliumApi.js | 2513 +++++++++++-- src/index.js | 270 +- src/model/Activity.js | 6 +- src/model/ActivityExportDto.js | 4 +- src/model/ActivityExportResponse.js | 4 +- src/model/ActivityList.js | 4 +- src/model/ActivityRequest.js | 8 +- src/model/Address.js | 4 +- src/model/AgentApp.js | 30 +- src/model/AgentAppReadyResponse.js | 4 +- src/model/AgentAppStatus.js | 4 +- src/model/AgentAppsList.js | 4 +- src/model/AgentAppsStatusList.js | 4 +- src/model/AgentError.js | 4 +- src/model/AgentIcons.js | 4 +- src/model/AgentInstallBody.js | 4 +- src/model/AgentProfilesReturn.js | 4 +- src/model/AgentSystemAdbAuth.js | 4 +- src/model/AgentSystemGetPropBody.js | 4 +- src/model/AgentSystemSetHostnameBody.js | 4 +- src/model/AgentValueReturn.js | 4 +- src/model/AgreedAck.js | 4 +- src/model/AllowedDomainsResponse.js | 89 + src/model/ApiConflictError.js | 4 +- src/model/ApiError.js | 4 +- src/model/ApiInternalConsistencyError.js | 4 +- src/model/ApiNotFoundError.js | 4 +- src/model/ApiToken.js | 4 +- src/model/Assessment.js | 4 +- src/model/AssessmentHistory.js | 148 + src/model/AssessmentHistoryLineItem.js | 115 + src/model/AssessmentIdStatus.js | 4 +- src/model/AttachInterfaceRequest.js | 112 + src/model/AuthProvider.js | 4 +- src/model/Bit.js | 2 +- src/model/BtraceEnableOptions.js | 4 +- src/model/Button.js | 2 +- src/model/CheckSubdomainResponse.js | 4 +- src/model/ClusterConfigurationPayload.js | 98 + src/model/ClusterSnapshot.js | 89 + src/model/ConfigResponse.js | 30 +- src/model/ConfigResponseMaintenance.js | 4 +- src/model/CoordinatorConfig.js | 85 + src/model/CouponOptions.js | 4 +- src/model/CreateAssessmentDto.js | 4 +- src/model/CreateInterconnectRequest.js | 162 + src/model/CreateNetworkConnectionOptions.js | 4 +- src/model/CreateTeam.js | 4 +- src/model/CreatedBy.js | 4 +- src/model/Credentials.js | 4 +- src/model/DetachInterfaceRequest.js | 97 + src/model/Device.js | 205 ++ src/model/DomainAuthProviderRequest.js | 4 +- src/model/DomainAuthProviderResponse.js | 4 +- src/model/DomainOptions.js | 4 +- src/model/ExtendedFirmwareAssetInfo.js | 112 + src/model/Extension.js | 4 +- src/model/Features.js | 4 +- src/model/FileChanges.js | 4 +- src/model/Firmware.js | 4 +- src/model/FirmwareAsset.js | 216 ++ src/model/FirmwareServiceConfiguration.js | 121 + .../GetAssessmentsByInstanceId500Response.js | 4 +- src/model/GetInterconnectsResponse.js | 132 + src/model/GetStorageResponse.js | 132 + src/model/GpioStateDefinition.js | 4 +- src/model/GpiosState.js | 4 +- src/model/GrantTrialRequestResponse.js | 4 +- src/model/Hook.js | 4 +- src/model/Image.js | 4 +- src/model/InputResponse.js | 4 +- src/model/InstallFirmwareAssetsRequest.js | 97 + src/model/InstallFirmwareAssetsResponse.js | 89 + src/model/InstallFirmwareRequest.js | 112 + src/model/InstallFirmwareResponse.js | 102 + src/model/Instance.js | 6 +- src/model/InstanceAgentState.js | 4 +- src/model/InstanceBootOptions.js | 17 +- src/model/InstanceBootOptionsAdditionalTag.js | 2 +- src/model/InstanceBootOptionsKernel.js | 89 + src/model/InstanceConsoleEndpoint.js | 4 +- src/model/InstanceCreateOptions.js | 57 +- src/model/InstanceInput.js | 4 +- src/model/InstanceInterface.js | 102 + src/model/InstanceNetdumpState.js | 4 +- src/model/InstanceNetmonState.js | 4 +- src/model/InstanceReturn.js | 4 +- src/model/InstanceServices.js | 4 +- src/model/InstanceStartOptions.js | 4 +- src/model/InstanceState.js | 2 +- src/model/InstanceStopOptions.js | 4 +- src/model/InstanceUpgradeBody.js | 4 +- src/model/InterconnectResponse.js | 221 ++ src/model/Invitation.js | 4 +- src/model/InviteRevokeParams.js | 4 +- src/model/InviteRevokeParamsIds.js | 4 +- src/model/Kcrange.js | 4 +- src/model/KernelTask.js | 4 +- src/model/KernelThread.js | 4 +- src/model/Logging.js | 4 +- src/model/Maintenance.js | 4 +- src/model/MediaPlayBody.js | 4 +- src/model/MediaStore.js | 219 ++ src/model/MeteredSubscriptionUsage.js | 4 +- src/model/Model.js | 4 +- src/model/ModelSoftware.js | 4 +- src/model/NetdumpFilter.js | 4 +- src/model/NetworkConnection.js | 4 +- ...NetworkConnectionOffsetPaginationResult.js | 4 +- src/model/NetworkConnectionProvider.js | 4 +- ...onnectionProviderOffsetPaginationResult.js | 4 +- src/model/NetworkStatusResponse.js | 4 +- src/model/NodeInformation.js | 151 + src/model/NodeUpdatesFailed.js | 109 + src/model/OpenIDConfig.js | 4 +- src/model/Pagination.js | 4 +- src/model/PartialUpdateInterconnectRequest.js | 102 + src/model/PasswordChangeBody.js | 4 +- src/model/PasswordResetBody.js | 4 +- src/model/PatchInstanceOptions.js | 4 +- src/model/PatchInstanceReadOnly.js | 89 + src/model/PeripheralsData.js | 4 +- src/model/Plan.js | 4 +- src/model/PostShareSnapshotRequestPayload.js | 4 +- src/model/Project.js | 4 +- src/model/ProjectKey.js | 4 +- src/model/ProjectNetworkState.js | 4 +- src/model/ProjectQuota.js | 4 +- src/model/ProjectSettings.js | 4 +- src/model/ProjectUsage.js | 4 +- src/model/ProxyConfig.js | 4 +- src/model/ResetLinkBody.js | 4 +- src/model/ResetLinkInfoReturn.js | 115 + src/model/RestoreBackupData.js | 89 + src/model/Role.js | 4 +- src/model/RotateBody.js | 4 +- src/model/SharedSnapshotsInfo.js | 4 +- src/model/Snapshot.js | 4 +- src/model/SnapshotCreationOptions.js | 4 +- src/model/SnapshotList.js | 123 + src/model/SnapshotMember.js | 4 +- src/model/SnapshotOwner.js | 4 +- .../SnapshotPermissionsRequestPayload.js | 4 +- src/model/SnapshotRequest.js | 199 ++ src/model/SnapshotSharing.js | 4 +- src/model/SnapshotSharingPermissions.js | 4 +- src/model/SnapshotStatus.js | 4 +- src/model/SslsplitFilter.js | 4 +- src/model/Team.js | 4 +- src/model/TeamCreate.js | 4 +- src/model/TestAssessmentDto.js | 4 +- src/model/TextInput.js | 4 +- src/model/Token.js | 29 +- src/model/TouchCurveInput.js | 4 +- src/model/TouchInput.js | 4 +- src/model/TouchInputButtonsInner.js | 2 +- src/model/Trial.js | 4 +- src/model/TrialExtension.js | 4 +- src/model/TrialRequestMetadata.js | 4 +- src/model/TrialRequestOptions.js | 4 +- src/model/UpdateAssessmentDto.js | 4 +- src/model/UpdateExtension.js | 4 +- src/model/UpdateInterconnectRequest.js | 102 + src/model/UpdateNetworkConnectionOptions.js | 4 +- src/model/UpdateTrialRequestParams.js | 94 + src/model/User.js | 13 +- src/model/UserCreate.js | 146 + src/model/UserCreateReturn.js | 89 + src/model/UserError.js | 4 +- src/model/UserSnapshots.js | 4 +- src/model/UserUpdate.js | 102 + .../V1CheckSubdomainExistenceParameters.js | 4 +- src/model/V1CreateHookParameters.js | 4 +- src/model/V1LoadExtensionParameters.js | 4 +- src/model/V1SetStateBody.js | 4 +- src/model/V1UpdateHookParameters.js | 158 + src/model/ValidationError.js | 4 +- src/model/VolumeOptions.js | 41 +- src/model/VpnDefinition.js | 4 +- src/model/WebPlayerCreateSessionRequest.js | 4 +- src/model/WebPlayerSession.js | 4 +- test/api/CorelliumApi.spec.js | 372 +- test/model/Activity.spec.js | 2 +- test/model/ActivityExportDto.spec.js | 2 +- test/model/ActivityExportResponse.spec.js | 2 +- test/model/ActivityList.spec.js | 2 +- test/model/ActivityRequest.spec.js | 2 +- test/model/Address.spec.js | 2 +- test/model/AgentApp.spec.js | 14 +- test/model/AgentAppReadyResponse.spec.js | 2 +- test/model/AgentAppStatus.spec.js | 2 +- test/model/AgentAppsList.spec.js | 2 +- test/model/AgentAppsStatusList.spec.js | 2 +- test/model/AgentError.spec.js | 2 +- test/model/AgentIcons.spec.js | 2 +- test/model/AgentInstallBody.spec.js | 2 +- test/model/AgentProfilesReturn.spec.js | 2 +- test/model/AgentSystemAdbAuth.spec.js | 2 +- test/model/AgentSystemGetPropBody.spec.js | 2 +- test/model/AgentSystemSetHostnameBody.spec.js | 2 +- test/model/AgentValueReturn.spec.js | 2 +- test/model/AgreedAck.spec.js | 2 +- test/model/AllowedDomainsResponse.spec.js | 65 + test/model/ApiConflictError.spec.js | 2 +- test/model/ApiError.spec.js | 2 +- .../model/ApiInternalConsistencyError.spec.js | 2 +- test/model/ApiNotFoundError.spec.js | 2 +- test/model/ApiToken.spec.js | 2 +- test/model/Assessment.spec.js | 2 +- test/model/AssessmentHistory.spec.js | 89 + test/model/AssessmentHistoryLineItem.spec.js | 77 + test/model/AssessmentIdStatus.spec.js | 2 +- test/model/AttachInterfaceRequest.spec.js | 71 + test/model/AuthProvider.spec.js | 2 +- test/model/Bit.spec.js | 2 +- test/model/BtraceEnableOptions.spec.js | 2 +- test/model/Button.spec.js | 2 +- test/model/CheckSubdomainResponse.spec.js | 2 +- .../model/ClusterConfigurationPayload.spec.js | 71 + test/model/ClusterSnapshot.spec.js | 65 + test/model/ConfigResponse.spec.js | 14 +- test/model/ConfigResponseMaintenance.spec.js | 2 +- test/model/CoordinatorConfig.spec.js | 65 + test/model/CouponOptions.spec.js | 2 +- test/model/CreateAssessmentDto.spec.js | 2 +- test/model/CreateInterconnectRequest.spec.js | 89 + .../CreateNetworkConnectionOptions.spec.js | 2 +- test/model/CreateTeam.spec.js | 2 +- test/model/CreatedBy.spec.js | 2 +- test/model/Credentials.spec.js | 2 +- test/model/DetachInterfaceRequest.spec.js | 65 + test/model/Device.spec.js | 113 + test/model/DomainAuthProviderRequest.spec.js | 2 +- test/model/DomainAuthProviderResponse.spec.js | 2 +- test/model/DomainOptions.spec.js | 2 +- test/model/ExtendedFirmwareAssetInfo.spec.js | 71 + test/model/Extension.spec.js | 2 +- test/model/Features.spec.js | 2 +- test/model/FileChanges.spec.js | 2 +- test/model/Firmware.spec.js | 2 +- test/model/FirmwareAsset.spec.js | 119 + .../FirmwareServiceConfiguration.spec.js | 89 + ...AssessmentsByInstanceId500Response.spec.js | 2 +- test/model/GetInterconnectsResponse.spec.js | 89 + test/model/GetStorageResponse.spec.js | 89 + test/model/GpioStateDefinition.spec.js | 2 +- test/model/GpiosState.spec.js | 2 +- test/model/GrantTrialRequestResponse.spec.js | 2 +- test/model/Hook.spec.js | 2 +- test/model/Image.spec.js | 2 +- test/model/InputResponse.spec.js | 2 +- .../InstallFirmwareAssetsRequest.spec.js | 65 + .../InstallFirmwareAssetsResponse.spec.js | 65 + test/model/InstallFirmwareRequest.spec.js | 71 + test/model/InstallFirmwareResponse.spec.js | 71 + test/model/Instance.spec.js | 2 +- test/model/InstanceAgentState.spec.js | 2 +- test/model/InstanceBootOptions.spec.js | 8 +- .../InstanceBootOptionsAdditionalTag.spec.js | 2 +- test/model/InstanceBootOptionsKernel.spec.js | 65 + test/model/InstanceConsoleEndpoint.spec.js | 2 +- test/model/InstanceCreateOptions.spec.js | 24 +- test/model/InstanceInput.spec.js | 2 +- test/model/InstanceInterface.spec.js | 71 + test/model/InstanceNetdumpState.spec.js | 2 +- test/model/InstanceNetmonState.spec.js | 2 +- test/model/InstanceReturn.spec.js | 2 +- test/model/InstanceServices.spec.js | 2 +- test/model/InstanceStartOptions.spec.js | 2 +- test/model/InstanceState.spec.js | 2 +- test/model/InstanceStopOptions.spec.js | 2 +- test/model/InstanceUpgradeBody.spec.js | 2 +- test/model/InterconnectResponse.spec.js | 113 + test/model/Invitation.spec.js | 2 +- test/model/InviteRevokeParams.spec.js | 2 +- test/model/InviteRevokeParamsIds.spec.js | 2 +- test/model/Kcrange.spec.js | 2 +- test/model/KernelTask.spec.js | 2 +- test/model/KernelThread.spec.js | 2 +- test/model/Logging.spec.js | 2 +- test/model/Maintenance.spec.js | 2 +- test/model/MediaPlayBody.spec.js | 2 +- test/model/MediaStore.spec.js | 125 + test/model/MeteredSubscriptionUsage.spec.js | 2 +- test/model/Model.spec.js | 2 +- test/model/ModelSoftware.spec.js | 2 +- test/model/NetdumpFilter.spec.js | 2 +- test/model/NetworkConnection.spec.js | 2 +- ...rkConnectionOffsetPaginationResult.spec.js | 2 +- test/model/NetworkConnectionProvider.spec.js | 2 +- ...tionProviderOffsetPaginationResult.spec.js | 2 +- test/model/NetworkStatusResponse.spec.js | 2 +- test/model/NodeInformation.spec.js | 89 + test/model/NodeUpdatesFailed.spec.js | 71 + test/model/OpenIDConfig.spec.js | 2 +- test/model/Pagination.spec.js | 2 +- .../PartialUpdateInterconnectRequest.spec.js | 71 + test/model/PasswordChangeBody.spec.js | 2 +- test/model/PasswordResetBody.spec.js | 2 +- test/model/PatchInstanceOptions.spec.js | 2 +- test/model/PatchInstanceReadOnly.spec.js | 65 + test/model/PeripheralsData.spec.js | 2 +- test/model/Plan.spec.js | 2 +- .../PostShareSnapshotRequestPayload.spec.js | 2 +- test/model/Project.spec.js | 2 +- test/model/ProjectKey.spec.js | 2 +- test/model/ProjectNetworkState.spec.js | 2 +- test/model/ProjectQuota.spec.js | 2 +- test/model/ProjectSettings.spec.js | 2 +- test/model/ProjectUsage.spec.js | 2 +- test/model/ProxyConfig.spec.js | 2 +- test/model/ResetLinkBody.spec.js | 2 +- test/model/ResetLinkInfoReturn.spec.js | 77 + test/model/RestoreBackupData.spec.js | 65 + test/model/Role.spec.js | 2 +- test/model/RotateBody.spec.js | 2 +- test/model/SharedSnapshotsInfo.spec.js | 2 +- test/model/Snapshot.spec.js | 2 +- test/model/SnapshotCreationOptions.spec.js | 2 +- test/model/SnapshotList.spec.js | 83 + test/model/SnapshotMember.spec.js | 2 +- test/model/SnapshotOwner.spec.js | 2 +- .../SnapshotPermissionsRequestPayload.spec.js | 2 +- test/model/SnapshotRequest.spec.js | 125 + test/model/SnapshotSharing.spec.js | 2 +- test/model/SnapshotSharingPermissions.spec.js | 2 +- test/model/SnapshotStatus.spec.js | 2 +- test/model/SslsplitFilter.spec.js | 2 +- test/model/Team.spec.js | 2 +- test/model/TeamCreate.spec.js | 2 +- test/model/TestAssessmentDto.spec.js | 2 +- test/model/TextInput.spec.js | 2 +- test/model/Token.spec.js | 8 +- test/model/TouchCurveInput.spec.js | 2 +- test/model/TouchInput.spec.js | 2 +- test/model/TouchInputButtonsInner.spec.js | 2 +- test/model/Trial.spec.js | 2 +- test/model/TrialExtension.spec.js | 2 +- test/model/TrialRequestMetadata.spec.js | 2 +- test/model/TrialRequestOptions.spec.js | 2 +- test/model/UpdateAssessmentDto.spec.js | 2 +- test/model/UpdateExtension.spec.js | 2 +- test/model/UpdateInterconnectRequest.spec.js | 71 + .../UpdateNetworkConnectionOptions.spec.js | 2 +- test/model/UpdateTrialRequestParams.spec.js | 71 + test/model/User.spec.js | 8 +- test/model/UserCreate.spec.js | 95 + test/model/UserCreateReturn.spec.js | 65 + test/model/UserError.spec.js | 2 +- test/model/UserSnapshots.spec.js | 2 +- test/model/UserUpdate.spec.js | 71 + ...1CheckSubdomainExistenceParameters.spec.js | 2 +- test/model/V1CreateHookParameters.spec.js | 2 +- test/model/V1LoadExtensionParameters.spec.js | 2 +- test/model/V1SetStateBody.spec.js | 2 +- test/model/V1UpdateHookParameters.spec.js | 89 + test/model/ValidationError.spec.js | 2 +- test/model/VolumeOptions.spec.js | 16 +- test/model/VpnDefinition.spec.js | 2 +- .../WebPlayerCreateSessionRequest.spec.js | 2 +- test/model/WebPlayerSession.spec.js | 2 +- 412 files changed, 14196 insertions(+), 1398 deletions(-) create mode 100644 docs/AllowedDomainsResponse.md create mode 100644 docs/AssessmentHistory.md create mode 100644 docs/AssessmentHistoryLineItem.md create mode 100644 docs/AttachInterfaceRequest.md create mode 100644 docs/ClusterConfigurationPayload.md create mode 100644 docs/ClusterSnapshot.md create mode 100644 docs/CoordinatorConfig.md create mode 100644 docs/CreateInterconnectRequest.md create mode 100644 docs/DetachInterfaceRequest.md create mode 100644 docs/Device.md create mode 100644 docs/ExtendedFirmwareAssetInfo.md create mode 100644 docs/FirmwareAsset.md create mode 100644 docs/FirmwareServiceConfiguration.md create mode 100644 docs/GetInterconnectsResponse.md create mode 100644 docs/GetStorageResponse.md create mode 100644 docs/InstallFirmwareAssetsRequest.md create mode 100644 docs/InstallFirmwareAssetsResponse.md create mode 100644 docs/InstallFirmwareRequest.md create mode 100644 docs/InstallFirmwareResponse.md create mode 100644 docs/InstanceBootOptionsKernel.md create mode 100644 docs/InstanceInterface.md create mode 100644 docs/InterconnectResponse.md create mode 100644 docs/MediaStore.md create mode 100644 docs/NodeInformation.md create mode 100644 docs/NodeUpdatesFailed.md create mode 100644 docs/PartialUpdateInterconnectRequest.md create mode 100644 docs/PatchInstanceReadOnly.md create mode 100644 docs/ResetLinkInfoReturn.md create mode 100644 docs/RestoreBackupData.md create mode 100644 docs/SnapshotList.md create mode 100644 docs/SnapshotRequest.md create mode 100644 docs/UpdateInterconnectRequest.md create mode 100644 docs/UpdateTrialRequestParams.md create mode 100644 docs/UserCreate.md create mode 100644 docs/UserCreateReturn.md create mode 100644 docs/UserUpdate.md create mode 100644 docs/V1UpdateHookParameters.md create mode 100644 src/model/AllowedDomainsResponse.js create mode 100644 src/model/AssessmentHistory.js create mode 100644 src/model/AssessmentHistoryLineItem.js create mode 100644 src/model/AttachInterfaceRequest.js create mode 100644 src/model/ClusterConfigurationPayload.js create mode 100644 src/model/ClusterSnapshot.js create mode 100644 src/model/CoordinatorConfig.js create mode 100644 src/model/CreateInterconnectRequest.js create mode 100644 src/model/DetachInterfaceRequest.js create mode 100644 src/model/Device.js create mode 100644 src/model/ExtendedFirmwareAssetInfo.js create mode 100644 src/model/FirmwareAsset.js create mode 100644 src/model/FirmwareServiceConfiguration.js create mode 100644 src/model/GetInterconnectsResponse.js create mode 100644 src/model/GetStorageResponse.js create mode 100644 src/model/InstallFirmwareAssetsRequest.js create mode 100644 src/model/InstallFirmwareAssetsResponse.js create mode 100644 src/model/InstallFirmwareRequest.js create mode 100644 src/model/InstallFirmwareResponse.js create mode 100644 src/model/InstanceBootOptionsKernel.js create mode 100644 src/model/InstanceInterface.js create mode 100644 src/model/InterconnectResponse.js create mode 100644 src/model/MediaStore.js create mode 100644 src/model/NodeInformation.js create mode 100644 src/model/NodeUpdatesFailed.js create mode 100644 src/model/PartialUpdateInterconnectRequest.js create mode 100644 src/model/PatchInstanceReadOnly.js create mode 100644 src/model/ResetLinkInfoReturn.js create mode 100644 src/model/RestoreBackupData.js create mode 100644 src/model/SnapshotList.js create mode 100644 src/model/SnapshotRequest.js create mode 100644 src/model/UpdateInterconnectRequest.js create mode 100644 src/model/UpdateTrialRequestParams.js create mode 100644 src/model/UserCreate.js create mode 100644 src/model/UserCreateReturn.js create mode 100644 src/model/UserUpdate.js create mode 100644 src/model/V1UpdateHookParameters.js create mode 100644 test/model/AllowedDomainsResponse.spec.js create mode 100644 test/model/AssessmentHistory.spec.js create mode 100644 test/model/AssessmentHistoryLineItem.spec.js create mode 100644 test/model/AttachInterfaceRequest.spec.js create mode 100644 test/model/ClusterConfigurationPayload.spec.js create mode 100644 test/model/ClusterSnapshot.spec.js create mode 100644 test/model/CoordinatorConfig.spec.js create mode 100644 test/model/CreateInterconnectRequest.spec.js create mode 100644 test/model/DetachInterfaceRequest.spec.js create mode 100644 test/model/Device.spec.js create mode 100644 test/model/ExtendedFirmwareAssetInfo.spec.js create mode 100644 test/model/FirmwareAsset.spec.js create mode 100644 test/model/FirmwareServiceConfiguration.spec.js create mode 100644 test/model/GetInterconnectsResponse.spec.js create mode 100644 test/model/GetStorageResponse.spec.js create mode 100644 test/model/InstallFirmwareAssetsRequest.spec.js create mode 100644 test/model/InstallFirmwareAssetsResponse.spec.js create mode 100644 test/model/InstallFirmwareRequest.spec.js create mode 100644 test/model/InstallFirmwareResponse.spec.js create mode 100644 test/model/InstanceBootOptionsKernel.spec.js create mode 100644 test/model/InstanceInterface.spec.js create mode 100644 test/model/InterconnectResponse.spec.js create mode 100644 test/model/MediaStore.spec.js create mode 100644 test/model/NodeInformation.spec.js create mode 100644 test/model/NodeUpdatesFailed.spec.js create mode 100644 test/model/PartialUpdateInterconnectRequest.spec.js create mode 100644 test/model/PatchInstanceReadOnly.spec.js create mode 100644 test/model/ResetLinkInfoReturn.spec.js create mode 100644 test/model/RestoreBackupData.spec.js create mode 100644 test/model/SnapshotList.spec.js create mode 100644 test/model/SnapshotRequest.spec.js create mode 100644 test/model/UpdateInterconnectRequest.spec.js create mode 100644 test/model/UpdateTrialRequestParams.spec.js create mode 100644 test/model/UserCreate.spec.js create mode 100644 test/model/UserCreateReturn.spec.js create mode 100644 test/model/UserUpdate.spec.js create mode 100644 test/model/V1UpdateHookParameters.spec.js diff --git a/README.md b/README.md index c986db9..953db4a 100644 --- a/README.md +++ b/README.md @@ -4,8 +4,8 @@ CorelliumClient - JavaScript client for @corellium/client-api REST API to manage your virtual devices. This SDK is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project: -- API version: 7.3.0 -- Package version: 0.4.1 +- API version: 7.9.0 +- Package version: 0.4.3 - Build package: org.openapitools.codegen.languages.JavascriptClientCodegen ## Installation @@ -106,9 +106,17 @@ var BearerAuth = defaultClient.authentications['BearerAuth']; BearerAuth.accessToken = "YOUR ACCESS TOKEN" var api = new CorelliumClient.CorelliumApi() -var instanceId = "instanceId_example"; // {String} ID of instance -var createAssessmentDto = new CorelliumClient.CreateAssessmentDto(); // {CreateAssessmentDto} Create a new assessment -api.createAssessment(instanceId, createAssessmentDto).then(function(data) { +var opts = { + 'limit': 3.4, // {Number} Maximum number of results to return (1-1000, default: 100) + 'offset': 3.4, // {Number} Number of results to skip (default: 0) + 'name': "name_example", // {String} Filter by interconnect name (case insensitive) + 'protocol': "protocol_example", // {String} Filter by protocol (comma separated) + 'type': "type_example", // {String} Filter by type (comma separated) + 'status': "status_example", // {String} Filter by status (comma separated) + 'project': "project_example", // {String} Filter by project ID (comma separated) + 'sort': "sort_example" // {String} Sort order (e.g. \"name\" for ascending, \"-name\" for descending, comma separated) +}; +api.apiV1InterconnectsGet(opts).then(function(data) { console.log('API called successfully. Returned data: ' + data); }, function(error) { console.error(error); @@ -123,6 +131,12 @@ All URIs are relative to *https://app.corellium.com/api* Class | Method | HTTP request | Description ------------ | ------------- | ------------- | ------------- +*CorelliumClient.CorelliumApi* | [**apiV1InterconnectsGet**](docs/CorelliumApi.md#apiV1InterconnectsGet) | **GET** /api/v1/interconnects | Get all I/O Interconnects +*CorelliumClient.CorelliumApi* | [**apiV1InterconnectsInterconnectIdDelete**](docs/CorelliumApi.md#apiV1InterconnectsInterconnectIdDelete) | **DELETE** /api/v1/interconnects/:interconnectId | Delete I/O Interconnect +*CorelliumClient.CorelliumApi* | [**apiV1InterconnectsInterconnectIdGet**](docs/CorelliumApi.md#apiV1InterconnectsInterconnectIdGet) | **GET** /api/v1/interconnects/:interconnectId | Get Interconnect +*CorelliumClient.CorelliumApi* | [**apiV1InterconnectsInterconnectIdPatch**](docs/CorelliumApi.md#apiV1InterconnectsInterconnectIdPatch) | **PATCH** /api/v1/interconnects/:interconnectId | Partial Update Interconnect +*CorelliumClient.CorelliumApi* | [**apiV1InterconnectsInterconnectIdPut**](docs/CorelliumApi.md#apiV1InterconnectsInterconnectIdPut) | **PUT** /api/v1/interconnects/:interconnectId | Update Interconnect +*CorelliumClient.CorelliumApi* | [**apiV1InterconnectsPost**](docs/CorelliumApi.md#apiV1InterconnectsPost) | **POST** /api/v1/interconnects | Create I/O Interconnect *CorelliumClient.CorelliumApi* | [**createAssessment**](docs/CorelliumApi.md#createAssessment) | **POST** /v1/services/matrix/{instanceId}/assessments | Create assessment *CorelliumClient.CorelliumApi* | [**deleteAssessment**](docs/CorelliumApi.md#deleteAssessment) | **DELETE** /v1/services/matrix/{instanceId}/assessments/{assessmentId} | Delete assessment *CorelliumClient.CorelliumApi* | [**downloadReport**](docs/CorelliumApi.md#downloadReport) | **GET** /v1/services/matrix/{instanceId}/assessments/{assessmentId}/download | Download report @@ -163,13 +177,31 @@ Class | Method | HTTP request | Description *CorelliumClient.CorelliumApi* | [**v1AgentUninstallApp**](docs/CorelliumApi.md#v1AgentUninstallApp) | **POST** /v1/instances/{instanceId}/agent/v1/app/apps/{bundleId}/uninstall | Uninstall an App *CorelliumClient.CorelliumApi* | [**v1AgentUninstallProfile**](docs/CorelliumApi.md#v1AgentUninstallProfile) | **DELETE** /v1/instances/{instanceId}/agent/v1/profile/profiles/{profileId} | Uninstall a Profile from VM *CorelliumClient.CorelliumApi* | [**v1AgentUploadFile**](docs/CorelliumApi.md#v1AgentUploadFile) | **PUT** /v1/instances/{instanceId}/agent/v1/file/device/{filePath} | Upload a file to VM +*CorelliumClient.CorelliumApi* | [**v1AttachInstanceInterface**](docs/CorelliumApi.md#v1AttachInstanceInterface) | **POST** /v1/instances/{instanceId}/interfaces | Attach I/O Interface *CorelliumClient.CorelliumApi* | [**v1AuthLogin**](docs/CorelliumApi.md#v1AuthLogin) | **POST** /v1/auth/login | Log In *CorelliumClient.CorelliumApi* | [**v1BtracePreauthorize**](docs/CorelliumApi.md#v1BtracePreauthorize) | **GET** /v1/instances/{instanceId}/btrace-authorize | Pre-authorize an btrace download -*CorelliumClient.CorelliumApi* | [**v1CheckSubdomainExistence**](docs/CorelliumApi.md#v1CheckSubdomainExistence) | **POST** /v1/domain/check | Check the existence of a subdomain *CorelliumClient.CorelliumApi* | [**v1ClearCoreTrace**](docs/CorelliumApi.md#v1ClearCoreTrace) | **DELETE** /v1/instances/{instanceId}/strace | Clear CoreTrace logs *CorelliumClient.CorelliumApi* | [**v1ClearHyperTrace**](docs/CorelliumApi.md#v1ClearHyperTrace) | **DELETE** /v1/instances/{instanceId}/btrace | Clear HyperTrace logs *CorelliumClient.CorelliumApi* | [**v1ClearHyperTraceHooks**](docs/CorelliumApi.md#v1ClearHyperTraceHooks) | **POST** /v1/instances/{instanceId}/hooks/clear | Clear Hooks on an instance *CorelliumClient.CorelliumApi* | [**v1ClearInstancePanics**](docs/CorelliumApi.md#v1ClearInstancePanics) | **DELETE** /v1/instances/{instanceId}/panics | Clear Panics +*CorelliumClient.CorelliumApi* | [**v1ClusterConfigGet**](docs/CorelliumApi.md#v1ClusterConfigGet) | **GET** /v1/cluster/config | Get cluster configuration +*CorelliumClient.CorelliumApi* | [**v1ClusterConfigPatch**](docs/CorelliumApi.md#v1ClusterConfigPatch) | **PATCH** /v1/cluster/config | Update cluster configuration +*CorelliumClient.CorelliumApi* | [**v1ClusterFirmwareServiceConfigGet**](docs/CorelliumApi.md#v1ClusterFirmwareServiceConfigGet) | **GET** /v1/cluster/firmware-service/config | Fetch firmware service configuration +*CorelliumClient.CorelliumApi* | [**v1ClusterFirmwareServiceConfigPatch**](docs/CorelliumApi.md#v1ClusterFirmwareServiceConfigPatch) | **PATCH** /v1/cluster/firmware-service/config | Update firmware service configuration +*CorelliumClient.CorelliumApi* | [**v1ClusterFirmwareServiceConfigPut**](docs/CorelliumApi.md#v1ClusterFirmwareServiceConfigPut) | **PUT** /v1/cluster/firmware-service/config | Set firmware service configuration +*CorelliumClient.CorelliumApi* | [**v1ClusterFirmwareServiceDevicesGet**](docs/CorelliumApi.md#v1ClusterFirmwareServiceDevicesGet) | **GET** /v1/cluster/firmware-service/devices | Fetch devices from the firmware service +*CorelliumClient.CorelliumApi* | [**v1ClusterFirmwareServiceFirmwareAssetsAssetURLDelete**](docs/CorelliumApi.md#v1ClusterFirmwareServiceFirmwareAssetsAssetURLDelete) | **DELETE** /v1/cluster/firmware-service/firmware-assets/{assetURL} | Delete a firmware asset by its URL +*CorelliumClient.CorelliumApi* | [**v1ClusterFirmwareServiceFirmwareAssetsAssetURLExtendedGet**](docs/CorelliumApi.md#v1ClusterFirmwareServiceFirmwareAssetsAssetURLExtendedGet) | **GET** /v1/cluster/firmware-service/firmware-assets/{assetURL}/extended | Fetch extended firmware-asset details including instances and associated IPSWs +*CorelliumClient.CorelliumApi* | [**v1ClusterFirmwareServiceFirmwareAssetsGet**](docs/CorelliumApi.md#v1ClusterFirmwareServiceFirmwareAssetsGet) | **GET** /v1/cluster/firmware-service/firmware-assets | Fetch firmware assets from the firmware service +*CorelliumClient.CorelliumApi* | [**v1ClusterFirmwareServiceFirmwareAssetsPost**](docs/CorelliumApi.md#v1ClusterFirmwareServiceFirmwareAssetsPost) | **POST** /v1/cluster/firmware-service/firmware-assets | Add firmware assets via the firmware service +*CorelliumClient.CorelliumApi* | [**v1ClusterFirmwareServiceFirmwaresFilenameDelete**](docs/CorelliumApi.md#v1ClusterFirmwareServiceFirmwaresFilenameDelete) | **DELETE** /v1/cluster/firmware-service/firmwares/{filename} | Delete a firmware by filename from the firmware service +*CorelliumClient.CorelliumApi* | [**v1ClusterFirmwareServiceFirmwaresGet**](docs/CorelliumApi.md#v1ClusterFirmwareServiceFirmwaresGet) | **GET** /v1/cluster/firmware-service/firmwares | Fetch firmwares from the firmware service +*CorelliumClient.CorelliumApi* | [**v1ClusterNodesGet**](docs/CorelliumApi.md#v1ClusterNodesGet) | **GET** /v1/cluster/nodes | List servers in the cluster +*CorelliumClient.CorelliumApi* | [**v1ClusterNodesNodeIdConsoleGet**](docs/CorelliumApi.md#v1ClusterNodesNodeIdConsoleGet) | **GET** /v1/cluster/nodes/:nodeId/console | Access node console via SSH +*CorelliumClient.CorelliumApi* | [**v1ClusterNodesNodeIdGet**](docs/CorelliumApi.md#v1ClusterNodesNodeIdGet) | **GET** /v1/cluster/nodes/:nodeId | Get node details by ID +*CorelliumClient.CorelliumApi* | [**v1ClusterStorageGet**](docs/CorelliumApi.md#v1ClusterStorageGet) | **GET** /v1/cluster/storage | Get storage devices +*CorelliumClient.CorelliumApi* | [**v1ClusterStorageIdAttachPost**](docs/CorelliumApi.md#v1ClusterStorageIdAttachPost) | **POST** /v1/cluster/storage/:id/attach | Mount and attach a storage device +*CorelliumClient.CorelliumApi* | [**v1ClusterStorageIdEjectPost**](docs/CorelliumApi.md#v1ClusterStorageIdEjectPost) | **POST** /v1/cluster/storage/:id/eject | Eject/Unmount removable media *CorelliumClient.CorelliumApi* | [**v1CreateDomainAuthProvider**](docs/CorelliumApi.md#v1CreateDomainAuthProvider) | **POST** /v1/domain/{domainId}/auth | Create a new auth provider for a domain *CorelliumClient.CorelliumApi* | [**v1CreateHook**](docs/CorelliumApi.md#v1CreateHook) | **POST** /v1/instances/{instanceId}/hooks | Create hypervisor hook for Instance *CorelliumClient.CorelliumApi* | [**v1CreateImage**](docs/CorelliumApi.md#v1CreateImage) | **POST** /v1/images | Create a new Image @@ -178,6 +210,7 @@ Class | Method | HTTP request | Description *CorelliumClient.CorelliumApi* | [**v1CreateProject**](docs/CorelliumApi.md#v1CreateProject) | **POST** /v1/projects | Create a Project *CorelliumClient.CorelliumApi* | [**v1CreateSnapshot**](docs/CorelliumApi.md#v1CreateSnapshot) | **POST** /v1/instances/{instanceId}/snapshots | Create Instance Snapshot *CorelliumClient.CorelliumApi* | [**v1CreateUser**](docs/CorelliumApi.md#v1CreateUser) | **POST** /v1/users | Create User +*CorelliumClient.CorelliumApi* | [**v1DeleteClusterSnapshot**](docs/CorelliumApi.md#v1DeleteClusterSnapshot) | **DELETE** /v1/cluster/snapshots/{snapshotId} | Delete a Cluster Snapshot *CorelliumClient.CorelliumApi* | [**v1DeleteDomainAuthProvider**](docs/CorelliumApi.md#v1DeleteDomainAuthProvider) | **DELETE** /v1/domain/{domainId}/auth/{providerId} | Delete an auth provider from a domain *CorelliumClient.CorelliumApi* | [**v1DeleteHook**](docs/CorelliumApi.md#v1DeleteHook) | **DELETE** /v1/hooks/{hookId} | Delete an existing hypervisor hook *CorelliumClient.CorelliumApi* | [**v1DeleteImage**](docs/CorelliumApi.md#v1DeleteImage) | **DELETE** /v2/images/{imageId} | Delete Image @@ -188,18 +221,22 @@ Class | Method | HTTP request | Description *CorelliumClient.CorelliumApi* | [**v1DeleteSnapshot**](docs/CorelliumApi.md#v1DeleteSnapshot) | **DELETE** /v1/snapshots/{snapshotId} | Delete a Snapshot *CorelliumClient.CorelliumApi* | [**v1DeleteSnapshotPermissions**](docs/CorelliumApi.md#v1DeleteSnapshotPermissions) | **DELETE** /v1/snapshots/{snapshotId}/permissions | Delete member(s) *CorelliumClient.CorelliumApi* | [**v1DeleteUser**](docs/CorelliumApi.md#v1DeleteUser) | **DELETE** /v1/users/{userId} | Delete User +*CorelliumClient.CorelliumApi* | [**v1DetachInstanceInterface**](docs/CorelliumApi.md#v1DetachInstanceInterface) | **DELETE** /v1/instances/{instanceId}/interfaces/{interfaceId} | Detach I/O Interface *CorelliumClient.CorelliumApi* | [**v1DisableExposePort**](docs/CorelliumApi.md#v1DisableExposePort) | **POST** /v1/instances/{instanceId}/exposeport/disable | Disable an exposed port on an instance for device access. *CorelliumClient.CorelliumApi* | [**v1DownloadActivity**](docs/CorelliumApi.md#v1DownloadActivity) | **GET** /v1/activity/export/{taskId}/download | Download activity *CorelliumClient.CorelliumApi* | [**v1EnableExposePort**](docs/CorelliumApi.md#v1EnableExposePort) | **POST** /v1/instances/{instanceId}/exposeport/enable | Enable an exposed port on an instance for device access. *CorelliumClient.CorelliumApi* | [**v1ExecuteHyperTraceHooks**](docs/CorelliumApi.md#v1ExecuteHyperTraceHooks) | **POST** /v1/instances/{instanceId}/hooks/execute | Execute Hooks on an instance *CorelliumClient.CorelliumApi* | [**v1GetActivityExportStatus**](docs/CorelliumApi.md#v1GetActivityExportStatus) | **GET** /v1/activity/export/{taskId} | Get export task status *CorelliumClient.CorelliumApi* | [**v1GetActivityExportTasks**](docs/CorelliumApi.md#v1GetActivityExportTasks) | **GET** /v1/activity/export | Get all export tasks for user +*CorelliumClient.CorelliumApi* | [**v1GetClusterSnapshot**](docs/CorelliumApi.md#v1GetClusterSnapshot) | **GET** /v1/cluster/snapshots/{snapshotId} | Get Cluster Snapshot +*CorelliumClient.CorelliumApi* | [**v1GetClusterSnapshots**](docs/CorelliumApi.md#v1GetClusterSnapshots) | **GET** /v1/cluster/snapshots | Get Cluster Snapshots *CorelliumClient.CorelliumApi* | [**v1GetConfig**](docs/CorelliumApi.md#v1GetConfig) | **GET** /v1/config | Get all configs *CorelliumClient.CorelliumApi* | [**v1GetDomainAuthProviders**](docs/CorelliumApi.md#v1GetDomainAuthProviders) | **GET** /v1/domain/{domainId}/auth | Return all configured auth providers for a domain (including globally configured providers) *CorelliumClient.CorelliumApi* | [**v1GetHookById**](docs/CorelliumApi.md#v1GetHookById) | **GET** /v1/hooks/{hookId} | Get hypervisor hook by id *CorelliumClient.CorelliumApi* | [**v1GetHooks**](docs/CorelliumApi.md#v1GetHooks) | **GET** /v1/instances/{instanceId}/hooks | Get all hypervisor hooks for Instance *CorelliumClient.CorelliumApi* | [**v1GetImage**](docs/CorelliumApi.md#v1GetImage) | **GET** /v1/images/{imageId} | Get Image Metadata *CorelliumClient.CorelliumApi* | [**v1GetImages**](docs/CorelliumApi.md#v1GetImages) | **GET** /v1/images | Get all Images Metadata +*CorelliumClient.CorelliumApi* | [**v1GetInstallFirmwareStatus**](docs/CorelliumApi.md#v1GetInstallFirmwareStatus) | **GET** /v1/images/install-firmware/{taskId} | Query install firmware request status. *CorelliumClient.CorelliumApi* | [**v1GetInstance**](docs/CorelliumApi.md#v1GetInstance) | **GET** /v1/instances/{instanceId} | Get Instance *CorelliumClient.CorelliumApi* | [**v1GetInstanceConsole**](docs/CorelliumApi.md#v1GetInstanceConsole) | **GET** /v1/instances/{instanceId}/console | Get console websocket URL *CorelliumClient.CorelliumApi* | [**v1GetInstanceConsoleLog**](docs/CorelliumApi.md#v1GetInstanceConsoleLog) | **GET** /v1/instances/{instanceId}/consoleLog | Get Console Log @@ -221,9 +258,10 @@ Class | Method | HTTP request | Description *CorelliumClient.CorelliumApi* | [**v1GetProjectVpnConfig**](docs/CorelliumApi.md#v1GetProjectVpnConfig) | **GET** /v1/projects/{projectId}/vpnconfig/{format} | Get Project VPN Configuration *CorelliumClient.CorelliumApi* | [**v1GetProjects**](docs/CorelliumApi.md#v1GetProjects) | **GET** /v1/projects | Get Projects *CorelliumClient.CorelliumApi* | [**v1GetResetLinkInfo**](docs/CorelliumApi.md#v1GetResetLinkInfo) | **GET** /v1/users/reset-link-info | Send Password Reset Link Info -*CorelliumClient.CorelliumApi* | [**v1GetServiceProviderMetadata**](docs/CorelliumApi.md#v1GetServiceProviderMetadata) | **GET** /v1/auth/providers/:providerId/spmetadata | Get service provider metadata xml from an auth provider *CorelliumClient.CorelliumApi* | [**v1GetSharedSnapshots**](docs/CorelliumApi.md#v1GetSharedSnapshots) | **GET** /v1/snapshots/shared | Fetch shared snapshots *CorelliumClient.CorelliumApi* | [**v1GetSnapshot**](docs/CorelliumApi.md#v1GetSnapshot) | **GET** /v1/snapshots/{snapshotId} | Get Snapshot +*CorelliumClient.CorelliumApi* | [**v1InstallFirmware**](docs/CorelliumApi.md#v1InstallFirmware) | **POST** /v1/images/install-firmware | Installs a firmware for cluster-wide use +*CorelliumClient.CorelliumApi* | [**v1InstallFirmwareAssets**](docs/CorelliumApi.md#v1InstallFirmwareAssets) | **POST** /v1/images/install-firmware-assets | Installs firmware assets for cluster-wide use *CorelliumClient.CorelliumApi* | [**v1InstancesInstanceIdMessagePost**](docs/CorelliumApi.md#v1InstancesInstanceIdMessagePost) | **POST** /v1/instances/{instanceId}/message | Inject a message into an iOS VM *CorelliumClient.CorelliumApi* | [**v1InstancesInstanceIdNetdumpPcapGet**](docs/CorelliumApi.md#v1InstancesInstanceIdNetdumpPcapGet) | **GET** /v1/instances/{instanceId}/netdump.pcap | Download a netdump pcap file *CorelliumClient.CorelliumApi* | [**v1InstancesInstanceIdNetworkMonitorPcapGet**](docs/CorelliumApi.md#v1InstancesInstanceIdNetworkMonitorPcapGet) | **GET** /v1/instances/{instanceId}/networkMonitor.pcap | Download a Network Monitor pcap file @@ -231,11 +269,13 @@ Class | Method | HTTP request | Description *CorelliumClient.CorelliumApi* | [**v1ListNetworkConnections**](docs/CorelliumApi.md#v1ListNetworkConnections) | **GET** /v1/network/connections | List available network connections *CorelliumClient.CorelliumApi* | [**v1ListNetworkInterfaces**](docs/CorelliumApi.md#v1ListNetworkInterfaces) | **GET** /v1/network/interfaces | List available physical network interfaces *CorelliumClient.CorelliumApi* | [**v1ListNetworkProviders**](docs/CorelliumApi.md#v1ListNetworkProviders) | **GET** /v1/network/providers | List available network providers +*CorelliumClient.CorelliumApi* | [**v1ListStorageFiles**](docs/CorelliumApi.md#v1ListStorageFiles) | **GET** /v1/storage/{id}/files/{path} | List Storage Files *CorelliumClient.CorelliumApi* | [**v1ListThreads**](docs/CorelliumApi.md#v1ListThreads) | **GET** /v1/instances/{instanceId}/strace/thread-list | Get Running Threads (CoreTrace) *CorelliumClient.CorelliumApi* | [**v1MediaPlay**](docs/CorelliumApi.md#v1MediaPlay) | **POST** /v1/instances/{instanceId}/media/play | Start playing media *CorelliumClient.CorelliumApi* | [**v1MediaStop**](docs/CorelliumApi.md#v1MediaStop) | **POST** /v1/instances/{instanceId}/media/stop | Stop playing media *CorelliumClient.CorelliumApi* | [**v1PartialUpdateNetworkConnection**](docs/CorelliumApi.md#v1PartialUpdateNetworkConnection) | **PATCH** /v1/network/connections/{id} | Update Network Connection (partial) *CorelliumClient.CorelliumApi* | [**v1PatchInstance**](docs/CorelliumApi.md#v1PatchInstance) | **PATCH** /v1/instances/{instanceId} | Update Instance +*CorelliumClient.CorelliumApi* | [**v1PatchInstanceReadOnly**](docs/CorelliumApi.md#v1PatchInstanceReadOnly) | **PATCH** /v1/instances/{instanceId}/read-only | Update Instance Read Only *CorelliumClient.CorelliumApi* | [**v1PauseInstance**](docs/CorelliumApi.md#v1PauseInstance) | **POST** /v1/instances/{instanceId}/pause | Pause an Instance *CorelliumClient.CorelliumApi* | [**v1PostInstanceInput**](docs/CorelliumApi.md#v1PostInstanceInput) | **POST** /v1/instances/{instanceId}/input | Provide Instance Input *CorelliumClient.CorelliumApi* | [**v1Ready**](docs/CorelliumApi.md#v1Ready) | **GET** /v1/ready | API Status @@ -267,6 +307,7 @@ Class | Method | HTTP request | Description *CorelliumClient.CorelliumApi* | [**v1StopInstance**](docs/CorelliumApi.md#v1StopInstance) | **POST** /v1/instances/{instanceId}/stop | Stop an Instance *CorelliumClient.CorelliumApi* | [**v1StopNetdump**](docs/CorelliumApi.md#v1StopNetdump) | **POST** /v1/instances/{instanceId}/netdump/disable | Stop Enhanced Network Monitor on an instance. *CorelliumClient.CorelliumApi* | [**v1StopNetworkMonitor**](docs/CorelliumApi.md#v1StopNetworkMonitor) | **POST** /v1/instances/{instanceId}/sslsplit/disable | Stop Network Monitor on an instance. +*CorelliumClient.CorelliumApi* | [**v1StorageGet**](docs/CorelliumApi.md#v1StorageGet) | **GET** /v1/storage | Get storage devices *CorelliumClient.CorelliumApi* | [**v1TeamChange**](docs/CorelliumApi.md#v1TeamChange) | **PATCH** /v1/teams/{teamId} | Update team *CorelliumClient.CorelliumApi* | [**v1TeamCreate**](docs/CorelliumApi.md#v1TeamCreate) | **POST** /v1/teams | Create team *CorelliumClient.CorelliumApi* | [**v1TeamDelete**](docs/CorelliumApi.md#v1TeamDelete) | **DELETE** /v1/teams/{teamId} | Delete team @@ -314,47 +355,68 @@ Class | Method | HTTP request | Description - [CorelliumClient.AgentSystemSetHostnameBody](docs/AgentSystemSetHostnameBody.md) - [CorelliumClient.AgentValueReturn](docs/AgentValueReturn.md) - [CorelliumClient.AgreedAck](docs/AgreedAck.md) + - [CorelliumClient.AllowedDomainsResponse](docs/AllowedDomainsResponse.md) - [CorelliumClient.ApiConflictError](docs/ApiConflictError.md) - [CorelliumClient.ApiError](docs/ApiError.md) - [CorelliumClient.ApiInternalConsistencyError](docs/ApiInternalConsistencyError.md) - [CorelliumClient.ApiNotFoundError](docs/ApiNotFoundError.md) - [CorelliumClient.ApiToken](docs/ApiToken.md) - [CorelliumClient.Assessment](docs/Assessment.md) + - [CorelliumClient.AssessmentHistory](docs/AssessmentHistory.md) + - [CorelliumClient.AssessmentHistoryLineItem](docs/AssessmentHistoryLineItem.md) - [CorelliumClient.AssessmentIdStatus](docs/AssessmentIdStatus.md) + - [CorelliumClient.AttachInterfaceRequest](docs/AttachInterfaceRequest.md) - [CorelliumClient.AuthProvider](docs/AuthProvider.md) - [CorelliumClient.Bit](docs/Bit.md) - [CorelliumClient.BtraceEnableOptions](docs/BtraceEnableOptions.md) - [CorelliumClient.Button](docs/Button.md) - [CorelliumClient.CheckSubdomainResponse](docs/CheckSubdomainResponse.md) + - [CorelliumClient.ClusterConfigurationPayload](docs/ClusterConfigurationPayload.md) + - [CorelliumClient.ClusterSnapshot](docs/ClusterSnapshot.md) - [CorelliumClient.ConfigResponse](docs/ConfigResponse.md) - [CorelliumClient.ConfigResponseMaintenance](docs/ConfigResponseMaintenance.md) + - [CorelliumClient.CoordinatorConfig](docs/CoordinatorConfig.md) - [CorelliumClient.CouponOptions](docs/CouponOptions.md) - [CorelliumClient.CreateAssessmentDto](docs/CreateAssessmentDto.md) + - [CorelliumClient.CreateInterconnectRequest](docs/CreateInterconnectRequest.md) - [CorelliumClient.CreateNetworkConnectionOptions](docs/CreateNetworkConnectionOptions.md) - [CorelliumClient.CreateTeam](docs/CreateTeam.md) - [CorelliumClient.CreatedBy](docs/CreatedBy.md) - [CorelliumClient.Credentials](docs/Credentials.md) + - [CorelliumClient.DetachInterfaceRequest](docs/DetachInterfaceRequest.md) + - [CorelliumClient.Device](docs/Device.md) - [CorelliumClient.DomainAuthProviderRequest](docs/DomainAuthProviderRequest.md) - [CorelliumClient.DomainAuthProviderResponse](docs/DomainAuthProviderResponse.md) - [CorelliumClient.DomainOptions](docs/DomainOptions.md) + - [CorelliumClient.ExtendedFirmwareAssetInfo](docs/ExtendedFirmwareAssetInfo.md) - [CorelliumClient.Extension](docs/Extension.md) - [CorelliumClient.Features](docs/Features.md) - [CorelliumClient.FileChanges](docs/FileChanges.md) - [CorelliumClient.Firmware](docs/Firmware.md) + - [CorelliumClient.FirmwareAsset](docs/FirmwareAsset.md) + - [CorelliumClient.FirmwareServiceConfiguration](docs/FirmwareServiceConfiguration.md) - [CorelliumClient.GetAssessmentsByInstanceId500Response](docs/GetAssessmentsByInstanceId500Response.md) + - [CorelliumClient.GetInterconnectsResponse](docs/GetInterconnectsResponse.md) + - [CorelliumClient.GetStorageResponse](docs/GetStorageResponse.md) - [CorelliumClient.GpioStateDefinition](docs/GpioStateDefinition.md) - [CorelliumClient.GpiosState](docs/GpiosState.md) - [CorelliumClient.GrantTrialRequestResponse](docs/GrantTrialRequestResponse.md) - [CorelliumClient.Hook](docs/Hook.md) - [CorelliumClient.Image](docs/Image.md) - [CorelliumClient.InputResponse](docs/InputResponse.md) + - [CorelliumClient.InstallFirmwareAssetsRequest](docs/InstallFirmwareAssetsRequest.md) + - [CorelliumClient.InstallFirmwareAssetsResponse](docs/InstallFirmwareAssetsResponse.md) + - [CorelliumClient.InstallFirmwareRequest](docs/InstallFirmwareRequest.md) + - [CorelliumClient.InstallFirmwareResponse](docs/InstallFirmwareResponse.md) - [CorelliumClient.Instance](docs/Instance.md) - [CorelliumClient.InstanceAgentState](docs/InstanceAgentState.md) - [CorelliumClient.InstanceBootOptions](docs/InstanceBootOptions.md) - [CorelliumClient.InstanceBootOptionsAdditionalTag](docs/InstanceBootOptionsAdditionalTag.md) + - [CorelliumClient.InstanceBootOptionsKernel](docs/InstanceBootOptionsKernel.md) - [CorelliumClient.InstanceConsoleEndpoint](docs/InstanceConsoleEndpoint.md) - [CorelliumClient.InstanceCreateOptions](docs/InstanceCreateOptions.md) - [CorelliumClient.InstanceInput](docs/InstanceInput.md) + - [CorelliumClient.InstanceInterface](docs/InstanceInterface.md) - [CorelliumClient.InstanceNetdumpState](docs/InstanceNetdumpState.md) - [CorelliumClient.InstanceNetmonState](docs/InstanceNetmonState.md) - [CorelliumClient.InstanceReturn](docs/InstanceReturn.md) @@ -363,6 +425,7 @@ Class | Method | HTTP request | Description - [CorelliumClient.InstanceState](docs/InstanceState.md) - [CorelliumClient.InstanceStopOptions](docs/InstanceStopOptions.md) - [CorelliumClient.InstanceUpgradeBody](docs/InstanceUpgradeBody.md) + - [CorelliumClient.InterconnectResponse](docs/InterconnectResponse.md) - [CorelliumClient.Invitation](docs/Invitation.md) - [CorelliumClient.InviteRevokeParams](docs/InviteRevokeParams.md) - [CorelliumClient.InviteRevokeParamsIds](docs/InviteRevokeParamsIds.md) @@ -372,6 +435,7 @@ Class | Method | HTTP request | Description - [CorelliumClient.Logging](docs/Logging.md) - [CorelliumClient.Maintenance](docs/Maintenance.md) - [CorelliumClient.MediaPlayBody](docs/MediaPlayBody.md) + - [CorelliumClient.MediaStore](docs/MediaStore.md) - [CorelliumClient.MeteredSubscriptionUsage](docs/MeteredSubscriptionUsage.md) - [CorelliumClient.Model](docs/Model.md) - [CorelliumClient.ModelSoftware](docs/ModelSoftware.md) @@ -381,11 +445,15 @@ Class | Method | HTTP request | Description - [CorelliumClient.NetworkConnectionProvider](docs/NetworkConnectionProvider.md) - [CorelliumClient.NetworkConnectionProviderOffsetPaginationResult](docs/NetworkConnectionProviderOffsetPaginationResult.md) - [CorelliumClient.NetworkStatusResponse](docs/NetworkStatusResponse.md) + - [CorelliumClient.NodeInformation](docs/NodeInformation.md) + - [CorelliumClient.NodeUpdatesFailed](docs/NodeUpdatesFailed.md) - [CorelliumClient.OpenIDConfig](docs/OpenIDConfig.md) - [CorelliumClient.Pagination](docs/Pagination.md) + - [CorelliumClient.PartialUpdateInterconnectRequest](docs/PartialUpdateInterconnectRequest.md) - [CorelliumClient.PasswordChangeBody](docs/PasswordChangeBody.md) - [CorelliumClient.PasswordResetBody](docs/PasswordResetBody.md) - [CorelliumClient.PatchInstanceOptions](docs/PatchInstanceOptions.md) + - [CorelliumClient.PatchInstanceReadOnly](docs/PatchInstanceReadOnly.md) - [CorelliumClient.PeripheralsData](docs/PeripheralsData.md) - [CorelliumClient.Plan](docs/Plan.md) - [CorelliumClient.PostShareSnapshotRequestPayload](docs/PostShareSnapshotRequestPayload.md) @@ -397,19 +465,22 @@ Class | Method | HTTP request | Description - [CorelliumClient.ProjectUsage](docs/ProjectUsage.md) - [CorelliumClient.ProxyConfig](docs/ProxyConfig.md) - [CorelliumClient.ResetLinkBody](docs/ResetLinkBody.md) + - [CorelliumClient.ResetLinkInfoReturn](docs/ResetLinkInfoReturn.md) + - [CorelliumClient.RestoreBackupData](docs/RestoreBackupData.md) - [CorelliumClient.Role](docs/Role.md) - [CorelliumClient.RotateBody](docs/RotateBody.md) - [CorelliumClient.SharedSnapshotsInfo](docs/SharedSnapshotsInfo.md) - [CorelliumClient.Snapshot](docs/Snapshot.md) - [CorelliumClient.SnapshotCreationOptions](docs/SnapshotCreationOptions.md) + - [CorelliumClient.SnapshotList](docs/SnapshotList.md) - [CorelliumClient.SnapshotMember](docs/SnapshotMember.md) - [CorelliumClient.SnapshotOwner](docs/SnapshotOwner.md) - [CorelliumClient.SnapshotPermissionsRequestPayload](docs/SnapshotPermissionsRequestPayload.md) + - [CorelliumClient.SnapshotRequest](docs/SnapshotRequest.md) - [CorelliumClient.SnapshotSharing](docs/SnapshotSharing.md) - [CorelliumClient.SnapshotSharingPermissions](docs/SnapshotSharingPermissions.md) - [CorelliumClient.SnapshotStatus](docs/SnapshotStatus.md) - [CorelliumClient.SslsplitFilter](docs/SslsplitFilter.md) - - [CorelliumClient.SubscriberInvite](docs/SubscriberInvite.md) - [CorelliumClient.Team](docs/Team.md) - [CorelliumClient.TeamCreate](docs/TeamCreate.md) - [CorelliumClient.TestAssessmentDto](docs/TestAssessmentDto.md) @@ -424,14 +495,20 @@ Class | Method | HTTP request | Description - [CorelliumClient.TrialRequestOptions](docs/TrialRequestOptions.md) - [CorelliumClient.UpdateAssessmentDto](docs/UpdateAssessmentDto.md) - [CorelliumClient.UpdateExtension](docs/UpdateExtension.md) + - [CorelliumClient.UpdateInterconnectRequest](docs/UpdateInterconnectRequest.md) - [CorelliumClient.UpdateNetworkConnectionOptions](docs/UpdateNetworkConnectionOptions.md) + - [CorelliumClient.UpdateTrialRequestParams](docs/UpdateTrialRequestParams.md) - [CorelliumClient.User](docs/User.md) + - [CorelliumClient.UserCreate](docs/UserCreate.md) + - [CorelliumClient.UserCreateReturn](docs/UserCreateReturn.md) - [CorelliumClient.UserError](docs/UserError.md) - [CorelliumClient.UserSnapshots](docs/UserSnapshots.md) + - [CorelliumClient.UserUpdate](docs/UserUpdate.md) - [CorelliumClient.V1CheckSubdomainExistenceParameters](docs/V1CheckSubdomainExistenceParameters.md) - [CorelliumClient.V1CreateHookParameters](docs/V1CreateHookParameters.md) - [CorelliumClient.V1LoadExtensionParameters](docs/V1LoadExtensionParameters.md) - [CorelliumClient.V1SetStateBody](docs/V1SetStateBody.md) + - [CorelliumClient.V1UpdateHookParameters](docs/V1UpdateHookParameters.md) - [CorelliumClient.ValidationError](docs/ValidationError.md) - [CorelliumClient.VolumeOptions](docs/VolumeOptions.md) - [CorelliumClient.VpnDefinition](docs/VpnDefinition.md) diff --git a/docs/Activity.md b/docs/Activity.md index 53da2b1..9a93129 100644 --- a/docs/Activity.md +++ b/docs/Activity.md @@ -14,6 +14,6 @@ Name | Type | Description | Notes **projectId** | **String** | Unique identifier for project if applicable | [optional] **instanceId** | **String** | Unique identifier for instance if applicable | [optional] **createdAt** | **String** | Timestamp of when the activity was created | [optional] -**updatedAt** | **String** | Timestamp of the activity was last updated | [optional] +**updatedAt** | **String** | Timestamp of when the activity was last updated | [optional] diff --git a/docs/ActivityRequest.md b/docs/ActivityRequest.md index 9af7fa4..a76ee0c 100644 --- a/docs/ActivityRequest.md +++ b/docs/ActivityRequest.md @@ -12,7 +12,7 @@ Name | Type | Description | Notes **project** | **String** | Instance identifier used to filter instance resources | [optional] **actor** | **String** | Actor identifier used to filter actor resources | [optional] **search** | **String** | Last filter applied and is a fuzzy match on results | [optional] -**to** | **String** | Date to filter to, keyed off of createdAt, defaults to now | [optional] -**from** | **String** | Date to filter from, keyed off of createdAt, defaults to 1 week ago | [optional] +**to** | **String** | Date to filter to, keyed off of createdAt | [optional] +**from** | **String** | Date to filter from, keyed off of createdAt | [optional] diff --git a/docs/AgentApp.md b/docs/AgentApp.md index ea7b923..00b28ec 100644 --- a/docs/AgentApp.md +++ b/docs/AgentApp.md @@ -11,5 +11,7 @@ Name | Type | Description | Notes **applicationType** | **String** | | [optional] **name** | **String** | | [optional] **bundleID** | **String** | | [optional] +**bundlePath** | **String** | | [optional] +**bundleDataPath** | **String** | | [optional] diff --git a/docs/AllowedDomainsResponse.md b/docs/AllowedDomainsResponse.md new file mode 100644 index 0000000..ac4096e --- /dev/null +++ b/docs/AllowedDomainsResponse.md @@ -0,0 +1,9 @@ +# CorelliumClient.AllowedDomainsResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**allowedDomains** | **[String]** | List of allowed domains | [optional] + + diff --git a/docs/AssessmentHistory.md b/docs/AssessmentHistory.md new file mode 100644 index 0000000..d06b869 --- /dev/null +++ b/docs/AssessmentHistory.md @@ -0,0 +1,13 @@ +# CorelliumClient.AssessmentHistory + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**total** | **Number** | Total number of items | +**count** | **Number** | Number of items in current response | +**limit** | **Number** | Limit used for the request | +**offset** | **Number** | Offset used for the request | +**results** | [**[AssessmentHistoryLineItem]**](AssessmentHistoryLineItem.md) | The list of assessments | + + diff --git a/docs/AssessmentHistoryLineItem.md b/docs/AssessmentHistoryLineItem.md new file mode 100644 index 0000000..0af9dfe --- /dev/null +++ b/docs/AssessmentHistoryLineItem.md @@ -0,0 +1,11 @@ +# CorelliumClient.AssessmentHistoryLineItem + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**date** | **Number** | UNIX Date representing the month | +**complete** | **Number** | The number of successful assessments | +**incomplete** | **Number** | The number of failed assessments | + + diff --git a/docs/AttachInterfaceRequest.md b/docs/AttachInterfaceRequest.md new file mode 100644 index 0000000..418d6a0 --- /dev/null +++ b/docs/AttachInterfaceRequest.md @@ -0,0 +1,10 @@ +# CorelliumClient.AttachInterfaceRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**interfaceId** | **String** | Interface identifier | +**interconnectId** | **String** | Interconnect identifier | + + diff --git a/docs/ClusterConfigurationPayload.md b/docs/ClusterConfigurationPayload.md new file mode 100644 index 0000000..39285dc --- /dev/null +++ b/docs/ClusterConfigurationPayload.md @@ -0,0 +1,10 @@ +# CorelliumClient.ClusterConfigurationPayload + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**snapshotLimit** | **Number** | Designates the maximum number of snapshots that can be taken in a cluster | [optional] +**coordinatorConfig** | [**CoordinatorConfig**](CoordinatorConfig.md) | | [optional] + + diff --git a/docs/ClusterSnapshot.md b/docs/ClusterSnapshot.md new file mode 100644 index 0000000..e49335d --- /dev/null +++ b/docs/ClusterSnapshot.md @@ -0,0 +1,9 @@ +# CorelliumClient.ClusterSnapshot + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**identifier** | **String** | Unique identifier for the snapshot | [optional] + + diff --git a/docs/ConfigResponse.md b/docs/ConfigResponse.md index b4d5f2a..8ab15d4 100644 --- a/docs/ConfigResponse.md +++ b/docs/ConfigResponse.md @@ -5,6 +5,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **onSite** | **Boolean** | Denotes whether it's an on-site install | [optional] +**networkTypes** | **[String]** | Valid network types (e.g. \"nat\", \"bridged\", \"routed\") | [optional] +**networkType** | **String** | Current network type setting | [optional] **showDomainSettings** | **Boolean** | Denotes whether to show domain settings | [optional] **version** | **String** | Denotes the version | [optional] **invalidBuild** | **Boolean** | Denotes whether the build is invalid | [optional] diff --git a/docs/CoordinatorConfig.md b/docs/CoordinatorConfig.md new file mode 100644 index 0000000..9854766 --- /dev/null +++ b/docs/CoordinatorConfig.md @@ -0,0 +1,9 @@ +# CorelliumClient.CoordinatorConfig + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**usbMediaAccessEnabled** | **Boolean** | Designates the maximum number of snapshots that can be taken in a cluster | [optional] + + diff --git a/docs/CorelliumApi.md b/docs/CorelliumApi.md index aeb1c53..53218e3 100644 --- a/docs/CorelliumApi.md +++ b/docs/CorelliumApi.md @@ -4,6 +4,12 @@ All URIs are relative to *https://app.corellium.com/api* Method | HTTP request | Description ------------- | ------------- | ------------- +[**apiV1InterconnectsGet**](CorelliumApi.md#apiV1InterconnectsGet) | **GET** /api/v1/interconnects | Get all I/O Interconnects +[**apiV1InterconnectsInterconnectIdDelete**](CorelliumApi.md#apiV1InterconnectsInterconnectIdDelete) | **DELETE** /api/v1/interconnects/:interconnectId | Delete I/O Interconnect +[**apiV1InterconnectsInterconnectIdGet**](CorelliumApi.md#apiV1InterconnectsInterconnectIdGet) | **GET** /api/v1/interconnects/:interconnectId | Get Interconnect +[**apiV1InterconnectsInterconnectIdPatch**](CorelliumApi.md#apiV1InterconnectsInterconnectIdPatch) | **PATCH** /api/v1/interconnects/:interconnectId | Partial Update Interconnect +[**apiV1InterconnectsInterconnectIdPut**](CorelliumApi.md#apiV1InterconnectsInterconnectIdPut) | **PUT** /api/v1/interconnects/:interconnectId | Update Interconnect +[**apiV1InterconnectsPost**](CorelliumApi.md#apiV1InterconnectsPost) | **POST** /api/v1/interconnects | Create I/O Interconnect [**createAssessment**](CorelliumApi.md#createAssessment) | **POST** /v1/services/matrix/{instanceId}/assessments | Create assessment [**deleteAssessment**](CorelliumApi.md#deleteAssessment) | **DELETE** /v1/services/matrix/{instanceId}/assessments/{assessmentId} | Delete assessment [**downloadReport**](CorelliumApi.md#downloadReport) | **GET** /v1/services/matrix/{instanceId}/assessments/{assessmentId}/download | Download report @@ -44,13 +50,31 @@ Method | HTTP request | Description [**v1AgentUninstallApp**](CorelliumApi.md#v1AgentUninstallApp) | **POST** /v1/instances/{instanceId}/agent/v1/app/apps/{bundleId}/uninstall | Uninstall an App [**v1AgentUninstallProfile**](CorelliumApi.md#v1AgentUninstallProfile) | **DELETE** /v1/instances/{instanceId}/agent/v1/profile/profiles/{profileId} | Uninstall a Profile from VM [**v1AgentUploadFile**](CorelliumApi.md#v1AgentUploadFile) | **PUT** /v1/instances/{instanceId}/agent/v1/file/device/{filePath} | Upload a file to VM +[**v1AttachInstanceInterface**](CorelliumApi.md#v1AttachInstanceInterface) | **POST** /v1/instances/{instanceId}/interfaces | Attach I/O Interface [**v1AuthLogin**](CorelliumApi.md#v1AuthLogin) | **POST** /v1/auth/login | Log In [**v1BtracePreauthorize**](CorelliumApi.md#v1BtracePreauthorize) | **GET** /v1/instances/{instanceId}/btrace-authorize | Pre-authorize an btrace download -[**v1CheckSubdomainExistence**](CorelliumApi.md#v1CheckSubdomainExistence) | **POST** /v1/domain/check | Check the existence of a subdomain [**v1ClearCoreTrace**](CorelliumApi.md#v1ClearCoreTrace) | **DELETE** /v1/instances/{instanceId}/strace | Clear CoreTrace logs [**v1ClearHyperTrace**](CorelliumApi.md#v1ClearHyperTrace) | **DELETE** /v1/instances/{instanceId}/btrace | Clear HyperTrace logs [**v1ClearHyperTraceHooks**](CorelliumApi.md#v1ClearHyperTraceHooks) | **POST** /v1/instances/{instanceId}/hooks/clear | Clear Hooks on an instance [**v1ClearInstancePanics**](CorelliumApi.md#v1ClearInstancePanics) | **DELETE** /v1/instances/{instanceId}/panics | Clear Panics +[**v1ClusterConfigGet**](CorelliumApi.md#v1ClusterConfigGet) | **GET** /v1/cluster/config | Get cluster configuration +[**v1ClusterConfigPatch**](CorelliumApi.md#v1ClusterConfigPatch) | **PATCH** /v1/cluster/config | Update cluster configuration +[**v1ClusterFirmwareServiceConfigGet**](CorelliumApi.md#v1ClusterFirmwareServiceConfigGet) | **GET** /v1/cluster/firmware-service/config | Fetch firmware service configuration +[**v1ClusterFirmwareServiceConfigPatch**](CorelliumApi.md#v1ClusterFirmwareServiceConfigPatch) | **PATCH** /v1/cluster/firmware-service/config | Update firmware service configuration +[**v1ClusterFirmwareServiceConfigPut**](CorelliumApi.md#v1ClusterFirmwareServiceConfigPut) | **PUT** /v1/cluster/firmware-service/config | Set firmware service configuration +[**v1ClusterFirmwareServiceDevicesGet**](CorelliumApi.md#v1ClusterFirmwareServiceDevicesGet) | **GET** /v1/cluster/firmware-service/devices | Fetch devices from the firmware service +[**v1ClusterFirmwareServiceFirmwareAssetsAssetURLDelete**](CorelliumApi.md#v1ClusterFirmwareServiceFirmwareAssetsAssetURLDelete) | **DELETE** /v1/cluster/firmware-service/firmware-assets/{assetURL} | Delete a firmware asset by its URL +[**v1ClusterFirmwareServiceFirmwareAssetsAssetURLExtendedGet**](CorelliumApi.md#v1ClusterFirmwareServiceFirmwareAssetsAssetURLExtendedGet) | **GET** /v1/cluster/firmware-service/firmware-assets/{assetURL}/extended | Fetch extended firmware-asset details including instances and associated IPSWs +[**v1ClusterFirmwareServiceFirmwareAssetsGet**](CorelliumApi.md#v1ClusterFirmwareServiceFirmwareAssetsGet) | **GET** /v1/cluster/firmware-service/firmware-assets | Fetch firmware assets from the firmware service +[**v1ClusterFirmwareServiceFirmwareAssetsPost**](CorelliumApi.md#v1ClusterFirmwareServiceFirmwareAssetsPost) | **POST** /v1/cluster/firmware-service/firmware-assets | Add firmware assets via the firmware service +[**v1ClusterFirmwareServiceFirmwaresFilenameDelete**](CorelliumApi.md#v1ClusterFirmwareServiceFirmwaresFilenameDelete) | **DELETE** /v1/cluster/firmware-service/firmwares/{filename} | Delete a firmware by filename from the firmware service +[**v1ClusterFirmwareServiceFirmwaresGet**](CorelliumApi.md#v1ClusterFirmwareServiceFirmwaresGet) | **GET** /v1/cluster/firmware-service/firmwares | Fetch firmwares from the firmware service +[**v1ClusterNodesGet**](CorelliumApi.md#v1ClusterNodesGet) | **GET** /v1/cluster/nodes | List servers in the cluster +[**v1ClusterNodesNodeIdConsoleGet**](CorelliumApi.md#v1ClusterNodesNodeIdConsoleGet) | **GET** /v1/cluster/nodes/:nodeId/console | Access node console via SSH +[**v1ClusterNodesNodeIdGet**](CorelliumApi.md#v1ClusterNodesNodeIdGet) | **GET** /v1/cluster/nodes/:nodeId | Get node details by ID +[**v1ClusterStorageGet**](CorelliumApi.md#v1ClusterStorageGet) | **GET** /v1/cluster/storage | Get storage devices +[**v1ClusterStorageIdAttachPost**](CorelliumApi.md#v1ClusterStorageIdAttachPost) | **POST** /v1/cluster/storage/:id/attach | Mount and attach a storage device +[**v1ClusterStorageIdEjectPost**](CorelliumApi.md#v1ClusterStorageIdEjectPost) | **POST** /v1/cluster/storage/:id/eject | Eject/Unmount removable media [**v1CreateDomainAuthProvider**](CorelliumApi.md#v1CreateDomainAuthProvider) | **POST** /v1/domain/{domainId}/auth | Create a new auth provider for a domain [**v1CreateHook**](CorelliumApi.md#v1CreateHook) | **POST** /v1/instances/{instanceId}/hooks | Create hypervisor hook for Instance [**v1CreateImage**](CorelliumApi.md#v1CreateImage) | **POST** /v1/images | Create a new Image @@ -59,6 +83,7 @@ Method | HTTP request | Description [**v1CreateProject**](CorelliumApi.md#v1CreateProject) | **POST** /v1/projects | Create a Project [**v1CreateSnapshot**](CorelliumApi.md#v1CreateSnapshot) | **POST** /v1/instances/{instanceId}/snapshots | Create Instance Snapshot [**v1CreateUser**](CorelliumApi.md#v1CreateUser) | **POST** /v1/users | Create User +[**v1DeleteClusterSnapshot**](CorelliumApi.md#v1DeleteClusterSnapshot) | **DELETE** /v1/cluster/snapshots/{snapshotId} | Delete a Cluster Snapshot [**v1DeleteDomainAuthProvider**](CorelliumApi.md#v1DeleteDomainAuthProvider) | **DELETE** /v1/domain/{domainId}/auth/{providerId} | Delete an auth provider from a domain [**v1DeleteHook**](CorelliumApi.md#v1DeleteHook) | **DELETE** /v1/hooks/{hookId} | Delete an existing hypervisor hook [**v1DeleteImage**](CorelliumApi.md#v1DeleteImage) | **DELETE** /v2/images/{imageId} | Delete Image @@ -69,18 +94,22 @@ Method | HTTP request | Description [**v1DeleteSnapshot**](CorelliumApi.md#v1DeleteSnapshot) | **DELETE** /v1/snapshots/{snapshotId} | Delete a Snapshot [**v1DeleteSnapshotPermissions**](CorelliumApi.md#v1DeleteSnapshotPermissions) | **DELETE** /v1/snapshots/{snapshotId}/permissions | Delete member(s) [**v1DeleteUser**](CorelliumApi.md#v1DeleteUser) | **DELETE** /v1/users/{userId} | Delete User +[**v1DetachInstanceInterface**](CorelliumApi.md#v1DetachInstanceInterface) | **DELETE** /v1/instances/{instanceId}/interfaces/{interfaceId} | Detach I/O Interface [**v1DisableExposePort**](CorelliumApi.md#v1DisableExposePort) | **POST** /v1/instances/{instanceId}/exposeport/disable | Disable an exposed port on an instance for device access. [**v1DownloadActivity**](CorelliumApi.md#v1DownloadActivity) | **GET** /v1/activity/export/{taskId}/download | Download activity [**v1EnableExposePort**](CorelliumApi.md#v1EnableExposePort) | **POST** /v1/instances/{instanceId}/exposeport/enable | Enable an exposed port on an instance for device access. [**v1ExecuteHyperTraceHooks**](CorelliumApi.md#v1ExecuteHyperTraceHooks) | **POST** /v1/instances/{instanceId}/hooks/execute | Execute Hooks on an instance [**v1GetActivityExportStatus**](CorelliumApi.md#v1GetActivityExportStatus) | **GET** /v1/activity/export/{taskId} | Get export task status [**v1GetActivityExportTasks**](CorelliumApi.md#v1GetActivityExportTasks) | **GET** /v1/activity/export | Get all export tasks for user +[**v1GetClusterSnapshot**](CorelliumApi.md#v1GetClusterSnapshot) | **GET** /v1/cluster/snapshots/{snapshotId} | Get Cluster Snapshot +[**v1GetClusterSnapshots**](CorelliumApi.md#v1GetClusterSnapshots) | **GET** /v1/cluster/snapshots | Get Cluster Snapshots [**v1GetConfig**](CorelliumApi.md#v1GetConfig) | **GET** /v1/config | Get all configs [**v1GetDomainAuthProviders**](CorelliumApi.md#v1GetDomainAuthProviders) | **GET** /v1/domain/{domainId}/auth | Return all configured auth providers for a domain (including globally configured providers) [**v1GetHookById**](CorelliumApi.md#v1GetHookById) | **GET** /v1/hooks/{hookId} | Get hypervisor hook by id [**v1GetHooks**](CorelliumApi.md#v1GetHooks) | **GET** /v1/instances/{instanceId}/hooks | Get all hypervisor hooks for Instance [**v1GetImage**](CorelliumApi.md#v1GetImage) | **GET** /v1/images/{imageId} | Get Image Metadata [**v1GetImages**](CorelliumApi.md#v1GetImages) | **GET** /v1/images | Get all Images Metadata +[**v1GetInstallFirmwareStatus**](CorelliumApi.md#v1GetInstallFirmwareStatus) | **GET** /v1/images/install-firmware/{taskId} | Query install firmware request status. [**v1GetInstance**](CorelliumApi.md#v1GetInstance) | **GET** /v1/instances/{instanceId} | Get Instance [**v1GetInstanceConsole**](CorelliumApi.md#v1GetInstanceConsole) | **GET** /v1/instances/{instanceId}/console | Get console websocket URL [**v1GetInstanceConsoleLog**](CorelliumApi.md#v1GetInstanceConsoleLog) | **GET** /v1/instances/{instanceId}/consoleLog | Get Console Log @@ -102,9 +131,10 @@ Method | HTTP request | Description [**v1GetProjectVpnConfig**](CorelliumApi.md#v1GetProjectVpnConfig) | **GET** /v1/projects/{projectId}/vpnconfig/{format} | Get Project VPN Configuration [**v1GetProjects**](CorelliumApi.md#v1GetProjects) | **GET** /v1/projects | Get Projects [**v1GetResetLinkInfo**](CorelliumApi.md#v1GetResetLinkInfo) | **GET** /v1/users/reset-link-info | Send Password Reset Link Info -[**v1GetServiceProviderMetadata**](CorelliumApi.md#v1GetServiceProviderMetadata) | **GET** /v1/auth/providers/:providerId/spmetadata | Get service provider metadata xml from an auth provider [**v1GetSharedSnapshots**](CorelliumApi.md#v1GetSharedSnapshots) | **GET** /v1/snapshots/shared | Fetch shared snapshots [**v1GetSnapshot**](CorelliumApi.md#v1GetSnapshot) | **GET** /v1/snapshots/{snapshotId} | Get Snapshot +[**v1InstallFirmware**](CorelliumApi.md#v1InstallFirmware) | **POST** /v1/images/install-firmware | Installs a firmware for cluster-wide use +[**v1InstallFirmwareAssets**](CorelliumApi.md#v1InstallFirmwareAssets) | **POST** /v1/images/install-firmware-assets | Installs firmware assets for cluster-wide use [**v1InstancesInstanceIdMessagePost**](CorelliumApi.md#v1InstancesInstanceIdMessagePost) | **POST** /v1/instances/{instanceId}/message | Inject a message into an iOS VM [**v1InstancesInstanceIdNetdumpPcapGet**](CorelliumApi.md#v1InstancesInstanceIdNetdumpPcapGet) | **GET** /v1/instances/{instanceId}/netdump.pcap | Download a netdump pcap file [**v1InstancesInstanceIdNetworkMonitorPcapGet**](CorelliumApi.md#v1InstancesInstanceIdNetworkMonitorPcapGet) | **GET** /v1/instances/{instanceId}/networkMonitor.pcap | Download a Network Monitor pcap file @@ -112,11 +142,13 @@ Method | HTTP request | Description [**v1ListNetworkConnections**](CorelliumApi.md#v1ListNetworkConnections) | **GET** /v1/network/connections | List available network connections [**v1ListNetworkInterfaces**](CorelliumApi.md#v1ListNetworkInterfaces) | **GET** /v1/network/interfaces | List available physical network interfaces [**v1ListNetworkProviders**](CorelliumApi.md#v1ListNetworkProviders) | **GET** /v1/network/providers | List available network providers +[**v1ListStorageFiles**](CorelliumApi.md#v1ListStorageFiles) | **GET** /v1/storage/{id}/files/{path} | List Storage Files [**v1ListThreads**](CorelliumApi.md#v1ListThreads) | **GET** /v1/instances/{instanceId}/strace/thread-list | Get Running Threads (CoreTrace) [**v1MediaPlay**](CorelliumApi.md#v1MediaPlay) | **POST** /v1/instances/{instanceId}/media/play | Start playing media [**v1MediaStop**](CorelliumApi.md#v1MediaStop) | **POST** /v1/instances/{instanceId}/media/stop | Stop playing media [**v1PartialUpdateNetworkConnection**](CorelliumApi.md#v1PartialUpdateNetworkConnection) | **PATCH** /v1/network/connections/{id} | Update Network Connection (partial) [**v1PatchInstance**](CorelliumApi.md#v1PatchInstance) | **PATCH** /v1/instances/{instanceId} | Update Instance +[**v1PatchInstanceReadOnly**](CorelliumApi.md#v1PatchInstanceReadOnly) | **PATCH** /v1/instances/{instanceId}/read-only | Update Instance Read Only [**v1PauseInstance**](CorelliumApi.md#v1PauseInstance) | **POST** /v1/instances/{instanceId}/pause | Pause an Instance [**v1PostInstanceInput**](CorelliumApi.md#v1PostInstanceInput) | **POST** /v1/instances/{instanceId}/input | Provide Instance Input [**v1Ready**](CorelliumApi.md#v1Ready) | **GET** /v1/ready | API Status @@ -148,6 +180,7 @@ Method | HTTP request | Description [**v1StopInstance**](CorelliumApi.md#v1StopInstance) | **POST** /v1/instances/{instanceId}/stop | Stop an Instance [**v1StopNetdump**](CorelliumApi.md#v1StopNetdump) | **POST** /v1/instances/{instanceId}/netdump/disable | Stop Enhanced Network Monitor on an instance. [**v1StopNetworkMonitor**](CorelliumApi.md#v1StopNetworkMonitor) | **POST** /v1/instances/{instanceId}/sslsplit/disable | Stop Network Monitor on an instance. +[**v1StorageGet**](CorelliumApi.md#v1StorageGet) | **GET** /v1/storage | Get storage devices [**v1TeamChange**](CorelliumApi.md#v1TeamChange) | **PATCH** /v1/teams/{teamId} | Update team [**v1TeamCreate**](CorelliumApi.md#v1TeamCreate) | **POST** /v1/teams | Create team [**v1TeamDelete**](CorelliumApi.md#v1TeamDelete) | **DELETE** /v1/teams/{teamId} | Delete team @@ -174,11 +207,13 @@ Method | HTTP request | Description -## createAssessment +## apiV1InterconnectsGet -> AssessmentIdStatus createAssessment(instanceId, createAssessmentDto) +> GetInterconnectsResponse apiV1InterconnectsGet(opts) -Create assessment +Get all I/O Interconnects + +Get all I/O Interconnects ### Example @@ -190,9 +225,17 @@ let BearerAuth = defaultClient.authentications['BearerAuth']; BearerAuth.accessToken = "YOUR ACCESS TOKEN" let apiInstance = new CorelliumClient.CorelliumApi(); -let instanceId = "instanceId_example"; // String | ID of instance -let createAssessmentDto = new CorelliumClient.CreateAssessmentDto(); // CreateAssessmentDto | Create a new assessment -apiInstance.createAssessment(instanceId, createAssessmentDto).then((data) => { +let opts = { + 'limit': 3.4, // Number | Maximum number of results to return (1-1000, default: 100) + 'offset': 3.4, // Number | Number of results to skip (default: 0) + 'name': "name_example", // String | Filter by interconnect name (case insensitive) + 'protocol': "protocol_example", // String | Filter by protocol (comma separated) + 'type': "type_example", // String | Filter by type (comma separated) + 'status': "status_example", // String | Filter by status (comma separated) + 'project': "project_example", // String | Filter by project ID (comma separated) + 'sort': "sort_example" // String | Sort order (e.g. \"name\" for ascending, \"-name\" for descending, comma separated) +}; +apiInstance.apiV1InterconnectsGet(opts).then((data) => { console.log('API called successfully. Returned data: ' + data); }, (error) => { console.error(error); @@ -205,12 +248,18 @@ apiInstance.createAssessment(instanceId, createAssessmentDto).then((data) => { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **instanceId** | **String**| ID of instance | - **createAssessmentDto** | [**CreateAssessmentDto**](CreateAssessmentDto.md)| Create a new assessment | + **limit** | **Number**| Maximum number of results to return (1-1000, default: 100) | [optional] + **offset** | **Number**| Number of results to skip (default: 0) | [optional] + **name** | **String**| Filter by interconnect name (case insensitive) | [optional] + **protocol** | **String**| Filter by protocol (comma separated) | [optional] + **type** | **String**| Filter by type (comma separated) | [optional] + **status** | **String**| Filter by status (comma separated) | [optional] + **project** | **String**| Filter by project ID (comma separated) | [optional] + **sort** | **String**| Sort order (e.g. \"name\" for ascending, \"-name\" for descending, comma separated) | [optional] ### Return type -[**AssessmentIdStatus**](AssessmentIdStatus.md) +[**GetInterconnectsResponse**](GetInterconnectsResponse.md) ### Authorization @@ -218,15 +267,17 @@ Name | Type | Description | Notes ### HTTP request headers -- **Content-Type**: application/json +- **Content-Type**: Not defined - **Accept**: application/json -## deleteAssessment +## apiV1InterconnectsInterconnectIdDelete -> deleteAssessment(instanceId, assessmentId) +> apiV1InterconnectsInterconnectIdDelete(interconnectId) -Delete assessment +Delete I/O Interconnect + +Delete I/O Interconnect ### Example @@ -238,9 +289,8 @@ let BearerAuth = defaultClient.authentications['BearerAuth']; BearerAuth.accessToken = "YOUR ACCESS TOKEN" let apiInstance = new CorelliumClient.CorelliumApi(); -let instanceId = "instanceId_example"; // String | ID of instance -let assessmentId = "assessmentId_example"; // String | ID of assessment -apiInstance.deleteAssessment(instanceId, assessmentId).then(() => { +let interconnectId = "interconnectId_example"; // String | The interconnect identifier +apiInstance.apiV1InterconnectsInterconnectIdDelete(interconnectId).then(() => { console.log('API called successfully.'); }, (error) => { console.error(error); @@ -253,8 +303,7 @@ apiInstance.deleteAssessment(instanceId, assessmentId).then(() => { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **instanceId** | **String**| ID of instance | - **assessmentId** | **String**| ID of assessment | + **interconnectId** | **String**| The interconnect identifier | ### Return type @@ -270,11 +319,13 @@ null (empty response body) - **Accept**: application/json -## downloadReport +## apiV1InterconnectsInterconnectIdGet -> String downloadReport(instanceId, assessmentId, format) +> InterconnectResponse apiV1InterconnectsInterconnectIdGet(interconnectId) -Download report +Get Interconnect + +Get Interconnect ### Example @@ -286,10 +337,8 @@ let BearerAuth = defaultClient.authentications['BearerAuth']; BearerAuth.accessToken = "YOUR ACCESS TOKEN" let apiInstance = new CorelliumClient.CorelliumApi(); -let instanceId = "instanceId_example"; // String | ID of instance -let assessmentId = "assessmentId_example"; // String | ID of assessment -let format = "'html'"; // String | Assessment report download format -apiInstance.downloadReport(instanceId, assessmentId, format).then((data) => { +let interconnectId = "interconnectId_example"; // String | The interconnect identifier +apiInstance.apiV1InterconnectsInterconnectIdGet(interconnectId).then((data) => { console.log('API called successfully. Returned data: ' + data); }, (error) => { console.error(error); @@ -302,13 +351,11 @@ apiInstance.downloadReport(instanceId, assessmentId, format).then((data) => { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **instanceId** | **String**| ID of instance | - **assessmentId** | **String**| ID of assessment | - **format** | **String**| Assessment report download format | [default to 'html'] + **interconnectId** | **String**| The interconnect identifier | ### Return type -**String** +[**InterconnectResponse**](InterconnectResponse.md) ### Authorization @@ -317,14 +364,16 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: Not defined -- **Accept**: text/html, application/json +- **Accept**: application/json -## getAssessmentById +## apiV1InterconnectsInterconnectIdPatch -> Assessment getAssessmentById(instanceId, assessmentId) +> InterconnectResponse apiV1InterconnectsInterconnectIdPatch(interconnectId, partialUpdateInterconnectRequest) -Get assessment by ID +Partial Update Interconnect + +Update some interconnect details for the specified interconnect identifier. ### Example @@ -336,9 +385,11 @@ let BearerAuth = defaultClient.authentications['BearerAuth']; BearerAuth.accessToken = "YOUR ACCESS TOKEN" let apiInstance = new CorelliumClient.CorelliumApi(); -let instanceId = "instanceId_example"; // String | ID of instance -let assessmentId = "assessmentId_example"; // String | ID of assessment -apiInstance.getAssessmentById(instanceId, assessmentId).then((data) => { +let interconnectId = "interconnectId_example"; // String | The interconnect identifier +let partialUpdateInterconnectRequest = { + "name": "My Can Bus 2 is new to you" +}; // PartialUpdateInterconnectRequest | The interconnect details to update +apiInstance.apiV1InterconnectsInterconnectIdPatch(interconnectId, partialUpdateInterconnectRequest).then((data) => { console.log('API called successfully. Returned data: ' + data); }, (error) => { console.error(error); @@ -351,12 +402,12 @@ apiInstance.getAssessmentById(instanceId, assessmentId).then((data) => { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **instanceId** | **String**| ID of instance | - **assessmentId** | **String**| ID of assessment | + **interconnectId** | **String**| The interconnect identifier | + **partialUpdateInterconnectRequest** | [**PartialUpdateInterconnectRequest**](PartialUpdateInterconnectRequest.md)| The interconnect details to update | ### Return type -[**Assessment**](Assessment.md) +[**InterconnectResponse**](InterconnectResponse.md) ### Authorization @@ -364,15 +415,17 @@ Name | Type | Description | Notes ### HTTP request headers -- **Content-Type**: Not defined +- **Content-Type**: application/json - **Accept**: application/json -## getAssessmentsByInstanceId +## apiV1InterconnectsInterconnectIdPut -> [Assessment] getAssessmentsByInstanceId(instanceId) +> InterconnectResponse apiV1InterconnectsInterconnectIdPut(interconnectId, updateInterconnectRequest) -Get assessments by instanceId +Update Interconnect + +Update interconnect details for the specified interconnect identifier. ### Example @@ -384,8 +437,25 @@ let BearerAuth = defaultClient.authentications['BearerAuth']; BearerAuth.accessToken = "YOUR ACCESS TOKEN" let apiInstance = new CorelliumClient.CorelliumApi(); -let instanceId = "instanceId_example"; // String | ID of instance -apiInstance.getAssessmentsByInstanceId(instanceId).then((data) => { +let interconnectId = "interconnectId_example"; // String | The interconnect identifier +let updateInterconnectRequest = { + "name": "My Can Bus 2", + "interfaces": [ + { + "deviceId": "fa783ebb-b020-47fb-af74-6898ed59b068", + "interfaceId": "can1/0" + }, + { + "deviceId": "58db550e-bb96-403a-bcf0-86ff33e5e61d", + "interfaceId": "can1/0" + }, + { + "deviceId": "bd576aca-9e31-4c6a-817e-f2a38122536e", + "interfaceId": "can1/0" + } + ] +}; // UpdateInterconnectRequest | The interconnect details to update +apiInstance.apiV1InterconnectsInterconnectIdPut(interconnectId, updateInterconnectRequest).then((data) => { console.log('API called successfully. Returned data: ' + data); }, (error) => { console.error(error); @@ -398,11 +468,12 @@ apiInstance.getAssessmentsByInstanceId(instanceId).then((data) => { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **instanceId** | **String**| ID of instance | + **interconnectId** | **String**| The interconnect identifier | + **updateInterconnectRequest** | [**UpdateInterconnectRequest**](UpdateInterconnectRequest.md)| The interconnect details to update | ### Return type -[**[Assessment]**](Assessment.md) +[**InterconnectResponse**](InterconnectResponse.md) ### Authorization @@ -410,15 +481,17 @@ Name | Type | Description | Notes ### HTTP request headers -- **Content-Type**: Not defined +- **Content-Type**: application/json - **Accept**: application/json -## runTests +## apiV1InterconnectsPost -> AssessmentIdStatus runTests(instanceId, assessmentId, opts) +> InterconnectResponse apiV1InterconnectsPost(createInterconnectRequest) -Update assessment state and execute MATRIX tests +Create I/O Interconnect + +Create an I/O Interconnect for the specified project and attach virtual device interfaces. ### Example @@ -430,12 +503,17 @@ let BearerAuth = defaultClient.authentications['BearerAuth']; BearerAuth.accessToken = "YOUR ACCESS TOKEN" let apiInstance = new CorelliumClient.CorelliumApi(); -let instanceId = "instanceId_example"; // String | ID of instance -let assessmentId = "assessmentId_example"; // String | ID of assessment -let opts = { - 'testAssessmentDto': new CorelliumClient.TestAssessmentDto() // TestAssessmentDto | Execute MATRIX tests -}; -apiInstance.runTests(instanceId, assessmentId, opts).then((data) => { +let createInterconnectRequest = { + "name": "My Interconnect", + "protocol": "TCP", + "type": "hub", + "project": "123e4567-e89b-12d3-a456-426614174000", + "interfaces": [{ + "deviceId": "2b331aaa-de76-4169-8442-9910e9c436fb", + "interfaceId": "gpio/7" + }] +}; // CreateInterconnectRequest | The interconnect details +apiInstance.apiV1InterconnectsPost(createInterconnectRequest).then((data) => { console.log('API called successfully. Returned data: ' + data); }, (error) => { console.error(error); @@ -448,13 +526,11 @@ apiInstance.runTests(instanceId, assessmentId, opts).then((data) => { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **instanceId** | **String**| ID of instance | - **assessmentId** | **String**| ID of assessment | - **testAssessmentDto** | [**TestAssessmentDto**](TestAssessmentDto.md)| Execute MATRIX tests | [optional] + **createInterconnectRequest** | [**CreateInterconnectRequest**](CreateInterconnectRequest.md)| The interconnect details | ### Return type -[**AssessmentIdStatus**](AssessmentIdStatus.md) +[**InterconnectResponse**](InterconnectResponse.md) ### Authorization @@ -466,11 +542,13 @@ Name | Type | Description | Notes - **Accept**: application/json -## startMonitoring +## createAssessment -> startMonitoring(instanceId, assessmentId) +> AssessmentIdStatus createAssessment(instanceId, createAssessmentDto) -Update assessment state and begin device monitoring +Create assessment + +Create assessment ### Example @@ -483,9 +561,9 @@ BearerAuth.accessToken = "YOUR ACCESS TOKEN" let apiInstance = new CorelliumClient.CorelliumApi(); let instanceId = "instanceId_example"; // String | ID of instance -let assessmentId = "assessmentId_example"; // String | ID of assessment -apiInstance.startMonitoring(instanceId, assessmentId).then(() => { - console.log('API called successfully.'); +let createAssessmentDto = new CorelliumClient.CreateAssessmentDto(); // CreateAssessmentDto | Create a new assessment +apiInstance.createAssessment(instanceId, createAssessmentDto).then((data) => { + console.log('API called successfully. Returned data: ' + data); }, (error) => { console.error(error); }); @@ -498,11 +576,11 @@ apiInstance.startMonitoring(instanceId, assessmentId).then(() => { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **instanceId** | **String**| ID of instance | - **assessmentId** | **String**| ID of assessment | + **createAssessmentDto** | [**CreateAssessmentDto**](CreateAssessmentDto.md)| Create a new assessment | ### Return type -null (empty response body) +[**AssessmentIdStatus**](AssessmentIdStatus.md) ### Authorization @@ -510,15 +588,17 @@ null (empty response body) ### HTTP request headers -- **Content-Type**: Not defined +- **Content-Type**: application/json - **Accept**: application/json -## stopMonitoring +## deleteAssessment -> stopMonitoring(instanceId, assessmentId) +> deleteAssessment(instanceId, assessmentId) -Update assessment state and stop device monitoring +Delete assessment + +Delete assessment ### Example @@ -532,7 +612,7 @@ BearerAuth.accessToken = "YOUR ACCESS TOKEN" let apiInstance = new CorelliumClient.CorelliumApi(); let instanceId = "instanceId_example"; // String | ID of instance let assessmentId = "assessmentId_example"; // String | ID of assessment -apiInstance.stopMonitoring(instanceId, assessmentId).then(() => { +apiInstance.deleteAssessment(instanceId, assessmentId).then(() => { console.log('API called successfully.'); }, (error) => { console.error(error); @@ -562,25 +642,28 @@ null (empty response body) - **Accept**: application/json -## v1AcceptSharedSnapshot +## downloadReport -> Snapshot v1AcceptSharedSnapshot(postShareSnapshotRequestPayload) +> String downloadReport(instanceId, assessmentId, format) -Accept a snapshot shared with you +Download report -Accept a snapshot shared with you +Download report ### Example ```javascript import CorelliumClient from '@corellium/client-api'; +let defaultClient = CorelliumClient.ApiClient.instance; +// Configure Bearer (ApiToken or JWT) access token for authorization: BearerAuth +let BearerAuth = defaultClient.authentications['BearerAuth']; +BearerAuth.accessToken = "YOUR ACCESS TOKEN" let apiInstance = new CorelliumClient.CorelliumApi(); -let postShareSnapshotRequestPayload = { - "accessCode": "1S33IA5G71YJ5", - "password": "password" -}; // PostShareSnapshotRequestPayload | -apiInstance.v1AcceptSharedSnapshot(postShareSnapshotRequestPayload).then((data) => { +let instanceId = "instanceId_example"; // String | ID of instance +let assessmentId = "assessmentId_example"; // String | ID of assessment +let format = "'html'"; // String | Assessment report download format +apiInstance.downloadReport(instanceId, assessmentId, format).then((data) => { console.log('API called successfully. Returned data: ' + data); }, (error) => { console.error(error); @@ -593,27 +676,31 @@ apiInstance.v1AcceptSharedSnapshot(postShareSnapshotRequestPayload).then((data) Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **postShareSnapshotRequestPayload** | [**PostShareSnapshotRequestPayload**](PostShareSnapshotRequestPayload.md)| | + **instanceId** | **String**| ID of instance | + **assessmentId** | **String**| ID of assessment | + **format** | **String**| Assessment report download format | [default to 'html'] ### Return type -[**Snapshot**](Snapshot.md) +**String** ### Authorization -No authorization required +[BearerAuth](../README.md#BearerAuth) ### HTTP request headers -- **Content-Type**: application/json -- **Accept**: application/json +- **Content-Type**: Not defined +- **Accept**: text/html, application/json -## v1ActivityExport +## getAssessmentById -> ActivityExportResponse v1ActivityExport(activityExportDto) +> Assessment getAssessmentById(instanceId, assessmentId) -Start activity export +Get assessment by ID + +Get assessment by ID ### Example @@ -625,8 +712,9 @@ let BearerAuth = defaultClient.authentications['BearerAuth']; BearerAuth.accessToken = "YOUR ACCESS TOKEN" let apiInstance = new CorelliumClient.CorelliumApi(); -let activityExportDto = new CorelliumClient.ActivityExportDto(); // ActivityExportDto | -apiInstance.v1ActivityExport(activityExportDto).then((data) => { +let instanceId = "instanceId_example"; // String | ID of instance +let assessmentId = "assessmentId_example"; // String | ID of assessment +apiInstance.getAssessmentById(instanceId, assessmentId).then((data) => { console.log('API called successfully. Returned data: ' + data); }, (error) => { console.error(error); @@ -639,11 +727,12 @@ apiInstance.v1ActivityExport(activityExportDto).then((data) => { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **activityExportDto** | [**ActivityExportDto**](ActivityExportDto.md)| | + **instanceId** | **String**| ID of instance | + **assessmentId** | **String**| ID of assessment | ### Return type -[**ActivityExportResponse**](ActivityExportResponse.md) +[**Assessment**](Assessment.md) ### Authorization @@ -651,15 +740,17 @@ Name | Type | Description | Notes ### HTTP request headers -- **Content-Type**: application/json +- **Content-Type**: Not defined - **Accept**: application/json -## v1ActivityList +## getAssessmentsByInstanceId -> ActivityList v1ActivityList(opts) +> [Assessment] getAssessmentsByInstanceId(instanceId) -Get resource activities +Get assessments by instanceId + +Get assessments by instanceId ### Example @@ -671,10 +762,8 @@ let BearerAuth = defaultClient.authentications['BearerAuth']; BearerAuth.accessToken = "YOUR ACCESS TOKEN" let apiInstance = new CorelliumClient.CorelliumApi(); -let opts = { - 'request': {key: null} // ActivityRequest | -}; -apiInstance.v1ActivityList(opts).then((data) => { +let instanceId = "instanceId_example"; // String | ID of instance +apiInstance.getAssessmentsByInstanceId(instanceId).then((data) => { console.log('API called successfully. Returned data: ' + data); }, (error) => { console.error(error); @@ -687,11 +776,11 @@ apiInstance.v1ActivityList(opts).then((data) => { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **request** | [**ActivityRequest**](.md)| | [optional] + **instanceId** | **String**| ID of instance | ### Return type -[**ActivityList**](ActivityList.md) +[**[Assessment]**](Assessment.md) ### Authorization @@ -703,11 +792,13 @@ Name | Type | Description | Notes - **Accept**: application/json -## v1AddProjectKey +## runTests -> ProjectKey v1AddProjectKey(projectId, projectKey) +> AssessmentIdStatus runTests(instanceId, assessmentId, opts) -Add Project Authorized Key +Update assessment state and execute MATRIX tests + +Update assessment state and execute MATRIX tests ### Example @@ -719,13 +810,12 @@ let BearerAuth = defaultClient.authentications['BearerAuth']; BearerAuth.accessToken = "YOUR ACCESS TOKEN" let apiInstance = new CorelliumClient.CorelliumApi(); -let projectId = "projectId_example"; // String | Project ID - uuid -let projectKey = { - "kind": "ssh", - "label": "My New Key", - "key": "ssh-ed25519 " -}; // ProjectKey | Key to add -apiInstance.v1AddProjectKey(projectId, projectKey).then((data) => { +let instanceId = "instanceId_example"; // String | ID of instance +let assessmentId = "assessmentId_example"; // String | ID of assessment +let opts = { + 'testAssessmentDto': new CorelliumClient.TestAssessmentDto() // TestAssessmentDto | Execute MATRIX tests +}; +apiInstance.runTests(instanceId, assessmentId, opts).then((data) => { console.log('API called successfully. Returned data: ' + data); }, (error) => { console.error(error); @@ -738,12 +828,13 @@ apiInstance.v1AddProjectKey(projectId, projectKey).then((data) => { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **projectId** | **String**| Project ID - uuid | - **projectKey** | [**ProjectKey**](ProjectKey.md)| Key to add | + **instanceId** | **String**| ID of instance | + **assessmentId** | **String**| ID of assessment | + **testAssessmentDto** | [**TestAssessmentDto**](TestAssessmentDto.md)| Execute MATRIX tests | [optional] ### Return type -[**ProjectKey**](ProjectKey.md) +[**AssessmentIdStatus**](AssessmentIdStatus.md) ### Authorization @@ -755,13 +846,13 @@ Name | Type | Description | Notes - **Accept**: application/json -## v1AddTeamRoleToProject +## startMonitoring -> v1AddTeamRoleToProject(projectId, teamId, roleId) +> startMonitoring(instanceId, assessmentId) -Add team role to project +Update assessment state and begin device monitoring -This endpoint is available for Enterprise accounts only +Update assessment state and begin device monitoring ### Example @@ -773,10 +864,9 @@ let BearerAuth = defaultClient.authentications['BearerAuth']; BearerAuth.accessToken = "YOUR ACCESS TOKEN" let apiInstance = new CorelliumClient.CorelliumApi(); -let projectId = "projectId_example"; // String | Project ID - uuid -let teamId = "teamId_example"; // String | Team ID - uuid -let roleId = "roleId_example"; // String | Role ID - uuid -apiInstance.v1AddTeamRoleToProject(projectId, teamId, roleId).then(() => { +let instanceId = "instanceId_example"; // String | ID of instance +let assessmentId = "assessmentId_example"; // String | ID of assessment +apiInstance.startMonitoring(instanceId, assessmentId).then(() => { console.log('API called successfully.'); }, (error) => { console.error(error); @@ -789,9 +879,8 @@ apiInstance.v1AddTeamRoleToProject(projectId, teamId, roleId).then(() => { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **projectId** | **String**| Project ID - uuid | - **teamId** | **String**| Team ID - uuid | - **roleId** | **String**| Role ID - uuid | + **instanceId** | **String**| ID of instance | + **assessmentId** | **String**| ID of assessment | ### Return type @@ -807,13 +896,13 @@ null (empty response body) - **Accept**: application/json -## v1AddUserRoleToProject +## stopMonitoring -> v1AddUserRoleToProject(projectId, userId, roleId) +> stopMonitoring(instanceId, assessmentId) -Add user role to project +Update assessment state and stop device monitoring -This endpoint is available for Enterprise accounts only +Update assessment state and stop device monitoring ### Example @@ -825,10 +914,9 @@ let BearerAuth = defaultClient.authentications['BearerAuth']; BearerAuth.accessToken = "YOUR ACCESS TOKEN" let apiInstance = new CorelliumClient.CorelliumApi(); -let projectId = "projectId_example"; // String | Project ID - uuid -let userId = "userId_example"; // String | User ID - uuid -let roleId = "roleId_example"; // String | Role ID - uuid -apiInstance.v1AddUserRoleToProject(projectId, userId, roleId).then(() => { +let instanceId = "instanceId_example"; // String | ID of instance +let assessmentId = "assessmentId_example"; // String | ID of assessment +apiInstance.stopMonitoring(instanceId, assessmentId).then(() => { console.log('API called successfully.'); }, (error) => { console.error(error); @@ -841,9 +929,8 @@ apiInstance.v1AddUserRoleToProject(projectId, userId, roleId).then(() => { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **projectId** | **String**| Project ID - uuid | - **userId** | **String**| User ID - uuid | - **roleId** | **String**| Role ID - uuid | + **instanceId** | **String**| ID of instance | + **assessmentId** | **String**| ID of assessment | ### Return type @@ -859,29 +946,1073 @@ null (empty response body) - **Accept**: application/json -## v1AddUserToTeam +## v1AcceptSharedSnapshot -> v1AddUserToTeam(teamId, userId) +> Snapshot v1AcceptSharedSnapshot(postShareSnapshotRequestPayload) -Add user to team +Accept a snapshot shared with you -This endpoint is available for Enterprise accounts only +Accept a snapshot shared with you ### Example ```javascript import CorelliumClient from '@corellium/client-api'; -let defaultClient = CorelliumClient.ApiClient.instance; -// Configure Bearer (ApiToken or JWT) access token for authorization: BearerAuth -let BearerAuth = defaultClient.authentications['BearerAuth']; -BearerAuth.accessToken = "YOUR ACCESS TOKEN" let apiInstance = new CorelliumClient.CorelliumApi(); -let teamId = "teamId_example"; // String | Team ID - uuid -let userId = "userId_example"; // String | User ID - uuid -apiInstance.v1AddUserToTeam(teamId, userId).then(() => { - console.log('API called successfully.'); -}, (error) => { +let postShareSnapshotRequestPayload = { + "accessCode": "1S33IA5G71YJ5", + "password": "password" +}; // PostShareSnapshotRequestPayload | +apiInstance.v1AcceptSharedSnapshot(postShareSnapshotRequestPayload).then((data) => { + console.log('API called successfully. Returned data: ' + data); +}, (error) => { + console.error(error); +}); + +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **postShareSnapshotRequestPayload** | [**PostShareSnapshotRequestPayload**](PostShareSnapshotRequestPayload.md)| | + +### Return type + +[**Snapshot**](Snapshot.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + + +## v1ActivityExport + +> ActivityExportResponse v1ActivityExport(activityExportDto) + +Start activity export + +Start activity export + +### Example + +```javascript +import CorelliumClient from '@corellium/client-api'; +let defaultClient = CorelliumClient.ApiClient.instance; +// Configure Bearer (ApiToken or JWT) access token for authorization: BearerAuth +let BearerAuth = defaultClient.authentications['BearerAuth']; +BearerAuth.accessToken = "YOUR ACCESS TOKEN" + +let apiInstance = new CorelliumClient.CorelliumApi(); +let activityExportDto = new CorelliumClient.ActivityExportDto(); // ActivityExportDto | +apiInstance.v1ActivityExport(activityExportDto).then((data) => { + console.log('API called successfully. Returned data: ' + data); +}, (error) => { + console.error(error); +}); + +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **activityExportDto** | [**ActivityExportDto**](ActivityExportDto.md)| | + +### Return type + +[**ActivityExportResponse**](ActivityExportResponse.md) + +### Authorization + +[BearerAuth](../README.md#BearerAuth) + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + + +## v1ActivityList + +> ActivityList v1ActivityList(opts) + +Get resource activities + +Get resource activities + +### Example + +```javascript +import CorelliumClient from '@corellium/client-api'; +let defaultClient = CorelliumClient.ApiClient.instance; +// Configure Bearer (ApiToken or JWT) access token for authorization: BearerAuth +let BearerAuth = defaultClient.authentications['BearerAuth']; +BearerAuth.accessToken = "YOUR ACCESS TOKEN" + +let apiInstance = new CorelliumClient.CorelliumApi(); +let opts = { + 'request': {key: null} // ActivityRequest | +}; +apiInstance.v1ActivityList(opts).then((data) => { + console.log('API called successfully. Returned data: ' + data); +}, (error) => { + console.error(error); +}); + +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **request** | [**ActivityRequest**](.md)| | [optional] + +### Return type + +[**ActivityList**](ActivityList.md) + +### Authorization + +[BearerAuth](../README.md#BearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + + +## v1AddProjectKey + +> ProjectKey v1AddProjectKey(projectId, projectKey) + +Add Project Authorized Key + +Add Project Authorized Key + +### Example + +```javascript +import CorelliumClient from '@corellium/client-api'; +let defaultClient = CorelliumClient.ApiClient.instance; +// Configure Bearer (ApiToken or JWT) access token for authorization: BearerAuth +let BearerAuth = defaultClient.authentications['BearerAuth']; +BearerAuth.accessToken = "YOUR ACCESS TOKEN" + +let apiInstance = new CorelliumClient.CorelliumApi(); +let projectId = "projectId_example"; // String | Project ID - uuid +let projectKey = { + "kind": "ssh", + "label": "My New Key", + "key": "ssh-ed25519 " +}; // ProjectKey | Key to add +apiInstance.v1AddProjectKey(projectId, projectKey).then((data) => { + console.log('API called successfully. Returned data: ' + data); +}, (error) => { + console.error(error); +}); + +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **projectId** | **String**| Project ID - uuid | + **projectKey** | [**ProjectKey**](ProjectKey.md)| Key to add | + +### Return type + +[**ProjectKey**](ProjectKey.md) + +### Authorization + +[BearerAuth](../README.md#BearerAuth) + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + + +## v1AddTeamRoleToProject + +> v1AddTeamRoleToProject(projectId, teamId, roleId) + +Add team role to project + +This endpoint is available for Enterprise accounts only + +### Example + +```javascript +import CorelliumClient from '@corellium/client-api'; +let defaultClient = CorelliumClient.ApiClient.instance; +// Configure Bearer (ApiToken or JWT) access token for authorization: BearerAuth +let BearerAuth = defaultClient.authentications['BearerAuth']; +BearerAuth.accessToken = "YOUR ACCESS TOKEN" + +let apiInstance = new CorelliumClient.CorelliumApi(); +let projectId = "projectId_example"; // String | Project ID - uuid +let teamId = "teamId_example"; // String | Team ID - uuid +let roleId = "roleId_example"; // String | Role ID +apiInstance.v1AddTeamRoleToProject(projectId, teamId, roleId).then(() => { + console.log('API called successfully.'); +}, (error) => { + console.error(error); +}); + +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **projectId** | **String**| Project ID - uuid | + **teamId** | **String**| Team ID - uuid | + **roleId** | **String**| Role ID | + +### Return type + +null (empty response body) + +### Authorization + +[BearerAuth](../README.md#BearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + + +## v1AddUserRoleToProject + +> v1AddUserRoleToProject(projectId, userId, roleId) + +Add user role to project + +This endpoint is available for Enterprise accounts only + +### Example + +```javascript +import CorelliumClient from '@corellium/client-api'; +let defaultClient = CorelliumClient.ApiClient.instance; +// Configure Bearer (ApiToken or JWT) access token for authorization: BearerAuth +let BearerAuth = defaultClient.authentications['BearerAuth']; +BearerAuth.accessToken = "YOUR ACCESS TOKEN" + +let apiInstance = new CorelliumClient.CorelliumApi(); +let projectId = "projectId_example"; // String | Project ID - uuid +let userId = "userId_example"; // String | User ID - uuid +let roleId = "roleId_example"; // String | Role ID +apiInstance.v1AddUserRoleToProject(projectId, userId, roleId).then(() => { + console.log('API called successfully.'); +}, (error) => { + console.error(error); +}); + +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **projectId** | **String**| Project ID - uuid | + **userId** | **String**| User ID - uuid | + **roleId** | **String**| Role ID | + +### Return type + +null (empty response body) + +### Authorization + +[BearerAuth](../README.md#BearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + + +## v1AddUserToTeam + +> v1AddUserToTeam(teamId, userId) + +Add user to team + +This endpoint is available for Enterprise accounts only + +### Example + +```javascript +import CorelliumClient from '@corellium/client-api'; +let defaultClient = CorelliumClient.ApiClient.instance; +// Configure Bearer (ApiToken or JWT) access token for authorization: BearerAuth +let BearerAuth = defaultClient.authentications['BearerAuth']; +BearerAuth.accessToken = "YOUR ACCESS TOKEN" + +let apiInstance = new CorelliumClient.CorelliumApi(); +let teamId = "teamId_example"; // String | Team ID - uuid +let userId = "userId_example"; // String | User ID - uuid +apiInstance.v1AddUserToTeam(teamId, userId).then(() => { + console.log('API called successfully.'); +}, (error) => { + console.error(error); +}); + +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **teamId** | **String**| Team ID - uuid | + **userId** | **String**| User ID - uuid | + +### Return type + +null (empty response body) + +### Authorization + +[BearerAuth](../README.md#BearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + + +## v1AgentAppReady + +> AgentAppReadyResponse v1AgentAppReady(instanceId) + +Check if App subsystem is ready + +Check if App subsystem is ready + +### Example + +```javascript +import CorelliumClient from '@corellium/client-api'; +let defaultClient = CorelliumClient.ApiClient.instance; +// Configure Bearer (ApiToken or JWT) access token for authorization: BearerAuth +let BearerAuth = defaultClient.authentications['BearerAuth']; +BearerAuth.accessToken = "YOUR ACCESS TOKEN" + +let apiInstance = new CorelliumClient.CorelliumApi(); +let instanceId = "instanceId_example"; // String | Instance ID - uuid +apiInstance.v1AgentAppReady(instanceId).then((data) => { + console.log('API called successfully. Returned data: ' + data); +}, (error) => { + console.error(error); +}); + +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **instanceId** | **String**| Instance ID - uuid | + +### Return type + +[**AgentAppReadyResponse**](AgentAppReadyResponse.md) + +### Authorization + +[BearerAuth](../README.md#BearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + + +## v1AgentDeleteFile + +> v1AgentDeleteFile(instanceId, filePath) + +Delete a File on VM + +Delete a File on VM + +### Example + +```javascript +import CorelliumClient from '@corellium/client-api'; +let defaultClient = CorelliumClient.ApiClient.instance; +// Configure Bearer (ApiToken or JWT) access token for authorization: BearerAuth +let BearerAuth = defaultClient.authentications['BearerAuth']; +BearerAuth.accessToken = "YOUR ACCESS TOKEN" + +let apiInstance = new CorelliumClient.CorelliumApi(); +let instanceId = "instanceId_example"; // String | Instance ID - uuid +let filePath = "filePath_example"; // String | File Path on VM +apiInstance.v1AgentDeleteFile(instanceId, filePath).then(() => { + console.log('API called successfully.'); +}, (error) => { + console.error(error); +}); + +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **instanceId** | **String**| Instance ID - uuid | + **filePath** | **String**| File Path on VM | + +### Return type + +null (empty response body) + +### Authorization + +[BearerAuth](../README.md#BearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + + +## v1AgentGetFile + +> File v1AgentGetFile(instanceId, filePath) + +Download a File from VM + +Download a File from VM + +### Example + +```javascript +import CorelliumClient from '@corellium/client-api'; +let defaultClient = CorelliumClient.ApiClient.instance; +// Configure Bearer (ApiToken or JWT) access token for authorization: BearerAuth +let BearerAuth = defaultClient.authentications['BearerAuth']; +BearerAuth.accessToken = "YOUR ACCESS TOKEN" + +let apiInstance = new CorelliumClient.CorelliumApi(); +let instanceId = "instanceId_example"; // String | Instance ID - uuid +let filePath = "filePath_example"; // String | File Path on VM +apiInstance.v1AgentGetFile(instanceId, filePath).then((data) => { + console.log('API called successfully. Returned data: ' + data); +}, (error) => { + console.error(error); +}); + +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **instanceId** | **String**| Instance ID - uuid | + **filePath** | **String**| File Path on VM | + +### Return type + +**File** + +### Authorization + +[BearerAuth](../README.md#BearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/octet-stream, application/json + + +## v1AgentGetTempFilename + +> String v1AgentGetTempFilename(instanceId) + +Get the path for a new temp file + +Returns a temporary random filename that is guranteed to be unique on the VMs filesystem at the time of invocation of this method. + +### Example + +```javascript +import CorelliumClient from '@corellium/client-api'; +let defaultClient = CorelliumClient.ApiClient.instance; +// Configure Bearer (ApiToken or JWT) access token for authorization: BearerAuth +let BearerAuth = defaultClient.authentications['BearerAuth']; +BearerAuth.accessToken = "YOUR ACCESS TOKEN" + +let apiInstance = new CorelliumClient.CorelliumApi(); +let instanceId = "instanceId_example"; // String | Instance ID - uuid +apiInstance.v1AgentGetTempFilename(instanceId).then((data) => { + console.log('API called successfully. Returned data: ' + data); +}, (error) => { + console.error(error); +}); + +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **instanceId** | **String**| Instance ID - uuid | + +### Return type + +**String** + +### Authorization + +[BearerAuth](../README.md#BearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + + +## v1AgentInstallApp + +> v1AgentInstallApp(instanceId, agentInstallBody) + +Install App at path + +Installs the app located at path which must be present on the VM filesystem + +### Example + +```javascript +import CorelliumClient from '@corellium/client-api'; +let defaultClient = CorelliumClient.ApiClient.instance; +// Configure Bearer (ApiToken or JWT) access token for authorization: BearerAuth +let BearerAuth = defaultClient.authentications['BearerAuth']; +BearerAuth.accessToken = "YOUR ACCESS TOKEN" + +let apiInstance = new CorelliumClient.CorelliumApi(); +let instanceId = "instanceId_example"; // String | Instance ID - uuid +let agentInstallBody = { + "path": "/tmp/test.ipa" +}; // AgentInstallBody | App parameters +apiInstance.v1AgentInstallApp(instanceId, agentInstallBody).then(() => { + console.log('API called successfully.'); +}, (error) => { + console.error(error); +}); + +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **instanceId** | **String**| Instance ID - uuid | + **agentInstallBody** | [**AgentInstallBody**](AgentInstallBody.md)| App parameters | + +### Return type + +null (empty response body) + +### Authorization + +[BearerAuth](../README.md#BearerAuth) + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + + +## v1AgentInstallProfile + +> v1AgentInstallProfile(instanceId, body) + +Install a Profile to VM + +Install a Profile to VM + +### Example + +```javascript +import CorelliumClient from '@corellium/client-api'; +let defaultClient = CorelliumClient.ApiClient.instance; +// Configure Bearer (ApiToken or JWT) access token for authorization: BearerAuth +let BearerAuth = defaultClient.authentications['BearerAuth']; +BearerAuth.accessToken = "YOUR ACCESS TOKEN" + +let apiInstance = new CorelliumClient.CorelliumApi(); +let instanceId = "instanceId_example"; // String | Instance ID - uuid +let body = "/path/to/file"; // File | Profile to Install +apiInstance.v1AgentInstallProfile(instanceId, body).then(() => { + console.log('API called successfully.'); +}, (error) => { + console.error(error); +}); + +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **instanceId** | **String**| Instance ID - uuid | + **body** | **File**| Profile to Install | + +### Return type + +null (empty response body) + +### Authorization + +[BearerAuth](../README.md#BearerAuth) + +### HTTP request headers + +- **Content-Type**: application/octet-stream +- **Accept**: application/json + + +## v1AgentKillApp + +> Object v1AgentKillApp(instanceId, bundleId) + +Kill an App + +Kill an App + +### Example + +```javascript +import CorelliumClient from '@corellium/client-api'; +let defaultClient = CorelliumClient.ApiClient.instance; +// Configure Bearer (ApiToken or JWT) access token for authorization: BearerAuth +let BearerAuth = defaultClient.authentications['BearerAuth']; +BearerAuth.accessToken = "YOUR ACCESS TOKEN" + +let apiInstance = new CorelliumClient.CorelliumApi(); +let instanceId = "instanceId_example"; // String | Instance ID - uuid +let bundleId = "bundleId_example"; // String | App Bundle ID +apiInstance.v1AgentKillApp(instanceId, bundleId).then((data) => { + console.log('API called successfully. Returned data: ' + data); +}, (error) => { + console.error(error); +}); + +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **instanceId** | **String**| Instance ID - uuid | + **bundleId** | **String**| App Bundle ID | + +### Return type + +**Object** + +### Authorization + +[BearerAuth](../README.md#BearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + + +## v1AgentListAppIcons + +> [AgentIcons] v1AgentListAppIcons(instanceId, bundleID) + +List App Icons + +List App Icons as base64 data + +### Example + +```javascript +import CorelliumClient from '@corellium/client-api'; +let defaultClient = CorelliumClient.ApiClient.instance; +// Configure Bearer (ApiToken or JWT) access token for authorization: BearerAuth +let BearerAuth = defaultClient.authentications['BearerAuth']; +BearerAuth.accessToken = "YOUR ACCESS TOKEN" + +let apiInstance = new CorelliumClient.CorelliumApi(); +let instanceId = "instanceId_example"; // String | Instance ID - uuid +let bundleID = ["null"]; // [String] | App Bundle ID +apiInstance.v1AgentListAppIcons(instanceId, bundleID).then((data) => { + console.log('API called successfully. Returned data: ' + data); +}, (error) => { + console.error(error); +}); + +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **instanceId** | **String**| Instance ID - uuid | + **bundleID** | [**[String]**](String.md)| App Bundle ID | + +### Return type + +[**[AgentIcons]**](AgentIcons.md) + +### Authorization + +[BearerAuth](../README.md#BearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + + +## v1AgentListApps + +> AgentAppsList v1AgentListApps(instanceId) + +List Apps + +List Apps + +### Example + +```javascript +import CorelliumClient from '@corellium/client-api'; +let defaultClient = CorelliumClient.ApiClient.instance; +// Configure Bearer (ApiToken or JWT) access token for authorization: BearerAuth +let BearerAuth = defaultClient.authentications['BearerAuth']; +BearerAuth.accessToken = "YOUR ACCESS TOKEN" + +let apiInstance = new CorelliumClient.CorelliumApi(); +let instanceId = "instanceId_example"; // String | Instance ID - uuid +apiInstance.v1AgentListApps(instanceId).then((data) => { + console.log('API called successfully. Returned data: ' + data); +}, (error) => { + console.error(error); +}); + +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **instanceId** | **String**| Instance ID - uuid | + +### Return type + +[**AgentAppsList**](AgentAppsList.md) + +### Authorization + +[BearerAuth](../README.md#BearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + + +## v1AgentListAppsStatus + +> AgentAppsList v1AgentListAppsStatus(instanceId) + +List Apps Status + +List Apps Status + +### Example + +```javascript +import CorelliumClient from '@corellium/client-api'; +let defaultClient = CorelliumClient.ApiClient.instance; +// Configure Bearer (ApiToken or JWT) access token for authorization: BearerAuth +let BearerAuth = defaultClient.authentications['BearerAuth']; +BearerAuth.accessToken = "YOUR ACCESS TOKEN" + +let apiInstance = new CorelliumClient.CorelliumApi(); +let instanceId = "instanceId_example"; // String | Instance ID - uuid +apiInstance.v1AgentListAppsStatus(instanceId).then((data) => { + console.log('API called successfully. Returned data: ' + data); +}, (error) => { + console.error(error); +}); + +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **instanceId** | **String**| Instance ID - uuid | + +### Return type + +[**AgentAppsList**](AgentAppsList.md) + +### Authorization + +[BearerAuth](../README.md#BearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + + +## v1AgentListProfiles + +> AgentProfilesReturn v1AgentListProfiles(instanceId) + +List Profiles + +List Profiles + +### Example + +```javascript +import CorelliumClient from '@corellium/client-api'; +let defaultClient = CorelliumClient.ApiClient.instance; +// Configure Bearer (ApiToken or JWT) access token for authorization: BearerAuth +let BearerAuth = defaultClient.authentications['BearerAuth']; +BearerAuth.accessToken = "YOUR ACCESS TOKEN" + +let apiInstance = new CorelliumClient.CorelliumApi(); +let instanceId = "instanceId_example"; // String | Instance ID - uuid +apiInstance.v1AgentListProfiles(instanceId).then((data) => { + console.log('API called successfully. Returned data: ' + data); +}, (error) => { + console.error(error); +}); + +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **instanceId** | **String**| Instance ID - uuid | + +### Return type + +[**AgentProfilesReturn**](AgentProfilesReturn.md) + +### Authorization + +[BearerAuth](../README.md#BearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + + +## v1AgentRunApp + +> Object v1AgentRunApp(instanceId, bundleId) + +Run an App + +Run an App + +### Example + +```javascript +import CorelliumClient from '@corellium/client-api'; +let defaultClient = CorelliumClient.ApiClient.instance; +// Configure Bearer (ApiToken or JWT) access token for authorization: BearerAuth +let BearerAuth = defaultClient.authentications['BearerAuth']; +BearerAuth.accessToken = "YOUR ACCESS TOKEN" + +let apiInstance = new CorelliumClient.CorelliumApi(); +let instanceId = "instanceId_example"; // String | Instance ID - uuid +let bundleId = "bundleId_example"; // String | App Bundle ID +apiInstance.v1AgentRunApp(instanceId, bundleId).then((data) => { + console.log('API called successfully. Returned data: ' + data); +}, (error) => { + console.error(error); +}); + +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **instanceId** | **String**| Instance ID - uuid | + **bundleId** | **String**| App Bundle ID | + +### Return type + +**Object** + +### Authorization + +[BearerAuth](../README.md#BearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + + +## v1AgentSetFileAttributes + +> v1AgentSetFileAttributes(instanceId, filePath, fileChanges) + +Change Attrs of a File on VM + +Change Attrs of a File on VM + +### Example + +```javascript +import CorelliumClient from '@corellium/client-api'; +let defaultClient = CorelliumClient.ApiClient.instance; +// Configure Bearer (ApiToken or JWT) access token for authorization: BearerAuth +let BearerAuth = defaultClient.authentications['BearerAuth']; +BearerAuth.accessToken = "YOUR ACCESS TOKEN" + +let apiInstance = new CorelliumClient.CorelliumApi(); +let instanceId = "instanceId_example"; // String | Instance ID - uuid +let filePath = "filePath_example"; // String | File Path on VM +let fileChanges = new CorelliumClient.FileChanges(); // FileChanges | New attrs +apiInstance.v1AgentSetFileAttributes(instanceId, filePath, fileChanges).then(() => { + console.log('API called successfully.'); +}, (error) => { + console.error(error); +}); + +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **instanceId** | **String**| Instance ID - uuid | + **filePath** | **String**| File Path on VM | + **fileChanges** | [**FileChanges**](FileChanges.md)| New attrs | + +### Return type + +null (empty response body) + +### Authorization + +[BearerAuth](../README.md#BearerAuth) + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + + +## v1AgentSystemGetAdbAuth + +> AgentSystemAdbAuth v1AgentSystemGetAdbAuth(instanceId) + +Get ADB Auth Setting (AOSP only) + +Get ADB Auth Setting (AOSP only) + +### Example + +```javascript +import CorelliumClient from '@corellium/client-api'; +let defaultClient = CorelliumClient.ApiClient.instance; +// Configure Bearer (ApiToken or JWT) access token for authorization: BearerAuth +let BearerAuth = defaultClient.authentications['BearerAuth']; +BearerAuth.accessToken = "YOUR ACCESS TOKEN" + +let apiInstance = new CorelliumClient.CorelliumApi(); +let instanceId = "instanceId_example"; // String | Instance ID - uuid +apiInstance.v1AgentSystemGetAdbAuth(instanceId).then((data) => { + console.log('API called successfully. Returned data: ' + data); +}, (error) => { + console.error(error); +}); + +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **instanceId** | **String**| Instance ID - uuid | + +### Return type + +[**AgentSystemAdbAuth**](AgentSystemAdbAuth.md) + +### Authorization + +[BearerAuth](../README.md#BearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + + +## v1AgentSystemGetNetwork + +> AgentValueReturn v1AgentSystemGetNetwork(instanceId) + +Get IP of eth0 (AOSP only) + +Get IP of eth0 (AOSP only) + +### Example + +```javascript +import CorelliumClient from '@corellium/client-api'; +let defaultClient = CorelliumClient.ApiClient.instance; +// Configure Bearer (ApiToken or JWT) access token for authorization: BearerAuth +let BearerAuth = defaultClient.authentications['BearerAuth']; +BearerAuth.accessToken = "YOUR ACCESS TOKEN" + +let apiInstance = new CorelliumClient.CorelliumApi(); +let instanceId = "instanceId_example"; // String | Instance ID - uuid +apiInstance.v1AgentSystemGetNetwork(instanceId).then((data) => { + console.log('API called successfully. Returned data: ' + data); +}, (error) => { console.error(error); }); @@ -892,12 +2023,11 @@ apiInstance.v1AddUserToTeam(teamId, userId).then(() => { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **teamId** | **String**| Team ID - uuid | - **userId** | **String**| User ID - uuid | + **instanceId** | **String**| Instance ID - uuid | ### Return type -null (empty response body) +[**AgentValueReturn**](AgentValueReturn.md) ### Authorization @@ -909,11 +2039,13 @@ null (empty response body) - **Accept**: application/json -## v1AgentAppReady +## v1AgentSystemGetProp -> AgentAppReadyResponse v1AgentAppReady(instanceId) +> AgentValueReturn v1AgentSystemGetProp(instanceId, agentSystemGetPropBody) -Check if App subsystem is ready +Get System Property (AOSP only) + +Get System Property (AOSP only) ### Example @@ -926,7 +2058,10 @@ BearerAuth.accessToken = "YOUR ACCESS TOKEN" let apiInstance = new CorelliumClient.CorelliumApi(); let instanceId = "instanceId_example"; // String | Instance ID - uuid -apiInstance.v1AgentAppReady(instanceId).then((data) => { +let agentSystemGetPropBody = { + "property": "corellium.opengapps" +}; // AgentSystemGetPropBody | Parameters +apiInstance.v1AgentSystemGetProp(instanceId, agentSystemGetPropBody).then((data) => { console.log('API called successfully. Returned data: ' + data); }, (error) => { console.error(error); @@ -940,10 +2075,11 @@ apiInstance.v1AgentAppReady(instanceId).then((data) => { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **instanceId** | **String**| Instance ID - uuid | + **agentSystemGetPropBody** | [**AgentSystemGetPropBody**](AgentSystemGetPropBody.md)| Parameters | ### Return type -[**AgentAppReadyResponse**](AgentAppReadyResponse.md) +[**AgentValueReturn**](AgentValueReturn.md) ### Authorization @@ -951,15 +2087,17 @@ Name | Type | Description | Notes ### HTTP request headers -- **Content-Type**: Not defined +- **Content-Type**: application/json - **Accept**: application/json -## v1AgentDeleteFile +## v1AgentSystemInstallOpenGApps -> v1AgentDeleteFile(instanceId, filePath) +> v1AgentSystemInstallOpenGApps(instanceId, body) -Delete a File on VM +Install OpenGApps (AOSP only) + +Install OpenGApps (AOSP only) ### Example @@ -972,8 +2110,12 @@ BearerAuth.accessToken = "YOUR ACCESS TOKEN" let apiInstance = new CorelliumClient.CorelliumApi(); let instanceId = "instanceId_example"; // String | Instance ID - uuid -let filePath = "filePath_example"; // String | File Path on VM -apiInstance.v1AgentDeleteFile(instanceId, filePath).then(() => { +let body = { + "url": "http://downloads.sourceforge.net/project/opengapps/arm64/20220119/open_gapps-arm64-11.0-pico-20220119.zip?r=&ts=1653516572&use_mirror=gigenet", + "hash": "58398bf7628f38ef07eaeb3abe26f3ebf0474f4d5ecdac0852bd5de3c15cc828", + "fingerprint": "google/flame/flame:11/RP1A.200720.009/6720564:user/release-keys__2020-09-05" +}; // Object | Installation parameters +apiInstance.v1AgentSystemInstallOpenGApps(instanceId, body).then(() => { console.log('API called successfully.'); }, (error) => { console.error(error); @@ -987,7 +2129,7 @@ apiInstance.v1AgentDeleteFile(instanceId, filePath).then(() => { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **instanceId** | **String**| Instance ID - uuid | - **filePath** | **String**| File Path on VM | + **body** | **Object**| Installation parameters | ### Return type @@ -999,15 +2141,17 @@ null (empty response body) ### HTTP request headers -- **Content-Type**: Not defined +- **Content-Type**: application/json - **Accept**: application/json -## v1AgentGetFile +## v1AgentSystemLock -> File v1AgentGetFile(instanceId, filePath) +> v1AgentSystemLock(instanceId) -Download a File from VM +Lock Device (iOS Only) + +Lock Device (iOS Only) ### Example @@ -1020,9 +2164,8 @@ BearerAuth.accessToken = "YOUR ACCESS TOKEN" let apiInstance = new CorelliumClient.CorelliumApi(); let instanceId = "instanceId_example"; // String | Instance ID - uuid -let filePath = "filePath_example"; // String | File Path on VM -apiInstance.v1AgentGetFile(instanceId, filePath).then((data) => { - console.log('API called successfully. Returned data: ' + data); +apiInstance.v1AgentSystemLock(instanceId).then(() => { + console.log('API called successfully.'); }, (error) => { console.error(error); }); @@ -1035,11 +2178,10 @@ apiInstance.v1AgentGetFile(instanceId, filePath).then((data) => { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **instanceId** | **String**| Instance ID - uuid | - **filePath** | **String**| File Path on VM | ### Return type -**File** +null (empty response body) ### Authorization @@ -1048,16 +2190,16 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: Not defined -- **Accept**: application/octet-stream, application/json +- **Accept**: application/json -## v1AgentGetTempFilename +## v1AgentSystemSetAdbAuth -> String v1AgentGetTempFilename(instanceId) +> v1AgentSystemSetAdbAuth(instanceId, agentSystemAdbAuth) -Get the path for a new temp file +Set ADB Auth Setting (AOSP only) -Returns a temporary random filename that is guranteed to be unique on the VMs filesystem at the time of invocation of this method. +Set ADB Auth Setting (AOSP only) ### Example @@ -1070,8 +2212,11 @@ BearerAuth.accessToken = "YOUR ACCESS TOKEN" let apiInstance = new CorelliumClient.CorelliumApi(); let instanceId = "instanceId_example"; // String | Instance ID - uuid -apiInstance.v1AgentGetTempFilename(instanceId).then((data) => { - console.log('API called successfully. Returned data: ' + data); +let agentSystemAdbAuth = { + "enabled": true +}; // AgentSystemAdbAuth | Desired ADB Auth Setting +apiInstance.v1AgentSystemSetAdbAuth(instanceId, agentSystemAdbAuth).then(() => { + console.log('API called successfully.'); }, (error) => { console.error(error); }); @@ -1084,10 +2229,109 @@ apiInstance.v1AgentGetTempFilename(instanceId).then((data) => { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **instanceId** | **String**| Instance ID - uuid | + **agentSystemAdbAuth** | [**AgentSystemAdbAuth**](AgentSystemAdbAuth.md)| Desired ADB Auth Setting | ### Return type -**String** +null (empty response body) + +### Authorization + +[BearerAuth](../README.md#BearerAuth) + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + + +## v1AgentSystemSetHostname + +> v1AgentSystemSetHostname(instanceId, agentSystemSetHostnameBody) + +Set Hostname of instance + +Set Hostname of instance + +### Example + +```javascript +import CorelliumClient from '@corellium/client-api'; +let defaultClient = CorelliumClient.ApiClient.instance; +// Configure Bearer (ApiToken or JWT) access token for authorization: BearerAuth +let BearerAuth = defaultClient.authentications['BearerAuth']; +BearerAuth.accessToken = "YOUR ACCESS TOKEN" + +let apiInstance = new CorelliumClient.CorelliumApi(); +let instanceId = "instanceId_example"; // String | Instance ID - uuid +let agentSystemSetHostnameBody = new CorelliumClient.AgentSystemSetHostnameBody(); // AgentSystemSetHostnameBody | New hostname +apiInstance.v1AgentSystemSetHostname(instanceId, agentSystemSetHostnameBody).then(() => { + console.log('API called successfully.'); +}, (error) => { + console.error(error); +}); + +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **instanceId** | **String**| Instance ID - uuid | + **agentSystemSetHostnameBody** | [**AgentSystemSetHostnameBody**](AgentSystemSetHostnameBody.md)| New hostname | + +### Return type + +null (empty response body) + +### Authorization + +[BearerAuth](../README.md#BearerAuth) + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + + +## v1AgentSystemShutdown + +> v1AgentSystemShutdown(instanceId) + +Instruct VM to halt + +Instruct VM to halt + +### Example + +```javascript +import CorelliumClient from '@corellium/client-api'; +let defaultClient = CorelliumClient.ApiClient.instance; +// Configure Bearer (ApiToken or JWT) access token for authorization: BearerAuth +let BearerAuth = defaultClient.authentications['BearerAuth']; +BearerAuth.accessToken = "YOUR ACCESS TOKEN" + +let apiInstance = new CorelliumClient.CorelliumApi(); +let instanceId = "instanceId_example"; // String | Instance ID - uuid +apiInstance.v1AgentSystemShutdown(instanceId).then(() => { + console.log('API called successfully.'); +}, (error) => { + console.error(error); +}); + +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **instanceId** | **String**| Instance ID - uuid | + +### Return type + +null (empty response body) ### Authorization @@ -1099,13 +2343,13 @@ Name | Type | Description | Notes - **Accept**: application/json -## v1AgentInstallApp +## v1AgentSystemUnlock -> v1AgentInstallApp(instanceId, agentInstallBody) +> v1AgentSystemUnlock(instanceId) -Install App at path +Unlock Device (iOS Only) -Installs the app located at path which must be present on the VM filesystem +Unlock Device (iOS Only) ### Example @@ -1118,10 +2362,7 @@ BearerAuth.accessToken = "YOUR ACCESS TOKEN" let apiInstance = new CorelliumClient.CorelliumApi(); let instanceId = "instanceId_example"; // String | Instance ID - uuid -let agentInstallBody = { - "path": "/tmp/test.ipa" -}; // AgentInstallBody | App parameters -apiInstance.v1AgentInstallApp(instanceId, agentInstallBody).then(() => { +apiInstance.v1AgentSystemUnlock(instanceId).then(() => { console.log('API called successfully.'); }, (error) => { console.error(error); @@ -1135,11 +2376,60 @@ apiInstance.v1AgentInstallApp(instanceId, agentInstallBody).then(() => { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **instanceId** | **String**| Instance ID - uuid | - **agentInstallBody** | [**AgentInstallBody**](AgentInstallBody.md)| App parameters | ### Return type -null (empty response body) +null (empty response body) + +### Authorization + +[BearerAuth](../README.md#BearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + + +## v1AgentUninstallApp + +> Object v1AgentUninstallApp(instanceId, bundleId) + +Uninstall an App + +Uninstall an App + +### Example + +```javascript +import CorelliumClient from '@corellium/client-api'; +let defaultClient = CorelliumClient.ApiClient.instance; +// Configure Bearer (ApiToken or JWT) access token for authorization: BearerAuth +let BearerAuth = defaultClient.authentications['BearerAuth']; +BearerAuth.accessToken = "YOUR ACCESS TOKEN" + +let apiInstance = new CorelliumClient.CorelliumApi(); +let instanceId = "instanceId_example"; // String | Instance ID - uuid +let bundleId = "bundleId_example"; // String | App Bundle ID +apiInstance.v1AgentUninstallApp(instanceId, bundleId).then((data) => { + console.log('API called successfully. Returned data: ' + data); +}, (error) => { + console.error(error); +}); + +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **instanceId** | **String**| Instance ID - uuid | + **bundleId** | **String**| App Bundle ID | + +### Return type + +**Object** ### Authorization @@ -1147,15 +2437,17 @@ null (empty response body) ### HTTP request headers -- **Content-Type**: application/json +- **Content-Type**: Not defined - **Accept**: application/json -## v1AgentInstallProfile +## v1AgentUninstallProfile -> v1AgentInstallProfile(instanceId, body) +> v1AgentUninstallProfile(instanceId, profileId) -Install a Profile to VM +Uninstall a Profile from VM + +Uninstall a Profile from VM ### Example @@ -1168,8 +2460,8 @@ BearerAuth.accessToken = "YOUR ACCESS TOKEN" let apiInstance = new CorelliumClient.CorelliumApi(); let instanceId = "instanceId_example"; // String | Instance ID - uuid -let body = "/path/to/file"; // File | Profile to Install -apiInstance.v1AgentInstallProfile(instanceId, body).then(() => { +let profileId = "profileId_example"; // String | Instance ID - uuid +apiInstance.v1AgentUninstallProfile(instanceId, profileId).then(() => { console.log('API called successfully.'); }, (error) => { console.error(error); @@ -1183,7 +2475,7 @@ apiInstance.v1AgentInstallProfile(instanceId, body).then(() => { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **instanceId** | **String**| Instance ID - uuid | - **body** | **File**| Profile to Install | + **profileId** | **String**| Instance ID - uuid | ### Return type @@ -1195,15 +2487,17 @@ null (empty response body) ### HTTP request headers -- **Content-Type**: application/octet-stream +- **Content-Type**: Not defined - **Accept**: application/json -## v1AgentKillApp +## v1AgentUploadFile -> Object v1AgentKillApp(instanceId, bundleId) +> v1AgentUploadFile(instanceId, filePath, body) -Kill an App +Upload a file to VM + +Upload a file to VM ### Example @@ -1216,9 +2510,10 @@ BearerAuth.accessToken = "YOUR ACCESS TOKEN" let apiInstance = new CorelliumClient.CorelliumApi(); let instanceId = "instanceId_example"; // String | Instance ID - uuid -let bundleId = "bundleId_example"; // String | App Bundle ID -apiInstance.v1AgentKillApp(instanceId, bundleId).then((data) => { - console.log('API called successfully. Returned data: ' + data); +let filePath = "filePath_example"; // String | File Path on VM to write to +let body = "/path/to/file"; // File | Uploaded File Contents +apiInstance.v1AgentUploadFile(instanceId, filePath, body).then(() => { + console.log('API called successfully.'); }, (error) => { console.error(error); }); @@ -1231,11 +2526,12 @@ apiInstance.v1AgentKillApp(instanceId, bundleId).then((data) => { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **instanceId** | **String**| Instance ID - uuid | - **bundleId** | **String**| App Bundle ID | + **filePath** | **String**| File Path on VM to write to | + **body** | **File**| Uploaded File Contents | ### Return type -**Object** +null (empty response body) ### Authorization @@ -1243,15 +2539,17 @@ Name | Type | Description | Notes ### HTTP request headers -- **Content-Type**: Not defined +- **Content-Type**: application/octet-stream - **Accept**: application/json -## v1AgentListAppIcons +## v1AttachInstanceInterface -> [AgentIcons] v1AgentListAppIcons(instanceId, bundleID) +> v1AttachInstanceInterface(instanceId, attachInterfaceRequest) -List App Icons +Attach I/O Interface + +Attach an I/O interface to an I/O interconnect for the specified instance identifier. ### Example @@ -1264,9 +2562,9 @@ BearerAuth.accessToken = "YOUR ACCESS TOKEN" let apiInstance = new CorelliumClient.CorelliumApi(); let instanceId = "instanceId_example"; // String | Instance ID - uuid -let bundleID = ["null"]; // [String] | App Bundle ID -apiInstance.v1AgentListAppIcons(instanceId, bundleID).then((data) => { - console.log('API called successfully. Returned data: ' + data); +let attachInterfaceRequest = new CorelliumClient.AttachInterfaceRequest(); // AttachInterfaceRequest | Interface attachment request +apiInstance.v1AttachInstanceInterface(instanceId, attachInterfaceRequest).then(() => { + console.log('API called successfully.'); }, (error) => { console.error(error); }); @@ -1279,11 +2577,11 @@ apiInstance.v1AgentListAppIcons(instanceId, bundleID).then((data) => { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **instanceId** | **String**| Instance ID - uuid | - **bundleID** | [**[String]**](String.md)| App Bundle ID | + **attachInterfaceRequest** | [**AttachInterfaceRequest**](AttachInterfaceRequest.md)| Interface attachment request | ### Return type -[**[AgentIcons]**](AgentIcons.md) +null (empty response body) ### Authorization @@ -1291,28 +2589,29 @@ Name | Type | Description | Notes ### HTTP request headers -- **Content-Type**: Not defined +- **Content-Type**: application/json - **Accept**: application/json -## v1AgentListApps +## v1AuthLogin -> AgentAppsList v1AgentListApps(instanceId) +> Token v1AuthLogin(body) -List Apps +Log In + +Log In ### Example ```javascript import CorelliumClient from '@corellium/client-api'; -let defaultClient = CorelliumClient.ApiClient.instance; -// Configure Bearer (ApiToken or JWT) access token for authorization: BearerAuth -let BearerAuth = defaultClient.authentications['BearerAuth']; -BearerAuth.accessToken = "YOUR ACCESS TOKEN" let apiInstance = new CorelliumClient.CorelliumApi(); -let instanceId = "instanceId_example"; // String | Instance ID - uuid -apiInstance.v1AgentListApps(instanceId).then((data) => { +let body = { + "username": "admin", + "password": "password" +}; // Object | Authorization data ( Credentials|ApiToken ) +apiInstance.v1AuthLogin(body).then((data) => { console.log('API called successfully. Returned data: ' + data); }, (error) => { console.error(error); @@ -1325,27 +2624,29 @@ apiInstance.v1AgentListApps(instanceId).then((data) => { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **instanceId** | **String**| Instance ID - uuid | + **body** | **Object**| Authorization data ( Credentials|ApiToken ) | ### Return type -[**AgentAppsList**](AgentAppsList.md) +[**Token**](Token.md) ### Authorization -[BearerAuth](../README.md#BearerAuth) +No authorization required ### HTTP request headers -- **Content-Type**: Not defined +- **Content-Type**: application/json - **Accept**: application/json -## v1AgentListAppsStatus +## v1BtracePreauthorize -> AgentAppsList v1AgentListAppsStatus(instanceId) +> Token v1BtracePreauthorize(instanceId) -List Apps Status +Pre-authorize an btrace download + +Pre-authorize an btrace download ### Example @@ -1358,7 +2659,7 @@ BearerAuth.accessToken = "YOUR ACCESS TOKEN" let apiInstance = new CorelliumClient.CorelliumApi(); let instanceId = "instanceId_example"; // String | Instance ID - uuid -apiInstance.v1AgentListAppsStatus(instanceId).then((data) => { +apiInstance.v1BtracePreauthorize(instanceId).then((data) => { console.log('API called successfully. Returned data: ' + data); }, (error) => { console.error(error); @@ -1375,7 +2676,7 @@ Name | Type | Description | Notes ### Return type -[**AgentAppsList**](AgentAppsList.md) +[**Token**](Token.md) ### Authorization @@ -1387,11 +2688,13 @@ Name | Type | Description | Notes - **Accept**: application/json -## v1AgentListProfiles +## v1ClearCoreTrace -> AgentProfilesReturn v1AgentListProfiles(instanceId) +> v1ClearCoreTrace(instanceId) -List Profiles +Clear CoreTrace logs + +Clear CoreTrace logs ### Example @@ -1404,8 +2707,8 @@ BearerAuth.accessToken = "YOUR ACCESS TOKEN" let apiInstance = new CorelliumClient.CorelliumApi(); let instanceId = "instanceId_example"; // String | Instance ID - uuid -apiInstance.v1AgentListProfiles(instanceId).then((data) => { - console.log('API called successfully. Returned data: ' + data); +apiInstance.v1ClearCoreTrace(instanceId).then(() => { + console.log('API called successfully.'); }, (error) => { console.error(error); }); @@ -1421,7 +2724,7 @@ Name | Type | Description | Notes ### Return type -[**AgentProfilesReturn**](AgentProfilesReturn.md) +null (empty response body) ### Authorization @@ -1433,11 +2736,13 @@ Name | Type | Description | Notes - **Accept**: application/json -## v1AgentRunApp +## v1ClearHyperTrace -> Object v1AgentRunApp(instanceId, bundleId) +> v1ClearHyperTrace(instanceId) -Run an App +Clear HyperTrace logs + +Clear HyperTrace logs ### Example @@ -1450,9 +2755,8 @@ BearerAuth.accessToken = "YOUR ACCESS TOKEN" let apiInstance = new CorelliumClient.CorelliumApi(); let instanceId = "instanceId_example"; // String | Instance ID - uuid -let bundleId = "bundleId_example"; // String | App Bundle ID -apiInstance.v1AgentRunApp(instanceId, bundleId).then((data) => { - console.log('API called successfully. Returned data: ' + data); +apiInstance.v1ClearHyperTrace(instanceId).then(() => { + console.log('API called successfully.'); }, (error) => { console.error(error); }); @@ -1465,11 +2769,10 @@ apiInstance.v1AgentRunApp(instanceId, bundleId).then((data) => { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **instanceId** | **String**| Instance ID - uuid | - **bundleId** | **String**| App Bundle ID | ### Return type -**Object** +null (empty response body) ### Authorization @@ -1481,11 +2784,13 @@ Name | Type | Description | Notes - **Accept**: application/json -## v1AgentSetFileAttributes +## v1ClearHyperTraceHooks -> v1AgentSetFileAttributes(instanceId, filePath, fileChanges) +> v1ClearHyperTraceHooks(instanceId) -Change Attrs of a File on VM +Clear Hooks on an instance + +Clear Hooks on an instance ### Example @@ -1498,9 +2803,7 @@ BearerAuth.accessToken = "YOUR ACCESS TOKEN" let apiInstance = new CorelliumClient.CorelliumApi(); let instanceId = "instanceId_example"; // String | Instance ID - uuid -let filePath = "filePath_example"; // String | File Path on VM -let fileChanges = new CorelliumClient.FileChanges(); // FileChanges | New attrs -apiInstance.v1AgentSetFileAttributes(instanceId, filePath, fileChanges).then(() => { +apiInstance.v1ClearHyperTraceHooks(instanceId).then(() => { console.log('API called successfully.'); }, (error) => { console.error(error); @@ -1514,8 +2817,6 @@ apiInstance.v1AgentSetFileAttributes(instanceId, filePath, fileChanges).then(() Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **instanceId** | **String**| Instance ID - uuid | - **filePath** | **String**| File Path on VM | - **fileChanges** | [**FileChanges**](FileChanges.md)| New attrs | ### Return type @@ -1527,15 +2828,17 @@ null (empty response body) ### HTTP request headers -- **Content-Type**: application/json -- **Accept**: Not defined +- **Content-Type**: Not defined +- **Accept**: application/json -## v1AgentSystemGetAdbAuth +## v1ClearInstancePanics -> AgentSystemAdbAuth v1AgentSystemGetAdbAuth(instanceId) +> v1ClearInstancePanics(instanceId) -Get ADB Auth Setting (AOSP only) +Clear Panics + +Clear Panics ### Example @@ -1548,8 +2851,8 @@ BearerAuth.accessToken = "YOUR ACCESS TOKEN" let apiInstance = new CorelliumClient.CorelliumApi(); let instanceId = "instanceId_example"; // String | Instance ID - uuid -apiInstance.v1AgentSystemGetAdbAuth(instanceId).then((data) => { - console.log('API called successfully. Returned data: ' + data); +apiInstance.v1ClearInstancePanics(instanceId).then(() => { + console.log('API called successfully.'); }, (error) => { console.error(error); }); @@ -1565,7 +2868,7 @@ Name | Type | Description | Notes ### Return type -[**AgentSystemAdbAuth**](AgentSystemAdbAuth.md) +null (empty response body) ### Authorization @@ -1577,11 +2880,13 @@ Name | Type | Description | Notes - **Accept**: application/json -## v1AgentSystemGetNetwork +## v1ClusterConfigGet -> AgentValueReturn v1AgentSystemGetNetwork(instanceId) +> Object v1ClusterConfigGet() -Get IP of eth0 (AOSP only) +Get cluster configuration + +Get cluster configuration ### Example @@ -1593,8 +2898,7 @@ let BearerAuth = defaultClient.authentications['BearerAuth']; BearerAuth.accessToken = "YOUR ACCESS TOKEN" let apiInstance = new CorelliumClient.CorelliumApi(); -let instanceId = "instanceId_example"; // String | Instance ID - uuid -apiInstance.v1AgentSystemGetNetwork(instanceId).then((data) => { +apiInstance.v1ClusterConfigGet().then((data) => { console.log('API called successfully. Returned data: ' + data); }, (error) => { console.error(error); @@ -1604,14 +2908,11 @@ apiInstance.v1AgentSystemGetNetwork(instanceId).then((data) => { ### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **instanceId** | **String**| Instance ID - uuid | +This endpoint does not need any parameter. ### Return type -[**AgentValueReturn**](AgentValueReturn.md) +**Object** ### Authorization @@ -1623,11 +2924,13 @@ Name | Type | Description | Notes - **Accept**: application/json -## v1AgentSystemGetProp +## v1ClusterConfigPatch -> AgentValueReturn v1AgentSystemGetProp(instanceId, agentSystemGetPropBody) +> v1ClusterConfigPatch(clusterConfigurationPayload) -Get System Property (AOSP only) +Update cluster configuration + +Update cluster configuration ### Example @@ -1639,12 +2942,9 @@ let BearerAuth = defaultClient.authentications['BearerAuth']; BearerAuth.accessToken = "YOUR ACCESS TOKEN" let apiInstance = new CorelliumClient.CorelliumApi(); -let instanceId = "instanceId_example"; // String | Instance ID - uuid -let agentSystemGetPropBody = { - "property": "corellium.opengapps" -}; // AgentSystemGetPropBody | Parameters -apiInstance.v1AgentSystemGetProp(instanceId, agentSystemGetPropBody).then((data) => { - console.log('API called successfully. Returned data: ' + data); +let clusterConfigurationPayload = new CorelliumClient.ClusterConfigurationPayload(); // ClusterConfigurationPayload | Cluster Configuration Payload +apiInstance.v1ClusterConfigPatch(clusterConfigurationPayload).then(() => { + console.log('API called successfully.'); }, (error) => { console.error(error); }); @@ -1656,12 +2956,11 @@ apiInstance.v1AgentSystemGetProp(instanceId, agentSystemGetPropBody).then((data) Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **instanceId** | **String**| Instance ID - uuid | - **agentSystemGetPropBody** | [**AgentSystemGetPropBody**](AgentSystemGetPropBody.md)| Parameters | + **clusterConfigurationPayload** | [**ClusterConfigurationPayload**](ClusterConfigurationPayload.md)| Cluster Configuration Payload | ### Return type -[**AgentValueReturn**](AgentValueReturn.md) +null (empty response body) ### Authorization @@ -1673,11 +2972,13 @@ Name | Type | Description | Notes - **Accept**: application/json -## v1AgentSystemInstallOpenGApps +## v1ClusterFirmwareServiceConfigGet -> v1AgentSystemInstallOpenGApps(instanceId, body) +> v1ClusterFirmwareServiceConfigGet() -Install OpenGApps (AOSP only) +Fetch firmware service configuration + +Returns a firmware service configuration object ### Example @@ -1689,13 +2990,7 @@ let BearerAuth = defaultClient.authentications['BearerAuth']; BearerAuth.accessToken = "YOUR ACCESS TOKEN" let apiInstance = new CorelliumClient.CorelliumApi(); -let instanceId = "instanceId_example"; // String | Instance ID - uuid -let body = { - "url": "http://downloads.sourceforge.net/project/opengapps/arm64/20220119/open_gapps-arm64-11.0-pico-20220119.zip?r=&ts=1653516572&use_mirror=gigenet", - "hash": "58398bf7628f38ef07eaeb3abe26f3ebf0474f4d5ecdac0852bd5de3c15cc828", - "fingerprint": "google/flame/flame:11/RP1A.200720.009/6720564:user/release-keys__2020-09-05" -}; // Object | Installation parameters -apiInstance.v1AgentSystemInstallOpenGApps(instanceId, body).then(() => { +apiInstance.v1ClusterFirmwareServiceConfigGet().then(() => { console.log('API called successfully.'); }, (error) => { console.error(error); @@ -1705,11 +3000,7 @@ apiInstance.v1AgentSystemInstallOpenGApps(instanceId, body).then(() => { ### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **instanceId** | **String**| Instance ID - uuid | - **body** | **Object**| Installation parameters | +This endpoint does not need any parameter. ### Return type @@ -1721,15 +3012,17 @@ null (empty response body) ### HTTP request headers -- **Content-Type**: application/json +- **Content-Type**: Not defined - **Accept**: application/json -## v1AgentSystemLock +## v1ClusterFirmwareServiceConfigPatch -> v1AgentSystemLock(instanceId) +> v1ClusterFirmwareServiceConfigPatch(firmwareServiceConfiguration) -Lock Device (iOS Only) +Update firmware service configuration + +Updates firmware service configuration ### Example @@ -1741,8 +3034,8 @@ let BearerAuth = defaultClient.authentications['BearerAuth']; BearerAuth.accessToken = "YOUR ACCESS TOKEN" let apiInstance = new CorelliumClient.CorelliumApi(); -let instanceId = "instanceId_example"; // String | Instance ID - uuid -apiInstance.v1AgentSystemLock(instanceId).then(() => { +let firmwareServiceConfiguration = new CorelliumClient.FirmwareServiceConfiguration(); // FirmwareServiceConfiguration | Firmware configuration payload +apiInstance.v1ClusterFirmwareServiceConfigPatch(firmwareServiceConfiguration).then(() => { console.log('API called successfully.'); }, (error) => { console.error(error); @@ -1755,7 +3048,7 @@ apiInstance.v1AgentSystemLock(instanceId).then(() => { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **instanceId** | **String**| Instance ID - uuid | + **firmwareServiceConfiguration** | [**FirmwareServiceConfiguration**](FirmwareServiceConfiguration.md)| Firmware configuration payload | ### Return type @@ -1767,15 +3060,17 @@ null (empty response body) ### HTTP request headers -- **Content-Type**: Not defined +- **Content-Type**: application/json - **Accept**: application/json -## v1AgentSystemSetAdbAuth +## v1ClusterFirmwareServiceConfigPut -> v1AgentSystemSetAdbAuth(instanceId, agentSystemAdbAuth) +> v1ClusterFirmwareServiceConfigPut(firmwareServiceConfiguration) -Set ADB Auth Setting (AOSP only) +Set firmware service configuration + +Sets firmware service configuration ### Example @@ -1787,11 +3082,8 @@ let BearerAuth = defaultClient.authentications['BearerAuth']; BearerAuth.accessToken = "YOUR ACCESS TOKEN" let apiInstance = new CorelliumClient.CorelliumApi(); -let instanceId = "instanceId_example"; // String | Instance ID - uuid -let agentSystemAdbAuth = { - "enabled": true -}; // AgentSystemAdbAuth | Desired ADB Auth Setting -apiInstance.v1AgentSystemSetAdbAuth(instanceId, agentSystemAdbAuth).then(() => { +let firmwareServiceConfiguration = new CorelliumClient.FirmwareServiceConfiguration(); // FirmwareServiceConfiguration | Firmware configuration payload +apiInstance.v1ClusterFirmwareServiceConfigPut(firmwareServiceConfiguration).then(() => { console.log('API called successfully.'); }, (error) => { console.error(error); @@ -1804,8 +3096,7 @@ apiInstance.v1AgentSystemSetAdbAuth(instanceId, agentSystemAdbAuth).then(() => { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **instanceId** | **String**| Instance ID - uuid | - **agentSystemAdbAuth** | [**AgentSystemAdbAuth**](AgentSystemAdbAuth.md)| Desired ADB Auth Setting | + **firmwareServiceConfiguration** | [**FirmwareServiceConfiguration**](FirmwareServiceConfiguration.md)| Firmware configuration payload | ### Return type @@ -1821,11 +3112,13 @@ null (empty response body) - **Accept**: application/json -## v1AgentSystemSetHostname +## v1ClusterFirmwareServiceDevicesGet -> v1AgentSystemSetHostname(instanceId, agentSystemSetHostnameBody) +> [Device] v1ClusterFirmwareServiceDevicesGet(opts) -Set Hostname of instance +Fetch devices from the firmware service + +Proxies a request to the firmware service to retrieve a list of devices. ### Example @@ -1837,10 +3130,18 @@ let BearerAuth = defaultClient.authentications['BearerAuth']; BearerAuth.accessToken = "YOUR ACCESS TOKEN" let apiInstance = new CorelliumClient.CorelliumApi(); -let instanceId = "instanceId_example"; // String | Instance ID - uuid -let agentSystemSetHostnameBody = new CorelliumClient.AgentSystemSetHostnameBody(); // AgentSystemSetHostnameBody | New hostname -apiInstance.v1AgentSystemSetHostname(instanceId, agentSystemSetHostnameBody).then(() => { - console.log('API called successfully.'); +let opts = { + 'limit': 3.4, // Number | Number of results to return (min: 1, max: 10000, default: 100) + 'offset': 3.4, // Number | Index of the first row to return (default: 0) + 'search': "search_example", // String | Case-insensitive partial match across name, model, platform, and hwmodel fields + 'order': "order_example", // String | Comma-separated field names for sorting. Prefix with '-' for ascending order (e.g., 'name,-platform'). Allowed fields: name, model, type, platform, hwmodel Filtering options: + 'type': "type_example", // String | Filter by exact type. Example: coreimg + 'model': "model_example", // String | Filter by exact model. Example: Example: iPhone8,1 + 'name': "name_example", // String | Filter by exact name. Example: iPhone6s + 'platform': "platform_example" // String | Filter by exact platform. Example: s5l8960x +}; +apiInstance.v1ClusterFirmwareServiceDevicesGet(opts).then((data) => { + console.log('API called successfully. Returned data: ' + data); }, (error) => { console.error(error); }); @@ -1852,12 +3153,18 @@ apiInstance.v1AgentSystemSetHostname(instanceId, agentSystemSetHostnameBody).the Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **instanceId** | **String**| Instance ID - uuid | - **agentSystemSetHostnameBody** | [**AgentSystemSetHostnameBody**](AgentSystemSetHostnameBody.md)| New hostname | + **limit** | **Number**| Number of results to return (min: 1, max: 10000, default: 100) | [optional] + **offset** | **Number**| Index of the first row to return (default: 0) | [optional] + **search** | **String**| Case-insensitive partial match across name, model, platform, and hwmodel fields | [optional] + **order** | **String**| Comma-separated field names for sorting. Prefix with '-' for ascending order (e.g., 'name,-platform'). Allowed fields: name, model, type, platform, hwmodel Filtering options: | [optional] + **type** | **String**| Filter by exact type. Example: coreimg | [optional] + **model** | **String**| Filter by exact model. Example: Example: iPhone8,1 | [optional] + **name** | **String**| Filter by exact name. Example: iPhone6s | [optional] + **platform** | **String**| Filter by exact platform. Example: s5l8960x | [optional] ### Return type -null (empty response body) +[**[Device]**](Device.md) ### Authorization @@ -1865,15 +3172,17 @@ null (empty response body) ### HTTP request headers -- **Content-Type**: application/json +- **Content-Type**: Not defined - **Accept**: application/json -## v1AgentSystemShutdown +## v1ClusterFirmwareServiceFirmwareAssetsAssetURLDelete -> v1AgentSystemShutdown(instanceId) +> v1ClusterFirmwareServiceFirmwareAssetsAssetURLDelete(assetURL) -Instruct VM to halt +Delete a firmware asset by its URL + +Proxies a request to the firmware service to delete a firmware asset by URL. ### Example @@ -1885,8 +3194,8 @@ let BearerAuth = defaultClient.authentications['BearerAuth']; BearerAuth.accessToken = "YOUR ACCESS TOKEN" let apiInstance = new CorelliumClient.CorelliumApi(); -let instanceId = "instanceId_example"; // String | Instance ID - uuid -apiInstance.v1AgentSystemShutdown(instanceId).then(() => { +let assetURL = "assetURL_example"; // String | The URL-encoded firmware asset URL to delete - format:uri - pattern:^[A-Za-z0-9\\-._~:/?#[\\]@!$&'()*+,;=%]+$ +apiInstance.v1ClusterFirmwareServiceFirmwareAssetsAssetURLDelete(assetURL).then(() => { console.log('API called successfully.'); }, (error) => { console.error(error); @@ -1899,7 +3208,7 @@ apiInstance.v1AgentSystemShutdown(instanceId).then(() => { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **instanceId** | **String**| Instance ID - uuid | + **assetURL** | **String**| The URL-encoded firmware asset URL to delete - format:uri - pattern:^[A-Za-z0-9\\-._~:/?#[\\]@!$&'()*+,;=%]+$ | ### Return type @@ -1915,11 +3224,13 @@ null (empty response body) - **Accept**: application/json -## v1AgentSystemUnlock +## v1ClusterFirmwareServiceFirmwareAssetsAssetURLExtendedGet -> v1AgentSystemUnlock(instanceId) +> ExtendedFirmwareAssetInfo v1ClusterFirmwareServiceFirmwareAssetsAssetURLExtendedGet(assetURL) -Unlock Device (iOS Only) +Fetch extended firmware-asset details including instances and associated IPSWs + +Retrieves extended information about a firmware including all instances using it and associated firmware assets. ### Example @@ -1930,10 +3241,10 @@ let defaultClient = CorelliumClient.ApiClient.instance; let BearerAuth = defaultClient.authentications['BearerAuth']; BearerAuth.accessToken = "YOUR ACCESS TOKEN" -let apiInstance = new CorelliumClient.CorelliumApi(); -let instanceId = "instanceId_example"; // String | Instance ID - uuid -apiInstance.v1AgentSystemUnlock(instanceId).then(() => { - console.log('API called successfully.'); +let apiInstance = new CorelliumClient.CorelliumApi(); +let assetURL = "assetURL_example"; // String | The URL-encoded firmware asset to delete. Example: H4RUO0MX-Fz0ka2Q2vCfvP-27ElNZw5bWJEfyF04AxA= +apiInstance.v1ClusterFirmwareServiceFirmwareAssetsAssetURLExtendedGet(assetURL).then((data) => { + console.log('API called successfully. Returned data: ' + data); }, (error) => { console.error(error); }); @@ -1945,11 +3256,11 @@ apiInstance.v1AgentSystemUnlock(instanceId).then(() => { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **instanceId** | **String**| Instance ID - uuid | + **assetURL** | **String**| The URL-encoded firmware asset to delete. Example: H4RUO0MX-Fz0ka2Q2vCfvP-27ElNZw5bWJEfyF04AxA= | ### Return type -null (empty response body) +[**ExtendedFirmwareAssetInfo**](ExtendedFirmwareAssetInfo.md) ### Authorization @@ -1961,11 +3272,13 @@ null (empty response body) - **Accept**: application/json -## v1AgentUninstallApp +## v1ClusterFirmwareServiceFirmwareAssetsGet -> Object v1AgentUninstallApp(instanceId, bundleId) +> [FirmwareAsset] v1ClusterFirmwareServiceFirmwareAssetsGet(opts) -Uninstall an App +Fetch firmware assets from the firmware service + +Proxies a request to the firmware service to retrieve a list of firmware assets. ### Example @@ -1977,9 +3290,13 @@ let BearerAuth = defaultClient.authentications['BearerAuth']; BearerAuth.accessToken = "YOUR ACCESS TOKEN" let apiInstance = new CorelliumClient.CorelliumApi(); -let instanceId = "instanceId_example"; // String | Instance ID - uuid -let bundleId = "bundleId_example"; // String | App Bundle ID -apiInstance.v1AgentUninstallApp(instanceId, bundleId).then((data) => { +let opts = { + 'limit': 3.4, // Number | Number of results to return (min: 1, max: 10000, default: 100) + 'offset': 3.4, // Number | Index of the first row to return (default: 0) + 'order': "order_example", // String | Comma-separated field names for sorting. Prefix with '-' for ascending order (e.g., 'url,-domain'). + 'search': "search_example" // String | Case-insensitive partial match across url, domain +}; +apiInstance.v1ClusterFirmwareServiceFirmwareAssetsGet(opts).then((data) => { console.log('API called successfully. Returned data: ' + data); }, (error) => { console.error(error); @@ -1992,12 +3309,14 @@ apiInstance.v1AgentUninstallApp(instanceId, bundleId).then((data) => { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **instanceId** | **String**| Instance ID - uuid | - **bundleId** | **String**| App Bundle ID | + **limit** | **Number**| Number of results to return (min: 1, max: 10000, default: 100) | [optional] + **offset** | **Number**| Index of the first row to return (default: 0) | [optional] + **order** | **String**| Comma-separated field names for sorting. Prefix with '-' for ascending order (e.g., 'url,-domain'). | [optional] + **search** | **String**| Case-insensitive partial match across url, domain | [optional] ### Return type -**Object** +[**[FirmwareAsset]**](FirmwareAsset.md) ### Authorization @@ -2009,11 +3328,13 @@ Name | Type | Description | Notes - **Accept**: application/json -## v1AgentUninstallProfile +## v1ClusterFirmwareServiceFirmwareAssetsPost -> v1AgentUninstallProfile(instanceId, profileId) +> String v1ClusterFirmwareServiceFirmwareAssetsPost(body) -Uninstall a Profile from VM +Add firmware assets via the firmware service + +Proxies a request to the firmware service to add firmware assets. ### Example @@ -2025,10 +3346,12 @@ let BearerAuth = defaultClient.authentications['BearerAuth']; BearerAuth.accessToken = "YOUR ACCESS TOKEN" let apiInstance = new CorelliumClient.CorelliumApi(); -let instanceId = "instanceId_example"; // String | Instance ID - uuid -let profileId = "profileId_example"; // String | Instance ID - uuid -apiInstance.v1AgentUninstallProfile(instanceId, profileId).then(() => { - console.log('API called successfully.'); +let body = { + "https://wkms-public.apple.com/fcs-keys/0-rpBmpVnBmLtxdIwb97a_jAodE52Gv8Al_CN8DdwzQ=": "LS0tLS1CRUdJTiBQUklWQVRFIEtFWS0tLS0tCk1JR0hBZ0VBTUJNR0J5cUdTTTQ5QWdFR0NDcUdTTTQ5QXdFSEJHMHdhd0lCQVFRZ1plQ25uTW5CZEx3RkM1K2EKUU9ITGswQ1Z1aGJHWE1kUlBiekJOMTREOWp1aFJBTkNBQVRLT3NyZUc4VG1XbExTeU1KUnBSWTA2N1NudFhmZgpkakhWenQwN1ZZVm1wZ1dGZEJGUERGTFdiQkYrYlpQeGRJVW14dzFMN3NlMEUrdE1DcTk4bkEyMQotLS0tLUVORCBQUklWQVRFIEtFWS0tLS0tCg==", + "https://wkms-public.apple.com/fcs-keys/09QNzDMRwGnqUMjbRQcsH7sHx2GJUub-NmLLpIsd8Yc=": "LS0tLS1CRUdJTiBQUklWQVRFIEtFWS0tLS0tCk1JR0hBZ0VBTUJNR0J5cUdTTTQ5QWdFR0NDcUdTTTQ5QXdFSEJHMHdhd0lCQVFRZ0QyeTRzZE1QNXE2eHZ4NTIKMFNqaCt1S0JkcWVTRlF2T083Rm9PaHg1RHZxaFJBTkNBQVRLbEMvdXhKa3Q4d0FhS1Fzd3paeVJ4WWVTN0pOVAowRlFsS0w3S0hZb1k0U1FWekZWNTBkQkhGeGRVMHVaeGN3Rk9MaW1MTVZZaHBtREQ0enFpZGtPeAotLS0tLUVORCBQUklWQVRFIEtFWS0tLS0tCg==" +}; // Object | Firmware assets payload +apiInstance.v1ClusterFirmwareServiceFirmwareAssetsPost(body).then((data) => { + console.log('API called successfully. Returned data: ' + data); }, (error) => { console.error(error); }); @@ -2040,12 +3363,11 @@ apiInstance.v1AgentUninstallProfile(instanceId, profileId).then(() => { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **instanceId** | **String**| Instance ID - uuid | - **profileId** | **String**| Instance ID - uuid | + **body** | **Object**| Firmware assets payload | ### Return type -null (empty response body) +**String** ### Authorization @@ -2053,15 +3375,17 @@ null (empty response body) ### HTTP request headers -- **Content-Type**: Not defined -- **Accept**: application/json +- **Content-Type**: application/json +- **Accept**: text/html, application/json -## v1AgentUploadFile +## v1ClusterFirmwareServiceFirmwaresFilenameDelete -> v1AgentUploadFile(instanceId, filePath, body) +> v1ClusterFirmwareServiceFirmwaresFilenameDelete(filename) -Upload a file to VM +Delete a firmware by filename from the firmware service + +Proxies a request to the firmware service to delete a firmware by filename. ### Example @@ -2073,10 +3397,8 @@ let BearerAuth = defaultClient.authentications['BearerAuth']; BearerAuth.accessToken = "YOUR ACCESS TOKEN" let apiInstance = new CorelliumClient.CorelliumApi(); -let instanceId = "instanceId_example"; // String | Instance ID - uuid -let filePath = "filePath_example"; // String | File Path on VM to write to -let body = "/path/to/file"; // File | Uploaded File Contents -apiInstance.v1AgentUploadFile(instanceId, filePath, body).then(() => { +let filename = "filename_example"; // String | The filename of the firmware to delete +apiInstance.v1ClusterFirmwareServiceFirmwaresFilenameDelete(filename).then(() => { console.log('API called successfully.'); }, (error) => { console.error(error); @@ -2089,9 +3411,7 @@ apiInstance.v1AgentUploadFile(instanceId, filePath, body).then(() => { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **instanceId** | **String**| Instance ID - uuid | - **filePath** | **String**| File Path on VM to write to | - **body** | **File**| Uploaded File Contents | + **filename** | **String**| The filename of the firmware to delete | ### Return type @@ -2103,27 +3423,42 @@ null (empty response body) ### HTTP request headers -- **Content-Type**: application/octet-stream +- **Content-Type**: Not defined - **Accept**: application/json -## v1AuthLogin +## v1ClusterFirmwareServiceFirmwaresGet -> Token v1AuthLogin(body) +> [Firmware] v1ClusterFirmwareServiceFirmwaresGet(opts) -Log In +Fetch firmwares from the firmware service + +Proxies a request to the firmware service to retrieve a list of firmwares. ### Example ```javascript import CorelliumClient from '@corellium/client-api'; +let defaultClient = CorelliumClient.ApiClient.instance; +// Configure Bearer (ApiToken or JWT) access token for authorization: BearerAuth +let BearerAuth = defaultClient.authentications['BearerAuth']; +BearerAuth.accessToken = "YOUR ACCESS TOKEN" let apiInstance = new CorelliumClient.CorelliumApi(); -let body = { - "username": "admin", - "password": "password" -}; // Object | Authorization data ( Credentials|ApiToken ) -apiInstance.v1AuthLogin(body).then((data) => { +let opts = { + 'limit': 3.4, // Number | Number of results to return (min: 1, max: 10000, default: 100) + 'offset': 3.4, // Number | Index of the first row to return (default: 0) + 'search': "search_example", // String | Case-insensitive partial match across filename, model, type, version and buildid fields + 'order': "order_example", // String | Comma-separated field names for sorting. Prefix with '-' for ascending order (e.g., 'name,-platform'). Allowed fields: filename, model, type, version, buildid Filtering options: + 'filename': "filename_example", // String | Filter by exact filename. Example: iPhone_4.7_P3_12.1.4_16D57_Restore.ipsw + 'model': "model_example", // String | Filter by exact model. Example: iPhone10,4 + 'type': "type_example", // String | Filter by exact type. Example: ipsw + 'version': "version_example", // String | Filter by exact version. Example: 12.1.4 + 'buildid': "buildid_example", // String | Filter by exact buildid. Example: 16D57 + 'firmwareAssets': "firmwareAssets_example", // String | Filter by exact asset URL/ID. Example: https://wkms-public.apple.com/fcs-keys/rl_td3o_0EtXT8t6HvVJoeWXnoBuzumHyUTD8-MUaF8= -OR- rl_td3o_0EtXT8t6HvVJoeWXnoBuzumHyUTD8-MUaF8= + 'installed': true // Boolean | Filter by installed status +}; +apiInstance.v1ClusterFirmwareServiceFirmwaresGet(opts).then((data) => { console.log('API called successfully. Returned data: ' + data); }, (error) => { console.error(error); @@ -2136,27 +3471,39 @@ apiInstance.v1AuthLogin(body).then((data) => { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **body** | **Object**| Authorization data ( Credentials|ApiToken ) | + **limit** | **Number**| Number of results to return (min: 1, max: 10000, default: 100) | [optional] + **offset** | **Number**| Index of the first row to return (default: 0) | [optional] + **search** | **String**| Case-insensitive partial match across filename, model, type, version and buildid fields | [optional] + **order** | **String**| Comma-separated field names for sorting. Prefix with '-' for ascending order (e.g., 'name,-platform'). Allowed fields: filename, model, type, version, buildid Filtering options: | [optional] + **filename** | **String**| Filter by exact filename. Example: iPhone_4.7_P3_12.1.4_16D57_Restore.ipsw | [optional] + **model** | **String**| Filter by exact model. Example: iPhone10,4 | [optional] + **type** | **String**| Filter by exact type. Example: ipsw | [optional] + **version** | **String**| Filter by exact version. Example: 12.1.4 | [optional] + **buildid** | **String**| Filter by exact buildid. Example: 16D57 | [optional] + **firmwareAssets** | **String**| Filter by exact asset URL/ID. Example: https://wkms-public.apple.com/fcs-keys/rl_td3o_0EtXT8t6HvVJoeWXnoBuzumHyUTD8-MUaF8= -OR- rl_td3o_0EtXT8t6HvVJoeWXnoBuzumHyUTD8-MUaF8= | [optional] + **installed** | **Boolean**| Filter by installed status | [optional] ### Return type -[**Token**](Token.md) +[**[Firmware]**](Firmware.md) ### Authorization -No authorization required +[BearerAuth](../README.md#BearerAuth) ### HTTP request headers -- **Content-Type**: application/json +- **Content-Type**: Not defined - **Accept**: application/json -## v1BtracePreauthorize +## v1ClusterNodesGet -> Object v1BtracePreauthorize(instanceId) +> [NodeInformation] v1ClusterNodesGet(opts) -Pre-authorize an btrace download +List servers in the cluster + +List servers in the cluster ### Example @@ -2168,8 +3515,11 @@ let BearerAuth = defaultClient.authentications['BearerAuth']; BearerAuth.accessToken = "YOUR ACCESS TOKEN" let apiInstance = new CorelliumClient.CorelliumApi(); -let instanceId = "instanceId_example"; // String | Instance ID - uuid -apiInstance.v1BtracePreauthorize(instanceId).then((data) => { +let opts = { + 'limit': 3.4, // Number | limit for pagination results, defaults to 100 + 'offset': 3.4 // Number | offset for pagination results, defaults to 0 +}; +apiInstance.v1ClusterNodesGet(opts).then((data) => { console.log('API called successfully. Returned data: ' + data); }, (error) => { console.error(error); @@ -2182,11 +3532,12 @@ apiInstance.v1BtracePreauthorize(instanceId).then((data) => { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **instanceId** | **String**| Instance ID - uuid | + **limit** | **Number**| limit for pagination results, defaults to 100 | [optional] + **offset** | **Number**| offset for pagination results, defaults to 0 | [optional] ### Return type -**Object** +[**[NodeInformation]**](NodeInformation.md) ### Authorization @@ -2198,11 +3549,13 @@ Name | Type | Description | Notes - **Accept**: application/json -## v1CheckSubdomainExistence +## v1ClusterNodesNodeIdConsoleGet + +> v1ClusterNodesNodeIdConsoleGet(nodeId) -> CheckSubdomainResponse v1CheckSubdomainExistence(v1CheckSubdomainExistenceParameters) +Access node console via SSH -Check the existence of a subdomain +Access node console via SSH (WebSocket upgrade) ### Example @@ -2214,9 +3567,9 @@ let BearerAuth = defaultClient.authentications['BearerAuth']; BearerAuth.accessToken = "YOUR ACCESS TOKEN" let apiInstance = new CorelliumClient.CorelliumApi(); -let v1CheckSubdomainExistenceParameters = new CorelliumClient.V1CheckSubdomainExistenceParameters(); // V1CheckSubdomainExistenceParameters | application/json -apiInstance.v1CheckSubdomainExistence(v1CheckSubdomainExistenceParameters).then((data) => { - console.log('API called successfully. Returned data: ' + data); +let nodeId = "nodeId_example"; // String | Node ID +apiInstance.v1ClusterNodesNodeIdConsoleGet(nodeId).then(() => { + console.log('API called successfully.'); }, (error) => { console.error(error); }); @@ -2228,11 +3581,11 @@ apiInstance.v1CheckSubdomainExistence(v1CheckSubdomainExistenceParameters).then( Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **v1CheckSubdomainExistenceParameters** | [**V1CheckSubdomainExistenceParameters**](V1CheckSubdomainExistenceParameters.md)| application/json | + **nodeId** | **String**| Node ID | ### Return type -[**CheckSubdomainResponse**](CheckSubdomainResponse.md) +null (empty response body) ### Authorization @@ -2240,15 +3593,17 @@ Name | Type | Description | Notes ### HTTP request headers -- **Content-Type**: application/json +- **Content-Type**: Not defined - **Accept**: application/json -## v1ClearCoreTrace +## v1ClusterNodesNodeIdGet -> v1ClearCoreTrace(instanceId) +> NodeInformation v1ClusterNodesNodeIdGet(nodeId) -Clear CoreTrace logs +Get node details by ID + +Get node details by ID ### Example @@ -2260,9 +3615,9 @@ let BearerAuth = defaultClient.authentications['BearerAuth']; BearerAuth.accessToken = "YOUR ACCESS TOKEN" let apiInstance = new CorelliumClient.CorelliumApi(); -let instanceId = "instanceId_example"; // String | Instance ID - uuid -apiInstance.v1ClearCoreTrace(instanceId).then(() => { - console.log('API called successfully.'); +let nodeId = "nodeId_example"; // String | Node ID +apiInstance.v1ClusterNodesNodeIdGet(nodeId).then((data) => { + console.log('API called successfully. Returned data: ' + data); }, (error) => { console.error(error); }); @@ -2274,11 +3629,11 @@ apiInstance.v1ClearCoreTrace(instanceId).then(() => { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **instanceId** | **String**| Instance ID - uuid | + **nodeId** | **String**| Node ID | ### Return type -null (empty response body) +[**NodeInformation**](NodeInformation.md) ### Authorization @@ -2290,11 +3645,13 @@ null (empty response body) - **Accept**: application/json -## v1ClearHyperTrace +## v1ClusterStorageGet -> v1ClearHyperTrace(instanceId) +> GetStorageResponse v1ClusterStorageGet(opts) -Clear HyperTrace logs +Get storage devices + +List all attached storage devices. This endpoint is only available to cluster administrators. ### Example @@ -2306,9 +3663,21 @@ let BearerAuth = defaultClient.authentications['BearerAuth']; BearerAuth.accessToken = "YOUR ACCESS TOKEN" let apiInstance = new CorelliumClient.CorelliumApi(); -let instanceId = "instanceId_example"; // String | Instance ID - uuid -apiInstance.v1ClearHyperTrace(instanceId).then(() => { - console.log('API called successfully.'); +let opts = { + 'limit': 3.4, // Number | Maximum number of results to return (1–1000, default: 100) + 'offset': 3.4, // Number | Number of results to skip (default: 0) + 'device': "device_example", // String | Filter by device name (partial match) + 'fsType': "fsType_example", // String | Filter by filesystem type (comma separated) + 'fsUUID': "fsUUID_example", // String | Filter by filesystem UUID (partial match) + 'label': "label_example", // String | Filter by label (partial match) + 'serial': "serial_example", // String | Filter by serial number (partial match) + 'vendor': "vendor_example", // String | Filter by vendor (partial match) + 'model': "model_example", // String | Filter by model (partial match) + 'mountPolicy': "mountPolicy_example", // String | Filter by mount policy (RO or RW) + 'sort': "sort_example" // String | Sort order (e.g. \"device\" or \"-device\") +}; +apiInstance.v1ClusterStorageGet(opts).then((data) => { + console.log('API called successfully. Returned data: ' + data); }, (error) => { console.error(error); }); @@ -2320,11 +3689,21 @@ apiInstance.v1ClearHyperTrace(instanceId).then(() => { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **instanceId** | **String**| Instance ID - uuid | + **limit** | **Number**| Maximum number of results to return (1–1000, default: 100) | [optional] + **offset** | **Number**| Number of results to skip (default: 0) | [optional] + **device** | **String**| Filter by device name (partial match) | [optional] + **fsType** | **String**| Filter by filesystem type (comma separated) | [optional] + **fsUUID** | **String**| Filter by filesystem UUID (partial match) | [optional] + **label** | **String**| Filter by label (partial match) | [optional] + **serial** | **String**| Filter by serial number (partial match) | [optional] + **vendor** | **String**| Filter by vendor (partial match) | [optional] + **model** | **String**| Filter by model (partial match) | [optional] + **mountPolicy** | **String**| Filter by mount policy (RO or RW) | [optional] + **sort** | **String**| Sort order (e.g. \"device\" or \"-device\") | [optional] ### Return type -null (empty response body) +[**GetStorageResponse**](GetStorageResponse.md) ### Authorization @@ -2336,11 +3715,13 @@ null (empty response body) - **Accept**: application/json -## v1ClearHyperTraceHooks +## v1ClusterStorageIdAttachPost -> v1ClearHyperTraceHooks(instanceId) +> Object v1ClusterStorageIdAttachPost(id) -Clear Hooks on an instance +Mount and attach a storage device + +Initiates an asynchronous mount job for a registered storage device. If already mounted, returns status 200. If not, queues a background job and returns 202. ### Example @@ -2352,9 +3733,9 @@ let BearerAuth = defaultClient.authentications['BearerAuth']; BearerAuth.accessToken = "YOUR ACCESS TOKEN" let apiInstance = new CorelliumClient.CorelliumApi(); -let instanceId = "instanceId_example"; // String | Instance ID - uuid -apiInstance.v1ClearHyperTraceHooks(instanceId).then(() => { - console.log('API called successfully.'); +let id = "id_example"; // String | The unique identifier of the storage media +apiInstance.v1ClusterStorageIdAttachPost(id).then((data) => { + console.log('API called successfully. Returned data: ' + data); }, (error) => { console.error(error); }); @@ -2366,11 +3747,11 @@ apiInstance.v1ClearHyperTraceHooks(instanceId).then(() => { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **instanceId** | **String**| Instance ID - uuid | + **id** | **String**| The unique identifier of the storage media | ### Return type -null (empty response body) +**Object** ### Authorization @@ -2382,11 +3763,13 @@ null (empty response body) - **Accept**: application/json -## v1ClearInstancePanics +## v1ClusterStorageIdEjectPost -> v1ClearInstancePanics(instanceId) +> Object v1ClusterStorageIdEjectPost(id) -Clear Panics +Eject/Unmount removable media + +Initiates an asynchronous unmount job for the physical storage device. If the device is already unmounted, returns success. If mounted, creates a background job to safely unmount. ### Example @@ -2398,9 +3781,9 @@ let BearerAuth = defaultClient.authentications['BearerAuth']; BearerAuth.accessToken = "YOUR ACCESS TOKEN" let apiInstance = new CorelliumClient.CorelliumApi(); -let instanceId = "instanceId_example"; // String | Instance ID - uuid -apiInstance.v1ClearInstancePanics(instanceId).then(() => { - console.log('API called successfully.'); +let id = "id_example"; // String | Storage device identifier (UUID) +apiInstance.v1ClusterStorageIdEjectPost(id).then((data) => { + console.log('API called successfully. Returned data: ' + data); }, (error) => { console.error(error); }); @@ -2412,11 +3795,11 @@ apiInstance.v1ClearInstancePanics(instanceId).then(() => { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **instanceId** | **String**| Instance ID - uuid | + **id** | **String**| Storage device identifier (UUID) | ### Return type -null (empty response body) +**Object** ### Authorization @@ -2434,6 +3817,8 @@ null (empty response body) Create a new auth provider for a domain +Create a new auth provider for a domain + ### Example ```javascript @@ -2492,6 +3877,8 @@ Name | Type | Description | Notes Create hypervisor hook for Instance +Create hypervisor hook for Instance + ### Example ```javascript @@ -2540,6 +3927,8 @@ Name | Type | Description | Notes Create a new Image +Create a new Image. Accepts multipart/form-data (with optional file upload) or application/json (metadata only). + ### Example ```javascript @@ -2550,11 +3939,12 @@ let BearerAuth = defaultClient.authentications['BearerAuth']; BearerAuth.accessToken = "YOUR ACCESS TOKEN" let apiInstance = new CorelliumClient.CorelliumApi(); -let type = "type_example"; // String | Image type +let type = "type_example"; // String | Image type: 'iotfirmware' | 'kernel' | 'devicetree' | 'ramdisk' | 'loaderfile' | 'clbi' | 'ufd' | 'media' | 'sepfw' | 'seprom' | 'bootrom' | 'llb' | 'iboot' | 'ibootdata' | 'fw' | 'fwasset' | 'partition' | 'extension' | 'vmfile' | 'backup' | 'activity-export' let encoding = "encoding_example"; // String | How the file is stored let opts = { 'encapsulated': true, // Boolean | set to false if the uploaded file is not encapsulated inside an outer zipfile 'name': "name_example", // String | Image name + 'fullPath': "fullPath_example", // String | Full local path to image file 'project': "project_example", // String | Project ID 'instance': "instance_example", // String | Instance ID 'file': "/path/to/file" // File | Optionally the actual file @@ -2572,10 +3962,11 @@ apiInstance.v1CreateImage(type, encoding, opts).then((data) => { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **type** | **String**| Image type | + **type** | **String**| Image type: 'iotfirmware' | 'kernel' | 'devicetree' | 'ramdisk' | 'loaderfile' | 'clbi' | 'ufd' | 'media' | 'sepfw' | 'seprom' | 'bootrom' | 'llb' | 'iboot' | 'ibootdata' | 'fw' | 'fwasset' | 'partition' | 'extension' | 'vmfile' | 'backup' | 'activity-export' | **encoding** | **String**| How the file is stored | **encapsulated** | **Boolean**| set to false if the uploaded file is not encapsulated inside an outer zipfile | [optional] **name** | **String**| Image name | [optional] + **fullPath** | **String**| Full local path to image file | [optional] **project** | **String**| Project ID | [optional] **instance** | **String**| Instance ID | [optional] **file** | **File**| Optionally the actual file | [optional] @@ -2600,6 +3991,8 @@ Name | Type | Description | Notes Create Instance +Create Instance + ### Example ```javascript @@ -2647,7 +4040,7 @@ Name | Type | Description | Notes ## v1CreateNetworkConnection -> v1CreateNetworkConnection(createNetworkConnectionOptions) +> NetworkConnection v1CreateNetworkConnection(createNetworkConnectionOptions) Create a new Network Connection @@ -2667,22 +4060,11 @@ let createNetworkConnectionOptions = { "provider": "openvpn", "name": "My OpenVPN Connection", "config": { - "config": "client\n" + - "dev tun\n" + - "proto tcp\n" + - "remote my-server-1 1194\n" + - "resolv-retry infinite\n" + - "nobind\n" + - "persist-key\n" + - "persist-tun\n" + - "remote-cert-tls server\n" + - "tls-auth ta.key 1\n" + - "cipher AES-256-CBC\n" + - "verb 3\n" + "config": "client\ndev tun\nproto tcp\nremote my-server-1 1194\nresolv-retry infinite\nnobind\npersist-key\npersist-tun\nremote-cert-tls server\ntls-auth ta.key 1\ncipher AES-256-CBC\nverb 3\n" } }; // CreateNetworkConnectionOptions | Network Connection Options -apiInstance.v1CreateNetworkConnection(createNetworkConnectionOptions).then(() => { - console.log('API called successfully.'); +apiInstance.v1CreateNetworkConnection(createNetworkConnectionOptions).then((data) => { + console.log('API called successfully. Returned data: ' + data); }, (error) => { console.error(error); }); @@ -2698,7 +4080,7 @@ Name | Type | Description | Notes ### Return type -null (empty response body) +[**NetworkConnection**](NetworkConnection.md) ### Authorization @@ -2707,7 +4089,7 @@ null (empty response body) ### HTTP request headers - **Content-Type**: application/json -- **Accept**: Not defined +- **Accept**: application/json ## v1CreateProject @@ -2716,6 +4098,8 @@ null (empty response body) Create a Project +Create a Project + ### Example ```javascript @@ -2772,6 +4156,8 @@ Name | Type | Description | Notes Create Instance Snapshot +Create Instance Snapshot + ### Example ```javascript @@ -2816,7 +4202,9 @@ Name | Type | Description | Notes ## v1CreateUser -> Object v1CreateUser(body) +> UserCreateReturn v1CreateUser(userCreate) + +Create User Create User @@ -2830,8 +4218,11 @@ let BearerAuth = defaultClient.authentications['BearerAuth']; BearerAuth.accessToken = "YOUR ACCESS TOKEN" let apiInstance = new CorelliumClient.CorelliumApi(); -let body = {key: null}; // Object | User data -apiInstance.v1CreateUser(body).then((data) => { +let userCreate = { + "name": "test", + "label": "Project Admin", +}; // UserCreate | User data +apiInstance.v1CreateUser(userCreate).then((data) => { console.log('API called successfully. Returned data: ' + data); }, (error) => { console.error(error); @@ -2844,11 +4235,11 @@ apiInstance.v1CreateUser(body).then((data) => { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **body** | **Object**| User data | + **userCreate** | [**UserCreate**](UserCreate.md)| User data | ### Return type -**Object** +[**UserCreateReturn**](UserCreateReturn.md) ### Authorization @@ -2860,9 +4251,59 @@ Name | Type | Description | Notes - **Accept**: application/json +## v1DeleteClusterSnapshot + +> v1DeleteClusterSnapshot(snapshotId) + +Delete a Cluster Snapshot + +Delete a Cluster Snapshot + +### Example + +```javascript +import CorelliumClient from '@corellium/client-api'; +let defaultClient = CorelliumClient.ApiClient.instance; +// Configure Bearer (ApiToken or JWT) access token for authorization: BearerAuth +let BearerAuth = defaultClient.authentications['BearerAuth']; +BearerAuth.accessToken = "YOUR ACCESS TOKEN" + +let apiInstance = new CorelliumClient.CorelliumApi(); +let snapshotId = "snapshotId_example"; // String | Snapshot ID - uuid +apiInstance.v1DeleteClusterSnapshot(snapshotId).then(() => { + console.log('API called successfully.'); +}, (error) => { + console.error(error); +}); + +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **snapshotId** | **String**| Snapshot ID - uuid | + +### Return type + +null (empty response body) + +### Authorization + +[BearerAuth](../README.md#BearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + + ## v1DeleteDomainAuthProvider -> Object v1DeleteDomainAuthProvider(domainId, providerId) +> v1DeleteDomainAuthProvider(domainId, providerId) + +Delete an auth provider from a domain Delete an auth provider from a domain @@ -2878,8 +4319,8 @@ BearerAuth.accessToken = "YOUR ACCESS TOKEN" let apiInstance = new CorelliumClient.CorelliumApi(); let domainId = "domainId_example"; // String | Domain ID - uuid let providerId = "providerId_example"; // String | Provider ID - uuid -apiInstance.v1DeleteDomainAuthProvider(domainId, providerId).then((data) => { - console.log('API called successfully. Returned data: ' + data); +apiInstance.v1DeleteDomainAuthProvider(domainId, providerId).then(() => { + console.log('API called successfully.'); }, (error) => { console.error(error); }); @@ -2896,7 +4337,7 @@ Name | Type | Description | Notes ### Return type -**Object** +null (empty response body) ### Authorization @@ -2914,6 +4355,8 @@ Name | Type | Description | Notes Delete an existing hypervisor hook +Delete an existing hypervisor hook + ### Example ```javascript @@ -2960,6 +4403,8 @@ null (empty response body) Delete Image +Delete Image + ### Example ```javascript @@ -3006,6 +4451,8 @@ null (empty response body) Remove Instance +Remove Instance + ### Example ```javascript @@ -3052,6 +4499,8 @@ null (empty response body) Delete an Instance Snapshot +Delete an Instance Snapshot + ### Example ```javascript @@ -3152,6 +4601,8 @@ null (empty response body) Delete a Project +Delete a Project + ### Example ```javascript @@ -3198,6 +4649,8 @@ null (empty response body) Delete a Snapshot +Delete a Snapshot + ### Example ```javascript @@ -3295,7 +4748,9 @@ Name | Type | Description | Notes ## v1DeleteUser -> Object v1DeleteUser(userId) +> v1DeleteUser(userId) + +Delete User Delete User @@ -3310,8 +4765,8 @@ BearerAuth.accessToken = "YOUR ACCESS TOKEN" let apiInstance = new CorelliumClient.CorelliumApi(); let userId = "userId_example"; // String | userId - uuid -apiInstance.v1DeleteUser(userId).then((data) => { - console.log('API called successfully. Returned data: ' + data); +apiInstance.v1DeleteUser(userId).then(() => { + console.log('API called successfully.'); }, (error) => { console.error(error); }); @@ -3327,7 +4782,59 @@ Name | Type | Description | Notes ### Return type -**Object** +null (empty response body) + +### Authorization + +[BearerAuth](../README.md#BearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + + +## v1DetachInstanceInterface + +> v1DetachInstanceInterface(instanceId, interfaceId, detachInterfaceRequest) + +Detach I/O Interface + +Detach an I/O interface from an I/O interconnect for the specified instance identifier. + +### Example + +```javascript +import CorelliumClient from '@corellium/client-api'; +let defaultClient = CorelliumClient.ApiClient.instance; +// Configure Bearer (ApiToken or JWT) access token for authorization: BearerAuth +let BearerAuth = defaultClient.authentications['BearerAuth']; +BearerAuth.accessToken = "YOUR ACCESS TOKEN" + +let apiInstance = new CorelliumClient.CorelliumApi(); +let instanceId = "instanceId_example"; // String | Instance ID - uuid +let interfaceId = "interfaceId_example"; // String | Interface ID +let detachInterfaceRequest = new CorelliumClient.DetachInterfaceRequest(); // DetachInterfaceRequest | Interface detachment request +apiInstance.v1DetachInstanceInterface(instanceId, interfaceId, detachInterfaceRequest).then(() => { + console.log('API called successfully.'); +}, (error) => { + console.error(error); +}); + +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **instanceId** | **String**| Instance ID - uuid | + **interfaceId** | **String**| Interface ID | + **detachInterfaceRequest** | [**DetachInterfaceRequest**](DetachInterfaceRequest.md)| Interface detachment request | + +### Return type + +null (empty response body) ### Authorization @@ -3335,7 +4842,7 @@ Name | Type | Description | Notes ### HTTP request headers -- **Content-Type**: Not defined +- **Content-Type**: application/json - **Accept**: application/json @@ -3345,6 +4852,8 @@ Name | Type | Description | Notes Disable an exposed port on an instance for device access. +Disable an exposed port on an instance for device access. + ### Example ```javascript @@ -3391,6 +4900,8 @@ null (empty response body) Download activity +Download activity for a given task + ### Example ```javascript @@ -3437,6 +4948,8 @@ Name | Type | Description | Notes Enable an exposed port on an instance for device access. +Enable an exposed port on an instance for device access. + ### Example ```javascript @@ -3483,6 +4996,8 @@ null (empty response body) Execute Hooks on an instance +Execute Hooks on an instance + ### Example ```javascript @@ -3529,6 +5044,8 @@ null (empty response body) Get export task status +Get export task status + ### Example ```javascript @@ -3575,6 +5092,8 @@ Name | Type | Description | Notes Get all export tasks for user +Get all export tasks for user + ### Example ```javascript @@ -3611,12 +5130,112 @@ This endpoint does not need any parameter. - **Accept**: application/json +## v1GetClusterSnapshot + +> ClusterSnapshot v1GetClusterSnapshot(snapshotId) + +Get Cluster Snapshot + +Get Cluster Snapshot + +### Example + +```javascript +import CorelliumClient from '@corellium/client-api'; +let defaultClient = CorelliumClient.ApiClient.instance; +// Configure Bearer (ApiToken or JWT) access token for authorization: BearerAuth +let BearerAuth = defaultClient.authentications['BearerAuth']; +BearerAuth.accessToken = "YOUR ACCESS TOKEN" + +let apiInstance = new CorelliumClient.CorelliumApi(); +let snapshotId = "snapshotId_example"; // String | Snapshot ID - uuid +apiInstance.v1GetClusterSnapshot(snapshotId).then((data) => { + console.log('API called successfully. Returned data: ' + data); +}, (error) => { + console.error(error); +}); + +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **snapshotId** | **String**| Snapshot ID - uuid | + +### Return type + +[**ClusterSnapshot**](ClusterSnapshot.md) + +### Authorization + +[BearerAuth](../README.md#BearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + + +## v1GetClusterSnapshots + +> SnapshotList v1GetClusterSnapshots(opts) + +Get Cluster Snapshots + +Get Cluster Snapshots + +### Example + +```javascript +import CorelliumClient from '@corellium/client-api'; +let defaultClient = CorelliumClient.ApiClient.instance; +// Configure Bearer (ApiToken or JWT) access token for authorization: BearerAuth +let BearerAuth = defaultClient.authentications['BearerAuth']; +BearerAuth.accessToken = "YOUR ACCESS TOKEN" + +let apiInstance = new CorelliumClient.CorelliumApi(); +let opts = { + 'request': {key: null} // SnapshotRequest | +}; +apiInstance.v1GetClusterSnapshots(opts).then((data) => { + console.log('API called successfully. Returned data: ' + data); +}, (error) => { + console.error(error); +}); + +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **request** | [**SnapshotRequest**](.md)| | [optional] + +### Return type + +[**SnapshotList**](SnapshotList.md) + +### Authorization + +[BearerAuth](../README.md#BearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + + ## v1GetConfig > ConfigResponse v1GetConfig() Get all configs +Get all configs + ### Example ```javascript @@ -3655,6 +5274,8 @@ No authorization required Return all configured auth providers for a domain (including globally configured providers) +Return all configured auth providers for a domain (including globally configured providers) + ### Example ```javascript @@ -3701,6 +5322,8 @@ Name | Type | Description | Notes Get hypervisor hook by id +Get hypervisor hook by id + ### Example ```javascript @@ -3747,6 +5370,8 @@ Name | Type | Description | Notes Get all hypervisor hooks for Instance +Get all hypervisor hooks for Instance + ### Example ```javascript @@ -3801,6 +5426,8 @@ Name | Type | Description | Notes Get Image Metadata +Get Image Metadata + ### Example ```javascript @@ -3847,6 +5474,8 @@ Name | Type | Description | Notes Get all Images Metadata +Get all Images Metadata + ### Example ```javascript @@ -3889,12 +5518,62 @@ Name | Type | Description | Notes - **Accept**: application/json +## v1GetInstallFirmwareStatus + +> InstallFirmwareResponse v1GetInstallFirmwareStatus(taskId) + +Query install firmware request status. + +Returns the status of an install firmware request. + +### Example + +```javascript +import CorelliumClient from '@corellium/client-api'; +let defaultClient = CorelliumClient.ApiClient.instance; +// Configure Bearer (ApiToken or JWT) access token for authorization: BearerAuth +let BearerAuth = defaultClient.authentications['BearerAuth']; +BearerAuth.accessToken = "YOUR ACCESS TOKEN" + +let apiInstance = new CorelliumClient.CorelliumApi(); +let taskId = "taskId_example"; // String | Task ID - uuid +apiInstance.v1GetInstallFirmwareStatus(taskId).then((data) => { + console.log('API called successfully. Returned data: ' + data); +}, (error) => { + console.error(error); +}); + +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **taskId** | **String**| Task ID - uuid | + +### Return type + +[**InstallFirmwareResponse**](InstallFirmwareResponse.md) + +### Authorization + +[BearerAuth](../README.md#BearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + + ## v1GetInstance > Instance v1GetInstance(instanceId, opts) Get Instance +Get Instance + ### Example ```javascript @@ -3945,6 +5624,8 @@ Name | Type | Description | Notes Get console websocket URL +Get console websocket URL + ### Example ```javascript @@ -3991,6 +5672,8 @@ Name | Type | Description | Notes Get Console Log +Get Console Log + ### Example ```javascript @@ -4037,6 +5720,8 @@ Name | Type | Description | Notes Get Instance GPIOs +Get Instance GPIOs + ### Example ```javascript @@ -4083,6 +5768,8 @@ Name | Type | Description | Notes Get Panics +Get Panics + ### Example ```javascript @@ -4129,6 +5816,8 @@ Name | Type | Description | Notes Get Instance Peripherals +Get Instance Peripherals + ### Example ```javascript @@ -4175,6 +5864,8 @@ Name | Type | Description | Notes Get Instance Screenshot +Get Instance Screenshot + ### Example ```javascript @@ -4227,6 +5918,8 @@ Name | Type | Description | Notes Get Instance Snapshot +Get Instance Snapshot + ### Example ```javascript @@ -4275,6 +5968,8 @@ Name | Type | Description | Notes Get Instance Snapshots +Get Instance Snapshots + ### Example ```javascript @@ -4321,6 +6016,8 @@ Name | Type | Description | Notes Get Instances +Get Instances + ### Example ```javascript @@ -4371,6 +6068,8 @@ Name | Type | Description | Notes Get Software for Model +Get Software for Model + ### Example ```javascript @@ -4417,6 +6116,8 @@ Name | Type | Description | Notes Get Supported Models +Get Supported Models + ### Example ```javascript @@ -4507,6 +6208,8 @@ Name | Type | Description | Notes Get a Project +Get a Project + ### Example ```javascript @@ -4553,6 +6256,8 @@ Name | Type | Description | Notes Get Instances in Project +Get Instances in Project + ### Example ```javascript @@ -4605,6 +6310,8 @@ Name | Type | Description | Notes Get Project Authorized Keys +Get Project Authorized Keys + ### Example ```javascript @@ -4651,6 +6358,8 @@ Name | Type | Description | Notes Retrieve the network connection log for a project +Retrieve the network connection log for a project + ### Example ```javascript @@ -4697,6 +6406,8 @@ Name | Type | Description | Notes Retrieve the network connection status for a project +Retrieve the network connection status for a project + ### Example ```javascript @@ -4784,7 +6495,7 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: Not defined -- **Accept**: application/x-openvpn-profile, application/json +- **Accept**: application/json ## v1GetProjects @@ -4793,6 +6504,8 @@ Name | Type | Description | Notes Get Projects +Get Projects + ### Example ```javascript @@ -4839,7 +6552,9 @@ Name | Type | Description | Notes ## v1GetResetLinkInfo -> Object v1GetResetLinkInfo(token) +> ResetLinkInfoReturn v1GetResetLinkInfo(token) + +Send Password Reset Link Info Send Password Reset Link Info @@ -4867,7 +6582,7 @@ Name | Type | Description | Notes ### Return type -**Object** +[**ResetLinkInfoReturn**](ResetLinkInfoReturn.md) ### Authorization @@ -4879,20 +6594,70 @@ No authorization required - **Accept**: application/json -## v1GetServiceProviderMetadata +## v1GetSharedSnapshots + +> UserSnapshots v1GetSharedSnapshots() + +Fetch shared snapshots + +Fetch snapshots shared with and shared by the requesting user + +### Example + +```javascript +import CorelliumClient from '@corellium/client-api'; +let defaultClient = CorelliumClient.ApiClient.instance; +// Configure Bearer (ApiToken or JWT) access token for authorization: BearerAuth +let BearerAuth = defaultClient.authentications['BearerAuth']; +BearerAuth.accessToken = "YOUR ACCESS TOKEN" + +let apiInstance = new CorelliumClient.CorelliumApi(); +apiInstance.v1GetSharedSnapshots().then((data) => { + console.log('API called successfully. Returned data: ' + data); +}, (error) => { + console.error(error); +}); + +``` + +### Parameters + +This endpoint does not need any parameter. + +### Return type + +[**UserSnapshots**](UserSnapshots.md) + +### Authorization + +[BearerAuth](../README.md#BearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + + +## v1GetSnapshot + +> Snapshot v1GetSnapshot(snapshotId) -> Object v1GetServiceProviderMetadata(providerId) +Get Snapshot -Get service provider metadata xml from an auth provider +Get Snapshot ### Example ```javascript import CorelliumClient from '@corellium/client-api'; +let defaultClient = CorelliumClient.ApiClient.instance; +// Configure Bearer (ApiToken or JWT) access token for authorization: BearerAuth +let BearerAuth = defaultClient.authentications['BearerAuth']; +BearerAuth.accessToken = "YOUR ACCESS TOKEN" let apiInstance = new CorelliumClient.CorelliumApi(); -let providerId = "providerId_example"; // String | Provider ID - uuid -apiInstance.v1GetServiceProviderMetadata(providerId).then((data) => { +let snapshotId = "snapshotId_example"; // String | Snapshot ID - uuid +apiInstance.v1GetSnapshot(snapshotId).then((data) => { console.log('API called successfully. Returned data: ' + data); }, (error) => { console.error(error); @@ -4905,15 +6670,15 @@ apiInstance.v1GetServiceProviderMetadata(providerId).then((data) => { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **providerId** | **String**| Provider ID - uuid | + **snapshotId** | **String**| Snapshot ID - uuid | ### Return type -**Object** +[**Snapshot**](Snapshot.md) ### Authorization -No authorization required +[BearerAuth](../README.md#BearerAuth) ### HTTP request headers @@ -4921,13 +6686,13 @@ No authorization required - **Accept**: application/json -## v1GetSharedSnapshots +## v1InstallFirmware -> UserSnapshots v1GetSharedSnapshots() +> InstallFirmwareResponse v1InstallFirmware(installFirmwareRequest) -Fetch shared snapshots +Installs a firmware for cluster-wide use -Fetch snapshots shared with and shared by the requesting user +Takes an uploaded firmware image and installs it for cluster-wide use. The firmware is then removed from Images. In order to install a firmware, you need to follow a 4-step process. First, POST /v1/images/ with { name: string, type: 'fw' } using content-type application/json to acquire an imageId. Second, upload the firmware file via a multipart/form-data POST to /v1/images/:imageId. Third, POST /v1/images/install-firmware with { imageId: string; filename: string } using content-type application/json to acquire a taskId. The 'filename' must be an exact match for the filename in the firmware service that you're uploading this image for. Fourth, you can poll the state of the installation via GET /v1/images/install-firmware/:taskId. ### Example @@ -4939,7 +6704,8 @@ let BearerAuth = defaultClient.authentications['BearerAuth']; BearerAuth.accessToken = "YOUR ACCESS TOKEN" let apiInstance = new CorelliumClient.CorelliumApi(); -apiInstance.v1GetSharedSnapshots().then((data) => { +let installFirmwareRequest = new CorelliumClient.InstallFirmwareRequest(); // InstallFirmwareRequest | User data +apiInstance.v1InstallFirmware(installFirmwareRequest).then((data) => { console.log('API called successfully. Returned data: ' + data); }, (error) => { console.error(error); @@ -4949,11 +6715,14 @@ apiInstance.v1GetSharedSnapshots().then((data) => { ### Parameters -This endpoint does not need any parameter. + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **installFirmwareRequest** | [**InstallFirmwareRequest**](InstallFirmwareRequest.md)| User data | ### Return type -[**UserSnapshots**](UserSnapshots.md) +[**InstallFirmwareResponse**](InstallFirmwareResponse.md) ### Authorization @@ -4961,15 +6730,17 @@ This endpoint does not need any parameter. ### HTTP request headers -- **Content-Type**: Not defined +- **Content-Type**: application/json - **Accept**: application/json -## v1GetSnapshot +## v1InstallFirmwareAssets -> Snapshot v1GetSnapshot(snapshotId) +> InstallFirmwareAssetsResponse v1InstallFirmwareAssets(installFirmwareAssetsRequest) -Get Snapshot +Installs firmware assets for cluster-wide use + +Takes an uploaded firmware assets blob image and installs it for cluster-wide use. The image is then removed from Images. In order to install a firmware, you need to follow a 4-step process. First, POST /v1/images/ with { name: string, type: 'fwasset' } using content-type application/json to acquire an imageId. name should be something like 'fcs-keys.json' Second, upload the firmware file via a multipart/form-data POST to /v1/images/:imageId. Third, POST /v1/images/install-firmware-assets with { imageId: string; } using content-type application/json to acquire a taskId. Fourth, you can poll the state of the installation via GET /v1/images/install-firmware-assets/:taskId. ### Example @@ -4981,8 +6752,8 @@ let BearerAuth = defaultClient.authentications['BearerAuth']; BearerAuth.accessToken = "YOUR ACCESS TOKEN" let apiInstance = new CorelliumClient.CorelliumApi(); -let snapshotId = "snapshotId_example"; // String | Snapshot ID - uuid -apiInstance.v1GetSnapshot(snapshotId).then((data) => { +let installFirmwareAssetsRequest = new CorelliumClient.InstallFirmwareAssetsRequest(); // InstallFirmwareAssetsRequest | User data +apiInstance.v1InstallFirmwareAssets(installFirmwareAssetsRequest).then((data) => { console.log('API called successfully. Returned data: ' + data); }, (error) => { console.error(error); @@ -4995,11 +6766,11 @@ apiInstance.v1GetSnapshot(snapshotId).then((data) => { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **snapshotId** | **String**| Snapshot ID - uuid | + **installFirmwareAssetsRequest** | [**InstallFirmwareAssetsRequest**](InstallFirmwareAssetsRequest.md)| User data | ### Return type -[**Snapshot**](Snapshot.md) +[**InstallFirmwareAssetsResponse**](InstallFirmwareAssetsResponse.md) ### Authorization @@ -5007,7 +6778,7 @@ Name | Type | Description | Notes ### HTTP request headers -- **Content-Type**: Not defined +- **Content-Type**: application/json - **Accept**: application/json @@ -5070,6 +6841,8 @@ null (empty response body) Download a netdump pcap file +Download a netdump pcap file + ### Example ```javascript @@ -5162,6 +6935,8 @@ Name | Type | Description | Notes Get Kernel extension ranges +Get Kernel extension ranges + ### Example ```javascript @@ -5342,12 +7117,76 @@ This endpoint does not need any parameter. - **Accept**: application/json +## v1ListStorageFiles + +> Object v1ListStorageFiles(id, path, opts) + +List Storage Files + +List files from attached storage devices. Looks up the storage device by identifier, then lists filesystem contents at the given path within the device's mount point. This endpoint is available to all authenticated users. + +### Example + +```javascript +import CorelliumClient from '@corellium/client-api'; +let defaultClient = CorelliumClient.ApiClient.instance; +// Configure Bearer (ApiToken or JWT) access token for authorization: BearerAuth +let BearerAuth = defaultClient.authentications['BearerAuth']; +BearerAuth.accessToken = "YOUR ACCESS TOKEN" + +let apiInstance = new CorelliumClient.CorelliumApi(); +let id = "id_example"; // String | Storage device identifier (MediaStore identifier) +let path = "path_example"; // String | Path within the storage device to list +let opts = { + 'limit': 3.4, // Number | Maximum number of results to return (1–1000, default: 100) + 'offset': 3.4, // Number | Number of results to skip (default: 0) + 'name': "name_example", // String | Filter by name (case insensitive exact match, comma separated for multiple values) + 'type': "type_example", // String | Filter by type (case insensitive partial match, e.g. \"file\" or \"dir\") + 'sort': "sort_example" // String | Sort order (e.g., 'name', '-name', 'type,-size,-lastModifiedTime'). Prefix with '-' for descending. +}; +apiInstance.v1ListStorageFiles(id, path, opts).then((data) => { + console.log('API called successfully. Returned data: ' + data); +}, (error) => { + console.error(error); +}); + +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **String**| Storage device identifier (MediaStore identifier) | + **path** | **String**| Path within the storage device to list | + **limit** | **Number**| Maximum number of results to return (1–1000, default: 100) | [optional] + **offset** | **Number**| Number of results to skip (default: 0) | [optional] + **name** | **String**| Filter by name (case insensitive exact match, comma separated for multiple values) | [optional] + **type** | **String**| Filter by type (case insensitive partial match, e.g. \"file\" or \"dir\") | [optional] + **sort** | **String**| Sort order (e.g., 'name', '-name', 'type,-size,-lastModifiedTime'). Prefix with '-' for descending. | [optional] + +### Return type + +**Object** + +### Authorization + +[BearerAuth](../README.md#BearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + + ## v1ListThreads > [KernelTask] v1ListThreads(instanceId) Get Running Threads (CoreTrace) +Get Running Threads (CoreTrace) + ### Example ```javascript @@ -5394,6 +7233,8 @@ Name | Type | Description | Notes Start playing media +Start playing media + ### Example ```javascript @@ -5444,6 +7285,8 @@ null (empty response body) Stop playing media +Stop playing media + ### Example ```javascript @@ -5486,7 +7329,7 @@ null (empty response body) ## v1PartialUpdateNetworkConnection -> v1PartialUpdateNetworkConnection(id, updateNetworkConnectionOptions, opts) +> NetworkConnection v1PartialUpdateNetworkConnection(id, updateNetworkConnectionOptions, opts) Update Network Connection (partial) @@ -5509,8 +7352,8 @@ let updateNetworkConnectionOptions = { let opts = { 'force': true // Boolean | Force deletion (true only or not present) }; -apiInstance.v1PartialUpdateNetworkConnection(id, updateNetworkConnectionOptions, opts).then(() => { - console.log('API called successfully.'); +apiInstance.v1PartialUpdateNetworkConnection(id, updateNetworkConnectionOptions, opts).then((data) => { + console.log('API called successfully. Returned data: ' + data); }, (error) => { console.error(error); }); @@ -5528,7 +7371,7 @@ Name | Type | Description | Notes ### Return type -null (empty response body) +[**NetworkConnection**](NetworkConnection.md) ### Authorization @@ -5537,7 +7380,7 @@ null (empty response body) ### HTTP request headers - **Content-Type**: application/json -- **Accept**: Not defined +- **Accept**: application/json ## v1PatchInstance @@ -5546,6 +7389,8 @@ null (empty response body) Update Instance +Update Instance + ### Example ```javascript @@ -5590,12 +7435,64 @@ Name | Type | Description | Notes - **Accept**: application/json +## v1PatchInstanceReadOnly + +> Instance v1PatchInstanceReadOnly(instanceId, patchInstanceReadOnly) + +Update Instance Read Only + +### Example + +```javascript +import CorelliumClient from '@corellium/client-api'; +let defaultClient = CorelliumClient.ApiClient.instance; +// Configure Bearer (ApiToken or JWT) access token for authorization: BearerAuth +let BearerAuth = defaultClient.authentications['BearerAuth']; +BearerAuth.accessToken = "YOUR ACCESS TOKEN" + +let apiInstance = new CorelliumClient.CorelliumApi(); +let instanceId = "instanceId_example"; // String | Instance ID +let patchInstanceReadOnly = { + "readOnly": "disabled" +}; // PatchInstanceReadOnly | +apiInstance.v1PatchInstanceReadOnly(instanceId, patchInstanceReadOnly).then((data) => { + console.log('API called successfully. Returned data: ' + data); +}, (error) => { + console.error(error); +}); + +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **instanceId** | **String**| Instance ID | + **patchInstanceReadOnly** | [**PatchInstanceReadOnly**](PatchInstanceReadOnly.md)| | + +### Return type + +[**Instance**](Instance.md) + +### Authorization + +[BearerAuth](../README.md#BearerAuth) + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + + ## v1PauseInstance > v1PauseInstance(instanceId) Pause an Instance +Pause an Instance + ### Example ```javascript @@ -5744,6 +7641,8 @@ No authorization required Reboot an Instance +Reboot an Instance + ### Example ```javascript @@ -5790,6 +7689,8 @@ null (empty response body) Delete Project Authorized Key +Delete Project Authorized Key + ### Example ```javascript @@ -5852,7 +7753,7 @@ BearerAuth.accessToken = "YOUR ACCESS TOKEN" let apiInstance = new CorelliumClient.CorelliumApi(); let projectId = "projectId_example"; // String | Project ID - uuid let teamId = "teamId_example"; // String | Team ID - uuid -let roleId = "roleId_example"; // String | Role ID - uuid +let roleId = "roleId_example"; // String | Role ID apiInstance.v1RemoveTeamRoleFromProject(projectId, teamId, roleId).then(() => { console.log('API called successfully.'); }, (error) => { @@ -5868,7 +7769,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **projectId** | **String**| Project ID - uuid | **teamId** | **String**| Team ID - uuid | - **roleId** | **String**| Role ID - uuid | + **roleId** | **String**| Role ID | ### Return type @@ -5954,7 +7855,7 @@ BearerAuth.accessToken = "YOUR ACCESS TOKEN" let apiInstance = new CorelliumClient.CorelliumApi(); let projectId = "projectId_example"; // String | Project ID - uuid let userId = "userId_example"; // String | User ID - uuid -let roleId = "roleId_example"; // String | Role ID - uuid +let roleId = "roleId_example"; // String | Role ID apiInstance.v1RemoveUserRoleFromProject(projectId, userId, roleId).then(() => { console.log('API called successfully.'); }, (error) => { @@ -5970,7 +7871,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **projectId** | **String**| Project ID - uuid | **userId** | **String**| User ID - uuid | - **roleId** | **String**| Role ID - uuid | + **roleId** | **String**| Role ID | ### Return type @@ -5992,6 +7893,8 @@ null (empty response body) Rename an Instance Snapshot +Rename an Instance Snapshot + ### Example ```javascript @@ -6042,6 +7945,8 @@ Name | Type | Description | Notes Reset User Password +Reset User Password + ### Example ```javascript @@ -6088,6 +7993,8 @@ No authorization required Restore backup +Restore backup + ### Example ```javascript @@ -6100,7 +8007,9 @@ BearerAuth.accessToken = "YOUR ACCESS TOKEN" let apiInstance = new CorelliumClient.CorelliumApi(); let instanceId = "instanceId_example"; // String | Instance ID - uuid let opts = { - 'body': {key: null} // Object | Restore backup data + 'restoreBackupData': { + "password": "12345678" +} // RestoreBackupData | Restore backup data }; apiInstance.v1RestoreBackup(instanceId, opts).then(() => { console.log('API called successfully.'); @@ -6116,7 +8025,7 @@ apiInstance.v1RestoreBackup(instanceId, opts).then(() => { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **instanceId** | **String**| Instance ID - uuid | - **body** | **Object**| Restore backup data | [optional] + **restoreBackupData** | [**RestoreBackupData**](RestoreBackupData.md)| Restore backup data | [optional] ### Return type @@ -6138,6 +8047,8 @@ null (empty response body) Restore an Instance Snapshot +Restore an Instance Snapshot + ### Example ```javascript @@ -6282,6 +8193,8 @@ null (empty response body) Send Password Reset Link +Send Password Reset Link + ### Example ```javascript @@ -6324,6 +8237,8 @@ No authorization required Set Instance GPIOs +Set Instance GPIOs + ### Example ```javascript @@ -6386,6 +8301,8 @@ Name | Type | Description | Notes Set Instance Peripherals +Set Instance Peripherals + ### Example ```javascript @@ -6400,8 +8317,8 @@ let instanceId = "instanceId_example"; // String | Instance ID - uuid let peripheralsData = { "acceleration": [0, 9.81, 0], "gyroscope": [0, 0, 0], - "magnetic": [0, 45, 0 ], - "orientation": [0, 0, 0 ], + "magnetic": [0, 45, 0], + "orientation": [0, 0, 0], "temperature": 25, "proximity": 50, "light": 20, @@ -6444,6 +8361,8 @@ Name | Type | Description | Notes Set state of Instance +Set state of Instance + ### Example ```javascript @@ -6596,6 +8515,8 @@ No authorization required Rename a Snapshot +Rename a Snapshot + ### Example ```javascript @@ -6644,6 +8565,8 @@ Name | Type | Description | Notes Start CoreTrace on an instance +Start CoreTrace on an instance + ### Example ```javascript @@ -6690,6 +8613,8 @@ null (empty response body) Start HyperTrace on an instance +Start HyperTrace on an instance + ### Example ```javascript @@ -6738,6 +8663,8 @@ null (empty response body) Start an Instance +Start an Instance + ### Example ```javascript @@ -6788,6 +8715,8 @@ null (empty response body) Start Enhanced Network Monitor on an instance. +Start Enhanced Network Monitor on an instance. + ### Example ```javascript @@ -6838,6 +8767,8 @@ null (empty response body) Start Network Monitor on an instance. +Start Network Monitor on an instance. + ### Example ```javascript @@ -6888,6 +8819,8 @@ null (empty response body) Stop CoreTrace on an instance. +Stop CoreTrace on an instance. + ### Example ```javascript @@ -6934,6 +8867,8 @@ null (empty response body) Stop HyperTrace on an instance. +Stop HyperTrace on an instance. + ### Example ```javascript @@ -6980,6 +8915,8 @@ null (empty response body) Stop an Instance +Stop an Instance + ### Example ```javascript @@ -7030,6 +8967,8 @@ null (empty response body) Stop Enhanced Network Monitor on an instance. +Stop Enhanced Network Monitor on an instance. + ### Example ```javascript @@ -7076,6 +9015,8 @@ null (empty response body) Stop Network Monitor on an instance. +Stop Network Monitor on an instance. + ### Example ```javascript @@ -7116,6 +9057,68 @@ null (empty response body) - **Accept**: application/json +## v1StorageGet + +> GetStorageResponse v1StorageGet(opts) + +Get storage devices + +List all attached storage devices. This endpoint is only available to all authenticated users. + +### Example + +```javascript +import CorelliumClient from '@corellium/client-api'; +let defaultClient = CorelliumClient.ApiClient.instance; +// Configure Bearer (ApiToken or JWT) access token for authorization: BearerAuth +let BearerAuth = defaultClient.authentications['BearerAuth']; +BearerAuth.accessToken = "YOUR ACCESS TOKEN" + +let apiInstance = new CorelliumClient.CorelliumApi(); +let opts = { + 'limit': 3.4, // Number | Maximum number of results to return (1–1000, default: 100) + 'offset': 3.4, // Number | Number of results to skip (default: 0) + 'identifier': "identifier_example", // String | Filter by identifier (comma separated) + 'device': "device_example", // String | Filter by device name (partial match) + 'fsType': "fsType_example", // String | Filter by filesystem type (comma separated) + 'mountPolicy': "mountPolicy_example", // String | Filter by mount policy (RO or RW) + 'sort': "sort_example" // String | Sort order (e.g. \"device\" or \"-device\") +}; +apiInstance.v1StorageGet(opts).then((data) => { + console.log('API called successfully. Returned data: ' + data); +}, (error) => { + console.error(error); +}); + +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **limit** | **Number**| Maximum number of results to return (1–1000, default: 100) | [optional] + **offset** | **Number**| Number of results to skip (default: 0) | [optional] + **identifier** | **String**| Filter by identifier (comma separated) | [optional] + **device** | **String**| Filter by device name (partial match) | [optional] + **fsType** | **String**| Filter by filesystem type (comma separated) | [optional] + **mountPolicy** | **String**| Filter by mount policy (RO or RW) | [optional] + **sort** | **String**| Sort order (e.g. \"device\" or \"-device\") | [optional] + +### Return type + +[**GetStorageResponse**](GetStorageResponse.md) + +### Authorization + +[BearerAuth](../README.md#BearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + + ## v1TeamChange > v1TeamChange(teamId, createTeam) @@ -7312,6 +9315,8 @@ This endpoint does not need any parameter. Unpause an Instance +Unpause an Instance + ### Example ```javascript @@ -7358,6 +9363,8 @@ null (empty response body) Update an auth provider for a domain +Update an auth provider for a domain + ### Example ```javascript @@ -7414,7 +9421,9 @@ Name | Type | Description | Notes ## v1UpdateHook -> Hook v1UpdateHook(hookId, v1CreateHookParameters) +> Hook v1UpdateHook(hookId, v1UpdateHookParameters) + +Update an existing hypervisor hook Update an existing hypervisor hook @@ -7429,8 +9438,8 @@ BearerAuth.accessToken = "YOUR ACCESS TOKEN" let apiInstance = new CorelliumClient.CorelliumApi(); let hookId = "hookId_example"; // String | Hook ID -let v1CreateHookParameters = { "enabled": false}; // V1CreateHookParameters | application/json -apiInstance.v1UpdateHook(hookId, v1CreateHookParameters).then((data) => { +let v1UpdateHookParameters = { "enabled": false}; // V1UpdateHookParameters | application/json +apiInstance.v1UpdateHook(hookId, v1UpdateHookParameters).then((data) => { console.log('API called successfully. Returned data: ' + data); }, (error) => { console.error(error); @@ -7444,7 +9453,7 @@ apiInstance.v1UpdateHook(hookId, v1CreateHookParameters).then((data) => { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **hookId** | **String**| Hook ID | - **v1CreateHookParameters** | [**V1CreateHookParameters**](V1CreateHookParameters.md)| application/json | + **v1UpdateHookParameters** | [**V1UpdateHookParameters**](V1UpdateHookParameters.md)| application/json | ### Return type @@ -7462,7 +9471,7 @@ Name | Type | Description | Notes ## v1UpdateNetworkConnection -> v1UpdateNetworkConnection(id, updateNetworkConnectionOptions, opts) +> NetworkConnection v1UpdateNetworkConnection(id, updateNetworkConnectionOptions, opts) Update Network Connection @@ -7483,25 +9492,14 @@ let updateNetworkConnectionOptions = { "type": "openvpn", "name": "My Renamed OpenVPN Connection", "config": { - "config": "client\n" + - "dev tun\n" + - "proto tcp\n" + - "remote my-server-1 1194\n" + - "resolv-retry infinite\n" + - "nobind\n" + - "persist-key\n" + - "persist-tun\n" + - "remote-cert-tls server\n" + - "tls-auth ta.key 1\n" + - "cipher AES-256-CBC\n" + - "verb 3\n" + "config": "client\ndev tun\nproto tcp\nremote my-server-1 1194\nresolv-retry infinite\nnobind\npersist-key\npersist-tun\nremote-cert-tls server\ntls-auth ta.key 1\ncipher AES-256-CBC\nverb 3\n" } }; // UpdateNetworkConnectionOptions | Network Connection Options let opts = { 'force': true // Boolean | Force deletion (true only or not present) }; -apiInstance.v1UpdateNetworkConnection(id, updateNetworkConnectionOptions, opts).then(() => { - console.log('API called successfully.'); +apiInstance.v1UpdateNetworkConnection(id, updateNetworkConnectionOptions, opts).then((data) => { + console.log('API called successfully. Returned data: ' + data); }, (error) => { console.error(error); }); @@ -7519,7 +9517,7 @@ Name | Type | Description | Notes ### Return type -null (empty response body) +[**NetworkConnection**](NetworkConnection.md) ### Authorization @@ -7528,7 +9526,7 @@ null (empty response body) ### HTTP request headers - **Content-Type**: application/json -- **Accept**: Not defined +- **Accept**: application/json ## v1UpdateProject @@ -7537,6 +9535,8 @@ null (empty response body) Update a Project +Update a Project + ### Example ```javascript @@ -7585,6 +9585,8 @@ Name | Type | Description | Notes Change Project Settings +Change Project Settings + ### Example ```javascript @@ -7629,10 +9631,12 @@ null (empty response body) ## v1UpdateUser -> Object v1UpdateUser(userId, body) +> v1UpdateUser(userId, userUpdate) Update User +Update a user. Fields such as `name`, `label`, `password`, and `clusterAdministrator` can be updated. Only users with the Cluster Administrator role can set or modify the `clusterAdministrator` flag. + ### Example ```javascript @@ -7644,9 +9648,14 @@ BearerAuth.accessToken = "YOUR ACCESS TOKEN" let apiInstance = new CorelliumClient.CorelliumApi(); let userId = "userId_example"; // String | userId - uuid -let body = {key: null}; // Object | User data -apiInstance.v1UpdateUser(userId, body).then((data) => { - console.log('API called successfully. Returned data: ' + data); +let userUpdate = { + "name": "test", + "label": "Project Admin", + "password": "new-password", + "clusterAdministrator": true +}; // UserUpdate | User data +apiInstance.v1UpdateUser(userId, userUpdate).then(() => { + console.log('API called successfully.'); }, (error) => { console.error(error); }); @@ -7659,11 +9668,11 @@ apiInstance.v1UpdateUser(userId, body).then((data) => { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **userId** | **String**| userId - uuid | - **body** | **Object**| User data | + **userUpdate** | [**UserUpdate**](UserUpdate.md)| User data | ### Return type -**Object** +null (empty response body) ### Authorization @@ -7681,6 +9690,8 @@ Name | Type | Description | Notes Upgrade iOS version +Upgrade iOS version + ### Example ```javascript @@ -7728,7 +9739,7 @@ null (empty response body) ## v1UploadImageData -> Image v1UploadImageData(imageId, body) +> Image v1UploadImageData(imageId, opts) Upload Image Data @@ -7745,8 +9756,11 @@ BearerAuth.accessToken = "YOUR ACCESS TOKEN" let apiInstance = new CorelliumClient.CorelliumApi(); let imageId = "imageId_example"; // String | Image ID - uuid -let body = "body_example"; // String | Uploaded Image -apiInstance.v1UploadImageData(imageId, body).then((data) => { +let opts = { + 'corelliumChecksum': "corelliumChecksum_example", // String | Corellium Checksum of the uploaded firmware + 'file': "/path/to/file" // File | Optionally the actual file +}; +apiInstance.v1UploadImageData(imageId, opts).then((data) => { console.log('API called successfully. Returned data: ' + data); }, (error) => { console.error(error); @@ -7760,7 +9774,8 @@ apiInstance.v1UploadImageData(imageId, body).then((data) => { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **imageId** | **String**| Image ID - uuid | - **body** | **String**| Uploaded Image | + **corelliumChecksum** | **String**| Corellium Checksum of the uploaded firmware | [optional] + **file** | **File**| Optionally the actual file | [optional] ### Return type @@ -7772,7 +9787,7 @@ Name | Type | Description | Notes ### HTTP request headers -- **Content-Type**: binary +- **Content-Type**: multipart/form-data - **Accept**: application/json @@ -7782,6 +9797,8 @@ Name | Type | Description | Notes Consent to the current terms and conditions +Consent to the current terms and conditions + ### Example ```javascript @@ -7917,6 +9934,8 @@ No authorization required Retrieve the list of allowed domains for all Webplayer sessions +Retrieve the list of allowed domains for all Webplayer sessions + ### Example ```javascript @@ -7950,7 +9969,7 @@ null (empty response body) ### HTTP request headers - **Content-Type**: Not defined -- **Accept**: Not defined +- **Accept**: application/json ## v1WebPlayerCreateSession @@ -7959,6 +9978,8 @@ null (empty response body) Create a new Webplayer Session +Create a new Webplayer Session + ### Example ```javascript @@ -8009,7 +10030,9 @@ Name | Type | Description | Notes ## v1WebPlayerDestroySession -> v1WebPlayerDestroySession(sessionId) +> [String] v1WebPlayerDestroySession(sessionId) + +Tear down a Webplayer Session Tear down a Webplayer Session @@ -8024,8 +10047,8 @@ BearerAuth.accessToken = "YOUR ACCESS TOKEN" let apiInstance = new CorelliumClient.CorelliumApi(); let sessionId = "sessionId_example"; // String | Webplayer Session identifier -apiInstance.v1WebPlayerDestroySession(sessionId).then(() => { - console.log('API called successfully.'); +apiInstance.v1WebPlayerDestroySession(sessionId).then((data) => { + console.log('API called successfully. Returned data: ' + data); }, (error) => { console.error(error); }); @@ -8041,7 +10064,7 @@ Name | Type | Description | Notes ### Return type -null (empty response body) +**[String]** ### Authorization @@ -8059,6 +10082,8 @@ null (empty response body) List all Webplayer sessions +List all Webplayer sessions + ### Example ```javascript @@ -8101,6 +10126,8 @@ This endpoint does not need any parameter. Retrieve Webplayer Session Information +Retrieve Webplayer Session Information + ### Example ```javascript @@ -8147,6 +10174,8 @@ Name | Type | Description | Notes Recommended SSH Command for Quick Connect +Recommended SSH Command for Quick Connect + ### Example ```javascript @@ -8193,6 +10222,8 @@ Name | Type | Description | Notes Get state of Instance +Get state of Instance + ### Example ```javascript diff --git a/docs/CreateInterconnectRequest.md b/docs/CreateInterconnectRequest.md new file mode 100644 index 0000000..3a279f8 --- /dev/null +++ b/docs/CreateInterconnectRequest.md @@ -0,0 +1,24 @@ +# CorelliumClient.CreateInterconnectRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**name** | **String** | The name of the interconnect | [optional] +**protocol** | **String** | The protocol used by the interconnect | [optional] +**type** | **String** | The type of interconnect | [optional] +**project** | **String** | The UUID of the project | [optional] +**interfaces** | **[String]** | Array of instance identifiers | [optional] + + + +## Enum: TypeEnum + + +* `hub` (value: `"hub"`) + +* `switch` (value: `"switch"`) + + + + diff --git a/docs/DetachInterfaceRequest.md b/docs/DetachInterfaceRequest.md new file mode 100644 index 0000000..0b349fd --- /dev/null +++ b/docs/DetachInterfaceRequest.md @@ -0,0 +1,9 @@ +# CorelliumClient.DetachInterfaceRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**interconnectId** | **String** | Interconnect identifier | + + diff --git a/docs/Device.md b/docs/Device.md new file mode 100644 index 0000000..db65c89 --- /dev/null +++ b/docs/Device.md @@ -0,0 +1,17 @@ +# CorelliumClient.Device + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**type** | **String** | | +**model** | **String** | | +**name** | **String** | | +**platform** | **String** | | [optional] +**hwmodel** | **String** | | [optional] +**bdid** | **String** | | [optional] +**cpid** | **String** | | [optional] +**createdAt** | **String** | | [optional] +**updatedAt** | **String** | | [optional] + + diff --git a/docs/ExtendedFirmwareAssetInfo.md b/docs/ExtendedFirmwareAssetInfo.md new file mode 100644 index 0000000..1ff9b35 --- /dev/null +++ b/docs/ExtendedFirmwareAssetInfo.md @@ -0,0 +1,10 @@ +# CorelliumClient.ExtendedFirmwareAssetInfo + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**firmwares** | **[String]** | Firmware Records from FW Service | +**instances** | **[String]** | Instances using one of the firmwares, and thus the asset | + + diff --git a/docs/FirmwareAsset.md b/docs/FirmwareAsset.md new file mode 100644 index 0000000..4a95d9a --- /dev/null +++ b/docs/FirmwareAsset.md @@ -0,0 +1,18 @@ +# CorelliumClient.FirmwareAsset + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**domain** | **String** | | +**url** | **String** | | +**payload** | **String** | | +**size** | **Number** | | +**md5sum** | **String** | | [optional] +**sha1sum** | **String** | | [optional] +**sha256sum** | **String** | | [optional] +**uploaddate** | **String** | | [optional] +**createdAt** | **String** | | [optional] +**updatedAt** | **String** | | [optional] + + diff --git a/docs/FirmwareServiceConfiguration.md b/docs/FirmwareServiceConfiguration.md new file mode 100644 index 0000000..37fb194 --- /dev/null +++ b/docs/FirmwareServiceConfiguration.md @@ -0,0 +1,13 @@ +# CorelliumClient.FirmwareServiceConfiguration + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**cacheFirmware** | **Boolean** | Cache Firmwares in /var/ipsw | [optional] +**clusterFirmwareAssets** | **Boolean** | Assets are cluster-wide | [optional] +**fallbackOriginalUrl** | **Boolean** | Use original URL to fetch firmware | [optional] +**fetchFirmwareAssets** | **Boolean** | Automatically fetch assets | [optional] +**shouldDownload** | **Boolean** | Download firmwares | [optional] + + diff --git a/docs/GetInterconnectsResponse.md b/docs/GetInterconnectsResponse.md new file mode 100644 index 0000000..242825f --- /dev/null +++ b/docs/GetInterconnectsResponse.md @@ -0,0 +1,13 @@ +# CorelliumClient.GetInterconnectsResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**results** | [**[InterconnectResponse]**](InterconnectResponse.md) | Array of interconnects | [optional] +**count** | **Number** | Number of interconnects in this response | [optional] +**total** | **Number** | Total number of interconnects | [optional] +**limit** | **Number** | Limit used for pagination | [optional] +**offset** | **Number** | Offset used for pagination | [optional] + + diff --git a/docs/GetStorageResponse.md b/docs/GetStorageResponse.md new file mode 100644 index 0000000..050b924 --- /dev/null +++ b/docs/GetStorageResponse.md @@ -0,0 +1,13 @@ +# CorelliumClient.GetStorageResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**results** | [**[MediaStore]**](MediaStore.md) | Array of storage devices | [optional] +**count** | **Number** | Number of storage devices in this response | [optional] +**total** | **Number** | Total number of storage devices | [optional] +**limit** | **Number** | Limit used for pagination | [optional] +**offset** | **Number** | Offset used for pagination | [optional] + + diff --git a/docs/InstallFirmwareAssetsRequest.md b/docs/InstallFirmwareAssetsRequest.md new file mode 100644 index 0000000..31e359d --- /dev/null +++ b/docs/InstallFirmwareAssetsRequest.md @@ -0,0 +1,9 @@ +# CorelliumClient.InstallFirmwareAssetsRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**imageId** | **String** | Image ID | + + diff --git a/docs/InstallFirmwareAssetsResponse.md b/docs/InstallFirmwareAssetsResponse.md new file mode 100644 index 0000000..f544258 --- /dev/null +++ b/docs/InstallFirmwareAssetsResponse.md @@ -0,0 +1,9 @@ +# CorelliumClient.InstallFirmwareAssetsResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**taskId** | **String** | Task ID | [optional] + + diff --git a/docs/InstallFirmwareRequest.md b/docs/InstallFirmwareRequest.md new file mode 100644 index 0000000..7be9601 --- /dev/null +++ b/docs/InstallFirmwareRequest.md @@ -0,0 +1,10 @@ +# CorelliumClient.InstallFirmwareRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**imageId** | **String** | Image ID | +**filename** | **String** | Filename of the firmware | + + diff --git a/docs/InstallFirmwareResponse.md b/docs/InstallFirmwareResponse.md new file mode 100644 index 0000000..ac616fd --- /dev/null +++ b/docs/InstallFirmwareResponse.md @@ -0,0 +1,10 @@ +# CorelliumClient.InstallFirmwareResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**taskId** | **String** | Task ID | [optional] +**installedFirmwareUrl** | **String** | Installed Firmware URL | [optional] + + diff --git a/docs/Instance.md b/docs/Instance.md index 47b8874..452b950 100644 --- a/docs/Instance.md +++ b/docs/Instance.md @@ -19,7 +19,7 @@ Name | Type | Description | Notes **bootOptions** | [**InstanceBootOptions**](InstanceBootOptions.md) | | [optional] **serviceIp** | **String** | Services IP Address | [optional] **wifiIp** | **String** | LAN IP Address | [optional] -**secondaryIp** | **String** | Secondary Inteface LAN IP Address (if supported) | [optional] +**secondaryIp** | **String** | Secondary Interface LAN IP Address (if supported) | [optional] **services** | [**InstanceServices**](InstanceServices.md) | | [optional] **panicked** | **Boolean** | | [optional] **created** | **Date** | Time instance was created | [optional] diff --git a/docs/InstanceBootOptions.md b/docs/InstanceBootOptions.md index 5c163a1..8a45431 100644 --- a/docs/InstanceBootOptions.md +++ b/docs/InstanceBootOptions.md @@ -12,5 +12,6 @@ Name | Type | Description | Notes **pac** | **Boolean** | Enable PAC | [optional] **aprr** | **Boolean** | Enable APRR | [optional] **additionalTags** | [**[InstanceBootOptionsAdditionalTag]**](InstanceBootOptionsAdditionalTag.md) | | [optional] +**kernel** | [**InstanceBootOptionsKernel**](InstanceBootOptionsKernel.md) | | [optional] diff --git a/docs/InstanceBootOptionsKernel.md b/docs/InstanceBootOptionsKernel.md new file mode 100644 index 0000000..91dd5f9 --- /dev/null +++ b/docs/InstanceBootOptionsKernel.md @@ -0,0 +1,9 @@ +# CorelliumClient.InstanceBootOptionsKernel + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**firmwarePath** | **String** | The relative path within the firmware to the kernel file that has been bundled up with the selected firmware | [optional] + + diff --git a/docs/InstanceCreateOptions.md b/docs/InstanceCreateOptions.md index eb43c66..4a940bd 100644 --- a/docs/InstanceCreateOptions.md +++ b/docs/InstanceCreateOptions.md @@ -17,9 +17,6 @@ Name | Type | Description | Notes **origFwPackageUrl** | **String** | URL that firmware package used to create this instance is available at | [optional] **encrypt** | **Boolean** | | [optional] **wifiMac** | **String** | | [optional] -**volume** | [**VolumeOptions**](VolumeOptions.md) | | [optional] -**snapshot** | **String** | Snapshot ID for this instance to be cloned from if defined | [optional] -**bootOptions** | [**InstanceBootOptions**](InstanceBootOptions.md) | | [optional] -**device** | [**Model**](Model.md) | | [optional] +**wanAccess** | **Boolean** | manages internet access | [optional] diff --git a/docs/InstanceInterface.md b/docs/InstanceInterface.md new file mode 100644 index 0000000..71f7026 --- /dev/null +++ b/docs/InstanceInterface.md @@ -0,0 +1,10 @@ +# CorelliumClient.InstanceInterface + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**deviceId** | **String** | The instance id | [optional] +**interfaceId** | **String** | The interface id | [optional] + + diff --git a/docs/InterconnectResponse.md b/docs/InterconnectResponse.md new file mode 100644 index 0000000..5122934 --- /dev/null +++ b/docs/InterconnectResponse.md @@ -0,0 +1,28 @@ +# CorelliumClient.InterconnectResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **String** | The interconnect identifier | [optional] +**name** | **String** | The name of the interconnect | [optional] +**protocol** | **String** | The protocol used by the interconnect | [optional] +**type** | **String** | The type of interconnect | [optional] +**project** | **String** | The UUID of the project | [optional] +**status** | **String** | The current status of the interconnect | [optional] +**interfaces** | [**[InstanceInterface]**](InstanceInterface.md) | Array of instance interfaces | [optional] +**createdAt** | **String** | Creation timestamp | [optional] +**updatedAt** | **String** | Last update timestamp | [optional] + + + +## Enum: TypeEnum + + +* `hub` (value: `"hub"`) + +* `switch` (value: `"switch"`) + + + + diff --git a/docs/MediaStore.md b/docs/MediaStore.md new file mode 100644 index 0000000..40bd70f --- /dev/null +++ b/docs/MediaStore.md @@ -0,0 +1,19 @@ +# CorelliumClient.MediaStore + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**identifier** | **String** | | [optional] +**device** | **String** | | [optional] +**fsType** | **String** | | [optional] +**fsUUID** | **String** | | [optional] +**label** | **String** | | [optional] +**serial** | **String** | | [optional] +**vendor** | **String** | | [optional] +**model** | **String** | | [optional] +**mountPolicy** | **String** | | [optional] +**createdAt** | **String** | | [optional] +**updatedAt** | **String** | | [optional] + + diff --git a/docs/NodeInformation.md b/docs/NodeInformation.md new file mode 100644 index 0000000..c2722f8 --- /dev/null +++ b/docs/NodeInformation.md @@ -0,0 +1,13 @@ +# CorelliumClient.NodeInformation + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**nodeId** | **String** | Unique identifier for the node | +**address** | **String** | IP address of the node | +**hostname** | **String** | Hostname of the node | +**sshPort** | **Number** | SSH port for the node | [optional] +**nodeTypes** | **[String]** | Types of services running on this node [compute,controller,gpu] | + + diff --git a/docs/NodeUpdatesFailed.md b/docs/NodeUpdatesFailed.md new file mode 100644 index 0000000..817f7fa --- /dev/null +++ b/docs/NodeUpdatesFailed.md @@ -0,0 +1,10 @@ +# CorelliumClient.NodeUpdatesFailed + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**message** | **String** | Instructions to try again or resolve manually | [optional] +**nodes** | [**[NodeInformation]**](NodeInformation.md) | List of nodes that failed to receive updates. | [optional] + + diff --git a/docs/PartialUpdateInterconnectRequest.md b/docs/PartialUpdateInterconnectRequest.md new file mode 100644 index 0000000..3d15d5a --- /dev/null +++ b/docs/PartialUpdateInterconnectRequest.md @@ -0,0 +1,10 @@ +# CorelliumClient.PartialUpdateInterconnectRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**name** | **String** | The name of the interconnect (optional) | [optional] +**interfaces** | **[Object]** | Array of interfaces with deviceId and interfaceId (optional) | [optional] + + diff --git a/docs/PatchInstanceReadOnly.md b/docs/PatchInstanceReadOnly.md new file mode 100644 index 0000000..7fb1140 --- /dev/null +++ b/docs/PatchInstanceReadOnly.md @@ -0,0 +1,9 @@ +# CorelliumClient.PatchInstanceReadOnly + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**readOnly** | **String** | The desired state of readOnly. Possible values: 'enabled', 'disabled'. | [optional] + + diff --git a/docs/ResetLinkInfoReturn.md b/docs/ResetLinkInfoReturn.md new file mode 100644 index 0000000..51f1930 --- /dev/null +++ b/docs/ResetLinkInfoReturn.md @@ -0,0 +1,11 @@ +# CorelliumClient.ResetLinkInfoReturn + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**userId** | **String** | The user identifier | [optional] +**username** | **String** | The user name | [optional] +**domain** | **String** | The domain name | [optional] + + diff --git a/docs/RestoreBackupData.md b/docs/RestoreBackupData.md new file mode 100644 index 0000000..a703b43 --- /dev/null +++ b/docs/RestoreBackupData.md @@ -0,0 +1,9 @@ +# CorelliumClient.RestoreBackupData + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**password** | **String** | Required for encrypted backup | [optional] + + diff --git a/docs/SnapshotList.md b/docs/SnapshotList.md new file mode 100644 index 0000000..cf61e85 --- /dev/null +++ b/docs/SnapshotList.md @@ -0,0 +1,12 @@ +# CorelliumClient.SnapshotList + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**results** | [**[ClusterSnapshot]**](ClusterSnapshot.md) | List of snapshots | [optional] +**offset** | **Number** | Offset for pagination, defaults to 0 | [optional] +**limit** | **Number** | Number of items to return, defaults to 100, minimum of 1 and maximum of 1000 | [optional] +**count** | **Number** | Number of items in current response | [optional] + + diff --git a/docs/SnapshotRequest.md b/docs/SnapshotRequest.md new file mode 100644 index 0000000..fd94d37 --- /dev/null +++ b/docs/SnapshotRequest.md @@ -0,0 +1,19 @@ +# CorelliumClient.SnapshotRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**limit** | **Number** | Number of entries to return, defaults to 100 | [optional] +**offset** | **Number** | Number of rows to skip, defaults to 0 | [optional] +**springboard** | **Boolean** | Denotes whether snapshot was a springboard snapshot | [optional] +**live** | **Boolean** | Denotes whether snapshot was a live snapshot | [optional] +**fresh** | **Boolean** | Denotes whether snapshot was created immediately after the device was restored | [optional] +**deviceName** | **String** | Name of device | [optional] +**task** | **String** | Task being executed on snapshot | [optional] +**to** | **String** | Date to filter to, keyed off of createdAt | [optional] +**from** | **String** | Date to filter from, keyed off of createdAt | [optional] +**orderBy** | **String** | Sorting order ('-createdAt' or 'createdAt'), defaults to -createdAt | [optional] +**search** | **String** | Last filter applied and searches on snapshot / associated instance name and snapshot / instance id | [optional] + + diff --git a/docs/Token.md b/docs/Token.md index 986ea33..04b36c7 100644 --- a/docs/Token.md +++ b/docs/Token.md @@ -4,7 +4,6 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**token** | **String** | | -**expiration** | **Date** | Token expiration | [optional] +**token** | **String** | | [optional] diff --git a/docs/UpdateInterconnectRequest.md b/docs/UpdateInterconnectRequest.md new file mode 100644 index 0000000..ce234b3 --- /dev/null +++ b/docs/UpdateInterconnectRequest.md @@ -0,0 +1,10 @@ +# CorelliumClient.UpdateInterconnectRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**name** | **String** | The name of the interconnect | [optional] +**interfaces** | **[Object]** | Array of interfaces with deviceId and interfaceId | [optional] + + diff --git a/docs/UpdateTrialRequestParams.md b/docs/UpdateTrialRequestParams.md new file mode 100644 index 0000000..45950ab --- /dev/null +++ b/docs/UpdateTrialRequestParams.md @@ -0,0 +1,10 @@ +# CorelliumClient.UpdateTrialRequestParams + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**extensionDays** | **Number** | Days to add to the trial before it ends. | [optional] +**extensionHours** | **Number** | Hours of usage to add to the trial. This will be either device-hours or core-hours depending on the trial. | [optional] + + diff --git a/docs/User.md b/docs/User.md index 1a5ea85..486b1f8 100644 --- a/docs/User.md +++ b/docs/User.md @@ -10,5 +10,6 @@ Name | Type | Description | Notes **email** | **String** | User Email | **administrator** | **Boolean** | the flag that specifies whether user is Administrator or not | [optional] **canEditUserAttributes** | **Boolean** | Flag to determine if user attributes are editable. | [optional] +**clusterAdministrator** | **Boolean** | the flag that specifies whether user is cluster administrator or not | [optional] diff --git a/docs/UserCreate.md b/docs/UserCreate.md new file mode 100644 index 0000000..944019e --- /dev/null +++ b/docs/UserCreate.md @@ -0,0 +1,14 @@ +# CorelliumClient.UserCreate + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**name** | **String** | The user name. | [optional] +**label** | **String** | The user label (e.g., \"Domain Administrator\"). | [optional] +**password** | **String** | The password (optional) if using SSO. | [optional] +**email** | **String** | The email (optional) if onsite. | [optional] +**administrator** | **Boolean** | Whether the user is a domain administrator. Only users with the Domain Administrator role can set this. | [optional] +**clusterAdministrator** | **Boolean** | Whether the user is a cluster administrator. Only users with the Cluster Administrator role can set this. | [optional] + + diff --git a/docs/UserCreateReturn.md b/docs/UserCreateReturn.md new file mode 100644 index 0000000..8bdfdd2 --- /dev/null +++ b/docs/UserCreateReturn.md @@ -0,0 +1,9 @@ +# CorelliumClient.UserCreateReturn + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **String** | The user identifier | [optional] + + diff --git a/docs/UserUpdate.md b/docs/UserUpdate.md new file mode 100644 index 0000000..9ce58ec --- /dev/null +++ b/docs/UserUpdate.md @@ -0,0 +1,10 @@ +# CorelliumClient.UserUpdate + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**name** | **String** | The user name. | [optional] +**label** | **String** | The user label (e.g., \"Domain Administrator\"). | [optional] + + diff --git a/docs/V1UpdateHookParameters.md b/docs/V1UpdateHookParameters.md new file mode 100644 index 0000000..e50aebe --- /dev/null +++ b/docs/V1UpdateHookParameters.md @@ -0,0 +1,24 @@ +# CorelliumClient.V1UpdateHookParameters + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**label** | **String** | Label | [optional] +**address** | **String** | Address | [optional] +**patch** | **String** | Patch | [optional] +**patchType** | **String** | Patch Type | [optional] +**enabled** | **Boolean** | Enabled | [optional] + + + +## Enum: PatchTypeEnum + + +* `csmfcc` (value: `"csmfcc"`) + +* `csmfvm` (value: `"csmfvm"`) + + + + diff --git a/docs/VolumeOptions.md b/docs/VolumeOptions.md index 8e9790c..b13e2d0 100644 --- a/docs/VolumeOptions.md +++ b/docs/VolumeOptions.md @@ -4,8 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**allocate** | **Number** | GB | [optional] -**partitions** | **[Object]** | | [optional] -**computeNode** | **String** | | [optional] +**blocks** | **Number** | blocks to resize partition to | [optional] +**name** | **String** | name of partition | [optional] diff --git a/package.json b/package.json index 659c2c2..5abdfea 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@corellium/client-api", - "version": "0.4.1", + "version": "0.4.3", "description": "Corellium Client API", "license": "Apache-2.0", "main": "dist/index.js", diff --git a/src/ApiClient.js b/src/ApiClient.js index a4f4395..0aa8d0d 100644 --- a/src/ApiClient.js +++ b/src/ApiClient.js @@ -2,7 +2,7 @@ * Corellium API * REST API to manage your virtual devices. * - * The version of the OpenAPI document: 7.3.0 + * The version of the OpenAPI document: 7.9.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -17,7 +17,7 @@ import querystring from "querystring"; /** * @module ApiClient -* @version 0.4.1 +* @version 0.4.3 */ /** @@ -55,7 +55,7 @@ class ApiClient { * @default {} */ this.defaultHeaders = { - 'User-Agent': 'OpenAPI-Generator/0.4.1/Javascript' + 'User-Agent': 'OpenAPI-Generator/0.4.3/Javascript' }; /** diff --git a/src/api/CorelliumApi.js b/src/api/CorelliumApi.js index 0ea68ec..37d25d8 100644 --- a/src/api/CorelliumApi.js +++ b/src/api/CorelliumApi.js @@ -2,7 +2,7 @@ * Corellium API * REST API to manage your virtual devices. * - * The version of the OpenAPI document: 7.3.0 + * The version of the OpenAPI document: 7.9.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -34,22 +34,36 @@ import ApiInternalConsistencyError from '../model/ApiInternalConsistencyError'; import ApiNotFoundError from '../model/ApiNotFoundError'; import Assessment from '../model/Assessment'; import AssessmentIdStatus from '../model/AssessmentIdStatus'; +import AttachInterfaceRequest from '../model/AttachInterfaceRequest'; import BtraceEnableOptions from '../model/BtraceEnableOptions'; -import CheckSubdomainResponse from '../model/CheckSubdomainResponse'; +import ClusterConfigurationPayload from '../model/ClusterConfigurationPayload'; +import ClusterSnapshot from '../model/ClusterSnapshot'; import ConfigResponse from '../model/ConfigResponse'; import CreateAssessmentDto from '../model/CreateAssessmentDto'; +import CreateInterconnectRequest from '../model/CreateInterconnectRequest'; import CreateNetworkConnectionOptions from '../model/CreateNetworkConnectionOptions'; import CreateTeam from '../model/CreateTeam'; import Credentials from '../model/Credentials'; +import DetachInterfaceRequest from '../model/DetachInterfaceRequest'; +import Device from '../model/Device'; import DomainAuthProviderRequest from '../model/DomainAuthProviderRequest'; import DomainAuthProviderResponse from '../model/DomainAuthProviderResponse'; +import ExtendedFirmwareAssetInfo from '../model/ExtendedFirmwareAssetInfo'; import FileChanges from '../model/FileChanges'; import Firmware from '../model/Firmware'; +import FirmwareAsset from '../model/FirmwareAsset'; +import FirmwareServiceConfiguration from '../model/FirmwareServiceConfiguration'; import GetAssessmentsByInstanceId500Response from '../model/GetAssessmentsByInstanceId500Response'; +import GetInterconnectsResponse from '../model/GetInterconnectsResponse'; +import GetStorageResponse from '../model/GetStorageResponse'; import GpiosState from '../model/GpiosState'; import Hook from '../model/Hook'; import Image from '../model/Image'; import InputResponse from '../model/InputResponse'; +import InstallFirmwareAssetsRequest from '../model/InstallFirmwareAssetsRequest'; +import InstallFirmwareAssetsResponse from '../model/InstallFirmwareAssetsResponse'; +import InstallFirmwareRequest from '../model/InstallFirmwareRequest'; +import InstallFirmwareResponse from '../model/InstallFirmwareResponse'; import Instance from '../model/Instance'; import InstanceConsoleEndpoint from '../model/InstanceConsoleEndpoint'; import InstanceCreateOptions from '../model/InstanceCreateOptions'; @@ -59,6 +73,7 @@ import InstanceStartOptions from '../model/InstanceStartOptions'; import InstanceState from '../model/InstanceState'; import InstanceStopOptions from '../model/InstanceStopOptions'; import InstanceUpgradeBody from '../model/InstanceUpgradeBody'; +import InterconnectResponse from '../model/InterconnectResponse'; import Kcrange from '../model/Kcrange'; import KernelTask from '../model/KernelTask'; import MediaPlayBody from '../model/MediaPlayBody'; @@ -68,31 +83,43 @@ import NetworkConnection from '../model/NetworkConnection'; import NetworkConnectionOffsetPaginationResult from '../model/NetworkConnectionOffsetPaginationResult'; import NetworkConnectionProviderOffsetPaginationResult from '../model/NetworkConnectionProviderOffsetPaginationResult'; import NetworkStatusResponse from '../model/NetworkStatusResponse'; +import NodeInformation from '../model/NodeInformation'; +import NodeUpdatesFailed from '../model/NodeUpdatesFailed'; +import PartialUpdateInterconnectRequest from '../model/PartialUpdateInterconnectRequest'; import PasswordChangeBody from '../model/PasswordChangeBody'; import PasswordResetBody from '../model/PasswordResetBody'; import PatchInstanceOptions from '../model/PatchInstanceOptions'; +import PatchInstanceReadOnly from '../model/PatchInstanceReadOnly'; import PeripheralsData from '../model/PeripheralsData'; import PostShareSnapshotRequestPayload from '../model/PostShareSnapshotRequestPayload'; import Project from '../model/Project'; import ProjectKey from '../model/ProjectKey'; import ProjectSettings from '../model/ProjectSettings'; import ResetLinkBody from '../model/ResetLinkBody'; +import ResetLinkInfoReturn from '../model/ResetLinkInfoReturn'; +import RestoreBackupData from '../model/RestoreBackupData'; import Role from '../model/Role'; import RotateBody from '../model/RotateBody'; import Snapshot from '../model/Snapshot'; import SnapshotCreationOptions from '../model/SnapshotCreationOptions'; +import SnapshotList from '../model/SnapshotList'; import SnapshotPermissionsRequestPayload from '../model/SnapshotPermissionsRequestPayload'; +import SnapshotRequest from '../model/SnapshotRequest'; import SslsplitFilter from '../model/SslsplitFilter'; import Team from '../model/Team'; import TeamCreate from '../model/TeamCreate'; import TestAssessmentDto from '../model/TestAssessmentDto'; import Token from '../model/Token'; +import UpdateInterconnectRequest from '../model/UpdateInterconnectRequest'; import UpdateNetworkConnectionOptions from '../model/UpdateNetworkConnectionOptions'; +import UserCreate from '../model/UserCreate'; +import UserCreateReturn from '../model/UserCreateReturn'; import UserError from '../model/UserError'; import UserSnapshots from '../model/UserSnapshots'; -import V1CheckSubdomainExistenceParameters from '../model/V1CheckSubdomainExistenceParameters'; +import UserUpdate from '../model/UserUpdate'; import V1CreateHookParameters from '../model/V1CreateHookParameters'; import V1SetStateBody from '../model/V1SetStateBody'; +import V1UpdateHookParameters from '../model/V1UpdateHookParameters'; import ValidationError from '../model/ValidationError'; import WebPlayerCreateSessionRequest from '../model/WebPlayerCreateSessionRequest'; import WebPlayerSession from '../model/WebPlayerSession'; @@ -100,7 +127,7 @@ import WebPlayerSession from '../model/WebPlayerSession'; /** * Corellium service. * @module api/CorelliumApi -* @version 0.4.1 +* @version 0.4.3 */ export default class CorelliumApi { @@ -117,7 +144,327 @@ export default class CorelliumApi { + /** + * Get all I/O Interconnects + * Get all I/O Interconnects + * @param {Object} opts Optional parameters + * @param {Number} [limit] Maximum number of results to return (1-1000, default: 100) + * @param {Number} [offset] Number of results to skip (default: 0) + * @param {String} [name] Filter by interconnect name (case insensitive) + * @param {String} [protocol] Filter by protocol (comma separated) + * @param {String} [type] Filter by type (comma separated) + * @param {String} [status] Filter by status (comma separated) + * @param {String} [project] Filter by project ID (comma separated) + * @param {String} [sort] Sort order (e.g. \"name\" for ascending, \"-name\" for descending, comma separated) + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetInterconnectsResponse} and HTTP response + */ + apiV1InterconnectsGetWithHttpInfo(opts) { + opts = opts || {}; + let postBody = null; + + let pathParams = { + }; + let queryParams = { + 'limit': opts['limit'], + 'offset': opts['offset'], + 'name': opts['name'], + 'protocol': opts['protocol'], + 'type': opts['type'], + 'status': opts['status'], + 'project': opts['project'], + 'sort': opts['sort'] + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['BearerAuth']; + let contentTypes = []; + let accepts = ['application/json']; + let returnType = GetInterconnectsResponse; + return this.apiClient.callApi( + '/api/v1/interconnects', 'GET', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null + ); + } + + /** + * Get all I/O Interconnects + * Get all I/O Interconnects + * @param {Object} opts Optional parameters + * @param {Number} opts.limit Maximum number of results to return (1-1000, default: 100) + * @param {Number} opts.offset Number of results to skip (default: 0) + * @param {String} opts.name Filter by interconnect name (case insensitive) + * @param {String} opts.protocol Filter by protocol (comma separated) + * @param {String} opts.type Filter by type (comma separated) + * @param {String} opts.status Filter by status (comma separated) + * @param {String} opts.project Filter by project ID (comma separated) + * @param {String} opts.sort Sort order (e.g. \"name\" for ascending, \"-name\" for descending, comma separated) + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetInterconnectsResponse} + */ + apiV1InterconnectsGet(opts) { + return this.apiV1InterconnectsGetWithHttpInfo(opts) + .then(function(response_and_data) { + return response_and_data.data; + }); + } + + + /** + * Delete I/O Interconnect + * Delete I/O Interconnect + * @param {String} interconnectId The interconnect identifier + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response + */ + apiV1InterconnectsInterconnectIdDeleteWithHttpInfo(interconnectId) { + let postBody = null; + // verify the required parameter 'interconnectId' is set + if (interconnectId === undefined || interconnectId === null) { + throw new Error("Missing the required parameter 'interconnectId' when calling apiV1InterconnectsInterconnectIdDelete"); + } + + let pathParams = { + 'interconnectId': interconnectId + }; + let queryParams = { + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['BearerAuth']; + let contentTypes = []; + let accepts = ['application/json']; + let returnType = null; + return this.apiClient.callApi( + '/api/v1/interconnects/:interconnectId', 'DELETE', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null + ); + } + + /** + * Delete I/O Interconnect + * Delete I/O Interconnect + * @param {String} interconnectId The interconnect identifier + * @return {Promise} a {@link https://www.promisejs.org/|Promise} + */ + apiV1InterconnectsInterconnectIdDelete(interconnectId) { + return this.apiV1InterconnectsInterconnectIdDeleteWithHttpInfo(interconnectId) + .then(function(response_and_data) { + return response_and_data.data; + }); + } + + + /** + * Get Interconnect + * Get Interconnect + * @param {String} interconnectId The interconnect identifier + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/InterconnectResponse} and HTTP response + */ + apiV1InterconnectsInterconnectIdGetWithHttpInfo(interconnectId) { + let postBody = null; + // verify the required parameter 'interconnectId' is set + if (interconnectId === undefined || interconnectId === null) { + throw new Error("Missing the required parameter 'interconnectId' when calling apiV1InterconnectsInterconnectIdGet"); + } + + let pathParams = { + 'interconnectId': interconnectId + }; + let queryParams = { + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['BearerAuth']; + let contentTypes = []; + let accepts = ['application/json']; + let returnType = InterconnectResponse; + return this.apiClient.callApi( + '/api/v1/interconnects/:interconnectId', 'GET', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null + ); + } + + /** + * Get Interconnect + * Get Interconnect + * @param {String} interconnectId The interconnect identifier + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/InterconnectResponse} + */ + apiV1InterconnectsInterconnectIdGet(interconnectId) { + return this.apiV1InterconnectsInterconnectIdGetWithHttpInfo(interconnectId) + .then(function(response_and_data) { + return response_and_data.data; + }); + } + + + /** + * Partial Update Interconnect + * Update some interconnect details for the specified interconnect identifier. + * @param {String} interconnectId The interconnect identifier + * @param {module:model/PartialUpdateInterconnectRequest} partialUpdateInterconnectRequest The interconnect details to update + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/InterconnectResponse} and HTTP response + */ + apiV1InterconnectsInterconnectIdPatchWithHttpInfo(interconnectId, partialUpdateInterconnectRequest) { + let postBody = partialUpdateInterconnectRequest; + // verify the required parameter 'interconnectId' is set + if (interconnectId === undefined || interconnectId === null) { + throw new Error("Missing the required parameter 'interconnectId' when calling apiV1InterconnectsInterconnectIdPatch"); + } + // verify the required parameter 'partialUpdateInterconnectRequest' is set + if (partialUpdateInterconnectRequest === undefined || partialUpdateInterconnectRequest === null) { + throw new Error("Missing the required parameter 'partialUpdateInterconnectRequest' when calling apiV1InterconnectsInterconnectIdPatch"); + } + + let pathParams = { + 'interconnectId': interconnectId + }; + let queryParams = { + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['BearerAuth']; + let contentTypes = ['application/json']; + let accepts = ['application/json']; + let returnType = InterconnectResponse; + return this.apiClient.callApi( + '/api/v1/interconnects/:interconnectId', 'PATCH', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null + ); + } + + /** + * Partial Update Interconnect + * Update some interconnect details for the specified interconnect identifier. + * @param {String} interconnectId The interconnect identifier + * @param {module:model/PartialUpdateInterconnectRequest} partialUpdateInterconnectRequest The interconnect details to update + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/InterconnectResponse} + */ + apiV1InterconnectsInterconnectIdPatch(interconnectId, partialUpdateInterconnectRequest) { + return this.apiV1InterconnectsInterconnectIdPatchWithHttpInfo(interconnectId, partialUpdateInterconnectRequest) + .then(function(response_and_data) { + return response_and_data.data; + }); + } + + + /** + * Update Interconnect + * Update interconnect details for the specified interconnect identifier. + * @param {String} interconnectId The interconnect identifier + * @param {module:model/UpdateInterconnectRequest} updateInterconnectRequest The interconnect details to update + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/InterconnectResponse} and HTTP response + */ + apiV1InterconnectsInterconnectIdPutWithHttpInfo(interconnectId, updateInterconnectRequest) { + let postBody = updateInterconnectRequest; + // verify the required parameter 'interconnectId' is set + if (interconnectId === undefined || interconnectId === null) { + throw new Error("Missing the required parameter 'interconnectId' when calling apiV1InterconnectsInterconnectIdPut"); + } + // verify the required parameter 'updateInterconnectRequest' is set + if (updateInterconnectRequest === undefined || updateInterconnectRequest === null) { + throw new Error("Missing the required parameter 'updateInterconnectRequest' when calling apiV1InterconnectsInterconnectIdPut"); + } + + let pathParams = { + 'interconnectId': interconnectId + }; + let queryParams = { + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['BearerAuth']; + let contentTypes = ['application/json']; + let accepts = ['application/json']; + let returnType = InterconnectResponse; + return this.apiClient.callApi( + '/api/v1/interconnects/:interconnectId', 'PUT', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null + ); + } + + /** + * Update Interconnect + * Update interconnect details for the specified interconnect identifier. + * @param {String} interconnectId The interconnect identifier + * @param {module:model/UpdateInterconnectRequest} updateInterconnectRequest The interconnect details to update + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/InterconnectResponse} + */ + apiV1InterconnectsInterconnectIdPut(interconnectId, updateInterconnectRequest) { + return this.apiV1InterconnectsInterconnectIdPutWithHttpInfo(interconnectId, updateInterconnectRequest) + .then(function(response_and_data) { + return response_and_data.data; + }); + } + + + /** + * Create I/O Interconnect + * Create an I/O Interconnect for the specified project and attach virtual device interfaces. + * @param {module:model/CreateInterconnectRequest} createInterconnectRequest The interconnect details + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/InterconnectResponse} and HTTP response + */ + apiV1InterconnectsPostWithHttpInfo(createInterconnectRequest) { + let postBody = createInterconnectRequest; + // verify the required parameter 'createInterconnectRequest' is set + if (createInterconnectRequest === undefined || createInterconnectRequest === null) { + throw new Error("Missing the required parameter 'createInterconnectRequest' when calling apiV1InterconnectsPost"); + } + + let pathParams = { + }; + let queryParams = { + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['BearerAuth']; + let contentTypes = ['application/json']; + let accepts = ['application/json']; + let returnType = InterconnectResponse; + return this.apiClient.callApi( + '/api/v1/interconnects', 'POST', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null + ); + } + + /** + * Create I/O Interconnect + * Create an I/O Interconnect for the specified project and attach virtual device interfaces. + * @param {module:model/CreateInterconnectRequest} createInterconnectRequest The interconnect details + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/InterconnectResponse} + */ + apiV1InterconnectsPost(createInterconnectRequest) { + return this.apiV1InterconnectsPostWithHttpInfo(createInterconnectRequest) + .then(function(response_and_data) { + return response_and_data.data; + }); + } + + /** + * Create assessment * Create assessment * @param {String} instanceId ID of instance * @param {module:model/CreateAssessmentDto} createAssessmentDto Create a new assessment @@ -156,6 +503,7 @@ export default class CorelliumApi { } /** + * Create assessment * Create assessment * @param {String} instanceId ID of instance * @param {module:model/CreateAssessmentDto} createAssessmentDto Create a new assessment @@ -170,6 +518,7 @@ export default class CorelliumApi { /** + * Delete assessment * Delete assessment * @param {String} instanceId ID of instance * @param {String} assessmentId ID of assessment @@ -209,6 +558,7 @@ export default class CorelliumApi { } /** + * Delete assessment * Delete assessment * @param {String} instanceId ID of instance * @param {String} assessmentId ID of assessment @@ -223,6 +573,7 @@ export default class CorelliumApi { /** + * Download report * Download report * @param {String} instanceId ID of instance * @param {String} assessmentId ID of assessment @@ -268,6 +619,7 @@ export default class CorelliumApi { } /** + * Download report * Download report * @param {String} instanceId ID of instance * @param {String} assessmentId ID of assessment @@ -283,6 +635,7 @@ export default class CorelliumApi { /** + * Get assessment by ID * Get assessment by ID * @param {String} instanceId ID of instance * @param {String} assessmentId ID of assessment @@ -322,6 +675,7 @@ export default class CorelliumApi { } /** + * Get assessment by ID * Get assessment by ID * @param {String} instanceId ID of instance * @param {String} assessmentId ID of assessment @@ -336,6 +690,7 @@ export default class CorelliumApi { /** + * Get assessments by instanceId * Get assessments by instanceId * @param {String} instanceId ID of instance * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Array.} and HTTP response @@ -369,6 +724,7 @@ export default class CorelliumApi { } /** + * Get assessments by instanceId * Get assessments by instanceId * @param {String} instanceId ID of instance * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Array.} @@ -382,6 +738,7 @@ export default class CorelliumApi { /** + * Update assessment state and execute MATRIX tests * Update assessment state and execute MATRIX tests * @param {String} instanceId ID of instance * @param {String} assessmentId ID of assessment @@ -424,6 +781,7 @@ export default class CorelliumApi { } /** + * Update assessment state and execute MATRIX tests * Update assessment state and execute MATRIX tests * @param {String} instanceId ID of instance * @param {String} assessmentId ID of assessment @@ -440,6 +798,7 @@ export default class CorelliumApi { /** + * Update assessment state and begin device monitoring * Update assessment state and begin device monitoring * @param {String} instanceId ID of instance * @param {String} assessmentId ID of assessment @@ -479,6 +838,7 @@ export default class CorelliumApi { } /** + * Update assessment state and begin device monitoring * Update assessment state and begin device monitoring * @param {String} instanceId ID of instance * @param {String} assessmentId ID of assessment @@ -493,6 +853,7 @@ export default class CorelliumApi { /** + * Update assessment state and stop device monitoring * Update assessment state and stop device monitoring * @param {String} instanceId ID of instance * @param {String} assessmentId ID of assessment @@ -532,6 +893,7 @@ export default class CorelliumApi { } /** + * Update assessment state and stop device monitoring * Update assessment state and stop device monitoring * @param {String} instanceId ID of instance * @param {String} assessmentId ID of assessment @@ -593,6 +955,7 @@ export default class CorelliumApi { /** + * Start activity export * Start activity export * @param {module:model/ActivityExportDto} activityExportDto * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/ActivityExportResponse} and HTTP response @@ -625,6 +988,7 @@ export default class CorelliumApi { } /** + * Start activity export * Start activity export * @param {module:model/ActivityExportDto} activityExportDto * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ActivityExportResponse} @@ -638,6 +1002,7 @@ export default class CorelliumApi { /** + * Get resource activities * Get resource activities * @param {Object} opts Optional parameters * @param {Object.} [request] @@ -669,6 +1034,7 @@ export default class CorelliumApi { } /** + * Get resource activities * Get resource activities * @param {Object} opts Optional parameters * @param {Object.} opts.request @@ -683,6 +1049,7 @@ export default class CorelliumApi { /** + * Add Project Authorized Key * Add Project Authorized Key * @param {String} projectId Project ID - uuid * @param {module:model/ProjectKey} projectKey Key to add @@ -721,6 +1088,7 @@ export default class CorelliumApi { } /** + * Add Project Authorized Key * Add Project Authorized Key * @param {String} projectId Project ID - uuid * @param {module:model/ProjectKey} projectKey Key to add @@ -739,7 +1107,7 @@ export default class CorelliumApi { * This endpoint is available for Enterprise accounts only * @param {String} projectId Project ID - uuid * @param {String} teamId Team ID - uuid - * @param {String} roleId Role ID - uuid + * @param {String} roleId Role ID * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response */ v1AddTeamRoleToProjectWithHttpInfo(projectId, teamId, roleId) { @@ -785,7 +1153,7 @@ export default class CorelliumApi { * This endpoint is available for Enterprise accounts only * @param {String} projectId Project ID - uuid * @param {String} teamId Team ID - uuid - * @param {String} roleId Role ID - uuid + * @param {String} roleId Role ID * @return {Promise} a {@link https://www.promisejs.org/|Promise} */ v1AddTeamRoleToProject(projectId, teamId, roleId) { @@ -801,7 +1169,7 @@ export default class CorelliumApi { * This endpoint is available for Enterprise accounts only * @param {String} projectId Project ID - uuid * @param {String} userId User ID - uuid - * @param {String} roleId Role ID - uuid + * @param {String} roleId Role ID * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response */ v1AddUserRoleToProjectWithHttpInfo(projectId, userId, roleId) { @@ -847,7 +1215,7 @@ export default class CorelliumApi { * This endpoint is available for Enterprise accounts only * @param {String} projectId Project ID - uuid * @param {String} userId User ID - uuid - * @param {String} roleId Role ID - uuid + * @param {String} roleId Role ID * @return {Promise} a {@link https://www.promisejs.org/|Promise} */ v1AddUserRoleToProject(projectId, userId, roleId) { @@ -914,6 +1282,7 @@ export default class CorelliumApi { /** + * Check if App subsystem is ready * Check if App subsystem is ready * @param {String} instanceId Instance ID - uuid * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/AgentAppReadyResponse} and HTTP response @@ -947,6 +1316,7 @@ export default class CorelliumApi { } /** + * Check if App subsystem is ready * Check if App subsystem is ready * @param {String} instanceId Instance ID - uuid * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/AgentAppReadyResponse} @@ -960,6 +1330,7 @@ export default class CorelliumApi { /** + * Delete a File on VM * Delete a File on VM * @param {String} instanceId Instance ID - uuid * @param {String} filePath File Path on VM @@ -999,6 +1370,7 @@ export default class CorelliumApi { } /** + * Delete a File on VM * Delete a File on VM * @param {String} instanceId Instance ID - uuid * @param {String} filePath File Path on VM @@ -1013,6 +1385,7 @@ export default class CorelliumApi { /** + * Download a File from VM * Download a File from VM * @param {String} instanceId Instance ID - uuid * @param {String} filePath File Path on VM @@ -1052,6 +1425,7 @@ export default class CorelliumApi { } /** + * Download a File from VM * Download a File from VM * @param {String} instanceId Instance ID - uuid * @param {String} filePath File Path on VM @@ -1168,6 +1542,7 @@ export default class CorelliumApi { /** + * Install a Profile to VM * Install a Profile to VM * @param {String} instanceId Instance ID - uuid * @param {File} body Profile to Install @@ -1206,6 +1581,7 @@ export default class CorelliumApi { } /** + * Install a Profile to VM * Install a Profile to VM * @param {String} instanceId Instance ID - uuid * @param {File} body Profile to Install @@ -1220,6 +1596,7 @@ export default class CorelliumApi { /** + * Kill an App * Kill an App * @param {String} instanceId Instance ID - uuid * @param {String} bundleId App Bundle ID @@ -1259,6 +1636,7 @@ export default class CorelliumApi { } /** + * Kill an App * Kill an App * @param {String} instanceId Instance ID - uuid * @param {String} bundleId App Bundle ID @@ -1274,6 +1652,7 @@ export default class CorelliumApi { /** * List App Icons + * List App Icons as base64 data * @param {String} instanceId Instance ID - uuid * @param {Array.} bundleID App Bundle ID * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Array.} and HTTP response @@ -1313,6 +1692,7 @@ export default class CorelliumApi { /** * List App Icons + * List App Icons as base64 data * @param {String} instanceId Instance ID - uuid * @param {Array.} bundleID App Bundle ID * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Array.} @@ -1326,6 +1706,7 @@ export default class CorelliumApi { /** + * List Apps * List Apps * @param {String} instanceId Instance ID - uuid * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/AgentAppsList} and HTTP response @@ -1359,6 +1740,7 @@ export default class CorelliumApi { } /** + * List Apps * List Apps * @param {String} instanceId Instance ID - uuid * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/AgentAppsList} @@ -1372,6 +1754,7 @@ export default class CorelliumApi { /** + * List Apps Status * List Apps Status * @param {String} instanceId Instance ID - uuid * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/AgentAppsList} and HTTP response @@ -1405,6 +1788,7 @@ export default class CorelliumApi { } /** + * List Apps Status * List Apps Status * @param {String} instanceId Instance ID - uuid * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/AgentAppsList} @@ -1418,6 +1802,7 @@ export default class CorelliumApi { /** + * List Profiles * List Profiles * @param {String} instanceId Instance ID - uuid * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/AgentProfilesReturn} and HTTP response @@ -1451,6 +1836,7 @@ export default class CorelliumApi { } /** + * List Profiles * List Profiles * @param {String} instanceId Instance ID - uuid * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/AgentProfilesReturn} @@ -1464,6 +1850,7 @@ export default class CorelliumApi { /** + * Run an App * Run an App * @param {String} instanceId Instance ID - uuid * @param {String} bundleId App Bundle ID @@ -1503,6 +1890,7 @@ export default class CorelliumApi { } /** + * Run an App * Run an App * @param {String} instanceId Instance ID - uuid * @param {String} bundleId App Bundle ID @@ -1517,6 +1905,7 @@ export default class CorelliumApi { /** + * Change Attrs of a File on VM * Change Attrs of a File on VM * @param {String} instanceId Instance ID - uuid * @param {String} filePath File Path on VM @@ -1551,7 +1940,7 @@ export default class CorelliumApi { let authNames = ['BearerAuth']; let contentTypes = ['application/json']; - let accepts = []; + let accepts = ['application/json']; let returnType = null; return this.apiClient.callApi( '/v1/instances/{instanceId}/agent/v1/file/device/{filePath}', 'PATCH', @@ -1561,6 +1950,7 @@ export default class CorelliumApi { } /** + * Change Attrs of a File on VM * Change Attrs of a File on VM * @param {String} instanceId Instance ID - uuid * @param {String} filePath File Path on VM @@ -1576,6 +1966,7 @@ export default class CorelliumApi { /** + * Get ADB Auth Setting (AOSP only) * Get ADB Auth Setting (AOSP only) * @param {String} instanceId Instance ID - uuid * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/AgentSystemAdbAuth} and HTTP response @@ -1609,6 +2000,7 @@ export default class CorelliumApi { } /** + * Get ADB Auth Setting (AOSP only) * Get ADB Auth Setting (AOSP only) * @param {String} instanceId Instance ID - uuid * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/AgentSystemAdbAuth} @@ -1622,6 +2014,7 @@ export default class CorelliumApi { /** + * Get IP of eth0 (AOSP only) * Get IP of eth0 (AOSP only) * @param {String} instanceId Instance ID - uuid * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/AgentValueReturn} and HTTP response @@ -1655,6 +2048,7 @@ export default class CorelliumApi { } /** + * Get IP of eth0 (AOSP only) * Get IP of eth0 (AOSP only) * @param {String} instanceId Instance ID - uuid * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/AgentValueReturn} @@ -1668,6 +2062,7 @@ export default class CorelliumApi { /** + * Get System Property (AOSP only) * Get System Property (AOSP only) * @param {String} instanceId Instance ID - uuid * @param {module:model/AgentSystemGetPropBody} agentSystemGetPropBody Parameters @@ -1706,6 +2101,7 @@ export default class CorelliumApi { } /** + * Get System Property (AOSP only) * Get System Property (AOSP only) * @param {String} instanceId Instance ID - uuid * @param {module:model/AgentSystemGetPropBody} agentSystemGetPropBody Parameters @@ -1720,6 +2116,7 @@ export default class CorelliumApi { /** + * Install OpenGApps (AOSP only) * Install OpenGApps (AOSP only) * @param {String} instanceId Instance ID - uuid * @param {Object.} body Installation parameters @@ -1758,6 +2155,7 @@ export default class CorelliumApi { } /** + * Install OpenGApps (AOSP only) * Install OpenGApps (AOSP only) * @param {String} instanceId Instance ID - uuid * @param {Object.} body Installation parameters @@ -1772,6 +2170,7 @@ export default class CorelliumApi { /** + * Lock Device (iOS Only) * Lock Device (iOS Only) * @param {String} instanceId Instance ID - uuid * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response @@ -1805,6 +2204,7 @@ export default class CorelliumApi { } /** + * Lock Device (iOS Only) * Lock Device (iOS Only) * @param {String} instanceId Instance ID - uuid * @return {Promise} a {@link https://www.promisejs.org/|Promise} @@ -1818,6 +2218,7 @@ export default class CorelliumApi { /** + * Set ADB Auth Setting (AOSP only) * Set ADB Auth Setting (AOSP only) * @param {String} instanceId Instance ID - uuid * @param {module:model/AgentSystemAdbAuth} agentSystemAdbAuth Desired ADB Auth Setting @@ -1856,6 +2257,7 @@ export default class CorelliumApi { } /** + * Set ADB Auth Setting (AOSP only) * Set ADB Auth Setting (AOSP only) * @param {String} instanceId Instance ID - uuid * @param {module:model/AgentSystemAdbAuth} agentSystemAdbAuth Desired ADB Auth Setting @@ -1870,6 +2272,7 @@ export default class CorelliumApi { /** + * Set Hostname of instance * Set Hostname of instance * @param {String} instanceId Instance ID - uuid * @param {module:model/AgentSystemSetHostnameBody} agentSystemSetHostnameBody New hostname @@ -1908,6 +2311,7 @@ export default class CorelliumApi { } /** + * Set Hostname of instance * Set Hostname of instance * @param {String} instanceId Instance ID - uuid * @param {module:model/AgentSystemSetHostnameBody} agentSystemSetHostnameBody New hostname @@ -1922,6 +2326,7 @@ export default class CorelliumApi { /** + * Instruct VM to halt * Instruct VM to halt * @param {String} instanceId Instance ID - uuid * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response @@ -1955,6 +2360,7 @@ export default class CorelliumApi { } /** + * Instruct VM to halt * Instruct VM to halt * @param {String} instanceId Instance ID - uuid * @return {Promise} a {@link https://www.promisejs.org/|Promise} @@ -1968,6 +2374,7 @@ export default class CorelliumApi { /** + * Unlock Device (iOS Only) * Unlock Device (iOS Only) * @param {String} instanceId Instance ID - uuid * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response @@ -2001,6 +2408,7 @@ export default class CorelliumApi { } /** + * Unlock Device (iOS Only) * Unlock Device (iOS Only) * @param {String} instanceId Instance ID - uuid * @return {Promise} a {@link https://www.promisejs.org/|Promise} @@ -2014,6 +2422,7 @@ export default class CorelliumApi { /** + * Uninstall an App * Uninstall an App * @param {String} instanceId Instance ID - uuid * @param {String} bundleId App Bundle ID @@ -2053,6 +2462,7 @@ export default class CorelliumApi { } /** + * Uninstall an App * Uninstall an App * @param {String} instanceId Instance ID - uuid * @param {String} bundleId App Bundle ID @@ -2067,6 +2477,7 @@ export default class CorelliumApi { /** + * Uninstall a Profile from VM * Uninstall a Profile from VM * @param {String} instanceId Instance ID - uuid * @param {String} profileId Instance ID - uuid @@ -2106,6 +2517,7 @@ export default class CorelliumApi { } /** + * Uninstall a Profile from VM * Uninstall a Profile from VM * @param {String} instanceId Instance ID - uuid * @param {String} profileId Instance ID - uuid @@ -2120,6 +2532,7 @@ export default class CorelliumApi { /** + * Upload a file to VM * Upload a file to VM * @param {String} instanceId Instance ID - uuid * @param {String} filePath File Path on VM to write to @@ -2164,6 +2577,7 @@ export default class CorelliumApi { } /** + * Upload a file to VM * Upload a file to VM * @param {String} instanceId Instance ID - uuid * @param {String} filePath File Path on VM to write to @@ -2178,7 +2592,62 @@ export default class CorelliumApi { } + /** + * Attach I/O Interface + * Attach an I/O interface to an I/O interconnect for the specified instance identifier. + * @param {String} instanceId Instance ID - uuid + * @param {module:model/AttachInterfaceRequest} attachInterfaceRequest Interface attachment request + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response + */ + v1AttachInstanceInterfaceWithHttpInfo(instanceId, attachInterfaceRequest) { + let postBody = attachInterfaceRequest; + // verify the required parameter 'instanceId' is set + if (instanceId === undefined || instanceId === null) { + throw new Error("Missing the required parameter 'instanceId' when calling v1AttachInstanceInterface"); + } + // verify the required parameter 'attachInterfaceRequest' is set + if (attachInterfaceRequest === undefined || attachInterfaceRequest === null) { + throw new Error("Missing the required parameter 'attachInterfaceRequest' when calling v1AttachInstanceInterface"); + } + + let pathParams = { + 'instanceId': instanceId + }; + let queryParams = { + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['BearerAuth']; + let contentTypes = ['application/json']; + let accepts = ['application/json']; + let returnType = null; + return this.apiClient.callApi( + '/v1/instances/{instanceId}/interfaces', 'POST', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null + ); + } + + /** + * Attach I/O Interface + * Attach an I/O interface to an I/O interconnect for the specified instance identifier. + * @param {String} instanceId Instance ID - uuid + * @param {module:model/AttachInterfaceRequest} attachInterfaceRequest Interface attachment request + * @return {Promise} a {@link https://www.promisejs.org/|Promise} + */ + v1AttachInstanceInterface(instanceId, attachInterfaceRequest) { + return this.v1AttachInstanceInterfaceWithHttpInfo(instanceId, attachInterfaceRequest) + .then(function(response_and_data) { + return response_and_data.data; + }); + } + + /** + * Log In * Log In * @param {Object.} body Authorization data ( Credentials|ApiToken ) * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/Token} and HTTP response @@ -2202,21 +2671,877 @@ export default class CorelliumApi { let authNames = []; let contentTypes = ['application/json']; let accepts = ['application/json']; - let returnType = Token; + let returnType = Token; + return this.apiClient.callApi( + '/v1/auth/login', 'POST', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null + ); + } + + /** + * Log In + * Log In + * @param {Object.} body Authorization data ( Credentials|ApiToken ) + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/Token} + */ + v1AuthLogin(body) { + return this.v1AuthLoginWithHttpInfo(body) + .then(function(response_and_data) { + return response_and_data.data; + }); + } + + + /** + * Pre-authorize an btrace download + * Pre-authorize an btrace download + * @param {String} instanceId Instance ID - uuid + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/Token} and HTTP response + */ + v1BtracePreauthorizeWithHttpInfo(instanceId) { + let postBody = null; + // verify the required parameter 'instanceId' is set + if (instanceId === undefined || instanceId === null) { + throw new Error("Missing the required parameter 'instanceId' when calling v1BtracePreauthorize"); + } + + let pathParams = { + 'instanceId': instanceId + }; + let queryParams = { + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['BearerAuth']; + let contentTypes = []; + let accepts = ['application/json']; + let returnType = Token; + return this.apiClient.callApi( + '/v1/instances/{instanceId}/btrace-authorize', 'GET', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null + ); + } + + /** + * Pre-authorize an btrace download + * Pre-authorize an btrace download + * @param {String} instanceId Instance ID - uuid + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/Token} + */ + v1BtracePreauthorize(instanceId) { + return this.v1BtracePreauthorizeWithHttpInfo(instanceId) + .then(function(response_and_data) { + return response_and_data.data; + }); + } + + + /** + * Clear CoreTrace logs + * Clear CoreTrace logs + * @param {String} instanceId Instance ID - uuid + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response + */ + v1ClearCoreTraceWithHttpInfo(instanceId) { + let postBody = null; + // verify the required parameter 'instanceId' is set + if (instanceId === undefined || instanceId === null) { + throw new Error("Missing the required parameter 'instanceId' when calling v1ClearCoreTrace"); + } + + let pathParams = { + 'instanceId': instanceId + }; + let queryParams = { + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['BearerAuth']; + let contentTypes = []; + let accepts = ['application/json']; + let returnType = null; + return this.apiClient.callApi( + '/v1/instances/{instanceId}/strace', 'DELETE', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null + ); + } + + /** + * Clear CoreTrace logs + * Clear CoreTrace logs + * @param {String} instanceId Instance ID - uuid + * @return {Promise} a {@link https://www.promisejs.org/|Promise} + */ + v1ClearCoreTrace(instanceId) { + return this.v1ClearCoreTraceWithHttpInfo(instanceId) + .then(function(response_and_data) { + return response_and_data.data; + }); + } + + + /** + * Clear HyperTrace logs + * Clear HyperTrace logs + * @param {String} instanceId Instance ID - uuid + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response + */ + v1ClearHyperTraceWithHttpInfo(instanceId) { + let postBody = null; + // verify the required parameter 'instanceId' is set + if (instanceId === undefined || instanceId === null) { + throw new Error("Missing the required parameter 'instanceId' when calling v1ClearHyperTrace"); + } + + let pathParams = { + 'instanceId': instanceId + }; + let queryParams = { + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['BearerAuth']; + let contentTypes = []; + let accepts = ['application/json']; + let returnType = null; + return this.apiClient.callApi( + '/v1/instances/{instanceId}/btrace', 'DELETE', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null + ); + } + + /** + * Clear HyperTrace logs + * Clear HyperTrace logs + * @param {String} instanceId Instance ID - uuid + * @return {Promise} a {@link https://www.promisejs.org/|Promise} + */ + v1ClearHyperTrace(instanceId) { + return this.v1ClearHyperTraceWithHttpInfo(instanceId) + .then(function(response_and_data) { + return response_and_data.data; + }); + } + + + /** + * Clear Hooks on an instance + * Clear Hooks on an instance + * @param {String} instanceId Instance ID - uuid + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response + */ + v1ClearHyperTraceHooksWithHttpInfo(instanceId) { + let postBody = null; + // verify the required parameter 'instanceId' is set + if (instanceId === undefined || instanceId === null) { + throw new Error("Missing the required parameter 'instanceId' when calling v1ClearHyperTraceHooks"); + } + + let pathParams = { + 'instanceId': instanceId + }; + let queryParams = { + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['BearerAuth']; + let contentTypes = []; + let accepts = ['application/json']; + let returnType = null; + return this.apiClient.callApi( + '/v1/instances/{instanceId}/hooks/clear', 'POST', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null + ); + } + + /** + * Clear Hooks on an instance + * Clear Hooks on an instance + * @param {String} instanceId Instance ID - uuid + * @return {Promise} a {@link https://www.promisejs.org/|Promise} + */ + v1ClearHyperTraceHooks(instanceId) { + return this.v1ClearHyperTraceHooksWithHttpInfo(instanceId) + .then(function(response_and_data) { + return response_and_data.data; + }); + } + + + /** + * Clear Panics + * Clear Panics + * @param {String} instanceId Instance ID - uuid + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response + */ + v1ClearInstancePanicsWithHttpInfo(instanceId) { + let postBody = null; + // verify the required parameter 'instanceId' is set + if (instanceId === undefined || instanceId === null) { + throw new Error("Missing the required parameter 'instanceId' when calling v1ClearInstancePanics"); + } + + let pathParams = { + 'instanceId': instanceId + }; + let queryParams = { + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['BearerAuth']; + let contentTypes = []; + let accepts = ['application/json']; + let returnType = null; + return this.apiClient.callApi( + '/v1/instances/{instanceId}/panics', 'DELETE', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null + ); + } + + /** + * Clear Panics + * Clear Panics + * @param {String} instanceId Instance ID - uuid + * @return {Promise} a {@link https://www.promisejs.org/|Promise} + */ + v1ClearInstancePanics(instanceId) { + return this.v1ClearInstancePanicsWithHttpInfo(instanceId) + .then(function(response_and_data) { + return response_and_data.data; + }); + } + + + /** + * Get cluster configuration + * Get cluster configuration + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Object} and HTTP response + */ + v1ClusterConfigGetWithHttpInfo() { + let postBody = null; + + let pathParams = { + }; + let queryParams = { + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['BearerAuth']; + let contentTypes = []; + let accepts = ['application/json']; + let returnType = Object; + return this.apiClient.callApi( + '/v1/cluster/config', 'GET', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null + ); + } + + /** + * Get cluster configuration + * Get cluster configuration + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Object} + */ + v1ClusterConfigGet() { + return this.v1ClusterConfigGetWithHttpInfo() + .then(function(response_and_data) { + return response_and_data.data; + }); + } + + + /** + * Update cluster configuration + * Update cluster configuration + * @param {module:model/ClusterConfigurationPayload} clusterConfigurationPayload Cluster Configuration Payload + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response + */ + v1ClusterConfigPatchWithHttpInfo(clusterConfigurationPayload) { + let postBody = clusterConfigurationPayload; + // verify the required parameter 'clusterConfigurationPayload' is set + if (clusterConfigurationPayload === undefined || clusterConfigurationPayload === null) { + throw new Error("Missing the required parameter 'clusterConfigurationPayload' when calling v1ClusterConfigPatch"); + } + + let pathParams = { + }; + let queryParams = { + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['BearerAuth']; + let contentTypes = ['application/json']; + let accepts = ['application/json']; + let returnType = null; + return this.apiClient.callApi( + '/v1/cluster/config', 'PATCH', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null + ); + } + + /** + * Update cluster configuration + * Update cluster configuration + * @param {module:model/ClusterConfigurationPayload} clusterConfigurationPayload Cluster Configuration Payload + * @return {Promise} a {@link https://www.promisejs.org/|Promise} + */ + v1ClusterConfigPatch(clusterConfigurationPayload) { + return this.v1ClusterConfigPatchWithHttpInfo(clusterConfigurationPayload) + .then(function(response_and_data) { + return response_and_data.data; + }); + } + + + /** + * Fetch firmware service configuration + * Returns a firmware service configuration object + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response + */ + v1ClusterFirmwareServiceConfigGetWithHttpInfo() { + let postBody = null; + + let pathParams = { + }; + let queryParams = { + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['BearerAuth']; + let contentTypes = []; + let accepts = ['application/json']; + let returnType = null; + return this.apiClient.callApi( + '/v1/cluster/firmware-service/config', 'GET', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null + ); + } + + /** + * Fetch firmware service configuration + * Returns a firmware service configuration object + * @return {Promise} a {@link https://www.promisejs.org/|Promise} + */ + v1ClusterFirmwareServiceConfigGet() { + return this.v1ClusterFirmwareServiceConfigGetWithHttpInfo() + .then(function(response_and_data) { + return response_and_data.data; + }); + } + + + /** + * Update firmware service configuration + * Updates firmware service configuration + * @param {module:model/FirmwareServiceConfiguration} firmwareServiceConfiguration Firmware configuration payload + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response + */ + v1ClusterFirmwareServiceConfigPatchWithHttpInfo(firmwareServiceConfiguration) { + let postBody = firmwareServiceConfiguration; + // verify the required parameter 'firmwareServiceConfiguration' is set + if (firmwareServiceConfiguration === undefined || firmwareServiceConfiguration === null) { + throw new Error("Missing the required parameter 'firmwareServiceConfiguration' when calling v1ClusterFirmwareServiceConfigPatch"); + } + + let pathParams = { + }; + let queryParams = { + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['BearerAuth']; + let contentTypes = ['application/json']; + let accepts = ['application/json']; + let returnType = null; + return this.apiClient.callApi( + '/v1/cluster/firmware-service/config', 'PATCH', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null + ); + } + + /** + * Update firmware service configuration + * Updates firmware service configuration + * @param {module:model/FirmwareServiceConfiguration} firmwareServiceConfiguration Firmware configuration payload + * @return {Promise} a {@link https://www.promisejs.org/|Promise} + */ + v1ClusterFirmwareServiceConfigPatch(firmwareServiceConfiguration) { + return this.v1ClusterFirmwareServiceConfigPatchWithHttpInfo(firmwareServiceConfiguration) + .then(function(response_and_data) { + return response_and_data.data; + }); + } + + + /** + * Set firmware service configuration + * Sets firmware service configuration + * @param {module:model/FirmwareServiceConfiguration} firmwareServiceConfiguration Firmware configuration payload + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response + */ + v1ClusterFirmwareServiceConfigPutWithHttpInfo(firmwareServiceConfiguration) { + let postBody = firmwareServiceConfiguration; + // verify the required parameter 'firmwareServiceConfiguration' is set + if (firmwareServiceConfiguration === undefined || firmwareServiceConfiguration === null) { + throw new Error("Missing the required parameter 'firmwareServiceConfiguration' when calling v1ClusterFirmwareServiceConfigPut"); + } + + let pathParams = { + }; + let queryParams = { + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['BearerAuth']; + let contentTypes = ['application/json']; + let accepts = ['application/json']; + let returnType = null; + return this.apiClient.callApi( + '/v1/cluster/firmware-service/config', 'PUT', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null + ); + } + + /** + * Set firmware service configuration + * Sets firmware service configuration + * @param {module:model/FirmwareServiceConfiguration} firmwareServiceConfiguration Firmware configuration payload + * @return {Promise} a {@link https://www.promisejs.org/|Promise} + */ + v1ClusterFirmwareServiceConfigPut(firmwareServiceConfiguration) { + return this.v1ClusterFirmwareServiceConfigPutWithHttpInfo(firmwareServiceConfiguration) + .then(function(response_and_data) { + return response_and_data.data; + }); + } + + + /** + * Fetch devices from the firmware service + * Proxies a request to the firmware service to retrieve a list of devices. + * @param {Object} opts Optional parameters + * @param {Number} [limit] Number of results to return (min: 1, max: 10000, default: 100) + * @param {Number} [offset] Index of the first row to return (default: 0) + * @param {String} [search] Case-insensitive partial match across name, model, platform, and hwmodel fields + * @param {String} [order] Comma-separated field names for sorting. Prefix with '-' for ascending order (e.g., 'name,-platform'). Allowed fields: name, model, type, platform, hwmodel Filtering options: + * @param {String} [type] Filter by exact type. Example: coreimg + * @param {String} [model] Filter by exact model. Example: Example: iPhone8,1 + * @param {String} [name] Filter by exact name. Example: iPhone6s + * @param {String} [platform] Filter by exact platform. Example: s5l8960x + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Array.} and HTTP response + */ + v1ClusterFirmwareServiceDevicesGetWithHttpInfo(opts) { + opts = opts || {}; + let postBody = null; + + let pathParams = { + }; + let queryParams = { + 'limit': opts['limit'], + 'offset': opts['offset'], + 'search': opts['search'], + 'order': opts['order'], + 'type': opts['type'], + 'model': opts['model'], + 'name': opts['name'], + 'platform': opts['platform'] + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['BearerAuth']; + let contentTypes = []; + let accepts = ['application/json']; + let returnType = [Device]; + return this.apiClient.callApi( + '/v1/cluster/firmware-service/devices', 'GET', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null + ); + } + + /** + * Fetch devices from the firmware service + * Proxies a request to the firmware service to retrieve a list of devices. + * @param {Object} opts Optional parameters + * @param {Number} opts.limit Number of results to return (min: 1, max: 10000, default: 100) + * @param {Number} opts.offset Index of the first row to return (default: 0) + * @param {String} opts.search Case-insensitive partial match across name, model, platform, and hwmodel fields + * @param {String} opts.order Comma-separated field names for sorting. Prefix with '-' for ascending order (e.g., 'name,-platform'). Allowed fields: name, model, type, platform, hwmodel Filtering options: + * @param {String} opts.type Filter by exact type. Example: coreimg + * @param {String} opts.model Filter by exact model. Example: Example: iPhone8,1 + * @param {String} opts.name Filter by exact name. Example: iPhone6s + * @param {String} opts.platform Filter by exact platform. Example: s5l8960x + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Array.} + */ + v1ClusterFirmwareServiceDevicesGet(opts) { + return this.v1ClusterFirmwareServiceDevicesGetWithHttpInfo(opts) + .then(function(response_and_data) { + return response_and_data.data; + }); + } + + + /** + * Delete a firmware asset by its URL + * Proxies a request to the firmware service to delete a firmware asset by URL. + * @param {String} assetURL The URL-encoded firmware asset URL to delete - format:uri - pattern:^[A-Za-z0-9\\-._~:/?#[\\]@!$&'()*+,;=%]+$ + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response + */ + v1ClusterFirmwareServiceFirmwareAssetsAssetURLDeleteWithHttpInfo(assetURL) { + let postBody = null; + // verify the required parameter 'assetURL' is set + if (assetURL === undefined || assetURL === null) { + throw new Error("Missing the required parameter 'assetURL' when calling v1ClusterFirmwareServiceFirmwareAssetsAssetURLDelete"); + } + + let pathParams = { + 'assetURL': assetURL + }; + let queryParams = { + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['BearerAuth']; + let contentTypes = []; + let accepts = ['application/json']; + let returnType = null; + return this.apiClient.callApi( + '/v1/cluster/firmware-service/firmware-assets/{assetURL}', 'DELETE', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null + ); + } + + /** + * Delete a firmware asset by its URL + * Proxies a request to the firmware service to delete a firmware asset by URL. + * @param {String} assetURL The URL-encoded firmware asset URL to delete - format:uri - pattern:^[A-Za-z0-9\\-._~:/?#[\\]@!$&'()*+,;=%]+$ + * @return {Promise} a {@link https://www.promisejs.org/|Promise} + */ + v1ClusterFirmwareServiceFirmwareAssetsAssetURLDelete(assetURL) { + return this.v1ClusterFirmwareServiceFirmwareAssetsAssetURLDeleteWithHttpInfo(assetURL) + .then(function(response_and_data) { + return response_and_data.data; + }); + } + + + /** + * Fetch extended firmware-asset details including instances and associated IPSWs + * Retrieves extended information about a firmware including all instances using it and associated firmware assets. + * @param {String} assetURL The URL-encoded firmware asset to delete. Example: H4RUO0MX-Fz0ka2Q2vCfvP-27ElNZw5bWJEfyF04AxA= + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/ExtendedFirmwareAssetInfo} and HTTP response + */ + v1ClusterFirmwareServiceFirmwareAssetsAssetURLExtendedGetWithHttpInfo(assetURL) { + let postBody = null; + // verify the required parameter 'assetURL' is set + if (assetURL === undefined || assetURL === null) { + throw new Error("Missing the required parameter 'assetURL' when calling v1ClusterFirmwareServiceFirmwareAssetsAssetURLExtendedGet"); + } + + let pathParams = { + 'assetURL': assetURL + }; + let queryParams = { + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['BearerAuth']; + let contentTypes = []; + let accepts = ['application/json']; + let returnType = ExtendedFirmwareAssetInfo; + return this.apiClient.callApi( + '/v1/cluster/firmware-service/firmware-assets/{assetURL}/extended', 'GET', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null + ); + } + + /** + * Fetch extended firmware-asset details including instances and associated IPSWs + * Retrieves extended information about a firmware including all instances using it and associated firmware assets. + * @param {String} assetURL The URL-encoded firmware asset to delete. Example: H4RUO0MX-Fz0ka2Q2vCfvP-27ElNZw5bWJEfyF04AxA= + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ExtendedFirmwareAssetInfo} + */ + v1ClusterFirmwareServiceFirmwareAssetsAssetURLExtendedGet(assetURL) { + return this.v1ClusterFirmwareServiceFirmwareAssetsAssetURLExtendedGetWithHttpInfo(assetURL) + .then(function(response_and_data) { + return response_and_data.data; + }); + } + + + /** + * Fetch firmware assets from the firmware service + * Proxies a request to the firmware service to retrieve a list of firmware assets. + * @param {Object} opts Optional parameters + * @param {Number} [limit] Number of results to return (min: 1, max: 10000, default: 100) + * @param {Number} [offset] Index of the first row to return (default: 0) + * @param {String} [order] Comma-separated field names for sorting. Prefix with '-' for ascending order (e.g., 'url,-domain'). + * @param {String} [search] Case-insensitive partial match across url, domain + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Array.} and HTTP response + */ + v1ClusterFirmwareServiceFirmwareAssetsGetWithHttpInfo(opts) { + opts = opts || {}; + let postBody = null; + + let pathParams = { + }; + let queryParams = { + 'limit': opts['limit'], + 'offset': opts['offset'], + 'order': opts['order'], + 'search': opts['search'] + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['BearerAuth']; + let contentTypes = []; + let accepts = ['application/json']; + let returnType = [FirmwareAsset]; + return this.apiClient.callApi( + '/v1/cluster/firmware-service/firmware-assets', 'GET', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null + ); + } + + /** + * Fetch firmware assets from the firmware service + * Proxies a request to the firmware service to retrieve a list of firmware assets. + * @param {Object} opts Optional parameters + * @param {Number} opts.limit Number of results to return (min: 1, max: 10000, default: 100) + * @param {Number} opts.offset Index of the first row to return (default: 0) + * @param {String} opts.order Comma-separated field names for sorting. Prefix with '-' for ascending order (e.g., 'url,-domain'). + * @param {String} opts.search Case-insensitive partial match across url, domain + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Array.} + */ + v1ClusterFirmwareServiceFirmwareAssetsGet(opts) { + return this.v1ClusterFirmwareServiceFirmwareAssetsGetWithHttpInfo(opts) + .then(function(response_and_data) { + return response_and_data.data; + }); + } + + + /** + * Add firmware assets via the firmware service + * Proxies a request to the firmware service to add firmware assets. + * @param {Object.} body Firmware assets payload + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link String} and HTTP response + */ + v1ClusterFirmwareServiceFirmwareAssetsPostWithHttpInfo(body) { + let postBody = body; + // verify the required parameter 'body' is set + if (body === undefined || body === null) { + throw new Error("Missing the required parameter 'body' when calling v1ClusterFirmwareServiceFirmwareAssetsPost"); + } + + let pathParams = { + }; + let queryParams = { + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['BearerAuth']; + let contentTypes = ['application/json']; + let accepts = ['text/html', 'application/json']; + let returnType = 'String'; + return this.apiClient.callApi( + '/v1/cluster/firmware-service/firmware-assets', 'POST', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null + ); + } + + /** + * Add firmware assets via the firmware service + * Proxies a request to the firmware service to add firmware assets. + * @param {Object.} body Firmware assets payload + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link String} + */ + v1ClusterFirmwareServiceFirmwareAssetsPost(body) { + return this.v1ClusterFirmwareServiceFirmwareAssetsPostWithHttpInfo(body) + .then(function(response_and_data) { + return response_and_data.data; + }); + } + + + /** + * Delete a firmware by filename from the firmware service + * Proxies a request to the firmware service to delete a firmware by filename. + * @param {String} filename The filename of the firmware to delete + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response + */ + v1ClusterFirmwareServiceFirmwaresFilenameDeleteWithHttpInfo(filename) { + let postBody = null; + // verify the required parameter 'filename' is set + if (filename === undefined || filename === null) { + throw new Error("Missing the required parameter 'filename' when calling v1ClusterFirmwareServiceFirmwaresFilenameDelete"); + } + + let pathParams = { + 'filename': filename + }; + let queryParams = { + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['BearerAuth']; + let contentTypes = []; + let accepts = ['application/json']; + let returnType = null; + return this.apiClient.callApi( + '/v1/cluster/firmware-service/firmwares/{filename}', 'DELETE', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null + ); + } + + /** + * Delete a firmware by filename from the firmware service + * Proxies a request to the firmware service to delete a firmware by filename. + * @param {String} filename The filename of the firmware to delete + * @return {Promise} a {@link https://www.promisejs.org/|Promise} + */ + v1ClusterFirmwareServiceFirmwaresFilenameDelete(filename) { + return this.v1ClusterFirmwareServiceFirmwaresFilenameDeleteWithHttpInfo(filename) + .then(function(response_and_data) { + return response_and_data.data; + }); + } + + + /** + * Fetch firmwares from the firmware service + * Proxies a request to the firmware service to retrieve a list of firmwares. + * @param {Object} opts Optional parameters + * @param {Number} [limit] Number of results to return (min: 1, max: 10000, default: 100) + * @param {Number} [offset] Index of the first row to return (default: 0) + * @param {String} [search] Case-insensitive partial match across filename, model, type, version and buildid fields + * @param {String} [order] Comma-separated field names for sorting. Prefix with '-' for ascending order (e.g., 'name,-platform'). Allowed fields: filename, model, type, version, buildid Filtering options: + * @param {String} [filename] Filter by exact filename. Example: iPhone_4.7_P3_12.1.4_16D57_Restore.ipsw + * @param {String} [model] Filter by exact model. Example: iPhone10,4 + * @param {String} [type] Filter by exact type. Example: ipsw + * @param {String} [version] Filter by exact version. Example: 12.1.4 + * @param {String} [buildid] Filter by exact buildid. Example: 16D57 + * @param {String} [firmwareAssets] Filter by exact asset URL/ID. Example: https://wkms-public.apple.com/fcs-keys/rl_td3o_0EtXT8t6HvVJoeWXnoBuzumHyUTD8-MUaF8= -OR- rl_td3o_0EtXT8t6HvVJoeWXnoBuzumHyUTD8-MUaF8= + * @param {Boolean} [installed] Filter by installed status + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Array.} and HTTP response + */ + v1ClusterFirmwareServiceFirmwaresGetWithHttpInfo(opts) { + opts = opts || {}; + let postBody = null; + + let pathParams = { + }; + let queryParams = { + 'limit': opts['limit'], + 'offset': opts['offset'], + 'search': opts['search'], + 'order': opts['order'], + 'filename': opts['filename'], + 'model': opts['model'], + 'type': opts['type'], + 'version': opts['version'], + 'buildid': opts['buildid'], + 'firmware_assets': opts['firmwareAssets'], + 'installed': opts['installed'] + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['BearerAuth']; + let contentTypes = []; + let accepts = ['application/json']; + let returnType = [Firmware]; return this.apiClient.callApi( - '/v1/auth/login', 'POST', + '/v1/cluster/firmware-service/firmwares', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null ); } /** - * Log In - * @param {Object.} body Authorization data ( Credentials|ApiToken ) - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/Token} + * Fetch firmwares from the firmware service + * Proxies a request to the firmware service to retrieve a list of firmwares. + * @param {Object} opts Optional parameters + * @param {Number} opts.limit Number of results to return (min: 1, max: 10000, default: 100) + * @param {Number} opts.offset Index of the first row to return (default: 0) + * @param {String} opts.search Case-insensitive partial match across filename, model, type, version and buildid fields + * @param {String} opts.order Comma-separated field names for sorting. Prefix with '-' for ascending order (e.g., 'name,-platform'). Allowed fields: filename, model, type, version, buildid Filtering options: + * @param {String} opts.filename Filter by exact filename. Example: iPhone_4.7_P3_12.1.4_16D57_Restore.ipsw + * @param {String} opts.model Filter by exact model. Example: iPhone10,4 + * @param {String} opts.type Filter by exact type. Example: ipsw + * @param {String} opts.version Filter by exact version. Example: 12.1.4 + * @param {String} opts.buildid Filter by exact buildid. Example: 16D57 + * @param {String} opts.firmwareAssets Filter by exact asset URL/ID. Example: https://wkms-public.apple.com/fcs-keys/rl_td3o_0EtXT8t6HvVJoeWXnoBuzumHyUTD8-MUaF8= -OR- rl_td3o_0EtXT8t6HvVJoeWXnoBuzumHyUTD8-MUaF8= + * @param {Boolean} opts.installed Filter by installed status + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Array.} */ - v1AuthLogin(body) { - return this.v1AuthLoginWithHttpInfo(body) + v1ClusterFirmwareServiceFirmwaresGet(opts) { + return this.v1ClusterFirmwareServiceFirmwaresGetWithHttpInfo(opts) .then(function(response_and_data) { return response_and_data.data; }); @@ -2224,21 +3549,22 @@ export default class CorelliumApi { /** - * Pre-authorize an btrace download - * @param {String} instanceId Instance ID - uuid - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Object} and HTTP response + * List servers in the cluster + * List servers in the cluster + * @param {Object} opts Optional parameters + * @param {Number} [limit] limit for pagination results, defaults to 100 + * @param {Number} [offset] offset for pagination results, defaults to 0 + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Array.} and HTTP response */ - v1BtracePreauthorizeWithHttpInfo(instanceId) { + v1ClusterNodesGetWithHttpInfo(opts) { + opts = opts || {}; let postBody = null; - // verify the required parameter 'instanceId' is set - if (instanceId === undefined || instanceId === null) { - throw new Error("Missing the required parameter 'instanceId' when calling v1BtracePreauthorize"); - } let pathParams = { - 'instanceId': instanceId }; let queryParams = { + 'limit': opts['limit'], + 'offset': opts['offset'] }; let headerParams = { }; @@ -2248,21 +3574,24 @@ export default class CorelliumApi { let authNames = ['BearerAuth']; let contentTypes = []; let accepts = ['application/json']; - let returnType = Object; + let returnType = [NodeInformation]; return this.apiClient.callApi( - '/v1/instances/{instanceId}/btrace-authorize', 'GET', + '/v1/cluster/nodes', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null ); } /** - * Pre-authorize an btrace download - * @param {String} instanceId Instance ID - uuid - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Object} + * List servers in the cluster + * List servers in the cluster + * @param {Object} opts Optional parameters + * @param {Number} opts.limit limit for pagination results, defaults to 100 + * @param {Number} opts.offset offset for pagination results, defaults to 0 + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Array.} */ - v1BtracePreauthorize(instanceId) { - return this.v1BtracePreauthorizeWithHttpInfo(instanceId) + v1ClusterNodesGet(opts) { + return this.v1ClusterNodesGetWithHttpInfo(opts) .then(function(response_and_data) { return response_and_data.data; }); @@ -2270,18 +3599,20 @@ export default class CorelliumApi { /** - * Check the existence of a subdomain - * @param {module:model/V1CheckSubdomainExistenceParameters} v1CheckSubdomainExistenceParameters application/json - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/CheckSubdomainResponse} and HTTP response + * Access node console via SSH + * Access node console via SSH (WebSocket upgrade) + * @param {String} nodeId Node ID + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response */ - v1CheckSubdomainExistenceWithHttpInfo(v1CheckSubdomainExistenceParameters) { - let postBody = v1CheckSubdomainExistenceParameters; - // verify the required parameter 'v1CheckSubdomainExistenceParameters' is set - if (v1CheckSubdomainExistenceParameters === undefined || v1CheckSubdomainExistenceParameters === null) { - throw new Error("Missing the required parameter 'v1CheckSubdomainExistenceParameters' when calling v1CheckSubdomainExistence"); + v1ClusterNodesNodeIdConsoleGetWithHttpInfo(nodeId) { + let postBody = null; + // verify the required parameter 'nodeId' is set + if (nodeId === undefined || nodeId === null) { + throw new Error("Missing the required parameter 'nodeId' when calling v1ClusterNodesNodeIdConsoleGet"); } let pathParams = { + 'nodeId': nodeId }; let queryParams = { }; @@ -2291,23 +3622,24 @@ export default class CorelliumApi { }; let authNames = ['BearerAuth']; - let contentTypes = ['application/json']; + let contentTypes = []; let accepts = ['application/json']; - let returnType = CheckSubdomainResponse; + let returnType = null; return this.apiClient.callApi( - '/v1/domain/check', 'POST', + '/v1/cluster/nodes/:nodeId/console', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null ); } /** - * Check the existence of a subdomain - * @param {module:model/V1CheckSubdomainExistenceParameters} v1CheckSubdomainExistenceParameters application/json - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/CheckSubdomainResponse} + * Access node console via SSH + * Access node console via SSH (WebSocket upgrade) + * @param {String} nodeId Node ID + * @return {Promise} a {@link https://www.promisejs.org/|Promise} */ - v1CheckSubdomainExistence(v1CheckSubdomainExistenceParameters) { - return this.v1CheckSubdomainExistenceWithHttpInfo(v1CheckSubdomainExistenceParameters) + v1ClusterNodesNodeIdConsoleGet(nodeId) { + return this.v1ClusterNodesNodeIdConsoleGetWithHttpInfo(nodeId) .then(function(response_and_data) { return response_and_data.data; }); @@ -2315,19 +3647,20 @@ export default class CorelliumApi { /** - * Clear CoreTrace logs - * @param {String} instanceId Instance ID - uuid - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response + * Get node details by ID + * Get node details by ID + * @param {String} nodeId Node ID + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/NodeInformation} and HTTP response */ - v1ClearCoreTraceWithHttpInfo(instanceId) { + v1ClusterNodesNodeIdGetWithHttpInfo(nodeId) { let postBody = null; - // verify the required parameter 'instanceId' is set - if (instanceId === undefined || instanceId === null) { - throw new Error("Missing the required parameter 'instanceId' when calling v1ClearCoreTrace"); + // verify the required parameter 'nodeId' is set + if (nodeId === undefined || nodeId === null) { + throw new Error("Missing the required parameter 'nodeId' when calling v1ClusterNodesNodeIdGet"); } let pathParams = { - 'instanceId': instanceId + 'nodeId': nodeId }; let queryParams = { }; @@ -2339,21 +3672,22 @@ export default class CorelliumApi { let authNames = ['BearerAuth']; let contentTypes = []; let accepts = ['application/json']; - let returnType = null; + let returnType = NodeInformation; return this.apiClient.callApi( - '/v1/instances/{instanceId}/strace', 'DELETE', + '/v1/cluster/nodes/:nodeId', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null ); } /** - * Clear CoreTrace logs - * @param {String} instanceId Instance ID - uuid - * @return {Promise} a {@link https://www.promisejs.org/|Promise} + * Get node details by ID + * Get node details by ID + * @param {String} nodeId Node ID + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/NodeInformation} */ - v1ClearCoreTrace(instanceId) { - return this.v1ClearCoreTraceWithHttpInfo(instanceId) + v1ClusterNodesNodeIdGet(nodeId) { + return this.v1ClusterNodesNodeIdGetWithHttpInfo(nodeId) .then(function(response_and_data) { return response_and_data.data; }); @@ -2361,21 +3695,40 @@ export default class CorelliumApi { /** - * Clear HyperTrace logs - * @param {String} instanceId Instance ID - uuid - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response - */ - v1ClearHyperTraceWithHttpInfo(instanceId) { + * Get storage devices + * List all attached storage devices. This endpoint is only available to cluster administrators. + * @param {Object} opts Optional parameters + * @param {Number} [limit] Maximum number of results to return (1–1000, default: 100) + * @param {Number} [offset] Number of results to skip (default: 0) + * @param {String} [device] Filter by device name (partial match) + * @param {String} [fsType] Filter by filesystem type (comma separated) + * @param {String} [fsUUID] Filter by filesystem UUID (partial match) + * @param {String} [label] Filter by label (partial match) + * @param {String} [serial] Filter by serial number (partial match) + * @param {String} [vendor] Filter by vendor (partial match) + * @param {String} [model] Filter by model (partial match) + * @param {String} [mountPolicy] Filter by mount policy (RO or RW) + * @param {String} [sort] Sort order (e.g. \"device\" or \"-device\") + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetStorageResponse} and HTTP response + */ + v1ClusterStorageGetWithHttpInfo(opts) { + opts = opts || {}; let postBody = null; - // verify the required parameter 'instanceId' is set - if (instanceId === undefined || instanceId === null) { - throw new Error("Missing the required parameter 'instanceId' when calling v1ClearHyperTrace"); - } let pathParams = { - 'instanceId': instanceId }; let queryParams = { + 'limit': opts['limit'], + 'offset': opts['offset'], + 'device': opts['device'], + 'fsType': opts['fsType'], + 'fsUUID': opts['fsUUID'], + 'label': opts['label'], + 'serial': opts['serial'], + 'vendor': opts['vendor'], + 'model': opts['model'], + 'mountPolicy': opts['mountPolicy'], + 'sort': opts['sort'] }; let headerParams = { }; @@ -2385,21 +3738,33 @@ export default class CorelliumApi { let authNames = ['BearerAuth']; let contentTypes = []; let accepts = ['application/json']; - let returnType = null; + let returnType = GetStorageResponse; return this.apiClient.callApi( - '/v1/instances/{instanceId}/btrace', 'DELETE', + '/v1/cluster/storage', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null ); } /** - * Clear HyperTrace logs - * @param {String} instanceId Instance ID - uuid - * @return {Promise} a {@link https://www.promisejs.org/|Promise} + * Get storage devices + * List all attached storage devices. This endpoint is only available to cluster administrators. + * @param {Object} opts Optional parameters + * @param {Number} opts.limit Maximum number of results to return (1–1000, default: 100) + * @param {Number} opts.offset Number of results to skip (default: 0) + * @param {String} opts.device Filter by device name (partial match) + * @param {String} opts.fsType Filter by filesystem type (comma separated) + * @param {String} opts.fsUUID Filter by filesystem UUID (partial match) + * @param {String} opts.label Filter by label (partial match) + * @param {String} opts.serial Filter by serial number (partial match) + * @param {String} opts.vendor Filter by vendor (partial match) + * @param {String} opts.model Filter by model (partial match) + * @param {String} opts.mountPolicy Filter by mount policy (RO or RW) + * @param {String} opts.sort Sort order (e.g. \"device\" or \"-device\") + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetStorageResponse} */ - v1ClearHyperTrace(instanceId) { - return this.v1ClearHyperTraceWithHttpInfo(instanceId) + v1ClusterStorageGet(opts) { + return this.v1ClusterStorageGetWithHttpInfo(opts) .then(function(response_and_data) { return response_and_data.data; }); @@ -2407,19 +3772,20 @@ export default class CorelliumApi { /** - * Clear Hooks on an instance - * @param {String} instanceId Instance ID - uuid - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response + * Mount and attach a storage device + * Initiates an asynchronous mount job for a registered storage device. If already mounted, returns status 200. If not, queues a background job and returns 202. + * @param {String} id The unique identifier of the storage media + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Object} and HTTP response */ - v1ClearHyperTraceHooksWithHttpInfo(instanceId) { + v1ClusterStorageIdAttachPostWithHttpInfo(id) { let postBody = null; - // verify the required parameter 'instanceId' is set - if (instanceId === undefined || instanceId === null) { - throw new Error("Missing the required parameter 'instanceId' when calling v1ClearHyperTraceHooks"); + // verify the required parameter 'id' is set + if (id === undefined || id === null) { + throw new Error("Missing the required parameter 'id' when calling v1ClusterStorageIdAttachPost"); } let pathParams = { - 'instanceId': instanceId + 'id': id }; let queryParams = { }; @@ -2431,21 +3797,22 @@ export default class CorelliumApi { let authNames = ['BearerAuth']; let contentTypes = []; let accepts = ['application/json']; - let returnType = null; + let returnType = Object; return this.apiClient.callApi( - '/v1/instances/{instanceId}/hooks/clear', 'POST', + '/v1/cluster/storage/:id/attach', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null ); } /** - * Clear Hooks on an instance - * @param {String} instanceId Instance ID - uuid - * @return {Promise} a {@link https://www.promisejs.org/|Promise} + * Mount and attach a storage device + * Initiates an asynchronous mount job for a registered storage device. If already mounted, returns status 200. If not, queues a background job and returns 202. + * @param {String} id The unique identifier of the storage media + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Object} */ - v1ClearHyperTraceHooks(instanceId) { - return this.v1ClearHyperTraceHooksWithHttpInfo(instanceId) + v1ClusterStorageIdAttachPost(id) { + return this.v1ClusterStorageIdAttachPostWithHttpInfo(id) .then(function(response_and_data) { return response_and_data.data; }); @@ -2453,19 +3820,20 @@ export default class CorelliumApi { /** - * Clear Panics - * @param {String} instanceId Instance ID - uuid - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response + * Eject/Unmount removable media + * Initiates an asynchronous unmount job for the physical storage device. If the device is already unmounted, returns success. If mounted, creates a background job to safely unmount. + * @param {String} id Storage device identifier (UUID) + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Object} and HTTP response */ - v1ClearInstancePanicsWithHttpInfo(instanceId) { + v1ClusterStorageIdEjectPostWithHttpInfo(id) { let postBody = null; - // verify the required parameter 'instanceId' is set - if (instanceId === undefined || instanceId === null) { - throw new Error("Missing the required parameter 'instanceId' when calling v1ClearInstancePanics"); + // verify the required parameter 'id' is set + if (id === undefined || id === null) { + throw new Error("Missing the required parameter 'id' when calling v1ClusterStorageIdEjectPost"); } let pathParams = { - 'instanceId': instanceId + 'id': id }; let queryParams = { }; @@ -2477,21 +3845,22 @@ export default class CorelliumApi { let authNames = ['BearerAuth']; let contentTypes = []; let accepts = ['application/json']; - let returnType = null; + let returnType = Object; return this.apiClient.callApi( - '/v1/instances/{instanceId}/panics', 'DELETE', + '/v1/cluster/storage/:id/eject', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null ); } /** - * Clear Panics - * @param {String} instanceId Instance ID - uuid - * @return {Promise} a {@link https://www.promisejs.org/|Promise} + * Eject/Unmount removable media + * Initiates an asynchronous unmount job for the physical storage device. If the device is already unmounted, returns success. If mounted, creates a background job to safely unmount. + * @param {String} id Storage device identifier (UUID) + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Object} */ - v1ClearInstancePanics(instanceId) { - return this.v1ClearInstancePanicsWithHttpInfo(instanceId) + v1ClusterStorageIdEjectPost(id) { + return this.v1ClusterStorageIdEjectPostWithHttpInfo(id) .then(function(response_and_data) { return response_and_data.data; }); @@ -2499,6 +3868,7 @@ export default class CorelliumApi { /** + * Create a new auth provider for a domain * Create a new auth provider for a domain * @param {String} domainId Domain ID - uuid * @param {module:model/DomainAuthProviderRequest} domainAuthProviderRequest Request Data @@ -2537,6 +3907,7 @@ export default class CorelliumApi { } /** + * Create a new auth provider for a domain * Create a new auth provider for a domain * @param {String} domainId Domain ID - uuid * @param {module:model/DomainAuthProviderRequest} domainAuthProviderRequest Request Data @@ -2551,6 +3922,7 @@ export default class CorelliumApi { /** + * Create hypervisor hook for Instance * Create hypervisor hook for Instance * @param {String} instanceId Instance ID - uuid * @param {module:model/V1CreateHookParameters} v1CreateHookParameters application/json @@ -2589,6 +3961,7 @@ export default class CorelliumApi { } /** + * Create hypervisor hook for Instance * Create hypervisor hook for Instance * @param {String} instanceId Instance ID - uuid * @param {module:model/V1CreateHookParameters} v1CreateHookParameters application/json @@ -2604,11 +3977,13 @@ export default class CorelliumApi { /** * Create a new Image - * @param {String} type Image type + * Create a new Image. Accepts multipart/form-data (with optional file upload) or application/json (metadata only). + * @param {String} type Image type: 'iotfirmware' | 'kernel' | 'devicetree' | 'ramdisk' | 'loaderfile' | 'clbi' | 'ufd' | 'media' | 'sepfw' | 'seprom' | 'bootrom' | 'llb' | 'iboot' | 'ibootdata' | 'fw' | 'fwasset' | 'partition' | 'extension' | 'vmfile' | 'backup' | 'activity-export' * @param {module:model/String} encoding How the file is stored * @param {Object} opts Optional parameters * @param {Boolean} [encapsulated] set to false if the uploaded file is not encapsulated inside an outer zipfile * @param {String} [name] Image name + * @param {String} [fullPath] Full local path to image file * @param {String} [project] Project ID * @param {String} [instance] Instance ID * @param {File} [file] Optionally the actual file @@ -2637,6 +4012,7 @@ export default class CorelliumApi { 'encoding': encoding, 'encapsulated': opts['encapsulated'], 'name': opts['name'], + 'fullPath': opts['fullPath'], 'project': opts['project'], 'instance': opts['instance'], 'file': opts['file'] @@ -2655,11 +4031,13 @@ export default class CorelliumApi { /** * Create a new Image - * @param {String} type Image type + * Create a new Image. Accepts multipart/form-data (with optional file upload) or application/json (metadata only). + * @param {String} type Image type: 'iotfirmware' | 'kernel' | 'devicetree' | 'ramdisk' | 'loaderfile' | 'clbi' | 'ufd' | 'media' | 'sepfw' | 'seprom' | 'bootrom' | 'llb' | 'iboot' | 'ibootdata' | 'fw' | 'fwasset' | 'partition' | 'extension' | 'vmfile' | 'backup' | 'activity-export' * @param {module:model/String} encoding How the file is stored * @param {Object} opts Optional parameters * @param {Boolean} opts.encapsulated set to false if the uploaded file is not encapsulated inside an outer zipfile * @param {String} opts.name Image name + * @param {String} opts.fullPath Full local path to image file * @param {String} opts.project Project ID * @param {String} opts.instance Instance ID * @param {File} opts.file Optionally the actual file @@ -2674,6 +4052,7 @@ export default class CorelliumApi { /** + * Create Instance * Create Instance * @param {module:model/InstanceCreateOptions} instanceCreateOptions The vm definition to create * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/InstanceReturn} and HTTP response @@ -2706,6 +4085,7 @@ export default class CorelliumApi { } /** + * Create Instance * Create Instance * @param {module:model/InstanceCreateOptions} instanceCreateOptions The vm definition to create * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/InstanceReturn} @@ -2722,7 +4102,7 @@ export default class CorelliumApi { * Create a new Network Connection * You must have the domain administrator role to create a network connection. VLAN networks are only supported in bridged networking mode. * @param {module:model/CreateNetworkConnectionOptions} createNetworkConnectionOptions Network Connection Options - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/NetworkConnection} and HTTP response */ v1CreateNetworkConnectionWithHttpInfo(createNetworkConnectionOptions) { let postBody = createNetworkConnectionOptions; @@ -2742,8 +4122,8 @@ export default class CorelliumApi { let authNames = ['BearerAuth']; let contentTypes = ['application/json']; - let accepts = []; - let returnType = null; + let accepts = ['application/json']; + let returnType = NetworkConnection; return this.apiClient.callApi( '/v1/network/connections', 'POST', pathParams, queryParams, headerParams, formParams, postBody, @@ -2755,7 +4135,7 @@ export default class CorelliumApi { * Create a new Network Connection * You must have the domain administrator role to create a network connection. VLAN networks are only supported in bridged networking mode. * @param {module:model/CreateNetworkConnectionOptions} createNetworkConnectionOptions Network Connection Options - * @return {Promise} a {@link https://www.promisejs.org/|Promise} + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/NetworkConnection} */ v1CreateNetworkConnection(createNetworkConnectionOptions) { return this.v1CreateNetworkConnectionWithHttpInfo(createNetworkConnectionOptions) @@ -2766,6 +4146,7 @@ export default class CorelliumApi { /** + * Create a Project * Create a Project * @param {module:model/Project} project Project * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/Project} and HTTP response @@ -2798,6 +4179,7 @@ export default class CorelliumApi { } /** + * Create a Project * Create a Project * @param {module:model/Project} project Project * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/Project} @@ -2811,6 +4193,7 @@ export default class CorelliumApi { /** + * Create Instance Snapshot * Create Instance Snapshot * @param {String} instanceId Instance ID - uuid * @param {module:model/SnapshotCreationOptions} snapshotCreationOptions @@ -2849,6 +4232,7 @@ export default class CorelliumApi { } /** + * Create Instance Snapshot * Create Instance Snapshot * @param {String} instanceId Instance ID - uuid * @param {module:model/SnapshotCreationOptions} snapshotCreationOptions @@ -2864,14 +4248,15 @@ export default class CorelliumApi { /** * Create User - * @param {Object.} body User data - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Object} and HTTP response + * Create User + * @param {module:model/UserCreate} userCreate User data + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/UserCreateReturn} and HTTP response */ - v1CreateUserWithHttpInfo(body) { - let postBody = body; - // verify the required parameter 'body' is set - if (body === undefined || body === null) { - throw new Error("Missing the required parameter 'body' when calling v1CreateUser"); + v1CreateUserWithHttpInfo(userCreate) { + let postBody = userCreate; + // verify the required parameter 'userCreate' is set + if (userCreate === undefined || userCreate === null) { + throw new Error("Missing the required parameter 'userCreate' when calling v1CreateUser"); } let pathParams = { @@ -2886,7 +4271,7 @@ export default class CorelliumApi { let authNames = ['BearerAuth']; let contentTypes = ['application/json']; let accepts = ['application/json']; - let returnType = Object; + let returnType = UserCreateReturn; return this.apiClient.callApi( '/v1/users', 'POST', pathParams, queryParams, headerParams, formParams, postBody, @@ -2896,11 +4281,60 @@ export default class CorelliumApi { /** * Create User - * @param {Object.} body User data - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Object} + * Create User + * @param {module:model/UserCreate} userCreate User data + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/UserCreateReturn} + */ + v1CreateUser(userCreate) { + return this.v1CreateUserWithHttpInfo(userCreate) + .then(function(response_and_data) { + return response_and_data.data; + }); + } + + + /** + * Delete a Cluster Snapshot + * Delete a Cluster Snapshot + * @param {String} snapshotId Snapshot ID - uuid + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response + */ + v1DeleteClusterSnapshotWithHttpInfo(snapshotId) { + let postBody = null; + // verify the required parameter 'snapshotId' is set + if (snapshotId === undefined || snapshotId === null) { + throw new Error("Missing the required parameter 'snapshotId' when calling v1DeleteClusterSnapshot"); + } + + let pathParams = { + 'snapshotId': snapshotId + }; + let queryParams = { + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['BearerAuth']; + let contentTypes = []; + let accepts = ['application/json']; + let returnType = null; + return this.apiClient.callApi( + '/v1/cluster/snapshots/{snapshotId}', 'DELETE', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null + ); + } + + /** + * Delete a Cluster Snapshot + * Delete a Cluster Snapshot + * @param {String} snapshotId Snapshot ID - uuid + * @return {Promise} a {@link https://www.promisejs.org/|Promise} */ - v1CreateUser(body) { - return this.v1CreateUserWithHttpInfo(body) + v1DeleteClusterSnapshot(snapshotId) { + return this.v1DeleteClusterSnapshotWithHttpInfo(snapshotId) .then(function(response_and_data) { return response_and_data.data; }); @@ -2908,10 +4342,11 @@ export default class CorelliumApi { /** + * Delete an auth provider from a domain * Delete an auth provider from a domain * @param {String} domainId Domain ID - uuid * @param {String} providerId Provider ID - uuid - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Object} and HTTP response + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response */ v1DeleteDomainAuthProviderWithHttpInfo(domainId, providerId) { let postBody = null; @@ -2938,7 +4373,7 @@ export default class CorelliumApi { let authNames = ['BearerAuth']; let contentTypes = []; let accepts = ['application/json']; - let returnType = Object; + let returnType = null; return this.apiClient.callApi( '/v1/domain/{domainId}/auth/{providerId}', 'DELETE', pathParams, queryParams, headerParams, formParams, postBody, @@ -2947,10 +4382,11 @@ export default class CorelliumApi { } /** + * Delete an auth provider from a domain * Delete an auth provider from a domain * @param {String} domainId Domain ID - uuid * @param {String} providerId Provider ID - uuid - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Object} + * @return {Promise} a {@link https://www.promisejs.org/|Promise} */ v1DeleteDomainAuthProvider(domainId, providerId) { return this.v1DeleteDomainAuthProviderWithHttpInfo(domainId, providerId) @@ -2961,6 +4397,7 @@ export default class CorelliumApi { /** + * Delete an existing hypervisor hook * Delete an existing hypervisor hook * @param {String} hookId Hook ID * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response @@ -2994,6 +4431,7 @@ export default class CorelliumApi { } /** + * Delete an existing hypervisor hook * Delete an existing hypervisor hook * @param {String} hookId Hook ID * @return {Promise} a {@link https://www.promisejs.org/|Promise} @@ -3007,6 +4445,7 @@ export default class CorelliumApi { /** + * Delete Image * Delete Image * @param {String} imageId Image ID - uuid * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response @@ -3040,6 +4479,7 @@ export default class CorelliumApi { } /** + * Delete Image * Delete Image * @param {String} imageId Image ID - uuid * @return {Promise} a {@link https://www.promisejs.org/|Promise} @@ -3053,6 +4493,7 @@ export default class CorelliumApi { /** + * Remove Instance * Remove Instance * @param {String} instanceId Instance ID * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response @@ -3086,6 +4527,7 @@ export default class CorelliumApi { } /** + * Remove Instance * Remove Instance * @param {String} instanceId Instance ID * @return {Promise} a {@link https://www.promisejs.org/|Promise} @@ -3099,6 +4541,7 @@ export default class CorelliumApi { /** + * Delete an Instance Snapshot * Delete an Instance Snapshot * @param {String} instanceId Instance ID - uuid * @param {String} snapshotId Snapshot ID - uuid @@ -3138,6 +4581,7 @@ export default class CorelliumApi { } /** + * Delete an Instance Snapshot * Delete an Instance Snapshot * @param {String} instanceId Instance ID - uuid * @param {String} snapshotId Snapshot ID - uuid @@ -3206,6 +4650,7 @@ export default class CorelliumApi { /** + * Delete a Project * Delete a Project * @param {String} projectId Project ID - uuid * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response @@ -3239,6 +4684,7 @@ export default class CorelliumApi { } /** + * Delete a Project * Delete a Project * @param {String} projectId Project ID - uuid * @return {Promise} a {@link https://www.promisejs.org/|Promise} @@ -3252,6 +4698,7 @@ export default class CorelliumApi { /** + * Delete a Snapshot * Delete a Snapshot * @param {String} snapshotId Snapshot ID - uuid * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response @@ -3285,6 +4732,7 @@ export default class CorelliumApi { } /** + * Delete a Snapshot * Delete a Snapshot * @param {String} snapshotId Snapshot ID - uuid * @return {Promise} a {@link https://www.promisejs.org/|Promise} @@ -3352,9 +4800,10 @@ export default class CorelliumApi { /** + * Delete User * Delete User * @param {String} userId userId - uuid - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Object} and HTTP response + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response */ v1DeleteUserWithHttpInfo(userId) { let postBody = null; @@ -3376,7 +4825,7 @@ export default class CorelliumApi { let authNames = ['BearerAuth']; let contentTypes = []; let accepts = ['application/json']; - let returnType = Object; + let returnType = null; return this.apiClient.callApi( '/v1/users/{userId}', 'DELETE', pathParams, queryParams, headerParams, formParams, postBody, @@ -3385,9 +4834,10 @@ export default class CorelliumApi { } /** + * Delete User * Delete User * @param {String} userId userId - uuid - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Object} + * @return {Promise} a {@link https://www.promisejs.org/|Promise} */ v1DeleteUser(userId) { return this.v1DeleteUserWithHttpInfo(userId) @@ -3397,7 +4847,69 @@ export default class CorelliumApi { } + /** + * Detach I/O Interface + * Detach an I/O interface from an I/O interconnect for the specified instance identifier. + * @param {String} instanceId Instance ID - uuid + * @param {String} interfaceId Interface ID + * @param {module:model/DetachInterfaceRequest} detachInterfaceRequest Interface detachment request + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response + */ + v1DetachInstanceInterfaceWithHttpInfo(instanceId, interfaceId, detachInterfaceRequest) { + let postBody = detachInterfaceRequest; + // verify the required parameter 'instanceId' is set + if (instanceId === undefined || instanceId === null) { + throw new Error("Missing the required parameter 'instanceId' when calling v1DetachInstanceInterface"); + } + // verify the required parameter 'interfaceId' is set + if (interfaceId === undefined || interfaceId === null) { + throw new Error("Missing the required parameter 'interfaceId' when calling v1DetachInstanceInterface"); + } + // verify the required parameter 'detachInterfaceRequest' is set + if (detachInterfaceRequest === undefined || detachInterfaceRequest === null) { + throw new Error("Missing the required parameter 'detachInterfaceRequest' when calling v1DetachInstanceInterface"); + } + + let pathParams = { + 'instanceId': instanceId, + 'interfaceId': interfaceId + }; + let queryParams = { + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['BearerAuth']; + let contentTypes = ['application/json']; + let accepts = ['application/json']; + let returnType = null; + return this.apiClient.callApi( + '/v1/instances/{instanceId}/interfaces/{interfaceId}', 'DELETE', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null + ); + } + + /** + * Detach I/O Interface + * Detach an I/O interface from an I/O interconnect for the specified instance identifier. + * @param {String} instanceId Instance ID - uuid + * @param {String} interfaceId Interface ID + * @param {module:model/DetachInterfaceRequest} detachInterfaceRequest Interface detachment request + * @return {Promise} a {@link https://www.promisejs.org/|Promise} + */ + v1DetachInstanceInterface(instanceId, interfaceId, detachInterfaceRequest) { + return this.v1DetachInstanceInterfaceWithHttpInfo(instanceId, interfaceId, detachInterfaceRequest) + .then(function(response_and_data) { + return response_and_data.data; + }); + } + + /** + * Disable an exposed port on an instance for device access. * Disable an exposed port on an instance for device access. * @param {String} instanceId Instance ID - uuid * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response @@ -3431,6 +4943,7 @@ export default class CorelliumApi { } /** + * Disable an exposed port on an instance for device access. * Disable an exposed port on an instance for device access. * @param {String} instanceId Instance ID - uuid * @return {Promise} a {@link https://www.promisejs.org/|Promise} @@ -3445,6 +4958,7 @@ export default class CorelliumApi { /** * Download activity + * Download activity for a given task * @param {String} taskId Export ID * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/ActivityList} and HTTP response */ @@ -3478,6 +4992,7 @@ export default class CorelliumApi { /** * Download activity + * Download activity for a given task * @param {String} taskId Export ID * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ActivityList} */ @@ -3490,6 +5005,7 @@ export default class CorelliumApi { /** + * Enable an exposed port on an instance for device access. * Enable an exposed port on an instance for device access. * @param {String} instanceId Instance ID - uuid * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response @@ -3523,6 +5039,7 @@ export default class CorelliumApi { } /** + * Enable an exposed port on an instance for device access. * Enable an exposed port on an instance for device access. * @param {String} instanceId Instance ID - uuid * @return {Promise} a {@link https://www.promisejs.org/|Promise} @@ -3536,6 +5053,7 @@ export default class CorelliumApi { /** + * Execute Hooks on an instance * Execute Hooks on an instance * @param {String} instanceId Instance ID - uuid * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response @@ -3569,6 +5087,7 @@ export default class CorelliumApi { } /** + * Execute Hooks on an instance * Execute Hooks on an instance * @param {String} instanceId Instance ID - uuid * @return {Promise} a {@link https://www.promisejs.org/|Promise} @@ -3582,6 +5101,7 @@ export default class CorelliumApi { /** + * Get export task status * Get export task status * @param {String} taskId Export ID * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/ActivityList} and HTTP response @@ -3615,6 +5135,7 @@ export default class CorelliumApi { } /** + * Get export task status * Get export task status * @param {String} taskId Export ID * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ActivityList} @@ -3628,6 +5149,7 @@ export default class CorelliumApi { /** + * Get all export tasks for user * Get all export tasks for user * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/ActivityList} and HTTP response */ @@ -3655,6 +5177,7 @@ export default class CorelliumApi { } /** + * Get all export tasks for user * Get all export tasks for user * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ActivityList} */ @@ -3666,7 +5189,103 @@ export default class CorelliumApi { } + /** + * Get Cluster Snapshot + * Get Cluster Snapshot + * @param {String} snapshotId Snapshot ID - uuid + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/ClusterSnapshot} and HTTP response + */ + v1GetClusterSnapshotWithHttpInfo(snapshotId) { + let postBody = null; + // verify the required parameter 'snapshotId' is set + if (snapshotId === undefined || snapshotId === null) { + throw new Error("Missing the required parameter 'snapshotId' when calling v1GetClusterSnapshot"); + } + + let pathParams = { + 'snapshotId': snapshotId + }; + let queryParams = { + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['BearerAuth']; + let contentTypes = []; + let accepts = ['application/json']; + let returnType = ClusterSnapshot; + return this.apiClient.callApi( + '/v1/cluster/snapshots/{snapshotId}', 'GET', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null + ); + } + + /** + * Get Cluster Snapshot + * Get Cluster Snapshot + * @param {String} snapshotId Snapshot ID - uuid + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ClusterSnapshot} + */ + v1GetClusterSnapshot(snapshotId) { + return this.v1GetClusterSnapshotWithHttpInfo(snapshotId) + .then(function(response_and_data) { + return response_and_data.data; + }); + } + + + /** + * Get Cluster Snapshots + * Get Cluster Snapshots + * @param {Object} opts Optional parameters + * @param {Object.} [request] + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/SnapshotList} and HTTP response + */ + v1GetClusterSnapshotsWithHttpInfo(opts) { + opts = opts || {}; + let postBody = null; + + let pathParams = { + }; + let queryParams = { + 'request': opts['request'] + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['BearerAuth']; + let contentTypes = []; + let accepts = ['application/json']; + let returnType = SnapshotList; + return this.apiClient.callApi( + '/v1/cluster/snapshots', 'GET', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null + ); + } + + /** + * Get Cluster Snapshots + * Get Cluster Snapshots + * @param {Object} opts Optional parameters + * @param {Object.} opts.request + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/SnapshotList} + */ + v1GetClusterSnapshots(opts) { + return this.v1GetClusterSnapshotsWithHttpInfo(opts) + .then(function(response_and_data) { + return response_and_data.data; + }); + } + + /** + * Get all configs * Get all configs * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/ConfigResponse} and HTTP response */ @@ -3694,6 +5313,7 @@ export default class CorelliumApi { } /** + * Get all configs * Get all configs * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ConfigResponse} */ @@ -3706,6 +5326,7 @@ export default class CorelliumApi { /** + * Return all configured auth providers for a domain (including globally configured providers) * Return all configured auth providers for a domain (including globally configured providers) * @param {String} domainId Domain ID - uuid * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Array.} and HTTP response @@ -3739,6 +5360,7 @@ export default class CorelliumApi { } /** + * Return all configured auth providers for a domain (including globally configured providers) * Return all configured auth providers for a domain (including globally configured providers) * @param {String} domainId Domain ID - uuid * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Array.} @@ -3752,6 +5374,7 @@ export default class CorelliumApi { /** + * Get hypervisor hook by id * Get hypervisor hook by id * @param {String} hookId Hook Id * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/Hook} and HTTP response @@ -3785,6 +5408,7 @@ export default class CorelliumApi { } /** + * Get hypervisor hook by id * Get hypervisor hook by id * @param {String} hookId Hook Id * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/Hook} @@ -3798,6 +5422,7 @@ export default class CorelliumApi { /** + * Get all hypervisor hooks for Instance * Get all hypervisor hooks for Instance * @param {String} instanceId Instance ID - uuid * @param {Object} opts Optional parameters @@ -3839,6 +5464,7 @@ export default class CorelliumApi { } /** + * Get all hypervisor hooks for Instance * Get all hypervisor hooks for Instance * @param {String} instanceId Instance ID - uuid * @param {Object} opts Optional parameters @@ -3856,6 +5482,7 @@ export default class CorelliumApi { /** + * Get Image Metadata * Get Image Metadata * @param {String} imageId Image ID - uuid * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/Image} and HTTP response @@ -3889,6 +5516,7 @@ export default class CorelliumApi { } /** + * Get Image Metadata * Get Image Metadata * @param {String} imageId Image ID - uuid * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/Image} @@ -3902,6 +5530,7 @@ export default class CorelliumApi { /** + * Get all Images Metadata * Get all Images Metadata * @param {Object} opts Optional parameters * @param {String} [project] Optionally filter by project - uuid @@ -3933,6 +5562,7 @@ export default class CorelliumApi { } /** + * Get all Images Metadata * Get all Images Metadata * @param {Object} opts Optional parameters * @param {String} opts.project Optionally filter by project - uuid @@ -3946,7 +5576,56 @@ export default class CorelliumApi { } + /** + * Query install firmware request status. + * Returns the status of an install firmware request. + * @param {String} taskId Task ID - uuid + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/InstallFirmwareResponse} and HTTP response + */ + v1GetInstallFirmwareStatusWithHttpInfo(taskId) { + let postBody = null; + // verify the required parameter 'taskId' is set + if (taskId === undefined || taskId === null) { + throw new Error("Missing the required parameter 'taskId' when calling v1GetInstallFirmwareStatus"); + } + + let pathParams = { + 'taskId': taskId + }; + let queryParams = { + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['BearerAuth']; + let contentTypes = []; + let accepts = ['application/json']; + let returnType = InstallFirmwareResponse; + return this.apiClient.callApi( + '/v1/images/install-firmware/{taskId}', 'GET', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null + ); + } + + /** + * Query install firmware request status. + * Returns the status of an install firmware request. + * @param {String} taskId Task ID - uuid + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/InstallFirmwareResponse} + */ + v1GetInstallFirmwareStatus(taskId) { + return this.v1GetInstallFirmwareStatusWithHttpInfo(taskId) + .then(function(response_and_data) { + return response_and_data.data; + }); + } + + /** + * Get Instance * Get Instance * @param {String} instanceId Instance ID * @param {Object} opts Optional parameters @@ -3984,6 +5663,7 @@ export default class CorelliumApi { } /** + * Get Instance * Get Instance * @param {String} instanceId Instance ID * @param {Object} opts Optional parameters @@ -3999,6 +5679,7 @@ export default class CorelliumApi { /** + * Get console websocket URL * Get console websocket URL * @param {String} instanceId Instance ID - uuid * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/InstanceConsoleEndpoint} and HTTP response @@ -4032,6 +5713,7 @@ export default class CorelliumApi { } /** + * Get console websocket URL * Get console websocket URL * @param {String} instanceId Instance ID - uuid * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/InstanceConsoleEndpoint} @@ -4045,6 +5727,7 @@ export default class CorelliumApi { /** + * Get Console Log * Get Console Log * @param {String} instanceId Instance ID - uuid * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link String} and HTTP response @@ -4078,6 +5761,7 @@ export default class CorelliumApi { } /** + * Get Console Log * Get Console Log * @param {String} instanceId Instance ID - uuid * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link String} @@ -4091,6 +5775,7 @@ export default class CorelliumApi { /** + * Get Instance GPIOs * Get Instance GPIOs * @param {String} instanceId Instance ID - uuid * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GpiosState} and HTTP response @@ -4124,6 +5809,7 @@ export default class CorelliumApi { } /** + * Get Instance GPIOs * Get Instance GPIOs * @param {String} instanceId Instance ID - uuid * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GpiosState} @@ -4137,6 +5823,7 @@ export default class CorelliumApi { /** + * Get Panics * Get Panics * @param {String} instanceId Instance ID - uuid * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Array.} and HTTP response @@ -4170,6 +5857,7 @@ export default class CorelliumApi { } /** + * Get Panics * Get Panics * @param {String} instanceId Instance ID - uuid * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Array.} @@ -4183,6 +5871,7 @@ export default class CorelliumApi { /** + * Get Instance Peripherals * Get Instance Peripherals * @param {String} instanceId Instance ID - uuid * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/PeripheralsData} and HTTP response @@ -4216,6 +5905,7 @@ export default class CorelliumApi { } /** + * Get Instance Peripherals * Get Instance Peripherals * @param {String} instanceId Instance ID - uuid * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/PeripheralsData} @@ -4229,6 +5919,7 @@ export default class CorelliumApi { /** + * Get Instance Screenshot * Get Instance Screenshot * @param {String} instanceId Instance ID - uuid * @param {module:model/String} format New peripherals state @@ -4272,6 +5963,7 @@ export default class CorelliumApi { } /** + * Get Instance Screenshot * Get Instance Screenshot * @param {String} instanceId Instance ID - uuid * @param {module:model/String} format New peripherals state @@ -4288,6 +5980,7 @@ export default class CorelliumApi { /** + * Get Instance Snapshot * Get Instance Snapshot * @param {String} instanceId Instance ID - uuid * @param {String} snapshotId Snapshot ID - uuid @@ -4327,6 +6020,7 @@ export default class CorelliumApi { } /** + * Get Instance Snapshot * Get Instance Snapshot * @param {String} instanceId Instance ID - uuid * @param {String} snapshotId Snapshot ID - uuid @@ -4341,6 +6035,7 @@ export default class CorelliumApi { /** + * Get Instance Snapshots * Get Instance Snapshots * @param {String} instanceId Instance ID - uuid * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Array.} and HTTP response @@ -4374,6 +6069,7 @@ export default class CorelliumApi { } /** + * Get Instance Snapshots * Get Instance Snapshots * @param {String} instanceId Instance ID - uuid * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Array.} @@ -4387,6 +6083,7 @@ export default class CorelliumApi { /** + * Get Instances * Get Instances * @param {Object} opts Optional parameters * @param {String} [name] Optionally filter by instance name @@ -4420,6 +6117,7 @@ export default class CorelliumApi { } /** + * Get Instances * Get Instances * @param {Object} opts Optional parameters * @param {String} opts.name Optionally filter by instance name @@ -4435,6 +6133,7 @@ export default class CorelliumApi { /** + * Get Software for Model * Get Software for Model * @param {String} model Model to list available software for * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Array.} and HTTP response @@ -4468,6 +6167,7 @@ export default class CorelliumApi { } /** + * Get Software for Model * Get Software for Model * @param {String} model Model to list available software for * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Array.} @@ -4481,6 +6181,7 @@ export default class CorelliumApi { /** + * Get Supported Models * Get Supported Models * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Array.} and HTTP response */ @@ -4508,6 +6209,7 @@ export default class CorelliumApi { } /** + * Get Supported Models * Get Supported Models * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Array.} */ @@ -4568,6 +6270,7 @@ export default class CorelliumApi { /** + * Get a Project * Get a Project * @param {String} projectId Project ID - uuid * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/Project} and HTTP response @@ -4601,6 +6304,7 @@ export default class CorelliumApi { } /** + * Get a Project * Get a Project * @param {String} projectId Project ID - uuid * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/Project} @@ -4614,6 +6318,7 @@ export default class CorelliumApi { /** + * Get Instances in Project * Get Instances in Project * @param {String} projectId Project ID - uuid * @param {Object} opts Optional parameters @@ -4653,6 +6358,7 @@ export default class CorelliumApi { } /** + * Get Instances in Project * Get Instances in Project * @param {String} projectId Project ID - uuid * @param {Object} opts Optional parameters @@ -4669,6 +6375,7 @@ export default class CorelliumApi { /** + * Get Project Authorized Keys * Get Project Authorized Keys * @param {String} projectId Project ID - uuid * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Array.} and HTTP response @@ -4702,6 +6409,7 @@ export default class CorelliumApi { } /** + * Get Project Authorized Keys * Get Project Authorized Keys * @param {String} projectId Project ID - uuid * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Array.} @@ -4715,6 +6423,7 @@ export default class CorelliumApi { /** + * Retrieve the network connection log for a project * Retrieve the network connection log for a project * @param {String} projectId Project ID (must be a valid UUID) * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link String} and HTTP response @@ -4748,6 +6457,7 @@ export default class CorelliumApi { } /** + * Retrieve the network connection log for a project * Retrieve the network connection log for a project * @param {String} projectId Project ID (must be a valid UUID) * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link String} @@ -4761,6 +6471,7 @@ export default class CorelliumApi { /** + * Retrieve the network connection status for a project * Retrieve the network connection status for a project * @param {String} projectId Project ID - uuid * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/NetworkStatusResponse} and HTTP response @@ -4794,6 +6505,7 @@ export default class CorelliumApi { } /** + * Retrieve the network connection status for a project * Retrieve the network connection status for a project * @param {String} projectId Project ID - uuid * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/NetworkStatusResponse} @@ -4837,7 +6549,7 @@ export default class CorelliumApi { let authNames = ['BearerAuth']; let contentTypes = []; - let accepts = ['application/x-openvpn-profile', 'application/json']; + let accepts = ['application/json']; let returnType = 'String'; return this.apiClient.callApi( '/v1/projects/{projectId}/vpnconfig/{format}', 'GET', @@ -4862,6 +6574,7 @@ export default class CorelliumApi { /** + * Get Projects * Get Projects * @param {Object} opts Optional parameters * @param {String} [name] Filter by project name @@ -4895,6 +6608,7 @@ export default class CorelliumApi { } /** + * Get Projects * Get Projects * @param {Object} opts Optional parameters * @param {String} opts.name Filter by project name @@ -4910,9 +6624,10 @@ export default class CorelliumApi { /** + * Send Password Reset Link Info * Send Password Reset Link Info * @param {String} token Reset token - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Object} and HTTP response + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/ResetLinkInfoReturn} and HTTP response */ v1GetResetLinkInfoWithHttpInfo(token) { let postBody = null; @@ -4934,7 +6649,7 @@ export default class CorelliumApi { let authNames = []; let contentTypes = []; let accepts = ['application/json']; - let returnType = Object; + let returnType = ResetLinkInfoReturn; return this.apiClient.callApi( '/v1/users/reset-link-info', 'GET', pathParams, queryParams, headerParams, formParams, postBody, @@ -4943,9 +6658,10 @@ export default class CorelliumApi { } /** + * Send Password Reset Link Info * Send Password Reset Link Info * @param {String} token Reset token - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Object} + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/ResetLinkInfoReturn} */ v1GetResetLinkInfo(token) { return this.v1GetResetLinkInfoWithHttpInfo(token) @@ -4956,19 +6672,14 @@ export default class CorelliumApi { /** - * Get service provider metadata xml from an auth provider - * @param {String} providerId Provider ID - uuid - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Object} and HTTP response + * Fetch shared snapshots + * Fetch snapshots shared with and shared by the requesting user + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/UserSnapshots} and HTTP response */ - v1GetServiceProviderMetadataWithHttpInfo(providerId) { + v1GetSharedSnapshotsWithHttpInfo() { let postBody = null; - // verify the required parameter 'providerId' is set - if (providerId === undefined || providerId === null) { - throw new Error("Missing the required parameter 'providerId' when calling v1GetServiceProviderMetadata"); - } let pathParams = { - 'providerId': providerId }; let queryParams = { }; @@ -4977,24 +6688,24 @@ export default class CorelliumApi { let formParams = { }; - let authNames = []; + let authNames = ['BearerAuth']; let contentTypes = []; let accepts = ['application/json']; - let returnType = Object; + let returnType = UserSnapshots; return this.apiClient.callApi( - '/v1/auth/providers/:providerId/spmetadata', 'GET', + '/v1/snapshots/shared', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null ); } /** - * Get service provider metadata xml from an auth provider - * @param {String} providerId Provider ID - uuid - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Object} + * Fetch shared snapshots + * Fetch snapshots shared with and shared by the requesting user + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/UserSnapshots} */ - v1GetServiceProviderMetadata(providerId) { - return this.v1GetServiceProviderMetadataWithHttpInfo(providerId) + v1GetSharedSnapshots() { + return this.v1GetSharedSnapshotsWithHttpInfo() .then(function(response_and_data) { return response_and_data.data; }); @@ -5002,14 +6713,20 @@ export default class CorelliumApi { /** - * Fetch shared snapshots - * Fetch snapshots shared with and shared by the requesting user - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/UserSnapshots} and HTTP response + * Get Snapshot + * Get Snapshot + * @param {String} snapshotId Snapshot ID - uuid + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/Snapshot} and HTTP response */ - v1GetSharedSnapshotsWithHttpInfo() { + v1GetSnapshotWithHttpInfo(snapshotId) { let postBody = null; + // verify the required parameter 'snapshotId' is set + if (snapshotId === undefined || snapshotId === null) { + throw new Error("Missing the required parameter 'snapshotId' when calling v1GetSnapshot"); + } let pathParams = { + 'snapshotId': snapshotId }; let queryParams = { }; @@ -5021,21 +6738,22 @@ export default class CorelliumApi { let authNames = ['BearerAuth']; let contentTypes = []; let accepts = ['application/json']; - let returnType = UserSnapshots; + let returnType = Snapshot; return this.apiClient.callApi( - '/v1/snapshots/shared', 'GET', + '/v1/snapshots/{snapshotId}', 'GET', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null ); } /** - * Fetch shared snapshots - * Fetch snapshots shared with and shared by the requesting user - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/UserSnapshots} + * Get Snapshot + * Get Snapshot + * @param {String} snapshotId Snapshot ID - uuid + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/Snapshot} */ - v1GetSharedSnapshots() { - return this.v1GetSharedSnapshotsWithHttpInfo() + v1GetSnapshot(snapshotId) { + return this.v1GetSnapshotWithHttpInfo(snapshotId) .then(function(response_and_data) { return response_and_data.data; }); @@ -5043,19 +6761,19 @@ export default class CorelliumApi { /** - * Get Snapshot - * @param {String} snapshotId Snapshot ID - uuid - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/Snapshot} and HTTP response + * Installs a firmware for cluster-wide use + * Takes an uploaded firmware image and installs it for cluster-wide use. The firmware is then removed from Images. In order to install a firmware, you need to follow a 4-step process. First, POST /v1/images/ with { name: string, type: 'fw' } using content-type application/json to acquire an imageId. Second, upload the firmware file via a multipart/form-data POST to /v1/images/:imageId. Third, POST /v1/images/install-firmware with { imageId: string; filename: string } using content-type application/json to acquire a taskId. The 'filename' must be an exact match for the filename in the firmware service that you're uploading this image for. Fourth, you can poll the state of the installation via GET /v1/images/install-firmware/:taskId. + * @param {module:model/InstallFirmwareRequest} installFirmwareRequest User data + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/InstallFirmwareResponse} and HTTP response */ - v1GetSnapshotWithHttpInfo(snapshotId) { - let postBody = null; - // verify the required parameter 'snapshotId' is set - if (snapshotId === undefined || snapshotId === null) { - throw new Error("Missing the required parameter 'snapshotId' when calling v1GetSnapshot"); + v1InstallFirmwareWithHttpInfo(installFirmwareRequest) { + let postBody = installFirmwareRequest; + // verify the required parameter 'installFirmwareRequest' is set + if (installFirmwareRequest === undefined || installFirmwareRequest === null) { + throw new Error("Missing the required parameter 'installFirmwareRequest' when calling v1InstallFirmware"); } let pathParams = { - 'snapshotId': snapshotId }; let queryParams = { }; @@ -5065,23 +6783,71 @@ export default class CorelliumApi { }; let authNames = ['BearerAuth']; - let contentTypes = []; + let contentTypes = ['application/json']; + let accepts = ['application/json']; + let returnType = InstallFirmwareResponse; + return this.apiClient.callApi( + '/v1/images/install-firmware', 'POST', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null + ); + } + + /** + * Installs a firmware for cluster-wide use + * Takes an uploaded firmware image and installs it for cluster-wide use. The firmware is then removed from Images. In order to install a firmware, you need to follow a 4-step process. First, POST /v1/images/ with { name: string, type: 'fw' } using content-type application/json to acquire an imageId. Second, upload the firmware file via a multipart/form-data POST to /v1/images/:imageId. Third, POST /v1/images/install-firmware with { imageId: string; filename: string } using content-type application/json to acquire a taskId. The 'filename' must be an exact match for the filename in the firmware service that you're uploading this image for. Fourth, you can poll the state of the installation via GET /v1/images/install-firmware/:taskId. + * @param {module:model/InstallFirmwareRequest} installFirmwareRequest User data + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/InstallFirmwareResponse} + */ + v1InstallFirmware(installFirmwareRequest) { + return this.v1InstallFirmwareWithHttpInfo(installFirmwareRequest) + .then(function(response_and_data) { + return response_and_data.data; + }); + } + + + /** + * Installs firmware assets for cluster-wide use + * Takes an uploaded firmware assets blob image and installs it for cluster-wide use. The image is then removed from Images. In order to install a firmware, you need to follow a 4-step process. First, POST /v1/images/ with { name: string, type: 'fwasset' } using content-type application/json to acquire an imageId. name should be something like 'fcs-keys.json' Second, upload the firmware file via a multipart/form-data POST to /v1/images/:imageId. Third, POST /v1/images/install-firmware-assets with { imageId: string; } using content-type application/json to acquire a taskId. Fourth, you can poll the state of the installation via GET /v1/images/install-firmware-assets/:taskId. + * @param {module:model/InstallFirmwareAssetsRequest} installFirmwareAssetsRequest User data + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/InstallFirmwareAssetsResponse} and HTTP response + */ + v1InstallFirmwareAssetsWithHttpInfo(installFirmwareAssetsRequest) { + let postBody = installFirmwareAssetsRequest; + // verify the required parameter 'installFirmwareAssetsRequest' is set + if (installFirmwareAssetsRequest === undefined || installFirmwareAssetsRequest === null) { + throw new Error("Missing the required parameter 'installFirmwareAssetsRequest' when calling v1InstallFirmwareAssets"); + } + + let pathParams = { + }; + let queryParams = { + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['BearerAuth']; + let contentTypes = ['application/json']; let accepts = ['application/json']; - let returnType = Snapshot; + let returnType = InstallFirmwareAssetsResponse; return this.apiClient.callApi( - '/v1/snapshots/{snapshotId}', 'GET', + '/v1/images/install-firmware-assets', 'POST', pathParams, queryParams, headerParams, formParams, postBody, authNames, contentTypes, accepts, returnType, null ); } /** - * Get Snapshot - * @param {String} snapshotId Snapshot ID - uuid - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/Snapshot} + * Installs firmware assets for cluster-wide use + * Takes an uploaded firmware assets blob image and installs it for cluster-wide use. The image is then removed from Images. In order to install a firmware, you need to follow a 4-step process. First, POST /v1/images/ with { name: string, type: 'fwasset' } using content-type application/json to acquire an imageId. name should be something like 'fcs-keys.json' Second, upload the firmware file via a multipart/form-data POST to /v1/images/:imageId. Third, POST /v1/images/install-firmware-assets with { imageId: string; } using content-type application/json to acquire a taskId. Fourth, you can poll the state of the installation via GET /v1/images/install-firmware-assets/:taskId. + * @param {module:model/InstallFirmwareAssetsRequest} installFirmwareAssetsRequest User data + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/InstallFirmwareAssetsResponse} */ - v1GetSnapshot(snapshotId) { - return this.v1GetSnapshotWithHttpInfo(snapshotId) + v1InstallFirmwareAssets(installFirmwareAssetsRequest) { + return this.v1InstallFirmwareAssetsWithHttpInfo(installFirmwareAssetsRequest) .then(function(response_and_data) { return response_and_data.data; }); @@ -5143,6 +6909,7 @@ export default class CorelliumApi { /** + * Download a netdump pcap file * Download a netdump pcap file * @param {String} instanceId Instance ID - uuid * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link File} and HTTP response @@ -5176,6 +6943,7 @@ export default class CorelliumApi { } /** + * Download a netdump pcap file * Download a netdump pcap file * @param {String} instanceId Instance ID - uuid * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link File} @@ -5235,6 +7003,7 @@ export default class CorelliumApi { /** + * Get Kernel extension ranges * Get Kernel extension ranges * @param {String} instanceId Instance ID - uuid * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Array.} and HTTP response @@ -5268,6 +7037,7 @@ export default class CorelliumApi { } /** + * Get Kernel extension ranges * Get Kernel extension ranges * @param {String} instanceId Instance ID - uuid * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Array.} @@ -5413,6 +7183,80 @@ export default class CorelliumApi { /** + * List Storage Files + * List files from attached storage devices. Looks up the storage device by identifier, then lists filesystem contents at the given path within the device's mount point. This endpoint is available to all authenticated users. + * @param {String} id Storage device identifier (MediaStore identifier) + * @param {String} path Path within the storage device to list + * @param {Object} opts Optional parameters + * @param {Number} [limit] Maximum number of results to return (1–1000, default: 100) + * @param {Number} [offset] Number of results to skip (default: 0) + * @param {String} [name] Filter by name (case insensitive exact match, comma separated for multiple values) + * @param {String} [type] Filter by type (case insensitive partial match, e.g. \"file\" or \"dir\") + * @param {String} [sort] Sort order (e.g., 'name', '-name', 'type,-size,-lastModifiedTime'). Prefix with '-' for descending. + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Object} and HTTP response + */ + v1ListStorageFilesWithHttpInfo(id, path, opts) { + opts = opts || {}; + let postBody = null; + // verify the required parameter 'id' is set + if (id === undefined || id === null) { + throw new Error("Missing the required parameter 'id' when calling v1ListStorageFiles"); + } + // verify the required parameter 'path' is set + if (path === undefined || path === null) { + throw new Error("Missing the required parameter 'path' when calling v1ListStorageFiles"); + } + + let pathParams = { + 'id': id, + 'path': path + }; + let queryParams = { + 'limit': opts['limit'], + 'offset': opts['offset'], + 'name': opts['name'], + 'type': opts['type'], + 'sort': opts['sort'] + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['BearerAuth']; + let contentTypes = []; + let accepts = ['application/json']; + let returnType = Object; + return this.apiClient.callApi( + '/v1/storage/{id}/files/{path}', 'GET', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null + ); + } + + /** + * List Storage Files + * List files from attached storage devices. Looks up the storage device by identifier, then lists filesystem contents at the given path within the device's mount point. This endpoint is available to all authenticated users. + * @param {String} id Storage device identifier (MediaStore identifier) + * @param {String} path Path within the storage device to list + * @param {Object} opts Optional parameters + * @param {Number} opts.limit Maximum number of results to return (1–1000, default: 100) + * @param {Number} opts.offset Number of results to skip (default: 0) + * @param {String} opts.name Filter by name (case insensitive exact match, comma separated for multiple values) + * @param {String} opts.type Filter by type (case insensitive partial match, e.g. \"file\" or \"dir\") + * @param {String} opts.sort Sort order (e.g., 'name', '-name', 'type,-size,-lastModifiedTime'). Prefix with '-' for descending. + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Object} + */ + v1ListStorageFiles(id, path, opts) { + return this.v1ListStorageFilesWithHttpInfo(id, path, opts) + .then(function(response_and_data) { + return response_and_data.data; + }); + } + + + /** + * Get Running Threads (CoreTrace) * Get Running Threads (CoreTrace) * @param {String} instanceId Instance ID - uuid * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Array.} and HTTP response @@ -5446,6 +7290,7 @@ export default class CorelliumApi { } /** + * Get Running Threads (CoreTrace) * Get Running Threads (CoreTrace) * @param {String} instanceId Instance ID - uuid * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Array.} @@ -5459,6 +7304,7 @@ export default class CorelliumApi { /** + * Start playing media * Start playing media * @param {String} instanceId Instance ID - uuid * @param {module:model/MediaPlayBody} mediaPlayBody Request Body @@ -5497,6 +7343,7 @@ export default class CorelliumApi { } /** + * Start playing media * Start playing media * @param {String} instanceId Instance ID - uuid * @param {module:model/MediaPlayBody} mediaPlayBody Request Body @@ -5511,6 +7358,7 @@ export default class CorelliumApi { /** + * Stop playing media * Stop playing media * @param {String} instanceId Instance ID - uuid * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response @@ -5544,6 +7392,7 @@ export default class CorelliumApi { } /** + * Stop playing media * Stop playing media * @param {String} instanceId Instance ID - uuid * @return {Promise} a {@link https://www.promisejs.org/|Promise} @@ -5563,7 +7412,7 @@ export default class CorelliumApi { * @param {module:model/UpdateNetworkConnectionOptions} updateNetworkConnectionOptions Network Connection Options * @param {Object} opts Optional parameters * @param {Boolean} [force] Force deletion (true only or not present) - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/NetworkConnection} and HTTP response */ v1PartialUpdateNetworkConnectionWithHttpInfo(id, updateNetworkConnectionOptions, opts) { opts = opts || {}; @@ -5590,8 +7439,8 @@ export default class CorelliumApi { let authNames = ['BearerAuth']; let contentTypes = ['application/json']; - let accepts = []; - let returnType = null; + let accepts = ['application/json']; + let returnType = NetworkConnection; return this.apiClient.callApi( '/v1/network/connections/{id}', 'PATCH', pathParams, queryParams, headerParams, formParams, postBody, @@ -5606,7 +7455,7 @@ export default class CorelliumApi { * @param {module:model/UpdateNetworkConnectionOptions} updateNetworkConnectionOptions Network Connection Options * @param {Object} opts Optional parameters * @param {Boolean} opts.force Force deletion (true only or not present) - * @return {Promise} a {@link https://www.promisejs.org/|Promise} + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/NetworkConnection} */ v1PartialUpdateNetworkConnection(id, updateNetworkConnectionOptions, opts) { return this.v1PartialUpdateNetworkConnectionWithHttpInfo(id, updateNetworkConnectionOptions, opts) @@ -5617,6 +7466,7 @@ export default class CorelliumApi { /** + * Update Instance * Update Instance * @param {String} instanceId Instance ID * @param {module:model/PatchInstanceOptions} patchInstanceOptions @@ -5655,6 +7505,7 @@ export default class CorelliumApi { } /** + * Update Instance * Update Instance * @param {String} instanceId Instance ID * @param {module:model/PatchInstanceOptions} patchInstanceOptions @@ -5669,6 +7520,59 @@ export default class CorelliumApi { /** + * Update Instance Read Only + * @param {String} instanceId Instance ID + * @param {module:model/PatchInstanceReadOnly} patchInstanceReadOnly + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/Instance} and HTTP response + */ + v1PatchInstanceReadOnlyWithHttpInfo(instanceId, patchInstanceReadOnly) { + let postBody = patchInstanceReadOnly; + // verify the required parameter 'instanceId' is set + if (instanceId === undefined || instanceId === null) { + throw new Error("Missing the required parameter 'instanceId' when calling v1PatchInstanceReadOnly"); + } + // verify the required parameter 'patchInstanceReadOnly' is set + if (patchInstanceReadOnly === undefined || patchInstanceReadOnly === null) { + throw new Error("Missing the required parameter 'patchInstanceReadOnly' when calling v1PatchInstanceReadOnly"); + } + + let pathParams = { + 'instanceId': instanceId + }; + let queryParams = { + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['BearerAuth']; + let contentTypes = ['application/json']; + let accepts = ['application/json']; + let returnType = Instance; + return this.apiClient.callApi( + '/v1/instances/{instanceId}/read-only', 'PATCH', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null + ); + } + + /** + * Update Instance Read Only + * @param {String} instanceId Instance ID + * @param {module:model/PatchInstanceReadOnly} patchInstanceReadOnly + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/Instance} + */ + v1PatchInstanceReadOnly(instanceId, patchInstanceReadOnly) { + return this.v1PatchInstanceReadOnlyWithHttpInfo(instanceId, patchInstanceReadOnly) + .then(function(response_and_data) { + return response_and_data.data; + }); + } + + + /** + * Pause an Instance * Pause an Instance * @param {String} instanceId Instance ID - uuid * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response @@ -5702,6 +7606,7 @@ export default class CorelliumApi { } /** + * Pause an Instance * Pause an Instance * @param {String} instanceId Instance ID - uuid * @return {Promise} a {@link https://www.promisejs.org/|Promise} @@ -5810,6 +7715,7 @@ export default class CorelliumApi { /** + * Reboot an Instance * Reboot an Instance * @param {String} instanceId Instance ID - uuid * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response @@ -5843,6 +7749,7 @@ export default class CorelliumApi { } /** + * Reboot an Instance * Reboot an Instance * @param {String} instanceId Instance ID - uuid * @return {Promise} a {@link https://www.promisejs.org/|Promise} @@ -5856,6 +7763,7 @@ export default class CorelliumApi { /** + * Delete Project Authorized Key * Delete Project Authorized Key * @param {String} projectId Project ID - uuid * @param {String} keyId Key ID - uuid @@ -5895,6 +7803,7 @@ export default class CorelliumApi { } /** + * Delete Project Authorized Key * Delete Project Authorized Key * @param {String} projectId Project ID - uuid * @param {String} keyId Key ID - uuid @@ -5913,7 +7822,7 @@ export default class CorelliumApi { * This endpoint is available for Enterprise accounts only * @param {String} projectId Project ID - uuid * @param {String} teamId Team ID - uuid - * @param {String} roleId Role ID - uuid + * @param {String} roleId Role ID * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response */ v1RemoveTeamRoleFromProjectWithHttpInfo(projectId, teamId, roleId) { @@ -5959,7 +7868,7 @@ export default class CorelliumApi { * This endpoint is available for Enterprise accounts only * @param {String} projectId Project ID - uuid * @param {String} teamId Team ID - uuid - * @param {String} roleId Role ID - uuid + * @param {String} roleId Role ID * @return {Promise} a {@link https://www.promisejs.org/|Promise} */ v1RemoveTeamRoleFromProject(projectId, teamId, roleId) { @@ -6030,7 +7939,7 @@ export default class CorelliumApi { * This endpoint is available for Enterprise accounts only * @param {String} projectId Project ID - uuid * @param {String} userId User ID - uuid - * @param {String} roleId Role ID - uuid + * @param {String} roleId Role ID * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response */ v1RemoveUserRoleFromProjectWithHttpInfo(projectId, userId, roleId) { @@ -6076,7 +7985,7 @@ export default class CorelliumApi { * This endpoint is available for Enterprise accounts only * @param {String} projectId Project ID - uuid * @param {String} userId User ID - uuid - * @param {String} roleId Role ID - uuid + * @param {String} roleId Role ID * @return {Promise} a {@link https://www.promisejs.org/|Promise} */ v1RemoveUserRoleFromProject(projectId, userId, roleId) { @@ -6088,6 +7997,7 @@ export default class CorelliumApi { /** + * Rename an Instance Snapshot * Rename an Instance Snapshot * @param {String} instanceId Instance ID - uuid * @param {String} snapshotId Snapshot ID - uuid @@ -6132,6 +8042,7 @@ export default class CorelliumApi { } /** + * Rename an Instance Snapshot * Rename an Instance Snapshot * @param {String} instanceId Instance ID - uuid * @param {String} snapshotId Snapshot ID - uuid @@ -6147,6 +8058,7 @@ export default class CorelliumApi { /** + * Reset User Password * Reset User Password * @param {module:model/PasswordResetBody} passwordResetBody application/json * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response @@ -6179,6 +8091,7 @@ export default class CorelliumApi { } /** + * Reset User Password * Reset User Password * @param {module:model/PasswordResetBody} passwordResetBody application/json * @return {Promise} a {@link https://www.promisejs.org/|Promise} @@ -6192,15 +8105,16 @@ export default class CorelliumApi { /** + * Restore backup * Restore backup * @param {String} instanceId Instance ID - uuid * @param {Object} opts Optional parameters - * @param {Object.} [body] Restore backup data + * @param {module:model/RestoreBackupData} [restoreBackupData] Restore backup data * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response */ v1RestoreBackupWithHttpInfo(instanceId, opts) { opts = opts || {}; - let postBody = opts['body']; + let postBody = opts['restoreBackupData']; // verify the required parameter 'instanceId' is set if (instanceId === undefined || instanceId === null) { throw new Error("Missing the required parameter 'instanceId' when calling v1RestoreBackup"); @@ -6228,10 +8142,11 @@ export default class CorelliumApi { } /** + * Restore backup * Restore backup * @param {String} instanceId Instance ID - uuid * @param {Object} opts Optional parameters - * @param {Object.} opts.body Restore backup data + * @param {module:model/RestoreBackupData} opts.restoreBackupData Restore backup data * @return {Promise} a {@link https://www.promisejs.org/|Promise} */ v1RestoreBackup(instanceId, opts) { @@ -6243,6 +8158,7 @@ export default class CorelliumApi { /** + * Restore an Instance Snapshot * Restore an Instance Snapshot * @param {String} instanceId Instance ID - uuid * @param {String} snapshotId Snapshot ID - uuid @@ -6282,6 +8198,7 @@ export default class CorelliumApi { } /** + * Restore an Instance Snapshot * Restore an Instance Snapshot * @param {String} instanceId Instance ID - uuid * @param {String} snapshotId Snapshot ID - uuid @@ -6391,6 +8308,7 @@ export default class CorelliumApi { /** + * Send Password Reset Link * Send Password Reset Link * @param {module:model/ResetLinkBody} resetLinkBody application/json * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response @@ -6423,6 +8341,7 @@ export default class CorelliumApi { } /** + * Send Password Reset Link * Send Password Reset Link * @param {module:model/ResetLinkBody} resetLinkBody application/json * @return {Promise} a {@link https://www.promisejs.org/|Promise} @@ -6436,6 +8355,7 @@ export default class CorelliumApi { /** + * Set Instance GPIOs * Set Instance GPIOs * @param {String} instanceId Instance ID - uuid * @param {module:model/GpiosState} gpiosState New GPIO state @@ -6474,6 +8394,7 @@ export default class CorelliumApi { } /** + * Set Instance GPIOs * Set Instance GPIOs * @param {String} instanceId Instance ID - uuid * @param {module:model/GpiosState} gpiosState New GPIO state @@ -6488,6 +8409,7 @@ export default class CorelliumApi { /** + * Set Instance Peripherals * Set Instance Peripherals * @param {String} instanceId Instance ID - uuid * @param {module:model/PeripheralsData} peripheralsData New peripherals state @@ -6526,6 +8448,7 @@ export default class CorelliumApi { } /** + * Set Instance Peripherals * Set Instance Peripherals * @param {String} instanceId Instance ID - uuid * @param {module:model/PeripheralsData} peripheralsData New peripherals state @@ -6540,6 +8463,7 @@ export default class CorelliumApi { /** + * Set state of Instance * Set state of Instance * @param {String} instanceId Instance ID - uuid * @param {module:model/V1SetStateBody} v1SetStateBody Desired State @@ -6578,6 +8502,7 @@ export default class CorelliumApi { } /** + * Set state of Instance * Set state of Instance * @param {String} instanceId Instance ID - uuid * @param {module:model/V1SetStateBody} v1SetStateBody Desired State @@ -6700,6 +8625,7 @@ export default class CorelliumApi { /** + * Rename a Snapshot * Rename a Snapshot * @param {String} snapshotId Snapshot ID - uuid * @param {module:model/SnapshotCreationOptions} snapshotCreationOptions @@ -6738,6 +8664,7 @@ export default class CorelliumApi { } /** + * Rename a Snapshot * Rename a Snapshot * @param {String} snapshotId Snapshot ID - uuid * @param {module:model/SnapshotCreationOptions} snapshotCreationOptions @@ -6752,6 +8679,7 @@ export default class CorelliumApi { /** + * Start CoreTrace on an instance * Start CoreTrace on an instance * @param {String} instanceId Instance ID - uuid * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response @@ -6785,6 +8713,7 @@ export default class CorelliumApi { } /** + * Start CoreTrace on an instance * Start CoreTrace on an instance * @param {String} instanceId Instance ID - uuid * @return {Promise} a {@link https://www.promisejs.org/|Promise} @@ -6798,6 +8727,7 @@ export default class CorelliumApi { /** + * Start HyperTrace on an instance * Start HyperTrace on an instance * @param {String} instanceId Instance ID - uuid * @param {module:model/BtraceEnableOptions} btraceEnableOptions @@ -6836,6 +8766,7 @@ export default class CorelliumApi { } /** + * Start HyperTrace on an instance * Start HyperTrace on an instance * @param {String} instanceId Instance ID - uuid * @param {module:model/BtraceEnableOptions} btraceEnableOptions @@ -6850,6 +8781,7 @@ export default class CorelliumApi { /** + * Start an Instance * Start an Instance * @param {String} instanceId Instance ID - uuid * @param {Object} opts Optional parameters @@ -6886,6 +8818,7 @@ export default class CorelliumApi { } /** + * Start an Instance * Start an Instance * @param {String} instanceId Instance ID - uuid * @param {Object} opts Optional parameters @@ -6901,6 +8834,7 @@ export default class CorelliumApi { /** + * Start Enhanced Network Monitor on an instance. * Start Enhanced Network Monitor on an instance. * @param {String} instanceId Instance ID - uuid * @param {Object} opts Optional parameters @@ -6937,6 +8871,7 @@ export default class CorelliumApi { } /** + * Start Enhanced Network Monitor on an instance. * Start Enhanced Network Monitor on an instance. * @param {String} instanceId Instance ID - uuid * @param {Object} opts Optional parameters @@ -6952,6 +8887,7 @@ export default class CorelliumApi { /** + * Start Network Monitor on an instance. * Start Network Monitor on an instance. * @param {String} instanceId Instance ID - uuid * @param {Object} opts Optional parameters @@ -6988,6 +8924,7 @@ export default class CorelliumApi { } /** + * Start Network Monitor on an instance. * Start Network Monitor on an instance. * @param {String} instanceId Instance ID - uuid * @param {Object} opts Optional parameters @@ -7003,6 +8940,7 @@ export default class CorelliumApi { /** + * Stop CoreTrace on an instance. * Stop CoreTrace on an instance. * @param {String} instanceId Instance ID - uuid * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response @@ -7036,6 +8974,7 @@ export default class CorelliumApi { } /** + * Stop CoreTrace on an instance. * Stop CoreTrace on an instance. * @param {String} instanceId Instance ID - uuid * @return {Promise} a {@link https://www.promisejs.org/|Promise} @@ -7049,6 +8988,7 @@ export default class CorelliumApi { /** + * Stop HyperTrace on an instance. * Stop HyperTrace on an instance. * @param {String} instanceId Instance ID - uuid * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response @@ -7082,6 +9022,7 @@ export default class CorelliumApi { } /** + * Stop HyperTrace on an instance. * Stop HyperTrace on an instance. * @param {String} instanceId Instance ID - uuid * @return {Promise} a {@link https://www.promisejs.org/|Promise} @@ -7095,6 +9036,7 @@ export default class CorelliumApi { /** + * Stop an Instance * Stop an Instance * @param {String} instanceId Instance ID - uuid * @param {Object} opts Optional parameters @@ -7131,6 +9073,7 @@ export default class CorelliumApi { } /** + * Stop an Instance * Stop an Instance * @param {String} instanceId Instance ID - uuid * @param {Object} opts Optional parameters @@ -7146,6 +9089,7 @@ export default class CorelliumApi { /** + * Stop Enhanced Network Monitor on an instance. * Stop Enhanced Network Monitor on an instance. * @param {String} instanceId Instance ID - uuid * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response @@ -7179,6 +9123,7 @@ export default class CorelliumApi { } /** + * Stop Enhanced Network Monitor on an instance. * Stop Enhanced Network Monitor on an instance. * @param {String} instanceId Instance ID - uuid * @return {Promise} a {@link https://www.promisejs.org/|Promise} @@ -7192,6 +9137,7 @@ export default class CorelliumApi { /** + * Stop Network Monitor on an instance. * Stop Network Monitor on an instance. * @param {String} instanceId Instance ID - uuid * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response @@ -7225,6 +9171,7 @@ export default class CorelliumApi { } /** + * Stop Network Monitor on an instance. * Stop Network Monitor on an instance. * @param {String} instanceId Instance ID - uuid * @return {Promise} a {@link https://www.promisejs.org/|Promise} @@ -7237,6 +9184,71 @@ export default class CorelliumApi { } + /** + * Get storage devices + * List all attached storage devices. This endpoint is only available to all authenticated users. + * @param {Object} opts Optional parameters + * @param {Number} [limit] Maximum number of results to return (1–1000, default: 100) + * @param {Number} [offset] Number of results to skip (default: 0) + * @param {String} [identifier] Filter by identifier (comma separated) + * @param {String} [device] Filter by device name (partial match) + * @param {String} [fsType] Filter by filesystem type (comma separated) + * @param {String} [mountPolicy] Filter by mount policy (RO or RW) + * @param {String} [sort] Sort order (e.g. \"device\" or \"-device\") + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/GetStorageResponse} and HTTP response + */ + v1StorageGetWithHttpInfo(opts) { + opts = opts || {}; + let postBody = null; + + let pathParams = { + }; + let queryParams = { + 'limit': opts['limit'], + 'offset': opts['offset'], + 'identifier': opts['identifier'], + 'device': opts['device'], + 'fsType': opts['fsType'], + 'mountPolicy': opts['mountPolicy'], + 'sort': opts['sort'] + }; + let headerParams = { + }; + let formParams = { + }; + + let authNames = ['BearerAuth']; + let contentTypes = []; + let accepts = ['application/json']; + let returnType = GetStorageResponse; + return this.apiClient.callApi( + '/v1/storage', 'GET', + pathParams, queryParams, headerParams, formParams, postBody, + authNames, contentTypes, accepts, returnType, null + ); + } + + /** + * Get storage devices + * List all attached storage devices. This endpoint is only available to all authenticated users. + * @param {Object} opts Optional parameters + * @param {Number} opts.limit Maximum number of results to return (1–1000, default: 100) + * @param {Number} opts.offset Number of results to skip (default: 0) + * @param {String} opts.identifier Filter by identifier (comma separated) + * @param {String} opts.device Filter by device name (partial match) + * @param {String} opts.fsType Filter by filesystem type (comma separated) + * @param {String} opts.mountPolicy Filter by mount policy (RO or RW) + * @param {String} opts.sort Sort order (e.g. \"device\" or \"-device\") + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/GetStorageResponse} + */ + v1StorageGet(opts) { + return this.v1StorageGetWithHttpInfo(opts) + .then(function(response_and_data) { + return response_and_data.data; + }); + } + + /** * Update team * This endpoint is available for Enterprise accounts only @@ -7428,6 +9440,7 @@ export default class CorelliumApi { /** + * Unpause an Instance * Unpause an Instance * @param {String} instanceId Instance ID - uuid * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response @@ -7461,6 +9474,7 @@ export default class CorelliumApi { } /** + * Unpause an Instance * Unpause an Instance * @param {String} instanceId Instance ID - uuid * @return {Promise} a {@link https://www.promisejs.org/|Promise} @@ -7474,6 +9488,7 @@ export default class CorelliumApi { /** + * Update an auth provider for a domain * Update an auth provider for a domain * @param {String} domainId Domain ID - uuid * @param {String} providerId Provider ID - uuid @@ -7518,6 +9533,7 @@ export default class CorelliumApi { } /** + * Update an auth provider for a domain * Update an auth provider for a domain * @param {String} domainId Domain ID - uuid * @param {String} providerId Provider ID - uuid @@ -7533,20 +9549,21 @@ export default class CorelliumApi { /** + * Update an existing hypervisor hook * Update an existing hypervisor hook * @param {String} hookId Hook ID - * @param {module:model/V1CreateHookParameters} v1CreateHookParameters application/json + * @param {module:model/V1UpdateHookParameters} v1UpdateHookParameters application/json * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/Hook} and HTTP response */ - v1UpdateHookWithHttpInfo(hookId, v1CreateHookParameters) { - let postBody = v1CreateHookParameters; + v1UpdateHookWithHttpInfo(hookId, v1UpdateHookParameters) { + let postBody = v1UpdateHookParameters; // verify the required parameter 'hookId' is set if (hookId === undefined || hookId === null) { throw new Error("Missing the required parameter 'hookId' when calling v1UpdateHook"); } - // verify the required parameter 'v1CreateHookParameters' is set - if (v1CreateHookParameters === undefined || v1CreateHookParameters === null) { - throw new Error("Missing the required parameter 'v1CreateHookParameters' when calling v1UpdateHook"); + // verify the required parameter 'v1UpdateHookParameters' is set + if (v1UpdateHookParameters === undefined || v1UpdateHookParameters === null) { + throw new Error("Missing the required parameter 'v1UpdateHookParameters' when calling v1UpdateHook"); } let pathParams = { @@ -7571,13 +9588,14 @@ export default class CorelliumApi { } /** + * Update an existing hypervisor hook * Update an existing hypervisor hook * @param {String} hookId Hook ID - * @param {module:model/V1CreateHookParameters} v1CreateHookParameters application/json + * @param {module:model/V1UpdateHookParameters} v1UpdateHookParameters application/json * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/Hook} */ - v1UpdateHook(hookId, v1CreateHookParameters) { - return this.v1UpdateHookWithHttpInfo(hookId, v1CreateHookParameters) + v1UpdateHook(hookId, v1UpdateHookParameters) { + return this.v1UpdateHookWithHttpInfo(hookId, v1UpdateHookParameters) .then(function(response_and_data) { return response_and_data.data; }); @@ -7591,7 +9609,7 @@ export default class CorelliumApi { * @param {module:model/UpdateNetworkConnectionOptions} updateNetworkConnectionOptions Network Connection Options * @param {Object} opts Optional parameters * @param {Boolean} [force] Force deletion (true only or not present) - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/NetworkConnection} and HTTP response */ v1UpdateNetworkConnectionWithHttpInfo(id, updateNetworkConnectionOptions, opts) { opts = opts || {}; @@ -7618,8 +9636,8 @@ export default class CorelliumApi { let authNames = ['BearerAuth']; let contentTypes = ['application/json']; - let accepts = []; - let returnType = null; + let accepts = ['application/json']; + let returnType = NetworkConnection; return this.apiClient.callApi( '/v1/network/connections/{id}', 'PUT', pathParams, queryParams, headerParams, formParams, postBody, @@ -7634,7 +9652,7 @@ export default class CorelliumApi { * @param {module:model/UpdateNetworkConnectionOptions} updateNetworkConnectionOptions Network Connection Options * @param {Object} opts Optional parameters * @param {Boolean} opts.force Force deletion (true only or not present) - * @return {Promise} a {@link https://www.promisejs.org/|Promise} + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/NetworkConnection} */ v1UpdateNetworkConnection(id, updateNetworkConnectionOptions, opts) { return this.v1UpdateNetworkConnectionWithHttpInfo(id, updateNetworkConnectionOptions, opts) @@ -7645,6 +9663,7 @@ export default class CorelliumApi { /** + * Update a Project * Update a Project * @param {String} projectId Project ID - uuid * @param {module:model/Project} project Updated Project Settings @@ -7683,6 +9702,7 @@ export default class CorelliumApi { } /** + * Update a Project * Update a Project * @param {String} projectId Project ID - uuid * @param {module:model/Project} project Updated Project Settings @@ -7697,6 +9717,7 @@ export default class CorelliumApi { /** + * Change Project Settings * Change Project Settings * @param {String} projectId Project ID - uuid * @param {module:model/ProjectSettings} projectSettings New settings @@ -7735,6 +9756,7 @@ export default class CorelliumApi { } /** + * Change Project Settings * Change Project Settings * @param {String} projectId Project ID - uuid * @param {module:model/ProjectSettings} projectSettings New settings @@ -7750,19 +9772,20 @@ export default class CorelliumApi { /** * Update User + * Update a user. Fields such as `name`, `label`, `password`, and `clusterAdministrator` can be updated. Only users with the Cluster Administrator role can set or modify the `clusterAdministrator` flag. * @param {String} userId userId - uuid - * @param {Object.} body User data - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Object} and HTTP response + * @param {module:model/UserUpdate} userUpdate User data + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response */ - v1UpdateUserWithHttpInfo(userId, body) { - let postBody = body; + v1UpdateUserWithHttpInfo(userId, userUpdate) { + let postBody = userUpdate; // verify the required parameter 'userId' is set if (userId === undefined || userId === null) { throw new Error("Missing the required parameter 'userId' when calling v1UpdateUser"); } - // verify the required parameter 'body' is set - if (body === undefined || body === null) { - throw new Error("Missing the required parameter 'body' when calling v1UpdateUser"); + // verify the required parameter 'userUpdate' is set + if (userUpdate === undefined || userUpdate === null) { + throw new Error("Missing the required parameter 'userUpdate' when calling v1UpdateUser"); } let pathParams = { @@ -7778,7 +9801,7 @@ export default class CorelliumApi { let authNames = ['BearerAuth']; let contentTypes = ['application/json']; let accepts = ['application/json']; - let returnType = Object; + let returnType = null; return this.apiClient.callApi( '/v1/users/{userId}', 'PATCH', pathParams, queryParams, headerParams, formParams, postBody, @@ -7788,12 +9811,13 @@ export default class CorelliumApi { /** * Update User + * Update a user. Fields such as `name`, `label`, `password`, and `clusterAdministrator` can be updated. Only users with the Cluster Administrator role can set or modify the `clusterAdministrator` flag. * @param {String} userId userId - uuid - * @param {Object.} body User data - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Object} + * @param {module:model/UserUpdate} userUpdate User data + * @return {Promise} a {@link https://www.promisejs.org/|Promise} */ - v1UpdateUser(userId, body) { - return this.v1UpdateUserWithHttpInfo(userId, body) + v1UpdateUser(userId, userUpdate) { + return this.v1UpdateUserWithHttpInfo(userId, userUpdate) .then(function(response_and_data) { return response_and_data.data; }); @@ -7801,6 +9825,7 @@ export default class CorelliumApi { /** + * Upgrade iOS version * Upgrade iOS version * @param {String} instanceId * @param {module:model/InstanceUpgradeBody} instanceUpgradeBody @@ -7839,6 +9864,7 @@ export default class CorelliumApi { } /** + * Upgrade iOS version * Upgrade iOS version * @param {String} instanceId * @param {module:model/InstanceUpgradeBody} instanceUpgradeBody @@ -7856,19 +9882,18 @@ export default class CorelliumApi { * Upload Image Data * If the active project has enough remaining quota, updates an Image with the contents of the request body. * @param {String} imageId Image ID - uuid - * @param {String} body Uploaded Image + * @param {Object} opts Optional parameters + * @param {String} [corelliumChecksum] Corellium Checksum of the uploaded firmware + * @param {File} [file] Optionally the actual file * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/Image} and HTTP response */ - v1UploadImageDataWithHttpInfo(imageId, body) { - let postBody = body; + v1UploadImageDataWithHttpInfo(imageId, opts) { + opts = opts || {}; + let postBody = null; // verify the required parameter 'imageId' is set if (imageId === undefined || imageId === null) { throw new Error("Missing the required parameter 'imageId' when calling v1UploadImageData"); } - // verify the required parameter 'body' is set - if (body === undefined || body === null) { - throw new Error("Missing the required parameter 'body' when calling v1UploadImageData"); - } let pathParams = { 'imageId': imageId @@ -7878,10 +9903,12 @@ export default class CorelliumApi { let headerParams = { }; let formParams = { + 'corelliumChecksum': opts['corelliumChecksum'], + 'file': opts['file'] }; let authNames = ['BearerAuth']; - let contentTypes = ['binary']; + let contentTypes = ['multipart/form-data']; let accepts = ['application/json']; let returnType = Image; return this.apiClient.callApi( @@ -7895,11 +9922,13 @@ export default class CorelliumApi { * Upload Image Data * If the active project has enough remaining quota, updates an Image with the contents of the request body. * @param {String} imageId Image ID - uuid - * @param {String} body Uploaded Image + * @param {Object} opts Optional parameters + * @param {String} opts.corelliumChecksum Corellium Checksum of the uploaded firmware + * @param {File} opts.file Optionally the actual file * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/Image} */ - v1UploadImageData(imageId, body) { - return this.v1UploadImageDataWithHttpInfo(imageId, body) + v1UploadImageData(imageId, opts) { + return this.v1UploadImageDataWithHttpInfo(imageId, opts) .then(function(response_and_data) { return response_and_data.data; }); @@ -7907,6 +9936,7 @@ export default class CorelliumApi { /** + * Consent to the current terms and conditions * Consent to the current terms and conditions * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/AgreedAck} and HTTP response */ @@ -7934,6 +9964,7 @@ export default class CorelliumApi { } /** + * Consent to the current terms and conditions * Consent to the current terms and conditions * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/AgreedAck} */ @@ -8038,6 +10069,7 @@ export default class CorelliumApi { /** + * Retrieve the list of allowed domains for all Webplayer sessions * Retrieve the list of allowed domains for all Webplayer sessions * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response */ @@ -8055,7 +10087,7 @@ export default class CorelliumApi { let authNames = ['BearerAuth']; let contentTypes = []; - let accepts = []; + let accepts = ['application/json']; let returnType = null; return this.apiClient.callApi( '/v1/webplayer/allowedDomains', 'GET', @@ -8065,6 +10097,7 @@ export default class CorelliumApi { } /** + * Retrieve the list of allowed domains for all Webplayer sessions * Retrieve the list of allowed domains for all Webplayer sessions * @return {Promise} a {@link https://www.promisejs.org/|Promise} */ @@ -8077,6 +10110,7 @@ export default class CorelliumApi { /** + * Create a new Webplayer Session * Create a new Webplayer Session * @param {module:model/WebPlayerCreateSessionRequest} webPlayerCreateSessionRequest Request Data * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/WebPlayerSession} and HTTP response @@ -8109,6 +10143,7 @@ export default class CorelliumApi { } /** + * Create a new Webplayer Session * Create a new Webplayer Session * @param {module:model/WebPlayerCreateSessionRequest} webPlayerCreateSessionRequest Request Data * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/WebPlayerSession} @@ -8122,9 +10157,10 @@ export default class CorelliumApi { /** + * Tear down a Webplayer Session * Tear down a Webplayer Session * @param {String} sessionId Webplayer Session identifier - * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing HTTP response + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Array.} and HTTP response */ v1WebPlayerDestroySessionWithHttpInfo(sessionId) { let postBody = null; @@ -8146,7 +10182,7 @@ export default class CorelliumApi { let authNames = ['BearerAuth']; let contentTypes = []; let accepts = ['application/json']; - let returnType = null; + let returnType = ['String']; return this.apiClient.callApi( '/v1/webplayer/{sessionId}', 'DELETE', pathParams, queryParams, headerParams, formParams, postBody, @@ -8155,9 +10191,10 @@ export default class CorelliumApi { } /** + * Tear down a Webplayer Session * Tear down a Webplayer Session * @param {String} sessionId Webplayer Session identifier - * @return {Promise} a {@link https://www.promisejs.org/|Promise} + * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Array.} */ v1WebPlayerDestroySession(sessionId) { return this.v1WebPlayerDestroySessionWithHttpInfo(sessionId) @@ -8168,6 +10205,7 @@ export default class CorelliumApi { /** + * List all Webplayer sessions * List all Webplayer sessions * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link Array.} and HTTP response */ @@ -8195,6 +10233,7 @@ export default class CorelliumApi { } /** + * List all Webplayer sessions * List all Webplayer sessions * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link Array.} */ @@ -8207,6 +10246,7 @@ export default class CorelliumApi { /** + * Retrieve Webplayer Session Information * Retrieve Webplayer Session Information * @param {String} sessionId Webplayer Session identifier * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link module:model/WebPlayerSession} and HTTP response @@ -8240,6 +10280,7 @@ export default class CorelliumApi { } /** + * Retrieve Webplayer Session Information * Retrieve Webplayer Session Information * @param {String} sessionId Webplayer Session identifier * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link module:model/WebPlayerSession} @@ -8253,6 +10294,7 @@ export default class CorelliumApi { /** + * Recommended SSH Command for Quick Connect * Recommended SSH Command for Quick Connect * @param {String} instanceId Instance ID - uuid * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with an object containing data of type {@link String} and HTTP response @@ -8286,6 +10328,7 @@ export default class CorelliumApi { } /** + * Recommended SSH Command for Quick Connect * Recommended SSH Command for Quick Connect * @param {String} instanceId Instance ID - uuid * @return {Promise} a {@link https://www.promisejs.org/|Promise}, with data of type {@link String} @@ -8299,6 +10342,7 @@ export default class CorelliumApi { /** + * Get state of Instance * Get state of Instance * @param {String} instanceId Instance ID - uuid * @param {Object} opts Optional parameters @@ -8336,6 +10380,7 @@ export default class CorelliumApi { } /** + * Get state of Instance * Get state of Instance * @param {String} instanceId Instance ID - uuid * @param {Object} opts Optional parameters diff --git a/src/index.js b/src/index.js index 8ba45c0..e8b8c53 100644 --- a/src/index.js +++ b/src/index.js @@ -2,7 +2,7 @@ * Corellium API * REST API to manage your virtual devices. * - * The version of the OpenAPI document: 7.3.0 + * The version of the OpenAPI document: 7.9.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -33,47 +33,68 @@ import AgentSystemGetPropBody from './model/AgentSystemGetPropBody'; import AgentSystemSetHostnameBody from './model/AgentSystemSetHostnameBody'; import AgentValueReturn from './model/AgentValueReturn'; import AgreedAck from './model/AgreedAck'; +import AllowedDomainsResponse from './model/AllowedDomainsResponse'; import ApiConflictError from './model/ApiConflictError'; import ApiError from './model/ApiError'; import ApiInternalConsistencyError from './model/ApiInternalConsistencyError'; import ApiNotFoundError from './model/ApiNotFoundError'; import ApiToken from './model/ApiToken'; import Assessment from './model/Assessment'; +import AssessmentHistory from './model/AssessmentHistory'; +import AssessmentHistoryLineItem from './model/AssessmentHistoryLineItem'; import AssessmentIdStatus from './model/AssessmentIdStatus'; +import AttachInterfaceRequest from './model/AttachInterfaceRequest'; import AuthProvider from './model/AuthProvider'; import Bit from './model/Bit'; import BtraceEnableOptions from './model/BtraceEnableOptions'; import Button from './model/Button'; import CheckSubdomainResponse from './model/CheckSubdomainResponse'; +import ClusterConfigurationPayload from './model/ClusterConfigurationPayload'; +import ClusterSnapshot from './model/ClusterSnapshot'; import ConfigResponse from './model/ConfigResponse'; import ConfigResponseMaintenance from './model/ConfigResponseMaintenance'; +import CoordinatorConfig from './model/CoordinatorConfig'; import CouponOptions from './model/CouponOptions'; import CreateAssessmentDto from './model/CreateAssessmentDto'; +import CreateInterconnectRequest from './model/CreateInterconnectRequest'; import CreateNetworkConnectionOptions from './model/CreateNetworkConnectionOptions'; import CreateTeam from './model/CreateTeam'; import CreatedBy from './model/CreatedBy'; import Credentials from './model/Credentials'; +import DetachInterfaceRequest from './model/DetachInterfaceRequest'; +import Device from './model/Device'; import DomainAuthProviderRequest from './model/DomainAuthProviderRequest'; import DomainAuthProviderResponse from './model/DomainAuthProviderResponse'; import DomainOptions from './model/DomainOptions'; +import ExtendedFirmwareAssetInfo from './model/ExtendedFirmwareAssetInfo'; import Extension from './model/Extension'; import Features from './model/Features'; import FileChanges from './model/FileChanges'; import Firmware from './model/Firmware'; +import FirmwareAsset from './model/FirmwareAsset'; +import FirmwareServiceConfiguration from './model/FirmwareServiceConfiguration'; import GetAssessmentsByInstanceId500Response from './model/GetAssessmentsByInstanceId500Response'; +import GetInterconnectsResponse from './model/GetInterconnectsResponse'; +import GetStorageResponse from './model/GetStorageResponse'; import GpioStateDefinition from './model/GpioStateDefinition'; import GpiosState from './model/GpiosState'; import GrantTrialRequestResponse from './model/GrantTrialRequestResponse'; import Hook from './model/Hook'; import Image from './model/Image'; import InputResponse from './model/InputResponse'; +import InstallFirmwareAssetsRequest from './model/InstallFirmwareAssetsRequest'; +import InstallFirmwareAssetsResponse from './model/InstallFirmwareAssetsResponse'; +import InstallFirmwareRequest from './model/InstallFirmwareRequest'; +import InstallFirmwareResponse from './model/InstallFirmwareResponse'; import Instance from './model/Instance'; import InstanceAgentState from './model/InstanceAgentState'; import InstanceBootOptions from './model/InstanceBootOptions'; import InstanceBootOptionsAdditionalTag from './model/InstanceBootOptionsAdditionalTag'; +import InstanceBootOptionsKernel from './model/InstanceBootOptionsKernel'; import InstanceConsoleEndpoint from './model/InstanceConsoleEndpoint'; import InstanceCreateOptions from './model/InstanceCreateOptions'; import InstanceInput from './model/InstanceInput'; +import InstanceInterface from './model/InstanceInterface'; import InstanceNetdumpState from './model/InstanceNetdumpState'; import InstanceNetmonState from './model/InstanceNetmonState'; import InstanceReturn from './model/InstanceReturn'; @@ -82,6 +103,7 @@ import InstanceStartOptions from './model/InstanceStartOptions'; import InstanceState from './model/InstanceState'; import InstanceStopOptions from './model/InstanceStopOptions'; import InstanceUpgradeBody from './model/InstanceUpgradeBody'; +import InterconnectResponse from './model/InterconnectResponse'; import Invitation from './model/Invitation'; import InviteRevokeParams from './model/InviteRevokeParams'; import InviteRevokeParamsIds from './model/InviteRevokeParamsIds'; @@ -91,6 +113,7 @@ import KernelThread from './model/KernelThread'; import Logging from './model/Logging'; import Maintenance from './model/Maintenance'; import MediaPlayBody from './model/MediaPlayBody'; +import MediaStore from './model/MediaStore'; import MeteredSubscriptionUsage from './model/MeteredSubscriptionUsage'; import Model from './model/Model'; import ModelSoftware from './model/ModelSoftware'; @@ -100,11 +123,15 @@ import NetworkConnectionOffsetPaginationResult from './model/NetworkConnectionOf import NetworkConnectionProvider from './model/NetworkConnectionProvider'; import NetworkConnectionProviderOffsetPaginationResult from './model/NetworkConnectionProviderOffsetPaginationResult'; import NetworkStatusResponse from './model/NetworkStatusResponse'; +import NodeInformation from './model/NodeInformation'; +import NodeUpdatesFailed from './model/NodeUpdatesFailed'; import OpenIDConfig from './model/OpenIDConfig'; import Pagination from './model/Pagination'; +import PartialUpdateInterconnectRequest from './model/PartialUpdateInterconnectRequest'; import PasswordChangeBody from './model/PasswordChangeBody'; import PasswordResetBody from './model/PasswordResetBody'; import PatchInstanceOptions from './model/PatchInstanceOptions'; +import PatchInstanceReadOnly from './model/PatchInstanceReadOnly'; import PeripheralsData from './model/PeripheralsData'; import Plan from './model/Plan'; import PostShareSnapshotRequestPayload from './model/PostShareSnapshotRequestPayload'; @@ -116,19 +143,22 @@ import ProjectSettings from './model/ProjectSettings'; import ProjectUsage from './model/ProjectUsage'; import ProxyConfig from './model/ProxyConfig'; import ResetLinkBody from './model/ResetLinkBody'; +import ResetLinkInfoReturn from './model/ResetLinkInfoReturn'; +import RestoreBackupData from './model/RestoreBackupData'; import Role from './model/Role'; import RotateBody from './model/RotateBody'; import SharedSnapshotsInfo from './model/SharedSnapshotsInfo'; import Snapshot from './model/Snapshot'; import SnapshotCreationOptions from './model/SnapshotCreationOptions'; +import SnapshotList from './model/SnapshotList'; import SnapshotMember from './model/SnapshotMember'; import SnapshotOwner from './model/SnapshotOwner'; import SnapshotPermissionsRequestPayload from './model/SnapshotPermissionsRequestPayload'; +import SnapshotRequest from './model/SnapshotRequest'; import SnapshotSharing from './model/SnapshotSharing'; import SnapshotSharingPermissions from './model/SnapshotSharingPermissions'; import SnapshotStatus from './model/SnapshotStatus'; import SslsplitFilter from './model/SslsplitFilter'; -import SubscriberInvite from './model/SubscriberInvite'; import Team from './model/Team'; import TeamCreate from './model/TeamCreate'; import TestAssessmentDto from './model/TestAssessmentDto'; @@ -143,14 +173,20 @@ import TrialRequestMetadata from './model/TrialRequestMetadata'; import TrialRequestOptions from './model/TrialRequestOptions'; import UpdateAssessmentDto from './model/UpdateAssessmentDto'; import UpdateExtension from './model/UpdateExtension'; +import UpdateInterconnectRequest from './model/UpdateInterconnectRequest'; import UpdateNetworkConnectionOptions from './model/UpdateNetworkConnectionOptions'; +import UpdateTrialRequestParams from './model/UpdateTrialRequestParams'; import User from './model/User'; +import UserCreate from './model/UserCreate'; +import UserCreateReturn from './model/UserCreateReturn'; import UserError from './model/UserError'; import UserSnapshots from './model/UserSnapshots'; +import UserUpdate from './model/UserUpdate'; import V1CheckSubdomainExistenceParameters from './model/V1CheckSubdomainExistenceParameters'; import V1CreateHookParameters from './model/V1CreateHookParameters'; import V1LoadExtensionParameters from './model/V1LoadExtensionParameters'; import V1SetStateBody from './model/V1SetStateBody'; +import V1UpdateHookParameters from './model/V1UpdateHookParameters'; import ValidationError from './model/ValidationError'; import VolumeOptions from './model/VolumeOptions'; import VpnDefinition from './model/VpnDefinition'; @@ -188,7 +224,7 @@ import CorelliumApi from './api/CorelliumApi'; * *

* @module index -* @version 0.4.1 +* @version 0.4.3 */ export { /** @@ -317,6 +353,12 @@ export { */ AgreedAck, + /** + * The AllowedDomainsResponse model constructor. + * @property {module:model/AllowedDomainsResponse} + */ + AllowedDomainsResponse, + /** * The ApiConflictError model constructor. * @property {module:model/ApiConflictError} @@ -353,12 +395,30 @@ export { */ Assessment, + /** + * The AssessmentHistory model constructor. + * @property {module:model/AssessmentHistory} + */ + AssessmentHistory, + + /** + * The AssessmentHistoryLineItem model constructor. + * @property {module:model/AssessmentHistoryLineItem} + */ + AssessmentHistoryLineItem, + /** * The AssessmentIdStatus model constructor. * @property {module:model/AssessmentIdStatus} */ AssessmentIdStatus, + /** + * The AttachInterfaceRequest model constructor. + * @property {module:model/AttachInterfaceRequest} + */ + AttachInterfaceRequest, + /** * The AuthProvider model constructor. * @property {module:model/AuthProvider} @@ -389,6 +449,18 @@ export { */ CheckSubdomainResponse, + /** + * The ClusterConfigurationPayload model constructor. + * @property {module:model/ClusterConfigurationPayload} + */ + ClusterConfigurationPayload, + + /** + * The ClusterSnapshot model constructor. + * @property {module:model/ClusterSnapshot} + */ + ClusterSnapshot, + /** * The ConfigResponse model constructor. * @property {module:model/ConfigResponse} @@ -401,6 +473,12 @@ export { */ ConfigResponseMaintenance, + /** + * The CoordinatorConfig model constructor. + * @property {module:model/CoordinatorConfig} + */ + CoordinatorConfig, + /** * The CouponOptions model constructor. * @property {module:model/CouponOptions} @@ -413,6 +491,12 @@ export { */ CreateAssessmentDto, + /** + * The CreateInterconnectRequest model constructor. + * @property {module:model/CreateInterconnectRequest} + */ + CreateInterconnectRequest, + /** * The CreateNetworkConnectionOptions model constructor. * @property {module:model/CreateNetworkConnectionOptions} @@ -437,6 +521,18 @@ export { */ Credentials, + /** + * The DetachInterfaceRequest model constructor. + * @property {module:model/DetachInterfaceRequest} + */ + DetachInterfaceRequest, + + /** + * The Device model constructor. + * @property {module:model/Device} + */ + Device, + /** * The DomainAuthProviderRequest model constructor. * @property {module:model/DomainAuthProviderRequest} @@ -455,6 +551,12 @@ export { */ DomainOptions, + /** + * The ExtendedFirmwareAssetInfo model constructor. + * @property {module:model/ExtendedFirmwareAssetInfo} + */ + ExtendedFirmwareAssetInfo, + /** * The Extension model constructor. * @property {module:model/Extension} @@ -479,12 +581,36 @@ export { */ Firmware, + /** + * The FirmwareAsset model constructor. + * @property {module:model/FirmwareAsset} + */ + FirmwareAsset, + + /** + * The FirmwareServiceConfiguration model constructor. + * @property {module:model/FirmwareServiceConfiguration} + */ + FirmwareServiceConfiguration, + /** * The GetAssessmentsByInstanceId500Response model constructor. * @property {module:model/GetAssessmentsByInstanceId500Response} */ GetAssessmentsByInstanceId500Response, + /** + * The GetInterconnectsResponse model constructor. + * @property {module:model/GetInterconnectsResponse} + */ + GetInterconnectsResponse, + + /** + * The GetStorageResponse model constructor. + * @property {module:model/GetStorageResponse} + */ + GetStorageResponse, + /** * The GpioStateDefinition model constructor. * @property {module:model/GpioStateDefinition} @@ -521,6 +647,30 @@ export { */ InputResponse, + /** + * The InstallFirmwareAssetsRequest model constructor. + * @property {module:model/InstallFirmwareAssetsRequest} + */ + InstallFirmwareAssetsRequest, + + /** + * The InstallFirmwareAssetsResponse model constructor. + * @property {module:model/InstallFirmwareAssetsResponse} + */ + InstallFirmwareAssetsResponse, + + /** + * The InstallFirmwareRequest model constructor. + * @property {module:model/InstallFirmwareRequest} + */ + InstallFirmwareRequest, + + /** + * The InstallFirmwareResponse model constructor. + * @property {module:model/InstallFirmwareResponse} + */ + InstallFirmwareResponse, + /** * The Instance model constructor. * @property {module:model/Instance} @@ -545,6 +695,12 @@ export { */ InstanceBootOptionsAdditionalTag, + /** + * The InstanceBootOptionsKernel model constructor. + * @property {module:model/InstanceBootOptionsKernel} + */ + InstanceBootOptionsKernel, + /** * The InstanceConsoleEndpoint model constructor. * @property {module:model/InstanceConsoleEndpoint} @@ -563,6 +719,12 @@ export { */ InstanceInput, + /** + * The InstanceInterface model constructor. + * @property {module:model/InstanceInterface} + */ + InstanceInterface, + /** * The InstanceNetdumpState model constructor. * @property {module:model/InstanceNetdumpState} @@ -611,6 +773,12 @@ export { */ InstanceUpgradeBody, + /** + * The InterconnectResponse model constructor. + * @property {module:model/InterconnectResponse} + */ + InterconnectResponse, + /** * The Invitation model constructor. * @property {module:model/Invitation} @@ -665,6 +833,12 @@ export { */ MediaPlayBody, + /** + * The MediaStore model constructor. + * @property {module:model/MediaStore} + */ + MediaStore, + /** * The MeteredSubscriptionUsage model constructor. * @property {module:model/MeteredSubscriptionUsage} @@ -719,6 +893,18 @@ export { */ NetworkStatusResponse, + /** + * The NodeInformation model constructor. + * @property {module:model/NodeInformation} + */ + NodeInformation, + + /** + * The NodeUpdatesFailed model constructor. + * @property {module:model/NodeUpdatesFailed} + */ + NodeUpdatesFailed, + /** * The OpenIDConfig model constructor. * @property {module:model/OpenIDConfig} @@ -731,6 +917,12 @@ export { */ Pagination, + /** + * The PartialUpdateInterconnectRequest model constructor. + * @property {module:model/PartialUpdateInterconnectRequest} + */ + PartialUpdateInterconnectRequest, + /** * The PasswordChangeBody model constructor. * @property {module:model/PasswordChangeBody} @@ -749,6 +941,12 @@ export { */ PatchInstanceOptions, + /** + * The PatchInstanceReadOnly model constructor. + * @property {module:model/PatchInstanceReadOnly} + */ + PatchInstanceReadOnly, + /** * The PeripheralsData model constructor. * @property {module:model/PeripheralsData} @@ -815,6 +1013,18 @@ export { */ ResetLinkBody, + /** + * The ResetLinkInfoReturn model constructor. + * @property {module:model/ResetLinkInfoReturn} + */ + ResetLinkInfoReturn, + + /** + * The RestoreBackupData model constructor. + * @property {module:model/RestoreBackupData} + */ + RestoreBackupData, + /** * The Role model constructor. * @property {module:model/Role} @@ -845,6 +1055,12 @@ export { */ SnapshotCreationOptions, + /** + * The SnapshotList model constructor. + * @property {module:model/SnapshotList} + */ + SnapshotList, + /** * The SnapshotMember model constructor. * @property {module:model/SnapshotMember} @@ -863,6 +1079,12 @@ export { */ SnapshotPermissionsRequestPayload, + /** + * The SnapshotRequest model constructor. + * @property {module:model/SnapshotRequest} + */ + SnapshotRequest, + /** * The SnapshotSharing model constructor. * @property {module:model/SnapshotSharing} @@ -887,12 +1109,6 @@ export { */ SslsplitFilter, - /** - * The SubscriberInvite model constructor. - * @property {module:model/SubscriberInvite} - */ - SubscriberInvite, - /** * The Team model constructor. * @property {module:model/Team} @@ -977,18 +1193,42 @@ export { */ UpdateExtension, + /** + * The UpdateInterconnectRequest model constructor. + * @property {module:model/UpdateInterconnectRequest} + */ + UpdateInterconnectRequest, + /** * The UpdateNetworkConnectionOptions model constructor. * @property {module:model/UpdateNetworkConnectionOptions} */ UpdateNetworkConnectionOptions, + /** + * The UpdateTrialRequestParams model constructor. + * @property {module:model/UpdateTrialRequestParams} + */ + UpdateTrialRequestParams, + /** * The User model constructor. * @property {module:model/User} */ User, + /** + * The UserCreate model constructor. + * @property {module:model/UserCreate} + */ + UserCreate, + + /** + * The UserCreateReturn model constructor. + * @property {module:model/UserCreateReturn} + */ + UserCreateReturn, + /** * The UserError model constructor. * @property {module:model/UserError} @@ -1001,6 +1241,12 @@ export { */ UserSnapshots, + /** + * The UserUpdate model constructor. + * @property {module:model/UserUpdate} + */ + UserUpdate, + /** * The V1CheckSubdomainExistenceParameters model constructor. * @property {module:model/V1CheckSubdomainExistenceParameters} @@ -1025,6 +1271,12 @@ export { */ V1SetStateBody, + /** + * The V1UpdateHookParameters model constructor. + * @property {module:model/V1UpdateHookParameters} + */ + V1UpdateHookParameters, + /** * The ValidationError model constructor. * @property {module:model/ValidationError} diff --git a/src/model/Activity.js b/src/model/Activity.js index 4aac8f8..a6148df 100644 --- a/src/model/Activity.js +++ b/src/model/Activity.js @@ -2,7 +2,7 @@ * Corellium API * REST API to manage your virtual devices. * - * The version of the OpenAPI document: 7.3.0 + * The version of the OpenAPI document: 7.9.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -16,7 +16,7 @@ import ApiClient from '../ApiClient'; /** * The Activity model module. * @module model/Activity - * @version 0.4.1 + * @version 0.4.3 */ class Activity { /** @@ -201,7 +201,7 @@ Activity.prototype['instanceId'] = undefined; Activity.prototype['createdAt'] = undefined; /** - * Timestamp of the activity was last updated + * Timestamp of when the activity was last updated * @member {String} updatedAt */ Activity.prototype['updatedAt'] = undefined; diff --git a/src/model/ActivityExportDto.js b/src/model/ActivityExportDto.js index 46de501..55f47a1 100644 --- a/src/model/ActivityExportDto.js +++ b/src/model/ActivityExportDto.js @@ -2,7 +2,7 @@ * Corellium API * REST API to manage your virtual devices. * - * The version of the OpenAPI document: 7.3.0 + * The version of the OpenAPI document: 7.9.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -16,7 +16,7 @@ import ApiClient from '../ApiClient'; /** * The ActivityExportDto model module. * @module model/ActivityExportDto - * @version 0.4.1 + * @version 0.4.3 */ class ActivityExportDto { /** diff --git a/src/model/ActivityExportResponse.js b/src/model/ActivityExportResponse.js index 4e8067f..de50b62 100644 --- a/src/model/ActivityExportResponse.js +++ b/src/model/ActivityExportResponse.js @@ -2,7 +2,7 @@ * Corellium API * REST API to manage your virtual devices. * - * The version of the OpenAPI document: 7.3.0 + * The version of the OpenAPI document: 7.9.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -16,7 +16,7 @@ import ApiClient from '../ApiClient'; /** * The ActivityExportResponse model module. * @module model/ActivityExportResponse - * @version 0.4.1 + * @version 0.4.3 */ class ActivityExportResponse { /** diff --git a/src/model/ActivityList.js b/src/model/ActivityList.js index e5d4d06..1dbbffc 100644 --- a/src/model/ActivityList.js +++ b/src/model/ActivityList.js @@ -2,7 +2,7 @@ * Corellium API * REST API to manage your virtual devices. * - * The version of the OpenAPI document: 7.3.0 + * The version of the OpenAPI document: 7.9.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -18,7 +18,7 @@ import Pagination from './Pagination'; /** * The ActivityList model module. * @module model/ActivityList - * @version 0.4.1 + * @version 0.4.3 */ class ActivityList { /** diff --git a/src/model/ActivityRequest.js b/src/model/ActivityRequest.js index 3b6d6a8..437233a 100644 --- a/src/model/ActivityRequest.js +++ b/src/model/ActivityRequest.js @@ -2,7 +2,7 @@ * Corellium API * REST API to manage your virtual devices. * - * The version of the OpenAPI document: 7.3.0 + * The version of the OpenAPI document: 7.9.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -16,7 +16,7 @@ import ApiClient from '../ApiClient'; /** * The ActivityRequest model module. * @module model/ActivityRequest - * @version 0.4.1 + * @version 0.4.3 */ class ActivityRequest { /** @@ -178,13 +178,13 @@ ActivityRequest.prototype['actor'] = undefined; ActivityRequest.prototype['search'] = undefined; /** - * Date to filter to, keyed off of createdAt, defaults to now + * Date to filter to, keyed off of createdAt * @member {String} to */ ActivityRequest.prototype['to'] = undefined; /** - * Date to filter from, keyed off of createdAt, defaults to 1 week ago + * Date to filter from, keyed off of createdAt * @member {String} from */ ActivityRequest.prototype['from'] = undefined; diff --git a/src/model/Address.js b/src/model/Address.js index a419cc5..851df7e 100644 --- a/src/model/Address.js +++ b/src/model/Address.js @@ -2,7 +2,7 @@ * Corellium API * REST API to manage your virtual devices. * - * The version of the OpenAPI document: 7.3.0 + * The version of the OpenAPI document: 7.9.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -16,7 +16,7 @@ import ApiClient from '../ApiClient'; /** * The Address model module. * @module model/Address - * @version 0.4.1 + * @version 0.4.3 */ class Address { /** diff --git a/src/model/AgentApp.js b/src/model/AgentApp.js index a26d4a9..8f89b6b 100644 --- a/src/model/AgentApp.js +++ b/src/model/AgentApp.js @@ -2,7 +2,7 @@ * Corellium API * REST API to manage your virtual devices. * - * The version of the OpenAPI document: 7.3.0 + * The version of the OpenAPI document: 7.9.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -16,7 +16,7 @@ import ApiClient from '../ApiClient'; /** * The AgentApp model module. * @module model/AgentApp - * @version 0.4.1 + * @version 0.4.3 */ class AgentApp { /** @@ -69,6 +69,12 @@ class AgentApp { if (data.hasOwnProperty('bundleID')) { obj['bundleID'] = ApiClient.convertToType(data['bundleID'], 'String'); } + if (data.hasOwnProperty('bundlePath')) { + obj['bundlePath'] = ApiClient.convertToType(data['bundlePath'], 'String'); + } + if (data.hasOwnProperty('bundleDataPath')) { + obj['bundleDataPath'] = ApiClient.convertToType(data['bundleDataPath'], 'String'); + } } return obj; } @@ -95,6 +101,14 @@ class AgentApp { if (data['bundleID'] && !(typeof data['bundleID'] === 'string' || data['bundleID'] instanceof String)) { throw new Error("Expected the field `bundleID` to be a primitive type in the JSON string but got " + data['bundleID']); } + // ensure the json data is a string + if (data['bundlePath'] && !(typeof data['bundlePath'] === 'string' || data['bundlePath'] instanceof String)) { + throw new Error("Expected the field `bundlePath` to be a primitive type in the JSON string but got " + data['bundlePath']); + } + // ensure the json data is a string + if (data['bundleDataPath'] && !(typeof data['bundleDataPath'] === 'string' || data['bundleDataPath'] instanceof String)) { + throw new Error("Expected the field `bundleDataPath` to be a primitive type in the JSON string but got " + data['bundleDataPath']); + } return true; } @@ -146,6 +160,18 @@ AgentApp.prototype['name'] = undefined; */ AgentApp.prototype['bundleID'] = undefined; +/** + * + * @member {String} bundlePath + */ +AgentApp.prototype['bundlePath'] = undefined; + +/** + * + * @member {String} bundleDataPath + */ +AgentApp.prototype['bundleDataPath'] = undefined; + diff --git a/src/model/AgentAppReadyResponse.js b/src/model/AgentAppReadyResponse.js index dd4832f..2f6bfd9 100644 --- a/src/model/AgentAppReadyResponse.js +++ b/src/model/AgentAppReadyResponse.js @@ -2,7 +2,7 @@ * Corellium API * REST API to manage your virtual devices. * - * The version of the OpenAPI document: 7.3.0 + * The version of the OpenAPI document: 7.9.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -16,7 +16,7 @@ import ApiClient from '../ApiClient'; /** * The AgentAppReadyResponse model module. * @module model/AgentAppReadyResponse - * @version 0.4.1 + * @version 0.4.3 */ class AgentAppReadyResponse { /** diff --git a/src/model/AgentAppStatus.js b/src/model/AgentAppStatus.js index 3d5df20..d798112 100644 --- a/src/model/AgentAppStatus.js +++ b/src/model/AgentAppStatus.js @@ -2,7 +2,7 @@ * Corellium API * REST API to manage your virtual devices. * - * The version of the OpenAPI document: 7.3.0 + * The version of the OpenAPI document: 7.9.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -16,7 +16,7 @@ import ApiClient from '../ApiClient'; /** * The AgentAppStatus model module. * @module model/AgentAppStatus - * @version 0.4.1 + * @version 0.4.3 */ class AgentAppStatus { /** diff --git a/src/model/AgentAppsList.js b/src/model/AgentAppsList.js index 7d7e9f0..950dce3 100644 --- a/src/model/AgentAppsList.js +++ b/src/model/AgentAppsList.js @@ -2,7 +2,7 @@ * Corellium API * REST API to manage your virtual devices. * - * The version of the OpenAPI document: 7.3.0 + * The version of the OpenAPI document: 7.9.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -17,7 +17,7 @@ import AgentApp from './AgentApp'; /** * The AgentAppsList model module. * @module model/AgentAppsList - * @version 0.4.1 + * @version 0.4.3 */ class AgentAppsList { /** diff --git a/src/model/AgentAppsStatusList.js b/src/model/AgentAppsStatusList.js index 0b79a8f..4522d6c 100644 --- a/src/model/AgentAppsStatusList.js +++ b/src/model/AgentAppsStatusList.js @@ -2,7 +2,7 @@ * Corellium API * REST API to manage your virtual devices. * - * The version of the OpenAPI document: 7.3.0 + * The version of the OpenAPI document: 7.9.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -17,7 +17,7 @@ import AgentAppStatus from './AgentAppStatus'; /** * The AgentAppsStatusList model module. * @module model/AgentAppsStatusList - * @version 0.4.1 + * @version 0.4.3 */ class AgentAppsStatusList { /** diff --git a/src/model/AgentError.js b/src/model/AgentError.js index 5e4c8a6..1f5dc9e 100644 --- a/src/model/AgentError.js +++ b/src/model/AgentError.js @@ -2,7 +2,7 @@ * Corellium API * REST API to manage your virtual devices. * - * The version of the OpenAPI document: 7.3.0 + * The version of the OpenAPI document: 7.9.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -16,7 +16,7 @@ import ApiClient from '../ApiClient'; /** * The AgentError model module. * @module model/AgentError - * @version 0.4.1 + * @version 0.4.3 */ class AgentError { /** diff --git a/src/model/AgentIcons.js b/src/model/AgentIcons.js index b037f84..df4d108 100644 --- a/src/model/AgentIcons.js +++ b/src/model/AgentIcons.js @@ -2,7 +2,7 @@ * Corellium API * REST API to manage your virtual devices. * - * The version of the OpenAPI document: 7.3.0 + * The version of the OpenAPI document: 7.9.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -16,7 +16,7 @@ import ApiClient from '../ApiClient'; /** * The AgentIcons model module. * @module model/AgentIcons - * @version 0.4.1 + * @version 0.4.3 */ class AgentIcons { /** diff --git a/src/model/AgentInstallBody.js b/src/model/AgentInstallBody.js index 7951f12..5b20f2d 100644 --- a/src/model/AgentInstallBody.js +++ b/src/model/AgentInstallBody.js @@ -2,7 +2,7 @@ * Corellium API * REST API to manage your virtual devices. * - * The version of the OpenAPI document: 7.3.0 + * The version of the OpenAPI document: 7.9.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -16,7 +16,7 @@ import ApiClient from '../ApiClient'; /** * The AgentInstallBody model module. * @module model/AgentInstallBody - * @version 0.4.1 + * @version 0.4.3 */ class AgentInstallBody { /** diff --git a/src/model/AgentProfilesReturn.js b/src/model/AgentProfilesReturn.js index 43133c3..5f09b25 100644 --- a/src/model/AgentProfilesReturn.js +++ b/src/model/AgentProfilesReturn.js @@ -2,7 +2,7 @@ * Corellium API * REST API to manage your virtual devices. * - * The version of the OpenAPI document: 7.3.0 + * The version of the OpenAPI document: 7.9.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -16,7 +16,7 @@ import ApiClient from '../ApiClient'; /** * The AgentProfilesReturn model module. * @module model/AgentProfilesReturn - * @version 0.4.1 + * @version 0.4.3 */ class AgentProfilesReturn { /** diff --git a/src/model/AgentSystemAdbAuth.js b/src/model/AgentSystemAdbAuth.js index 6f5cb37..f274c46 100644 --- a/src/model/AgentSystemAdbAuth.js +++ b/src/model/AgentSystemAdbAuth.js @@ -2,7 +2,7 @@ * Corellium API * REST API to manage your virtual devices. * - * The version of the OpenAPI document: 7.3.0 + * The version of the OpenAPI document: 7.9.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -16,7 +16,7 @@ import ApiClient from '../ApiClient'; /** * The AgentSystemAdbAuth model module. * @module model/AgentSystemAdbAuth - * @version 0.4.1 + * @version 0.4.3 */ class AgentSystemAdbAuth { /** diff --git a/src/model/AgentSystemGetPropBody.js b/src/model/AgentSystemGetPropBody.js index 60b02c3..6ca4931 100644 --- a/src/model/AgentSystemGetPropBody.js +++ b/src/model/AgentSystemGetPropBody.js @@ -2,7 +2,7 @@ * Corellium API * REST API to manage your virtual devices. * - * The version of the OpenAPI document: 7.3.0 + * The version of the OpenAPI document: 7.9.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -16,7 +16,7 @@ import ApiClient from '../ApiClient'; /** * The AgentSystemGetPropBody model module. * @module model/AgentSystemGetPropBody - * @version 0.4.1 + * @version 0.4.3 */ class AgentSystemGetPropBody { /** diff --git a/src/model/AgentSystemSetHostnameBody.js b/src/model/AgentSystemSetHostnameBody.js index b205dd1..60543e6 100644 --- a/src/model/AgentSystemSetHostnameBody.js +++ b/src/model/AgentSystemSetHostnameBody.js @@ -2,7 +2,7 @@ * Corellium API * REST API to manage your virtual devices. * - * The version of the OpenAPI document: 7.3.0 + * The version of the OpenAPI document: 7.9.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -16,7 +16,7 @@ import ApiClient from '../ApiClient'; /** * The AgentSystemSetHostnameBody model module. * @module model/AgentSystemSetHostnameBody - * @version 0.4.1 + * @version 0.4.3 */ class AgentSystemSetHostnameBody { /** diff --git a/src/model/AgentValueReturn.js b/src/model/AgentValueReturn.js index fcab290..5ee092d 100644 --- a/src/model/AgentValueReturn.js +++ b/src/model/AgentValueReturn.js @@ -2,7 +2,7 @@ * Corellium API * REST API to manage your virtual devices. * - * The version of the OpenAPI document: 7.3.0 + * The version of the OpenAPI document: 7.9.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -16,7 +16,7 @@ import ApiClient from '../ApiClient'; /** * The AgentValueReturn model module. * @module model/AgentValueReturn - * @version 0.4.1 + * @version 0.4.3 */ class AgentValueReturn { /** diff --git a/src/model/AgreedAck.js b/src/model/AgreedAck.js index 1815b64..84f7c7e 100644 --- a/src/model/AgreedAck.js +++ b/src/model/AgreedAck.js @@ -2,7 +2,7 @@ * Corellium API * REST API to manage your virtual devices. * - * The version of the OpenAPI document: 7.3.0 + * The version of the OpenAPI document: 7.9.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -16,7 +16,7 @@ import ApiClient from '../ApiClient'; /** * The AgreedAck model module. * @module model/AgreedAck - * @version 0.4.1 + * @version 0.4.3 */ class AgreedAck { /** diff --git a/src/model/AllowedDomainsResponse.js b/src/model/AllowedDomainsResponse.js new file mode 100644 index 0000000..1386f6d --- /dev/null +++ b/src/model/AllowedDomainsResponse.js @@ -0,0 +1,89 @@ +/** + * Corellium API + * REST API to manage your virtual devices. + * + * The version of the OpenAPI document: 7.9.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; + +/** + * The AllowedDomainsResponse model module. + * @module model/AllowedDomainsResponse + * @version 0.4.3 + */ +class AllowedDomainsResponse { + /** + * Constructs a new AllowedDomainsResponse. + * + * @alias module:model/AllowedDomainsResponse + */ + constructor() { + + AllowedDomainsResponse.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a AllowedDomainsResponse from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/AllowedDomainsResponse} obj Optional instance to populate. + * @return {module:model/AllowedDomainsResponse} The populated AllowedDomainsResponse instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new AllowedDomainsResponse(); + + if (data.hasOwnProperty('allowedDomains')) { + obj['allowedDomains'] = ApiClient.convertToType(data['allowedDomains'], ['String']); + } + } + return obj; + } + + /** + * Validates the JSON data with respect to AllowedDomainsResponse. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @return {boolean} to indicate whether the JSON data is valid with respect to AllowedDomainsResponse. + */ + static validateJSON(data) { + // ensure the json data is an array + if (!Array.isArray(data['allowedDomains'])) { + throw new Error("Expected the field `allowedDomains` to be an array in the JSON data but got " + data['allowedDomains']); + } + + return true; + } + + +} + + + +/** + * List of allowed domains + * @member {Array.} allowedDomains + */ +AllowedDomainsResponse.prototype['allowedDomains'] = undefined; + + + + + + +export default AllowedDomainsResponse; + diff --git a/src/model/ApiConflictError.js b/src/model/ApiConflictError.js index e674230..42fedc3 100644 --- a/src/model/ApiConflictError.js +++ b/src/model/ApiConflictError.js @@ -2,7 +2,7 @@ * Corellium API * REST API to manage your virtual devices. * - * The version of the OpenAPI document: 7.3.0 + * The version of the OpenAPI document: 7.9.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -16,7 +16,7 @@ import ApiClient from '../ApiClient'; /** * The ApiConflictError model module. * @module model/ApiConflictError - * @version 0.4.1 + * @version 0.4.3 */ class ApiConflictError { /** diff --git a/src/model/ApiError.js b/src/model/ApiError.js index 9683c7f..0404c4a 100644 --- a/src/model/ApiError.js +++ b/src/model/ApiError.js @@ -2,7 +2,7 @@ * Corellium API * REST API to manage your virtual devices. * - * The version of the OpenAPI document: 7.3.0 + * The version of the OpenAPI document: 7.9.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -16,7 +16,7 @@ import ApiClient from '../ApiClient'; /** * The ApiError model module. * @module model/ApiError - * @version 0.4.1 + * @version 0.4.3 */ class ApiError { /** diff --git a/src/model/ApiInternalConsistencyError.js b/src/model/ApiInternalConsistencyError.js index c0acb9b..fefe665 100644 --- a/src/model/ApiInternalConsistencyError.js +++ b/src/model/ApiInternalConsistencyError.js @@ -2,7 +2,7 @@ * Corellium API * REST API to manage your virtual devices. * - * The version of the OpenAPI document: 7.3.0 + * The version of the OpenAPI document: 7.9.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -16,7 +16,7 @@ import ApiClient from '../ApiClient'; /** * The ApiInternalConsistencyError model module. * @module model/ApiInternalConsistencyError - * @version 0.4.1 + * @version 0.4.3 */ class ApiInternalConsistencyError { /** diff --git a/src/model/ApiNotFoundError.js b/src/model/ApiNotFoundError.js index 4130373..5df22e1 100644 --- a/src/model/ApiNotFoundError.js +++ b/src/model/ApiNotFoundError.js @@ -2,7 +2,7 @@ * Corellium API * REST API to manage your virtual devices. * - * The version of the OpenAPI document: 7.3.0 + * The version of the OpenAPI document: 7.9.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -16,7 +16,7 @@ import ApiClient from '../ApiClient'; /** * The ApiNotFoundError model module. * @module model/ApiNotFoundError - * @version 0.4.1 + * @version 0.4.3 */ class ApiNotFoundError { /** diff --git a/src/model/ApiToken.js b/src/model/ApiToken.js index 0885776..8adb3ce 100644 --- a/src/model/ApiToken.js +++ b/src/model/ApiToken.js @@ -2,7 +2,7 @@ * Corellium API * REST API to manage your virtual devices. * - * The version of the OpenAPI document: 7.3.0 + * The version of the OpenAPI document: 7.9.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -16,7 +16,7 @@ import ApiClient from '../ApiClient'; /** * The ApiToken model module. * @module model/ApiToken - * @version 0.4.1 + * @version 0.4.3 */ class ApiToken { /** diff --git a/src/model/Assessment.js b/src/model/Assessment.js index f5786e9..661aaed 100644 --- a/src/model/Assessment.js +++ b/src/model/Assessment.js @@ -2,7 +2,7 @@ * Corellium API * REST API to manage your virtual devices. * - * The version of the OpenAPI document: 7.3.0 + * The version of the OpenAPI document: 7.9.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -18,7 +18,7 @@ import CreateAssessmentDto from './CreateAssessmentDto'; /** * The Assessment model module. * @module model/Assessment - * @version 0.4.1 + * @version 0.4.3 */ class Assessment { /** diff --git a/src/model/AssessmentHistory.js b/src/model/AssessmentHistory.js new file mode 100644 index 0000000..725fa39 --- /dev/null +++ b/src/model/AssessmentHistory.js @@ -0,0 +1,148 @@ +/** + * Corellium API + * REST API to manage your virtual devices. + * + * The version of the OpenAPI document: 7.9.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; +import AssessmentHistoryLineItem from './AssessmentHistoryLineItem'; + +/** + * The AssessmentHistory model module. + * @module model/AssessmentHistory + * @version 0.4.3 + */ +class AssessmentHistory { + /** + * Constructs a new AssessmentHistory. + * + * @alias module:model/AssessmentHistory + * @param total {Number} Total number of items + * @param count {Number} Number of items in current response + * @param limit {Number} Limit used for the request + * @param offset {Number} Offset used for the request + * @param results {Array.} The list of assessments + */ + constructor(total, count, limit, offset, results) { + + AssessmentHistory.initialize(this, total, count, limit, offset, results); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj, total, count, limit, offset, results) { + obj['total'] = total; + obj['count'] = count; + obj['limit'] = limit; + obj['offset'] = offset; + obj['results'] = results; + } + + /** + * Constructs a AssessmentHistory from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/AssessmentHistory} obj Optional instance to populate. + * @return {module:model/AssessmentHistory} The populated AssessmentHistory instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new AssessmentHistory(); + + if (data.hasOwnProperty('total')) { + obj['total'] = ApiClient.convertToType(data['total'], 'Number'); + } + if (data.hasOwnProperty('count')) { + obj['count'] = ApiClient.convertToType(data['count'], 'Number'); + } + if (data.hasOwnProperty('limit')) { + obj['limit'] = ApiClient.convertToType(data['limit'], 'Number'); + } + if (data.hasOwnProperty('offset')) { + obj['offset'] = ApiClient.convertToType(data['offset'], 'Number'); + } + if (data.hasOwnProperty('results')) { + obj['results'] = ApiClient.convertToType(data['results'], [AssessmentHistoryLineItem]); + } + } + return obj; + } + + /** + * Validates the JSON data with respect to AssessmentHistory. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @return {boolean} to indicate whether the JSON data is valid with respect to AssessmentHistory. + */ + static validateJSON(data) { + // check to make sure all required properties are present in the JSON string + for (const property of AssessmentHistory.RequiredProperties) { + if (!data[property]) { + throw new Error("The required field `" + property + "` is not found in the JSON data: " + JSON.stringify(data)); + } + } + if (data['results']) { // data not null + // ensure the json data is an array + if (!Array.isArray(data['results'])) { + throw new Error("Expected the field `results` to be an array in the JSON data but got " + data['results']); + } + // validate the optional field `results` (array) + for (const item of data['results']) { + AssessmentHistoryLineItem.validateJSON(item); + }; + } + + return true; + } + + +} + +AssessmentHistory.RequiredProperties = ["total", "count", "limit", "offset", "results"]; + +/** + * Total number of items + * @member {Number} total + */ +AssessmentHistory.prototype['total'] = undefined; + +/** + * Number of items in current response + * @member {Number} count + */ +AssessmentHistory.prototype['count'] = undefined; + +/** + * Limit used for the request + * @member {Number} limit + */ +AssessmentHistory.prototype['limit'] = undefined; + +/** + * Offset used for the request + * @member {Number} offset + */ +AssessmentHistory.prototype['offset'] = undefined; + +/** + * The list of assessments + * @member {Array.} results + */ +AssessmentHistory.prototype['results'] = undefined; + + + + + + +export default AssessmentHistory; + diff --git a/src/model/AssessmentHistoryLineItem.js b/src/model/AssessmentHistoryLineItem.js new file mode 100644 index 0000000..5582994 --- /dev/null +++ b/src/model/AssessmentHistoryLineItem.js @@ -0,0 +1,115 @@ +/** + * Corellium API + * REST API to manage your virtual devices. + * + * The version of the OpenAPI document: 7.9.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; + +/** + * The AssessmentHistoryLineItem model module. + * @module model/AssessmentHistoryLineItem + * @version 0.4.3 + */ +class AssessmentHistoryLineItem { + /** + * Constructs a new AssessmentHistoryLineItem. + * + * @alias module:model/AssessmentHistoryLineItem + * @param date {Number} UNIX Date representing the month + * @param complete {Number} The number of successful assessments + * @param incomplete {Number} The number of failed assessments + */ + constructor(date, complete, incomplete) { + + AssessmentHistoryLineItem.initialize(this, date, complete, incomplete); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj, date, complete, incomplete) { + obj['date'] = date; + obj['complete'] = complete; + obj['incomplete'] = incomplete; + } + + /** + * Constructs a AssessmentHistoryLineItem from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/AssessmentHistoryLineItem} obj Optional instance to populate. + * @return {module:model/AssessmentHistoryLineItem} The populated AssessmentHistoryLineItem instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new AssessmentHistoryLineItem(); + + if (data.hasOwnProperty('date')) { + obj['date'] = ApiClient.convertToType(data['date'], 'Number'); + } + if (data.hasOwnProperty('complete')) { + obj['complete'] = ApiClient.convertToType(data['complete'], 'Number'); + } + if (data.hasOwnProperty('incomplete')) { + obj['incomplete'] = ApiClient.convertToType(data['incomplete'], 'Number'); + } + } + return obj; + } + + /** + * Validates the JSON data with respect to AssessmentHistoryLineItem. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @return {boolean} to indicate whether the JSON data is valid with respect to AssessmentHistoryLineItem. + */ + static validateJSON(data) { + // check to make sure all required properties are present in the JSON string + for (const property of AssessmentHistoryLineItem.RequiredProperties) { + if (!data[property]) { + throw new Error("The required field `" + property + "` is not found in the JSON data: " + JSON.stringify(data)); + } + } + + return true; + } + + +} + +AssessmentHistoryLineItem.RequiredProperties = ["date", "complete", "incomplete"]; + +/** + * UNIX Date representing the month + * @member {Number} date + */ +AssessmentHistoryLineItem.prototype['date'] = undefined; + +/** + * The number of successful assessments + * @member {Number} complete + */ +AssessmentHistoryLineItem.prototype['complete'] = undefined; + +/** + * The number of failed assessments + * @member {Number} incomplete + */ +AssessmentHistoryLineItem.prototype['incomplete'] = undefined; + + + + + + +export default AssessmentHistoryLineItem; + diff --git a/src/model/AssessmentIdStatus.js b/src/model/AssessmentIdStatus.js index 14c38e1..7c2eb7b 100644 --- a/src/model/AssessmentIdStatus.js +++ b/src/model/AssessmentIdStatus.js @@ -2,7 +2,7 @@ * Corellium API * REST API to manage your virtual devices. * - * The version of the OpenAPI document: 7.3.0 + * The version of the OpenAPI document: 7.9.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -17,7 +17,7 @@ import UpdateAssessmentDto from './UpdateAssessmentDto'; /** * The AssessmentIdStatus model module. * @module model/AssessmentIdStatus - * @version 0.4.1 + * @version 0.4.3 */ class AssessmentIdStatus { /** diff --git a/src/model/AttachInterfaceRequest.js b/src/model/AttachInterfaceRequest.js new file mode 100644 index 0000000..0d94b87 --- /dev/null +++ b/src/model/AttachInterfaceRequest.js @@ -0,0 +1,112 @@ +/** + * Corellium API + * REST API to manage your virtual devices. + * + * The version of the OpenAPI document: 7.9.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; + +/** + * The AttachInterfaceRequest model module. + * @module model/AttachInterfaceRequest + * @version 0.4.3 + */ +class AttachInterfaceRequest { + /** + * Constructs a new AttachInterfaceRequest. + * + * @alias module:model/AttachInterfaceRequest + * @param interfaceId {String} Interface identifier + * @param interconnectId {String} Interconnect identifier + */ + constructor(interfaceId, interconnectId) { + + AttachInterfaceRequest.initialize(this, interfaceId, interconnectId); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj, interfaceId, interconnectId) { + obj['interfaceId'] = interfaceId; + obj['interconnectId'] = interconnectId; + } + + /** + * Constructs a AttachInterfaceRequest from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/AttachInterfaceRequest} obj Optional instance to populate. + * @return {module:model/AttachInterfaceRequest} The populated AttachInterfaceRequest instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new AttachInterfaceRequest(); + + if (data.hasOwnProperty('interfaceId')) { + obj['interfaceId'] = ApiClient.convertToType(data['interfaceId'], 'String'); + } + if (data.hasOwnProperty('interconnectId')) { + obj['interconnectId'] = ApiClient.convertToType(data['interconnectId'], 'String'); + } + } + return obj; + } + + /** + * Validates the JSON data with respect to AttachInterfaceRequest. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @return {boolean} to indicate whether the JSON data is valid with respect to AttachInterfaceRequest. + */ + static validateJSON(data) { + // check to make sure all required properties are present in the JSON string + for (const property of AttachInterfaceRequest.RequiredProperties) { + if (!data[property]) { + throw new Error("The required field `" + property + "` is not found in the JSON data: " + JSON.stringify(data)); + } + } + // ensure the json data is a string + if (data['interfaceId'] && !(typeof data['interfaceId'] === 'string' || data['interfaceId'] instanceof String)) { + throw new Error("Expected the field `interfaceId` to be a primitive type in the JSON string but got " + data['interfaceId']); + } + // ensure the json data is a string + if (data['interconnectId'] && !(typeof data['interconnectId'] === 'string' || data['interconnectId'] instanceof String)) { + throw new Error("Expected the field `interconnectId` to be a primitive type in the JSON string but got " + data['interconnectId']); + } + + return true; + } + + +} + +AttachInterfaceRequest.RequiredProperties = ["interfaceId", "interconnectId"]; + +/** + * Interface identifier + * @member {String} interfaceId + */ +AttachInterfaceRequest.prototype['interfaceId'] = undefined; + +/** + * Interconnect identifier + * @member {String} interconnectId + */ +AttachInterfaceRequest.prototype['interconnectId'] = undefined; + + + + + + +export default AttachInterfaceRequest; + diff --git a/src/model/AuthProvider.js b/src/model/AuthProvider.js index 4d6a908..e7398f9 100644 --- a/src/model/AuthProvider.js +++ b/src/model/AuthProvider.js @@ -2,7 +2,7 @@ * Corellium API * REST API to manage your virtual devices. * - * The version of the OpenAPI document: 7.3.0 + * The version of the OpenAPI document: 7.9.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -16,7 +16,7 @@ import ApiClient from '../ApiClient'; /** * The AuthProvider model module. * @module model/AuthProvider - * @version 0.4.1 + * @version 0.4.3 */ class AuthProvider { /** diff --git a/src/model/Bit.js b/src/model/Bit.js index 886cc3f..a242d4c 100644 --- a/src/model/Bit.js +++ b/src/model/Bit.js @@ -2,7 +2,7 @@ * Corellium API * REST API to manage your virtual devices. * - * The version of the OpenAPI document: 7.3.0 + * The version of the OpenAPI document: 7.9.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/model/BtraceEnableOptions.js b/src/model/BtraceEnableOptions.js index c535d54..ffb3d71 100644 --- a/src/model/BtraceEnableOptions.js +++ b/src/model/BtraceEnableOptions.js @@ -2,7 +2,7 @@ * Corellium API * REST API to manage your virtual devices. * - * The version of the OpenAPI document: 7.3.0 + * The version of the OpenAPI document: 7.9.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -16,7 +16,7 @@ import ApiClient from '../ApiClient'; /** * The BtraceEnableOptions model module. * @module model/BtraceEnableOptions - * @version 0.4.1 + * @version 0.4.3 */ class BtraceEnableOptions { /** diff --git a/src/model/Button.js b/src/model/Button.js index 882e428..30f3fa9 100644 --- a/src/model/Button.js +++ b/src/model/Button.js @@ -2,7 +2,7 @@ * Corellium API * REST API to manage your virtual devices. * - * The version of the OpenAPI document: 7.3.0 + * The version of the OpenAPI document: 7.9.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/model/CheckSubdomainResponse.js b/src/model/CheckSubdomainResponse.js index d0aef16..2674f93 100644 --- a/src/model/CheckSubdomainResponse.js +++ b/src/model/CheckSubdomainResponse.js @@ -2,7 +2,7 @@ * Corellium API * REST API to manage your virtual devices. * - * The version of the OpenAPI document: 7.3.0 + * The version of the OpenAPI document: 7.9.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -16,7 +16,7 @@ import ApiClient from '../ApiClient'; /** * The CheckSubdomainResponse model module. * @module model/CheckSubdomainResponse - * @version 0.4.1 + * @version 0.4.3 */ class CheckSubdomainResponse { /** diff --git a/src/model/ClusterConfigurationPayload.js b/src/model/ClusterConfigurationPayload.js new file mode 100644 index 0000000..8815edd --- /dev/null +++ b/src/model/ClusterConfigurationPayload.js @@ -0,0 +1,98 @@ +/** + * Corellium API + * REST API to manage your virtual devices. + * + * The version of the OpenAPI document: 7.9.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; +import CoordinatorConfig from './CoordinatorConfig'; + +/** + * The ClusterConfigurationPayload model module. + * @module model/ClusterConfigurationPayload + * @version 0.4.3 + */ +class ClusterConfigurationPayload { + /** + * Constructs a new ClusterConfigurationPayload. + * + * @alias module:model/ClusterConfigurationPayload + */ + constructor() { + + ClusterConfigurationPayload.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a ClusterConfigurationPayload from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/ClusterConfigurationPayload} obj Optional instance to populate. + * @return {module:model/ClusterConfigurationPayload} The populated ClusterConfigurationPayload instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new ClusterConfigurationPayload(); + + if (data.hasOwnProperty('snapshotLimit')) { + obj['snapshotLimit'] = ApiClient.convertToType(data['snapshotLimit'], 'Number'); + } + if (data.hasOwnProperty('coordinatorConfig')) { + obj['coordinatorConfig'] = CoordinatorConfig.constructFromObject(data['coordinatorConfig']); + } + } + return obj; + } + + /** + * Validates the JSON data with respect to ClusterConfigurationPayload. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @return {boolean} to indicate whether the JSON data is valid with respect to ClusterConfigurationPayload. + */ + static validateJSON(data) { + // validate the optional field `coordinatorConfig` + if (data['coordinatorConfig']) { // data not null + CoordinatorConfig.validateJSON(data['coordinatorConfig']); + } + + return true; + } + + +} + + + +/** + * Designates the maximum number of snapshots that can be taken in a cluster + * @member {Number} snapshotLimit + */ +ClusterConfigurationPayload.prototype['snapshotLimit'] = undefined; + +/** + * @member {module:model/CoordinatorConfig} coordinatorConfig + */ +ClusterConfigurationPayload.prototype['coordinatorConfig'] = undefined; + + + + + + +export default ClusterConfigurationPayload; + diff --git a/src/model/ClusterSnapshot.js b/src/model/ClusterSnapshot.js new file mode 100644 index 0000000..ded2d81 --- /dev/null +++ b/src/model/ClusterSnapshot.js @@ -0,0 +1,89 @@ +/** + * Corellium API + * REST API to manage your virtual devices. + * + * The version of the OpenAPI document: 7.9.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; + +/** + * The ClusterSnapshot model module. + * @module model/ClusterSnapshot + * @version 0.4.3 + */ +class ClusterSnapshot { + /** + * Constructs a new ClusterSnapshot. + * + * @alias module:model/ClusterSnapshot + */ + constructor() { + + ClusterSnapshot.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a ClusterSnapshot from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/ClusterSnapshot} obj Optional instance to populate. + * @return {module:model/ClusterSnapshot} The populated ClusterSnapshot instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new ClusterSnapshot(); + + if (data.hasOwnProperty('identifier')) { + obj['identifier'] = ApiClient.convertToType(data['identifier'], 'String'); + } + } + return obj; + } + + /** + * Validates the JSON data with respect to ClusterSnapshot. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @return {boolean} to indicate whether the JSON data is valid with respect to ClusterSnapshot. + */ + static validateJSON(data) { + // ensure the json data is a string + if (data['identifier'] && !(typeof data['identifier'] === 'string' || data['identifier'] instanceof String)) { + throw new Error("Expected the field `identifier` to be a primitive type in the JSON string but got " + data['identifier']); + } + + return true; + } + + +} + + + +/** + * Unique identifier for the snapshot + * @member {String} identifier + */ +ClusterSnapshot.prototype['identifier'] = undefined; + + + + + + +export default ClusterSnapshot; + diff --git a/src/model/ConfigResponse.js b/src/model/ConfigResponse.js index e977eca..6ec7f9f 100644 --- a/src/model/ConfigResponse.js +++ b/src/model/ConfigResponse.js @@ -2,7 +2,7 @@ * Corellium API * REST API to manage your virtual devices. * - * The version of the OpenAPI document: 7.3.0 + * The version of the OpenAPI document: 7.9.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -20,7 +20,7 @@ import Trial from './Trial'; /** * The ConfigResponse model module. * @module model/ConfigResponse - * @version 0.4.1 + * @version 0.4.3 */ class ConfigResponse { /** @@ -55,6 +55,12 @@ class ConfigResponse { if (data.hasOwnProperty('onSite')) { obj['onSite'] = ApiClient.convertToType(data['onSite'], 'Boolean'); } + if (data.hasOwnProperty('networkTypes')) { + obj['networkTypes'] = ApiClient.convertToType(data['networkTypes'], ['String']); + } + if (data.hasOwnProperty('networkType')) { + obj['networkType'] = ApiClient.convertToType(data['networkType'], 'String'); + } if (data.hasOwnProperty('showDomainSettings')) { obj['showDomainSettings'] = ApiClient.convertToType(data['showDomainSettings'], 'Boolean'); } @@ -158,6 +164,14 @@ class ConfigResponse { * @return {boolean} to indicate whether the JSON data is valid with respect to ConfigResponse. */ static validateJSON(data) { + // ensure the json data is an array + if (!Array.isArray(data['networkTypes'])) { + throw new Error("Expected the field `networkTypes` to be an array in the JSON data but got " + data['networkTypes']); + } + // ensure the json data is a string + if (data['networkType'] && !(typeof data['networkType'] === 'string' || data['networkType'] instanceof String)) { + throw new Error("Expected the field `networkType` to be a primitive type in the JSON string but got " + data['networkType']); + } // ensure the json data is a string if (data['version'] && !(typeof data['version'] === 'string' || data['version'] instanceof String)) { throw new Error("Expected the field `version` to be a primitive type in the JSON string but got " + data['version']); @@ -267,6 +281,18 @@ class ConfigResponse { */ ConfigResponse.prototype['onSite'] = undefined; +/** + * Valid network types (e.g. \"nat\", \"bridged\", \"routed\") + * @member {Array.} networkTypes + */ +ConfigResponse.prototype['networkTypes'] = undefined; + +/** + * Current network type setting + * @member {String} networkType + */ +ConfigResponse.prototype['networkType'] = undefined; + /** * Denotes whether to show domain settings * @member {Boolean} showDomainSettings diff --git a/src/model/ConfigResponseMaintenance.js b/src/model/ConfigResponseMaintenance.js index f751fb4..5b9d2b6 100644 --- a/src/model/ConfigResponseMaintenance.js +++ b/src/model/ConfigResponseMaintenance.js @@ -2,7 +2,7 @@ * Corellium API * REST API to manage your virtual devices. * - * The version of the OpenAPI document: 7.3.0 + * The version of the OpenAPI document: 7.9.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -17,7 +17,7 @@ import Maintenance from './Maintenance'; /** * The ConfigResponseMaintenance model module. * @module model/ConfigResponseMaintenance - * @version 0.4.1 + * @version 0.4.3 */ class ConfigResponseMaintenance { /** diff --git a/src/model/CoordinatorConfig.js b/src/model/CoordinatorConfig.js new file mode 100644 index 0000000..bff9406 --- /dev/null +++ b/src/model/CoordinatorConfig.js @@ -0,0 +1,85 @@ +/** + * Corellium API + * REST API to manage your virtual devices. + * + * The version of the OpenAPI document: 7.9.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; + +/** + * The CoordinatorConfig model module. + * @module model/CoordinatorConfig + * @version 0.4.3 + */ +class CoordinatorConfig { + /** + * Constructs a new CoordinatorConfig. + * + * @alias module:model/CoordinatorConfig + */ + constructor() { + + CoordinatorConfig.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a CoordinatorConfig from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/CoordinatorConfig} obj Optional instance to populate. + * @return {module:model/CoordinatorConfig} The populated CoordinatorConfig instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new CoordinatorConfig(); + + if (data.hasOwnProperty('usbMediaAccessEnabled')) { + obj['usbMediaAccessEnabled'] = ApiClient.convertToType(data['usbMediaAccessEnabled'], 'Boolean'); + } + } + return obj; + } + + /** + * Validates the JSON data with respect to CoordinatorConfig. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @return {boolean} to indicate whether the JSON data is valid with respect to CoordinatorConfig. + */ + static validateJSON(data) { + + return true; + } + + +} + + + +/** + * Designates the maximum number of snapshots that can be taken in a cluster + * @member {Boolean} usbMediaAccessEnabled + */ +CoordinatorConfig.prototype['usbMediaAccessEnabled'] = undefined; + + + + + + +export default CoordinatorConfig; + diff --git a/src/model/CouponOptions.js b/src/model/CouponOptions.js index 02b67dc..e7c2a14 100644 --- a/src/model/CouponOptions.js +++ b/src/model/CouponOptions.js @@ -2,7 +2,7 @@ * Corellium API * REST API to manage your virtual devices. * - * The version of the OpenAPI document: 7.3.0 + * The version of the OpenAPI document: 7.9.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -16,7 +16,7 @@ import ApiClient from '../ApiClient'; /** * The CouponOptions model module. * @module model/CouponOptions - * @version 0.4.1 + * @version 0.4.3 */ class CouponOptions { /** diff --git a/src/model/CreateAssessmentDto.js b/src/model/CreateAssessmentDto.js index 10ab033..5bec634 100644 --- a/src/model/CreateAssessmentDto.js +++ b/src/model/CreateAssessmentDto.js @@ -2,7 +2,7 @@ * Corellium API * REST API to manage your virtual devices. * - * The version of the OpenAPI document: 7.3.0 + * The version of the OpenAPI document: 7.9.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -16,7 +16,7 @@ import ApiClient from '../ApiClient'; /** * The CreateAssessmentDto model module. * @module model/CreateAssessmentDto - * @version 0.4.1 + * @version 0.4.3 */ class CreateAssessmentDto { /** diff --git a/src/model/CreateInterconnectRequest.js b/src/model/CreateInterconnectRequest.js new file mode 100644 index 0000000..b39be15 --- /dev/null +++ b/src/model/CreateInterconnectRequest.js @@ -0,0 +1,162 @@ +/** + * Corellium API + * REST API to manage your virtual devices. + * + * The version of the OpenAPI document: 7.9.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; + +/** + * The CreateInterconnectRequest model module. + * @module model/CreateInterconnectRequest + * @version 0.4.3 + */ +class CreateInterconnectRequest { + /** + * Constructs a new CreateInterconnectRequest. + * + * @alias module:model/CreateInterconnectRequest + */ + constructor() { + + CreateInterconnectRequest.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a CreateInterconnectRequest from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/CreateInterconnectRequest} obj Optional instance to populate. + * @return {module:model/CreateInterconnectRequest} The populated CreateInterconnectRequest instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new CreateInterconnectRequest(); + + if (data.hasOwnProperty('name')) { + obj['name'] = ApiClient.convertToType(data['name'], 'String'); + } + if (data.hasOwnProperty('protocol')) { + obj['protocol'] = ApiClient.convertToType(data['protocol'], 'String'); + } + if (data.hasOwnProperty('type')) { + obj['type'] = ApiClient.convertToType(data['type'], 'String'); + } + if (data.hasOwnProperty('project')) { + obj['project'] = ApiClient.convertToType(data['project'], 'String'); + } + if (data.hasOwnProperty('interfaces')) { + obj['interfaces'] = ApiClient.convertToType(data['interfaces'], ['String']); + } + } + return obj; + } + + /** + * Validates the JSON data with respect to CreateInterconnectRequest. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @return {boolean} to indicate whether the JSON data is valid with respect to CreateInterconnectRequest. + */ + static validateJSON(data) { + // ensure the json data is a string + if (data['name'] && !(typeof data['name'] === 'string' || data['name'] instanceof String)) { + throw new Error("Expected the field `name` to be a primitive type in the JSON string but got " + data['name']); + } + // ensure the json data is a string + if (data['protocol'] && !(typeof data['protocol'] === 'string' || data['protocol'] instanceof String)) { + throw new Error("Expected the field `protocol` to be a primitive type in the JSON string but got " + data['protocol']); + } + // ensure the json data is a string + if (data['type'] && !(typeof data['type'] === 'string' || data['type'] instanceof String)) { + throw new Error("Expected the field `type` to be a primitive type in the JSON string but got " + data['type']); + } + // ensure the json data is a string + if (data['project'] && !(typeof data['project'] === 'string' || data['project'] instanceof String)) { + throw new Error("Expected the field `project` to be a primitive type in the JSON string but got " + data['project']); + } + // ensure the json data is an array + if (!Array.isArray(data['interfaces'])) { + throw new Error("Expected the field `interfaces` to be an array in the JSON data but got " + data['interfaces']); + } + + return true; + } + + +} + + + +/** + * The name of the interconnect + * @member {String} name + */ +CreateInterconnectRequest.prototype['name'] = undefined; + +/** + * The protocol used by the interconnect + * @member {String} protocol + */ +CreateInterconnectRequest.prototype['protocol'] = undefined; + +/** + * The type of interconnect + * @member {module:model/CreateInterconnectRequest.TypeEnum} type + */ +CreateInterconnectRequest.prototype['type'] = undefined; + +/** + * The UUID of the project + * @member {String} project + */ +CreateInterconnectRequest.prototype['project'] = undefined; + +/** + * Array of instance identifiers + * @member {Array.} interfaces + */ +CreateInterconnectRequest.prototype['interfaces'] = undefined; + + + + + +/** + * Allowed values for the type property. + * @enum {String} + * @readonly + */ +CreateInterconnectRequest['TypeEnum'] = { + + /** + * value: "hub" + * @const + */ + "hub": "hub", + + /** + * value: "switch" + * @const + */ + "switch": "switch" +}; + + + +export default CreateInterconnectRequest; + diff --git a/src/model/CreateNetworkConnectionOptions.js b/src/model/CreateNetworkConnectionOptions.js index 8612a4a..c855047 100644 --- a/src/model/CreateNetworkConnectionOptions.js +++ b/src/model/CreateNetworkConnectionOptions.js @@ -2,7 +2,7 @@ * Corellium API * REST API to manage your virtual devices. * - * The version of the OpenAPI document: 7.3.0 + * The version of the OpenAPI document: 7.9.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -16,7 +16,7 @@ import ApiClient from '../ApiClient'; /** * The CreateNetworkConnectionOptions model module. * @module model/CreateNetworkConnectionOptions - * @version 0.4.1 + * @version 0.4.3 */ class CreateNetworkConnectionOptions { /** diff --git a/src/model/CreateTeam.js b/src/model/CreateTeam.js index fdfe369..3fdf1fe 100644 --- a/src/model/CreateTeam.js +++ b/src/model/CreateTeam.js @@ -2,7 +2,7 @@ * Corellium API * REST API to manage your virtual devices. * - * The version of the OpenAPI document: 7.3.0 + * The version of the OpenAPI document: 7.9.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -16,7 +16,7 @@ import ApiClient from '../ApiClient'; /** * The CreateTeam model module. * @module model/CreateTeam - * @version 0.4.1 + * @version 0.4.3 */ class CreateTeam { /** diff --git a/src/model/CreatedBy.js b/src/model/CreatedBy.js index fe10827..a4d7686 100644 --- a/src/model/CreatedBy.js +++ b/src/model/CreatedBy.js @@ -2,7 +2,7 @@ * Corellium API * REST API to manage your virtual devices. * - * The version of the OpenAPI document: 7.3.0 + * The version of the OpenAPI document: 7.9.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -16,7 +16,7 @@ import ApiClient from '../ApiClient'; /** * The CreatedBy model module. * @module model/CreatedBy - * @version 0.4.1 + * @version 0.4.3 */ class CreatedBy { /** diff --git a/src/model/Credentials.js b/src/model/Credentials.js index f14e809..873e6f1 100644 --- a/src/model/Credentials.js +++ b/src/model/Credentials.js @@ -2,7 +2,7 @@ * Corellium API * REST API to manage your virtual devices. * - * The version of the OpenAPI document: 7.3.0 + * The version of the OpenAPI document: 7.9.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -16,7 +16,7 @@ import ApiClient from '../ApiClient'; /** * The Credentials model module. * @module model/Credentials - * @version 0.4.1 + * @version 0.4.3 */ class Credentials { /** diff --git a/src/model/DetachInterfaceRequest.js b/src/model/DetachInterfaceRequest.js new file mode 100644 index 0000000..589879c --- /dev/null +++ b/src/model/DetachInterfaceRequest.js @@ -0,0 +1,97 @@ +/** + * Corellium API + * REST API to manage your virtual devices. + * + * The version of the OpenAPI document: 7.9.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; + +/** + * The DetachInterfaceRequest model module. + * @module model/DetachInterfaceRequest + * @version 0.4.3 + */ +class DetachInterfaceRequest { + /** + * Constructs a new DetachInterfaceRequest. + * + * @alias module:model/DetachInterfaceRequest + * @param interconnectId {String} Interconnect identifier + */ + constructor(interconnectId) { + + DetachInterfaceRequest.initialize(this, interconnectId); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj, interconnectId) { + obj['interconnectId'] = interconnectId; + } + + /** + * Constructs a DetachInterfaceRequest from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/DetachInterfaceRequest} obj Optional instance to populate. + * @return {module:model/DetachInterfaceRequest} The populated DetachInterfaceRequest instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new DetachInterfaceRequest(); + + if (data.hasOwnProperty('interconnectId')) { + obj['interconnectId'] = ApiClient.convertToType(data['interconnectId'], 'String'); + } + } + return obj; + } + + /** + * Validates the JSON data with respect to DetachInterfaceRequest. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @return {boolean} to indicate whether the JSON data is valid with respect to DetachInterfaceRequest. + */ + static validateJSON(data) { + // check to make sure all required properties are present in the JSON string + for (const property of DetachInterfaceRequest.RequiredProperties) { + if (!data[property]) { + throw new Error("The required field `" + property + "` is not found in the JSON data: " + JSON.stringify(data)); + } + } + // ensure the json data is a string + if (data['interconnectId'] && !(typeof data['interconnectId'] === 'string' || data['interconnectId'] instanceof String)) { + throw new Error("Expected the field `interconnectId` to be a primitive type in the JSON string but got " + data['interconnectId']); + } + + return true; + } + + +} + +DetachInterfaceRequest.RequiredProperties = ["interconnectId"]; + +/** + * Interconnect identifier + * @member {String} interconnectId + */ +DetachInterfaceRequest.prototype['interconnectId'] = undefined; + + + + + + +export default DetachInterfaceRequest; + diff --git a/src/model/Device.js b/src/model/Device.js new file mode 100644 index 0000000..479e023 --- /dev/null +++ b/src/model/Device.js @@ -0,0 +1,205 @@ +/** + * Corellium API + * REST API to manage your virtual devices. + * + * The version of the OpenAPI document: 7.9.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; + +/** + * The Device model module. + * @module model/Device + * @version 0.4.3 + */ +class Device { + /** + * Constructs a new Device. + * + * @alias module:model/Device + * @param type {String} + * @param model {String} + * @param name {String} + */ + constructor(type, model, name) { + + Device.initialize(this, type, model, name); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj, type, model, name) { + obj['type'] = type; + obj['model'] = model; + obj['name'] = name; + } + + /** + * Constructs a Device from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/Device} obj Optional instance to populate. + * @return {module:model/Device} The populated Device instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new Device(); + + if (data.hasOwnProperty('type')) { + obj['type'] = ApiClient.convertToType(data['type'], 'String'); + } + if (data.hasOwnProperty('model')) { + obj['model'] = ApiClient.convertToType(data['model'], 'String'); + } + if (data.hasOwnProperty('name')) { + obj['name'] = ApiClient.convertToType(data['name'], 'String'); + } + if (data.hasOwnProperty('platform')) { + obj['platform'] = ApiClient.convertToType(data['platform'], 'String'); + } + if (data.hasOwnProperty('hwmodel')) { + obj['hwmodel'] = ApiClient.convertToType(data['hwmodel'], 'String'); + } + if (data.hasOwnProperty('bdid')) { + obj['bdid'] = ApiClient.convertToType(data['bdid'], 'String'); + } + if (data.hasOwnProperty('cpid')) { + obj['cpid'] = ApiClient.convertToType(data['cpid'], 'String'); + } + if (data.hasOwnProperty('createdAt')) { + obj['createdAt'] = ApiClient.convertToType(data['createdAt'], 'String'); + } + if (data.hasOwnProperty('updatedAt')) { + obj['updatedAt'] = ApiClient.convertToType(data['updatedAt'], 'String'); + } + } + return obj; + } + + /** + * Validates the JSON data with respect to Device. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @return {boolean} to indicate whether the JSON data is valid with respect to Device. + */ + static validateJSON(data) { + // check to make sure all required properties are present in the JSON string + for (const property of Device.RequiredProperties) { + if (!data[property]) { + throw new Error("The required field `" + property + "` is not found in the JSON data: " + JSON.stringify(data)); + } + } + // ensure the json data is a string + if (data['type'] && !(typeof data['type'] === 'string' || data['type'] instanceof String)) { + throw new Error("Expected the field `type` to be a primitive type in the JSON string but got " + data['type']); + } + // ensure the json data is a string + if (data['model'] && !(typeof data['model'] === 'string' || data['model'] instanceof String)) { + throw new Error("Expected the field `model` to be a primitive type in the JSON string but got " + data['model']); + } + // ensure the json data is a string + if (data['name'] && !(typeof data['name'] === 'string' || data['name'] instanceof String)) { + throw new Error("Expected the field `name` to be a primitive type in the JSON string but got " + data['name']); + } + // ensure the json data is a string + if (data['platform'] && !(typeof data['platform'] === 'string' || data['platform'] instanceof String)) { + throw new Error("Expected the field `platform` to be a primitive type in the JSON string but got " + data['platform']); + } + // ensure the json data is a string + if (data['hwmodel'] && !(typeof data['hwmodel'] === 'string' || data['hwmodel'] instanceof String)) { + throw new Error("Expected the field `hwmodel` to be a primitive type in the JSON string but got " + data['hwmodel']); + } + // ensure the json data is a string + if (data['bdid'] && !(typeof data['bdid'] === 'string' || data['bdid'] instanceof String)) { + throw new Error("Expected the field `bdid` to be a primitive type in the JSON string but got " + data['bdid']); + } + // ensure the json data is a string + if (data['cpid'] && !(typeof data['cpid'] === 'string' || data['cpid'] instanceof String)) { + throw new Error("Expected the field `cpid` to be a primitive type in the JSON string but got " + data['cpid']); + } + // ensure the json data is a string + if (data['createdAt'] && !(typeof data['createdAt'] === 'string' || data['createdAt'] instanceof String)) { + throw new Error("Expected the field `createdAt` to be a primitive type in the JSON string but got " + data['createdAt']); + } + // ensure the json data is a string + if (data['updatedAt'] && !(typeof data['updatedAt'] === 'string' || data['updatedAt'] instanceof String)) { + throw new Error("Expected the field `updatedAt` to be a primitive type in the JSON string but got " + data['updatedAt']); + } + + return true; + } + + +} + +Device.RequiredProperties = ["type", "model", "name"]; + +/** + * + * @member {String} type + */ +Device.prototype['type'] = undefined; + +/** + * + * @member {String} model + */ +Device.prototype['model'] = undefined; + +/** + * + * @member {String} name + */ +Device.prototype['name'] = undefined; + +/** + * + * @member {String} platform + */ +Device.prototype['platform'] = undefined; + +/** + * + * @member {String} hwmodel + */ +Device.prototype['hwmodel'] = undefined; + +/** + * + * @member {String} bdid + */ +Device.prototype['bdid'] = undefined; + +/** + * + * @member {String} cpid + */ +Device.prototype['cpid'] = undefined; + +/** + * + * @member {String} createdAt + */ +Device.prototype['createdAt'] = undefined; + +/** + * + * @member {String} updatedAt + */ +Device.prototype['updatedAt'] = undefined; + + + + + + +export default Device; + diff --git a/src/model/DomainAuthProviderRequest.js b/src/model/DomainAuthProviderRequest.js index c45617b..4be18f2 100644 --- a/src/model/DomainAuthProviderRequest.js +++ b/src/model/DomainAuthProviderRequest.js @@ -2,7 +2,7 @@ * Corellium API * REST API to manage your virtual devices. * - * The version of the OpenAPI document: 7.3.0 + * The version of the OpenAPI document: 7.9.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -17,7 +17,7 @@ import OpenIDConfig from './OpenIDConfig'; /** * The DomainAuthProviderRequest model module. * @module model/DomainAuthProviderRequest - * @version 0.4.1 + * @version 0.4.3 */ class DomainAuthProviderRequest { /** diff --git a/src/model/DomainAuthProviderResponse.js b/src/model/DomainAuthProviderResponse.js index 4ce88d4..2c315fb 100644 --- a/src/model/DomainAuthProviderResponse.js +++ b/src/model/DomainAuthProviderResponse.js @@ -2,7 +2,7 @@ * Corellium API * REST API to manage your virtual devices. * - * The version of the OpenAPI document: 7.3.0 + * The version of the OpenAPI document: 7.9.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -17,7 +17,7 @@ import OpenIDConfig from './OpenIDConfig'; /** * The DomainAuthProviderResponse model module. * @module model/DomainAuthProviderResponse - * @version 0.4.1 + * @version 0.4.3 */ class DomainAuthProviderResponse { /** diff --git a/src/model/DomainOptions.js b/src/model/DomainOptions.js index d12fbe2..5c043ef 100644 --- a/src/model/DomainOptions.js +++ b/src/model/DomainOptions.js @@ -2,7 +2,7 @@ * Corellium API * REST API to manage your virtual devices. * - * The version of the OpenAPI document: 7.3.0 + * The version of the OpenAPI document: 7.9.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -18,7 +18,7 @@ import TrialExtension from './TrialExtension'; /** * The DomainOptions model module. * @module model/DomainOptions - * @version 0.4.1 + * @version 0.4.3 */ class DomainOptions { /** diff --git a/src/model/ExtendedFirmwareAssetInfo.js b/src/model/ExtendedFirmwareAssetInfo.js new file mode 100644 index 0000000..0360466 --- /dev/null +++ b/src/model/ExtendedFirmwareAssetInfo.js @@ -0,0 +1,112 @@ +/** + * Corellium API + * REST API to manage your virtual devices. + * + * The version of the OpenAPI document: 7.9.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; + +/** + * The ExtendedFirmwareAssetInfo model module. + * @module model/ExtendedFirmwareAssetInfo + * @version 0.4.3 + */ +class ExtendedFirmwareAssetInfo { + /** + * Constructs a new ExtendedFirmwareAssetInfo. + * + * @alias module:model/ExtendedFirmwareAssetInfo + * @param firmwares {Array.} Firmware Records from FW Service + * @param instances {Array.} Instances using one of the firmwares, and thus the asset + */ + constructor(firmwares, instances) { + + ExtendedFirmwareAssetInfo.initialize(this, firmwares, instances); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj, firmwares, instances) { + obj['firmwares'] = firmwares; + obj['instances'] = instances; + } + + /** + * Constructs a ExtendedFirmwareAssetInfo from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/ExtendedFirmwareAssetInfo} obj Optional instance to populate. + * @return {module:model/ExtendedFirmwareAssetInfo} The populated ExtendedFirmwareAssetInfo instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new ExtendedFirmwareAssetInfo(); + + if (data.hasOwnProperty('firmwares')) { + obj['firmwares'] = ApiClient.convertToType(data['firmwares'], ['String']); + } + if (data.hasOwnProperty('instances')) { + obj['instances'] = ApiClient.convertToType(data['instances'], ['String']); + } + } + return obj; + } + + /** + * Validates the JSON data with respect to ExtendedFirmwareAssetInfo. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @return {boolean} to indicate whether the JSON data is valid with respect to ExtendedFirmwareAssetInfo. + */ + static validateJSON(data) { + // check to make sure all required properties are present in the JSON string + for (const property of ExtendedFirmwareAssetInfo.RequiredProperties) { + if (!data[property]) { + throw new Error("The required field `" + property + "` is not found in the JSON data: " + JSON.stringify(data)); + } + } + // ensure the json data is an array + if (!Array.isArray(data['firmwares'])) { + throw new Error("Expected the field `firmwares` to be an array in the JSON data but got " + data['firmwares']); + } + // ensure the json data is an array + if (!Array.isArray(data['instances'])) { + throw new Error("Expected the field `instances` to be an array in the JSON data but got " + data['instances']); + } + + return true; + } + + +} + +ExtendedFirmwareAssetInfo.RequiredProperties = ["firmwares", "instances"]; + +/** + * Firmware Records from FW Service + * @member {Array.} firmwares + */ +ExtendedFirmwareAssetInfo.prototype['firmwares'] = undefined; + +/** + * Instances using one of the firmwares, and thus the asset + * @member {Array.} instances + */ +ExtendedFirmwareAssetInfo.prototype['instances'] = undefined; + + + + + + +export default ExtendedFirmwareAssetInfo; + diff --git a/src/model/Extension.js b/src/model/Extension.js index 24666ef..b113434 100644 --- a/src/model/Extension.js +++ b/src/model/Extension.js @@ -2,7 +2,7 @@ * Corellium API * REST API to manage your virtual devices. * - * The version of the OpenAPI document: 7.3.0 + * The version of the OpenAPI document: 7.9.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -16,7 +16,7 @@ import ApiClient from '../ApiClient'; /** * The Extension model module. * @module model/Extension - * @version 0.4.1 + * @version 0.4.3 */ class Extension { /** diff --git a/src/model/Features.js b/src/model/Features.js index b6ce819..c1e9395 100644 --- a/src/model/Features.js +++ b/src/model/Features.js @@ -2,7 +2,7 @@ * Corellium API * REST API to manage your virtual devices. * - * The version of the OpenAPI document: 7.3.0 + * The version of the OpenAPI document: 7.9.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -16,7 +16,7 @@ import ApiClient from '../ApiClient'; /** * The Features model module. * @module model/Features - * @version 0.4.1 + * @version 0.4.3 */ class Features { /** diff --git a/src/model/FileChanges.js b/src/model/FileChanges.js index 2437a71..baa70bc 100644 --- a/src/model/FileChanges.js +++ b/src/model/FileChanges.js @@ -2,7 +2,7 @@ * Corellium API * REST API to manage your virtual devices. * - * The version of the OpenAPI document: 7.3.0 + * The version of the OpenAPI document: 7.9.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -16,7 +16,7 @@ import ApiClient from '../ApiClient'; /** * The FileChanges model module. * @module model/FileChanges - * @version 0.4.1 + * @version 0.4.3 */ class FileChanges { /** diff --git a/src/model/Firmware.js b/src/model/Firmware.js index 5a4494f..c9fabef 100644 --- a/src/model/Firmware.js +++ b/src/model/Firmware.js @@ -2,7 +2,7 @@ * Corellium API * REST API to manage your virtual devices. * - * The version of the OpenAPI document: 7.3.0 + * The version of the OpenAPI document: 7.9.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -16,7 +16,7 @@ import ApiClient from '../ApiClient'; /** * The Firmware model module. * @module model/Firmware - * @version 0.4.1 + * @version 0.4.3 */ class Firmware { /** diff --git a/src/model/FirmwareAsset.js b/src/model/FirmwareAsset.js new file mode 100644 index 0000000..3b06ece --- /dev/null +++ b/src/model/FirmwareAsset.js @@ -0,0 +1,216 @@ +/** + * Corellium API + * REST API to manage your virtual devices. + * + * The version of the OpenAPI document: 7.9.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; + +/** + * The FirmwareAsset model module. + * @module model/FirmwareAsset + * @version 0.4.3 + */ +class FirmwareAsset { + /** + * Constructs a new FirmwareAsset. + * + * @alias module:model/FirmwareAsset + * @param domain {String} + * @param url {String} + * @param payload {String} + * @param size {Number} + */ + constructor(domain, url, payload, size) { + + FirmwareAsset.initialize(this, domain, url, payload, size); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj, domain, url, payload, size) { + obj['domain'] = domain; + obj['url'] = url; + obj['payload'] = payload; + obj['size'] = size; + } + + /** + * Constructs a FirmwareAsset from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/FirmwareAsset} obj Optional instance to populate. + * @return {module:model/FirmwareAsset} The populated FirmwareAsset instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new FirmwareAsset(); + + if (data.hasOwnProperty('domain')) { + obj['domain'] = ApiClient.convertToType(data['domain'], 'String'); + } + if (data.hasOwnProperty('url')) { + obj['url'] = ApiClient.convertToType(data['url'], 'String'); + } + if (data.hasOwnProperty('payload')) { + obj['payload'] = ApiClient.convertToType(data['payload'], 'String'); + } + if (data.hasOwnProperty('size')) { + obj['size'] = ApiClient.convertToType(data['size'], 'Number'); + } + if (data.hasOwnProperty('md5sum')) { + obj['md5sum'] = ApiClient.convertToType(data['md5sum'], 'String'); + } + if (data.hasOwnProperty('sha1sum')) { + obj['sha1sum'] = ApiClient.convertToType(data['sha1sum'], 'String'); + } + if (data.hasOwnProperty('sha256sum')) { + obj['sha256sum'] = ApiClient.convertToType(data['sha256sum'], 'String'); + } + if (data.hasOwnProperty('uploaddate')) { + obj['uploaddate'] = ApiClient.convertToType(data['uploaddate'], 'String'); + } + if (data.hasOwnProperty('createdAt')) { + obj['createdAt'] = ApiClient.convertToType(data['createdAt'], 'String'); + } + if (data.hasOwnProperty('updatedAt')) { + obj['updatedAt'] = ApiClient.convertToType(data['updatedAt'], 'String'); + } + } + return obj; + } + + /** + * Validates the JSON data with respect to FirmwareAsset. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @return {boolean} to indicate whether the JSON data is valid with respect to FirmwareAsset. + */ + static validateJSON(data) { + // check to make sure all required properties are present in the JSON string + for (const property of FirmwareAsset.RequiredProperties) { + if (!data[property]) { + throw new Error("The required field `" + property + "` is not found in the JSON data: " + JSON.stringify(data)); + } + } + // ensure the json data is a string + if (data['domain'] && !(typeof data['domain'] === 'string' || data['domain'] instanceof String)) { + throw new Error("Expected the field `domain` to be a primitive type in the JSON string but got " + data['domain']); + } + // ensure the json data is a string + if (data['url'] && !(typeof data['url'] === 'string' || data['url'] instanceof String)) { + throw new Error("Expected the field `url` to be a primitive type in the JSON string but got " + data['url']); + } + // ensure the json data is a string + if (data['payload'] && !(typeof data['payload'] === 'string' || data['payload'] instanceof String)) { + throw new Error("Expected the field `payload` to be a primitive type in the JSON string but got " + data['payload']); + } + // ensure the json data is a string + if (data['md5sum'] && !(typeof data['md5sum'] === 'string' || data['md5sum'] instanceof String)) { + throw new Error("Expected the field `md5sum` to be a primitive type in the JSON string but got " + data['md5sum']); + } + // ensure the json data is a string + if (data['sha1sum'] && !(typeof data['sha1sum'] === 'string' || data['sha1sum'] instanceof String)) { + throw new Error("Expected the field `sha1sum` to be a primitive type in the JSON string but got " + data['sha1sum']); + } + // ensure the json data is a string + if (data['sha256sum'] && !(typeof data['sha256sum'] === 'string' || data['sha256sum'] instanceof String)) { + throw new Error("Expected the field `sha256sum` to be a primitive type in the JSON string but got " + data['sha256sum']); + } + // ensure the json data is a string + if (data['uploaddate'] && !(typeof data['uploaddate'] === 'string' || data['uploaddate'] instanceof String)) { + throw new Error("Expected the field `uploaddate` to be a primitive type in the JSON string but got " + data['uploaddate']); + } + // ensure the json data is a string + if (data['createdAt'] && !(typeof data['createdAt'] === 'string' || data['createdAt'] instanceof String)) { + throw new Error("Expected the field `createdAt` to be a primitive type in the JSON string but got " + data['createdAt']); + } + // ensure the json data is a string + if (data['updatedAt'] && !(typeof data['updatedAt'] === 'string' || data['updatedAt'] instanceof String)) { + throw new Error("Expected the field `updatedAt` to be a primitive type in the JSON string but got " + data['updatedAt']); + } + + return true; + } + + +} + +FirmwareAsset.RequiredProperties = ["domain", "url", "payload", "size"]; + +/** + * + * @member {String} domain + */ +FirmwareAsset.prototype['domain'] = undefined; + +/** + * + * @member {String} url + */ +FirmwareAsset.prototype['url'] = undefined; + +/** + * + * @member {String} payload + */ +FirmwareAsset.prototype['payload'] = undefined; + +/** + * + * @member {Number} size + */ +FirmwareAsset.prototype['size'] = undefined; + +/** + * + * @member {String} md5sum + */ +FirmwareAsset.prototype['md5sum'] = undefined; + +/** + * + * @member {String} sha1sum + */ +FirmwareAsset.prototype['sha1sum'] = undefined; + +/** + * + * @member {String} sha256sum + */ +FirmwareAsset.prototype['sha256sum'] = undefined; + +/** + * + * @member {String} uploaddate + */ +FirmwareAsset.prototype['uploaddate'] = undefined; + +/** + * + * @member {String} createdAt + */ +FirmwareAsset.prototype['createdAt'] = undefined; + +/** + * + * @member {String} updatedAt + */ +FirmwareAsset.prototype['updatedAt'] = undefined; + + + + + + +export default FirmwareAsset; + diff --git a/src/model/FirmwareServiceConfiguration.js b/src/model/FirmwareServiceConfiguration.js new file mode 100644 index 0000000..48a27e9 --- /dev/null +++ b/src/model/FirmwareServiceConfiguration.js @@ -0,0 +1,121 @@ +/** + * Corellium API + * REST API to manage your virtual devices. + * + * The version of the OpenAPI document: 7.9.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; + +/** + * The FirmwareServiceConfiguration model module. + * @module model/FirmwareServiceConfiguration + * @version 0.4.3 + */ +class FirmwareServiceConfiguration { + /** + * Constructs a new FirmwareServiceConfiguration. + * + * @alias module:model/FirmwareServiceConfiguration + */ + constructor() { + + FirmwareServiceConfiguration.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a FirmwareServiceConfiguration from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/FirmwareServiceConfiguration} obj Optional instance to populate. + * @return {module:model/FirmwareServiceConfiguration} The populated FirmwareServiceConfiguration instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new FirmwareServiceConfiguration(); + + if (data.hasOwnProperty('cacheFirmware')) { + obj['cacheFirmware'] = ApiClient.convertToType(data['cacheFirmware'], 'Boolean'); + } + if (data.hasOwnProperty('clusterFirmwareAssets')) { + obj['clusterFirmwareAssets'] = ApiClient.convertToType(data['clusterFirmwareAssets'], 'Boolean'); + } + if (data.hasOwnProperty('fallbackOriginalUrl')) { + obj['fallbackOriginalUrl'] = ApiClient.convertToType(data['fallbackOriginalUrl'], 'Boolean'); + } + if (data.hasOwnProperty('fetchFirmwareAssets')) { + obj['fetchFirmwareAssets'] = ApiClient.convertToType(data['fetchFirmwareAssets'], 'Boolean'); + } + if (data.hasOwnProperty('shouldDownload')) { + obj['shouldDownload'] = ApiClient.convertToType(data['shouldDownload'], 'Boolean'); + } + } + return obj; + } + + /** + * Validates the JSON data with respect to FirmwareServiceConfiguration. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @return {boolean} to indicate whether the JSON data is valid with respect to FirmwareServiceConfiguration. + */ + static validateJSON(data) { + + return true; + } + + +} + + + +/** + * Cache Firmwares in /var/ipsw + * @member {Boolean} cacheFirmware + */ +FirmwareServiceConfiguration.prototype['cacheFirmware'] = undefined; + +/** + * Assets are cluster-wide + * @member {Boolean} clusterFirmwareAssets + */ +FirmwareServiceConfiguration.prototype['clusterFirmwareAssets'] = undefined; + +/** + * Use original URL to fetch firmware + * @member {Boolean} fallbackOriginalUrl + */ +FirmwareServiceConfiguration.prototype['fallbackOriginalUrl'] = undefined; + +/** + * Automatically fetch assets + * @member {Boolean} fetchFirmwareAssets + */ +FirmwareServiceConfiguration.prototype['fetchFirmwareAssets'] = undefined; + +/** + * Download firmwares + * @member {Boolean} shouldDownload + */ +FirmwareServiceConfiguration.prototype['shouldDownload'] = undefined; + + + + + + +export default FirmwareServiceConfiguration; + diff --git a/src/model/GetAssessmentsByInstanceId500Response.js b/src/model/GetAssessmentsByInstanceId500Response.js index 8ce5110..ca1cb1e 100644 --- a/src/model/GetAssessmentsByInstanceId500Response.js +++ b/src/model/GetAssessmentsByInstanceId500Response.js @@ -2,7 +2,7 @@ * Corellium API * REST API to manage your virtual devices. * - * The version of the OpenAPI document: 7.3.0 + * The version of the OpenAPI document: 7.9.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -16,7 +16,7 @@ import ApiClient from '../ApiClient'; /** * The GetAssessmentsByInstanceId500Response model module. * @module model/GetAssessmentsByInstanceId500Response - * @version 0.4.1 + * @version 0.4.3 */ class GetAssessmentsByInstanceId500Response { /** diff --git a/src/model/GetInterconnectsResponse.js b/src/model/GetInterconnectsResponse.js new file mode 100644 index 0000000..f0cfe4a --- /dev/null +++ b/src/model/GetInterconnectsResponse.js @@ -0,0 +1,132 @@ +/** + * Corellium API + * REST API to manage your virtual devices. + * + * The version of the OpenAPI document: 7.9.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; +import InterconnectResponse from './InterconnectResponse'; + +/** + * The GetInterconnectsResponse model module. + * @module model/GetInterconnectsResponse + * @version 0.4.3 + */ +class GetInterconnectsResponse { + /** + * Constructs a new GetInterconnectsResponse. + * + * @alias module:model/GetInterconnectsResponse + */ + constructor() { + + GetInterconnectsResponse.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a GetInterconnectsResponse from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/GetInterconnectsResponse} obj Optional instance to populate. + * @return {module:model/GetInterconnectsResponse} The populated GetInterconnectsResponse instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new GetInterconnectsResponse(); + + if (data.hasOwnProperty('results')) { + obj['results'] = ApiClient.convertToType(data['results'], [InterconnectResponse]); + } + if (data.hasOwnProperty('count')) { + obj['count'] = ApiClient.convertToType(data['count'], 'Number'); + } + if (data.hasOwnProperty('total')) { + obj['total'] = ApiClient.convertToType(data['total'], 'Number'); + } + if (data.hasOwnProperty('limit')) { + obj['limit'] = ApiClient.convertToType(data['limit'], 'Number'); + } + if (data.hasOwnProperty('offset')) { + obj['offset'] = ApiClient.convertToType(data['offset'], 'Number'); + } + } + return obj; + } + + /** + * Validates the JSON data with respect to GetInterconnectsResponse. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @return {boolean} to indicate whether the JSON data is valid with respect to GetInterconnectsResponse. + */ + static validateJSON(data) { + if (data['results']) { // data not null + // ensure the json data is an array + if (!Array.isArray(data['results'])) { + throw new Error("Expected the field `results` to be an array in the JSON data but got " + data['results']); + } + // validate the optional field `results` (array) + for (const item of data['results']) { + InterconnectResponse.validateJSON(item); + }; + } + + return true; + } + + +} + + + +/** + * Array of interconnects + * @member {Array.} results + */ +GetInterconnectsResponse.prototype['results'] = undefined; + +/** + * Number of interconnects in this response + * @member {Number} count + */ +GetInterconnectsResponse.prototype['count'] = undefined; + +/** + * Total number of interconnects + * @member {Number} total + */ +GetInterconnectsResponse.prototype['total'] = undefined; + +/** + * Limit used for pagination + * @member {Number} limit + */ +GetInterconnectsResponse.prototype['limit'] = undefined; + +/** + * Offset used for pagination + * @member {Number} offset + */ +GetInterconnectsResponse.prototype['offset'] = undefined; + + + + + + +export default GetInterconnectsResponse; + diff --git a/src/model/GetStorageResponse.js b/src/model/GetStorageResponse.js new file mode 100644 index 0000000..2308d0c --- /dev/null +++ b/src/model/GetStorageResponse.js @@ -0,0 +1,132 @@ +/** + * Corellium API + * REST API to manage your virtual devices. + * + * The version of the OpenAPI document: 7.9.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; +import MediaStore from './MediaStore'; + +/** + * The GetStorageResponse model module. + * @module model/GetStorageResponse + * @version 0.4.3 + */ +class GetStorageResponse { + /** + * Constructs a new GetStorageResponse. + * + * @alias module:model/GetStorageResponse + */ + constructor() { + + GetStorageResponse.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a GetStorageResponse from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/GetStorageResponse} obj Optional instance to populate. + * @return {module:model/GetStorageResponse} The populated GetStorageResponse instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new GetStorageResponse(); + + if (data.hasOwnProperty('results')) { + obj['results'] = ApiClient.convertToType(data['results'], [MediaStore]); + } + if (data.hasOwnProperty('count')) { + obj['count'] = ApiClient.convertToType(data['count'], 'Number'); + } + if (data.hasOwnProperty('total')) { + obj['total'] = ApiClient.convertToType(data['total'], 'Number'); + } + if (data.hasOwnProperty('limit')) { + obj['limit'] = ApiClient.convertToType(data['limit'], 'Number'); + } + if (data.hasOwnProperty('offset')) { + obj['offset'] = ApiClient.convertToType(data['offset'], 'Number'); + } + } + return obj; + } + + /** + * Validates the JSON data with respect to GetStorageResponse. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @return {boolean} to indicate whether the JSON data is valid with respect to GetStorageResponse. + */ + static validateJSON(data) { + if (data['results']) { // data not null + // ensure the json data is an array + if (!Array.isArray(data['results'])) { + throw new Error("Expected the field `results` to be an array in the JSON data but got " + data['results']); + } + // validate the optional field `results` (array) + for (const item of data['results']) { + MediaStore.validateJSON(item); + }; + } + + return true; + } + + +} + + + +/** + * Array of storage devices + * @member {Array.} results + */ +GetStorageResponse.prototype['results'] = undefined; + +/** + * Number of storage devices in this response + * @member {Number} count + */ +GetStorageResponse.prototype['count'] = undefined; + +/** + * Total number of storage devices + * @member {Number} total + */ +GetStorageResponse.prototype['total'] = undefined; + +/** + * Limit used for pagination + * @member {Number} limit + */ +GetStorageResponse.prototype['limit'] = undefined; + +/** + * Offset used for pagination + * @member {Number} offset + */ +GetStorageResponse.prototype['offset'] = undefined; + + + + + + +export default GetStorageResponse; + diff --git a/src/model/GpioStateDefinition.js b/src/model/GpioStateDefinition.js index 4f5e61a..1e00e37 100644 --- a/src/model/GpioStateDefinition.js +++ b/src/model/GpioStateDefinition.js @@ -2,7 +2,7 @@ * Corellium API * REST API to manage your virtual devices. * - * The version of the OpenAPI document: 7.3.0 + * The version of the OpenAPI document: 7.9.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -17,7 +17,7 @@ import Bit from './Bit'; /** * The GpioStateDefinition model module. * @module model/GpioStateDefinition - * @version 0.4.1 + * @version 0.4.3 */ class GpioStateDefinition { /** diff --git a/src/model/GpiosState.js b/src/model/GpiosState.js index 69b3b50..215d33e 100644 --- a/src/model/GpiosState.js +++ b/src/model/GpiosState.js @@ -2,7 +2,7 @@ * Corellium API * REST API to manage your virtual devices. * - * The version of the OpenAPI document: 7.3.0 + * The version of the OpenAPI document: 7.9.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -17,7 +17,7 @@ import GpioStateDefinition from './GpioStateDefinition'; /** * The GpiosState model module. * @module model/GpiosState - * @version 0.4.1 + * @version 0.4.3 */ class GpiosState { /** diff --git a/src/model/GrantTrialRequestResponse.js b/src/model/GrantTrialRequestResponse.js index b570d87..10d5278 100644 --- a/src/model/GrantTrialRequestResponse.js +++ b/src/model/GrantTrialRequestResponse.js @@ -2,7 +2,7 @@ * Corellium API * REST API to manage your virtual devices. * - * The version of the OpenAPI document: 7.3.0 + * The version of the OpenAPI document: 7.9.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -16,7 +16,7 @@ import ApiClient from '../ApiClient'; /** * The GrantTrialRequestResponse model module. * @module model/GrantTrialRequestResponse - * @version 0.4.1 + * @version 0.4.3 */ class GrantTrialRequestResponse { /** diff --git a/src/model/Hook.js b/src/model/Hook.js index 8d06c67..3fdc4d9 100644 --- a/src/model/Hook.js +++ b/src/model/Hook.js @@ -2,7 +2,7 @@ * Corellium API * REST API to manage your virtual devices. * - * The version of the OpenAPI document: 7.3.0 + * The version of the OpenAPI document: 7.9.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -16,7 +16,7 @@ import ApiClient from '../ApiClient'; /** * The Hook model module. * @module model/Hook - * @version 0.4.1 + * @version 0.4.3 */ class Hook { /** diff --git a/src/model/Image.js b/src/model/Image.js index ab078e7..9225bb2 100644 --- a/src/model/Image.js +++ b/src/model/Image.js @@ -2,7 +2,7 @@ * Corellium API * REST API to manage your virtual devices. * - * The version of the OpenAPI document: 7.3.0 + * The version of the OpenAPI document: 7.9.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -16,7 +16,7 @@ import ApiClient from '../ApiClient'; /** * The Image model module. * @module model/Image - * @version 0.4.1 + * @version 0.4.3 */ class Image { /** diff --git a/src/model/InputResponse.js b/src/model/InputResponse.js index cad14c3..10cebee 100644 --- a/src/model/InputResponse.js +++ b/src/model/InputResponse.js @@ -2,7 +2,7 @@ * Corellium API * REST API to manage your virtual devices. * - * The version of the OpenAPI document: 7.3.0 + * The version of the OpenAPI document: 7.9.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -16,7 +16,7 @@ import ApiClient from '../ApiClient'; /** * The InputResponse model module. * @module model/InputResponse - * @version 0.4.1 + * @version 0.4.3 */ class InputResponse { /** diff --git a/src/model/InstallFirmwareAssetsRequest.js b/src/model/InstallFirmwareAssetsRequest.js new file mode 100644 index 0000000..944b3ed --- /dev/null +++ b/src/model/InstallFirmwareAssetsRequest.js @@ -0,0 +1,97 @@ +/** + * Corellium API + * REST API to manage your virtual devices. + * + * The version of the OpenAPI document: 7.9.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; + +/** + * The InstallFirmwareAssetsRequest model module. + * @module model/InstallFirmwareAssetsRequest + * @version 0.4.3 + */ +class InstallFirmwareAssetsRequest { + /** + * Constructs a new InstallFirmwareAssetsRequest. + * + * @alias module:model/InstallFirmwareAssetsRequest + * @param imageId {String} Image ID + */ + constructor(imageId) { + + InstallFirmwareAssetsRequest.initialize(this, imageId); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj, imageId) { + obj['imageId'] = imageId; + } + + /** + * Constructs a InstallFirmwareAssetsRequest from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/InstallFirmwareAssetsRequest} obj Optional instance to populate. + * @return {module:model/InstallFirmwareAssetsRequest} The populated InstallFirmwareAssetsRequest instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new InstallFirmwareAssetsRequest(); + + if (data.hasOwnProperty('imageId')) { + obj['imageId'] = ApiClient.convertToType(data['imageId'], 'String'); + } + } + return obj; + } + + /** + * Validates the JSON data with respect to InstallFirmwareAssetsRequest. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @return {boolean} to indicate whether the JSON data is valid with respect to InstallFirmwareAssetsRequest. + */ + static validateJSON(data) { + // check to make sure all required properties are present in the JSON string + for (const property of InstallFirmwareAssetsRequest.RequiredProperties) { + if (!data[property]) { + throw new Error("The required field `" + property + "` is not found in the JSON data: " + JSON.stringify(data)); + } + } + // ensure the json data is a string + if (data['imageId'] && !(typeof data['imageId'] === 'string' || data['imageId'] instanceof String)) { + throw new Error("Expected the field `imageId` to be a primitive type in the JSON string but got " + data['imageId']); + } + + return true; + } + + +} + +InstallFirmwareAssetsRequest.RequiredProperties = ["imageId"]; + +/** + * Image ID + * @member {String} imageId + */ +InstallFirmwareAssetsRequest.prototype['imageId'] = undefined; + + + + + + +export default InstallFirmwareAssetsRequest; + diff --git a/src/model/InstallFirmwareAssetsResponse.js b/src/model/InstallFirmwareAssetsResponse.js new file mode 100644 index 0000000..5f90d0e --- /dev/null +++ b/src/model/InstallFirmwareAssetsResponse.js @@ -0,0 +1,89 @@ +/** + * Corellium API + * REST API to manage your virtual devices. + * + * The version of the OpenAPI document: 7.9.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; + +/** + * The InstallFirmwareAssetsResponse model module. + * @module model/InstallFirmwareAssetsResponse + * @version 0.4.3 + */ +class InstallFirmwareAssetsResponse { + /** + * Constructs a new InstallFirmwareAssetsResponse. + * + * @alias module:model/InstallFirmwareAssetsResponse + */ + constructor() { + + InstallFirmwareAssetsResponse.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a InstallFirmwareAssetsResponse from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/InstallFirmwareAssetsResponse} obj Optional instance to populate. + * @return {module:model/InstallFirmwareAssetsResponse} The populated InstallFirmwareAssetsResponse instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new InstallFirmwareAssetsResponse(); + + if (data.hasOwnProperty('taskId')) { + obj['taskId'] = ApiClient.convertToType(data['taskId'], 'String'); + } + } + return obj; + } + + /** + * Validates the JSON data with respect to InstallFirmwareAssetsResponse. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @return {boolean} to indicate whether the JSON data is valid with respect to InstallFirmwareAssetsResponse. + */ + static validateJSON(data) { + // ensure the json data is a string + if (data['taskId'] && !(typeof data['taskId'] === 'string' || data['taskId'] instanceof String)) { + throw new Error("Expected the field `taskId` to be a primitive type in the JSON string but got " + data['taskId']); + } + + return true; + } + + +} + + + +/** + * Task ID + * @member {String} taskId + */ +InstallFirmwareAssetsResponse.prototype['taskId'] = undefined; + + + + + + +export default InstallFirmwareAssetsResponse; + diff --git a/src/model/InstallFirmwareRequest.js b/src/model/InstallFirmwareRequest.js new file mode 100644 index 0000000..0a1f697 --- /dev/null +++ b/src/model/InstallFirmwareRequest.js @@ -0,0 +1,112 @@ +/** + * Corellium API + * REST API to manage your virtual devices. + * + * The version of the OpenAPI document: 7.9.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; + +/** + * The InstallFirmwareRequest model module. + * @module model/InstallFirmwareRequest + * @version 0.4.3 + */ +class InstallFirmwareRequest { + /** + * Constructs a new InstallFirmwareRequest. + * + * @alias module:model/InstallFirmwareRequest + * @param imageId {String} Image ID + * @param filename {String} Filename of the firmware + */ + constructor(imageId, filename) { + + InstallFirmwareRequest.initialize(this, imageId, filename); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj, imageId, filename) { + obj['imageId'] = imageId; + obj['filename'] = filename; + } + + /** + * Constructs a InstallFirmwareRequest from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/InstallFirmwareRequest} obj Optional instance to populate. + * @return {module:model/InstallFirmwareRequest} The populated InstallFirmwareRequest instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new InstallFirmwareRequest(); + + if (data.hasOwnProperty('imageId')) { + obj['imageId'] = ApiClient.convertToType(data['imageId'], 'String'); + } + if (data.hasOwnProperty('filename')) { + obj['filename'] = ApiClient.convertToType(data['filename'], 'String'); + } + } + return obj; + } + + /** + * Validates the JSON data with respect to InstallFirmwareRequest. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @return {boolean} to indicate whether the JSON data is valid with respect to InstallFirmwareRequest. + */ + static validateJSON(data) { + // check to make sure all required properties are present in the JSON string + for (const property of InstallFirmwareRequest.RequiredProperties) { + if (!data[property]) { + throw new Error("The required field `" + property + "` is not found in the JSON data: " + JSON.stringify(data)); + } + } + // ensure the json data is a string + if (data['imageId'] && !(typeof data['imageId'] === 'string' || data['imageId'] instanceof String)) { + throw new Error("Expected the field `imageId` to be a primitive type in the JSON string but got " + data['imageId']); + } + // ensure the json data is a string + if (data['filename'] && !(typeof data['filename'] === 'string' || data['filename'] instanceof String)) { + throw new Error("Expected the field `filename` to be a primitive type in the JSON string but got " + data['filename']); + } + + return true; + } + + +} + +InstallFirmwareRequest.RequiredProperties = ["imageId", "filename"]; + +/** + * Image ID + * @member {String} imageId + */ +InstallFirmwareRequest.prototype['imageId'] = undefined; + +/** + * Filename of the firmware + * @member {String} filename + */ +InstallFirmwareRequest.prototype['filename'] = undefined; + + + + + + +export default InstallFirmwareRequest; + diff --git a/src/model/InstallFirmwareResponse.js b/src/model/InstallFirmwareResponse.js new file mode 100644 index 0000000..e0612dd --- /dev/null +++ b/src/model/InstallFirmwareResponse.js @@ -0,0 +1,102 @@ +/** + * Corellium API + * REST API to manage your virtual devices. + * + * The version of the OpenAPI document: 7.9.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; + +/** + * The InstallFirmwareResponse model module. + * @module model/InstallFirmwareResponse + * @version 0.4.3 + */ +class InstallFirmwareResponse { + /** + * Constructs a new InstallFirmwareResponse. + * + * @alias module:model/InstallFirmwareResponse + */ + constructor() { + + InstallFirmwareResponse.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a InstallFirmwareResponse from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/InstallFirmwareResponse} obj Optional instance to populate. + * @return {module:model/InstallFirmwareResponse} The populated InstallFirmwareResponse instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new InstallFirmwareResponse(); + + if (data.hasOwnProperty('taskId')) { + obj['taskId'] = ApiClient.convertToType(data['taskId'], 'String'); + } + if (data.hasOwnProperty('installedFirmwareUrl')) { + obj['installedFirmwareUrl'] = ApiClient.convertToType(data['installedFirmwareUrl'], 'String'); + } + } + return obj; + } + + /** + * Validates the JSON data with respect to InstallFirmwareResponse. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @return {boolean} to indicate whether the JSON data is valid with respect to InstallFirmwareResponse. + */ + static validateJSON(data) { + // ensure the json data is a string + if (data['taskId'] && !(typeof data['taskId'] === 'string' || data['taskId'] instanceof String)) { + throw new Error("Expected the field `taskId` to be a primitive type in the JSON string but got " + data['taskId']); + } + // ensure the json data is a string + if (data['installedFirmwareUrl'] && !(typeof data['installedFirmwareUrl'] === 'string' || data['installedFirmwareUrl'] instanceof String)) { + throw new Error("Expected the field `installedFirmwareUrl` to be a primitive type in the JSON string but got " + data['installedFirmwareUrl']); + } + + return true; + } + + +} + + + +/** + * Task ID + * @member {String} taskId + */ +InstallFirmwareResponse.prototype['taskId'] = undefined; + +/** + * Installed Firmware URL + * @member {String} installedFirmwareUrl + */ +InstallFirmwareResponse.prototype['installedFirmwareUrl'] = undefined; + + + + + + +export default InstallFirmwareResponse; + diff --git a/src/model/Instance.js b/src/model/Instance.js index 3b20b45..8001cf9 100644 --- a/src/model/Instance.js +++ b/src/model/Instance.js @@ -2,7 +2,7 @@ * Corellium API * REST API to manage your virtual devices. * - * The version of the OpenAPI document: 7.3.0 + * The version of the OpenAPI document: 7.9.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -23,7 +23,7 @@ import InstanceState from './InstanceState'; /** * The Instance model module. * @module model/Instance - * @version 0.4.1 + * @version 0.4.3 */ class Instance { /** @@ -346,7 +346,7 @@ Instance.prototype['serviceIp'] = undefined; Instance.prototype['wifiIp'] = undefined; /** - * Secondary Inteface LAN IP Address (if supported) + * Secondary Interface LAN IP Address (if supported) * @member {String} secondaryIp */ Instance.prototype['secondaryIp'] = undefined; diff --git a/src/model/InstanceAgentState.js b/src/model/InstanceAgentState.js index 08f50dc..febb2c2 100644 --- a/src/model/InstanceAgentState.js +++ b/src/model/InstanceAgentState.js @@ -2,7 +2,7 @@ * Corellium API * REST API to manage your virtual devices. * - * The version of the OpenAPI document: 7.3.0 + * The version of the OpenAPI document: 7.9.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -16,7 +16,7 @@ import ApiClient from '../ApiClient'; /** * The InstanceAgentState model module. * @module model/InstanceAgentState - * @version 0.4.1 + * @version 0.4.3 */ class InstanceAgentState { /** diff --git a/src/model/InstanceBootOptions.js b/src/model/InstanceBootOptions.js index eae799d..401a01e 100644 --- a/src/model/InstanceBootOptions.js +++ b/src/model/InstanceBootOptions.js @@ -2,7 +2,7 @@ * Corellium API * REST API to manage your virtual devices. * - * The version of the OpenAPI document: 7.3.0 + * The version of the OpenAPI document: 7.9.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -13,11 +13,12 @@ import ApiClient from '../ApiClient'; import InstanceBootOptionsAdditionalTag from './InstanceBootOptionsAdditionalTag'; +import InstanceBootOptionsKernel from './InstanceBootOptionsKernel'; /** * The InstanceBootOptions model module. * @module model/InstanceBootOptions - * @version 0.4.1 + * @version 0.4.3 */ class InstanceBootOptions { /** @@ -73,6 +74,9 @@ class InstanceBootOptions { if (data.hasOwnProperty('additionalTags')) { obj['additionalTags'] = ApiClient.convertToType(data['additionalTags'], [InstanceBootOptionsAdditionalTag]); } + if (data.hasOwnProperty('kernel')) { + obj['kernel'] = InstanceBootOptionsKernel.constructFromObject(data['kernel']); + } } return obj; } @@ -107,6 +111,10 @@ class InstanceBootOptions { if (!Array.isArray(data['additionalTags'])) { throw new Error("Expected the field `additionalTags` to be an array in the JSON data but got " + data['additionalTags']); } + // validate the optional field `kernel` + if (data['kernel']) { // data not null + InstanceBootOptionsKernel.validateJSON(data['kernel']); + } return true; } @@ -164,6 +172,11 @@ InstanceBootOptions.prototype['aprr'] = undefined; */ InstanceBootOptions.prototype['additionalTags'] = undefined; +/** + * @member {module:model/InstanceBootOptionsKernel} kernel + */ +InstanceBootOptions.prototype['kernel'] = undefined; + diff --git a/src/model/InstanceBootOptionsAdditionalTag.js b/src/model/InstanceBootOptionsAdditionalTag.js index 8df65e3..8018acd 100644 --- a/src/model/InstanceBootOptionsAdditionalTag.js +++ b/src/model/InstanceBootOptionsAdditionalTag.js @@ -2,7 +2,7 @@ * Corellium API * REST API to manage your virtual devices. * - * The version of the OpenAPI document: 7.3.0 + * The version of the OpenAPI document: 7.9.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/model/InstanceBootOptionsKernel.js b/src/model/InstanceBootOptionsKernel.js new file mode 100644 index 0000000..08c4d29 --- /dev/null +++ b/src/model/InstanceBootOptionsKernel.js @@ -0,0 +1,89 @@ +/** + * Corellium API + * REST API to manage your virtual devices. + * + * The version of the OpenAPI document: 7.9.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; + +/** + * The InstanceBootOptionsKernel model module. + * @module model/InstanceBootOptionsKernel + * @version 0.4.3 + */ +class InstanceBootOptionsKernel { + /** + * Constructs a new InstanceBootOptionsKernel. + * + * @alias module:model/InstanceBootOptionsKernel + */ + constructor() { + + InstanceBootOptionsKernel.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a InstanceBootOptionsKernel from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/InstanceBootOptionsKernel} obj Optional instance to populate. + * @return {module:model/InstanceBootOptionsKernel} The populated InstanceBootOptionsKernel instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new InstanceBootOptionsKernel(); + + if (data.hasOwnProperty('firmwarePath')) { + obj['firmwarePath'] = ApiClient.convertToType(data['firmwarePath'], 'String'); + } + } + return obj; + } + + /** + * Validates the JSON data with respect to InstanceBootOptionsKernel. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @return {boolean} to indicate whether the JSON data is valid with respect to InstanceBootOptionsKernel. + */ + static validateJSON(data) { + // ensure the json data is a string + if (data['firmwarePath'] && !(typeof data['firmwarePath'] === 'string' || data['firmwarePath'] instanceof String)) { + throw new Error("Expected the field `firmwarePath` to be a primitive type in the JSON string but got " + data['firmwarePath']); + } + + return true; + } + + +} + + + +/** + * The relative path within the firmware to the kernel file that has been bundled up with the selected firmware + * @member {String} firmwarePath + */ +InstanceBootOptionsKernel.prototype['firmwarePath'] = undefined; + + + + + + +export default InstanceBootOptionsKernel; + diff --git a/src/model/InstanceConsoleEndpoint.js b/src/model/InstanceConsoleEndpoint.js index d16d62c..14b9df9 100644 --- a/src/model/InstanceConsoleEndpoint.js +++ b/src/model/InstanceConsoleEndpoint.js @@ -2,7 +2,7 @@ * Corellium API * REST API to manage your virtual devices. * - * The version of the OpenAPI document: 7.3.0 + * The version of the OpenAPI document: 7.9.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -16,7 +16,7 @@ import ApiClient from '../ApiClient'; /** * The InstanceConsoleEndpoint model module. * @module model/InstanceConsoleEndpoint - * @version 0.4.1 + * @version 0.4.3 */ class InstanceConsoleEndpoint { /** diff --git a/src/model/InstanceCreateOptions.js b/src/model/InstanceCreateOptions.js index 1b90c96..76cecab 100644 --- a/src/model/InstanceCreateOptions.js +++ b/src/model/InstanceCreateOptions.js @@ -2,7 +2,7 @@ * Corellium API * REST API to manage your virtual devices. * - * The version of the OpenAPI document: 7.3.0 + * The version of the OpenAPI document: 7.9.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -12,14 +12,11 @@ */ import ApiClient from '../ApiClient'; -import InstanceBootOptions from './InstanceBootOptions'; -import Model from './Model'; -import VolumeOptions from './VolumeOptions'; /** * The InstanceCreateOptions model module. * @module model/InstanceCreateOptions - * @version 0.4.1 + * @version 0.4.3 */ class InstanceCreateOptions { /** @@ -96,17 +93,8 @@ class InstanceCreateOptions { if (data.hasOwnProperty('wifiMac')) { obj['wifiMac'] = ApiClient.convertToType(data['wifiMac'], 'String'); } - if (data.hasOwnProperty('volume')) { - obj['volume'] = VolumeOptions.constructFromObject(data['volume']); - } - if (data.hasOwnProperty('snapshot')) { - obj['snapshot'] = ApiClient.convertToType(data['snapshot'], 'String'); - } - if (data.hasOwnProperty('bootOptions')) { - obj['bootOptions'] = InstanceBootOptions.constructFromObject(data['bootOptions']); - } - if (data.hasOwnProperty('device')) { - obj['device'] = Model.constructFromObject(data['device']); + if (data.hasOwnProperty('wanAccess')) { + obj['wanAccess'] = ApiClient.convertToType(data['wanAccess'], 'Boolean'); } } return obj; @@ -172,22 +160,6 @@ class InstanceCreateOptions { if (data['wifiMac'] && !(typeof data['wifiMac'] === 'string' || data['wifiMac'] instanceof String)) { throw new Error("Expected the field `wifiMac` to be a primitive type in the JSON string but got " + data['wifiMac']); } - // validate the optional field `volume` - if (data['volume']) { // data not null - VolumeOptions.validateJSON(data['volume']); - } - // ensure the json data is a string - if (data['snapshot'] && !(typeof data['snapshot'] === 'string' || data['snapshot'] instanceof String)) { - throw new Error("Expected the field `snapshot` to be a primitive type in the JSON string but got " + data['snapshot']); - } - // validate the optional field `bootOptions` - if (data['bootOptions']) { // data not null - InstanceBootOptions.validateJSON(data['bootOptions']); - } - // validate the optional field `device` - if (data['device']) { // data not null - Model.validateJSON(data['device']); - } return true; } @@ -276,25 +248,10 @@ InstanceCreateOptions.prototype['encrypt'] = undefined; InstanceCreateOptions.prototype['wifiMac'] = undefined; /** - * @member {module:model/VolumeOptions} volume - */ -InstanceCreateOptions.prototype['volume'] = undefined; - -/** - * Snapshot ID for this instance to be cloned from if defined - * @member {String} snapshot - */ -InstanceCreateOptions.prototype['snapshot'] = undefined; - -/** - * @member {module:model/InstanceBootOptions} bootOptions - */ -InstanceCreateOptions.prototype['bootOptions'] = undefined; - -/** - * @member {module:model/Model} device + * manages internet access + * @member {Boolean} wanAccess */ -InstanceCreateOptions.prototype['device'] = undefined; +InstanceCreateOptions.prototype['wanAccess'] = undefined; diff --git a/src/model/InstanceInput.js b/src/model/InstanceInput.js index b6728f8..ebbeaf9 100644 --- a/src/model/InstanceInput.js +++ b/src/model/InstanceInput.js @@ -2,7 +2,7 @@ * Corellium API * REST API to manage your virtual devices. * - * The version of the OpenAPI document: 7.3.0 + * The version of the OpenAPI document: 7.9.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -20,7 +20,7 @@ import TouchInputButtonsInner from './TouchInputButtonsInner'; /** * The InstanceInput model module. * @module model/InstanceInput - * @version 0.4.1 + * @version 0.4.3 */ class InstanceInput { /** diff --git a/src/model/InstanceInterface.js b/src/model/InstanceInterface.js new file mode 100644 index 0000000..4746b33 --- /dev/null +++ b/src/model/InstanceInterface.js @@ -0,0 +1,102 @@ +/** + * Corellium API + * REST API to manage your virtual devices. + * + * The version of the OpenAPI document: 7.9.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; + +/** + * The InstanceInterface model module. + * @module model/InstanceInterface + * @version 0.4.3 + */ +class InstanceInterface { + /** + * Constructs a new InstanceInterface. + * + * @alias module:model/InstanceInterface + */ + constructor() { + + InstanceInterface.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a InstanceInterface from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/InstanceInterface} obj Optional instance to populate. + * @return {module:model/InstanceInterface} The populated InstanceInterface instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new InstanceInterface(); + + if (data.hasOwnProperty('deviceId')) { + obj['deviceId'] = ApiClient.convertToType(data['deviceId'], 'String'); + } + if (data.hasOwnProperty('interfaceId')) { + obj['interfaceId'] = ApiClient.convertToType(data['interfaceId'], 'String'); + } + } + return obj; + } + + /** + * Validates the JSON data with respect to InstanceInterface. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @return {boolean} to indicate whether the JSON data is valid with respect to InstanceInterface. + */ + static validateJSON(data) { + // ensure the json data is a string + if (data['deviceId'] && !(typeof data['deviceId'] === 'string' || data['deviceId'] instanceof String)) { + throw new Error("Expected the field `deviceId` to be a primitive type in the JSON string but got " + data['deviceId']); + } + // ensure the json data is a string + if (data['interfaceId'] && !(typeof data['interfaceId'] === 'string' || data['interfaceId'] instanceof String)) { + throw new Error("Expected the field `interfaceId` to be a primitive type in the JSON string but got " + data['interfaceId']); + } + + return true; + } + + +} + + + +/** + * The instance id + * @member {String} deviceId + */ +InstanceInterface.prototype['deviceId'] = undefined; + +/** + * The interface id + * @member {String} interfaceId + */ +InstanceInterface.prototype['interfaceId'] = undefined; + + + + + + +export default InstanceInterface; + diff --git a/src/model/InstanceNetdumpState.js b/src/model/InstanceNetdumpState.js index aa0a910..dc186f7 100644 --- a/src/model/InstanceNetdumpState.js +++ b/src/model/InstanceNetdumpState.js @@ -2,7 +2,7 @@ * Corellium API * REST API to manage your virtual devices. * - * The version of the OpenAPI document: 7.3.0 + * The version of the OpenAPI document: 7.9.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -16,7 +16,7 @@ import ApiClient from '../ApiClient'; /** * The InstanceNetdumpState model module. * @module model/InstanceNetdumpState - * @version 0.4.1 + * @version 0.4.3 */ class InstanceNetdumpState { /** diff --git a/src/model/InstanceNetmonState.js b/src/model/InstanceNetmonState.js index f041295..d7321c0 100644 --- a/src/model/InstanceNetmonState.js +++ b/src/model/InstanceNetmonState.js @@ -2,7 +2,7 @@ * Corellium API * REST API to manage your virtual devices. * - * The version of the OpenAPI document: 7.3.0 + * The version of the OpenAPI document: 7.9.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -16,7 +16,7 @@ import ApiClient from '../ApiClient'; /** * The InstanceNetmonState model module. * @module model/InstanceNetmonState - * @version 0.4.1 + * @version 0.4.3 */ class InstanceNetmonState { /** diff --git a/src/model/InstanceReturn.js b/src/model/InstanceReturn.js index c92fb37..42bac76 100644 --- a/src/model/InstanceReturn.js +++ b/src/model/InstanceReturn.js @@ -2,7 +2,7 @@ * Corellium API * REST API to manage your virtual devices. * - * The version of the OpenAPI document: 7.3.0 + * The version of the OpenAPI document: 7.9.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -17,7 +17,7 @@ import InstanceState from './InstanceState'; /** * The InstanceReturn model module. * @module model/InstanceReturn - * @version 0.4.1 + * @version 0.4.3 */ class InstanceReturn { /** diff --git a/src/model/InstanceServices.js b/src/model/InstanceServices.js index 700e14e..65abf01 100644 --- a/src/model/InstanceServices.js +++ b/src/model/InstanceServices.js @@ -2,7 +2,7 @@ * Corellium API * REST API to manage your virtual devices. * - * The version of the OpenAPI document: 7.3.0 + * The version of the OpenAPI document: 7.9.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -17,7 +17,7 @@ import VpnDefinition from './VpnDefinition'; /** * The InstanceServices model module. * @module model/InstanceServices - * @version 0.4.1 + * @version 0.4.3 */ class InstanceServices { /** diff --git a/src/model/InstanceStartOptions.js b/src/model/InstanceStartOptions.js index 758aa8c..92416c7 100644 --- a/src/model/InstanceStartOptions.js +++ b/src/model/InstanceStartOptions.js @@ -2,7 +2,7 @@ * Corellium API * REST API to manage your virtual devices. * - * The version of the OpenAPI document: 7.3.0 + * The version of the OpenAPI document: 7.9.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -16,7 +16,7 @@ import ApiClient from '../ApiClient'; /** * The InstanceStartOptions model module. * @module model/InstanceStartOptions - * @version 0.4.1 + * @version 0.4.3 */ class InstanceStartOptions { /** diff --git a/src/model/InstanceState.js b/src/model/InstanceState.js index 32a9fb1..5280339 100644 --- a/src/model/InstanceState.js +++ b/src/model/InstanceState.js @@ -2,7 +2,7 @@ * Corellium API * REST API to manage your virtual devices. * - * The version of the OpenAPI document: 7.3.0 + * The version of the OpenAPI document: 7.9.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/model/InstanceStopOptions.js b/src/model/InstanceStopOptions.js index 122d782..dbf594a 100644 --- a/src/model/InstanceStopOptions.js +++ b/src/model/InstanceStopOptions.js @@ -2,7 +2,7 @@ * Corellium API * REST API to manage your virtual devices. * - * The version of the OpenAPI document: 7.3.0 + * The version of the OpenAPI document: 7.9.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -16,7 +16,7 @@ import ApiClient from '../ApiClient'; /** * The InstanceStopOptions model module. * @module model/InstanceStopOptions - * @version 0.4.1 + * @version 0.4.3 */ class InstanceStopOptions { /** diff --git a/src/model/InstanceUpgradeBody.js b/src/model/InstanceUpgradeBody.js index 8c10c3a..4814853 100644 --- a/src/model/InstanceUpgradeBody.js +++ b/src/model/InstanceUpgradeBody.js @@ -2,7 +2,7 @@ * Corellium API * REST API to manage your virtual devices. * - * The version of the OpenAPI document: 7.3.0 + * The version of the OpenAPI document: 7.9.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -16,7 +16,7 @@ import ApiClient from '../ApiClient'; /** * The InstanceUpgradeBody model module. * @module model/InstanceUpgradeBody - * @version 0.4.1 + * @version 0.4.3 */ class InstanceUpgradeBody { /** diff --git a/src/model/InterconnectResponse.js b/src/model/InterconnectResponse.js new file mode 100644 index 0000000..2478089 --- /dev/null +++ b/src/model/InterconnectResponse.js @@ -0,0 +1,221 @@ +/** + * Corellium API + * REST API to manage your virtual devices. + * + * The version of the OpenAPI document: 7.9.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; +import InstanceInterface from './InstanceInterface'; + +/** + * The InterconnectResponse model module. + * @module model/InterconnectResponse + * @version 0.4.3 + */ +class InterconnectResponse { + /** + * Constructs a new InterconnectResponse. + * + * @alias module:model/InterconnectResponse + */ + constructor() { + + InterconnectResponse.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a InterconnectResponse from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/InterconnectResponse} obj Optional instance to populate. + * @return {module:model/InterconnectResponse} The populated InterconnectResponse instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new InterconnectResponse(); + + if (data.hasOwnProperty('id')) { + obj['id'] = ApiClient.convertToType(data['id'], 'String'); + } + if (data.hasOwnProperty('name')) { + obj['name'] = ApiClient.convertToType(data['name'], 'String'); + } + if (data.hasOwnProperty('protocol')) { + obj['protocol'] = ApiClient.convertToType(data['protocol'], 'String'); + } + if (data.hasOwnProperty('type')) { + obj['type'] = ApiClient.convertToType(data['type'], 'String'); + } + if (data.hasOwnProperty('project')) { + obj['project'] = ApiClient.convertToType(data['project'], 'String'); + } + if (data.hasOwnProperty('status')) { + obj['status'] = ApiClient.convertToType(data['status'], 'String'); + } + if (data.hasOwnProperty('interfaces')) { + obj['interfaces'] = ApiClient.convertToType(data['interfaces'], [InstanceInterface]); + } + if (data.hasOwnProperty('createdAt')) { + obj['createdAt'] = ApiClient.convertToType(data['createdAt'], 'String'); + } + if (data.hasOwnProperty('updatedAt')) { + obj['updatedAt'] = ApiClient.convertToType(data['updatedAt'], 'String'); + } + } + return obj; + } + + /** + * Validates the JSON data with respect to InterconnectResponse. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @return {boolean} to indicate whether the JSON data is valid with respect to InterconnectResponse. + */ + static validateJSON(data) { + // ensure the json data is a string + if (data['id'] && !(typeof data['id'] === 'string' || data['id'] instanceof String)) { + throw new Error("Expected the field `id` to be a primitive type in the JSON string but got " + data['id']); + } + // ensure the json data is a string + if (data['name'] && !(typeof data['name'] === 'string' || data['name'] instanceof String)) { + throw new Error("Expected the field `name` to be a primitive type in the JSON string but got " + data['name']); + } + // ensure the json data is a string + if (data['protocol'] && !(typeof data['protocol'] === 'string' || data['protocol'] instanceof String)) { + throw new Error("Expected the field `protocol` to be a primitive type in the JSON string but got " + data['protocol']); + } + // ensure the json data is a string + if (data['type'] && !(typeof data['type'] === 'string' || data['type'] instanceof String)) { + throw new Error("Expected the field `type` to be a primitive type in the JSON string but got " + data['type']); + } + // ensure the json data is a string + if (data['project'] && !(typeof data['project'] === 'string' || data['project'] instanceof String)) { + throw new Error("Expected the field `project` to be a primitive type in the JSON string but got " + data['project']); + } + // ensure the json data is a string + if (data['status'] && !(typeof data['status'] === 'string' || data['status'] instanceof String)) { + throw new Error("Expected the field `status` to be a primitive type in the JSON string but got " + data['status']); + } + if (data['interfaces']) { // data not null + // ensure the json data is an array + if (!Array.isArray(data['interfaces'])) { + throw new Error("Expected the field `interfaces` to be an array in the JSON data but got " + data['interfaces']); + } + // validate the optional field `interfaces` (array) + for (const item of data['interfaces']) { + InstanceInterface.validateJSON(item); + }; + } + // ensure the json data is a string + if (data['createdAt'] && !(typeof data['createdAt'] === 'string' || data['createdAt'] instanceof String)) { + throw new Error("Expected the field `createdAt` to be a primitive type in the JSON string but got " + data['createdAt']); + } + // ensure the json data is a string + if (data['updatedAt'] && !(typeof data['updatedAt'] === 'string' || data['updatedAt'] instanceof String)) { + throw new Error("Expected the field `updatedAt` to be a primitive type in the JSON string but got " + data['updatedAt']); + } + + return true; + } + + +} + + + +/** + * The interconnect identifier + * @member {String} id + */ +InterconnectResponse.prototype['id'] = undefined; + +/** + * The name of the interconnect + * @member {String} name + */ +InterconnectResponse.prototype['name'] = undefined; + +/** + * The protocol used by the interconnect + * @member {String} protocol + */ +InterconnectResponse.prototype['protocol'] = undefined; + +/** + * The type of interconnect + * @member {module:model/InterconnectResponse.TypeEnum} type + */ +InterconnectResponse.prototype['type'] = undefined; + +/** + * The UUID of the project + * @member {String} project + */ +InterconnectResponse.prototype['project'] = undefined; + +/** + * The current status of the interconnect + * @member {String} status + */ +InterconnectResponse.prototype['status'] = undefined; + +/** + * Array of instance interfaces + * @member {Array.} interfaces + */ +InterconnectResponse.prototype['interfaces'] = undefined; + +/** + * Creation timestamp + * @member {String} createdAt + */ +InterconnectResponse.prototype['createdAt'] = undefined; + +/** + * Last update timestamp + * @member {String} updatedAt + */ +InterconnectResponse.prototype['updatedAt'] = undefined; + + + + + +/** + * Allowed values for the type property. + * @enum {String} + * @readonly + */ +InterconnectResponse['TypeEnum'] = { + + /** + * value: "hub" + * @const + */ + "hub": "hub", + + /** + * value: "switch" + * @const + */ + "switch": "switch" +}; + + + +export default InterconnectResponse; + diff --git a/src/model/Invitation.js b/src/model/Invitation.js index 414cf6b..14e09f1 100644 --- a/src/model/Invitation.js +++ b/src/model/Invitation.js @@ -2,7 +2,7 @@ * Corellium API * REST API to manage your virtual devices. * - * The version of the OpenAPI document: 7.3.0 + * The version of the OpenAPI document: 7.9.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -16,7 +16,7 @@ import ApiClient from '../ApiClient'; /** * The Invitation model module. * @module model/Invitation - * @version 0.4.1 + * @version 0.4.3 */ class Invitation { /** diff --git a/src/model/InviteRevokeParams.js b/src/model/InviteRevokeParams.js index ccb4e75..7527c4c 100644 --- a/src/model/InviteRevokeParams.js +++ b/src/model/InviteRevokeParams.js @@ -2,7 +2,7 @@ * Corellium API * REST API to manage your virtual devices. * - * The version of the OpenAPI document: 7.3.0 + * The version of the OpenAPI document: 7.9.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -17,7 +17,7 @@ import InviteRevokeParamsIds from './InviteRevokeParamsIds'; /** * The InviteRevokeParams model module. * @module model/InviteRevokeParams - * @version 0.4.1 + * @version 0.4.3 */ class InviteRevokeParams { /** diff --git a/src/model/InviteRevokeParamsIds.js b/src/model/InviteRevokeParamsIds.js index 0b3f50c..1ea1f21 100644 --- a/src/model/InviteRevokeParamsIds.js +++ b/src/model/InviteRevokeParamsIds.js @@ -2,7 +2,7 @@ * Corellium API * REST API to manage your virtual devices. * - * The version of the OpenAPI document: 7.3.0 + * The version of the OpenAPI document: 7.9.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -16,7 +16,7 @@ import ApiClient from '../ApiClient'; /** * The InviteRevokeParamsIds model module. * @module model/InviteRevokeParamsIds - * @version 0.4.1 + * @version 0.4.3 */ class InviteRevokeParamsIds { /** diff --git a/src/model/Kcrange.js b/src/model/Kcrange.js index f6a7993..d8e93a6 100644 --- a/src/model/Kcrange.js +++ b/src/model/Kcrange.js @@ -2,7 +2,7 @@ * Corellium API * REST API to manage your virtual devices. * - * The version of the OpenAPI document: 7.3.0 + * The version of the OpenAPI document: 7.9.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -16,7 +16,7 @@ import ApiClient from '../ApiClient'; /** * The Kcrange model module. * @module model/Kcrange - * @version 0.4.1 + * @version 0.4.3 */ class Kcrange { /** diff --git a/src/model/KernelTask.js b/src/model/KernelTask.js index 6e789a7..f422e19 100644 --- a/src/model/KernelTask.js +++ b/src/model/KernelTask.js @@ -2,7 +2,7 @@ * Corellium API * REST API to manage your virtual devices. * - * The version of the OpenAPI document: 7.3.0 + * The version of the OpenAPI document: 7.9.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -17,7 +17,7 @@ import KernelThread from './KernelThread'; /** * The KernelTask model module. * @module model/KernelTask - * @version 0.4.1 + * @version 0.4.3 */ class KernelTask { /** diff --git a/src/model/KernelThread.js b/src/model/KernelThread.js index 054f6b0..aa6c035 100644 --- a/src/model/KernelThread.js +++ b/src/model/KernelThread.js @@ -2,7 +2,7 @@ * Corellium API * REST API to manage your virtual devices. * - * The version of the OpenAPI document: 7.3.0 + * The version of the OpenAPI document: 7.9.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -16,7 +16,7 @@ import ApiClient from '../ApiClient'; /** * The KernelThread model module. * @module model/KernelThread - * @version 0.4.1 + * @version 0.4.3 */ class KernelThread { /** diff --git a/src/model/Logging.js b/src/model/Logging.js index c97cbe6..23b8363 100644 --- a/src/model/Logging.js +++ b/src/model/Logging.js @@ -2,7 +2,7 @@ * Corellium API * REST API to manage your virtual devices. * - * The version of the OpenAPI document: 7.3.0 + * The version of the OpenAPI document: 7.9.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -16,7 +16,7 @@ import ApiClient from '../ApiClient'; /** * The Logging model module. * @module model/Logging - * @version 0.4.1 + * @version 0.4.3 */ class Logging { /** diff --git a/src/model/Maintenance.js b/src/model/Maintenance.js index ac54cff..7c89396 100644 --- a/src/model/Maintenance.js +++ b/src/model/Maintenance.js @@ -2,7 +2,7 @@ * Corellium API * REST API to manage your virtual devices. * - * The version of the OpenAPI document: 7.3.0 + * The version of the OpenAPI document: 7.9.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -16,7 +16,7 @@ import ApiClient from '../ApiClient'; /** * The Maintenance model module. * @module model/Maintenance - * @version 0.4.1 + * @version 0.4.3 */ class Maintenance { /** diff --git a/src/model/MediaPlayBody.js b/src/model/MediaPlayBody.js index 081dc77..dd2d0b8 100644 --- a/src/model/MediaPlayBody.js +++ b/src/model/MediaPlayBody.js @@ -2,7 +2,7 @@ * Corellium API * REST API to manage your virtual devices. * - * The version of the OpenAPI document: 7.3.0 + * The version of the OpenAPI document: 7.9.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -16,7 +16,7 @@ import ApiClient from '../ApiClient'; /** * The MediaPlayBody model module. * @module model/MediaPlayBody - * @version 0.4.1 + * @version 0.4.3 */ class MediaPlayBody { /** diff --git a/src/model/MediaStore.js b/src/model/MediaStore.js new file mode 100644 index 0000000..929cd91 --- /dev/null +++ b/src/model/MediaStore.js @@ -0,0 +1,219 @@ +/** + * Corellium API + * REST API to manage your virtual devices. + * + * The version of the OpenAPI document: 7.9.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; + +/** + * The MediaStore model module. + * @module model/MediaStore + * @version 0.4.3 + */ +class MediaStore { + /** + * Constructs a new MediaStore. + * + * @alias module:model/MediaStore + */ + constructor() { + + MediaStore.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a MediaStore from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/MediaStore} obj Optional instance to populate. + * @return {module:model/MediaStore} The populated MediaStore instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new MediaStore(); + + if (data.hasOwnProperty('identifier')) { + obj['identifier'] = ApiClient.convertToType(data['identifier'], 'String'); + } + if (data.hasOwnProperty('device')) { + obj['device'] = ApiClient.convertToType(data['device'], 'String'); + } + if (data.hasOwnProperty('fsType')) { + obj['fsType'] = ApiClient.convertToType(data['fsType'], 'String'); + } + if (data.hasOwnProperty('fsUUID')) { + obj['fsUUID'] = ApiClient.convertToType(data['fsUUID'], 'String'); + } + if (data.hasOwnProperty('label')) { + obj['label'] = ApiClient.convertToType(data['label'], 'String'); + } + if (data.hasOwnProperty('serial')) { + obj['serial'] = ApiClient.convertToType(data['serial'], 'String'); + } + if (data.hasOwnProperty('vendor')) { + obj['vendor'] = ApiClient.convertToType(data['vendor'], 'String'); + } + if (data.hasOwnProperty('model')) { + obj['model'] = ApiClient.convertToType(data['model'], 'String'); + } + if (data.hasOwnProperty('mountPolicy')) { + obj['mountPolicy'] = ApiClient.convertToType(data['mountPolicy'], 'String'); + } + if (data.hasOwnProperty('createdAt')) { + obj['createdAt'] = ApiClient.convertToType(data['createdAt'], 'String'); + } + if (data.hasOwnProperty('updatedAt')) { + obj['updatedAt'] = ApiClient.convertToType(data['updatedAt'], 'String'); + } + } + return obj; + } + + /** + * Validates the JSON data with respect to MediaStore. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @return {boolean} to indicate whether the JSON data is valid with respect to MediaStore. + */ + static validateJSON(data) { + // ensure the json data is a string + if (data['identifier'] && !(typeof data['identifier'] === 'string' || data['identifier'] instanceof String)) { + throw new Error("Expected the field `identifier` to be a primitive type in the JSON string but got " + data['identifier']); + } + // ensure the json data is a string + if (data['device'] && !(typeof data['device'] === 'string' || data['device'] instanceof String)) { + throw new Error("Expected the field `device` to be a primitive type in the JSON string but got " + data['device']); + } + // ensure the json data is a string + if (data['fsType'] && !(typeof data['fsType'] === 'string' || data['fsType'] instanceof String)) { + throw new Error("Expected the field `fsType` to be a primitive type in the JSON string but got " + data['fsType']); + } + // ensure the json data is a string + if (data['fsUUID'] && !(typeof data['fsUUID'] === 'string' || data['fsUUID'] instanceof String)) { + throw new Error("Expected the field `fsUUID` to be a primitive type in the JSON string but got " + data['fsUUID']); + } + // ensure the json data is a string + if (data['label'] && !(typeof data['label'] === 'string' || data['label'] instanceof String)) { + throw new Error("Expected the field `label` to be a primitive type in the JSON string but got " + data['label']); + } + // ensure the json data is a string + if (data['serial'] && !(typeof data['serial'] === 'string' || data['serial'] instanceof String)) { + throw new Error("Expected the field `serial` to be a primitive type in the JSON string but got " + data['serial']); + } + // ensure the json data is a string + if (data['vendor'] && !(typeof data['vendor'] === 'string' || data['vendor'] instanceof String)) { + throw new Error("Expected the field `vendor` to be a primitive type in the JSON string but got " + data['vendor']); + } + // ensure the json data is a string + if (data['model'] && !(typeof data['model'] === 'string' || data['model'] instanceof String)) { + throw new Error("Expected the field `model` to be a primitive type in the JSON string but got " + data['model']); + } + // ensure the json data is a string + if (data['mountPolicy'] && !(typeof data['mountPolicy'] === 'string' || data['mountPolicy'] instanceof String)) { + throw new Error("Expected the field `mountPolicy` to be a primitive type in the JSON string but got " + data['mountPolicy']); + } + // ensure the json data is a string + if (data['createdAt'] && !(typeof data['createdAt'] === 'string' || data['createdAt'] instanceof String)) { + throw new Error("Expected the field `createdAt` to be a primitive type in the JSON string but got " + data['createdAt']); + } + // ensure the json data is a string + if (data['updatedAt'] && !(typeof data['updatedAt'] === 'string' || data['updatedAt'] instanceof String)) { + throw new Error("Expected the field `updatedAt` to be a primitive type in the JSON string but got " + data['updatedAt']); + } + + return true; + } + + +} + + + +/** + * + * @member {String} identifier + */ +MediaStore.prototype['identifier'] = undefined; + +/** + * + * @member {String} device + */ +MediaStore.prototype['device'] = undefined; + +/** + * + * @member {String} fsType + */ +MediaStore.prototype['fsType'] = undefined; + +/** + * + * @member {String} fsUUID + */ +MediaStore.prototype['fsUUID'] = undefined; + +/** + * + * @member {String} label + */ +MediaStore.prototype['label'] = undefined; + +/** + * + * @member {String} serial + */ +MediaStore.prototype['serial'] = undefined; + +/** + * + * @member {String} vendor + */ +MediaStore.prototype['vendor'] = undefined; + +/** + * + * @member {String} model + */ +MediaStore.prototype['model'] = undefined; + +/** + * + * @member {String} mountPolicy + */ +MediaStore.prototype['mountPolicy'] = undefined; + +/** + * + * @member {String} createdAt + */ +MediaStore.prototype['createdAt'] = undefined; + +/** + * + * @member {String} updatedAt + */ +MediaStore.prototype['updatedAt'] = undefined; + + + + + + +export default MediaStore; + diff --git a/src/model/MeteredSubscriptionUsage.js b/src/model/MeteredSubscriptionUsage.js index 6007b92..17845d4 100644 --- a/src/model/MeteredSubscriptionUsage.js +++ b/src/model/MeteredSubscriptionUsage.js @@ -2,7 +2,7 @@ * Corellium API * REST API to manage your virtual devices. * - * The version of the OpenAPI document: 7.3.0 + * The version of the OpenAPI document: 7.9.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -16,7 +16,7 @@ import ApiClient from '../ApiClient'; /** * The MeteredSubscriptionUsage model module. * @module model/MeteredSubscriptionUsage - * @version 0.4.1 + * @version 0.4.3 */ class MeteredSubscriptionUsage { /** diff --git a/src/model/Model.js b/src/model/Model.js index d96e4f1..08531e1 100644 --- a/src/model/Model.js +++ b/src/model/Model.js @@ -2,7 +2,7 @@ * Corellium API * REST API to manage your virtual devices. * - * The version of the OpenAPI document: 7.3.0 + * The version of the OpenAPI document: 7.9.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -16,7 +16,7 @@ import ApiClient from '../ApiClient'; /** * The Model model module. * @module model/Model - * @version 0.4.1 + * @version 0.4.3 */ class Model { /** diff --git a/src/model/ModelSoftware.js b/src/model/ModelSoftware.js index ab47582..fdb2a18 100644 --- a/src/model/ModelSoftware.js +++ b/src/model/ModelSoftware.js @@ -2,7 +2,7 @@ * Corellium API * REST API to manage your virtual devices. * - * The version of the OpenAPI document: 7.3.0 + * The version of the OpenAPI document: 7.9.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -17,7 +17,7 @@ import Firmware from './Firmware'; /** * The ModelSoftware model module. * @module model/ModelSoftware - * @version 0.4.1 + * @version 0.4.3 */ class ModelSoftware { /** diff --git a/src/model/NetdumpFilter.js b/src/model/NetdumpFilter.js index 1aedb9d..93e130f 100644 --- a/src/model/NetdumpFilter.js +++ b/src/model/NetdumpFilter.js @@ -2,7 +2,7 @@ * Corellium API * REST API to manage your virtual devices. * - * The version of the OpenAPI document: 7.3.0 + * The version of the OpenAPI document: 7.9.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -16,7 +16,7 @@ import ApiClient from '../ApiClient'; /** * The NetdumpFilter model module. * @module model/NetdumpFilter - * @version 0.4.1 + * @version 0.4.3 */ class NetdumpFilter { /** diff --git a/src/model/NetworkConnection.js b/src/model/NetworkConnection.js index b10c3ff..49b3514 100644 --- a/src/model/NetworkConnection.js +++ b/src/model/NetworkConnection.js @@ -2,7 +2,7 @@ * Corellium API * REST API to manage your virtual devices. * - * The version of the OpenAPI document: 7.3.0 + * The version of the OpenAPI document: 7.9.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -17,7 +17,7 @@ import ProjectNetworkState from './ProjectNetworkState'; /** * The NetworkConnection model module. * @module model/NetworkConnection - * @version 0.4.1 + * @version 0.4.3 */ class NetworkConnection { /** diff --git a/src/model/NetworkConnectionOffsetPaginationResult.js b/src/model/NetworkConnectionOffsetPaginationResult.js index aa9ea29..777fd9f 100644 --- a/src/model/NetworkConnectionOffsetPaginationResult.js +++ b/src/model/NetworkConnectionOffsetPaginationResult.js @@ -2,7 +2,7 @@ * Corellium API * REST API to manage your virtual devices. * - * The version of the OpenAPI document: 7.3.0 + * The version of the OpenAPI document: 7.9.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -17,7 +17,7 @@ import NetworkConnection from './NetworkConnection'; /** * The NetworkConnectionOffsetPaginationResult model module. * @module model/NetworkConnectionOffsetPaginationResult - * @version 0.4.1 + * @version 0.4.3 */ class NetworkConnectionOffsetPaginationResult { /** diff --git a/src/model/NetworkConnectionProvider.js b/src/model/NetworkConnectionProvider.js index 205029b..87410dc 100644 --- a/src/model/NetworkConnectionProvider.js +++ b/src/model/NetworkConnectionProvider.js @@ -2,7 +2,7 @@ * Corellium API * REST API to manage your virtual devices. * - * The version of the OpenAPI document: 7.3.0 + * The version of the OpenAPI document: 7.9.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -16,7 +16,7 @@ import ApiClient from '../ApiClient'; /** * The NetworkConnectionProvider model module. * @module model/NetworkConnectionProvider - * @version 0.4.1 + * @version 0.4.3 */ class NetworkConnectionProvider { /** diff --git a/src/model/NetworkConnectionProviderOffsetPaginationResult.js b/src/model/NetworkConnectionProviderOffsetPaginationResult.js index 5b72f20..a0995bc 100644 --- a/src/model/NetworkConnectionProviderOffsetPaginationResult.js +++ b/src/model/NetworkConnectionProviderOffsetPaginationResult.js @@ -2,7 +2,7 @@ * Corellium API * REST API to manage your virtual devices. * - * The version of the OpenAPI document: 7.3.0 + * The version of the OpenAPI document: 7.9.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -17,7 +17,7 @@ import NetworkConnectionProvider from './NetworkConnectionProvider'; /** * The NetworkConnectionProviderOffsetPaginationResult model module. * @module model/NetworkConnectionProviderOffsetPaginationResult - * @version 0.4.1 + * @version 0.4.3 */ class NetworkConnectionProviderOffsetPaginationResult { /** diff --git a/src/model/NetworkStatusResponse.js b/src/model/NetworkStatusResponse.js index 004bc41..5d25685 100644 --- a/src/model/NetworkStatusResponse.js +++ b/src/model/NetworkStatusResponse.js @@ -2,7 +2,7 @@ * Corellium API * REST API to manage your virtual devices. * - * The version of the OpenAPI document: 7.3.0 + * The version of the OpenAPI document: 7.9.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -16,7 +16,7 @@ import ApiClient from '../ApiClient'; /** * The NetworkStatusResponse model module. * @module model/NetworkStatusResponse - * @version 0.4.1 + * @version 0.4.3 */ class NetworkStatusResponse { /** diff --git a/src/model/NodeInformation.js b/src/model/NodeInformation.js new file mode 100644 index 0000000..c643f25 --- /dev/null +++ b/src/model/NodeInformation.js @@ -0,0 +1,151 @@ +/** + * Corellium API + * REST API to manage your virtual devices. + * + * The version of the OpenAPI document: 7.9.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; + +/** + * The NodeInformation model module. + * @module model/NodeInformation + * @version 0.4.3 + */ +class NodeInformation { + /** + * Constructs a new NodeInformation. + * + * @alias module:model/NodeInformation + * @param nodeId {String} Unique identifier for the node + * @param address {String} IP address of the node + * @param hostname {String} Hostname of the node + * @param nodeTypes {Array.} Types of services running on this node [compute,controller,gpu] + */ + constructor(nodeId, address, hostname, nodeTypes) { + + NodeInformation.initialize(this, nodeId, address, hostname, nodeTypes); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj, nodeId, address, hostname, nodeTypes) { + obj['nodeId'] = nodeId; + obj['address'] = address; + obj['hostname'] = hostname; + obj['nodeTypes'] = nodeTypes; + } + + /** + * Constructs a NodeInformation from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/NodeInformation} obj Optional instance to populate. + * @return {module:model/NodeInformation} The populated NodeInformation instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new NodeInformation(); + + if (data.hasOwnProperty('nodeId')) { + obj['nodeId'] = ApiClient.convertToType(data['nodeId'], 'String'); + } + if (data.hasOwnProperty('address')) { + obj['address'] = ApiClient.convertToType(data['address'], 'String'); + } + if (data.hasOwnProperty('hostname')) { + obj['hostname'] = ApiClient.convertToType(data['hostname'], 'String'); + } + if (data.hasOwnProperty('sshPort')) { + obj['sshPort'] = ApiClient.convertToType(data['sshPort'], 'Number'); + } + if (data.hasOwnProperty('nodeTypes')) { + obj['nodeTypes'] = ApiClient.convertToType(data['nodeTypes'], ['String']); + } + } + return obj; + } + + /** + * Validates the JSON data with respect to NodeInformation. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @return {boolean} to indicate whether the JSON data is valid with respect to NodeInformation. + */ + static validateJSON(data) { + // check to make sure all required properties are present in the JSON string + for (const property of NodeInformation.RequiredProperties) { + if (!data[property]) { + throw new Error("The required field `" + property + "` is not found in the JSON data: " + JSON.stringify(data)); + } + } + // ensure the json data is a string + if (data['nodeId'] && !(typeof data['nodeId'] === 'string' || data['nodeId'] instanceof String)) { + throw new Error("Expected the field `nodeId` to be a primitive type in the JSON string but got " + data['nodeId']); + } + // ensure the json data is a string + if (data['address'] && !(typeof data['address'] === 'string' || data['address'] instanceof String)) { + throw new Error("Expected the field `address` to be a primitive type in the JSON string but got " + data['address']); + } + // ensure the json data is a string + if (data['hostname'] && !(typeof data['hostname'] === 'string' || data['hostname'] instanceof String)) { + throw new Error("Expected the field `hostname` to be a primitive type in the JSON string but got " + data['hostname']); + } + // ensure the json data is an array + if (!Array.isArray(data['nodeTypes'])) { + throw new Error("Expected the field `nodeTypes` to be an array in the JSON data but got " + data['nodeTypes']); + } + + return true; + } + + +} + +NodeInformation.RequiredProperties = ["nodeId", "address", "hostname", "nodeTypes"]; + +/** + * Unique identifier for the node + * @member {String} nodeId + */ +NodeInformation.prototype['nodeId'] = undefined; + +/** + * IP address of the node + * @member {String} address + */ +NodeInformation.prototype['address'] = undefined; + +/** + * Hostname of the node + * @member {String} hostname + */ +NodeInformation.prototype['hostname'] = undefined; + +/** + * SSH port for the node + * @member {Number} sshPort + */ +NodeInformation.prototype['sshPort'] = undefined; + +/** + * Types of services running on this node [compute,controller,gpu] + * @member {Array.} nodeTypes + */ +NodeInformation.prototype['nodeTypes'] = undefined; + + + + + + +export default NodeInformation; + diff --git a/src/model/NodeUpdatesFailed.js b/src/model/NodeUpdatesFailed.js new file mode 100644 index 0000000..90a1738 --- /dev/null +++ b/src/model/NodeUpdatesFailed.js @@ -0,0 +1,109 @@ +/** + * Corellium API + * REST API to manage your virtual devices. + * + * The version of the OpenAPI document: 7.9.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; +import NodeInformation from './NodeInformation'; + +/** + * The NodeUpdatesFailed model module. + * @module model/NodeUpdatesFailed + * @version 0.4.3 + */ +class NodeUpdatesFailed { + /** + * Constructs a new NodeUpdatesFailed. + * + * @alias module:model/NodeUpdatesFailed + */ + constructor() { + + NodeUpdatesFailed.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a NodeUpdatesFailed from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/NodeUpdatesFailed} obj Optional instance to populate. + * @return {module:model/NodeUpdatesFailed} The populated NodeUpdatesFailed instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new NodeUpdatesFailed(); + + if (data.hasOwnProperty('message')) { + obj['message'] = ApiClient.convertToType(data['message'], 'String'); + } + if (data.hasOwnProperty('nodes')) { + obj['nodes'] = ApiClient.convertToType(data['nodes'], [NodeInformation]); + } + } + return obj; + } + + /** + * Validates the JSON data with respect to NodeUpdatesFailed. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @return {boolean} to indicate whether the JSON data is valid with respect to NodeUpdatesFailed. + */ + static validateJSON(data) { + // ensure the json data is a string + if (data['message'] && !(typeof data['message'] === 'string' || data['message'] instanceof String)) { + throw new Error("Expected the field `message` to be a primitive type in the JSON string but got " + data['message']); + } + if (data['nodes']) { // data not null + // ensure the json data is an array + if (!Array.isArray(data['nodes'])) { + throw new Error("Expected the field `nodes` to be an array in the JSON data but got " + data['nodes']); + } + // validate the optional field `nodes` (array) + for (const item of data['nodes']) { + NodeInformation.validateJSON(item); + }; + } + + return true; + } + + +} + + + +/** + * Instructions to try again or resolve manually + * @member {String} message + */ +NodeUpdatesFailed.prototype['message'] = undefined; + +/** + * List of nodes that failed to receive updates. + * @member {Array.} nodes + */ +NodeUpdatesFailed.prototype['nodes'] = undefined; + + + + + + +export default NodeUpdatesFailed; + diff --git a/src/model/OpenIDConfig.js b/src/model/OpenIDConfig.js index 0985667..c08d9d8 100644 --- a/src/model/OpenIDConfig.js +++ b/src/model/OpenIDConfig.js @@ -2,7 +2,7 @@ * Corellium API * REST API to manage your virtual devices. * - * The version of the OpenAPI document: 7.3.0 + * The version of the OpenAPI document: 7.9.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -16,7 +16,7 @@ import ApiClient from '../ApiClient'; /** * The OpenIDConfig model module. * @module model/OpenIDConfig - * @version 0.4.1 + * @version 0.4.3 */ class OpenIDConfig { /** diff --git a/src/model/Pagination.js b/src/model/Pagination.js index 4fab9ce..21a59f0 100644 --- a/src/model/Pagination.js +++ b/src/model/Pagination.js @@ -2,7 +2,7 @@ * Corellium API * REST API to manage your virtual devices. * - * The version of the OpenAPI document: 7.3.0 + * The version of the OpenAPI document: 7.9.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -16,7 +16,7 @@ import ApiClient from '../ApiClient'; /** * The Pagination model module. * @module model/Pagination - * @version 0.4.1 + * @version 0.4.3 */ class Pagination { /** diff --git a/src/model/PartialUpdateInterconnectRequest.js b/src/model/PartialUpdateInterconnectRequest.js new file mode 100644 index 0000000..9963d28 --- /dev/null +++ b/src/model/PartialUpdateInterconnectRequest.js @@ -0,0 +1,102 @@ +/** + * Corellium API + * REST API to manage your virtual devices. + * + * The version of the OpenAPI document: 7.9.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; + +/** + * The PartialUpdateInterconnectRequest model module. + * @module model/PartialUpdateInterconnectRequest + * @version 0.4.3 + */ +class PartialUpdateInterconnectRequest { + /** + * Constructs a new PartialUpdateInterconnectRequest. + * + * @alias module:model/PartialUpdateInterconnectRequest + */ + constructor() { + + PartialUpdateInterconnectRequest.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a PartialUpdateInterconnectRequest from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/PartialUpdateInterconnectRequest} obj Optional instance to populate. + * @return {module:model/PartialUpdateInterconnectRequest} The populated PartialUpdateInterconnectRequest instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new PartialUpdateInterconnectRequest(); + + if (data.hasOwnProperty('name')) { + obj['name'] = ApiClient.convertToType(data['name'], 'String'); + } + if (data.hasOwnProperty('interfaces')) { + obj['interfaces'] = ApiClient.convertToType(data['interfaces'], [Object]); + } + } + return obj; + } + + /** + * Validates the JSON data with respect to PartialUpdateInterconnectRequest. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @return {boolean} to indicate whether the JSON data is valid with respect to PartialUpdateInterconnectRequest. + */ + static validateJSON(data) { + // ensure the json data is a string + if (data['name'] && !(typeof data['name'] === 'string' || data['name'] instanceof String)) { + throw new Error("Expected the field `name` to be a primitive type in the JSON string but got " + data['name']); + } + // ensure the json data is an array + if (!Array.isArray(data['interfaces'])) { + throw new Error("Expected the field `interfaces` to be an array in the JSON data but got " + data['interfaces']); + } + + return true; + } + + +} + + + +/** + * The name of the interconnect (optional) + * @member {String} name + */ +PartialUpdateInterconnectRequest.prototype['name'] = undefined; + +/** + * Array of interfaces with deviceId and interfaceId (optional) + * @member {Array.} interfaces + */ +PartialUpdateInterconnectRequest.prototype['interfaces'] = undefined; + + + + + + +export default PartialUpdateInterconnectRequest; + diff --git a/src/model/PasswordChangeBody.js b/src/model/PasswordChangeBody.js index 6701e53..38b0c66 100644 --- a/src/model/PasswordChangeBody.js +++ b/src/model/PasswordChangeBody.js @@ -2,7 +2,7 @@ * Corellium API * REST API to manage your virtual devices. * - * The version of the OpenAPI document: 7.3.0 + * The version of the OpenAPI document: 7.9.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -16,7 +16,7 @@ import ApiClient from '../ApiClient'; /** * The PasswordChangeBody model module. * @module model/PasswordChangeBody - * @version 0.4.1 + * @version 0.4.3 */ class PasswordChangeBody { /** diff --git a/src/model/PasswordResetBody.js b/src/model/PasswordResetBody.js index 40fcd37..2b78c1a 100644 --- a/src/model/PasswordResetBody.js +++ b/src/model/PasswordResetBody.js @@ -2,7 +2,7 @@ * Corellium API * REST API to manage your virtual devices. * - * The version of the OpenAPI document: 7.3.0 + * The version of the OpenAPI document: 7.9.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -16,7 +16,7 @@ import ApiClient from '../ApiClient'; /** * The PasswordResetBody model module. * @module model/PasswordResetBody - * @version 0.4.1 + * @version 0.4.3 */ class PasswordResetBody { /** diff --git a/src/model/PatchInstanceOptions.js b/src/model/PatchInstanceOptions.js index 25afc4b..056d85c 100644 --- a/src/model/PatchInstanceOptions.js +++ b/src/model/PatchInstanceOptions.js @@ -2,7 +2,7 @@ * Corellium API * REST API to manage your virtual devices. * - * The version of the OpenAPI document: 7.3.0 + * The version of the OpenAPI document: 7.9.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -18,7 +18,7 @@ import ProxyConfig from './ProxyConfig'; /** * The PatchInstanceOptions model module. * @module model/PatchInstanceOptions - * @version 0.4.1 + * @version 0.4.3 */ class PatchInstanceOptions { /** diff --git a/src/model/PatchInstanceReadOnly.js b/src/model/PatchInstanceReadOnly.js new file mode 100644 index 0000000..d0cb72e --- /dev/null +++ b/src/model/PatchInstanceReadOnly.js @@ -0,0 +1,89 @@ +/** + * Corellium API + * REST API to manage your virtual devices. + * + * The version of the OpenAPI document: 7.9.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; + +/** + * The PatchInstanceReadOnly model module. + * @module model/PatchInstanceReadOnly + * @version 0.4.3 + */ +class PatchInstanceReadOnly { + /** + * Constructs a new PatchInstanceReadOnly. + * + * @alias module:model/PatchInstanceReadOnly + */ + constructor() { + + PatchInstanceReadOnly.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a PatchInstanceReadOnly from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/PatchInstanceReadOnly} obj Optional instance to populate. + * @return {module:model/PatchInstanceReadOnly} The populated PatchInstanceReadOnly instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new PatchInstanceReadOnly(); + + if (data.hasOwnProperty('readOnly')) { + obj['readOnly'] = ApiClient.convertToType(data['readOnly'], 'String'); + } + } + return obj; + } + + /** + * Validates the JSON data with respect to PatchInstanceReadOnly. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @return {boolean} to indicate whether the JSON data is valid with respect to PatchInstanceReadOnly. + */ + static validateJSON(data) { + // ensure the json data is a string + if (data['readOnly'] && !(typeof data['readOnly'] === 'string' || data['readOnly'] instanceof String)) { + throw new Error("Expected the field `readOnly` to be a primitive type in the JSON string but got " + data['readOnly']); + } + + return true; + } + + +} + + + +/** + * The desired state of readOnly. Possible values: 'enabled', 'disabled'. + * @member {String} readOnly + */ +PatchInstanceReadOnly.prototype['readOnly'] = undefined; + + + + + + +export default PatchInstanceReadOnly; + diff --git a/src/model/PeripheralsData.js b/src/model/PeripheralsData.js index 2592987..1bc1046 100644 --- a/src/model/PeripheralsData.js +++ b/src/model/PeripheralsData.js @@ -2,7 +2,7 @@ * Corellium API * REST API to manage your virtual devices. * - * The version of the OpenAPI document: 7.3.0 + * The version of the OpenAPI document: 7.9.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -16,7 +16,7 @@ import ApiClient from '../ApiClient'; /** * The PeripheralsData model module. * @module model/PeripheralsData - * @version 0.4.1 + * @version 0.4.3 */ class PeripheralsData { /** diff --git a/src/model/Plan.js b/src/model/Plan.js index d4c91af..e7e727f 100644 --- a/src/model/Plan.js +++ b/src/model/Plan.js @@ -2,7 +2,7 @@ * Corellium API * REST API to manage your virtual devices. * - * The version of the OpenAPI document: 7.3.0 + * The version of the OpenAPI document: 7.9.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -16,7 +16,7 @@ import ApiClient from '../ApiClient'; /** * The Plan model module. * @module model/Plan - * @version 0.4.1 + * @version 0.4.3 */ class Plan { /** diff --git a/src/model/PostShareSnapshotRequestPayload.js b/src/model/PostShareSnapshotRequestPayload.js index 5ecb2e2..ba8082e 100644 --- a/src/model/PostShareSnapshotRequestPayload.js +++ b/src/model/PostShareSnapshotRequestPayload.js @@ -2,7 +2,7 @@ * Corellium API * REST API to manage your virtual devices. * - * The version of the OpenAPI document: 7.3.0 + * The version of the OpenAPI document: 7.9.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -16,7 +16,7 @@ import ApiClient from '../ApiClient'; /** * The PostShareSnapshotRequestPayload model module. * @module model/PostShareSnapshotRequestPayload - * @version 0.4.1 + * @version 0.4.3 */ class PostShareSnapshotRequestPayload { /** diff --git a/src/model/Project.js b/src/model/Project.js index de9c212..731081d 100644 --- a/src/model/Project.js +++ b/src/model/Project.js @@ -2,7 +2,7 @@ * Corellium API * REST API to manage your virtual devices. * - * The version of the OpenAPI document: 7.3.0 + * The version of the OpenAPI document: 7.9.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -19,7 +19,7 @@ import ProjectUsage from './ProjectUsage'; /** * The Project model module. * @module model/Project - * @version 0.4.1 + * @version 0.4.3 */ class Project { /** diff --git a/src/model/ProjectKey.js b/src/model/ProjectKey.js index a7d9fa0..6b9396e 100644 --- a/src/model/ProjectKey.js +++ b/src/model/ProjectKey.js @@ -2,7 +2,7 @@ * Corellium API * REST API to manage your virtual devices. * - * The version of the OpenAPI document: 7.3.0 + * The version of the OpenAPI document: 7.9.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -16,7 +16,7 @@ import ApiClient from '../ApiClient'; /** * The ProjectKey model module. * @module model/ProjectKey - * @version 0.4.1 + * @version 0.4.3 */ class ProjectKey { /** diff --git a/src/model/ProjectNetworkState.js b/src/model/ProjectNetworkState.js index 808c2f9..ac792d5 100644 --- a/src/model/ProjectNetworkState.js +++ b/src/model/ProjectNetworkState.js @@ -2,7 +2,7 @@ * Corellium API * REST API to manage your virtual devices. * - * The version of the OpenAPI document: 7.3.0 + * The version of the OpenAPI document: 7.9.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -16,7 +16,7 @@ import ApiClient from '../ApiClient'; /** * The ProjectNetworkState model module. * @module model/ProjectNetworkState - * @version 0.4.1 + * @version 0.4.3 */ class ProjectNetworkState { /** diff --git a/src/model/ProjectQuota.js b/src/model/ProjectQuota.js index e96d172..c533737 100644 --- a/src/model/ProjectQuota.js +++ b/src/model/ProjectQuota.js @@ -2,7 +2,7 @@ * Corellium API * REST API to manage your virtual devices. * - * The version of the OpenAPI document: 7.3.0 + * The version of the OpenAPI document: 7.9.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -16,7 +16,7 @@ import ApiClient from '../ApiClient'; /** * The ProjectQuota model module. * @module model/ProjectQuota - * @version 0.4.1 + * @version 0.4.3 */ class ProjectQuota { /** diff --git a/src/model/ProjectSettings.js b/src/model/ProjectSettings.js index aa21f83..ed97aa0 100644 --- a/src/model/ProjectSettings.js +++ b/src/model/ProjectSettings.js @@ -2,7 +2,7 @@ * Corellium API * REST API to manage your virtual devices. * - * The version of the OpenAPI document: 7.3.0 + * The version of the OpenAPI document: 7.9.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -16,7 +16,7 @@ import ApiClient from '../ApiClient'; /** * The ProjectSettings model module. * @module model/ProjectSettings - * @version 0.4.1 + * @version 0.4.3 */ class ProjectSettings { /** diff --git a/src/model/ProjectUsage.js b/src/model/ProjectUsage.js index 9d86ac4..76eac90 100644 --- a/src/model/ProjectUsage.js +++ b/src/model/ProjectUsage.js @@ -2,7 +2,7 @@ * Corellium API * REST API to manage your virtual devices. * - * The version of the OpenAPI document: 7.3.0 + * The version of the OpenAPI document: 7.9.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -16,7 +16,7 @@ import ApiClient from '../ApiClient'; /** * The ProjectUsage model module. * @module model/ProjectUsage - * @version 0.4.1 + * @version 0.4.3 */ class ProjectUsage { /** diff --git a/src/model/ProxyConfig.js b/src/model/ProxyConfig.js index 4a51a34..e24319f 100644 --- a/src/model/ProxyConfig.js +++ b/src/model/ProxyConfig.js @@ -2,7 +2,7 @@ * Corellium API * REST API to manage your virtual devices. * - * The version of the OpenAPI document: 7.3.0 + * The version of the OpenAPI document: 7.9.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -16,7 +16,7 @@ import ApiClient from '../ApiClient'; /** * The ProxyConfig model module. * @module model/ProxyConfig - * @version 0.4.1 + * @version 0.4.3 */ class ProxyConfig { /** diff --git a/src/model/ResetLinkBody.js b/src/model/ResetLinkBody.js index c2d1435..0e8b946 100644 --- a/src/model/ResetLinkBody.js +++ b/src/model/ResetLinkBody.js @@ -2,7 +2,7 @@ * Corellium API * REST API to manage your virtual devices. * - * The version of the OpenAPI document: 7.3.0 + * The version of the OpenAPI document: 7.9.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -16,7 +16,7 @@ import ApiClient from '../ApiClient'; /** * The ResetLinkBody model module. * @module model/ResetLinkBody - * @version 0.4.1 + * @version 0.4.3 */ class ResetLinkBody { /** diff --git a/src/model/ResetLinkInfoReturn.js b/src/model/ResetLinkInfoReturn.js new file mode 100644 index 0000000..44a2358 --- /dev/null +++ b/src/model/ResetLinkInfoReturn.js @@ -0,0 +1,115 @@ +/** + * Corellium API + * REST API to manage your virtual devices. + * + * The version of the OpenAPI document: 7.9.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; + +/** + * The ResetLinkInfoReturn model module. + * @module model/ResetLinkInfoReturn + * @version 0.4.3 + */ +class ResetLinkInfoReturn { + /** + * Constructs a new ResetLinkInfoReturn. + * + * @alias module:model/ResetLinkInfoReturn + */ + constructor() { + + ResetLinkInfoReturn.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a ResetLinkInfoReturn from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/ResetLinkInfoReturn} obj Optional instance to populate. + * @return {module:model/ResetLinkInfoReturn} The populated ResetLinkInfoReturn instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new ResetLinkInfoReturn(); + + if (data.hasOwnProperty('userId')) { + obj['userId'] = ApiClient.convertToType(data['userId'], 'String'); + } + if (data.hasOwnProperty('username')) { + obj['username'] = ApiClient.convertToType(data['username'], 'String'); + } + if (data.hasOwnProperty('domain')) { + obj['domain'] = ApiClient.convertToType(data['domain'], 'String'); + } + } + return obj; + } + + /** + * Validates the JSON data with respect to ResetLinkInfoReturn. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @return {boolean} to indicate whether the JSON data is valid with respect to ResetLinkInfoReturn. + */ + static validateJSON(data) { + // ensure the json data is a string + if (data['userId'] && !(typeof data['userId'] === 'string' || data['userId'] instanceof String)) { + throw new Error("Expected the field `userId` to be a primitive type in the JSON string but got " + data['userId']); + } + // ensure the json data is a string + if (data['username'] && !(typeof data['username'] === 'string' || data['username'] instanceof String)) { + throw new Error("Expected the field `username` to be a primitive type in the JSON string but got " + data['username']); + } + // ensure the json data is a string + if (data['domain'] && !(typeof data['domain'] === 'string' || data['domain'] instanceof String)) { + throw new Error("Expected the field `domain` to be a primitive type in the JSON string but got " + data['domain']); + } + + return true; + } + + +} + + + +/** + * The user identifier + * @member {String} userId + */ +ResetLinkInfoReturn.prototype['userId'] = undefined; + +/** + * The user name + * @member {String} username + */ +ResetLinkInfoReturn.prototype['username'] = undefined; + +/** + * The domain name + * @member {String} domain + */ +ResetLinkInfoReturn.prototype['domain'] = undefined; + + + + + + +export default ResetLinkInfoReturn; + diff --git a/src/model/RestoreBackupData.js b/src/model/RestoreBackupData.js new file mode 100644 index 0000000..b01cff2 --- /dev/null +++ b/src/model/RestoreBackupData.js @@ -0,0 +1,89 @@ +/** + * Corellium API + * REST API to manage your virtual devices. + * + * The version of the OpenAPI document: 7.9.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; + +/** + * The RestoreBackupData model module. + * @module model/RestoreBackupData + * @version 0.4.3 + */ +class RestoreBackupData { + /** + * Constructs a new RestoreBackupData. + * + * @alias module:model/RestoreBackupData + */ + constructor() { + + RestoreBackupData.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a RestoreBackupData from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/RestoreBackupData} obj Optional instance to populate. + * @return {module:model/RestoreBackupData} The populated RestoreBackupData instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new RestoreBackupData(); + + if (data.hasOwnProperty('password')) { + obj['password'] = ApiClient.convertToType(data['password'], 'String'); + } + } + return obj; + } + + /** + * Validates the JSON data with respect to RestoreBackupData. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @return {boolean} to indicate whether the JSON data is valid with respect to RestoreBackupData. + */ + static validateJSON(data) { + // ensure the json data is a string + if (data['password'] && !(typeof data['password'] === 'string' || data['password'] instanceof String)) { + throw new Error("Expected the field `password` to be a primitive type in the JSON string but got " + data['password']); + } + + return true; + } + + +} + + + +/** + * Required for encrypted backup + * @member {String} password + */ +RestoreBackupData.prototype['password'] = undefined; + + + + + + +export default RestoreBackupData; + diff --git a/src/model/Role.js b/src/model/Role.js index c011c48..86665ab 100644 --- a/src/model/Role.js +++ b/src/model/Role.js @@ -2,7 +2,7 @@ * Corellium API * REST API to manage your virtual devices. * - * The version of the OpenAPI document: 7.3.0 + * The version of the OpenAPI document: 7.9.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -16,7 +16,7 @@ import ApiClient from '../ApiClient'; /** * The Role model module. * @module model/Role - * @version 0.4.1 + * @version 0.4.3 */ class Role { /** diff --git a/src/model/RotateBody.js b/src/model/RotateBody.js index 18e9387..88a49fe 100644 --- a/src/model/RotateBody.js +++ b/src/model/RotateBody.js @@ -2,7 +2,7 @@ * Corellium API * REST API to manage your virtual devices. * - * The version of the OpenAPI document: 7.3.0 + * The version of the OpenAPI document: 7.9.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -16,7 +16,7 @@ import ApiClient from '../ApiClient'; /** * The RotateBody model module. * @module model/RotateBody - * @version 0.4.1 + * @version 0.4.3 */ class RotateBody { /** diff --git a/src/model/SharedSnapshotsInfo.js b/src/model/SharedSnapshotsInfo.js index 9da68f4..32bfd7a 100644 --- a/src/model/SharedSnapshotsInfo.js +++ b/src/model/SharedSnapshotsInfo.js @@ -2,7 +2,7 @@ * Corellium API * REST API to manage your virtual devices. * - * The version of the OpenAPI document: 7.3.0 + * The version of the OpenAPI document: 7.9.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -17,7 +17,7 @@ import SnapshotOwner from './SnapshotOwner'; /** * The SharedSnapshotsInfo model module. * @module model/SharedSnapshotsInfo - * @version 0.4.1 + * @version 0.4.3 */ class SharedSnapshotsInfo { /** diff --git a/src/model/Snapshot.js b/src/model/Snapshot.js index 248168f..76fa3d2 100644 --- a/src/model/Snapshot.js +++ b/src/model/Snapshot.js @@ -2,7 +2,7 @@ * Corellium API * REST API to manage your virtual devices. * - * The version of the OpenAPI document: 7.3.0 + * The version of the OpenAPI document: 7.9.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -18,7 +18,7 @@ import SnapshotStatus from './SnapshotStatus'; /** * The Snapshot model module. * @module model/Snapshot - * @version 0.4.1 + * @version 0.4.3 */ class Snapshot { /** diff --git a/src/model/SnapshotCreationOptions.js b/src/model/SnapshotCreationOptions.js index b18f89a..8fe4fbf 100644 --- a/src/model/SnapshotCreationOptions.js +++ b/src/model/SnapshotCreationOptions.js @@ -2,7 +2,7 @@ * Corellium API * REST API to manage your virtual devices. * - * The version of the OpenAPI document: 7.3.0 + * The version of the OpenAPI document: 7.9.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -16,7 +16,7 @@ import ApiClient from '../ApiClient'; /** * The SnapshotCreationOptions model module. * @module model/SnapshotCreationOptions - * @version 0.4.1 + * @version 0.4.3 */ class SnapshotCreationOptions { /** diff --git a/src/model/SnapshotList.js b/src/model/SnapshotList.js new file mode 100644 index 0000000..4da5059 --- /dev/null +++ b/src/model/SnapshotList.js @@ -0,0 +1,123 @@ +/** + * Corellium API + * REST API to manage your virtual devices. + * + * The version of the OpenAPI document: 7.9.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; +import ClusterSnapshot from './ClusterSnapshot'; + +/** + * The SnapshotList model module. + * @module model/SnapshotList + * @version 0.4.3 + */ +class SnapshotList { + /** + * Constructs a new SnapshotList. + * + * @alias module:model/SnapshotList + */ + constructor() { + + SnapshotList.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a SnapshotList from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/SnapshotList} obj Optional instance to populate. + * @return {module:model/SnapshotList} The populated SnapshotList instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new SnapshotList(); + + if (data.hasOwnProperty('results')) { + obj['results'] = ApiClient.convertToType(data['results'], [ClusterSnapshot]); + } + if (data.hasOwnProperty('offset')) { + obj['offset'] = ApiClient.convertToType(data['offset'], 'Number'); + } + if (data.hasOwnProperty('limit')) { + obj['limit'] = ApiClient.convertToType(data['limit'], 'Number'); + } + if (data.hasOwnProperty('count')) { + obj['count'] = ApiClient.convertToType(data['count'], 'Number'); + } + } + return obj; + } + + /** + * Validates the JSON data with respect to SnapshotList. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @return {boolean} to indicate whether the JSON data is valid with respect to SnapshotList. + */ + static validateJSON(data) { + if (data['results']) { // data not null + // ensure the json data is an array + if (!Array.isArray(data['results'])) { + throw new Error("Expected the field `results` to be an array in the JSON data but got " + data['results']); + } + // validate the optional field `results` (array) + for (const item of data['results']) { + ClusterSnapshot.validateJSON(item); + }; + } + + return true; + } + + +} + + + +/** + * List of snapshots + * @member {Array.} results + */ +SnapshotList.prototype['results'] = undefined; + +/** + * Offset for pagination, defaults to 0 + * @member {Number} offset + */ +SnapshotList.prototype['offset'] = undefined; + +/** + * Number of items to return, defaults to 100, minimum of 1 and maximum of 1000 + * @member {Number} limit + */ +SnapshotList.prototype['limit'] = undefined; + +/** + * Number of items in current response + * @member {Number} count + */ +SnapshotList.prototype['count'] = undefined; + + + + + + +export default SnapshotList; + diff --git a/src/model/SnapshotMember.js b/src/model/SnapshotMember.js index dabd16e..9576ea3 100644 --- a/src/model/SnapshotMember.js +++ b/src/model/SnapshotMember.js @@ -2,7 +2,7 @@ * Corellium API * REST API to manage your virtual devices. * - * The version of the OpenAPI document: 7.3.0 + * The version of the OpenAPI document: 7.9.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -16,7 +16,7 @@ import ApiClient from '../ApiClient'; /** * The SnapshotMember model module. * @module model/SnapshotMember - * @version 0.4.1 + * @version 0.4.3 */ class SnapshotMember { /** diff --git a/src/model/SnapshotOwner.js b/src/model/SnapshotOwner.js index afb032b..f355577 100644 --- a/src/model/SnapshotOwner.js +++ b/src/model/SnapshotOwner.js @@ -2,7 +2,7 @@ * Corellium API * REST API to manage your virtual devices. * - * The version of the OpenAPI document: 7.3.0 + * The version of the OpenAPI document: 7.9.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -16,7 +16,7 @@ import ApiClient from '../ApiClient'; /** * The SnapshotOwner model module. * @module model/SnapshotOwner - * @version 0.4.1 + * @version 0.4.3 */ class SnapshotOwner { /** diff --git a/src/model/SnapshotPermissionsRequestPayload.js b/src/model/SnapshotPermissionsRequestPayload.js index f84bb00..5dbba3b 100644 --- a/src/model/SnapshotPermissionsRequestPayload.js +++ b/src/model/SnapshotPermissionsRequestPayload.js @@ -2,7 +2,7 @@ * Corellium API * REST API to manage your virtual devices. * - * The version of the OpenAPI document: 7.3.0 + * The version of the OpenAPI document: 7.9.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -16,7 +16,7 @@ import ApiClient from '../ApiClient'; /** * The SnapshotPermissionsRequestPayload model module. * @module model/SnapshotPermissionsRequestPayload - * @version 0.4.1 + * @version 0.4.3 */ class SnapshotPermissionsRequestPayload { /** diff --git a/src/model/SnapshotRequest.js b/src/model/SnapshotRequest.js new file mode 100644 index 0000000..1f9ff5f --- /dev/null +++ b/src/model/SnapshotRequest.js @@ -0,0 +1,199 @@ +/** + * Corellium API + * REST API to manage your virtual devices. + * + * The version of the OpenAPI document: 7.9.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; + +/** + * The SnapshotRequest model module. + * @module model/SnapshotRequest + * @version 0.4.3 + */ +class SnapshotRequest { + /** + * Constructs a new SnapshotRequest. + * + * @alias module:model/SnapshotRequest + */ + constructor() { + + SnapshotRequest.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a SnapshotRequest from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/SnapshotRequest} obj Optional instance to populate. + * @return {module:model/SnapshotRequest} The populated SnapshotRequest instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new SnapshotRequest(); + + if (data.hasOwnProperty('limit')) { + obj['limit'] = ApiClient.convertToType(data['limit'], 'Number'); + } + if (data.hasOwnProperty('offset')) { + obj['offset'] = ApiClient.convertToType(data['offset'], 'Number'); + } + if (data.hasOwnProperty('springboard')) { + obj['springboard'] = ApiClient.convertToType(data['springboard'], 'Boolean'); + } + if (data.hasOwnProperty('live')) { + obj['live'] = ApiClient.convertToType(data['live'], 'Boolean'); + } + if (data.hasOwnProperty('fresh')) { + obj['fresh'] = ApiClient.convertToType(data['fresh'], 'Boolean'); + } + if (data.hasOwnProperty('deviceName')) { + obj['deviceName'] = ApiClient.convertToType(data['deviceName'], 'String'); + } + if (data.hasOwnProperty('task')) { + obj['task'] = ApiClient.convertToType(data['task'], 'String'); + } + if (data.hasOwnProperty('to')) { + obj['to'] = ApiClient.convertToType(data['to'], 'String'); + } + if (data.hasOwnProperty('from')) { + obj['from'] = ApiClient.convertToType(data['from'], 'String'); + } + if (data.hasOwnProperty('orderBy')) { + obj['orderBy'] = ApiClient.convertToType(data['orderBy'], 'String'); + } + if (data.hasOwnProperty('search')) { + obj['search'] = ApiClient.convertToType(data['search'], 'String'); + } + } + return obj; + } + + /** + * Validates the JSON data with respect to SnapshotRequest. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @return {boolean} to indicate whether the JSON data is valid with respect to SnapshotRequest. + */ + static validateJSON(data) { + // ensure the json data is a string + if (data['deviceName'] && !(typeof data['deviceName'] === 'string' || data['deviceName'] instanceof String)) { + throw new Error("Expected the field `deviceName` to be a primitive type in the JSON string but got " + data['deviceName']); + } + // ensure the json data is a string + if (data['task'] && !(typeof data['task'] === 'string' || data['task'] instanceof String)) { + throw new Error("Expected the field `task` to be a primitive type in the JSON string but got " + data['task']); + } + // ensure the json data is a string + if (data['to'] && !(typeof data['to'] === 'string' || data['to'] instanceof String)) { + throw new Error("Expected the field `to` to be a primitive type in the JSON string but got " + data['to']); + } + // ensure the json data is a string + if (data['from'] && !(typeof data['from'] === 'string' || data['from'] instanceof String)) { + throw new Error("Expected the field `from` to be a primitive type in the JSON string but got " + data['from']); + } + // ensure the json data is a string + if (data['orderBy'] && !(typeof data['orderBy'] === 'string' || data['orderBy'] instanceof String)) { + throw new Error("Expected the field `orderBy` to be a primitive type in the JSON string but got " + data['orderBy']); + } + // ensure the json data is a string + if (data['search'] && !(typeof data['search'] === 'string' || data['search'] instanceof String)) { + throw new Error("Expected the field `search` to be a primitive type in the JSON string but got " + data['search']); + } + + return true; + } + + +} + + + +/** + * Number of entries to return, defaults to 100 + * @member {Number} limit + */ +SnapshotRequest.prototype['limit'] = undefined; + +/** + * Number of rows to skip, defaults to 0 + * @member {Number} offset + */ +SnapshotRequest.prototype['offset'] = undefined; + +/** + * Denotes whether snapshot was a springboard snapshot + * @member {Boolean} springboard + */ +SnapshotRequest.prototype['springboard'] = undefined; + +/** + * Denotes whether snapshot was a live snapshot + * @member {Boolean} live + */ +SnapshotRequest.prototype['live'] = undefined; + +/** + * Denotes whether snapshot was created immediately after the device was restored + * @member {Boolean} fresh + */ +SnapshotRequest.prototype['fresh'] = undefined; + +/** + * Name of device + * @member {String} deviceName + */ +SnapshotRequest.prototype['deviceName'] = undefined; + +/** + * Task being executed on snapshot + * @member {String} task + */ +SnapshotRequest.prototype['task'] = undefined; + +/** + * Date to filter to, keyed off of createdAt + * @member {String} to + */ +SnapshotRequest.prototype['to'] = undefined; + +/** + * Date to filter from, keyed off of createdAt + * @member {String} from + */ +SnapshotRequest.prototype['from'] = undefined; + +/** + * Sorting order ('-createdAt' or 'createdAt'), defaults to -createdAt + * @member {String} orderBy + */ +SnapshotRequest.prototype['orderBy'] = undefined; + +/** + * Last filter applied and searches on snapshot / associated instance name and snapshot / instance id + * @member {String} search + */ +SnapshotRequest.prototype['search'] = undefined; + + + + + + +export default SnapshotRequest; + diff --git a/src/model/SnapshotSharing.js b/src/model/SnapshotSharing.js index 294619e..7403174 100644 --- a/src/model/SnapshotSharing.js +++ b/src/model/SnapshotSharing.js @@ -2,7 +2,7 @@ * Corellium API * REST API to manage your virtual devices. * - * The version of the OpenAPI document: 7.3.0 + * The version of the OpenAPI document: 7.9.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -18,7 +18,7 @@ import SnapshotOwner from './SnapshotOwner'; /** * The SnapshotSharing model module. * @module model/SnapshotSharing - * @version 0.4.1 + * @version 0.4.3 */ class SnapshotSharing { /** diff --git a/src/model/SnapshotSharingPermissions.js b/src/model/SnapshotSharingPermissions.js index 0cad0d1..ef82c17 100644 --- a/src/model/SnapshotSharingPermissions.js +++ b/src/model/SnapshotSharingPermissions.js @@ -2,7 +2,7 @@ * Corellium API * REST API to manage your virtual devices. * - * The version of the OpenAPI document: 7.3.0 + * The version of the OpenAPI document: 7.9.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -16,7 +16,7 @@ import ApiClient from '../ApiClient'; /** * The SnapshotSharingPermissions model module. * @module model/SnapshotSharingPermissions - * @version 0.4.1 + * @version 0.4.3 */ class SnapshotSharingPermissions { /** diff --git a/src/model/SnapshotStatus.js b/src/model/SnapshotStatus.js index c0d8299..a3d6a5c 100644 --- a/src/model/SnapshotStatus.js +++ b/src/model/SnapshotStatus.js @@ -2,7 +2,7 @@ * Corellium API * REST API to manage your virtual devices. * - * The version of the OpenAPI document: 7.3.0 + * The version of the OpenAPI document: 7.9.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -16,7 +16,7 @@ import ApiClient from '../ApiClient'; /** * The SnapshotStatus model module. * @module model/SnapshotStatus - * @version 0.4.1 + * @version 0.4.3 */ class SnapshotStatus { /** diff --git a/src/model/SslsplitFilter.js b/src/model/SslsplitFilter.js index c2cdf81..6c557f4 100644 --- a/src/model/SslsplitFilter.js +++ b/src/model/SslsplitFilter.js @@ -2,7 +2,7 @@ * Corellium API * REST API to manage your virtual devices. * - * The version of the OpenAPI document: 7.3.0 + * The version of the OpenAPI document: 7.9.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -16,7 +16,7 @@ import ApiClient from '../ApiClient'; /** * The SslsplitFilter model module. * @module model/SslsplitFilter - * @version 0.4.1 + * @version 0.4.3 */ class SslsplitFilter { /** diff --git a/src/model/Team.js b/src/model/Team.js index eede568..8fd39be 100644 --- a/src/model/Team.js +++ b/src/model/Team.js @@ -2,7 +2,7 @@ * Corellium API * REST API to manage your virtual devices. * - * The version of the OpenAPI document: 7.3.0 + * The version of the OpenAPI document: 7.9.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -17,7 +17,7 @@ import User from './User'; /** * The Team model module. * @module model/Team - * @version 0.4.1 + * @version 0.4.3 */ class Team { /** diff --git a/src/model/TeamCreate.js b/src/model/TeamCreate.js index 124b3ed..9a2727c 100644 --- a/src/model/TeamCreate.js +++ b/src/model/TeamCreate.js @@ -2,7 +2,7 @@ * Corellium API * REST API to manage your virtual devices. * - * The version of the OpenAPI document: 7.3.0 + * The version of the OpenAPI document: 7.9.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -16,7 +16,7 @@ import ApiClient from '../ApiClient'; /** * The TeamCreate model module. * @module model/TeamCreate - * @version 0.4.1 + * @version 0.4.3 */ class TeamCreate { /** diff --git a/src/model/TestAssessmentDto.js b/src/model/TestAssessmentDto.js index b8f6cdf..64f5a05 100644 --- a/src/model/TestAssessmentDto.js +++ b/src/model/TestAssessmentDto.js @@ -2,7 +2,7 @@ * Corellium API * REST API to manage your virtual devices. * - * The version of the OpenAPI document: 7.3.0 + * The version of the OpenAPI document: 7.9.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -16,7 +16,7 @@ import ApiClient from '../ApiClient'; /** * The TestAssessmentDto model module. * @module model/TestAssessmentDto - * @version 0.4.1 + * @version 0.4.3 */ class TestAssessmentDto { /** diff --git a/src/model/TextInput.js b/src/model/TextInput.js index 4200d55..f1e56dd 100644 --- a/src/model/TextInput.js +++ b/src/model/TextInput.js @@ -2,7 +2,7 @@ * Corellium API * REST API to manage your virtual devices. * - * The version of the OpenAPI document: 7.3.0 + * The version of the OpenAPI document: 7.9.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -16,7 +16,7 @@ import ApiClient from '../ApiClient'; /** * The TextInput model module. * @module model/TextInput - * @version 0.4.1 + * @version 0.4.3 */ class TextInput { /** diff --git a/src/model/Token.js b/src/model/Token.js index dc94bec..ffd0a10 100644 --- a/src/model/Token.js +++ b/src/model/Token.js @@ -2,7 +2,7 @@ * Corellium API * REST API to manage your virtual devices. * - * The version of the OpenAPI document: 7.3.0 + * The version of the OpenAPI document: 7.9.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -16,18 +16,17 @@ import ApiClient from '../ApiClient'; /** * The Token model module. * @module model/Token - * @version 0.4.1 + * @version 0.4.3 */ class Token { /** * Constructs a new Token. * * @alias module:model/Token - * @param token {String} */ - constructor(token) { + constructor() { - Token.initialize(this, token); + Token.initialize(this); } /** @@ -35,8 +34,7 @@ class Token { * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). * Only for internal use. */ - static initialize(obj, token) { - obj['token'] = token; + static initialize(obj) { } /** @@ -53,9 +51,6 @@ class Token { if (data.hasOwnProperty('token')) { obj['token'] = ApiClient.convertToType(data['token'], 'String'); } - if (data.hasOwnProperty('expiration')) { - obj['expiration'] = ApiClient.convertToType(data['expiration'], 'Date'); - } } return obj; } @@ -66,12 +61,6 @@ class Token { * @return {boolean} to indicate whether the JSON data is valid with respect to Token. */ static validateJSON(data) { - // check to make sure all required properties are present in the JSON string - for (const property of Token.RequiredProperties) { - if (!data[property]) { - throw new Error("The required field `" + property + "` is not found in the JSON data: " + JSON.stringify(data)); - } - } // ensure the json data is a string if (data['token'] && !(typeof data['token'] === 'string' || data['token'] instanceof String)) { throw new Error("Expected the field `token` to be a primitive type in the JSON string but got " + data['token']); @@ -83,7 +72,7 @@ class Token { } -Token.RequiredProperties = ["token"]; + /** * @@ -91,12 +80,6 @@ Token.RequiredProperties = ["token"]; */ Token.prototype['token'] = undefined; -/** - * Token expiration - * @member {Date} expiration - */ -Token.prototype['expiration'] = undefined; - diff --git a/src/model/TouchCurveInput.js b/src/model/TouchCurveInput.js index 3bd7628..109ca4c 100644 --- a/src/model/TouchCurveInput.js +++ b/src/model/TouchCurveInput.js @@ -2,7 +2,7 @@ * Corellium API * REST API to manage your virtual devices. * - * The version of the OpenAPI document: 7.3.0 + * The version of the OpenAPI document: 7.9.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -17,7 +17,7 @@ import TouchInputButtonsInner from './TouchInputButtonsInner'; /** * The TouchCurveInput model module. * @module model/TouchCurveInput - * @version 0.4.1 + * @version 0.4.3 */ class TouchCurveInput { /** diff --git a/src/model/TouchInput.js b/src/model/TouchInput.js index 64bcd4c..f847207 100644 --- a/src/model/TouchInput.js +++ b/src/model/TouchInput.js @@ -2,7 +2,7 @@ * Corellium API * REST API to manage your virtual devices. * - * The version of the OpenAPI document: 7.3.0 + * The version of the OpenAPI document: 7.9.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -17,7 +17,7 @@ import TouchInputButtonsInner from './TouchInputButtonsInner'; /** * The TouchInput model module. * @module model/TouchInput - * @version 0.4.1 + * @version 0.4.3 */ class TouchInput { /** diff --git a/src/model/TouchInputButtonsInner.js b/src/model/TouchInputButtonsInner.js index 6eee3ed..72ca5b8 100644 --- a/src/model/TouchInputButtonsInner.js +++ b/src/model/TouchInputButtonsInner.js @@ -2,7 +2,7 @@ * Corellium API * REST API to manage your virtual devices. * - * The version of the OpenAPI document: 7.3.0 + * The version of the OpenAPI document: 7.9.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/model/Trial.js b/src/model/Trial.js index c3f87c7..64cea10 100644 --- a/src/model/Trial.js +++ b/src/model/Trial.js @@ -2,7 +2,7 @@ * Corellium API * REST API to manage your virtual devices. * - * The version of the OpenAPI document: 7.3.0 + * The version of the OpenAPI document: 7.9.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -16,7 +16,7 @@ import ApiClient from '../ApiClient'; /** * The Trial model module. * @module model/Trial - * @version 0.4.1 + * @version 0.4.3 */ class Trial { /** diff --git a/src/model/TrialExtension.js b/src/model/TrialExtension.js index a21b5fa..41540a8 100644 --- a/src/model/TrialExtension.js +++ b/src/model/TrialExtension.js @@ -2,7 +2,7 @@ * Corellium API * REST API to manage your virtual devices. * - * The version of the OpenAPI document: 7.3.0 + * The version of the OpenAPI document: 7.9.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -16,7 +16,7 @@ import ApiClient from '../ApiClient'; /** * The TrialExtension model module. * @module model/TrialExtension - * @version 0.4.1 + * @version 0.4.3 */ class TrialExtension { /** diff --git a/src/model/TrialRequestMetadata.js b/src/model/TrialRequestMetadata.js index 05e460f..26230ba 100644 --- a/src/model/TrialRequestMetadata.js +++ b/src/model/TrialRequestMetadata.js @@ -2,7 +2,7 @@ * Corellium API * REST API to manage your virtual devices. * - * The version of the OpenAPI document: 7.3.0 + * The version of the OpenAPI document: 7.9.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -16,7 +16,7 @@ import ApiClient from '../ApiClient'; /** * The TrialRequestMetadata model module. * @module model/TrialRequestMetadata - * @version 0.4.1 + * @version 0.4.3 */ class TrialRequestMetadata { /** diff --git a/src/model/TrialRequestOptions.js b/src/model/TrialRequestOptions.js index 1e0194f..f37e815 100644 --- a/src/model/TrialRequestOptions.js +++ b/src/model/TrialRequestOptions.js @@ -2,7 +2,7 @@ * Corellium API * REST API to manage your virtual devices. * - * The version of the OpenAPI document: 7.3.0 + * The version of the OpenAPI document: 7.9.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -18,7 +18,7 @@ import TrialRequestMetadata from './TrialRequestMetadata'; /** * The TrialRequestOptions model module. * @module model/TrialRequestOptions - * @version 0.4.1 + * @version 0.4.3 */ class TrialRequestOptions { /** diff --git a/src/model/UpdateAssessmentDto.js b/src/model/UpdateAssessmentDto.js index 8c851bf..32133dd 100644 --- a/src/model/UpdateAssessmentDto.js +++ b/src/model/UpdateAssessmentDto.js @@ -2,7 +2,7 @@ * Corellium API * REST API to manage your virtual devices. * - * The version of the OpenAPI document: 7.3.0 + * The version of the OpenAPI document: 7.9.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -16,7 +16,7 @@ import ApiClient from '../ApiClient'; /** * The UpdateAssessmentDto model module. * @module model/UpdateAssessmentDto - * @version 0.4.1 + * @version 0.4.3 */ class UpdateAssessmentDto { /** diff --git a/src/model/UpdateExtension.js b/src/model/UpdateExtension.js index 01c050d..ceb4db4 100644 --- a/src/model/UpdateExtension.js +++ b/src/model/UpdateExtension.js @@ -2,7 +2,7 @@ * Corellium API * REST API to manage your virtual devices. * - * The version of the OpenAPI document: 7.3.0 + * The version of the OpenAPI document: 7.9.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -16,7 +16,7 @@ import ApiClient from '../ApiClient'; /** * The UpdateExtension model module. * @module model/UpdateExtension - * @version 0.4.1 + * @version 0.4.3 */ class UpdateExtension { /** diff --git a/src/model/UpdateInterconnectRequest.js b/src/model/UpdateInterconnectRequest.js new file mode 100644 index 0000000..c80ba25 --- /dev/null +++ b/src/model/UpdateInterconnectRequest.js @@ -0,0 +1,102 @@ +/** + * Corellium API + * REST API to manage your virtual devices. + * + * The version of the OpenAPI document: 7.9.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; + +/** + * The UpdateInterconnectRequest model module. + * @module model/UpdateInterconnectRequest + * @version 0.4.3 + */ +class UpdateInterconnectRequest { + /** + * Constructs a new UpdateInterconnectRequest. + * + * @alias module:model/UpdateInterconnectRequest + */ + constructor() { + + UpdateInterconnectRequest.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a UpdateInterconnectRequest from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/UpdateInterconnectRequest} obj Optional instance to populate. + * @return {module:model/UpdateInterconnectRequest} The populated UpdateInterconnectRequest instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new UpdateInterconnectRequest(); + + if (data.hasOwnProperty('name')) { + obj['name'] = ApiClient.convertToType(data['name'], 'String'); + } + if (data.hasOwnProperty('interfaces')) { + obj['interfaces'] = ApiClient.convertToType(data['interfaces'], [Object]); + } + } + return obj; + } + + /** + * Validates the JSON data with respect to UpdateInterconnectRequest. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @return {boolean} to indicate whether the JSON data is valid with respect to UpdateInterconnectRequest. + */ + static validateJSON(data) { + // ensure the json data is a string + if (data['name'] && !(typeof data['name'] === 'string' || data['name'] instanceof String)) { + throw new Error("Expected the field `name` to be a primitive type in the JSON string but got " + data['name']); + } + // ensure the json data is an array + if (!Array.isArray(data['interfaces'])) { + throw new Error("Expected the field `interfaces` to be an array in the JSON data but got " + data['interfaces']); + } + + return true; + } + + +} + + + +/** + * The name of the interconnect + * @member {String} name + */ +UpdateInterconnectRequest.prototype['name'] = undefined; + +/** + * Array of interfaces with deviceId and interfaceId + * @member {Array.} interfaces + */ +UpdateInterconnectRequest.prototype['interfaces'] = undefined; + + + + + + +export default UpdateInterconnectRequest; + diff --git a/src/model/UpdateNetworkConnectionOptions.js b/src/model/UpdateNetworkConnectionOptions.js index e51911a..60eb8bb 100644 --- a/src/model/UpdateNetworkConnectionOptions.js +++ b/src/model/UpdateNetworkConnectionOptions.js @@ -2,7 +2,7 @@ * Corellium API * REST API to manage your virtual devices. * - * The version of the OpenAPI document: 7.3.0 + * The version of the OpenAPI document: 7.9.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -16,7 +16,7 @@ import ApiClient from '../ApiClient'; /** * The UpdateNetworkConnectionOptions model module. * @module model/UpdateNetworkConnectionOptions - * @version 0.4.1 + * @version 0.4.3 */ class UpdateNetworkConnectionOptions { /** diff --git a/src/model/UpdateTrialRequestParams.js b/src/model/UpdateTrialRequestParams.js new file mode 100644 index 0000000..cc07269 --- /dev/null +++ b/src/model/UpdateTrialRequestParams.js @@ -0,0 +1,94 @@ +/** + * Corellium API + * REST API to manage your virtual devices. + * + * The version of the OpenAPI document: 7.9.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; + +/** + * The UpdateTrialRequestParams model module. + * @module model/UpdateTrialRequestParams + * @version 0.4.3 + */ +class UpdateTrialRequestParams { + /** + * Constructs a new UpdateTrialRequestParams. + * + * @alias module:model/UpdateTrialRequestParams + */ + constructor() { + + UpdateTrialRequestParams.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a UpdateTrialRequestParams from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/UpdateTrialRequestParams} obj Optional instance to populate. + * @return {module:model/UpdateTrialRequestParams} The populated UpdateTrialRequestParams instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new UpdateTrialRequestParams(); + + if (data.hasOwnProperty('extensionDays')) { + obj['extensionDays'] = ApiClient.convertToType(data['extensionDays'], 'Number'); + } + if (data.hasOwnProperty('extensionHours')) { + obj['extensionHours'] = ApiClient.convertToType(data['extensionHours'], 'Number'); + } + } + return obj; + } + + /** + * Validates the JSON data with respect to UpdateTrialRequestParams. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @return {boolean} to indicate whether the JSON data is valid with respect to UpdateTrialRequestParams. + */ + static validateJSON(data) { + + return true; + } + + +} + + + +/** + * Days to add to the trial before it ends. + * @member {Number} extensionDays + */ +UpdateTrialRequestParams.prototype['extensionDays'] = undefined; + +/** + * Hours of usage to add to the trial. This will be either device-hours or core-hours depending on the trial. + * @member {Number} extensionHours + */ +UpdateTrialRequestParams.prototype['extensionHours'] = undefined; + + + + + + +export default UpdateTrialRequestParams; + diff --git a/src/model/User.js b/src/model/User.js index 2eb894f..4999af3 100644 --- a/src/model/User.js +++ b/src/model/User.js @@ -2,7 +2,7 @@ * Corellium API * REST API to manage your virtual devices. * - * The version of the OpenAPI document: 7.3.0 + * The version of the OpenAPI document: 7.9.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -16,7 +16,7 @@ import ApiClient from '../ApiClient'; /** * The User model module. * @module model/User - * @version 0.4.1 + * @version 0.4.3 */ class User { /** @@ -74,6 +74,9 @@ class User { if (data.hasOwnProperty('canEditUserAttributes')) { obj['canEditUserAttributes'] = ApiClient.convertToType(data['canEditUserAttributes'], 'Boolean'); } + if (data.hasOwnProperty('clusterAdministrator')) { + obj['clusterAdministrator'] = ApiClient.convertToType(data['clusterAdministrator'], 'Boolean'); + } } return obj; } @@ -151,6 +154,12 @@ User.prototype['administrator'] = undefined; */ User.prototype['canEditUserAttributes'] = undefined; +/** + * the flag that specifies whether user is cluster administrator or not + * @member {Boolean} clusterAdministrator + */ +User.prototype['clusterAdministrator'] = undefined; + diff --git a/src/model/UserCreate.js b/src/model/UserCreate.js new file mode 100644 index 0000000..c003255 --- /dev/null +++ b/src/model/UserCreate.js @@ -0,0 +1,146 @@ +/** + * Corellium API + * REST API to manage your virtual devices. + * + * The version of the OpenAPI document: 7.9.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; + +/** + * The UserCreate model module. + * @module model/UserCreate + * @version 0.4.3 + */ +class UserCreate { + /** + * Constructs a new UserCreate. + * + * @alias module:model/UserCreate + */ + constructor() { + + UserCreate.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a UserCreate from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/UserCreate} obj Optional instance to populate. + * @return {module:model/UserCreate} The populated UserCreate instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new UserCreate(); + + if (data.hasOwnProperty('name')) { + obj['name'] = ApiClient.convertToType(data['name'], 'String'); + } + if (data.hasOwnProperty('label')) { + obj['label'] = ApiClient.convertToType(data['label'], 'String'); + } + if (data.hasOwnProperty('password')) { + obj['password'] = ApiClient.convertToType(data['password'], 'String'); + } + if (data.hasOwnProperty('email')) { + obj['email'] = ApiClient.convertToType(data['email'], 'String'); + } + if (data.hasOwnProperty('administrator')) { + obj['administrator'] = ApiClient.convertToType(data['administrator'], 'Boolean'); + } + if (data.hasOwnProperty('clusterAdministrator')) { + obj['clusterAdministrator'] = ApiClient.convertToType(data['clusterAdministrator'], 'Boolean'); + } + } + return obj; + } + + /** + * Validates the JSON data with respect to UserCreate. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @return {boolean} to indicate whether the JSON data is valid with respect to UserCreate. + */ + static validateJSON(data) { + // ensure the json data is a string + if (data['name'] && !(typeof data['name'] === 'string' || data['name'] instanceof String)) { + throw new Error("Expected the field `name` to be a primitive type in the JSON string but got " + data['name']); + } + // ensure the json data is a string + if (data['label'] && !(typeof data['label'] === 'string' || data['label'] instanceof String)) { + throw new Error("Expected the field `label` to be a primitive type in the JSON string but got " + data['label']); + } + // ensure the json data is a string + if (data['password'] && !(typeof data['password'] === 'string' || data['password'] instanceof String)) { + throw new Error("Expected the field `password` to be a primitive type in the JSON string but got " + data['password']); + } + // ensure the json data is a string + if (data['email'] && !(typeof data['email'] === 'string' || data['email'] instanceof String)) { + throw new Error("Expected the field `email` to be a primitive type in the JSON string but got " + data['email']); + } + + return true; + } + + +} + + + +/** + * The user name. + * @member {String} name + */ +UserCreate.prototype['name'] = undefined; + +/** + * The user label (e.g., \"Domain Administrator\"). + * @member {String} label + */ +UserCreate.prototype['label'] = undefined; + +/** + * The password (optional) if using SSO. + * @member {String} password + */ +UserCreate.prototype['password'] = undefined; + +/** + * The email (optional) if onsite. + * @member {String} email + */ +UserCreate.prototype['email'] = undefined; + +/** + * Whether the user is a domain administrator. Only users with the Domain Administrator role can set this. + * @member {Boolean} administrator + */ +UserCreate.prototype['administrator'] = undefined; + +/** + * Whether the user is a cluster administrator. Only users with the Cluster Administrator role can set this. + * @member {Boolean} clusterAdministrator + */ +UserCreate.prototype['clusterAdministrator'] = undefined; + + + + + + +export default UserCreate; + diff --git a/src/model/UserCreateReturn.js b/src/model/UserCreateReturn.js new file mode 100644 index 0000000..e2377b8 --- /dev/null +++ b/src/model/UserCreateReturn.js @@ -0,0 +1,89 @@ +/** + * Corellium API + * REST API to manage your virtual devices. + * + * The version of the OpenAPI document: 7.9.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; + +/** + * The UserCreateReturn model module. + * @module model/UserCreateReturn + * @version 0.4.3 + */ +class UserCreateReturn { + /** + * Constructs a new UserCreateReturn. + * + * @alias module:model/UserCreateReturn + */ + constructor() { + + UserCreateReturn.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a UserCreateReturn from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/UserCreateReturn} obj Optional instance to populate. + * @return {module:model/UserCreateReturn} The populated UserCreateReturn instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new UserCreateReturn(); + + if (data.hasOwnProperty('id')) { + obj['id'] = ApiClient.convertToType(data['id'], 'String'); + } + } + return obj; + } + + /** + * Validates the JSON data with respect to UserCreateReturn. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @return {boolean} to indicate whether the JSON data is valid with respect to UserCreateReturn. + */ + static validateJSON(data) { + // ensure the json data is a string + if (data['id'] && !(typeof data['id'] === 'string' || data['id'] instanceof String)) { + throw new Error("Expected the field `id` to be a primitive type in the JSON string but got " + data['id']); + } + + return true; + } + + +} + + + +/** + * The user identifier + * @member {String} id + */ +UserCreateReturn.prototype['id'] = undefined; + + + + + + +export default UserCreateReturn; + diff --git a/src/model/UserError.js b/src/model/UserError.js index 81a498b..1545c1c 100644 --- a/src/model/UserError.js +++ b/src/model/UserError.js @@ -2,7 +2,7 @@ * Corellium API * REST API to manage your virtual devices. * - * The version of the OpenAPI document: 7.3.0 + * The version of the OpenAPI document: 7.9.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -16,7 +16,7 @@ import ApiClient from '../ApiClient'; /** * The UserError model module. * @module model/UserError - * @version 0.4.1 + * @version 0.4.3 */ class UserError { /** diff --git a/src/model/UserSnapshots.js b/src/model/UserSnapshots.js index c0439c0..c794497 100644 --- a/src/model/UserSnapshots.js +++ b/src/model/UserSnapshots.js @@ -2,7 +2,7 @@ * Corellium API * REST API to manage your virtual devices. * - * The version of the OpenAPI document: 7.3.0 + * The version of the OpenAPI document: 7.9.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -17,7 +17,7 @@ import SharedSnapshotsInfo from './SharedSnapshotsInfo'; /** * The UserSnapshots model module. * @module model/UserSnapshots - * @version 0.4.1 + * @version 0.4.3 */ class UserSnapshots { /** diff --git a/src/model/UserUpdate.js b/src/model/UserUpdate.js new file mode 100644 index 0000000..23fa5b8 --- /dev/null +++ b/src/model/UserUpdate.js @@ -0,0 +1,102 @@ +/** + * Corellium API + * REST API to manage your virtual devices. + * + * The version of the OpenAPI document: 7.9.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; + +/** + * The UserUpdate model module. + * @module model/UserUpdate + * @version 0.4.3 + */ +class UserUpdate { + /** + * Constructs a new UserUpdate. + * + * @alias module:model/UserUpdate + */ + constructor() { + + UserUpdate.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a UserUpdate from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/UserUpdate} obj Optional instance to populate. + * @return {module:model/UserUpdate} The populated UserUpdate instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new UserUpdate(); + + if (data.hasOwnProperty('name')) { + obj['name'] = ApiClient.convertToType(data['name'], 'String'); + } + if (data.hasOwnProperty('label')) { + obj['label'] = ApiClient.convertToType(data['label'], 'String'); + } + } + return obj; + } + + /** + * Validates the JSON data with respect to UserUpdate. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @return {boolean} to indicate whether the JSON data is valid with respect to UserUpdate. + */ + static validateJSON(data) { + // ensure the json data is a string + if (data['name'] && !(typeof data['name'] === 'string' || data['name'] instanceof String)) { + throw new Error("Expected the field `name` to be a primitive type in the JSON string but got " + data['name']); + } + // ensure the json data is a string + if (data['label'] && !(typeof data['label'] === 'string' || data['label'] instanceof String)) { + throw new Error("Expected the field `label` to be a primitive type in the JSON string but got " + data['label']); + } + + return true; + } + + +} + + + +/** + * The user name. + * @member {String} name + */ +UserUpdate.prototype['name'] = undefined; + +/** + * The user label (e.g., \"Domain Administrator\"). + * @member {String} label + */ +UserUpdate.prototype['label'] = undefined; + + + + + + +export default UserUpdate; + diff --git a/src/model/V1CheckSubdomainExistenceParameters.js b/src/model/V1CheckSubdomainExistenceParameters.js index 4c96ca0..1370a3a 100644 --- a/src/model/V1CheckSubdomainExistenceParameters.js +++ b/src/model/V1CheckSubdomainExistenceParameters.js @@ -2,7 +2,7 @@ * Corellium API * REST API to manage your virtual devices. * - * The version of the OpenAPI document: 7.3.0 + * The version of the OpenAPI document: 7.9.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -16,7 +16,7 @@ import ApiClient from '../ApiClient'; /** * The V1CheckSubdomainExistenceParameters model module. * @module model/V1CheckSubdomainExistenceParameters - * @version 0.4.1 + * @version 0.4.3 */ class V1CheckSubdomainExistenceParameters { /** diff --git a/src/model/V1CreateHookParameters.js b/src/model/V1CreateHookParameters.js index b98a495..31941a3 100644 --- a/src/model/V1CreateHookParameters.js +++ b/src/model/V1CreateHookParameters.js @@ -2,7 +2,7 @@ * Corellium API * REST API to manage your virtual devices. * - * The version of the OpenAPI document: 7.3.0 + * The version of the OpenAPI document: 7.9.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -16,7 +16,7 @@ import ApiClient from '../ApiClient'; /** * The V1CreateHookParameters model module. * @module model/V1CreateHookParameters - * @version 0.4.1 + * @version 0.4.3 */ class V1CreateHookParameters { /** diff --git a/src/model/V1LoadExtensionParameters.js b/src/model/V1LoadExtensionParameters.js index 126999b..835bb39 100644 --- a/src/model/V1LoadExtensionParameters.js +++ b/src/model/V1LoadExtensionParameters.js @@ -2,7 +2,7 @@ * Corellium API * REST API to manage your virtual devices. * - * The version of the OpenAPI document: 7.3.0 + * The version of the OpenAPI document: 7.9.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -16,7 +16,7 @@ import ApiClient from '../ApiClient'; /** * The V1LoadExtensionParameters model module. * @module model/V1LoadExtensionParameters - * @version 0.4.1 + * @version 0.4.3 */ class V1LoadExtensionParameters { /** diff --git a/src/model/V1SetStateBody.js b/src/model/V1SetStateBody.js index 2a194f5..a215baf 100644 --- a/src/model/V1SetStateBody.js +++ b/src/model/V1SetStateBody.js @@ -2,7 +2,7 @@ * Corellium API * REST API to manage your virtual devices. * - * The version of the OpenAPI document: 7.3.0 + * The version of the OpenAPI document: 7.9.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -17,7 +17,7 @@ import InstanceState from './InstanceState'; /** * The V1SetStateBody model module. * @module model/V1SetStateBody - * @version 0.4.1 + * @version 0.4.3 */ class V1SetStateBody { /** diff --git a/src/model/V1UpdateHookParameters.js b/src/model/V1UpdateHookParameters.js new file mode 100644 index 0000000..b29d705 --- /dev/null +++ b/src/model/V1UpdateHookParameters.js @@ -0,0 +1,158 @@ +/** + * Corellium API + * REST API to manage your virtual devices. + * + * The version of the OpenAPI document: 7.9.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +import ApiClient from '../ApiClient'; + +/** + * The V1UpdateHookParameters model module. + * @module model/V1UpdateHookParameters + * @version 0.4.3 + */ +class V1UpdateHookParameters { + /** + * Constructs a new V1UpdateHookParameters. + * + * @alias module:model/V1UpdateHookParameters + */ + constructor() { + + V1UpdateHookParameters.initialize(this); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj) { + } + + /** + * Constructs a V1UpdateHookParameters from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:model/V1UpdateHookParameters} obj Optional instance to populate. + * @return {module:model/V1UpdateHookParameters} The populated V1UpdateHookParameters instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new V1UpdateHookParameters(); + + if (data.hasOwnProperty('label')) { + obj['label'] = ApiClient.convertToType(data['label'], 'String'); + } + if (data.hasOwnProperty('address')) { + obj['address'] = ApiClient.convertToType(data['address'], 'String'); + } + if (data.hasOwnProperty('patch')) { + obj['patch'] = ApiClient.convertToType(data['patch'], 'String'); + } + if (data.hasOwnProperty('patchType')) { + obj['patchType'] = ApiClient.convertToType(data['patchType'], 'String'); + } + if (data.hasOwnProperty('enabled')) { + obj['enabled'] = ApiClient.convertToType(data['enabled'], 'Boolean'); + } + } + return obj; + } + + /** + * Validates the JSON data with respect to V1UpdateHookParameters. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @return {boolean} to indicate whether the JSON data is valid with respect to V1UpdateHookParameters. + */ + static validateJSON(data) { + // ensure the json data is a string + if (data['label'] && !(typeof data['label'] === 'string' || data['label'] instanceof String)) { + throw new Error("Expected the field `label` to be a primitive type in the JSON string but got " + data['label']); + } + // ensure the json data is a string + if (data['address'] && !(typeof data['address'] === 'string' || data['address'] instanceof String)) { + throw new Error("Expected the field `address` to be a primitive type in the JSON string but got " + data['address']); + } + // ensure the json data is a string + if (data['patch'] && !(typeof data['patch'] === 'string' || data['patch'] instanceof String)) { + throw new Error("Expected the field `patch` to be a primitive type in the JSON string but got " + data['patch']); + } + // ensure the json data is a string + if (data['patchType'] && !(typeof data['patchType'] === 'string' || data['patchType'] instanceof String)) { + throw new Error("Expected the field `patchType` to be a primitive type in the JSON string but got " + data['patchType']); + } + + return true; + } + + +} + + + +/** + * Label + * @member {String} label + */ +V1UpdateHookParameters.prototype['label'] = undefined; + +/** + * Address + * @member {String} address + */ +V1UpdateHookParameters.prototype['address'] = undefined; + +/** + * Patch + * @member {String} patch + */ +V1UpdateHookParameters.prototype['patch'] = undefined; + +/** + * Patch Type + * @member {module:model/V1UpdateHookParameters.PatchTypeEnum} patchType + */ +V1UpdateHookParameters.prototype['patchType'] = undefined; + +/** + * Enabled + * @member {Boolean} enabled + */ +V1UpdateHookParameters.prototype['enabled'] = undefined; + + + + + +/** + * Allowed values for the patchType property. + * @enum {String} + * @readonly + */ +V1UpdateHookParameters['PatchTypeEnum'] = { + + /** + * value: "csmfcc" + * @const + */ + "csmfcc": "csmfcc", + + /** + * value: "csmfvm" + * @const + */ + "csmfvm": "csmfvm" +}; + + + +export default V1UpdateHookParameters; + diff --git a/src/model/ValidationError.js b/src/model/ValidationError.js index bde0553..1829b58 100644 --- a/src/model/ValidationError.js +++ b/src/model/ValidationError.js @@ -2,7 +2,7 @@ * Corellium API * REST API to manage your virtual devices. * - * The version of the OpenAPI document: 7.3.0 + * The version of the OpenAPI document: 7.9.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -16,7 +16,7 @@ import ApiClient from '../ApiClient'; /** * The ValidationError model module. * @module model/ValidationError - * @version 0.4.1 + * @version 0.4.3 */ class ValidationError { /** diff --git a/src/model/VolumeOptions.js b/src/model/VolumeOptions.js index 9ba3a08..3d870ac 100644 --- a/src/model/VolumeOptions.js +++ b/src/model/VolumeOptions.js @@ -2,7 +2,7 @@ * Corellium API * REST API to manage your virtual devices. * - * The version of the OpenAPI document: 7.3.0 + * The version of the OpenAPI document: 7.9.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -16,7 +16,7 @@ import ApiClient from '../ApiClient'; /** * The VolumeOptions model module. * @module model/VolumeOptions - * @version 0.4.1 + * @version 0.4.3 */ class VolumeOptions { /** @@ -48,14 +48,11 @@ class VolumeOptions { if (data) { obj = obj || new VolumeOptions(); - if (data.hasOwnProperty('allocate')) { - obj['allocate'] = ApiClient.convertToType(data['allocate'], 'Number'); + if (data.hasOwnProperty('blocks')) { + obj['blocks'] = ApiClient.convertToType(data['blocks'], 'Number'); } - if (data.hasOwnProperty('partitions')) { - obj['partitions'] = ApiClient.convertToType(data['partitions'], [Object]); - } - if (data.hasOwnProperty('computeNode')) { - obj['computeNode'] = ApiClient.convertToType(data['computeNode'], 'String'); + if (data.hasOwnProperty('name')) { + obj['name'] = ApiClient.convertToType(data['name'], 'String'); } } return obj; @@ -67,13 +64,9 @@ class VolumeOptions { * @return {boolean} to indicate whether the JSON data is valid with respect to VolumeOptions. */ static validateJSON(data) { - // ensure the json data is an array - if (!Array.isArray(data['partitions'])) { - throw new Error("Expected the field `partitions` to be an array in the JSON data but got " + data['partitions']); - } // ensure the json data is a string - if (data['computeNode'] && !(typeof data['computeNode'] === 'string' || data['computeNode'] instanceof String)) { - throw new Error("Expected the field `computeNode` to be a primitive type in the JSON string but got " + data['computeNode']); + if (data['name'] && !(typeof data['name'] === 'string' || data['name'] instanceof String)) { + throw new Error("Expected the field `name` to be a primitive type in the JSON string but got " + data['name']); } return true; @@ -85,22 +78,16 @@ class VolumeOptions { /** - * GB - * @member {Number} allocate + * blocks to resize partition to + * @member {Number} blocks */ -VolumeOptions.prototype['allocate'] = undefined; +VolumeOptions.prototype['blocks'] = undefined; /** - * - * @member {Array.} partitions - */ -VolumeOptions.prototype['partitions'] = undefined; - -/** - * - * @member {String} computeNode + * name of partition + * @member {String} name */ -VolumeOptions.prototype['computeNode'] = undefined; +VolumeOptions.prototype['name'] = undefined; diff --git a/src/model/VpnDefinition.js b/src/model/VpnDefinition.js index 06381db..f0cb282 100644 --- a/src/model/VpnDefinition.js +++ b/src/model/VpnDefinition.js @@ -2,7 +2,7 @@ * Corellium API * REST API to manage your virtual devices. * - * The version of the OpenAPI document: 7.3.0 + * The version of the OpenAPI document: 7.9.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -16,7 +16,7 @@ import ApiClient from '../ApiClient'; /** * The VpnDefinition model module. * @module model/VpnDefinition - * @version 0.4.1 + * @version 0.4.3 */ class VpnDefinition { /** diff --git a/src/model/WebPlayerCreateSessionRequest.js b/src/model/WebPlayerCreateSessionRequest.js index c3a9312..1d8a098 100644 --- a/src/model/WebPlayerCreateSessionRequest.js +++ b/src/model/WebPlayerCreateSessionRequest.js @@ -2,7 +2,7 @@ * Corellium API * REST API to manage your virtual devices. * - * The version of the OpenAPI document: 7.3.0 + * The version of the OpenAPI document: 7.9.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -17,7 +17,7 @@ import Features from './Features'; /** * The WebPlayerCreateSessionRequest model module. * @module model/WebPlayerCreateSessionRequest - * @version 0.4.1 + * @version 0.4.3 */ class WebPlayerCreateSessionRequest { /** diff --git a/src/model/WebPlayerSession.js b/src/model/WebPlayerSession.js index aba84b3..4c518a3 100644 --- a/src/model/WebPlayerSession.js +++ b/src/model/WebPlayerSession.js @@ -2,7 +2,7 @@ * Corellium API * REST API to manage your virtual devices. * - * The version of the OpenAPI document: 7.3.0 + * The version of the OpenAPI document: 7.9.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -16,7 +16,7 @@ import ApiClient from '../ApiClient'; /** * The WebPlayerSession model module. * @module model/WebPlayerSession - * @version 0.4.1 + * @version 0.4.3 */ class WebPlayerSession { /** diff --git a/test/api/CorelliumApi.spec.js b/test/api/CorelliumApi.spec.js index d268558..72f2a66 100644 --- a/test/api/CorelliumApi.spec.js +++ b/test/api/CorelliumApi.spec.js @@ -2,7 +2,7 @@ * Corellium API * REST API to manage your virtual devices. * - * The version of the OpenAPI document: 7.3.0 + * The version of the OpenAPI document: 7.9.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -48,6 +48,66 @@ } describe('CorelliumApi', function() { + describe('apiV1InterconnectsGet', function() { + it('should call apiV1InterconnectsGet successfully', function(done) { + //uncomment below and update the code to test apiV1InterconnectsGet + //instance.apiV1InterconnectsGet(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('apiV1InterconnectsInterconnectIdDelete', function() { + it('should call apiV1InterconnectsInterconnectIdDelete successfully', function(done) { + //uncomment below and update the code to test apiV1InterconnectsInterconnectIdDelete + //instance.apiV1InterconnectsInterconnectIdDelete(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('apiV1InterconnectsInterconnectIdGet', function() { + it('should call apiV1InterconnectsInterconnectIdGet successfully', function(done) { + //uncomment below and update the code to test apiV1InterconnectsInterconnectIdGet + //instance.apiV1InterconnectsInterconnectIdGet(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('apiV1InterconnectsInterconnectIdPatch', function() { + it('should call apiV1InterconnectsInterconnectIdPatch successfully', function(done) { + //uncomment below and update the code to test apiV1InterconnectsInterconnectIdPatch + //instance.apiV1InterconnectsInterconnectIdPatch(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('apiV1InterconnectsInterconnectIdPut', function() { + it('should call apiV1InterconnectsInterconnectIdPut successfully', function(done) { + //uncomment below and update the code to test apiV1InterconnectsInterconnectIdPut + //instance.apiV1InterconnectsInterconnectIdPut(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('apiV1InterconnectsPost', function() { + it('should call apiV1InterconnectsPost successfully', function(done) { + //uncomment below and update the code to test apiV1InterconnectsPost + //instance.apiV1InterconnectsPost(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); describe('createAssessment', function() { it('should call createAssessment successfully', function(done) { //uncomment below and update the code to test createAssessment @@ -448,6 +508,16 @@ done(); }); }); + describe('v1AttachInstanceInterface', function() { + it('should call v1AttachInstanceInterface successfully', function(done) { + //uncomment below and update the code to test v1AttachInstanceInterface + //instance.v1AttachInstanceInterface(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); describe('v1AuthLogin', function() { it('should call v1AuthLogin successfully', function(done) { //uncomment below and update the code to test v1AuthLogin @@ -468,16 +538,6 @@ done(); }); }); - describe('v1CheckSubdomainExistence', function() { - it('should call v1CheckSubdomainExistence successfully', function(done) { - //uncomment below and update the code to test v1CheckSubdomainExistence - //instance.v1CheckSubdomainExistence(function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); describe('v1ClearCoreTrace', function() { it('should call v1ClearCoreTrace successfully', function(done) { //uncomment below and update the code to test v1ClearCoreTrace @@ -518,6 +578,186 @@ done(); }); }); + describe('v1ClusterConfigGet', function() { + it('should call v1ClusterConfigGet successfully', function(done) { + //uncomment below and update the code to test v1ClusterConfigGet + //instance.v1ClusterConfigGet(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('v1ClusterConfigPatch', function() { + it('should call v1ClusterConfigPatch successfully', function(done) { + //uncomment below and update the code to test v1ClusterConfigPatch + //instance.v1ClusterConfigPatch(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('v1ClusterFirmwareServiceConfigGet', function() { + it('should call v1ClusterFirmwareServiceConfigGet successfully', function(done) { + //uncomment below and update the code to test v1ClusterFirmwareServiceConfigGet + //instance.v1ClusterFirmwareServiceConfigGet(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('v1ClusterFirmwareServiceConfigPatch', function() { + it('should call v1ClusterFirmwareServiceConfigPatch successfully', function(done) { + //uncomment below and update the code to test v1ClusterFirmwareServiceConfigPatch + //instance.v1ClusterFirmwareServiceConfigPatch(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('v1ClusterFirmwareServiceConfigPut', function() { + it('should call v1ClusterFirmwareServiceConfigPut successfully', function(done) { + //uncomment below and update the code to test v1ClusterFirmwareServiceConfigPut + //instance.v1ClusterFirmwareServiceConfigPut(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('v1ClusterFirmwareServiceDevicesGet', function() { + it('should call v1ClusterFirmwareServiceDevicesGet successfully', function(done) { + //uncomment below and update the code to test v1ClusterFirmwareServiceDevicesGet + //instance.v1ClusterFirmwareServiceDevicesGet(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('v1ClusterFirmwareServiceFirmwareAssetsAssetURLDelete', function() { + it('should call v1ClusterFirmwareServiceFirmwareAssetsAssetURLDelete successfully', function(done) { + //uncomment below and update the code to test v1ClusterFirmwareServiceFirmwareAssetsAssetURLDelete + //instance.v1ClusterFirmwareServiceFirmwareAssetsAssetURLDelete(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('v1ClusterFirmwareServiceFirmwareAssetsAssetURLExtendedGet', function() { + it('should call v1ClusterFirmwareServiceFirmwareAssetsAssetURLExtendedGet successfully', function(done) { + //uncomment below and update the code to test v1ClusterFirmwareServiceFirmwareAssetsAssetURLExtendedGet + //instance.v1ClusterFirmwareServiceFirmwareAssetsAssetURLExtendedGet(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('v1ClusterFirmwareServiceFirmwareAssetsGet', function() { + it('should call v1ClusterFirmwareServiceFirmwareAssetsGet successfully', function(done) { + //uncomment below and update the code to test v1ClusterFirmwareServiceFirmwareAssetsGet + //instance.v1ClusterFirmwareServiceFirmwareAssetsGet(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('v1ClusterFirmwareServiceFirmwareAssetsPost', function() { + it('should call v1ClusterFirmwareServiceFirmwareAssetsPost successfully', function(done) { + //uncomment below and update the code to test v1ClusterFirmwareServiceFirmwareAssetsPost + //instance.v1ClusterFirmwareServiceFirmwareAssetsPost(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('v1ClusterFirmwareServiceFirmwaresFilenameDelete', function() { + it('should call v1ClusterFirmwareServiceFirmwaresFilenameDelete successfully', function(done) { + //uncomment below and update the code to test v1ClusterFirmwareServiceFirmwaresFilenameDelete + //instance.v1ClusterFirmwareServiceFirmwaresFilenameDelete(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('v1ClusterFirmwareServiceFirmwaresGet', function() { + it('should call v1ClusterFirmwareServiceFirmwaresGet successfully', function(done) { + //uncomment below and update the code to test v1ClusterFirmwareServiceFirmwaresGet + //instance.v1ClusterFirmwareServiceFirmwaresGet(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('v1ClusterNodesGet', function() { + it('should call v1ClusterNodesGet successfully', function(done) { + //uncomment below and update the code to test v1ClusterNodesGet + //instance.v1ClusterNodesGet(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('v1ClusterNodesNodeIdConsoleGet', function() { + it('should call v1ClusterNodesNodeIdConsoleGet successfully', function(done) { + //uncomment below and update the code to test v1ClusterNodesNodeIdConsoleGet + //instance.v1ClusterNodesNodeIdConsoleGet(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('v1ClusterNodesNodeIdGet', function() { + it('should call v1ClusterNodesNodeIdGet successfully', function(done) { + //uncomment below and update the code to test v1ClusterNodesNodeIdGet + //instance.v1ClusterNodesNodeIdGet(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('v1ClusterStorageGet', function() { + it('should call v1ClusterStorageGet successfully', function(done) { + //uncomment below and update the code to test v1ClusterStorageGet + //instance.v1ClusterStorageGet(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('v1ClusterStorageIdAttachPost', function() { + it('should call v1ClusterStorageIdAttachPost successfully', function(done) { + //uncomment below and update the code to test v1ClusterStorageIdAttachPost + //instance.v1ClusterStorageIdAttachPost(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('v1ClusterStorageIdEjectPost', function() { + it('should call v1ClusterStorageIdEjectPost successfully', function(done) { + //uncomment below and update the code to test v1ClusterStorageIdEjectPost + //instance.v1ClusterStorageIdEjectPost(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); describe('v1CreateDomainAuthProvider', function() { it('should call v1CreateDomainAuthProvider successfully', function(done) { //uncomment below and update the code to test v1CreateDomainAuthProvider @@ -598,6 +838,16 @@ done(); }); }); + describe('v1DeleteClusterSnapshot', function() { + it('should call v1DeleteClusterSnapshot successfully', function(done) { + //uncomment below and update the code to test v1DeleteClusterSnapshot + //instance.v1DeleteClusterSnapshot(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); describe('v1DeleteDomainAuthProvider', function() { it('should call v1DeleteDomainAuthProvider successfully', function(done) { //uncomment below and update the code to test v1DeleteDomainAuthProvider @@ -698,6 +948,16 @@ done(); }); }); + describe('v1DetachInstanceInterface', function() { + it('should call v1DetachInstanceInterface successfully', function(done) { + //uncomment below and update the code to test v1DetachInstanceInterface + //instance.v1DetachInstanceInterface(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); describe('v1DisableExposePort', function() { it('should call v1DisableExposePort successfully', function(done) { //uncomment below and update the code to test v1DisableExposePort @@ -758,6 +1018,26 @@ done(); }); }); + describe('v1GetClusterSnapshot', function() { + it('should call v1GetClusterSnapshot successfully', function(done) { + //uncomment below and update the code to test v1GetClusterSnapshot + //instance.v1GetClusterSnapshot(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('v1GetClusterSnapshots', function() { + it('should call v1GetClusterSnapshots successfully', function(done) { + //uncomment below and update the code to test v1GetClusterSnapshots + //instance.v1GetClusterSnapshots(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); describe('v1GetConfig', function() { it('should call v1GetConfig successfully', function(done) { //uncomment below and update the code to test v1GetConfig @@ -818,6 +1098,16 @@ done(); }); }); + describe('v1GetInstallFirmwareStatus', function() { + it('should call v1GetInstallFirmwareStatus successfully', function(done) { + //uncomment below and update the code to test v1GetInstallFirmwareStatus + //instance.v1GetInstallFirmwareStatus(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); describe('v1GetInstance', function() { it('should call v1GetInstance successfully', function(done) { //uncomment below and update the code to test v1GetInstance @@ -1028,16 +1318,6 @@ done(); }); }); - describe('v1GetServiceProviderMetadata', function() { - it('should call v1GetServiceProviderMetadata successfully', function(done) { - //uncomment below and update the code to test v1GetServiceProviderMetadata - //instance.v1GetServiceProviderMetadata(function(error) { - // if (error) throw error; - //expect().to.be(); - //}); - done(); - }); - }); describe('v1GetSharedSnapshots', function() { it('should call v1GetSharedSnapshots successfully', function(done) { //uncomment below and update the code to test v1GetSharedSnapshots @@ -1058,6 +1338,26 @@ done(); }); }); + describe('v1InstallFirmware', function() { + it('should call v1InstallFirmware successfully', function(done) { + //uncomment below and update the code to test v1InstallFirmware + //instance.v1InstallFirmware(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); + describe('v1InstallFirmwareAssets', function() { + it('should call v1InstallFirmwareAssets successfully', function(done) { + //uncomment below and update the code to test v1InstallFirmwareAssets + //instance.v1InstallFirmwareAssets(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); describe('v1InstancesInstanceIdMessagePost', function() { it('should call v1InstancesInstanceIdMessagePost successfully', function(done) { //uncomment below and update the code to test v1InstancesInstanceIdMessagePost @@ -1128,6 +1428,16 @@ done(); }); }); + describe('v1ListStorageFiles', function() { + it('should call v1ListStorageFiles successfully', function(done) { + //uncomment below and update the code to test v1ListStorageFiles + //instance.v1ListStorageFiles(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); describe('v1ListThreads', function() { it('should call v1ListThreads successfully', function(done) { //uncomment below and update the code to test v1ListThreads @@ -1178,6 +1488,16 @@ done(); }); }); + describe('v1PatchInstanceReadOnly', function() { + it('should call v1PatchInstanceReadOnly successfully', function(done) { + //uncomment below and update the code to test v1PatchInstanceReadOnly + //instance.v1PatchInstanceReadOnly(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); describe('v1PauseInstance', function() { it('should call v1PauseInstance successfully', function(done) { //uncomment below and update the code to test v1PauseInstance @@ -1488,6 +1808,16 @@ done(); }); }); + describe('v1StorageGet', function() { + it('should call v1StorageGet successfully', function(done) { + //uncomment below and update the code to test v1StorageGet + //instance.v1StorageGet(function(error) { + // if (error) throw error; + //expect().to.be(); + //}); + done(); + }); + }); describe('v1TeamChange', function() { it('should call v1TeamChange successfully', function(done) { //uncomment below and update the code to test v1TeamChange diff --git a/test/model/Activity.spec.js b/test/model/Activity.spec.js index 3c1d63a..eb16d59 100644 --- a/test/model/Activity.spec.js +++ b/test/model/Activity.spec.js @@ -2,7 +2,7 @@ * Corellium API * REST API to manage your virtual devices. * - * The version of the OpenAPI document: 7.3.0 + * The version of the OpenAPI document: 7.9.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/test/model/ActivityExportDto.spec.js b/test/model/ActivityExportDto.spec.js index 81e5d5b..d320b28 100644 --- a/test/model/ActivityExportDto.spec.js +++ b/test/model/ActivityExportDto.spec.js @@ -2,7 +2,7 @@ * Corellium API * REST API to manage your virtual devices. * - * The version of the OpenAPI document: 7.3.0 + * The version of the OpenAPI document: 7.9.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/test/model/ActivityExportResponse.spec.js b/test/model/ActivityExportResponse.spec.js index 7e5eea4..833f86e 100644 --- a/test/model/ActivityExportResponse.spec.js +++ b/test/model/ActivityExportResponse.spec.js @@ -2,7 +2,7 @@ * Corellium API * REST API to manage your virtual devices. * - * The version of the OpenAPI document: 7.3.0 + * The version of the OpenAPI document: 7.9.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/test/model/ActivityList.spec.js b/test/model/ActivityList.spec.js index 9f30ff1..97b46d6 100644 --- a/test/model/ActivityList.spec.js +++ b/test/model/ActivityList.spec.js @@ -2,7 +2,7 @@ * Corellium API * REST API to manage your virtual devices. * - * The version of the OpenAPI document: 7.3.0 + * The version of the OpenAPI document: 7.9.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/test/model/ActivityRequest.spec.js b/test/model/ActivityRequest.spec.js index 082d909..23735b0 100644 --- a/test/model/ActivityRequest.spec.js +++ b/test/model/ActivityRequest.spec.js @@ -2,7 +2,7 @@ * Corellium API * REST API to manage your virtual devices. * - * The version of the OpenAPI document: 7.3.0 + * The version of the OpenAPI document: 7.9.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/test/model/Address.spec.js b/test/model/Address.spec.js index 1ab6cf1..be1792c 100644 --- a/test/model/Address.spec.js +++ b/test/model/Address.spec.js @@ -2,7 +2,7 @@ * Corellium API * REST API to manage your virtual devices. * - * The version of the OpenAPI document: 7.3.0 + * The version of the OpenAPI document: 7.9.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/test/model/AgentApp.spec.js b/test/model/AgentApp.spec.js index 4194426..baf8729 100644 --- a/test/model/AgentApp.spec.js +++ b/test/model/AgentApp.spec.js @@ -2,7 +2,7 @@ * Corellium API * REST API to manage your virtual devices. * - * The version of the OpenAPI document: 7.3.0 + * The version of the OpenAPI document: 7.9.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -96,6 +96,18 @@ //expect(instance).to.be(); }); + it('should have the property bundlePath (base name: "bundlePath")', function() { + // uncomment below and update the code to test the property bundlePath + //var instance = new CorelliumClient.AgentApp(); + //expect(instance).to.be(); + }); + + it('should have the property bundleDataPath (base name: "bundleDataPath")', function() { + // uncomment below and update the code to test the property bundleDataPath + //var instance = new CorelliumClient.AgentApp(); + //expect(instance).to.be(); + }); + }); })); diff --git a/test/model/AgentAppReadyResponse.spec.js b/test/model/AgentAppReadyResponse.spec.js index 64840a0..3222c0f 100644 --- a/test/model/AgentAppReadyResponse.spec.js +++ b/test/model/AgentAppReadyResponse.spec.js @@ -2,7 +2,7 @@ * Corellium API * REST API to manage your virtual devices. * - * The version of the OpenAPI document: 7.3.0 + * The version of the OpenAPI document: 7.9.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/test/model/AgentAppStatus.spec.js b/test/model/AgentAppStatus.spec.js index 21d3fc3..b5419a4 100644 --- a/test/model/AgentAppStatus.spec.js +++ b/test/model/AgentAppStatus.spec.js @@ -2,7 +2,7 @@ * Corellium API * REST API to manage your virtual devices. * - * The version of the OpenAPI document: 7.3.0 + * The version of the OpenAPI document: 7.9.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/test/model/AgentAppsList.spec.js b/test/model/AgentAppsList.spec.js index 1642e45..6543ef7 100644 --- a/test/model/AgentAppsList.spec.js +++ b/test/model/AgentAppsList.spec.js @@ -2,7 +2,7 @@ * Corellium API * REST API to manage your virtual devices. * - * The version of the OpenAPI document: 7.3.0 + * The version of the OpenAPI document: 7.9.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/test/model/AgentAppsStatusList.spec.js b/test/model/AgentAppsStatusList.spec.js index e9bb4cb..4b7bc1d 100644 --- a/test/model/AgentAppsStatusList.spec.js +++ b/test/model/AgentAppsStatusList.spec.js @@ -2,7 +2,7 @@ * Corellium API * REST API to manage your virtual devices. * - * The version of the OpenAPI document: 7.3.0 + * The version of the OpenAPI document: 7.9.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/test/model/AgentError.spec.js b/test/model/AgentError.spec.js index 880f07e..b83c7d5 100644 --- a/test/model/AgentError.spec.js +++ b/test/model/AgentError.spec.js @@ -2,7 +2,7 @@ * Corellium API * REST API to manage your virtual devices. * - * The version of the OpenAPI document: 7.3.0 + * The version of the OpenAPI document: 7.9.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/test/model/AgentIcons.spec.js b/test/model/AgentIcons.spec.js index 4e3da7c..8a8a03f 100644 --- a/test/model/AgentIcons.spec.js +++ b/test/model/AgentIcons.spec.js @@ -2,7 +2,7 @@ * Corellium API * REST API to manage your virtual devices. * - * The version of the OpenAPI document: 7.3.0 + * The version of the OpenAPI document: 7.9.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/test/model/AgentInstallBody.spec.js b/test/model/AgentInstallBody.spec.js index e277e7f..f2e3ffd 100644 --- a/test/model/AgentInstallBody.spec.js +++ b/test/model/AgentInstallBody.spec.js @@ -2,7 +2,7 @@ * Corellium API * REST API to manage your virtual devices. * - * The version of the OpenAPI document: 7.3.0 + * The version of the OpenAPI document: 7.9.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/test/model/AgentProfilesReturn.spec.js b/test/model/AgentProfilesReturn.spec.js index cea0c7f..1cec2ce 100644 --- a/test/model/AgentProfilesReturn.spec.js +++ b/test/model/AgentProfilesReturn.spec.js @@ -2,7 +2,7 @@ * Corellium API * REST API to manage your virtual devices. * - * The version of the OpenAPI document: 7.3.0 + * The version of the OpenAPI document: 7.9.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/test/model/AgentSystemAdbAuth.spec.js b/test/model/AgentSystemAdbAuth.spec.js index 91efb1d..3f0b788 100644 --- a/test/model/AgentSystemAdbAuth.spec.js +++ b/test/model/AgentSystemAdbAuth.spec.js @@ -2,7 +2,7 @@ * Corellium API * REST API to manage your virtual devices. * - * The version of the OpenAPI document: 7.3.0 + * The version of the OpenAPI document: 7.9.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/test/model/AgentSystemGetPropBody.spec.js b/test/model/AgentSystemGetPropBody.spec.js index 709ab22..ab77e1a 100644 --- a/test/model/AgentSystemGetPropBody.spec.js +++ b/test/model/AgentSystemGetPropBody.spec.js @@ -2,7 +2,7 @@ * Corellium API * REST API to manage your virtual devices. * - * The version of the OpenAPI document: 7.3.0 + * The version of the OpenAPI document: 7.9.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/test/model/AgentSystemSetHostnameBody.spec.js b/test/model/AgentSystemSetHostnameBody.spec.js index aded247..41c6ac5 100644 --- a/test/model/AgentSystemSetHostnameBody.spec.js +++ b/test/model/AgentSystemSetHostnameBody.spec.js @@ -2,7 +2,7 @@ * Corellium API * REST API to manage your virtual devices. * - * The version of the OpenAPI document: 7.3.0 + * The version of the OpenAPI document: 7.9.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/test/model/AgentValueReturn.spec.js b/test/model/AgentValueReturn.spec.js index e1e906e..71a3a47 100644 --- a/test/model/AgentValueReturn.spec.js +++ b/test/model/AgentValueReturn.spec.js @@ -2,7 +2,7 @@ * Corellium API * REST API to manage your virtual devices. * - * The version of the OpenAPI document: 7.3.0 + * The version of the OpenAPI document: 7.9.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/test/model/AgreedAck.spec.js b/test/model/AgreedAck.spec.js index c58681a..96b6fe5 100644 --- a/test/model/AgreedAck.spec.js +++ b/test/model/AgreedAck.spec.js @@ -2,7 +2,7 @@ * Corellium API * REST API to manage your virtual devices. * - * The version of the OpenAPI document: 7.3.0 + * The version of the OpenAPI document: 7.9.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/test/model/AllowedDomainsResponse.spec.js b/test/model/AllowedDomainsResponse.spec.js new file mode 100644 index 0000000..e027a75 --- /dev/null +++ b/test/model/AllowedDomainsResponse.spec.js @@ -0,0 +1,65 @@ +/** + * Corellium API + * REST API to manage your virtual devices. + * + * The version of the OpenAPI document: 7.9.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.CorelliumClient); + } +}(this, function(expect, CorelliumClient) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new CorelliumClient.AllowedDomainsResponse(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('AllowedDomainsResponse', function() { + it('should create an instance of AllowedDomainsResponse', function() { + // uncomment below and update the code to test AllowedDomainsResponse + //var instance = new CorelliumClient.AllowedDomainsResponse(); + //expect(instance).to.be.a(CorelliumClient.AllowedDomainsResponse); + }); + + it('should have the property allowedDomains (base name: "allowedDomains")', function() { + // uncomment below and update the code to test the property allowedDomains + //var instance = new CorelliumClient.AllowedDomainsResponse(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/ApiConflictError.spec.js b/test/model/ApiConflictError.spec.js index c1ed5f4..323f47b 100644 --- a/test/model/ApiConflictError.spec.js +++ b/test/model/ApiConflictError.spec.js @@ -2,7 +2,7 @@ * Corellium API * REST API to manage your virtual devices. * - * The version of the OpenAPI document: 7.3.0 + * The version of the OpenAPI document: 7.9.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/test/model/ApiError.spec.js b/test/model/ApiError.spec.js index 6148754..4cf9c3a 100644 --- a/test/model/ApiError.spec.js +++ b/test/model/ApiError.spec.js @@ -2,7 +2,7 @@ * Corellium API * REST API to manage your virtual devices. * - * The version of the OpenAPI document: 7.3.0 + * The version of the OpenAPI document: 7.9.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/test/model/ApiInternalConsistencyError.spec.js b/test/model/ApiInternalConsistencyError.spec.js index 3c1dd20..1bdefca 100644 --- a/test/model/ApiInternalConsistencyError.spec.js +++ b/test/model/ApiInternalConsistencyError.spec.js @@ -2,7 +2,7 @@ * Corellium API * REST API to manage your virtual devices. * - * The version of the OpenAPI document: 7.3.0 + * The version of the OpenAPI document: 7.9.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/test/model/ApiNotFoundError.spec.js b/test/model/ApiNotFoundError.spec.js index 800436d..717ebf6 100644 --- a/test/model/ApiNotFoundError.spec.js +++ b/test/model/ApiNotFoundError.spec.js @@ -2,7 +2,7 @@ * Corellium API * REST API to manage your virtual devices. * - * The version of the OpenAPI document: 7.3.0 + * The version of the OpenAPI document: 7.9.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/test/model/ApiToken.spec.js b/test/model/ApiToken.spec.js index 67aaf68..95e8524 100644 --- a/test/model/ApiToken.spec.js +++ b/test/model/ApiToken.spec.js @@ -2,7 +2,7 @@ * Corellium API * REST API to manage your virtual devices. * - * The version of the OpenAPI document: 7.3.0 + * The version of the OpenAPI document: 7.9.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/test/model/Assessment.spec.js b/test/model/Assessment.spec.js index 58fc7cf..55e80aa 100644 --- a/test/model/Assessment.spec.js +++ b/test/model/Assessment.spec.js @@ -2,7 +2,7 @@ * Corellium API * REST API to manage your virtual devices. * - * The version of the OpenAPI document: 7.3.0 + * The version of the OpenAPI document: 7.9.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/test/model/AssessmentHistory.spec.js b/test/model/AssessmentHistory.spec.js new file mode 100644 index 0000000..9bfe064 --- /dev/null +++ b/test/model/AssessmentHistory.spec.js @@ -0,0 +1,89 @@ +/** + * Corellium API + * REST API to manage your virtual devices. + * + * The version of the OpenAPI document: 7.9.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.CorelliumClient); + } +}(this, function(expect, CorelliumClient) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new CorelliumClient.AssessmentHistory(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('AssessmentHistory', function() { + it('should create an instance of AssessmentHistory', function() { + // uncomment below and update the code to test AssessmentHistory + //var instance = new CorelliumClient.AssessmentHistory(); + //expect(instance).to.be.a(CorelliumClient.AssessmentHistory); + }); + + it('should have the property total (base name: "total")', function() { + // uncomment below and update the code to test the property total + //var instance = new CorelliumClient.AssessmentHistory(); + //expect(instance).to.be(); + }); + + it('should have the property count (base name: "count")', function() { + // uncomment below and update the code to test the property count + //var instance = new CorelliumClient.AssessmentHistory(); + //expect(instance).to.be(); + }); + + it('should have the property limit (base name: "limit")', function() { + // uncomment below and update the code to test the property limit + //var instance = new CorelliumClient.AssessmentHistory(); + //expect(instance).to.be(); + }); + + it('should have the property offset (base name: "offset")', function() { + // uncomment below and update the code to test the property offset + //var instance = new CorelliumClient.AssessmentHistory(); + //expect(instance).to.be(); + }); + + it('should have the property results (base name: "results")', function() { + // uncomment below and update the code to test the property results + //var instance = new CorelliumClient.AssessmentHistory(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/AssessmentHistoryLineItem.spec.js b/test/model/AssessmentHistoryLineItem.spec.js new file mode 100644 index 0000000..bd281e0 --- /dev/null +++ b/test/model/AssessmentHistoryLineItem.spec.js @@ -0,0 +1,77 @@ +/** + * Corellium API + * REST API to manage your virtual devices. + * + * The version of the OpenAPI document: 7.9.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.CorelliumClient); + } +}(this, function(expect, CorelliumClient) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new CorelliumClient.AssessmentHistoryLineItem(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('AssessmentHistoryLineItem', function() { + it('should create an instance of AssessmentHistoryLineItem', function() { + // uncomment below and update the code to test AssessmentHistoryLineItem + //var instance = new CorelliumClient.AssessmentHistoryLineItem(); + //expect(instance).to.be.a(CorelliumClient.AssessmentHistoryLineItem); + }); + + it('should have the property date (base name: "date")', function() { + // uncomment below and update the code to test the property date + //var instance = new CorelliumClient.AssessmentHistoryLineItem(); + //expect(instance).to.be(); + }); + + it('should have the property complete (base name: "complete")', function() { + // uncomment below and update the code to test the property complete + //var instance = new CorelliumClient.AssessmentHistoryLineItem(); + //expect(instance).to.be(); + }); + + it('should have the property incomplete (base name: "incomplete")', function() { + // uncomment below and update the code to test the property incomplete + //var instance = new CorelliumClient.AssessmentHistoryLineItem(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/AssessmentIdStatus.spec.js b/test/model/AssessmentIdStatus.spec.js index 4b297f4..8685a63 100644 --- a/test/model/AssessmentIdStatus.spec.js +++ b/test/model/AssessmentIdStatus.spec.js @@ -2,7 +2,7 @@ * Corellium API * REST API to manage your virtual devices. * - * The version of the OpenAPI document: 7.3.0 + * The version of the OpenAPI document: 7.9.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/test/model/AttachInterfaceRequest.spec.js b/test/model/AttachInterfaceRequest.spec.js new file mode 100644 index 0000000..4f46df8 --- /dev/null +++ b/test/model/AttachInterfaceRequest.spec.js @@ -0,0 +1,71 @@ +/** + * Corellium API + * REST API to manage your virtual devices. + * + * The version of the OpenAPI document: 7.9.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.CorelliumClient); + } +}(this, function(expect, CorelliumClient) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new CorelliumClient.AttachInterfaceRequest(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('AttachInterfaceRequest', function() { + it('should create an instance of AttachInterfaceRequest', function() { + // uncomment below and update the code to test AttachInterfaceRequest + //var instance = new CorelliumClient.AttachInterfaceRequest(); + //expect(instance).to.be.a(CorelliumClient.AttachInterfaceRequest); + }); + + it('should have the property interfaceId (base name: "interfaceId")', function() { + // uncomment below and update the code to test the property interfaceId + //var instance = new CorelliumClient.AttachInterfaceRequest(); + //expect(instance).to.be(); + }); + + it('should have the property interconnectId (base name: "interconnectId")', function() { + // uncomment below and update the code to test the property interconnectId + //var instance = new CorelliumClient.AttachInterfaceRequest(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/AuthProvider.spec.js b/test/model/AuthProvider.spec.js index 90161f0..8ceb8ca 100644 --- a/test/model/AuthProvider.spec.js +++ b/test/model/AuthProvider.spec.js @@ -2,7 +2,7 @@ * Corellium API * REST API to manage your virtual devices. * - * The version of the OpenAPI document: 7.3.0 + * The version of the OpenAPI document: 7.9.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/test/model/Bit.spec.js b/test/model/Bit.spec.js index 5ae19ca..c00f8f4 100644 --- a/test/model/Bit.spec.js +++ b/test/model/Bit.spec.js @@ -2,7 +2,7 @@ * Corellium API * REST API to manage your virtual devices. * - * The version of the OpenAPI document: 7.3.0 + * The version of the OpenAPI document: 7.9.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/test/model/BtraceEnableOptions.spec.js b/test/model/BtraceEnableOptions.spec.js index 06bb649..c60520d 100644 --- a/test/model/BtraceEnableOptions.spec.js +++ b/test/model/BtraceEnableOptions.spec.js @@ -2,7 +2,7 @@ * Corellium API * REST API to manage your virtual devices. * - * The version of the OpenAPI document: 7.3.0 + * The version of the OpenAPI document: 7.9.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/test/model/Button.spec.js b/test/model/Button.spec.js index 096f3c9..7f8176a 100644 --- a/test/model/Button.spec.js +++ b/test/model/Button.spec.js @@ -2,7 +2,7 @@ * Corellium API * REST API to manage your virtual devices. * - * The version of the OpenAPI document: 7.3.0 + * The version of the OpenAPI document: 7.9.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/test/model/CheckSubdomainResponse.spec.js b/test/model/CheckSubdomainResponse.spec.js index 6e77a41..2193344 100644 --- a/test/model/CheckSubdomainResponse.spec.js +++ b/test/model/CheckSubdomainResponse.spec.js @@ -2,7 +2,7 @@ * Corellium API * REST API to manage your virtual devices. * - * The version of the OpenAPI document: 7.3.0 + * The version of the OpenAPI document: 7.9.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/test/model/ClusterConfigurationPayload.spec.js b/test/model/ClusterConfigurationPayload.spec.js new file mode 100644 index 0000000..6d7f493 --- /dev/null +++ b/test/model/ClusterConfigurationPayload.spec.js @@ -0,0 +1,71 @@ +/** + * Corellium API + * REST API to manage your virtual devices. + * + * The version of the OpenAPI document: 7.9.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.CorelliumClient); + } +}(this, function(expect, CorelliumClient) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new CorelliumClient.ClusterConfigurationPayload(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('ClusterConfigurationPayload', function() { + it('should create an instance of ClusterConfigurationPayload', function() { + // uncomment below and update the code to test ClusterConfigurationPayload + //var instance = new CorelliumClient.ClusterConfigurationPayload(); + //expect(instance).to.be.a(CorelliumClient.ClusterConfigurationPayload); + }); + + it('should have the property snapshotLimit (base name: "snapshotLimit")', function() { + // uncomment below and update the code to test the property snapshotLimit + //var instance = new CorelliumClient.ClusterConfigurationPayload(); + //expect(instance).to.be(); + }); + + it('should have the property coordinatorConfig (base name: "coordinatorConfig")', function() { + // uncomment below and update the code to test the property coordinatorConfig + //var instance = new CorelliumClient.ClusterConfigurationPayload(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/ClusterSnapshot.spec.js b/test/model/ClusterSnapshot.spec.js new file mode 100644 index 0000000..b0fcd85 --- /dev/null +++ b/test/model/ClusterSnapshot.spec.js @@ -0,0 +1,65 @@ +/** + * Corellium API + * REST API to manage your virtual devices. + * + * The version of the OpenAPI document: 7.9.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.CorelliumClient); + } +}(this, function(expect, CorelliumClient) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new CorelliumClient.ClusterSnapshot(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('ClusterSnapshot', function() { + it('should create an instance of ClusterSnapshot', function() { + // uncomment below and update the code to test ClusterSnapshot + //var instance = new CorelliumClient.ClusterSnapshot(); + //expect(instance).to.be.a(CorelliumClient.ClusterSnapshot); + }); + + it('should have the property identifier (base name: "identifier")', function() { + // uncomment below and update the code to test the property identifier + //var instance = new CorelliumClient.ClusterSnapshot(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/ConfigResponse.spec.js b/test/model/ConfigResponse.spec.js index 0273e7a..69beffe 100644 --- a/test/model/ConfigResponse.spec.js +++ b/test/model/ConfigResponse.spec.js @@ -2,7 +2,7 @@ * Corellium API * REST API to manage your virtual devices. * - * The version of the OpenAPI document: 7.3.0 + * The version of the OpenAPI document: 7.9.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -60,6 +60,18 @@ //expect(instance).to.be(); }); + it('should have the property networkTypes (base name: "networkTypes")', function() { + // uncomment below and update the code to test the property networkTypes + //var instance = new CorelliumClient.ConfigResponse(); + //expect(instance).to.be(); + }); + + it('should have the property networkType (base name: "networkType")', function() { + // uncomment below and update the code to test the property networkType + //var instance = new CorelliumClient.ConfigResponse(); + //expect(instance).to.be(); + }); + it('should have the property showDomainSettings (base name: "showDomainSettings")', function() { // uncomment below and update the code to test the property showDomainSettings //var instance = new CorelliumClient.ConfigResponse(); diff --git a/test/model/ConfigResponseMaintenance.spec.js b/test/model/ConfigResponseMaintenance.spec.js index 618e226..0621396 100644 --- a/test/model/ConfigResponseMaintenance.spec.js +++ b/test/model/ConfigResponseMaintenance.spec.js @@ -2,7 +2,7 @@ * Corellium API * REST API to manage your virtual devices. * - * The version of the OpenAPI document: 7.3.0 + * The version of the OpenAPI document: 7.9.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/test/model/CoordinatorConfig.spec.js b/test/model/CoordinatorConfig.spec.js new file mode 100644 index 0000000..210c7b8 --- /dev/null +++ b/test/model/CoordinatorConfig.spec.js @@ -0,0 +1,65 @@ +/** + * Corellium API + * REST API to manage your virtual devices. + * + * The version of the OpenAPI document: 7.9.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.CorelliumClient); + } +}(this, function(expect, CorelliumClient) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new CorelliumClient.CoordinatorConfig(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('CoordinatorConfig', function() { + it('should create an instance of CoordinatorConfig', function() { + // uncomment below and update the code to test CoordinatorConfig + //var instance = new CorelliumClient.CoordinatorConfig(); + //expect(instance).to.be.a(CorelliumClient.CoordinatorConfig); + }); + + it('should have the property usbMediaAccessEnabled (base name: "usbMediaAccessEnabled")', function() { + // uncomment below and update the code to test the property usbMediaAccessEnabled + //var instance = new CorelliumClient.CoordinatorConfig(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/CouponOptions.spec.js b/test/model/CouponOptions.spec.js index c3e48a3..c377fab 100644 --- a/test/model/CouponOptions.spec.js +++ b/test/model/CouponOptions.spec.js @@ -2,7 +2,7 @@ * Corellium API * REST API to manage your virtual devices. * - * The version of the OpenAPI document: 7.3.0 + * The version of the OpenAPI document: 7.9.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/test/model/CreateAssessmentDto.spec.js b/test/model/CreateAssessmentDto.spec.js index a625d66..76c4876 100644 --- a/test/model/CreateAssessmentDto.spec.js +++ b/test/model/CreateAssessmentDto.spec.js @@ -2,7 +2,7 @@ * Corellium API * REST API to manage your virtual devices. * - * The version of the OpenAPI document: 7.3.0 + * The version of the OpenAPI document: 7.9.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/test/model/CreateInterconnectRequest.spec.js b/test/model/CreateInterconnectRequest.spec.js new file mode 100644 index 0000000..70094e5 --- /dev/null +++ b/test/model/CreateInterconnectRequest.spec.js @@ -0,0 +1,89 @@ +/** + * Corellium API + * REST API to manage your virtual devices. + * + * The version of the OpenAPI document: 7.9.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.CorelliumClient); + } +}(this, function(expect, CorelliumClient) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new CorelliumClient.CreateInterconnectRequest(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('CreateInterconnectRequest', function() { + it('should create an instance of CreateInterconnectRequest', function() { + // uncomment below and update the code to test CreateInterconnectRequest + //var instance = new CorelliumClient.CreateInterconnectRequest(); + //expect(instance).to.be.a(CorelliumClient.CreateInterconnectRequest); + }); + + it('should have the property name (base name: "name")', function() { + // uncomment below and update the code to test the property name + //var instance = new CorelliumClient.CreateInterconnectRequest(); + //expect(instance).to.be(); + }); + + it('should have the property protocol (base name: "protocol")', function() { + // uncomment below and update the code to test the property protocol + //var instance = new CorelliumClient.CreateInterconnectRequest(); + //expect(instance).to.be(); + }); + + it('should have the property type (base name: "type")', function() { + // uncomment below and update the code to test the property type + //var instance = new CorelliumClient.CreateInterconnectRequest(); + //expect(instance).to.be(); + }); + + it('should have the property project (base name: "project")', function() { + // uncomment below and update the code to test the property project + //var instance = new CorelliumClient.CreateInterconnectRequest(); + //expect(instance).to.be(); + }); + + it('should have the property interfaces (base name: "interfaces")', function() { + // uncomment below and update the code to test the property interfaces + //var instance = new CorelliumClient.CreateInterconnectRequest(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/CreateNetworkConnectionOptions.spec.js b/test/model/CreateNetworkConnectionOptions.spec.js index 09ceb73..af75947 100644 --- a/test/model/CreateNetworkConnectionOptions.spec.js +++ b/test/model/CreateNetworkConnectionOptions.spec.js @@ -2,7 +2,7 @@ * Corellium API * REST API to manage your virtual devices. * - * The version of the OpenAPI document: 7.3.0 + * The version of the OpenAPI document: 7.9.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/test/model/CreateTeam.spec.js b/test/model/CreateTeam.spec.js index 6196c36..baa8f9f 100644 --- a/test/model/CreateTeam.spec.js +++ b/test/model/CreateTeam.spec.js @@ -2,7 +2,7 @@ * Corellium API * REST API to manage your virtual devices. * - * The version of the OpenAPI document: 7.3.0 + * The version of the OpenAPI document: 7.9.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/test/model/CreatedBy.spec.js b/test/model/CreatedBy.spec.js index e0d06a1..0a07265 100644 --- a/test/model/CreatedBy.spec.js +++ b/test/model/CreatedBy.spec.js @@ -2,7 +2,7 @@ * Corellium API * REST API to manage your virtual devices. * - * The version of the OpenAPI document: 7.3.0 + * The version of the OpenAPI document: 7.9.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/test/model/Credentials.spec.js b/test/model/Credentials.spec.js index 03d933e..c64a229 100644 --- a/test/model/Credentials.spec.js +++ b/test/model/Credentials.spec.js @@ -2,7 +2,7 @@ * Corellium API * REST API to manage your virtual devices. * - * The version of the OpenAPI document: 7.3.0 + * The version of the OpenAPI document: 7.9.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/test/model/DetachInterfaceRequest.spec.js b/test/model/DetachInterfaceRequest.spec.js new file mode 100644 index 0000000..7632831 --- /dev/null +++ b/test/model/DetachInterfaceRequest.spec.js @@ -0,0 +1,65 @@ +/** + * Corellium API + * REST API to manage your virtual devices. + * + * The version of the OpenAPI document: 7.9.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.CorelliumClient); + } +}(this, function(expect, CorelliumClient) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new CorelliumClient.DetachInterfaceRequest(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('DetachInterfaceRequest', function() { + it('should create an instance of DetachInterfaceRequest', function() { + // uncomment below and update the code to test DetachInterfaceRequest + //var instance = new CorelliumClient.DetachInterfaceRequest(); + //expect(instance).to.be.a(CorelliumClient.DetachInterfaceRequest); + }); + + it('should have the property interconnectId (base name: "interconnectId")', function() { + // uncomment below and update the code to test the property interconnectId + //var instance = new CorelliumClient.DetachInterfaceRequest(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/Device.spec.js b/test/model/Device.spec.js new file mode 100644 index 0000000..aeb2950 --- /dev/null +++ b/test/model/Device.spec.js @@ -0,0 +1,113 @@ +/** + * Corellium API + * REST API to manage your virtual devices. + * + * The version of the OpenAPI document: 7.9.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.CorelliumClient); + } +}(this, function(expect, CorelliumClient) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new CorelliumClient.Device(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('Device', function() { + it('should create an instance of Device', function() { + // uncomment below and update the code to test Device + //var instance = new CorelliumClient.Device(); + //expect(instance).to.be.a(CorelliumClient.Device); + }); + + it('should have the property type (base name: "type")', function() { + // uncomment below and update the code to test the property type + //var instance = new CorelliumClient.Device(); + //expect(instance).to.be(); + }); + + it('should have the property model (base name: "model")', function() { + // uncomment below and update the code to test the property model + //var instance = new CorelliumClient.Device(); + //expect(instance).to.be(); + }); + + it('should have the property name (base name: "name")', function() { + // uncomment below and update the code to test the property name + //var instance = new CorelliumClient.Device(); + //expect(instance).to.be(); + }); + + it('should have the property platform (base name: "platform")', function() { + // uncomment below and update the code to test the property platform + //var instance = new CorelliumClient.Device(); + //expect(instance).to.be(); + }); + + it('should have the property hwmodel (base name: "hwmodel")', function() { + // uncomment below and update the code to test the property hwmodel + //var instance = new CorelliumClient.Device(); + //expect(instance).to.be(); + }); + + it('should have the property bdid (base name: "bdid")', function() { + // uncomment below and update the code to test the property bdid + //var instance = new CorelliumClient.Device(); + //expect(instance).to.be(); + }); + + it('should have the property cpid (base name: "cpid")', function() { + // uncomment below and update the code to test the property cpid + //var instance = new CorelliumClient.Device(); + //expect(instance).to.be(); + }); + + it('should have the property createdAt (base name: "createdAt")', function() { + // uncomment below and update the code to test the property createdAt + //var instance = new CorelliumClient.Device(); + //expect(instance).to.be(); + }); + + it('should have the property updatedAt (base name: "updatedAt")', function() { + // uncomment below and update the code to test the property updatedAt + //var instance = new CorelliumClient.Device(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/DomainAuthProviderRequest.spec.js b/test/model/DomainAuthProviderRequest.spec.js index ffb68f3..8f1b8a0 100644 --- a/test/model/DomainAuthProviderRequest.spec.js +++ b/test/model/DomainAuthProviderRequest.spec.js @@ -2,7 +2,7 @@ * Corellium API * REST API to manage your virtual devices. * - * The version of the OpenAPI document: 7.3.0 + * The version of the OpenAPI document: 7.9.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/test/model/DomainAuthProviderResponse.spec.js b/test/model/DomainAuthProviderResponse.spec.js index 864ca00..5325677 100644 --- a/test/model/DomainAuthProviderResponse.spec.js +++ b/test/model/DomainAuthProviderResponse.spec.js @@ -2,7 +2,7 @@ * Corellium API * REST API to manage your virtual devices. * - * The version of the OpenAPI document: 7.3.0 + * The version of the OpenAPI document: 7.9.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/test/model/DomainOptions.spec.js b/test/model/DomainOptions.spec.js index 1deef51..dc69572 100644 --- a/test/model/DomainOptions.spec.js +++ b/test/model/DomainOptions.spec.js @@ -2,7 +2,7 @@ * Corellium API * REST API to manage your virtual devices. * - * The version of the OpenAPI document: 7.3.0 + * The version of the OpenAPI document: 7.9.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/test/model/ExtendedFirmwareAssetInfo.spec.js b/test/model/ExtendedFirmwareAssetInfo.spec.js new file mode 100644 index 0000000..24a6eff --- /dev/null +++ b/test/model/ExtendedFirmwareAssetInfo.spec.js @@ -0,0 +1,71 @@ +/** + * Corellium API + * REST API to manage your virtual devices. + * + * The version of the OpenAPI document: 7.9.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.CorelliumClient); + } +}(this, function(expect, CorelliumClient) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new CorelliumClient.ExtendedFirmwareAssetInfo(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('ExtendedFirmwareAssetInfo', function() { + it('should create an instance of ExtendedFirmwareAssetInfo', function() { + // uncomment below and update the code to test ExtendedFirmwareAssetInfo + //var instance = new CorelliumClient.ExtendedFirmwareAssetInfo(); + //expect(instance).to.be.a(CorelliumClient.ExtendedFirmwareAssetInfo); + }); + + it('should have the property firmwares (base name: "firmwares")', function() { + // uncomment below and update the code to test the property firmwares + //var instance = new CorelliumClient.ExtendedFirmwareAssetInfo(); + //expect(instance).to.be(); + }); + + it('should have the property instances (base name: "instances")', function() { + // uncomment below and update the code to test the property instances + //var instance = new CorelliumClient.ExtendedFirmwareAssetInfo(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/Extension.spec.js b/test/model/Extension.spec.js index 8be0ed1..150e0e5 100644 --- a/test/model/Extension.spec.js +++ b/test/model/Extension.spec.js @@ -2,7 +2,7 @@ * Corellium API * REST API to manage your virtual devices. * - * The version of the OpenAPI document: 7.3.0 + * The version of the OpenAPI document: 7.9.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/test/model/Features.spec.js b/test/model/Features.spec.js index 2b28185..4e70758 100644 --- a/test/model/Features.spec.js +++ b/test/model/Features.spec.js @@ -2,7 +2,7 @@ * Corellium API * REST API to manage your virtual devices. * - * The version of the OpenAPI document: 7.3.0 + * The version of the OpenAPI document: 7.9.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/test/model/FileChanges.spec.js b/test/model/FileChanges.spec.js index b46d3f5..5ce93a1 100644 --- a/test/model/FileChanges.spec.js +++ b/test/model/FileChanges.spec.js @@ -2,7 +2,7 @@ * Corellium API * REST API to manage your virtual devices. * - * The version of the OpenAPI document: 7.3.0 + * The version of the OpenAPI document: 7.9.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/test/model/Firmware.spec.js b/test/model/Firmware.spec.js index 678f159..249b8b9 100644 --- a/test/model/Firmware.spec.js +++ b/test/model/Firmware.spec.js @@ -2,7 +2,7 @@ * Corellium API * REST API to manage your virtual devices. * - * The version of the OpenAPI document: 7.3.0 + * The version of the OpenAPI document: 7.9.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/test/model/FirmwareAsset.spec.js b/test/model/FirmwareAsset.spec.js new file mode 100644 index 0000000..223bc03 --- /dev/null +++ b/test/model/FirmwareAsset.spec.js @@ -0,0 +1,119 @@ +/** + * Corellium API + * REST API to manage your virtual devices. + * + * The version of the OpenAPI document: 7.9.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.CorelliumClient); + } +}(this, function(expect, CorelliumClient) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new CorelliumClient.FirmwareAsset(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('FirmwareAsset', function() { + it('should create an instance of FirmwareAsset', function() { + // uncomment below and update the code to test FirmwareAsset + //var instance = new CorelliumClient.FirmwareAsset(); + //expect(instance).to.be.a(CorelliumClient.FirmwareAsset); + }); + + it('should have the property domain (base name: "domain")', function() { + // uncomment below and update the code to test the property domain + //var instance = new CorelliumClient.FirmwareAsset(); + //expect(instance).to.be(); + }); + + it('should have the property url (base name: "url")', function() { + // uncomment below and update the code to test the property url + //var instance = new CorelliumClient.FirmwareAsset(); + //expect(instance).to.be(); + }); + + it('should have the property payload (base name: "payload")', function() { + // uncomment below and update the code to test the property payload + //var instance = new CorelliumClient.FirmwareAsset(); + //expect(instance).to.be(); + }); + + it('should have the property size (base name: "size")', function() { + // uncomment below and update the code to test the property size + //var instance = new CorelliumClient.FirmwareAsset(); + //expect(instance).to.be(); + }); + + it('should have the property md5sum (base name: "md5sum")', function() { + // uncomment below and update the code to test the property md5sum + //var instance = new CorelliumClient.FirmwareAsset(); + //expect(instance).to.be(); + }); + + it('should have the property sha1sum (base name: "sha1sum")', function() { + // uncomment below and update the code to test the property sha1sum + //var instance = new CorelliumClient.FirmwareAsset(); + //expect(instance).to.be(); + }); + + it('should have the property sha256sum (base name: "sha256sum")', function() { + // uncomment below and update the code to test the property sha256sum + //var instance = new CorelliumClient.FirmwareAsset(); + //expect(instance).to.be(); + }); + + it('should have the property uploaddate (base name: "uploaddate")', function() { + // uncomment below and update the code to test the property uploaddate + //var instance = new CorelliumClient.FirmwareAsset(); + //expect(instance).to.be(); + }); + + it('should have the property createdAt (base name: "createdAt")', function() { + // uncomment below and update the code to test the property createdAt + //var instance = new CorelliumClient.FirmwareAsset(); + //expect(instance).to.be(); + }); + + it('should have the property updatedAt (base name: "updatedAt")', function() { + // uncomment below and update the code to test the property updatedAt + //var instance = new CorelliumClient.FirmwareAsset(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/FirmwareServiceConfiguration.spec.js b/test/model/FirmwareServiceConfiguration.spec.js new file mode 100644 index 0000000..7f07cb0 --- /dev/null +++ b/test/model/FirmwareServiceConfiguration.spec.js @@ -0,0 +1,89 @@ +/** + * Corellium API + * REST API to manage your virtual devices. + * + * The version of the OpenAPI document: 7.9.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.CorelliumClient); + } +}(this, function(expect, CorelliumClient) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new CorelliumClient.FirmwareServiceConfiguration(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('FirmwareServiceConfiguration', function() { + it('should create an instance of FirmwareServiceConfiguration', function() { + // uncomment below and update the code to test FirmwareServiceConfiguration + //var instance = new CorelliumClient.FirmwareServiceConfiguration(); + //expect(instance).to.be.a(CorelliumClient.FirmwareServiceConfiguration); + }); + + it('should have the property cacheFirmware (base name: "cacheFirmware")', function() { + // uncomment below and update the code to test the property cacheFirmware + //var instance = new CorelliumClient.FirmwareServiceConfiguration(); + //expect(instance).to.be(); + }); + + it('should have the property clusterFirmwareAssets (base name: "clusterFirmwareAssets")', function() { + // uncomment below and update the code to test the property clusterFirmwareAssets + //var instance = new CorelliumClient.FirmwareServiceConfiguration(); + //expect(instance).to.be(); + }); + + it('should have the property fallbackOriginalUrl (base name: "fallbackOriginalUrl")', function() { + // uncomment below and update the code to test the property fallbackOriginalUrl + //var instance = new CorelliumClient.FirmwareServiceConfiguration(); + //expect(instance).to.be(); + }); + + it('should have the property fetchFirmwareAssets (base name: "fetchFirmwareAssets")', function() { + // uncomment below and update the code to test the property fetchFirmwareAssets + //var instance = new CorelliumClient.FirmwareServiceConfiguration(); + //expect(instance).to.be(); + }); + + it('should have the property shouldDownload (base name: "shouldDownload")', function() { + // uncomment below and update the code to test the property shouldDownload + //var instance = new CorelliumClient.FirmwareServiceConfiguration(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/GetAssessmentsByInstanceId500Response.spec.js b/test/model/GetAssessmentsByInstanceId500Response.spec.js index 0908278..18560c3 100644 --- a/test/model/GetAssessmentsByInstanceId500Response.spec.js +++ b/test/model/GetAssessmentsByInstanceId500Response.spec.js @@ -2,7 +2,7 @@ * Corellium API * REST API to manage your virtual devices. * - * The version of the OpenAPI document: 7.3.0 + * The version of the OpenAPI document: 7.9.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/test/model/GetInterconnectsResponse.spec.js b/test/model/GetInterconnectsResponse.spec.js new file mode 100644 index 0000000..4ea1547 --- /dev/null +++ b/test/model/GetInterconnectsResponse.spec.js @@ -0,0 +1,89 @@ +/** + * Corellium API + * REST API to manage your virtual devices. + * + * The version of the OpenAPI document: 7.9.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.CorelliumClient); + } +}(this, function(expect, CorelliumClient) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new CorelliumClient.GetInterconnectsResponse(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('GetInterconnectsResponse', function() { + it('should create an instance of GetInterconnectsResponse', function() { + // uncomment below and update the code to test GetInterconnectsResponse + //var instance = new CorelliumClient.GetInterconnectsResponse(); + //expect(instance).to.be.a(CorelliumClient.GetInterconnectsResponse); + }); + + it('should have the property results (base name: "results")', function() { + // uncomment below and update the code to test the property results + //var instance = new CorelliumClient.GetInterconnectsResponse(); + //expect(instance).to.be(); + }); + + it('should have the property count (base name: "count")', function() { + // uncomment below and update the code to test the property count + //var instance = new CorelliumClient.GetInterconnectsResponse(); + //expect(instance).to.be(); + }); + + it('should have the property total (base name: "total")', function() { + // uncomment below and update the code to test the property total + //var instance = new CorelliumClient.GetInterconnectsResponse(); + //expect(instance).to.be(); + }); + + it('should have the property limit (base name: "limit")', function() { + // uncomment below and update the code to test the property limit + //var instance = new CorelliumClient.GetInterconnectsResponse(); + //expect(instance).to.be(); + }); + + it('should have the property offset (base name: "offset")', function() { + // uncomment below and update the code to test the property offset + //var instance = new CorelliumClient.GetInterconnectsResponse(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/GetStorageResponse.spec.js b/test/model/GetStorageResponse.spec.js new file mode 100644 index 0000000..a3c71fb --- /dev/null +++ b/test/model/GetStorageResponse.spec.js @@ -0,0 +1,89 @@ +/** + * Corellium API + * REST API to manage your virtual devices. + * + * The version of the OpenAPI document: 7.9.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.CorelliumClient); + } +}(this, function(expect, CorelliumClient) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new CorelliumClient.GetStorageResponse(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('GetStorageResponse', function() { + it('should create an instance of GetStorageResponse', function() { + // uncomment below and update the code to test GetStorageResponse + //var instance = new CorelliumClient.GetStorageResponse(); + //expect(instance).to.be.a(CorelliumClient.GetStorageResponse); + }); + + it('should have the property results (base name: "results")', function() { + // uncomment below and update the code to test the property results + //var instance = new CorelliumClient.GetStorageResponse(); + //expect(instance).to.be(); + }); + + it('should have the property count (base name: "count")', function() { + // uncomment below and update the code to test the property count + //var instance = new CorelliumClient.GetStorageResponse(); + //expect(instance).to.be(); + }); + + it('should have the property total (base name: "total")', function() { + // uncomment below and update the code to test the property total + //var instance = new CorelliumClient.GetStorageResponse(); + //expect(instance).to.be(); + }); + + it('should have the property limit (base name: "limit")', function() { + // uncomment below and update the code to test the property limit + //var instance = new CorelliumClient.GetStorageResponse(); + //expect(instance).to.be(); + }); + + it('should have the property offset (base name: "offset")', function() { + // uncomment below and update the code to test the property offset + //var instance = new CorelliumClient.GetStorageResponse(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/GpioStateDefinition.spec.js b/test/model/GpioStateDefinition.spec.js index a6037c7..b127803 100644 --- a/test/model/GpioStateDefinition.spec.js +++ b/test/model/GpioStateDefinition.spec.js @@ -2,7 +2,7 @@ * Corellium API * REST API to manage your virtual devices. * - * The version of the OpenAPI document: 7.3.0 + * The version of the OpenAPI document: 7.9.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/test/model/GpiosState.spec.js b/test/model/GpiosState.spec.js index 7226d68..a109308 100644 --- a/test/model/GpiosState.spec.js +++ b/test/model/GpiosState.spec.js @@ -2,7 +2,7 @@ * Corellium API * REST API to manage your virtual devices. * - * The version of the OpenAPI document: 7.3.0 + * The version of the OpenAPI document: 7.9.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/test/model/GrantTrialRequestResponse.spec.js b/test/model/GrantTrialRequestResponse.spec.js index 61d59e9..e797ac0 100644 --- a/test/model/GrantTrialRequestResponse.spec.js +++ b/test/model/GrantTrialRequestResponse.spec.js @@ -2,7 +2,7 @@ * Corellium API * REST API to manage your virtual devices. * - * The version of the OpenAPI document: 7.3.0 + * The version of the OpenAPI document: 7.9.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/test/model/Hook.spec.js b/test/model/Hook.spec.js index 8a6c5e2..f479ac4 100644 --- a/test/model/Hook.spec.js +++ b/test/model/Hook.spec.js @@ -2,7 +2,7 @@ * Corellium API * REST API to manage your virtual devices. * - * The version of the OpenAPI document: 7.3.0 + * The version of the OpenAPI document: 7.9.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/test/model/Image.spec.js b/test/model/Image.spec.js index 4f134ce..3174fa8 100644 --- a/test/model/Image.spec.js +++ b/test/model/Image.spec.js @@ -2,7 +2,7 @@ * Corellium API * REST API to manage your virtual devices. * - * The version of the OpenAPI document: 7.3.0 + * The version of the OpenAPI document: 7.9.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/test/model/InputResponse.spec.js b/test/model/InputResponse.spec.js index 1c9a0d1..d167904 100644 --- a/test/model/InputResponse.spec.js +++ b/test/model/InputResponse.spec.js @@ -2,7 +2,7 @@ * Corellium API * REST API to manage your virtual devices. * - * The version of the OpenAPI document: 7.3.0 + * The version of the OpenAPI document: 7.9.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/test/model/InstallFirmwareAssetsRequest.spec.js b/test/model/InstallFirmwareAssetsRequest.spec.js new file mode 100644 index 0000000..289cebf --- /dev/null +++ b/test/model/InstallFirmwareAssetsRequest.spec.js @@ -0,0 +1,65 @@ +/** + * Corellium API + * REST API to manage your virtual devices. + * + * The version of the OpenAPI document: 7.9.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.CorelliumClient); + } +}(this, function(expect, CorelliumClient) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new CorelliumClient.InstallFirmwareAssetsRequest(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('InstallFirmwareAssetsRequest', function() { + it('should create an instance of InstallFirmwareAssetsRequest', function() { + // uncomment below and update the code to test InstallFirmwareAssetsRequest + //var instance = new CorelliumClient.InstallFirmwareAssetsRequest(); + //expect(instance).to.be.a(CorelliumClient.InstallFirmwareAssetsRequest); + }); + + it('should have the property imageId (base name: "imageId")', function() { + // uncomment below and update the code to test the property imageId + //var instance = new CorelliumClient.InstallFirmwareAssetsRequest(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/InstallFirmwareAssetsResponse.spec.js b/test/model/InstallFirmwareAssetsResponse.spec.js new file mode 100644 index 0000000..454b8d6 --- /dev/null +++ b/test/model/InstallFirmwareAssetsResponse.spec.js @@ -0,0 +1,65 @@ +/** + * Corellium API + * REST API to manage your virtual devices. + * + * The version of the OpenAPI document: 7.9.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.CorelliumClient); + } +}(this, function(expect, CorelliumClient) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new CorelliumClient.InstallFirmwareAssetsResponse(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('InstallFirmwareAssetsResponse', function() { + it('should create an instance of InstallFirmwareAssetsResponse', function() { + // uncomment below and update the code to test InstallFirmwareAssetsResponse + //var instance = new CorelliumClient.InstallFirmwareAssetsResponse(); + //expect(instance).to.be.a(CorelliumClient.InstallFirmwareAssetsResponse); + }); + + it('should have the property taskId (base name: "taskId")', function() { + // uncomment below and update the code to test the property taskId + //var instance = new CorelliumClient.InstallFirmwareAssetsResponse(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/InstallFirmwareRequest.spec.js b/test/model/InstallFirmwareRequest.spec.js new file mode 100644 index 0000000..cac2593 --- /dev/null +++ b/test/model/InstallFirmwareRequest.spec.js @@ -0,0 +1,71 @@ +/** + * Corellium API + * REST API to manage your virtual devices. + * + * The version of the OpenAPI document: 7.9.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.CorelliumClient); + } +}(this, function(expect, CorelliumClient) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new CorelliumClient.InstallFirmwareRequest(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('InstallFirmwareRequest', function() { + it('should create an instance of InstallFirmwareRequest', function() { + // uncomment below and update the code to test InstallFirmwareRequest + //var instance = new CorelliumClient.InstallFirmwareRequest(); + //expect(instance).to.be.a(CorelliumClient.InstallFirmwareRequest); + }); + + it('should have the property imageId (base name: "imageId")', function() { + // uncomment below and update the code to test the property imageId + //var instance = new CorelliumClient.InstallFirmwareRequest(); + //expect(instance).to.be(); + }); + + it('should have the property filename (base name: "filename")', function() { + // uncomment below and update the code to test the property filename + //var instance = new CorelliumClient.InstallFirmwareRequest(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/InstallFirmwareResponse.spec.js b/test/model/InstallFirmwareResponse.spec.js new file mode 100644 index 0000000..159f3f1 --- /dev/null +++ b/test/model/InstallFirmwareResponse.spec.js @@ -0,0 +1,71 @@ +/** + * Corellium API + * REST API to manage your virtual devices. + * + * The version of the OpenAPI document: 7.9.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.CorelliumClient); + } +}(this, function(expect, CorelliumClient) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new CorelliumClient.InstallFirmwareResponse(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('InstallFirmwareResponse', function() { + it('should create an instance of InstallFirmwareResponse', function() { + // uncomment below and update the code to test InstallFirmwareResponse + //var instance = new CorelliumClient.InstallFirmwareResponse(); + //expect(instance).to.be.a(CorelliumClient.InstallFirmwareResponse); + }); + + it('should have the property taskId (base name: "taskId")', function() { + // uncomment below and update the code to test the property taskId + //var instance = new CorelliumClient.InstallFirmwareResponse(); + //expect(instance).to.be(); + }); + + it('should have the property installedFirmwareUrl (base name: "installedFirmwareUrl")', function() { + // uncomment below and update the code to test the property installedFirmwareUrl + //var instance = new CorelliumClient.InstallFirmwareResponse(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/Instance.spec.js b/test/model/Instance.spec.js index 189a3ad..4dc0aa9 100644 --- a/test/model/Instance.spec.js +++ b/test/model/Instance.spec.js @@ -2,7 +2,7 @@ * Corellium API * REST API to manage your virtual devices. * - * The version of the OpenAPI document: 7.3.0 + * The version of the OpenAPI document: 7.9.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/test/model/InstanceAgentState.spec.js b/test/model/InstanceAgentState.spec.js index 01af034..5e5367b 100644 --- a/test/model/InstanceAgentState.spec.js +++ b/test/model/InstanceAgentState.spec.js @@ -2,7 +2,7 @@ * Corellium API * REST API to manage your virtual devices. * - * The version of the OpenAPI document: 7.3.0 + * The version of the OpenAPI document: 7.9.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/test/model/InstanceBootOptions.spec.js b/test/model/InstanceBootOptions.spec.js index 8e92722..bbeec9d 100644 --- a/test/model/InstanceBootOptions.spec.js +++ b/test/model/InstanceBootOptions.spec.js @@ -2,7 +2,7 @@ * Corellium API * REST API to manage your virtual devices. * - * The version of the OpenAPI document: 7.3.0 + * The version of the OpenAPI document: 7.9.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -102,6 +102,12 @@ //expect(instance).to.be(); }); + it('should have the property kernel (base name: "kernel")', function() { + // uncomment below and update the code to test the property kernel + //var instance = new CorelliumClient.InstanceBootOptions(); + //expect(instance).to.be(); + }); + }); })); diff --git a/test/model/InstanceBootOptionsAdditionalTag.spec.js b/test/model/InstanceBootOptionsAdditionalTag.spec.js index 1e30579..a54c32e 100644 --- a/test/model/InstanceBootOptionsAdditionalTag.spec.js +++ b/test/model/InstanceBootOptionsAdditionalTag.spec.js @@ -2,7 +2,7 @@ * Corellium API * REST API to manage your virtual devices. * - * The version of the OpenAPI document: 7.3.0 + * The version of the OpenAPI document: 7.9.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/test/model/InstanceBootOptionsKernel.spec.js b/test/model/InstanceBootOptionsKernel.spec.js new file mode 100644 index 0000000..2ce58c3 --- /dev/null +++ b/test/model/InstanceBootOptionsKernel.spec.js @@ -0,0 +1,65 @@ +/** + * Corellium API + * REST API to manage your virtual devices. + * + * The version of the OpenAPI document: 7.9.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.CorelliumClient); + } +}(this, function(expect, CorelliumClient) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new CorelliumClient.InstanceBootOptionsKernel(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('InstanceBootOptionsKernel', function() { + it('should create an instance of InstanceBootOptionsKernel', function() { + // uncomment below and update the code to test InstanceBootOptionsKernel + //var instance = new CorelliumClient.InstanceBootOptionsKernel(); + //expect(instance).to.be.a(CorelliumClient.InstanceBootOptionsKernel); + }); + + it('should have the property firmwarePath (base name: "firmwarePath")', function() { + // uncomment below and update the code to test the property firmwarePath + //var instance = new CorelliumClient.InstanceBootOptionsKernel(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/InstanceConsoleEndpoint.spec.js b/test/model/InstanceConsoleEndpoint.spec.js index 7c8f134..c5a0c71 100644 --- a/test/model/InstanceConsoleEndpoint.spec.js +++ b/test/model/InstanceConsoleEndpoint.spec.js @@ -2,7 +2,7 @@ * Corellium API * REST API to manage your virtual devices. * - * The version of the OpenAPI document: 7.3.0 + * The version of the OpenAPI document: 7.9.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/test/model/InstanceCreateOptions.spec.js b/test/model/InstanceCreateOptions.spec.js index 5b0393f..81743f0 100644 --- a/test/model/InstanceCreateOptions.spec.js +++ b/test/model/InstanceCreateOptions.spec.js @@ -2,7 +2,7 @@ * Corellium API * REST API to manage your virtual devices. * - * The version of the OpenAPI document: 7.3.0 + * The version of the OpenAPI document: 7.9.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -132,26 +132,8 @@ //expect(instance).to.be(); }); - it('should have the property volume (base name: "volume")', function() { - // uncomment below and update the code to test the property volume - //var instance = new CorelliumClient.InstanceCreateOptions(); - //expect(instance).to.be(); - }); - - it('should have the property snapshot (base name: "snapshot")', function() { - // uncomment below and update the code to test the property snapshot - //var instance = new CorelliumClient.InstanceCreateOptions(); - //expect(instance).to.be(); - }); - - it('should have the property bootOptions (base name: "bootOptions")', function() { - // uncomment below and update the code to test the property bootOptions - //var instance = new CorelliumClient.InstanceCreateOptions(); - //expect(instance).to.be(); - }); - - it('should have the property device (base name: "device")', function() { - // uncomment below and update the code to test the property device + it('should have the property wanAccess (base name: "wanAccess")', function() { + // uncomment below and update the code to test the property wanAccess //var instance = new CorelliumClient.InstanceCreateOptions(); //expect(instance).to.be(); }); diff --git a/test/model/InstanceInput.spec.js b/test/model/InstanceInput.spec.js index 223b3a8..ca81116 100644 --- a/test/model/InstanceInput.spec.js +++ b/test/model/InstanceInput.spec.js @@ -2,7 +2,7 @@ * Corellium API * REST API to manage your virtual devices. * - * The version of the OpenAPI document: 7.3.0 + * The version of the OpenAPI document: 7.9.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/test/model/InstanceInterface.spec.js b/test/model/InstanceInterface.spec.js new file mode 100644 index 0000000..5097355 --- /dev/null +++ b/test/model/InstanceInterface.spec.js @@ -0,0 +1,71 @@ +/** + * Corellium API + * REST API to manage your virtual devices. + * + * The version of the OpenAPI document: 7.9.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.CorelliumClient); + } +}(this, function(expect, CorelliumClient) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new CorelliumClient.InstanceInterface(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('InstanceInterface', function() { + it('should create an instance of InstanceInterface', function() { + // uncomment below and update the code to test InstanceInterface + //var instance = new CorelliumClient.InstanceInterface(); + //expect(instance).to.be.a(CorelliumClient.InstanceInterface); + }); + + it('should have the property deviceId (base name: "deviceId")', function() { + // uncomment below and update the code to test the property deviceId + //var instance = new CorelliumClient.InstanceInterface(); + //expect(instance).to.be(); + }); + + it('should have the property interfaceId (base name: "interfaceId")', function() { + // uncomment below and update the code to test the property interfaceId + //var instance = new CorelliumClient.InstanceInterface(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/InstanceNetdumpState.spec.js b/test/model/InstanceNetdumpState.spec.js index 068eece..434cfb7 100644 --- a/test/model/InstanceNetdumpState.spec.js +++ b/test/model/InstanceNetdumpState.spec.js @@ -2,7 +2,7 @@ * Corellium API * REST API to manage your virtual devices. * - * The version of the OpenAPI document: 7.3.0 + * The version of the OpenAPI document: 7.9.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/test/model/InstanceNetmonState.spec.js b/test/model/InstanceNetmonState.spec.js index cce20ee..37a8fa8 100644 --- a/test/model/InstanceNetmonState.spec.js +++ b/test/model/InstanceNetmonState.spec.js @@ -2,7 +2,7 @@ * Corellium API * REST API to manage your virtual devices. * - * The version of the OpenAPI document: 7.3.0 + * The version of the OpenAPI document: 7.9.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/test/model/InstanceReturn.spec.js b/test/model/InstanceReturn.spec.js index f977b7c..c387bde 100644 --- a/test/model/InstanceReturn.spec.js +++ b/test/model/InstanceReturn.spec.js @@ -2,7 +2,7 @@ * Corellium API * REST API to manage your virtual devices. * - * The version of the OpenAPI document: 7.3.0 + * The version of the OpenAPI document: 7.9.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/test/model/InstanceServices.spec.js b/test/model/InstanceServices.spec.js index 63d1a27..c9ed329 100644 --- a/test/model/InstanceServices.spec.js +++ b/test/model/InstanceServices.spec.js @@ -2,7 +2,7 @@ * Corellium API * REST API to manage your virtual devices. * - * The version of the OpenAPI document: 7.3.0 + * The version of the OpenAPI document: 7.9.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/test/model/InstanceStartOptions.spec.js b/test/model/InstanceStartOptions.spec.js index 9ebf854..bc84979 100644 --- a/test/model/InstanceStartOptions.spec.js +++ b/test/model/InstanceStartOptions.spec.js @@ -2,7 +2,7 @@ * Corellium API * REST API to manage your virtual devices. * - * The version of the OpenAPI document: 7.3.0 + * The version of the OpenAPI document: 7.9.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/test/model/InstanceState.spec.js b/test/model/InstanceState.spec.js index abda247..15d12ea 100644 --- a/test/model/InstanceState.spec.js +++ b/test/model/InstanceState.spec.js @@ -2,7 +2,7 @@ * Corellium API * REST API to manage your virtual devices. * - * The version of the OpenAPI document: 7.3.0 + * The version of the OpenAPI document: 7.9.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/test/model/InstanceStopOptions.spec.js b/test/model/InstanceStopOptions.spec.js index 7bc0f7f..f118d94 100644 --- a/test/model/InstanceStopOptions.spec.js +++ b/test/model/InstanceStopOptions.spec.js @@ -2,7 +2,7 @@ * Corellium API * REST API to manage your virtual devices. * - * The version of the OpenAPI document: 7.3.0 + * The version of the OpenAPI document: 7.9.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/test/model/InstanceUpgradeBody.spec.js b/test/model/InstanceUpgradeBody.spec.js index 274f096..dca7fd7 100644 --- a/test/model/InstanceUpgradeBody.spec.js +++ b/test/model/InstanceUpgradeBody.spec.js @@ -2,7 +2,7 @@ * Corellium API * REST API to manage your virtual devices. * - * The version of the OpenAPI document: 7.3.0 + * The version of the OpenAPI document: 7.9.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/test/model/InterconnectResponse.spec.js b/test/model/InterconnectResponse.spec.js new file mode 100644 index 0000000..d37bf91 --- /dev/null +++ b/test/model/InterconnectResponse.spec.js @@ -0,0 +1,113 @@ +/** + * Corellium API + * REST API to manage your virtual devices. + * + * The version of the OpenAPI document: 7.9.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.CorelliumClient); + } +}(this, function(expect, CorelliumClient) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new CorelliumClient.InterconnectResponse(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('InterconnectResponse', function() { + it('should create an instance of InterconnectResponse', function() { + // uncomment below and update the code to test InterconnectResponse + //var instance = new CorelliumClient.InterconnectResponse(); + //expect(instance).to.be.a(CorelliumClient.InterconnectResponse); + }); + + it('should have the property id (base name: "id")', function() { + // uncomment below and update the code to test the property id + //var instance = new CorelliumClient.InterconnectResponse(); + //expect(instance).to.be(); + }); + + it('should have the property name (base name: "name")', function() { + // uncomment below and update the code to test the property name + //var instance = new CorelliumClient.InterconnectResponse(); + //expect(instance).to.be(); + }); + + it('should have the property protocol (base name: "protocol")', function() { + // uncomment below and update the code to test the property protocol + //var instance = new CorelliumClient.InterconnectResponse(); + //expect(instance).to.be(); + }); + + it('should have the property type (base name: "type")', function() { + // uncomment below and update the code to test the property type + //var instance = new CorelliumClient.InterconnectResponse(); + //expect(instance).to.be(); + }); + + it('should have the property project (base name: "project")', function() { + // uncomment below and update the code to test the property project + //var instance = new CorelliumClient.InterconnectResponse(); + //expect(instance).to.be(); + }); + + it('should have the property status (base name: "status")', function() { + // uncomment below and update the code to test the property status + //var instance = new CorelliumClient.InterconnectResponse(); + //expect(instance).to.be(); + }); + + it('should have the property interfaces (base name: "interfaces")', function() { + // uncomment below and update the code to test the property interfaces + //var instance = new CorelliumClient.InterconnectResponse(); + //expect(instance).to.be(); + }); + + it('should have the property createdAt (base name: "createdAt")', function() { + // uncomment below and update the code to test the property createdAt + //var instance = new CorelliumClient.InterconnectResponse(); + //expect(instance).to.be(); + }); + + it('should have the property updatedAt (base name: "updatedAt")', function() { + // uncomment below and update the code to test the property updatedAt + //var instance = new CorelliumClient.InterconnectResponse(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/Invitation.spec.js b/test/model/Invitation.spec.js index f5eb06a..fda3199 100644 --- a/test/model/Invitation.spec.js +++ b/test/model/Invitation.spec.js @@ -2,7 +2,7 @@ * Corellium API * REST API to manage your virtual devices. * - * The version of the OpenAPI document: 7.3.0 + * The version of the OpenAPI document: 7.9.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/test/model/InviteRevokeParams.spec.js b/test/model/InviteRevokeParams.spec.js index c8e17ed..541b494 100644 --- a/test/model/InviteRevokeParams.spec.js +++ b/test/model/InviteRevokeParams.spec.js @@ -2,7 +2,7 @@ * Corellium API * REST API to manage your virtual devices. * - * The version of the OpenAPI document: 7.3.0 + * The version of the OpenAPI document: 7.9.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/test/model/InviteRevokeParamsIds.spec.js b/test/model/InviteRevokeParamsIds.spec.js index c18c588..b01f7bf 100644 --- a/test/model/InviteRevokeParamsIds.spec.js +++ b/test/model/InviteRevokeParamsIds.spec.js @@ -2,7 +2,7 @@ * Corellium API * REST API to manage your virtual devices. * - * The version of the OpenAPI document: 7.3.0 + * The version of the OpenAPI document: 7.9.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/test/model/Kcrange.spec.js b/test/model/Kcrange.spec.js index 774dc79..8b8c33c 100644 --- a/test/model/Kcrange.spec.js +++ b/test/model/Kcrange.spec.js @@ -2,7 +2,7 @@ * Corellium API * REST API to manage your virtual devices. * - * The version of the OpenAPI document: 7.3.0 + * The version of the OpenAPI document: 7.9.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/test/model/KernelTask.spec.js b/test/model/KernelTask.spec.js index daadd32..2aeb2ec 100644 --- a/test/model/KernelTask.spec.js +++ b/test/model/KernelTask.spec.js @@ -2,7 +2,7 @@ * Corellium API * REST API to manage your virtual devices. * - * The version of the OpenAPI document: 7.3.0 + * The version of the OpenAPI document: 7.9.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/test/model/KernelThread.spec.js b/test/model/KernelThread.spec.js index 187291a..c9ad79a 100644 --- a/test/model/KernelThread.spec.js +++ b/test/model/KernelThread.spec.js @@ -2,7 +2,7 @@ * Corellium API * REST API to manage your virtual devices. * - * The version of the OpenAPI document: 7.3.0 + * The version of the OpenAPI document: 7.9.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/test/model/Logging.spec.js b/test/model/Logging.spec.js index 3416c4a..26009e7 100644 --- a/test/model/Logging.spec.js +++ b/test/model/Logging.spec.js @@ -2,7 +2,7 @@ * Corellium API * REST API to manage your virtual devices. * - * The version of the OpenAPI document: 7.3.0 + * The version of the OpenAPI document: 7.9.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/test/model/Maintenance.spec.js b/test/model/Maintenance.spec.js index 70bbb10..0cdbd9c 100644 --- a/test/model/Maintenance.spec.js +++ b/test/model/Maintenance.spec.js @@ -2,7 +2,7 @@ * Corellium API * REST API to manage your virtual devices. * - * The version of the OpenAPI document: 7.3.0 + * The version of the OpenAPI document: 7.9.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/test/model/MediaPlayBody.spec.js b/test/model/MediaPlayBody.spec.js index 7470dd8..05fdb82 100644 --- a/test/model/MediaPlayBody.spec.js +++ b/test/model/MediaPlayBody.spec.js @@ -2,7 +2,7 @@ * Corellium API * REST API to manage your virtual devices. * - * The version of the OpenAPI document: 7.3.0 + * The version of the OpenAPI document: 7.9.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/test/model/MediaStore.spec.js b/test/model/MediaStore.spec.js new file mode 100644 index 0000000..0f234c0 --- /dev/null +++ b/test/model/MediaStore.spec.js @@ -0,0 +1,125 @@ +/** + * Corellium API + * REST API to manage your virtual devices. + * + * The version of the OpenAPI document: 7.9.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.CorelliumClient); + } +}(this, function(expect, CorelliumClient) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new CorelliumClient.MediaStore(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('MediaStore', function() { + it('should create an instance of MediaStore', function() { + // uncomment below and update the code to test MediaStore + //var instance = new CorelliumClient.MediaStore(); + //expect(instance).to.be.a(CorelliumClient.MediaStore); + }); + + it('should have the property identifier (base name: "identifier")', function() { + // uncomment below and update the code to test the property identifier + //var instance = new CorelliumClient.MediaStore(); + //expect(instance).to.be(); + }); + + it('should have the property device (base name: "device")', function() { + // uncomment below and update the code to test the property device + //var instance = new CorelliumClient.MediaStore(); + //expect(instance).to.be(); + }); + + it('should have the property fsType (base name: "fsType")', function() { + // uncomment below and update the code to test the property fsType + //var instance = new CorelliumClient.MediaStore(); + //expect(instance).to.be(); + }); + + it('should have the property fsUUID (base name: "fsUUID")', function() { + // uncomment below and update the code to test the property fsUUID + //var instance = new CorelliumClient.MediaStore(); + //expect(instance).to.be(); + }); + + it('should have the property label (base name: "label")', function() { + // uncomment below and update the code to test the property label + //var instance = new CorelliumClient.MediaStore(); + //expect(instance).to.be(); + }); + + it('should have the property serial (base name: "serial")', function() { + // uncomment below and update the code to test the property serial + //var instance = new CorelliumClient.MediaStore(); + //expect(instance).to.be(); + }); + + it('should have the property vendor (base name: "vendor")', function() { + // uncomment below and update the code to test the property vendor + //var instance = new CorelliumClient.MediaStore(); + //expect(instance).to.be(); + }); + + it('should have the property model (base name: "model")', function() { + // uncomment below and update the code to test the property model + //var instance = new CorelliumClient.MediaStore(); + //expect(instance).to.be(); + }); + + it('should have the property mountPolicy (base name: "mountPolicy")', function() { + // uncomment below and update the code to test the property mountPolicy + //var instance = new CorelliumClient.MediaStore(); + //expect(instance).to.be(); + }); + + it('should have the property createdAt (base name: "createdAt")', function() { + // uncomment below and update the code to test the property createdAt + //var instance = new CorelliumClient.MediaStore(); + //expect(instance).to.be(); + }); + + it('should have the property updatedAt (base name: "updatedAt")', function() { + // uncomment below and update the code to test the property updatedAt + //var instance = new CorelliumClient.MediaStore(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/MeteredSubscriptionUsage.spec.js b/test/model/MeteredSubscriptionUsage.spec.js index a40d608..97568bd 100644 --- a/test/model/MeteredSubscriptionUsage.spec.js +++ b/test/model/MeteredSubscriptionUsage.spec.js @@ -2,7 +2,7 @@ * Corellium API * REST API to manage your virtual devices. * - * The version of the OpenAPI document: 7.3.0 + * The version of the OpenAPI document: 7.9.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/test/model/Model.spec.js b/test/model/Model.spec.js index e2f24ed..0f62f04 100644 --- a/test/model/Model.spec.js +++ b/test/model/Model.spec.js @@ -2,7 +2,7 @@ * Corellium API * REST API to manage your virtual devices. * - * The version of the OpenAPI document: 7.3.0 + * The version of the OpenAPI document: 7.9.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/test/model/ModelSoftware.spec.js b/test/model/ModelSoftware.spec.js index 360f5fb..17b7197 100644 --- a/test/model/ModelSoftware.spec.js +++ b/test/model/ModelSoftware.spec.js @@ -2,7 +2,7 @@ * Corellium API * REST API to manage your virtual devices. * - * The version of the OpenAPI document: 7.3.0 + * The version of the OpenAPI document: 7.9.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/test/model/NetdumpFilter.spec.js b/test/model/NetdumpFilter.spec.js index ac1f4ad..232f67c 100644 --- a/test/model/NetdumpFilter.spec.js +++ b/test/model/NetdumpFilter.spec.js @@ -2,7 +2,7 @@ * Corellium API * REST API to manage your virtual devices. * - * The version of the OpenAPI document: 7.3.0 + * The version of the OpenAPI document: 7.9.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/test/model/NetworkConnection.spec.js b/test/model/NetworkConnection.spec.js index 3e32f96..6e0747a 100644 --- a/test/model/NetworkConnection.spec.js +++ b/test/model/NetworkConnection.spec.js @@ -2,7 +2,7 @@ * Corellium API * REST API to manage your virtual devices. * - * The version of the OpenAPI document: 7.3.0 + * The version of the OpenAPI document: 7.9.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/test/model/NetworkConnectionOffsetPaginationResult.spec.js b/test/model/NetworkConnectionOffsetPaginationResult.spec.js index 67f3d04..dc76914 100644 --- a/test/model/NetworkConnectionOffsetPaginationResult.spec.js +++ b/test/model/NetworkConnectionOffsetPaginationResult.spec.js @@ -2,7 +2,7 @@ * Corellium API * REST API to manage your virtual devices. * - * The version of the OpenAPI document: 7.3.0 + * The version of the OpenAPI document: 7.9.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/test/model/NetworkConnectionProvider.spec.js b/test/model/NetworkConnectionProvider.spec.js index 0971160..ff511d2 100644 --- a/test/model/NetworkConnectionProvider.spec.js +++ b/test/model/NetworkConnectionProvider.spec.js @@ -2,7 +2,7 @@ * Corellium API * REST API to manage your virtual devices. * - * The version of the OpenAPI document: 7.3.0 + * The version of the OpenAPI document: 7.9.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/test/model/NetworkConnectionProviderOffsetPaginationResult.spec.js b/test/model/NetworkConnectionProviderOffsetPaginationResult.spec.js index 89ee3ae..292a493 100644 --- a/test/model/NetworkConnectionProviderOffsetPaginationResult.spec.js +++ b/test/model/NetworkConnectionProviderOffsetPaginationResult.spec.js @@ -2,7 +2,7 @@ * Corellium API * REST API to manage your virtual devices. * - * The version of the OpenAPI document: 7.3.0 + * The version of the OpenAPI document: 7.9.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/test/model/NetworkStatusResponse.spec.js b/test/model/NetworkStatusResponse.spec.js index c2c3e1a..cadae17 100644 --- a/test/model/NetworkStatusResponse.spec.js +++ b/test/model/NetworkStatusResponse.spec.js @@ -2,7 +2,7 @@ * Corellium API * REST API to manage your virtual devices. * - * The version of the OpenAPI document: 7.3.0 + * The version of the OpenAPI document: 7.9.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/test/model/NodeInformation.spec.js b/test/model/NodeInformation.spec.js new file mode 100644 index 0000000..aa68125 --- /dev/null +++ b/test/model/NodeInformation.spec.js @@ -0,0 +1,89 @@ +/** + * Corellium API + * REST API to manage your virtual devices. + * + * The version of the OpenAPI document: 7.9.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.CorelliumClient); + } +}(this, function(expect, CorelliumClient) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new CorelliumClient.NodeInformation(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('NodeInformation', function() { + it('should create an instance of NodeInformation', function() { + // uncomment below and update the code to test NodeInformation + //var instance = new CorelliumClient.NodeInformation(); + //expect(instance).to.be.a(CorelliumClient.NodeInformation); + }); + + it('should have the property nodeId (base name: "nodeId")', function() { + // uncomment below and update the code to test the property nodeId + //var instance = new CorelliumClient.NodeInformation(); + //expect(instance).to.be(); + }); + + it('should have the property address (base name: "address")', function() { + // uncomment below and update the code to test the property address + //var instance = new CorelliumClient.NodeInformation(); + //expect(instance).to.be(); + }); + + it('should have the property hostname (base name: "hostname")', function() { + // uncomment below and update the code to test the property hostname + //var instance = new CorelliumClient.NodeInformation(); + //expect(instance).to.be(); + }); + + it('should have the property sshPort (base name: "sshPort")', function() { + // uncomment below and update the code to test the property sshPort + //var instance = new CorelliumClient.NodeInformation(); + //expect(instance).to.be(); + }); + + it('should have the property nodeTypes (base name: "nodeTypes")', function() { + // uncomment below and update the code to test the property nodeTypes + //var instance = new CorelliumClient.NodeInformation(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/NodeUpdatesFailed.spec.js b/test/model/NodeUpdatesFailed.spec.js new file mode 100644 index 0000000..de16359 --- /dev/null +++ b/test/model/NodeUpdatesFailed.spec.js @@ -0,0 +1,71 @@ +/** + * Corellium API + * REST API to manage your virtual devices. + * + * The version of the OpenAPI document: 7.9.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.CorelliumClient); + } +}(this, function(expect, CorelliumClient) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new CorelliumClient.NodeUpdatesFailed(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('NodeUpdatesFailed', function() { + it('should create an instance of NodeUpdatesFailed', function() { + // uncomment below and update the code to test NodeUpdatesFailed + //var instance = new CorelliumClient.NodeUpdatesFailed(); + //expect(instance).to.be.a(CorelliumClient.NodeUpdatesFailed); + }); + + it('should have the property message (base name: "message")', function() { + // uncomment below and update the code to test the property message + //var instance = new CorelliumClient.NodeUpdatesFailed(); + //expect(instance).to.be(); + }); + + it('should have the property nodes (base name: "nodes")', function() { + // uncomment below and update the code to test the property nodes + //var instance = new CorelliumClient.NodeUpdatesFailed(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/OpenIDConfig.spec.js b/test/model/OpenIDConfig.spec.js index 1b95696..3b3ec61 100644 --- a/test/model/OpenIDConfig.spec.js +++ b/test/model/OpenIDConfig.spec.js @@ -2,7 +2,7 @@ * Corellium API * REST API to manage your virtual devices. * - * The version of the OpenAPI document: 7.3.0 + * The version of the OpenAPI document: 7.9.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/test/model/Pagination.spec.js b/test/model/Pagination.spec.js index 3a624e5..67154a1 100644 --- a/test/model/Pagination.spec.js +++ b/test/model/Pagination.spec.js @@ -2,7 +2,7 @@ * Corellium API * REST API to manage your virtual devices. * - * The version of the OpenAPI document: 7.3.0 + * The version of the OpenAPI document: 7.9.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/test/model/PartialUpdateInterconnectRequest.spec.js b/test/model/PartialUpdateInterconnectRequest.spec.js new file mode 100644 index 0000000..4fbc84d --- /dev/null +++ b/test/model/PartialUpdateInterconnectRequest.spec.js @@ -0,0 +1,71 @@ +/** + * Corellium API + * REST API to manage your virtual devices. + * + * The version of the OpenAPI document: 7.9.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.CorelliumClient); + } +}(this, function(expect, CorelliumClient) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new CorelliumClient.PartialUpdateInterconnectRequest(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('PartialUpdateInterconnectRequest', function() { + it('should create an instance of PartialUpdateInterconnectRequest', function() { + // uncomment below and update the code to test PartialUpdateInterconnectRequest + //var instance = new CorelliumClient.PartialUpdateInterconnectRequest(); + //expect(instance).to.be.a(CorelliumClient.PartialUpdateInterconnectRequest); + }); + + it('should have the property name (base name: "name")', function() { + // uncomment below and update the code to test the property name + //var instance = new CorelliumClient.PartialUpdateInterconnectRequest(); + //expect(instance).to.be(); + }); + + it('should have the property interfaces (base name: "interfaces")', function() { + // uncomment below and update the code to test the property interfaces + //var instance = new CorelliumClient.PartialUpdateInterconnectRequest(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/PasswordChangeBody.spec.js b/test/model/PasswordChangeBody.spec.js index 5d3b96f..5fc8da1 100644 --- a/test/model/PasswordChangeBody.spec.js +++ b/test/model/PasswordChangeBody.spec.js @@ -2,7 +2,7 @@ * Corellium API * REST API to manage your virtual devices. * - * The version of the OpenAPI document: 7.3.0 + * The version of the OpenAPI document: 7.9.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/test/model/PasswordResetBody.spec.js b/test/model/PasswordResetBody.spec.js index b1df3e3..aadf99b 100644 --- a/test/model/PasswordResetBody.spec.js +++ b/test/model/PasswordResetBody.spec.js @@ -2,7 +2,7 @@ * Corellium API * REST API to manage your virtual devices. * - * The version of the OpenAPI document: 7.3.0 + * The version of the OpenAPI document: 7.9.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/test/model/PatchInstanceOptions.spec.js b/test/model/PatchInstanceOptions.spec.js index 67a6b48..2fdb3f4 100644 --- a/test/model/PatchInstanceOptions.spec.js +++ b/test/model/PatchInstanceOptions.spec.js @@ -2,7 +2,7 @@ * Corellium API * REST API to manage your virtual devices. * - * The version of the OpenAPI document: 7.3.0 + * The version of the OpenAPI document: 7.9.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/test/model/PatchInstanceReadOnly.spec.js b/test/model/PatchInstanceReadOnly.spec.js new file mode 100644 index 0000000..46f519e --- /dev/null +++ b/test/model/PatchInstanceReadOnly.spec.js @@ -0,0 +1,65 @@ +/** + * Corellium API + * REST API to manage your virtual devices. + * + * The version of the OpenAPI document: 7.9.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.CorelliumClient); + } +}(this, function(expect, CorelliumClient) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new CorelliumClient.PatchInstanceReadOnly(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('PatchInstanceReadOnly', function() { + it('should create an instance of PatchInstanceReadOnly', function() { + // uncomment below and update the code to test PatchInstanceReadOnly + //var instance = new CorelliumClient.PatchInstanceReadOnly(); + //expect(instance).to.be.a(CorelliumClient.PatchInstanceReadOnly); + }); + + it('should have the property readOnly (base name: "readOnly")', function() { + // uncomment below and update the code to test the property readOnly + //var instance = new CorelliumClient.PatchInstanceReadOnly(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/PeripheralsData.spec.js b/test/model/PeripheralsData.spec.js index 78d2bbf..4067256 100644 --- a/test/model/PeripheralsData.spec.js +++ b/test/model/PeripheralsData.spec.js @@ -2,7 +2,7 @@ * Corellium API * REST API to manage your virtual devices. * - * The version of the OpenAPI document: 7.3.0 + * The version of the OpenAPI document: 7.9.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/test/model/Plan.spec.js b/test/model/Plan.spec.js index ae9899e..63d27d2 100644 --- a/test/model/Plan.spec.js +++ b/test/model/Plan.spec.js @@ -2,7 +2,7 @@ * Corellium API * REST API to manage your virtual devices. * - * The version of the OpenAPI document: 7.3.0 + * The version of the OpenAPI document: 7.9.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/test/model/PostShareSnapshotRequestPayload.spec.js b/test/model/PostShareSnapshotRequestPayload.spec.js index f837ae3..9531611 100644 --- a/test/model/PostShareSnapshotRequestPayload.spec.js +++ b/test/model/PostShareSnapshotRequestPayload.spec.js @@ -2,7 +2,7 @@ * Corellium API * REST API to manage your virtual devices. * - * The version of the OpenAPI document: 7.3.0 + * The version of the OpenAPI document: 7.9.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/test/model/Project.spec.js b/test/model/Project.spec.js index b64c263..a2a19b4 100644 --- a/test/model/Project.spec.js +++ b/test/model/Project.spec.js @@ -2,7 +2,7 @@ * Corellium API * REST API to manage your virtual devices. * - * The version of the OpenAPI document: 7.3.0 + * The version of the OpenAPI document: 7.9.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/test/model/ProjectKey.spec.js b/test/model/ProjectKey.spec.js index fe3be08..6922758 100644 --- a/test/model/ProjectKey.spec.js +++ b/test/model/ProjectKey.spec.js @@ -2,7 +2,7 @@ * Corellium API * REST API to manage your virtual devices. * - * The version of the OpenAPI document: 7.3.0 + * The version of the OpenAPI document: 7.9.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/test/model/ProjectNetworkState.spec.js b/test/model/ProjectNetworkState.spec.js index 25b3ebd..f3305c6 100644 --- a/test/model/ProjectNetworkState.spec.js +++ b/test/model/ProjectNetworkState.spec.js @@ -2,7 +2,7 @@ * Corellium API * REST API to manage your virtual devices. * - * The version of the OpenAPI document: 7.3.0 + * The version of the OpenAPI document: 7.9.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/test/model/ProjectQuota.spec.js b/test/model/ProjectQuota.spec.js index 368668d..aef9175 100644 --- a/test/model/ProjectQuota.spec.js +++ b/test/model/ProjectQuota.spec.js @@ -2,7 +2,7 @@ * Corellium API * REST API to manage your virtual devices. * - * The version of the OpenAPI document: 7.3.0 + * The version of the OpenAPI document: 7.9.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/test/model/ProjectSettings.spec.js b/test/model/ProjectSettings.spec.js index 102ce5f..435a6e8 100644 --- a/test/model/ProjectSettings.spec.js +++ b/test/model/ProjectSettings.spec.js @@ -2,7 +2,7 @@ * Corellium API * REST API to manage your virtual devices. * - * The version of the OpenAPI document: 7.3.0 + * The version of the OpenAPI document: 7.9.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/test/model/ProjectUsage.spec.js b/test/model/ProjectUsage.spec.js index d832705..cc51403 100644 --- a/test/model/ProjectUsage.spec.js +++ b/test/model/ProjectUsage.spec.js @@ -2,7 +2,7 @@ * Corellium API * REST API to manage your virtual devices. * - * The version of the OpenAPI document: 7.3.0 + * The version of the OpenAPI document: 7.9.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/test/model/ProxyConfig.spec.js b/test/model/ProxyConfig.spec.js index 073fddf..c454100 100644 --- a/test/model/ProxyConfig.spec.js +++ b/test/model/ProxyConfig.spec.js @@ -2,7 +2,7 @@ * Corellium API * REST API to manage your virtual devices. * - * The version of the OpenAPI document: 7.3.0 + * The version of the OpenAPI document: 7.9.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/test/model/ResetLinkBody.spec.js b/test/model/ResetLinkBody.spec.js index d2c8c26..17f106c 100644 --- a/test/model/ResetLinkBody.spec.js +++ b/test/model/ResetLinkBody.spec.js @@ -2,7 +2,7 @@ * Corellium API * REST API to manage your virtual devices. * - * The version of the OpenAPI document: 7.3.0 + * The version of the OpenAPI document: 7.9.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/test/model/ResetLinkInfoReturn.spec.js b/test/model/ResetLinkInfoReturn.spec.js new file mode 100644 index 0000000..a22c238 --- /dev/null +++ b/test/model/ResetLinkInfoReturn.spec.js @@ -0,0 +1,77 @@ +/** + * Corellium API + * REST API to manage your virtual devices. + * + * The version of the OpenAPI document: 7.9.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.CorelliumClient); + } +}(this, function(expect, CorelliumClient) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new CorelliumClient.ResetLinkInfoReturn(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('ResetLinkInfoReturn', function() { + it('should create an instance of ResetLinkInfoReturn', function() { + // uncomment below and update the code to test ResetLinkInfoReturn + //var instance = new CorelliumClient.ResetLinkInfoReturn(); + //expect(instance).to.be.a(CorelliumClient.ResetLinkInfoReturn); + }); + + it('should have the property userId (base name: "userId")', function() { + // uncomment below and update the code to test the property userId + //var instance = new CorelliumClient.ResetLinkInfoReturn(); + //expect(instance).to.be(); + }); + + it('should have the property username (base name: "username")', function() { + // uncomment below and update the code to test the property username + //var instance = new CorelliumClient.ResetLinkInfoReturn(); + //expect(instance).to.be(); + }); + + it('should have the property domain (base name: "domain")', function() { + // uncomment below and update the code to test the property domain + //var instance = new CorelliumClient.ResetLinkInfoReturn(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/RestoreBackupData.spec.js b/test/model/RestoreBackupData.spec.js new file mode 100644 index 0000000..cd382ad --- /dev/null +++ b/test/model/RestoreBackupData.spec.js @@ -0,0 +1,65 @@ +/** + * Corellium API + * REST API to manage your virtual devices. + * + * The version of the OpenAPI document: 7.9.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.CorelliumClient); + } +}(this, function(expect, CorelliumClient) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new CorelliumClient.RestoreBackupData(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('RestoreBackupData', function() { + it('should create an instance of RestoreBackupData', function() { + // uncomment below and update the code to test RestoreBackupData + //var instance = new CorelliumClient.RestoreBackupData(); + //expect(instance).to.be.a(CorelliumClient.RestoreBackupData); + }); + + it('should have the property password (base name: "password")', function() { + // uncomment below and update the code to test the property password + //var instance = new CorelliumClient.RestoreBackupData(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/Role.spec.js b/test/model/Role.spec.js index 3abfa65..c1d8f8d 100644 --- a/test/model/Role.spec.js +++ b/test/model/Role.spec.js @@ -2,7 +2,7 @@ * Corellium API * REST API to manage your virtual devices. * - * The version of the OpenAPI document: 7.3.0 + * The version of the OpenAPI document: 7.9.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/test/model/RotateBody.spec.js b/test/model/RotateBody.spec.js index d8e59db..e9a4f4c 100644 --- a/test/model/RotateBody.spec.js +++ b/test/model/RotateBody.spec.js @@ -2,7 +2,7 @@ * Corellium API * REST API to manage your virtual devices. * - * The version of the OpenAPI document: 7.3.0 + * The version of the OpenAPI document: 7.9.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/test/model/SharedSnapshotsInfo.spec.js b/test/model/SharedSnapshotsInfo.spec.js index 8fd45aa..26e3330 100644 --- a/test/model/SharedSnapshotsInfo.spec.js +++ b/test/model/SharedSnapshotsInfo.spec.js @@ -2,7 +2,7 @@ * Corellium API * REST API to manage your virtual devices. * - * The version of the OpenAPI document: 7.3.0 + * The version of the OpenAPI document: 7.9.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/test/model/Snapshot.spec.js b/test/model/Snapshot.spec.js index d427970..74c04e0 100644 --- a/test/model/Snapshot.spec.js +++ b/test/model/Snapshot.spec.js @@ -2,7 +2,7 @@ * Corellium API * REST API to manage your virtual devices. * - * The version of the OpenAPI document: 7.3.0 + * The version of the OpenAPI document: 7.9.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/test/model/SnapshotCreationOptions.spec.js b/test/model/SnapshotCreationOptions.spec.js index cb05950..9eed1e4 100644 --- a/test/model/SnapshotCreationOptions.spec.js +++ b/test/model/SnapshotCreationOptions.spec.js @@ -2,7 +2,7 @@ * Corellium API * REST API to manage your virtual devices. * - * The version of the OpenAPI document: 7.3.0 + * The version of the OpenAPI document: 7.9.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/test/model/SnapshotList.spec.js b/test/model/SnapshotList.spec.js new file mode 100644 index 0000000..3377d43 --- /dev/null +++ b/test/model/SnapshotList.spec.js @@ -0,0 +1,83 @@ +/** + * Corellium API + * REST API to manage your virtual devices. + * + * The version of the OpenAPI document: 7.9.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.CorelliumClient); + } +}(this, function(expect, CorelliumClient) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new CorelliumClient.SnapshotList(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('SnapshotList', function() { + it('should create an instance of SnapshotList', function() { + // uncomment below and update the code to test SnapshotList + //var instance = new CorelliumClient.SnapshotList(); + //expect(instance).to.be.a(CorelliumClient.SnapshotList); + }); + + it('should have the property results (base name: "results")', function() { + // uncomment below and update the code to test the property results + //var instance = new CorelliumClient.SnapshotList(); + //expect(instance).to.be(); + }); + + it('should have the property offset (base name: "offset")', function() { + // uncomment below and update the code to test the property offset + //var instance = new CorelliumClient.SnapshotList(); + //expect(instance).to.be(); + }); + + it('should have the property limit (base name: "limit")', function() { + // uncomment below and update the code to test the property limit + //var instance = new CorelliumClient.SnapshotList(); + //expect(instance).to.be(); + }); + + it('should have the property count (base name: "count")', function() { + // uncomment below and update the code to test the property count + //var instance = new CorelliumClient.SnapshotList(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/SnapshotMember.spec.js b/test/model/SnapshotMember.spec.js index d99f9ae..235891a 100644 --- a/test/model/SnapshotMember.spec.js +++ b/test/model/SnapshotMember.spec.js @@ -2,7 +2,7 @@ * Corellium API * REST API to manage your virtual devices. * - * The version of the OpenAPI document: 7.3.0 + * The version of the OpenAPI document: 7.9.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/test/model/SnapshotOwner.spec.js b/test/model/SnapshotOwner.spec.js index 3d929ea..7f6c133 100644 --- a/test/model/SnapshotOwner.spec.js +++ b/test/model/SnapshotOwner.spec.js @@ -2,7 +2,7 @@ * Corellium API * REST API to manage your virtual devices. * - * The version of the OpenAPI document: 7.3.0 + * The version of the OpenAPI document: 7.9.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/test/model/SnapshotPermissionsRequestPayload.spec.js b/test/model/SnapshotPermissionsRequestPayload.spec.js index c718455..23ad5f6 100644 --- a/test/model/SnapshotPermissionsRequestPayload.spec.js +++ b/test/model/SnapshotPermissionsRequestPayload.spec.js @@ -2,7 +2,7 @@ * Corellium API * REST API to manage your virtual devices. * - * The version of the OpenAPI document: 7.3.0 + * The version of the OpenAPI document: 7.9.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/test/model/SnapshotRequest.spec.js b/test/model/SnapshotRequest.spec.js new file mode 100644 index 0000000..d2d1bab --- /dev/null +++ b/test/model/SnapshotRequest.spec.js @@ -0,0 +1,125 @@ +/** + * Corellium API + * REST API to manage your virtual devices. + * + * The version of the OpenAPI document: 7.9.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.CorelliumClient); + } +}(this, function(expect, CorelliumClient) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new CorelliumClient.SnapshotRequest(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('SnapshotRequest', function() { + it('should create an instance of SnapshotRequest', function() { + // uncomment below and update the code to test SnapshotRequest + //var instance = new CorelliumClient.SnapshotRequest(); + //expect(instance).to.be.a(CorelliumClient.SnapshotRequest); + }); + + it('should have the property limit (base name: "limit")', function() { + // uncomment below and update the code to test the property limit + //var instance = new CorelliumClient.SnapshotRequest(); + //expect(instance).to.be(); + }); + + it('should have the property offset (base name: "offset")', function() { + // uncomment below and update the code to test the property offset + //var instance = new CorelliumClient.SnapshotRequest(); + //expect(instance).to.be(); + }); + + it('should have the property springboard (base name: "springboard")', function() { + // uncomment below and update the code to test the property springboard + //var instance = new CorelliumClient.SnapshotRequest(); + //expect(instance).to.be(); + }); + + it('should have the property live (base name: "live")', function() { + // uncomment below and update the code to test the property live + //var instance = new CorelliumClient.SnapshotRequest(); + //expect(instance).to.be(); + }); + + it('should have the property fresh (base name: "fresh")', function() { + // uncomment below and update the code to test the property fresh + //var instance = new CorelliumClient.SnapshotRequest(); + //expect(instance).to.be(); + }); + + it('should have the property deviceName (base name: "deviceName")', function() { + // uncomment below and update the code to test the property deviceName + //var instance = new CorelliumClient.SnapshotRequest(); + //expect(instance).to.be(); + }); + + it('should have the property task (base name: "task")', function() { + // uncomment below and update the code to test the property task + //var instance = new CorelliumClient.SnapshotRequest(); + //expect(instance).to.be(); + }); + + it('should have the property to (base name: "to")', function() { + // uncomment below and update the code to test the property to + //var instance = new CorelliumClient.SnapshotRequest(); + //expect(instance).to.be(); + }); + + it('should have the property from (base name: "from")', function() { + // uncomment below and update the code to test the property from + //var instance = new CorelliumClient.SnapshotRequest(); + //expect(instance).to.be(); + }); + + it('should have the property orderBy (base name: "orderBy")', function() { + // uncomment below and update the code to test the property orderBy + //var instance = new CorelliumClient.SnapshotRequest(); + //expect(instance).to.be(); + }); + + it('should have the property search (base name: "search")', function() { + // uncomment below and update the code to test the property search + //var instance = new CorelliumClient.SnapshotRequest(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/SnapshotSharing.spec.js b/test/model/SnapshotSharing.spec.js index 3fb42e0..3753b7e 100644 --- a/test/model/SnapshotSharing.spec.js +++ b/test/model/SnapshotSharing.spec.js @@ -2,7 +2,7 @@ * Corellium API * REST API to manage your virtual devices. * - * The version of the OpenAPI document: 7.3.0 + * The version of the OpenAPI document: 7.9.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/test/model/SnapshotSharingPermissions.spec.js b/test/model/SnapshotSharingPermissions.spec.js index 98baced..c7d550a 100644 --- a/test/model/SnapshotSharingPermissions.spec.js +++ b/test/model/SnapshotSharingPermissions.spec.js @@ -2,7 +2,7 @@ * Corellium API * REST API to manage your virtual devices. * - * The version of the OpenAPI document: 7.3.0 + * The version of the OpenAPI document: 7.9.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/test/model/SnapshotStatus.spec.js b/test/model/SnapshotStatus.spec.js index cea889a..cded670 100644 --- a/test/model/SnapshotStatus.spec.js +++ b/test/model/SnapshotStatus.spec.js @@ -2,7 +2,7 @@ * Corellium API * REST API to manage your virtual devices. * - * The version of the OpenAPI document: 7.3.0 + * The version of the OpenAPI document: 7.9.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/test/model/SslsplitFilter.spec.js b/test/model/SslsplitFilter.spec.js index 5048fbb..4eafbe0 100644 --- a/test/model/SslsplitFilter.spec.js +++ b/test/model/SslsplitFilter.spec.js @@ -2,7 +2,7 @@ * Corellium API * REST API to manage your virtual devices. * - * The version of the OpenAPI document: 7.3.0 + * The version of the OpenAPI document: 7.9.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/test/model/Team.spec.js b/test/model/Team.spec.js index dbe9270..efaa346 100644 --- a/test/model/Team.spec.js +++ b/test/model/Team.spec.js @@ -2,7 +2,7 @@ * Corellium API * REST API to manage your virtual devices. * - * The version of the OpenAPI document: 7.3.0 + * The version of the OpenAPI document: 7.9.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/test/model/TeamCreate.spec.js b/test/model/TeamCreate.spec.js index 0671678..2e50974 100644 --- a/test/model/TeamCreate.spec.js +++ b/test/model/TeamCreate.spec.js @@ -2,7 +2,7 @@ * Corellium API * REST API to manage your virtual devices. * - * The version of the OpenAPI document: 7.3.0 + * The version of the OpenAPI document: 7.9.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/test/model/TestAssessmentDto.spec.js b/test/model/TestAssessmentDto.spec.js index 01a25ef..f5e478c 100644 --- a/test/model/TestAssessmentDto.spec.js +++ b/test/model/TestAssessmentDto.spec.js @@ -2,7 +2,7 @@ * Corellium API * REST API to manage your virtual devices. * - * The version of the OpenAPI document: 7.3.0 + * The version of the OpenAPI document: 7.9.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/test/model/TextInput.spec.js b/test/model/TextInput.spec.js index e5d4db6..a618991 100644 --- a/test/model/TextInput.spec.js +++ b/test/model/TextInput.spec.js @@ -2,7 +2,7 @@ * Corellium API * REST API to manage your virtual devices. * - * The version of the OpenAPI document: 7.3.0 + * The version of the OpenAPI document: 7.9.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/test/model/Token.spec.js b/test/model/Token.spec.js index 144b0c0..c1bf04d 100644 --- a/test/model/Token.spec.js +++ b/test/model/Token.spec.js @@ -2,7 +2,7 @@ * Corellium API * REST API to manage your virtual devices. * - * The version of the OpenAPI document: 7.3.0 + * The version of the OpenAPI document: 7.9.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -60,12 +60,6 @@ //expect(instance).to.be(); }); - it('should have the property expiration (base name: "expiration")', function() { - // uncomment below and update the code to test the property expiration - //var instance = new CorelliumClient.Token(); - //expect(instance).to.be(); - }); - }); })); diff --git a/test/model/TouchCurveInput.spec.js b/test/model/TouchCurveInput.spec.js index 2d1a47b..639181a 100644 --- a/test/model/TouchCurveInput.spec.js +++ b/test/model/TouchCurveInput.spec.js @@ -2,7 +2,7 @@ * Corellium API * REST API to manage your virtual devices. * - * The version of the OpenAPI document: 7.3.0 + * The version of the OpenAPI document: 7.9.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/test/model/TouchInput.spec.js b/test/model/TouchInput.spec.js index 6bff2f5..3066921 100644 --- a/test/model/TouchInput.spec.js +++ b/test/model/TouchInput.spec.js @@ -2,7 +2,7 @@ * Corellium API * REST API to manage your virtual devices. * - * The version of the OpenAPI document: 7.3.0 + * The version of the OpenAPI document: 7.9.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/test/model/TouchInputButtonsInner.spec.js b/test/model/TouchInputButtonsInner.spec.js index 53f4154..695265c 100644 --- a/test/model/TouchInputButtonsInner.spec.js +++ b/test/model/TouchInputButtonsInner.spec.js @@ -2,7 +2,7 @@ * Corellium API * REST API to manage your virtual devices. * - * The version of the OpenAPI document: 7.3.0 + * The version of the OpenAPI document: 7.9.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/test/model/Trial.spec.js b/test/model/Trial.spec.js index a9ea0ef..c2083bb 100644 --- a/test/model/Trial.spec.js +++ b/test/model/Trial.spec.js @@ -2,7 +2,7 @@ * Corellium API * REST API to manage your virtual devices. * - * The version of the OpenAPI document: 7.3.0 + * The version of the OpenAPI document: 7.9.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/test/model/TrialExtension.spec.js b/test/model/TrialExtension.spec.js index abe0c04..9d77c3a 100644 --- a/test/model/TrialExtension.spec.js +++ b/test/model/TrialExtension.spec.js @@ -2,7 +2,7 @@ * Corellium API * REST API to manage your virtual devices. * - * The version of the OpenAPI document: 7.3.0 + * The version of the OpenAPI document: 7.9.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/test/model/TrialRequestMetadata.spec.js b/test/model/TrialRequestMetadata.spec.js index 2dbbf7b..c1f27a1 100644 --- a/test/model/TrialRequestMetadata.spec.js +++ b/test/model/TrialRequestMetadata.spec.js @@ -2,7 +2,7 @@ * Corellium API * REST API to manage your virtual devices. * - * The version of the OpenAPI document: 7.3.0 + * The version of the OpenAPI document: 7.9.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/test/model/TrialRequestOptions.spec.js b/test/model/TrialRequestOptions.spec.js index a3aad96..9bbaeb4 100644 --- a/test/model/TrialRequestOptions.spec.js +++ b/test/model/TrialRequestOptions.spec.js @@ -2,7 +2,7 @@ * Corellium API * REST API to manage your virtual devices. * - * The version of the OpenAPI document: 7.3.0 + * The version of the OpenAPI document: 7.9.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/test/model/UpdateAssessmentDto.spec.js b/test/model/UpdateAssessmentDto.spec.js index 7135f33..f4d8315 100644 --- a/test/model/UpdateAssessmentDto.spec.js +++ b/test/model/UpdateAssessmentDto.spec.js @@ -2,7 +2,7 @@ * Corellium API * REST API to manage your virtual devices. * - * The version of the OpenAPI document: 7.3.0 + * The version of the OpenAPI document: 7.9.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/test/model/UpdateExtension.spec.js b/test/model/UpdateExtension.spec.js index d072eba..4602149 100644 --- a/test/model/UpdateExtension.spec.js +++ b/test/model/UpdateExtension.spec.js @@ -2,7 +2,7 @@ * Corellium API * REST API to manage your virtual devices. * - * The version of the OpenAPI document: 7.3.0 + * The version of the OpenAPI document: 7.9.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/test/model/UpdateInterconnectRequest.spec.js b/test/model/UpdateInterconnectRequest.spec.js new file mode 100644 index 0000000..ac21437 --- /dev/null +++ b/test/model/UpdateInterconnectRequest.spec.js @@ -0,0 +1,71 @@ +/** + * Corellium API + * REST API to manage your virtual devices. + * + * The version of the OpenAPI document: 7.9.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.CorelliumClient); + } +}(this, function(expect, CorelliumClient) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new CorelliumClient.UpdateInterconnectRequest(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('UpdateInterconnectRequest', function() { + it('should create an instance of UpdateInterconnectRequest', function() { + // uncomment below and update the code to test UpdateInterconnectRequest + //var instance = new CorelliumClient.UpdateInterconnectRequest(); + //expect(instance).to.be.a(CorelliumClient.UpdateInterconnectRequest); + }); + + it('should have the property name (base name: "name")', function() { + // uncomment below and update the code to test the property name + //var instance = new CorelliumClient.UpdateInterconnectRequest(); + //expect(instance).to.be(); + }); + + it('should have the property interfaces (base name: "interfaces")', function() { + // uncomment below and update the code to test the property interfaces + //var instance = new CorelliumClient.UpdateInterconnectRequest(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/UpdateNetworkConnectionOptions.spec.js b/test/model/UpdateNetworkConnectionOptions.spec.js index a2f617e..513a59a 100644 --- a/test/model/UpdateNetworkConnectionOptions.spec.js +++ b/test/model/UpdateNetworkConnectionOptions.spec.js @@ -2,7 +2,7 @@ * Corellium API * REST API to manage your virtual devices. * - * The version of the OpenAPI document: 7.3.0 + * The version of the OpenAPI document: 7.9.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/test/model/UpdateTrialRequestParams.spec.js b/test/model/UpdateTrialRequestParams.spec.js new file mode 100644 index 0000000..35ee3e0 --- /dev/null +++ b/test/model/UpdateTrialRequestParams.spec.js @@ -0,0 +1,71 @@ +/** + * Corellium API + * REST API to manage your virtual devices. + * + * The version of the OpenAPI document: 7.9.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.CorelliumClient); + } +}(this, function(expect, CorelliumClient) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new CorelliumClient.UpdateTrialRequestParams(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('UpdateTrialRequestParams', function() { + it('should create an instance of UpdateTrialRequestParams', function() { + // uncomment below and update the code to test UpdateTrialRequestParams + //var instance = new CorelliumClient.UpdateTrialRequestParams(); + //expect(instance).to.be.a(CorelliumClient.UpdateTrialRequestParams); + }); + + it('should have the property extensionDays (base name: "extensionDays")', function() { + // uncomment below and update the code to test the property extensionDays + //var instance = new CorelliumClient.UpdateTrialRequestParams(); + //expect(instance).to.be(); + }); + + it('should have the property extensionHours (base name: "extensionHours")', function() { + // uncomment below and update the code to test the property extensionHours + //var instance = new CorelliumClient.UpdateTrialRequestParams(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/User.spec.js b/test/model/User.spec.js index 61f434b..bb45944 100644 --- a/test/model/User.spec.js +++ b/test/model/User.spec.js @@ -2,7 +2,7 @@ * Corellium API * REST API to manage your virtual devices. * - * The version of the OpenAPI document: 7.3.0 + * The version of the OpenAPI document: 7.9.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -90,6 +90,12 @@ //expect(instance).to.be(); }); + it('should have the property clusterAdministrator (base name: "clusterAdministrator")', function() { + // uncomment below and update the code to test the property clusterAdministrator + //var instance = new CorelliumClient.User(); + //expect(instance).to.be(); + }); + }); })); diff --git a/test/model/UserCreate.spec.js b/test/model/UserCreate.spec.js new file mode 100644 index 0000000..974d5a9 --- /dev/null +++ b/test/model/UserCreate.spec.js @@ -0,0 +1,95 @@ +/** + * Corellium API + * REST API to manage your virtual devices. + * + * The version of the OpenAPI document: 7.9.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.CorelliumClient); + } +}(this, function(expect, CorelliumClient) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new CorelliumClient.UserCreate(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('UserCreate', function() { + it('should create an instance of UserCreate', function() { + // uncomment below and update the code to test UserCreate + //var instance = new CorelliumClient.UserCreate(); + //expect(instance).to.be.a(CorelliumClient.UserCreate); + }); + + it('should have the property name (base name: "name")', function() { + // uncomment below and update the code to test the property name + //var instance = new CorelliumClient.UserCreate(); + //expect(instance).to.be(); + }); + + it('should have the property label (base name: "label")', function() { + // uncomment below and update the code to test the property label + //var instance = new CorelliumClient.UserCreate(); + //expect(instance).to.be(); + }); + + it('should have the property password (base name: "password")', function() { + // uncomment below and update the code to test the property password + //var instance = new CorelliumClient.UserCreate(); + //expect(instance).to.be(); + }); + + it('should have the property email (base name: "email")', function() { + // uncomment below and update the code to test the property email + //var instance = new CorelliumClient.UserCreate(); + //expect(instance).to.be(); + }); + + it('should have the property administrator (base name: "administrator")', function() { + // uncomment below and update the code to test the property administrator + //var instance = new CorelliumClient.UserCreate(); + //expect(instance).to.be(); + }); + + it('should have the property clusterAdministrator (base name: "clusterAdministrator")', function() { + // uncomment below and update the code to test the property clusterAdministrator + //var instance = new CorelliumClient.UserCreate(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/UserCreateReturn.spec.js b/test/model/UserCreateReturn.spec.js new file mode 100644 index 0000000..96233a7 --- /dev/null +++ b/test/model/UserCreateReturn.spec.js @@ -0,0 +1,65 @@ +/** + * Corellium API + * REST API to manage your virtual devices. + * + * The version of the OpenAPI document: 7.9.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.CorelliumClient); + } +}(this, function(expect, CorelliumClient) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new CorelliumClient.UserCreateReturn(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('UserCreateReturn', function() { + it('should create an instance of UserCreateReturn', function() { + // uncomment below and update the code to test UserCreateReturn + //var instance = new CorelliumClient.UserCreateReturn(); + //expect(instance).to.be.a(CorelliumClient.UserCreateReturn); + }); + + it('should have the property id (base name: "id")', function() { + // uncomment below and update the code to test the property id + //var instance = new CorelliumClient.UserCreateReturn(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/UserError.spec.js b/test/model/UserError.spec.js index ed2167b..4cfed7c 100644 --- a/test/model/UserError.spec.js +++ b/test/model/UserError.spec.js @@ -2,7 +2,7 @@ * Corellium API * REST API to manage your virtual devices. * - * The version of the OpenAPI document: 7.3.0 + * The version of the OpenAPI document: 7.9.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/test/model/UserSnapshots.spec.js b/test/model/UserSnapshots.spec.js index 722f9de..8ddc302 100644 --- a/test/model/UserSnapshots.spec.js +++ b/test/model/UserSnapshots.spec.js @@ -2,7 +2,7 @@ * Corellium API * REST API to manage your virtual devices. * - * The version of the OpenAPI document: 7.3.0 + * The version of the OpenAPI document: 7.9.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/test/model/UserUpdate.spec.js b/test/model/UserUpdate.spec.js new file mode 100644 index 0000000..2c2995b --- /dev/null +++ b/test/model/UserUpdate.spec.js @@ -0,0 +1,71 @@ +/** + * Corellium API + * REST API to manage your virtual devices. + * + * The version of the OpenAPI document: 7.9.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.CorelliumClient); + } +}(this, function(expect, CorelliumClient) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new CorelliumClient.UserUpdate(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('UserUpdate', function() { + it('should create an instance of UserUpdate', function() { + // uncomment below and update the code to test UserUpdate + //var instance = new CorelliumClient.UserUpdate(); + //expect(instance).to.be.a(CorelliumClient.UserUpdate); + }); + + it('should have the property name (base name: "name")', function() { + // uncomment below and update the code to test the property name + //var instance = new CorelliumClient.UserUpdate(); + //expect(instance).to.be(); + }); + + it('should have the property label (base name: "label")', function() { + // uncomment below and update the code to test the property label + //var instance = new CorelliumClient.UserUpdate(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/V1CheckSubdomainExistenceParameters.spec.js b/test/model/V1CheckSubdomainExistenceParameters.spec.js index 875ae1d..a51998b 100644 --- a/test/model/V1CheckSubdomainExistenceParameters.spec.js +++ b/test/model/V1CheckSubdomainExistenceParameters.spec.js @@ -2,7 +2,7 @@ * Corellium API * REST API to manage your virtual devices. * - * The version of the OpenAPI document: 7.3.0 + * The version of the OpenAPI document: 7.9.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/test/model/V1CreateHookParameters.spec.js b/test/model/V1CreateHookParameters.spec.js index 815d10f..0172958 100644 --- a/test/model/V1CreateHookParameters.spec.js +++ b/test/model/V1CreateHookParameters.spec.js @@ -2,7 +2,7 @@ * Corellium API * REST API to manage your virtual devices. * - * The version of the OpenAPI document: 7.3.0 + * The version of the OpenAPI document: 7.9.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/test/model/V1LoadExtensionParameters.spec.js b/test/model/V1LoadExtensionParameters.spec.js index 15c3e05..b0db509 100644 --- a/test/model/V1LoadExtensionParameters.spec.js +++ b/test/model/V1LoadExtensionParameters.spec.js @@ -2,7 +2,7 @@ * Corellium API * REST API to manage your virtual devices. * - * The version of the OpenAPI document: 7.3.0 + * The version of the OpenAPI document: 7.9.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/test/model/V1SetStateBody.spec.js b/test/model/V1SetStateBody.spec.js index 180615c..a48a3c1 100644 --- a/test/model/V1SetStateBody.spec.js +++ b/test/model/V1SetStateBody.spec.js @@ -2,7 +2,7 @@ * Corellium API * REST API to manage your virtual devices. * - * The version of the OpenAPI document: 7.3.0 + * The version of the OpenAPI document: 7.9.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/test/model/V1UpdateHookParameters.spec.js b/test/model/V1UpdateHookParameters.spec.js new file mode 100644 index 0000000..bcd94d9 --- /dev/null +++ b/test/model/V1UpdateHookParameters.spec.js @@ -0,0 +1,89 @@ +/** + * Corellium API + * REST API to manage your virtual devices. + * + * The version of the OpenAPI document: 7.9.0 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.CorelliumClient); + } +}(this, function(expect, CorelliumClient) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new CorelliumClient.V1UpdateHookParameters(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('V1UpdateHookParameters', function() { + it('should create an instance of V1UpdateHookParameters', function() { + // uncomment below and update the code to test V1UpdateHookParameters + //var instance = new CorelliumClient.V1UpdateHookParameters(); + //expect(instance).to.be.a(CorelliumClient.V1UpdateHookParameters); + }); + + it('should have the property label (base name: "label")', function() { + // uncomment below and update the code to test the property label + //var instance = new CorelliumClient.V1UpdateHookParameters(); + //expect(instance).to.be(); + }); + + it('should have the property address (base name: "address")', function() { + // uncomment below and update the code to test the property address + //var instance = new CorelliumClient.V1UpdateHookParameters(); + //expect(instance).to.be(); + }); + + it('should have the property patch (base name: "patch")', function() { + // uncomment below and update the code to test the property patch + //var instance = new CorelliumClient.V1UpdateHookParameters(); + //expect(instance).to.be(); + }); + + it('should have the property patchType (base name: "patchType")', function() { + // uncomment below and update the code to test the property patchType + //var instance = new CorelliumClient.V1UpdateHookParameters(); + //expect(instance).to.be(); + }); + + it('should have the property enabled (base name: "enabled")', function() { + // uncomment below and update the code to test the property enabled + //var instance = new CorelliumClient.V1UpdateHookParameters(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/model/ValidationError.spec.js b/test/model/ValidationError.spec.js index e86fb74..a447c18 100644 --- a/test/model/ValidationError.spec.js +++ b/test/model/ValidationError.spec.js @@ -2,7 +2,7 @@ * Corellium API * REST API to manage your virtual devices. * - * The version of the OpenAPI document: 7.3.0 + * The version of the OpenAPI document: 7.9.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/test/model/VolumeOptions.spec.js b/test/model/VolumeOptions.spec.js index 5eb934c..72fa898 100644 --- a/test/model/VolumeOptions.spec.js +++ b/test/model/VolumeOptions.spec.js @@ -2,7 +2,7 @@ * Corellium API * REST API to manage your virtual devices. * - * The version of the OpenAPI document: 7.3.0 + * The version of the OpenAPI document: 7.9.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -54,20 +54,14 @@ //expect(instance).to.be.a(CorelliumClient.VolumeOptions); }); - it('should have the property allocate (base name: "allocate")', function() { - // uncomment below and update the code to test the property allocate + it('should have the property blocks (base name: "blocks")', function() { + // uncomment below and update the code to test the property blocks //var instance = new CorelliumClient.VolumeOptions(); //expect(instance).to.be(); }); - it('should have the property partitions (base name: "partitions")', function() { - // uncomment below and update the code to test the property partitions - //var instance = new CorelliumClient.VolumeOptions(); - //expect(instance).to.be(); - }); - - it('should have the property computeNode (base name: "computeNode")', function() { - // uncomment below and update the code to test the property computeNode + it('should have the property name (base name: "name")', function() { + // uncomment below and update the code to test the property name //var instance = new CorelliumClient.VolumeOptions(); //expect(instance).to.be(); }); diff --git a/test/model/VpnDefinition.spec.js b/test/model/VpnDefinition.spec.js index 8318bb9..c32d93a 100644 --- a/test/model/VpnDefinition.spec.js +++ b/test/model/VpnDefinition.spec.js @@ -2,7 +2,7 @@ * Corellium API * REST API to manage your virtual devices. * - * The version of the OpenAPI document: 7.3.0 + * The version of the OpenAPI document: 7.9.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/test/model/WebPlayerCreateSessionRequest.spec.js b/test/model/WebPlayerCreateSessionRequest.spec.js index 9da64f8..01b1cd2 100644 --- a/test/model/WebPlayerCreateSessionRequest.spec.js +++ b/test/model/WebPlayerCreateSessionRequest.spec.js @@ -2,7 +2,7 @@ * Corellium API * REST API to manage your virtual devices. * - * The version of the OpenAPI document: 7.3.0 + * The version of the OpenAPI document: 7.9.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/test/model/WebPlayerSession.spec.js b/test/model/WebPlayerSession.spec.js index 347ac50..2170577 100644 --- a/test/model/WebPlayerSession.spec.js +++ b/test/model/WebPlayerSession.spec.js @@ -2,7 +2,7 @@ * Corellium API * REST API to manage your virtual devices. * - * The version of the OpenAPI document: 7.3.0 + * The version of the OpenAPI document: 7.9.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).