diff --git a/.openapi-generator/FILES b/.openapi-generator/FILES index d84721a7..8b834c73 100644 --- a/.openapi-generator/FILES +++ b/.openapi-generator/FILES @@ -2,27 +2,35 @@ .travis.yml README.md api/openapi.yaml +api_activity.go api_agent.go api_authentication.go api_config.go api_core_trace.go +api_domain.go api_domain_auth_provider.go api_hyper_trace.go api_hypervisor_hooks.go api_images.go api_instances.go -api_licensing.go +api_matrix.go api_models.go +api_net_connect.go api_netdump.go api_projects.go api_roles.go +api_snapshot_sharing.go api_snapshots.go api_status.go api_teams.go -api_trial_requests.go api_users.go +api_web_player.go client.go configuration.go +docs/ActivityApi.md +docs/ActivityEntry.md +docs/ActivityList.md +docs/ActivityRequest.md docs/Address.md docs/AgentApi.md docs/AgentApp.md @@ -44,20 +52,25 @@ docs/ApiError.md docs/ApiInternalConsistencyError.md docs/ApiNotFoundError.md docs/ApiToken.md +docs/Assessment.md +docs/AssessmentIdStatus.md docs/AuthProvider.md docs/AuthenticationApi.md docs/Bit.md docs/BtraceEnableOptions.md docs/Button.md +docs/CheckSubdomainResponse.md docs/ConfigApi.md docs/ConfigResponse.md docs/ConfigResponseMaintenance.md docs/CoreTraceApi.md docs/CouponOptions.md +docs/CreateAssessmentDto.md +docs/CreateNetworkConnectionOptions.md docs/CreateTeam.md docs/CreatedBy.md docs/Credentials.md -docs/DeleteSnapshotPermissionsRequestPayload.md +docs/DomainApi.md docs/DomainAuthProviderApi.md docs/DomainAuthProviderRequest.md docs/DomainAuthProviderResponse.md @@ -66,6 +79,7 @@ docs/Extension.md docs/Features.md docs/FileChanges.md docs/Firmware.md +docs/GetAssessmentsByInstanceId500Response.md docs/GpioStateDefinition.md docs/GpiosState.md docs/GrantTrialRequestResponse.md @@ -74,6 +88,7 @@ docs/HyperTraceApi.md docs/HypervisorHooksApi.md docs/Image.md docs/ImagesApi.md +docs/InputResponse.md docs/Instance.md docs/InstanceAgentState.md docs/InstanceBootOptions.md @@ -96,23 +111,28 @@ docs/InviteRevokeParamsIds.md docs/Kcrange.md docs/KernelTask.md docs/KernelThread.md -docs/LicensingApi.md docs/Logging.md docs/Maintenance.md +docs/MatrixApi.md docs/MediaPlayBody.md docs/MeteredSubscriptionUsage.md docs/Model.md docs/ModelSoftware.md docs/ModelsApi.md +docs/NetConnectApi.md docs/NetdumpApi.md docs/NetdumpFilter.md +docs/NetworkConnection.md +docs/NetworkConnectionOffsetPaginationResult.md +docs/NetworkConnectionProvider.md +docs/NetworkConnectionProviderOffsetPaginationResult.md docs/OpenIDConfig.md docs/PasswordChangeBody.md docs/PasswordResetBody.md docs/PatchInstanceOptions.md docs/PeripheralsData.md docs/Plan.md -docs/PostSnapshotPermissionsRequestPayload.md +docs/PostShareSnapshotRequestPayload.md docs/Project.md docs/ProjectKey.md docs/ProjectQuota.md @@ -120,23 +140,28 @@ docs/ProjectSettings.md docs/ProjectUsage.md docs/ProjectsApi.md docs/ProxyConfig.md -docs/RateInfo.md docs/ResetLinkBody.md docs/Role.md docs/RolesApi.md docs/RotateBody.md +docs/SharedSnapshotsInfo.md docs/Snapshot.md docs/SnapshotCreationOptions.md -docs/SnapshotPermissions.md +docs/SnapshotMember.md +docs/SnapshotOwner.md +docs/SnapshotPermissionsRequestPayload.md docs/SnapshotSharing.md +docs/SnapshotSharingApi.md +docs/SnapshotSharingPermissions.md docs/SnapshotStatus.md -docs/SnapshotUser.md docs/SnapshotsApi.md +docs/SslsplitFilter.md docs/StatusApi.md docs/SubscriberInvite.md docs/Team.md docs/TeamCreate.md docs/TeamsApi.md +docs/TestAssessmentDto.md docs/TextInput.md docs/Token.md docs/TouchCurveInput.md @@ -145,22 +170,29 @@ docs/Trial.md docs/TrialExtension.md docs/TrialRequestMetadata.md docs/TrialRequestOptions.md -docs/TrialRequestsApi.md +docs/UpdateAssessmentDto.md docs/UpdateExtension.md +docs/UpdateNetworkConnectionOptions.md docs/User.md docs/UserError.md +docs/UserSnapshots.md docs/UsersApi.md +docs/V1CheckSubdomainExistenceParameters.md docs/V1CreateHookParameters.md docs/V1LoadExtensionParameters.md docs/V1SetStateBody.md docs/ValidationError.md docs/VolumeOptions.md docs/VpnDefinition.md +docs/WebPlayerApi.md docs/WebPlayerCreateSessionRequest.md docs/WebPlayerSession.md git_push.sh go.mod go.sum +model_activity_entry.go +model_activity_list.go +model_activity_request.go model_address.go model_agent_app.go model_agent_app_ready_response.go @@ -181,17 +213,21 @@ model_api_error.go model_api_internal_consistency_error.go model_api_not_found_error.go model_api_token.go +model_assessment.go +model_assessment_id_status.go model_auth_provider.go model_bit.go model_btrace_enable_options.go model_button.go +model_check_subdomain_response.go model_config_response.go model_config_response_maintenance.go model_coupon_options.go +model_create_assessment_dto.go +model_create_network_connection_options.go model_create_team.go model_created_by.go model_credentials.go -model_delete_snapshot_permissions_request_payload.go model_domain_auth_provider_request.go model_domain_auth_provider_response.go model_domain_options.go @@ -199,11 +235,13 @@ model_extension.go model_features.go model_file_changes.go model_firmware.go +model_get_assessments_by_instance_id_500_response.go model_gpio_state_definition.go model_gpios_state.go model_grant_trial_request_response.go model_hook.go model_image.go +model_input_response.go model_instance.go model_instance_agent_state.go model_instance_boot_options.go @@ -232,32 +270,40 @@ model_metered_subscription_usage.go model_model.go model_model_software.go model_netdump_filter.go +model_network_connection.go +model_network_connection_offset_pagination_result.go +model_network_connection_provider.go +model_network_connection_provider_offset_pagination_result.go model_open_id_config.go model_password_change_body.go model_password_reset_body.go model_patch_instance_options.go model_peripherals_data.go model_plan.go -model_post_snapshot_permissions_request_payload.go +model_post_share_snapshot_request_payload.go model_project.go model_project_key.go model_project_quota.go model_project_settings.go model_project_usage.go model_proxy_config.go -model_rate_info.go model_reset_link_body.go model_role.go model_rotate_body.go +model_shared_snapshots_info.go model_snapshot.go model_snapshot_creation_options.go -model_snapshot_permissions.go +model_snapshot_member.go +model_snapshot_owner.go +model_snapshot_permissions_request_payload.go model_snapshot_sharing.go +model_snapshot_sharing_permissions.go model_snapshot_status.go -model_snapshot_user.go +model_sslsplit_filter.go model_subscriber_invite.go model_team.go model_team_create.go +model_test_assessment_dto.go model_text_input.go model_token.go model_touch_curve_input.go @@ -266,9 +312,13 @@ model_trial.go model_trial_extension.go model_trial_request_metadata.go model_trial_request_options.go +model_update_assessment_dto.go model_update_extension.go +model_update_network_connection_options.go model_user.go model_user_error.go +model_user_snapshots.go +model_v1_check_subdomain_existence_parameters.go model_v1_create_hook_parameters.go model_v1_load_extension_parameters.go model_v1_set_state_body.go @@ -278,23 +328,27 @@ model_vpn_definition.go model_web_player_create_session_request.go model_web_player_session.go response.go +test/api_activity_test.go test/api_agent_test.go test/api_authentication_test.go test/api_config_test.go test/api_core_trace_test.go test/api_domain_auth_provider_test.go +test/api_domain_test.go test/api_hyper_trace_test.go test/api_hypervisor_hooks_test.go test/api_images_test.go test/api_instances_test.go -test/api_licensing_test.go +test/api_matrix_test.go test/api_models_test.go +test/api_net_connect_test.go test/api_netdump_test.go test/api_projects_test.go test/api_roles_test.go +test/api_snapshot_sharing_test.go test/api_snapshots_test.go test/api_status_test.go test/api_teams_test.go -test/api_trial_requests_test.go test/api_users_test.go +test/api_web_player_test.go utils.go diff --git a/README.md b/README.md index f4338adb..35e70c7a 100644 --- a/README.md +++ b/README.md @@ -5,7 +5,7 @@ REST API to manage your virtual devices. ## Overview This API client was generated by the [OpenAPI Generator](https://openapi-generator.tech) project. By using the [OpenAPI-spec](https://www.openapis.org/) from a remote server, you can easily generate an API client. -- API version: 6.1.0-20784 +- API version: 7.0.0-25053 - Package version: 1.0.0 - Build package: org.openapitools.codegen.languages.GoClientCodegen @@ -77,6 +77,7 @@ All URIs are relative to *https://app.corellium.com/api* Class | Method | HTTP request | Description ------------ | ------------- | ------------- | ------------- +*ActivityApi* | [**V1ActivityList**](docs/ActivityApi.md#v1activitylist) | **Get** /v1/activity | Get resource activities *AgentApi* | [**V1AgentAppReady**](docs/AgentApi.md#v1agentappready) | **Get** /v1/instances/{instanceId}/agent/v1/app/ready | Check if App subsystem is ready *AgentApi* | [**V1AgentDeleteFile**](docs/AgentApi.md#v1agentdeletefile) | **Delete** /v1/instances/{instanceId}/agent/v1/file/device/{filePath} | Delete a File on VM *AgentApi* | [**V1AgentGetFile**](docs/AgentApi.md#v1agentgetfile) | **Get** /v1/instances/{instanceId}/agent/v1/file/device/{filePath} | Download a File from VM @@ -108,6 +109,7 @@ Class | Method | HTTP request | Description *CoreTraceApi* | [**V1ListThreads**](docs/CoreTraceApi.md#v1listthreads) | **Get** /v1/instances/{instanceId}/strace/thread-list | Get Running Threads (CoreTrace) *CoreTraceApi* | [**V1StartCoreTrace**](docs/CoreTraceApi.md#v1startcoretrace) | **Post** /v1/instances/{instanceId}/strace/enable | Start CoreTrace on an instance *CoreTraceApi* | [**V1StopCoreTrace**](docs/CoreTraceApi.md#v1stopcoretrace) | **Post** /v1/instances/{instanceId}/strace/disable | Stop CoreTrace on an instance. +*DomainApi* | [**V1CheckSubdomainExistence**](docs/DomainApi.md#v1checksubdomainexistence) | **Post** /v1/domain/check | Check the existence of a subdomain *DomainAuthProviderApi* | [**V1CreateDomainAuthProvider**](docs/DomainAuthProviderApi.md#v1createdomainauthprovider) | **Post** /v1/domain/{domainId}/auth | Create a new auth provider for a domain *DomainAuthProviderApi* | [**V1DeleteDomainAuthProvider**](docs/DomainAuthProviderApi.md#v1deletedomainauthprovider) | **Delete** /v1/domain/{domainId}/auth/{providerId} | Delete an auth provider from a domain *DomainAuthProviderApi* | [**V1GetDomainAuthProviders**](docs/DomainAuthProviderApi.md#v1getdomainauthproviders) | **Get** /v1/domain/{domainId}/auth | Return all configured auth providers for a domain (including globally configured providers) @@ -137,7 +139,7 @@ Class | Method | HTTP request | Description *InstancesApi* | [**V1CreateInstance**](docs/InstancesApi.md#v1createinstance) | **Post** /v1/instances | Create Instance *InstancesApi* | [**V1CreateSnapshot**](docs/InstancesApi.md#v1createsnapshot) | **Post** /v1/instances/{instanceId}/snapshots | Create Instance Snapshot *InstancesApi* | [**V1DeleteInstance**](docs/InstancesApi.md#v1deleteinstance) | **Delete** /v1/instances/{instanceId} | Remove Instance -*InstancesApi* | [**V1DeleteInstanceSnapshot**](docs/InstancesApi.md#v1deleteinstancesnapshot) | **Delete** /v1/instances/{instanceId}/snapshots/{snapshotId} | Delete a Snapshot +*InstancesApi* | [**V1DeleteInstanceSnapshot**](docs/InstancesApi.md#v1deleteinstancesnapshot) | **Delete** /v1/instances/{instanceId}/snapshots/{snapshotId} | Delete an Instance Snapshot *InstancesApi* | [**V1DisableExposePort**](docs/InstancesApi.md#v1disableexposeport) | **Post** /v1/instances/{instanceId}/exposeport/disable | Disable an exposed port on an instance for device access. *InstancesApi* | [**V1EnableExposePort**](docs/InstancesApi.md#v1enableexposeport) | **Post** /v1/instances/{instanceId}/exposeport/enable | Enable an exposed port on an instance for device access. *InstancesApi* | [**V1ExecuteHyperTraceHooks**](docs/InstancesApi.md#v1executehypertracehooks) | **Post** /v1/instances/{instanceId}/hooks/execute | Execute Hooks on an instance @@ -147,12 +149,11 @@ Class | Method | HTTP request | Description *InstancesApi* | [**V1GetInstanceGpios**](docs/InstancesApi.md#v1getinstancegpios) | **Get** /v1/instances/{instanceId}/gpios | Get Instance GPIOs *InstancesApi* | [**V1GetInstancePanics**](docs/InstancesApi.md#v1getinstancepanics) | **Get** /v1/instances/{instanceId}/panics | Get Panics *InstancesApi* | [**V1GetInstancePeripherals**](docs/InstancesApi.md#v1getinstanceperipherals) | **Get** /v1/instances/{instanceId}/peripherals | Get Instance Peripherals -*InstancesApi* | [**V1GetInstanceRate**](docs/InstancesApi.md#v1getinstancerate) | **Get** /v1/instances/{instanceId}/rate | Get rate information *InstancesApi* | [**V1GetInstanceScreenshot**](docs/InstancesApi.md#v1getinstancescreenshot) | **Get** /v1/instances/{instanceId}/screenshot.{format} | Get Instance Screenshot *InstancesApi* | [**V1GetInstanceSnapshot**](docs/InstancesApi.md#v1getinstancesnapshot) | **Get** /v1/instances/{instanceId}/snapshots/{snapshotId} | Get Instance Snapshot *InstancesApi* | [**V1GetInstanceSnapshots**](docs/InstancesApi.md#v1getinstancesnapshots) | **Get** /v1/instances/{instanceId}/snapshots | Get Instance Snapshots *InstancesApi* | [**V1GetInstances**](docs/InstancesApi.md#v1getinstances) | **Get** /v1/instances | Get Instances -*InstancesApi* | [**V1InstancesInstanceIdMessagePost**](docs/InstancesApi.md#v1instancesinstanceidmessagepost) | **Post** /v1/instances/{instanceId}/message | Receive a message on an iOS vm +*InstancesApi* | [**V1InstancesInstanceIdMessagePost**](docs/InstancesApi.md#v1instancesinstanceidmessagepost) | **Post** /v1/instances/{instanceId}/message | Inject a message into an iOS VM *InstancesApi* | [**V1InstancesInstanceIdNetdumpPcapGet**](docs/InstancesApi.md#v1instancesinstanceidnetdumppcapget) | **Get** /v1/instances/{instanceId}/netdump.pcap | Download a netdump pcap file *InstancesApi* | [**V1InstancesInstanceIdNetworkMonitorPcapGet**](docs/InstancesApi.md#v1instancesinstanceidnetworkmonitorpcapget) | **Get** /v1/instances/{instanceId}/networkMonitor.pcap | Download a Network Monitor pcap file *InstancesApi* | [**V1Kcrange**](docs/InstancesApi.md#v1kcrange) | **Get** /v1/instances/{instanceId}/btrace-kcrange | Get Kernel extension ranges @@ -163,9 +164,9 @@ Class | Method | HTTP request | Description *InstancesApi* | [**V1PauseInstance**](docs/InstancesApi.md#v1pauseinstance) | **Post** /v1/instances/{instanceId}/pause | Pause an Instance *InstancesApi* | [**V1PostInstanceInput**](docs/InstancesApi.md#v1postinstanceinput) | **Post** /v1/instances/{instanceId}/input | Provide Instance Input *InstancesApi* | [**V1RebootInstance**](docs/InstancesApi.md#v1rebootinstance) | **Post** /v1/instances/{instanceId}/reboot | Reboot an Instance -*InstancesApi* | [**V1RenameInstanceSnapshot**](docs/InstancesApi.md#v1renameinstancesnapshot) | **Patch** /v1/instances/{instanceId}/snapshots/{snapshotId} | Rename a Snapshot +*InstancesApi* | [**V1RenameInstanceSnapshot**](docs/InstancesApi.md#v1renameinstancesnapshot) | **Patch** /v1/instances/{instanceId}/snapshots/{snapshotId} | Rename an Instance Snapshot *InstancesApi* | [**V1RestoreBackup**](docs/InstancesApi.md#v1restorebackup) | **Post** /v1/instances/{instanceId}/restoreBackup | Restore backup -*InstancesApi* | [**V1RestoreInstanceSnapshot**](docs/InstancesApi.md#v1restoreinstancesnapshot) | **Post** /v1/instances/{instanceId}/snapshots/{snapshotId}/restore | Restore a Snapshot +*InstancesApi* | [**V1RestoreInstanceSnapshot**](docs/InstancesApi.md#v1restoreinstancesnapshot) | **Post** /v1/instances/{instanceId}/snapshots/{snapshotId}/restore | Restore an Instance Snapshot *InstancesApi* | [**V1RotateInstance**](docs/InstancesApi.md#v1rotateinstance) | **Post** /v1/instances/{instanceId}/rotate | Rotate device to specified orientation *InstancesApi* | [**V1SetInstanceGpios**](docs/InstancesApi.md#v1setinstancegpios) | **Put** /v1/instances/{instanceId}/gpios | Set Instance GPIOs *InstancesApi* | [**V1SetInstancePeripherals**](docs/InstancesApi.md#v1setinstanceperipherals) | **Put** /v1/instances/{instanceId}/peripherals | Set Instance Peripherals @@ -184,9 +185,22 @@ Class | Method | HTTP request | Description *InstancesApi* | [**V1UpgradeInstance**](docs/InstancesApi.md#v1upgradeinstance) | **Post** /v1/instances/{instanceId}/upgrade | Upgrade iOS version *InstancesApi* | [**V2GetInstanceQuickConnectCommand**](docs/InstancesApi.md#v2getinstancequickconnectcommand) | **Get** /v2/instances/{instanceId}/quickConnectCommand | Recommended SSH Command for Quick Connect *InstancesApi* | [**V2GetInstanceState**](docs/InstancesApi.md#v2getinstancestate) | **Get** /v2/instances/{instanceId}/state | Get state of Instance -*LicensingApi* | [**V1GetSupportedFeatures**](docs/LicensingApi.md#v1getsupportedfeatures) | **Get** /v1/license/features | Get all supported features for user +*MatrixApi* | [**CreateAssessment**](docs/MatrixApi.md#createassessment) | **Post** /v1/services/matrix/{instanceId}/assessments | Create assessment +*MatrixApi* | [**DeleteAssessment**](docs/MatrixApi.md#deleteassessment) | **Delete** /v1/services/matrix/{instanceId}/assessments/{assessmentId} | Delete assessment +*MatrixApi* | [**DownloadReport**](docs/MatrixApi.md#downloadreport) | **Get** /v1/services/matrix/{instanceId}/assessments/{assessmentId}/download | Download report +*MatrixApi* | [**GetAssessmentById**](docs/MatrixApi.md#getassessmentbyid) | **Get** /v1/services/matrix/{instanceId}/assessments/{assessmentId} | Get assessment by ID +*MatrixApi* | [**GetAssessmentsByInstanceId**](docs/MatrixApi.md#getassessmentsbyinstanceid) | **Get** /v1/services/matrix/{instanceId}/instances/{instanceId}/assessments | Get assessments by instanceId +*MatrixApi* | [**RunTests**](docs/MatrixApi.md#runtests) | **Post** /v1/services/matrix/{instanceId}/assessments/{assessmentId}/test | Update assessment state and execute MATRIX tests +*MatrixApi* | [**StartMonitoring**](docs/MatrixApi.md#startmonitoring) | **Post** /v1/services/matrix/{instanceId}/assessments/{assessmentId}/start | Update assessment state and begin device monitoring +*MatrixApi* | [**StopMonitoring**](docs/MatrixApi.md#stopmonitoring) | **Post** /v1/services/matrix/{instanceId}/assessments/{assessmentId}/stop | Update assessment state and stop device monitoring *ModelsApi* | [**V1GetModelSoftware**](docs/ModelsApi.md#v1getmodelsoftware) | **Get** /v1/models/{model}/software | Get Software for Model *ModelsApi* | [**V1GetModels**](docs/ModelsApi.md#v1getmodels) | **Get** /v1/models | Get Supported Models +*NetConnectApi* | [**V1CreateNetworkConnection**](docs/NetConnectApi.md#v1createnetworkconnection) | **Post** /v1/network/connections | Create a new Network Connection +*NetConnectApi* | [**V1DeleteNetworkConnection**](docs/NetConnectApi.md#v1deletenetworkconnection) | **Delete** /v1/network/connections/{id} | Delete an existing Network Connection +*NetConnectApi* | [**V1ListNetworkConnections**](docs/NetConnectApi.md#v1listnetworkconnections) | **Get** /v1/network/connections | List available network connections +*NetConnectApi* | [**V1ListNetworkProviders**](docs/NetConnectApi.md#v1listnetworkproviders) | **Get** /v1/network/providers | List available network providers +*NetConnectApi* | [**V1PartialUpdateNetworkConnection**](docs/NetConnectApi.md#v1partialupdatenetworkconnection) | **Patch** /v1/network/connections/{id} | Update Network Connection (partial) +*NetConnectApi* | [**V1UpdateNetworkConnection**](docs/NetConnectApi.md#v1updatenetworkconnection) | **Put** /v1/network/connections/{id} | Update Network Connection *NetdumpApi* | [**V1InstancesInstanceIdNetdumpPcapGet**](docs/NetdumpApi.md#v1instancesinstanceidnetdumppcapget) | **Get** /v1/instances/{instanceId}/netdump.pcap | Download a netdump pcap file *NetdumpApi* | [**V1StartNetdump**](docs/NetdumpApi.md#v1startnetdump) | **Post** /v1/instances/{instanceId}/netdump/enable | Start Enhanced Network Monitor on an instance. *NetdumpApi* | [**V1StopNetdump**](docs/NetdumpApi.md#v1stopnetdump) | **Post** /v1/instances/{instanceId}/netdump/disable | Stop Enhanced Network Monitor on an instance. @@ -206,17 +220,19 @@ Class | Method | HTTP request | Description *RolesApi* | [**V1RemoveTeamRoleFromProject**](docs/RolesApi.md#v1removeteamrolefromproject) | **Delete** /v1/roles/projects/{projectId}/teams/{teamId}/roles/{roleId} | Remove team role from project *RolesApi* | [**V1RemoveUserRoleFromProject**](docs/RolesApi.md#v1removeuserrolefromproject) | **Delete** /v1/roles/projects/{projectId}/users/{userId}/roles/{roleId} | Remove user role from project *RolesApi* | [**V1Roles**](docs/RolesApi.md#v1roles) | **Get** /v1/roles | Get all roles +*SnapshotSharingApi* | [**V1AcceptSharedSnapshot**](docs/SnapshotSharingApi.md#v1acceptsharedsnapshot) | **Post** /v1/snapshots/accept | Accept a snapshot shared with you +*SnapshotSharingApi* | [**V1DeleteSnapshotPermissions**](docs/SnapshotSharingApi.md#v1deletesnapshotpermissions) | **Delete** /v1/snapshots/{snapshotId}/permissions | Delete member(s) +*SnapshotSharingApi* | [**V1GetSharedSnapshots**](docs/SnapshotSharingApi.md#v1getsharedsnapshots) | **Get** /v1/snapshots/shared | Fetch shared snapshots +*SnapshotSharingApi* | [**V1SetSnapshotPermissions**](docs/SnapshotSharingApi.md#v1setsnapshotpermissions) | **Post** /v1/snapshots/{snapshotId}/permissions | Set member list +*SnapshotSharingApi* | [**V1ShareSnapshot**](docs/SnapshotSharingApi.md#v1sharesnapshot) | **Post** /v1/snapshots/{snapshotId}/share | Share snapshot *SnapshotsApi* | [**V1CreateSnapshot**](docs/SnapshotsApi.md#v1createsnapshot) | **Post** /v1/instances/{instanceId}/snapshots | Create Instance Snapshot -*SnapshotsApi* | [**V1DeleteInstanceSnapshot**](docs/SnapshotsApi.md#v1deleteinstancesnapshot) | **Delete** /v1/instances/{instanceId}/snapshots/{snapshotId} | Delete a Snapshot +*SnapshotsApi* | [**V1DeleteInstanceSnapshot**](docs/SnapshotsApi.md#v1deleteinstancesnapshot) | **Delete** /v1/instances/{instanceId}/snapshots/{snapshotId} | Delete an Instance Snapshot *SnapshotsApi* | [**V1DeleteSnapshot**](docs/SnapshotsApi.md#v1deletesnapshot) | **Delete** /v1/snapshots/{snapshotId} | Delete a Snapshot -*SnapshotsApi* | [**V1DeleteSnapshotPermissions**](docs/SnapshotsApi.md#v1deletesnapshotpermissions) | **Delete** /v1/snapshots/{snapshotId}/permissions | Remove a user from the list of users who have access to the snapshot *SnapshotsApi* | [**V1GetInstanceSnapshot**](docs/SnapshotsApi.md#v1getinstancesnapshot) | **Get** /v1/instances/{instanceId}/snapshots/{snapshotId} | Get Instance Snapshot *SnapshotsApi* | [**V1GetInstanceSnapshots**](docs/SnapshotsApi.md#v1getinstancesnapshots) | **Get** /v1/instances/{instanceId}/snapshots | Get Instance Snapshots -*SnapshotsApi* | [**V1GetSharedSnapshots**](docs/SnapshotsApi.md#v1getsharedsnapshots) | **Get** /v1/snapshots | Fetch snapshots shared with and shared by the requesting user *SnapshotsApi* | [**V1GetSnapshot**](docs/SnapshotsApi.md#v1getsnapshot) | **Get** /v1/snapshots/{snapshotId} | Get Snapshot -*SnapshotsApi* | [**V1RenameInstanceSnapshot**](docs/SnapshotsApi.md#v1renameinstancesnapshot) | **Patch** /v1/instances/{instanceId}/snapshots/{snapshotId} | Rename a Snapshot -*SnapshotsApi* | [**V1RestoreInstanceSnapshot**](docs/SnapshotsApi.md#v1restoreinstancesnapshot) | **Post** /v1/instances/{instanceId}/snapshots/{snapshotId}/restore | Restore a Snapshot -*SnapshotsApi* | [**V1SetSnapshotPermissions**](docs/SnapshotsApi.md#v1setsnapshotpermissions) | **Post** /v1/snapshots/{snapshotId}/permissions | Add a user to the list of users who have access to the snapshot +*SnapshotsApi* | [**V1RenameInstanceSnapshot**](docs/SnapshotsApi.md#v1renameinstancesnapshot) | **Patch** /v1/instances/{instanceId}/snapshots/{snapshotId} | Rename an Instance Snapshot +*SnapshotsApi* | [**V1RestoreInstanceSnapshot**](docs/SnapshotsApi.md#v1restoreinstancesnapshot) | **Post** /v1/instances/{instanceId}/snapshots/{snapshotId}/restore | Restore an Instance Snapshot *SnapshotsApi* | [**V1SnapshotRename**](docs/SnapshotsApi.md#v1snapshotrename) | **Patch** /v1/snapshots/{snapshotId} | Rename a Snapshot *StatusApi* | [**V1Ready**](docs/StatusApi.md#v1ready) | **Get** /v1/ready | API Status *TeamsApi* | [**V1AddUserToTeam**](docs/TeamsApi.md#v1addusertoteam) | **Put** /v1/teams/{teamId}/users/{userId} | Add user to team @@ -225,7 +241,6 @@ Class | Method | HTTP request | Description *TeamsApi* | [**V1TeamCreate**](docs/TeamsApi.md#v1teamcreate) | **Post** /v1/teams | Create team *TeamsApi* | [**V1TeamDelete**](docs/TeamsApi.md#v1teamdelete) | **Delete** /v1/teams/{teamId} | Delete team *TeamsApi* | [**V1Teams**](docs/TeamsApi.md#v1teams) | **Get** /v1/teams | Get teams -*TrialRequestsApi* | [**V1CreateSubscriberInvite**](docs/TrialRequestsApi.md#v1createsubscriberinvite) | **Post** /v1/billing/invites | Create Subscriber Invite *UsersApi* | [**V1CreateUser**](docs/UsersApi.md#v1createuser) | **Post** /v1/users | Create User *UsersApi* | [**V1DeleteUser**](docs/UsersApi.md#v1deleteuser) | **Delete** /v1/users/{userId} | Delete User *UsersApi* | [**V1GetResetLinkInfo**](docs/UsersApi.md#v1getresetlinkinfo) | **Get** /v1/users/reset-link-info | Send Password Reset Link Info @@ -235,10 +250,18 @@ Class | Method | HTTP request | Description *UsersApi* | [**V1UserAgreeTerms**](docs/UsersApi.md#v1useragreeterms) | **Post** /v1/users/agree | Consent to the current terms and conditions *UsersApi* | [**V1UsersChangePasswordPost**](docs/UsersApi.md#v1userschangepasswordpost) | **Post** /v1/users/change-password | Change User Password *UsersApi* | [**V1UsersLogin**](docs/UsersApi.md#v1userslogin) | **Post** /v1/users/login | Log In +*WebPlayerApi* | [**V1WebPlayerAllowedDomains**](docs/WebPlayerApi.md#v1webplayeralloweddomains) | **Get** /v1/webplayer/allowedDomains | Retrieve the list of allowed domains for all Webplayer sessions +*WebPlayerApi* | [**V1WebPlayerCreateSession**](docs/WebPlayerApi.md#v1webplayercreatesession) | **Post** /v1/webplayer | Create a new Webplayer Session +*WebPlayerApi* | [**V1WebPlayerDestroySession**](docs/WebPlayerApi.md#v1webplayerdestroysession) | **Delete** /v1/webplayer/{sessionId} | Tear down a Webplayer Session +*WebPlayerApi* | [**V1WebPlayerListSessions**](docs/WebPlayerApi.md#v1webplayerlistsessions) | **Get** /v1/webplayer | List all Webplayer sessions +*WebPlayerApi* | [**V1WebPlayerSessionInfo**](docs/WebPlayerApi.md#v1webplayersessioninfo) | **Get** /v1/webplayer/{sessionId} | Retrieve Webplayer Session Information ## Documentation For Models + - [ActivityEntry](docs/ActivityEntry.md) + - [ActivityList](docs/ActivityList.md) + - [ActivityRequest](docs/ActivityRequest.md) - [Address](docs/Address.md) - [AgentApp](docs/AgentApp.md) - [AgentAppReadyResponse](docs/AgentAppReadyResponse.md) @@ -259,17 +282,21 @@ Class | Method | HTTP request | Description - [ApiInternalConsistencyError](docs/ApiInternalConsistencyError.md) - [ApiNotFoundError](docs/ApiNotFoundError.md) - [ApiToken](docs/ApiToken.md) + - [Assessment](docs/Assessment.md) + - [AssessmentIdStatus](docs/AssessmentIdStatus.md) - [AuthProvider](docs/AuthProvider.md) - [Bit](docs/Bit.md) - [BtraceEnableOptions](docs/BtraceEnableOptions.md) - [Button](docs/Button.md) + - [CheckSubdomainResponse](docs/CheckSubdomainResponse.md) - [ConfigResponse](docs/ConfigResponse.md) - [ConfigResponseMaintenance](docs/ConfigResponseMaintenance.md) - [CouponOptions](docs/CouponOptions.md) + - [CreateAssessmentDto](docs/CreateAssessmentDto.md) + - [CreateNetworkConnectionOptions](docs/CreateNetworkConnectionOptions.md) - [CreateTeam](docs/CreateTeam.md) - [CreatedBy](docs/CreatedBy.md) - [Credentials](docs/Credentials.md) - - [DeleteSnapshotPermissionsRequestPayload](docs/DeleteSnapshotPermissionsRequestPayload.md) - [DomainAuthProviderRequest](docs/DomainAuthProviderRequest.md) - [DomainAuthProviderResponse](docs/DomainAuthProviderResponse.md) - [DomainOptions](docs/DomainOptions.md) @@ -277,11 +304,13 @@ Class | Method | HTTP request | Description - [Features](docs/Features.md) - [FileChanges](docs/FileChanges.md) - [Firmware](docs/Firmware.md) + - [GetAssessmentsByInstanceId500Response](docs/GetAssessmentsByInstanceId500Response.md) - [GpioStateDefinition](docs/GpioStateDefinition.md) - [GpiosState](docs/GpiosState.md) - [GrantTrialRequestResponse](docs/GrantTrialRequestResponse.md) - [Hook](docs/Hook.md) - [Image](docs/Image.md) + - [InputResponse](docs/InputResponse.md) - [Instance](docs/Instance.md) - [InstanceAgentState](docs/InstanceAgentState.md) - [InstanceBootOptions](docs/InstanceBootOptions.md) @@ -310,32 +339,40 @@ Class | Method | HTTP request | Description - [Model](docs/Model.md) - [ModelSoftware](docs/ModelSoftware.md) - [NetdumpFilter](docs/NetdumpFilter.md) + - [NetworkConnection](docs/NetworkConnection.md) + - [NetworkConnectionOffsetPaginationResult](docs/NetworkConnectionOffsetPaginationResult.md) + - [NetworkConnectionProvider](docs/NetworkConnectionProvider.md) + - [NetworkConnectionProviderOffsetPaginationResult](docs/NetworkConnectionProviderOffsetPaginationResult.md) - [OpenIDConfig](docs/OpenIDConfig.md) - [PasswordChangeBody](docs/PasswordChangeBody.md) - [PasswordResetBody](docs/PasswordResetBody.md) - [PatchInstanceOptions](docs/PatchInstanceOptions.md) - [PeripheralsData](docs/PeripheralsData.md) - [Plan](docs/Plan.md) - - [PostSnapshotPermissionsRequestPayload](docs/PostSnapshotPermissionsRequestPayload.md) + - [PostShareSnapshotRequestPayload](docs/PostShareSnapshotRequestPayload.md) - [Project](docs/Project.md) - [ProjectKey](docs/ProjectKey.md) - [ProjectQuota](docs/ProjectQuota.md) - [ProjectSettings](docs/ProjectSettings.md) - [ProjectUsage](docs/ProjectUsage.md) - [ProxyConfig](docs/ProxyConfig.md) - - [RateInfo](docs/RateInfo.md) - [ResetLinkBody](docs/ResetLinkBody.md) - [Role](docs/Role.md) - [RotateBody](docs/RotateBody.md) + - [SharedSnapshotsInfo](docs/SharedSnapshotsInfo.md) - [Snapshot](docs/Snapshot.md) - [SnapshotCreationOptions](docs/SnapshotCreationOptions.md) - - [SnapshotPermissions](docs/SnapshotPermissions.md) + - [SnapshotMember](docs/SnapshotMember.md) + - [SnapshotOwner](docs/SnapshotOwner.md) + - [SnapshotPermissionsRequestPayload](docs/SnapshotPermissionsRequestPayload.md) - [SnapshotSharing](docs/SnapshotSharing.md) + - [SnapshotSharingPermissions](docs/SnapshotSharingPermissions.md) - [SnapshotStatus](docs/SnapshotStatus.md) - - [SnapshotUser](docs/SnapshotUser.md) + - [SslsplitFilter](docs/SslsplitFilter.md) - [SubscriberInvite](docs/SubscriberInvite.md) - [Team](docs/Team.md) - [TeamCreate](docs/TeamCreate.md) + - [TestAssessmentDto](docs/TestAssessmentDto.md) - [TextInput](docs/TextInput.md) - [Token](docs/Token.md) - [TouchCurveInput](docs/TouchCurveInput.md) @@ -344,9 +381,13 @@ Class | Method | HTTP request | Description - [TrialExtension](docs/TrialExtension.md) - [TrialRequestMetadata](docs/TrialRequestMetadata.md) - [TrialRequestOptions](docs/TrialRequestOptions.md) + - [UpdateAssessmentDto](docs/UpdateAssessmentDto.md) - [UpdateExtension](docs/UpdateExtension.md) + - [UpdateNetworkConnectionOptions](docs/UpdateNetworkConnectionOptions.md) - [User](docs/User.md) - [UserError](docs/UserError.md) + - [UserSnapshots](docs/UserSnapshots.md) + - [V1CheckSubdomainExistenceParameters](docs/V1CheckSubdomainExistenceParameters.md) - [V1CreateHookParameters](docs/V1CreateHookParameters.md) - [V1LoadExtensionParameters](docs/V1LoadExtensionParameters.md) - [V1SetStateBody](docs/V1SetStateBody.md) diff --git a/api/openapi.yaml b/api/openapi.yaml index f9f35478..d8a3874e 100644 --- a/api/openapi.yaml +++ b/api/openapi.yaml @@ -1,9 +1,9 @@ -openapi: 3.0.0 +openapi: 3.0.3 info: description: REST API to manage your virtual devices. termsOfService: https://www.corellium.com/legal/terms title: Corellium API - version: 6.1.0-20784 + version: 7.0.0-25053 servers: - description: "" url: "https://{serverName}/api" @@ -13,6 +13,8 @@ servers: security: - BearerAuth: [] tags: +- description: "" + name: Activity - description: "" name: Agent - description: "" @@ -41,10 +43,10 @@ tags: name: Instances - description: "" name: Invites -- description: "" - name: Licensing - description: "" name: Models +- description: "" + name: NetConnect - description: "" name: Netdump - description: "" @@ -53,6 +55,8 @@ tags: name: Roles - description: "" name: Services +- description: "" + name: SnapshotSharing - description: "" name: Snapshots - description: "" @@ -76,6 +80,44 @@ tags: - description: "" name: noArm paths: + /v1/activity: + get: + deprecated: false + operationId: v1ActivityList + parameters: + - deprecated: false + description: "" + explode: true + in: query + name: request + required: false + schema: + $ref: '#/components/schemas/ActivityRequest' + style: form + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/ActivityList' + description: Success + "400": + content: + application/json: + schema: + $ref: '#/components/schemas/UserError' + description: Bad Request + "403": + content: + application/json: + schema: + $ref: '#/components/schemas/ApiError' + description: Forbidden + security: + - BearerAuth: [] + summary: Get resource activities + tags: + - Activity /v1/auth/login: post: deprecated: false @@ -132,59 +174,6 @@ paths: summary: Log In tags: - Authentication - /v1/billing/invites: - post: - deprecated: false - description: Create Subscriber Invite - operationId: v1CreateSubscriberInvite - parameters: [] - requestBody: - content: - application/json: - examples: - example1: - summary: payload example - value: |2- - { - "coupon_options": { - "type": "percent", - "amount": 100, - "used": false - }, - "plan": { - "licenseType": "individual-usage", - "cores": 6 - }, - "trial": { - "duration": 100 - }, - "name": "John", - "email": "john.doe@example.com", - "coupon_code": "1I454WY14V4QV9", - "domain": null, - "aggregate": "app.example.com", - "use_by": null, - "active": true, - "reusable": false, - "createdAt": "2022-05-06T02:39:23.000Z", - "updatedAt": "2022-05-06T02:39:23.000Z" - } - schema: - $ref: '#/components/schemas/SubscriberInvite' - description: Payload of Subscriber Invite - required: true - responses: - "200": - content: - application/json: - schema: - $ref: '#/components/schemas/SubscriberInvite' - description: Success - security: - - BearerAuth: [] - summary: Create Subscriber Invite - tags: - - TrialRequests /v1/config: get: deprecated: false @@ -458,6 +447,48 @@ paths: summary: Create a new auth provider for a domain tags: - DomainAuthProvider + /v1/domain/check: + post: + deprecated: false + operationId: v1CheckSubdomainExistence + parameters: [] + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/v1CheckSubdomainExistenceParameters' + description: application/json + required: true + responses: + "200": + content: + application/json: + examples: + example1: + summary: OK + value: + available: true + schema: + $ref: '#/components/schemas/CheckSubdomainResponse' + description: OK + "403": + content: + application/json: + examples: + example2: + summary: Forbidden + value: + error: Invalid or missing authorization token + errorID: PermissionDenied + originalError: Invalid or missing authorization token + schema: + $ref: '#/components/schemas/ApiError' + description: Forbidden + security: + - BearerAuth: [] + summary: Check the existence of a subdomain + tags: + - Domain /v1/instances/{instanceId}/hooks: get: deprecated: false @@ -2914,41 +2945,6 @@ paths: summary: Get state of Instance tags: - Instances - /v1/instances/{instanceId}/rate: - get: - deprecated: false - description: "Returns the cost, in microcents, for the instance in the on and\ - \ off state. Instances are charged $0.25 / day for storage (off) and $0.25\ - \ per core per hour (on)." - operationId: v1GetInstanceRate - parameters: - - deprecated: false - description: Instance ID - uuid - explode: false - in: path - name: instanceId - required: true - schema: - type: string - style: simple - responses: - "200": - content: - application/json: - examples: - example1: - summary: Rate Information - value: - onRateMicrocents: 13889 - offRateMicrocents: 289 - schema: - $ref: '#/components/schemas/RateInfo' - description: Rate Information - security: - - BearerAuth: [] - summary: Get rate information - tags: - - Instances /v1/instances/{instanceId}/gpios: get: deprecated: false @@ -3589,26 +3585,6 @@ paths: } ] example3: - summary: Two finger swipe - value: |- - [ - { - "startButtons": ["finger"], - "start": [ - [300, 600], [350, 650] - ], - "bezierPoints": [ - [ [350, 700], [400, 750] ], - [ [375, 750], [425, 800] ] - ], - "end": [ - [400, 650], [450, 700] - ], - "endButtons": [], - "duration": 200 - } - ] - example4: summary: "Type Hello, world" value: |- [ @@ -3616,7 +3592,7 @@ paths: "text": "Hello, world" } ] - example5: + example4: summary: "Touch point then type \"Hello, world\"" value: |- [ @@ -3635,7 +3611,7 @@ paths: "text": "Hello, world" } ] - example6: + example5: summary: Example of pressing/releasing the fingerprint sensor value: |- [ @@ -3657,14 +3633,19 @@ paths: "200": content: application/json: + examples: + example1: + summary: ETA + value: + eta: "100" schema: - type: integer + $ref: '#/components/schemas/InputResponse' description: ETA of input completion in milliseconds "403": content: application/json: examples: - example1: + example2: summary: Forbidden value: error: Invalid or missing authorization token @@ -3677,7 +3658,7 @@ paths: content: application/json: examples: - example2: + example3: summary: Not Found value: error: Instance with instanceId=3a28e565-cf46-4706-86e7-e3af6b33ae0dd @@ -4371,6 +4352,13 @@ paths: schema: type: string style: simple + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/SslsplitFilter' + description: "" + required: false responses: "204": description: No Content @@ -4599,6 +4587,11 @@ paths: /v1/instances/{instanceId}/message: post: deprecated: false + description: |- + Given a message and source phone number, place this message as an incoming SMS message on the iOS VM. + For advanced usage, a raw message of bytes may be sent. In this case, the parameter should provide hex encoded bytes + (0x00 0x11 0x22 0x33 in the example below) which are sent verbatim. + The user must ensure that the body is the correct format for the underlying device stack. parameters: - deprecated: false description: Instance ID - uuid @@ -4609,6 +4602,27 @@ paths: schema: type: string style: simple + requestBody: + content: + application/json: + examples: + example1: + summary: Text Message Body + value: |- + { + "number": "+19997776666", + "message": "the SMS message body goes here" + } + example2: + summary: Raw Message Body + value: |- + { + "raw": "00112233" + } + schema: + type: object + description: Message data + required: true responses: "204": description: No Content @@ -4626,7 +4640,7 @@ paths: description: Forbidden security: - BearerAuth: [] - summary: Receive a message on an iOS vm + summary: Inject a message into an iOS VM tags: - Instances /v2/instances/{instanceId}/quickConnectCommand: @@ -4924,7 +4938,7 @@ paths: description: Not Found security: - BearerAuth: [] - summary: Delete a Snapshot + summary: Delete an Instance Snapshot tags: - Snapshots - Instances @@ -5087,7 +5101,7 @@ paths: description: Not Found security: - BearerAuth: [] - summary: Rename a Snapshot + summary: Rename an Instance Snapshot tags: - Snapshots - Instances @@ -5148,49 +5162,10 @@ paths: description: Not Found security: - BearerAuth: [] - summary: Restore a Snapshot + summary: Restore an Instance Snapshot tags: - Snapshots - Instances - /v1/license/features: - get: - deprecated: false - operationId: v1GetSupportedFeatures - parameters: [] - responses: - "200": - content: - application/json: - examples: - example1: - summary: application/json - value: - - RestoreBackup - - Netdump - - OsUpdate - schema: - items: - type: string - type: array - description: application/json - "403": - content: - application/json: - examples: - example2: - summary: Forbidden - value: - error: Invalid or missing authorization token - errorID: PermissionDenied - originalError: Invalid or missing authorization token - schema: - $ref: '#/components/schemas/ApiError' - description: Forbidden - security: - - BearerAuth: [] - summary: Get all supported features for user - tags: - - Licensing /v1/models: get: deprecated: false @@ -5646,6 +5621,19 @@ paths: responses: "204": description: Success + "400": + content: + application/json: + examples: + example2: + summary: Validation Error + value: + errorID: ValidationError + field: settings.dhcp + error: DHCP must be boolean true or false in settings + schema: + $ref: '#/components/schemas/ApiError' + description: Validation Error "403": content: application/json: @@ -6202,10 +6190,11 @@ paths: summary: Add team role to project tags: - Roles - /v1/snapshots/{snapshotId}/permissions: - delete: + /v1/snapshots/{snapshotId}/share: + post: deprecated: false - operationId: v1DeleteSnapshotPermissions + description: Share a snapshot + operationId: v1ShareSnapshot parameters: - deprecated: false description: Snapshot ID - uuid @@ -6224,11 +6213,11 @@ paths: summary: application/json value: |- { - "email": "jcalhoun@meta.com", - "userId": 'cef72e47-68af-4d3e-b122-01094216a0ce' + "sharingType": "passwordPublicLink", + "password": "password" } schema: - $ref: '#/components/schemas/DeleteSnapshotPermissionsRequestPayload' + $ref: '#/components/schemas/PostShareSnapshotRequestPayload' description: "" required: true responses: @@ -6251,22 +6240,17 @@ paths: "fresh": true, "live": false, "local": true + "model": "iPhone 12 Pro Max", "sharing": { - "users": [ - { - "email": "jcalhoun@meta.com", - "inviteSent": true, - "timestamp": "2024-01-16 20:18:36", - "userId": "0cb421a3-cbfb-4366-a460-1442627e71c5", - "label": "Jon Calhoun" - }, - { - "email": "newuser@meta.com", - "inviteSent": false, - "timestamp": "2024-01-16 20:18:36" - "userId": null, - } - ] + "accessCode": "1S33IA5G71YJ5", + "sharingType": 'passwordPublicLink', + "password": 'password', + "sharedOn": 1648841622000, + "sharedBy": { + "name": "Linus Torvalds", + "email": "torvalds@osdl.org" + } + } } schema: $ref: '#/components/schemas/Snapshot' @@ -6300,24 +6284,16 @@ paths: schema: $ref: '#/components/schemas/UserError' description: Not Found - security: - - BearerAuth: [] - summary: Remove a user from the list of users who have access to the snapshot + security: [] + summary: Share snapshot tags: - - Snapshots + - SnapshotSharing + /v1/snapshots/accept: post: deprecated: false - operationId: v1SetSnapshotPermissions - parameters: - - deprecated: false - description: Snapshot ID - uuid - explode: false - in: path - name: snapshotId - required: true - schema: - type: string - style: simple + description: Accept a snapshot shared with you + operationId: v1AcceptSharedSnapshot + parameters: [] requestBody: content: application/json: @@ -6326,11 +6302,11 @@ paths: summary: application/json value: |- { - "email": "jcalhoun@meta.com", - "userId": 'cef72e47-68af-4d3e-b122-01094216a0ce' + "accessCode": "1S33IA5G71YJ5", + "password": "password" } schema: - $ref: '#/components/schemas/PostSnapshotPermissionsRequestPayload' + $ref: '#/components/schemas/PostShareSnapshotRequestPayload' description: "" required: true responses: @@ -6353,22 +6329,17 @@ paths: "fresh": true, "live": false, "local": true + "model": "iPhone 12 Pro Max", "sharing": { - "users": [ - { - "email": "jcalhoun@meta.com", - "inviteSentAt": "2024-01-16 21:00:00", - "timestamp": "2024-01-16 20:18:36", - "userId": "0cb421a3-cbfb-4366-a460-1442627e71c5", - "label": "Jon Calhoun" - }, - { - "email": "newuser@meta.com", - "inviteSentAt": null, - "timestamp": "2024-01-16 20:18:36" - "userId": null, - } - ] + "accessCode": "1S33IA5G71YJ5", + "sharingType": 'passwordPublicLink', + "password": 'password', + "sharedOn": 1648841622000, + "sharedBy": { + "name": "Linus Torvalds", + "email": "torvalds@osdl.org" + } + } } schema: $ref: '#/components/schemas/Snapshot' @@ -6402,15 +6373,16 @@ paths: schema: $ref: '#/components/schemas/UserError' description: Not Found - security: - - BearerAuth: [] - summary: Add a user to the list of users who have access to the snapshot + security: [] + summary: Accept a snapshot shared with you tags: - - Snapshots - /v1/snapshots/{snapshotId}: + - SnapshotSharing + /v1/snapshots/{snapshotId}/permissions: delete: deprecated: false - operationId: v1DeleteSnapshot + description: Deletes one or more members from the list of members who have access + to the snapshot + operationId: v1DeleteSnapshotPermissions parameters: - deprecated: false description: Snapshot ID - uuid @@ -6421,14 +6393,78 @@ paths: schema: type: string style: simple - responses: - "204": - description: Accepted - "403": + requestBody: + content: + application/json: + examples: + example1: + summary: application/json + value: |- + { + "members": [ + "newuser1@domain.com", + "newuser2@domain.com" + ] + } + schema: + $ref: '#/components/schemas/SnapshotPermissionsRequestPayload' + description: "" + required: true + responses: + "200": content: application/json: examples: example1: + summary: application/json + value: |- + { + "id": "c96b1f17-d694-45a9-af68-0a08f9c6098b", + "name": "Initial Snapshot - Thu Mar 31 2022 23:56:32 GMT+0000 (Coordinated Universal Time)", + "instance": "1008acc6-4886-41c3-9373-196114993a96", + "status": { + "task": "none", + "created": true + }, + "date": 1648770996000, + "fresh": true, + "live": false, + "local": true + "model": "iPhone 12 Pro Max", + "sharing": { + "accessCode": "1S33IA5G71YJ5", + "sharingType": 'emailInvite', + "password": null, + "sharedOn": 1648841622000, + "sharedBy": { + "name": "Linus Torvalds", + "email": "torvalds@osdl.org" + } + "members": [ + { + "email": "newuser1@domain.com", + "inviteSentAt": 1648841622000, + "sharedOn": 1648841622000, + "userId": "0cb421a3-cbfb-4366-a460-1442627e71c5", + "label": "Ben Franklin" + }, + { + "email": "newuser2@domain.com", + "inviteSentAt": null, + "sharedOn": 1648841622000, + "userId": null, + } + ] + } + } + schema: + $ref: '#/components/schemas/Snapshot' + description: application/json + "403": + content: + application/json: + examples: + example2: summary: Forbidden value: error: Invalid or missing authorization token @@ -6441,26 +6477,27 @@ paths: content: application/json: examples: - example2: + example3: summary: Not Found value: - error: Instance with instanceId=3a28e565-cf46-4706-86e7-e3af6b33ae0dd + error: Snapshot with snapshotID=3a28e565-cf46-4706-86e7-e3af6b33ae0dd not found errorID: NotFound - name: Instance + name: Snapshot params: - instanceId: 3a28e565-cf46-4706-86e7-e3af6b33ae0dd + SnapshotId: 3a28e565-cf46-4706-86e7-e3af6b33ae0dd schema: $ref: '#/components/schemas/UserError' description: Not Found security: - BearerAuth: [] - summary: Delete a Snapshot + summary: Delete member(s) tags: - - Snapshots - get: + - SnapshotSharing + post: deprecated: false - operationId: v1GetSnapshot + description: Sets the list of members who have access to the snapshot + operationId: v1SetSnapshotPermissions parameters: - deprecated: false description: Snapshot ID - uuid @@ -6471,6 +6508,23 @@ paths: schema: type: string style: simple + requestBody: + content: + application/json: + examples: + example1: + summary: application/json + value: |- + { + "members": [ + "newuser1@domain.com", + "newuser2@domain.com" + ] + } + schema: + $ref: '#/components/schemas/SnapshotPermissionsRequestPayload' + description: "" + required: true responses: "200": content: @@ -6478,18 +6532,46 @@ paths: examples: example1: summary: application/json - value: - id: c96b1f17-d694-45a9-af68-0a08f9c6098b - name: Initial Snapshot - Thu Mar 31 2022 23:56:32 GMT+0000 (Coordinated - Universal Time) - instance: 1008acc6-4886-41c3-9373-196114993a96 - status: - task: none - created: true - date: 1648770996000 - fresh: true - live: false - local: true + value: |- + { + "id": "c96b1f17-d694-45a9-af68-0a08f9c6098b", + "name": "Initial Snapshot - Thu Mar 31 2022 23:56:32 GMT+0000 (Coordinated Universal Time)", + "instance": "1008acc6-4886-41c3-9373-196114993a96", + "status": { + "task": "none", + "created": true + }, + "date": 1648770996000, + "fresh": true, + "live": false, + "local": true + "model": "iPhone 12 Pro Max", + "sharing": { + "accessCode": "1S33IA5G71YJ5", + "sharingType": 'emailInvite', + "password": null, + "sharedOn": 1648841622000, + "sharedBy": { + "name": "Linus Torvalds", + "email": "torvalds@osdl.org" + } + "members": [ + { + "email": "newuser1@domain.com", + "inviteSentAt": 1648841622000, + "sharedOn": 1648841622000, + "userId": "0cb421a3-cbfb-4366-a460-1442627e71c5", + "label": "Ben Franklin" + }, + { + "email": "newuser2@domain.com", + "inviteSentAt": null, + "sharedOn": 1648841622000, + "userId": null, + } + ] + } + } schema: $ref: '#/components/schemas/Snapshot' description: application/json @@ -6513,40 +6595,26 @@ paths: example3: summary: Not Found value: - error: Instance with instanceId=3a28e565-cf46-4706-86e7-e3af6b33ae0dd + error: Snapshot with snapshotID=3a28e565-cf46-4706-86e7-e3af6b33ae0dd not found errorID: NotFound - name: Instance + name: Snapshot params: - instanceId: 3a28e565-cf46-4706-86e7-e3af6b33ae0dd + SnapshotId: 3a28e565-cf46-4706-86e7-e3af6b33ae0dd schema: $ref: '#/components/schemas/UserError' description: Not Found security: - BearerAuth: [] - summary: Get Snapshot + summary: Set member list tags: - - Snapshots - patch: + - SnapshotSharing + /v1/snapshots/shared: + get: deprecated: false - operationId: v1SnapshotRename - parameters: - - deprecated: false - description: Snapshot ID - uuid - explode: false - in: path - name: snapshotId - required: true - schema: - type: string - style: simple - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/SnapshotCreationOptions' - description: "" - required: true + description: Fetch snapshots shared with and shared by the requesting user + operationId: v1GetSharedSnapshots + parameters: [] responses: "200": content: @@ -6555,17 +6623,25 @@ paths: example1: summary: application/json value: - id: 16312ce2-a4b8-4a12-a60e-4f0f5b493418 - name: New Name - instance: 1008acc6-4886-41c3-9373-196114993a96 - status: - task: none - created: true - date: 1648841621000 - live: false - local: true - schema: - $ref: '#/components/schemas/Snapshot' + sharedByUser: + - id: 16312ce2-a4b8-4a12-a60e-4f0f5b493418 + name: Name + model: iPhone 12 Pro Max + sharedOn: 1648841622000 + sharedBy: + name: Linus Torvalds + email: torvalds@osdl.org + sharedWithUser: + - id: 16312ce2-a4b8-4a12-a60e-4f0f5b493418 + name: Name + model: iPhone 12 Pro Max + sharedOn: 1648841622000 + sharedWithMember: grace@cobol.com + sharedBy: + name: Brian W. Kernighan + email: bwk@Princeton.edu + schema: + $ref: '#/components/schemas/UserSnapshots' description: application/json "403": content: @@ -6598,54 +6674,31 @@ paths: description: Not Found security: - BearerAuth: [] - summary: Rename a Snapshot + summary: Fetch shared snapshots tags: - - Snapshots - /v1/snapshots: - get: + - SnapshotSharing + /v1/snapshots/{snapshotId}: + delete: deprecated: false - operationId: v1GetSharedSnapshots - parameters: [] + operationId: v1DeleteSnapshot + parameters: + - deprecated: false + description: Snapshot ID - uuid + explode: false + in: path + name: snapshotId + required: true + schema: + type: string + style: simple responses: - "200": - content: - application/json: - examples: - example1: - summary: application/json - value: - sharedByUser: - - id: 16312ce2-a4b8-4a12-a60e-4f0f5b493418 - name: Name - instance: 1008acc6-4886-41c3-9373-196114993a96 - status: - task: none - created: true - date: 1648841621000 - live: false - local: true - hw-pac: 0 - sharedWithUser: - - id: 534a986e-2ded-439c-b688-8907075fc76f - name: Initial Snapshot 1 - Thu Aug 03 2023 13:35:56 GMT-0400 - (Eastern Daylight Time) - instance: 51b82f68-6ff0-4ea2-afa4-15f73a07788e - status: - task: none - created: true - date: 1691098562000 - fresh: true - live: false - local: true - hw-pac: 0 - schema: - $ref: '#/components/schemas/Snapshot' - description: application/json + "204": + description: Accepted "403": content: application/json: examples: - example2: + example1: summary: Forbidden value: error: Invalid or missing authorization token @@ -6658,7 +6711,7 @@ paths: content: application/json: examples: - example3: + example2: summary: Not Found value: error: Instance with instanceId=3a28e565-cf46-4706-86e7-e3af6b33ae0dd @@ -6672,55 +6725,47 @@ paths: description: Not Found security: - BearerAuth: [] - summary: Fetch snapshots shared with and shared by the requesting user + summary: Delete a Snapshot tags: - Snapshots - /v1/teams: get: deprecated: false - description: This endpoint is available for Enterprise accounts only - operationId: v1Teams - parameters: [] + operationId: v1GetSnapshot + parameters: + - deprecated: false + description: Snapshot ID - uuid + explode: false + in: path + name: snapshotId + required: true + schema: + type: string + style: simple responses: "200": content: application/json: examples: example1: - summary: Teams - value: - - id: all-users - label: All Users - users: - - id: 83d6b5f9-ca8b-45a5-b73a-b4f9d2a8f30f - label: User - name: user@gmail.com - email: user@gmail.com - administrator: true - - id: bbae7b15-c212-4055-a0ee-89381d01d160 - label: User2 - name: user2@gmail.com - email: user2@gmail.com - administrator: null - - id: ad423e65-8744-4289-92c4-aa9770dc0153 - label: Team Leads - users: - - id: 83d6b5f9-ca8b-45a5-b73a-b4f9d2a8f30f - label: User - name: user@gmail.com - email: user@gmail.com - administrator: true - schema: - items: - $ref: '#/components/schemas/Team' - type: array - description: Teams - "400": - content: - application/json: + summary: application/json + value: |- + { + "id": "c96b1f17-d694-45a9-af68-0a08f9c6098b", + "name": "Initial Snapshot - Thu Mar 31 2022 23:56:32 GMT+0000 (Coordinated Universal Time)", + "instance": "1008acc6-4886-41c3-9373-196114993a96", + "status": { + "task": "none", + "created": true + }, + "date": 1648770996000, + "fresh": true, + "live": false, + "local": true + "model": "iPhone 12 Pro Max", + } schema: - $ref: '#/components/schemas/UserError' - description: Bad Request + $ref: '#/components/schemas/Snapshot' + description: application/json "403": content: application/json: @@ -6734,19 +6779,194 @@ paths: schema: $ref: '#/components/schemas/ApiError' description: Forbidden - security: - - BearerAuth: [] - summary: Get teams - tags: - - Teams - post: - deprecated: false - description: This endpoint is available for Enterprise accounts only - operationId: v1TeamCreate - parameters: [] - requestBody: - content: - application/json: + "404": + content: + application/json: + examples: + example3: + summary: Not Found + value: + error: Instance with instanceId=3a28e565-cf46-4706-86e7-e3af6b33ae0dd + not found + errorID: NotFound + name: Instance + params: + instanceId: 3a28e565-cf46-4706-86e7-e3af6b33ae0dd + schema: + $ref: '#/components/schemas/UserError' + description: Not Found + security: + - BearerAuth: [] + summary: Get Snapshot + tags: + - Snapshots + patch: + deprecated: false + operationId: v1SnapshotRename + parameters: + - deprecated: false + description: Snapshot ID - uuid + explode: false + in: path + name: snapshotId + required: true + schema: + type: string + style: simple + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/SnapshotCreationOptions' + description: "" + required: true + responses: + "200": + content: + application/json: + examples: + example1: + summary: application/json + value: |- + { + "id": "16312ce2-a4b8-4a12-a60e-4f0f5b493418", + "name": "New Name", + "instance": "1008acc6-4886-41c3-9373-196114993a96", + "status": { + "task": "none", + "created": true + }, + "date": 1648841621000, + "live": false, + "local": true + "model": "iPhone 12 Pro Max", + } + schema: + $ref: '#/components/schemas/Snapshot' + description: application/json + "403": + content: + application/json: + examples: + example2: + summary: Forbidden + value: + error: Invalid or missing authorization token + errorID: PermissionDenied + originalError: Invalid or missing authorization token + schema: + $ref: '#/components/schemas/ApiError' + description: Forbidden + "404": + content: + application/json: + examples: + example3: + summary: Not Found + value: + error: Instance with instanceId=3a28e565-cf46-4706-86e7-e3af6b33ae0dd + not found + errorID: NotFound + name: Instance + params: + instanceId: 3a28e565-cf46-4706-86e7-e3af6b33ae0dd + schema: + $ref: '#/components/schemas/UserError' + description: Not Found + security: + - BearerAuth: [] + summary: Rename a Snapshot + tags: + - Snapshots + /v1/teams: + get: + deprecated: false + description: This endpoint is available for Enterprise accounts only + operationId: v1Teams + parameters: [] + responses: + "200": + content: + application/json: + examples: + example1: + summary: Teams + value: |- + [ + { + "id": "all-users", + "label": "All Users", + "users": [ + { + "id": "83d6b5f9-ca8b-45a5-b73a-b4f9d2a8f30f", + "label": "User", + "name": "user@gmail.com", + "email": "user@gmail.com", + "administrator": true, + "canEditUserAttributes": true, + }, + { + "id": "bbae7b15-c212-4055-a0ee-89381d01d160", + "label": "User2", + "name": "user2@gmail.com", + "email": "user2@gmail.com", + "administrator": null, + "canEditUserAttributes": false, + } + ] + }, + { + "id": "ad423e65-8744-4289-92c4-aa9770dc0153", + "label": "Team Leads", + "users": [ + { + "id": "83d6b5f9-ca8b-45a5-b73a-b4f9d2a8f30f", + "label": "User", + "name": "user@gmail.com", + "email": "user@gmail.com", + "administrator": true, + "canEditUserAttributes": true, + } + ] + } + ] + schema: + items: + $ref: '#/components/schemas/Team' + type: array + description: Teams + "400": + content: + application/json: + schema: + $ref: '#/components/schemas/UserError' + description: Bad Request + "403": + content: + application/json: + examples: + example2: + summary: Forbidden + value: + error: Invalid or missing authorization token + errorID: PermissionDenied + originalError: Invalid or missing authorization token + schema: + $ref: '#/components/schemas/ApiError' + description: Forbidden + security: + - BearerAuth: [] + summary: Get teams + tags: + - Teams + post: + deprecated: false + description: This endpoint is available for Enterprise accounts only + operationId: v1TeamCreate + parameters: [] + requestBody: + content: + application/json: examples: example1: summary: Create Team @@ -7204,125 +7424,1062 @@ paths: errorID: InvalidUsernameorPassword originalError: Access denied schema: - $ref: '#/components/schemas/ApiError' - description: Forbidden - security: [] - summary: Change User Password + $ref: '#/components/schemas/ApiError' + description: Forbidden + security: [] + summary: Change User Password + tags: + - Users + /v1/users/reset-password: + post: + deprecated: false + operationId: v1ResetUserPassword + parameters: [] + requestBody: + content: + application/json: + examples: + example1: + summary: Password Reset + value: |- + { + "token": "", + "totpToken": "", + "new-password": "password" + } + schema: + $ref: '#/components/schemas/PasswordResetBody' + description: application/json + required: true + responses: + "204": + description: Accepted + "403": + content: + application/json: + examples: + example1: + summary: Forbidden + value: + error: Invalid username or password. + errorID: InvalidUsernameorPassword + originalError: Access denied + schema: + $ref: '#/components/schemas/ApiError' + description: Forbidden + security: [] + summary: Reset User Password + tags: + - Users + /v1/users/send-reset-link: + post: + deprecated: false + operationId: v1SendUserResetLink + parameters: [] + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/ResetLinkBody' + description: application/json + required: true + responses: + "204": + description: Accepted + "403": + content: + application/json: + examples: + example1: + summary: Forbidden + value: + error: Invalid username or password. + errorID: InvalidUsernameorPassword + originalError: Access denied + schema: + $ref: '#/components/schemas/ApiError' + description: Forbidden + security: [] + summary: Send Password Reset Link + tags: + - Users + /v1/users/reset-link-info: + get: + deprecated: false + operationId: v1GetResetLinkInfo + parameters: + - deprecated: false + description: Reset token + explode: true + in: query + name: token + required: true + schema: + type: string + style: form + responses: + "200": + content: + application/json: + schema: + type: object + description: Reset Link Info + "403": + content: + application/json: + examples: + example1: + summary: Forbidden + value: + error: Invalid username or password. + errorID: InvalidUsernameorPassword + originalError: Access denied + schema: + $ref: '#/components/schemas/ApiError' + description: Forbidden + security: [] + summary: Send Password Reset Link Info + tags: + - Users + /v1/webplayer: + get: + deprecated: false + operationId: v1WebPlayerListSessions + parameters: [] + responses: + "200": + content: + application/json: + examples: + example1: + summary: Success + value: |- + {[ + "identifier": "37370f51-01b8-4d2e-a5ce-117aadfaa955", + "token": "eyJhbGciOiJSUzM4NCIsInR5cCI6IkpXVCJ9.eyJ3ZWJQbGF5ZXJGZWF0dXJlcyI6eyJJT1MiOnRydWUsImFwcCI6dHJ1ZSwiZmlsZSI6dHJ1ZX0sImRvbWFpbiI6ImIzY2JhMWE2LWNkNjQtNGI1OC1hZjExLTA3MDQ4MDVmYzY2ZSIsInByb2plY3QiOiJjMDI4ZWM3Ni1jZjQ3LTRiNWYtYmFkNS03OThlNGJmYTRiYTgiLCJ1c2VyIjoiN2I0MDg2MGYtNTU3Yi00MDNjLWExOWItMjU5OTQ4NzMzNzZlIiwibm9JT1MiOmZhbHNlLCJleHAiOjE2NjMxMDc2MzYsImlhdCI6MTY2MzEwNDAzNn0.KgmqYo3ecvKhCTwKBEHieWnhjxBST9wb9-CeB4hI4Uk5qA54aAOSmrBqnj2Odth8bC_eBvoJLC9qJh9gGuOqbB8U06ObiJQ2jYIOUwRzoPqXnfxElMnvc9hSkIDnT6xgysEaLjplBDEkQjdd9KZkaKeKC3B0BBHYH5CJSXRwIZDmn5QZwaEjpNkhO9BAhc9Qgltcfe3UNeQGtZcoyoBppKFuBJ7mbgg5O8UeoXjj5tqMBcaK1kSYAcK0FCZCbcee5rgVfKz2ZGLx8fD_L76R2XbR81AMWBFqzFsahsnRYNVSddUs6bnGEw2GqwvFzComcyX31guM6K8IRZk8RzILQ7hgM7GnV3h6jX0zffBL7_m633qheXWpGRy_9x2pVEjJNOz0-nyEYG5zl8B4dc17pvXVjg4qZ3R7ujL7i7uhG2_CjRwOzpbqxv22Qn7jw3whQU7vTgOeagVh8L8L0n57thqt9Vm7vpRXAw0UnUZX4VkQa1_k8OFjKy_j-xWvjcGNmc35YKsz7r50tNc-lR0MRZiQtec43yNN0fSisUEQrY0FUW520lYci310schJW8AyYmH_smi8freqIM-BAe6lo-_v-VeRH6e7CSIUhHR_PpPypmtdb-4wFacc59J6N2ZBoZ0B2p0ZlXPSWxt7pQ2yWZx0NDFU3Xadlp5CxeJBtrk", + "expiration": "2022-09-13T22:20:36.000Z", + ]} + schema: + items: + $ref: '#/components/schemas/WebPlayerSession' + type: array + description: Success + "400": + content: + application/json: + schema: + $ref: '#/components/schemas/UserError' + description: Bad Request + "403": + content: + application/json: + schema: + $ref: '#/components/schemas/ApiError' + description: Forbidden + security: + - BearerAuth: [] + summary: List all Webplayer sessions + tags: + - WebPlayer + post: + deprecated: false + operationId: v1WebPlayerCreateSession + parameters: [] + requestBody: + content: + application/json: + examples: + example1: + summary: Webplayer Request + value: |- + { + "projectId": "0fc719fc-335d-458c-a424-51a550a73d12", + "instanceId": "fbd94550-3f74-4d46-a6ed-c26cbfb23340", + "expiresIn": 18000, + "features": { + "apps": true, + "files": true + }, + } + schema: + $ref: '#/components/schemas/WebPlayerCreateSessionRequest' + description: Request Data + required: true + responses: + "200": + content: + application/json: + examples: + example1: + summary: Success + value: |- + { + "identifier": "37370f51-01b8-4d2e-a5ce-117aadfaa955", + "token": "eyJhbGciOiJSUzM4NCIsInR5cCI6IkpXVCJ9.eyJ3ZWJQbGF5ZXJGZWF0dXJlcyI6eyJJT1MiOnRydWUsImFwcCI6dHJ1ZSwiZmlsZSI6dHJ1ZX0sImRvbWFpbiI6ImIzY2JhMWE2LWNkNjQtNGI1OC1hZjExLTA3MDQ4MDVmYzY2ZSIsInByb2plY3QiOiJjMDI4ZWM3Ni1jZjQ3LTRiNWYtYmFkNS03OThlNGJmYTRiYTgiLCJ1c2VyIjoiN2I0MDg2MGYtNTU3Yi00MDNjLWExOWItMjU5OTQ4NzMzNzZlIiwibm9JT1MiOmZhbHNlLCJleHAiOjE2NjMxMDc2MzYsImlhdCI6MTY2MzEwNDAzNn0.KgmqYo3ecvKhCTwKBEHieWnhjxBST9wb9-CeB4hI4Uk5qA54aAOSmrBqnj2Odth8bC_eBvoJLC9qJh9gGuOqbB8U06ObiJQ2jYIOUwRzoPqXnfxElMnvc9hSkIDnT6xgysEaLjplBDEkQjdd9KZkaKeKC3B0BBHYH5CJSXRwIZDmn5QZwaEjpNkhO9BAhc9Qgltcfe3UNeQGtZcoyoBppKFuBJ7mbgg5O8UeoXjj5tqMBcaK1kSYAcK0FCZCbcee5rgVfKz2ZGLx8fD_L76R2XbR81AMWBFqzFsahsnRYNVSddUs6bnGEw2GqwvFzComcyX31guM6K8IRZk8RzILQ7hgM7GnV3h6jX0zffBL7_m633qheXWpGRy_9x2pVEjJNOz0-nyEYG5zl8B4dc17pvXVjg4qZ3R7ujL7i7uhG2_CjRwOzpbqxv22Qn7jw3whQU7vTgOeagVh8L8L0n57thqt9Vm7vpRXAw0UnUZX4VkQa1_k8OFjKy_j-xWvjcGNmc35YKsz7r50tNc-lR0MRZiQtec43yNN0fSisUEQrY0FUW520lYci310schJW8AyYmH_smi8freqIM-BAe6lo-_v-VeRH6e7CSIUhHR_PpPypmtdb-4wFacc59J6N2ZBoZ0B2p0ZlXPSWxt7pQ2yWZx0NDFU3Xadlp5CxeJBtrk", + "expiration": "2022-09-13T22:20:36.000Z", + } + schema: + $ref: '#/components/schemas/WebPlayerSession' + description: Success + "400": + content: + application/json: + schema: + $ref: '#/components/schemas/UserError' + description: Bad Request + "403": + content: + application/json: + schema: + $ref: '#/components/schemas/ApiError' + description: Forbidden + security: + - BearerAuth: [] + summary: Create a new Webplayer Session + tags: + - WebPlayer + /v1/webplayer/{sessionId}: + delete: + deprecated: false + operationId: v1WebPlayerDestroySession + parameters: + - deprecated: false + description: Webplayer Session identifier + explode: false + in: path + name: sessionId + required: true + schema: + type: string + style: simple + responses: + "400": + content: + application/json: + schema: + $ref: '#/components/schemas/UserError' + description: Bad Request + "403": + content: + application/json: + schema: + $ref: '#/components/schemas/ApiError' + description: Forbidden + security: + - BearerAuth: [] + summary: Tear down a Webplayer Session + tags: + - WebPlayer + get: + deprecated: false + operationId: v1WebPlayerSessionInfo + parameters: + - deprecated: false + description: Webplayer Session identifier + explode: false + in: path + name: sessionId + required: true + schema: + type: string + style: simple + responses: + "200": + content: + application/json: + examples: + example1: + summary: Success + value: |- + {[ + "identifier": "37370f51-01b8-4d2e-a5ce-117aadfaa955", + "token": "eyJhbGciOiJSUzM4NCIsInR5cCI6IkpXVCJ9.eyJ3ZWJQbGF5ZXJGZWF0dXJlcyI6eyJJT1MiOnRydWUsImFwcCI6dHJ1ZSwiZmlsZSI6dHJ1ZX0sImRvbWFpbiI6ImIzY2JhMWE2LWNkNjQtNGI1OC1hZjExLTA3MDQ4MDVmYzY2ZSIsInByb2plY3QiOiJjMDI4ZWM3Ni1jZjQ3LTRiNWYtYmFkNS03OThlNGJmYTRiYTgiLCJ1c2VyIjoiN2I0MDg2MGYtNTU3Yi00MDNjLWExOWItMjU5OTQ4NzMzNzZlIiwibm9JT1MiOmZhbHNlLCJleHAiOjE2NjMxMDc2MzYsImlhdCI6MTY2MzEwNDAzNn0.KgmqYo3ecvKhCTwKBEHieWnhjxBST9wb9-CeB4hI4Uk5qA54aAOSmrBqnj2Odth8bC_eBvoJLC9qJh9gGuOqbB8U06ObiJQ2jYIOUwRzoPqXnfxElMnvc9hSkIDnT6xgysEaLjplBDEkQjdd9KZkaKeKC3B0BBHYH5CJSXRwIZDmn5QZwaEjpNkhO9BAhc9Qgltcfe3UNeQGtZcoyoBppKFuBJ7mbgg5O8UeoXjj5tqMBcaK1kSYAcK0FCZCbcee5rgVfKz2ZGLx8fD_L76R2XbR81AMWBFqzFsahsnRYNVSddUs6bnGEw2GqwvFzComcyX31guM6K8IRZk8RzILQ7hgM7GnV3h6jX0zffBL7_m633qheXWpGRy_9x2pVEjJNOz0-nyEYG5zl8B4dc17pvXVjg4qZ3R7ujL7i7uhG2_CjRwOzpbqxv22Qn7jw3whQU7vTgOeagVh8L8L0n57thqt9Vm7vpRXAw0UnUZX4VkQa1_k8OFjKy_j-xWvjcGNmc35YKsz7r50tNc-lR0MRZiQtec43yNN0fSisUEQrY0FUW520lYci310schJW8AyYmH_smi8freqIM-BAe6lo-_v-VeRH6e7CSIUhHR_PpPypmtdb-4wFacc59J6N2ZBoZ0B2p0ZlXPSWxt7pQ2yWZx0NDFU3Xadlp5CxeJBtrk", + "expiration": "2022-09-13T22:20:36.000Z", + ]} + schema: + $ref: '#/components/schemas/WebPlayerSession' + description: Success + "400": + content: + application/json: + schema: + $ref: '#/components/schemas/UserError' + description: Bad Request + "403": + content: + application/json: + schema: + $ref: '#/components/schemas/ApiError' + description: Forbidden + "404": + content: + application/json: + schema: + $ref: '#/components/schemas/UserError' + description: Not Found + security: + - BearerAuth: [] + summary: Retrieve Webplayer Session Information + tags: + - WebPlayer + /v1/webplayer/allowedDomains: + get: + deprecated: false + operationId: v1WebPlayerAllowedDomains + parameters: [] + responses: + "200": + content: + application/json: + examples: + example1: + summary: Success + value: + allowedDomains: + - a.com + - b.com + - c.com + schema: + $ref: '#/components/schemas/WebPlayerSession' + description: Success + "400": + content: + application/json: + schema: + $ref: '#/components/schemas/UserError' + description: Bad Request + "403": + content: + application/json: + schema: + $ref: '#/components/schemas/ApiError' + description: Forbidden + security: + - BearerAuth: [] + summary: Retrieve the list of allowed domains for all Webplayer sessions + tags: + - WebPlayer + /v1/network/connections: + get: + deprecated: false + description: You must have the domain administrator or project administrator + role to list network connections. + operationId: v1ListNetworkConnections + parameters: [] + responses: + "200": + content: + application/json: + examples: + example1: + summary: application/json + value: |- + { + "total": 1, + "count": 1, + "limit": 100, + "offset": 0, + "results": [{ + "identifier": "0e29ea4b-7e55-4a4b-b736-d2e47482025b", + "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" + }, + "createdAt": "2024-01-16T23:26:43.228Z", + "updatedAt": "2024-01-16T23:26:43.228Z", + "createdBy": "b34d135b-5c22-46e7-ade0-3600473fd868", + "updatedBy": "b34d135b-5c22-46e7-ade0-3600473fd868" + }] + } + schema: + $ref: '#/components/schemas/NetworkConnectionOffsetPaginationResult' + description: Success + "403": + content: + application/json: + examples: + example2: + summary: Forbidden + value: + error: Invalid or missing authorization token + errorID: PermissionDenied + originalError: Invalid or missing authorization token + schema: + $ref: '#/components/schemas/ApiError' + description: Forbidden + security: + - BearerAuth: [] + summary: List available network connections + tags: + - NetConnect + post: + deprecated: false + description: You must have the domain administrator role to create a network + connection. + operationId: v1CreateNetworkConnection + parameters: [] + requestBody: + content: + application/json: + examples: + example1: + summary: Create OpenVPN Network Connection + value: |- + { + "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" + } + } + schema: + $ref: '#/components/schemas/CreateNetworkConnectionOptions' + description: Network Connection Options + required: true + responses: {} + security: + - BearerAuth: [] + summary: Create a new Network Connection + tags: + - NetConnect + /v1/network/connections/{id}: + delete: + deprecated: false + description: You must have the domain administrator role to delete a network + connection. + operationId: v1DeleteNetworkConnection + parameters: + - deprecated: false + description: Network Connection Identifier - uuid + explode: false + in: path + name: id + required: true + schema: + type: string + style: simple + responses: + "204": + description: Success + "403": + content: + application/json: + examples: + example1: + summary: Forbidden + value: + error: Invalid or missing authorization token + errorID: PermissionDenied + originalError: Invalid or missing authorization token + schema: + $ref: '#/components/schemas/ApiError' + description: Forbidden + security: + - BearerAuth: [] + summary: Delete an existing Network Connection + tags: + - NetConnect + patch: + deprecated: false + description: Only updates the specified attributes. You must have the domain + administrator role to update a network connection. + operationId: v1PartialUpdateNetworkConnection + parameters: + - deprecated: false + description: Network Connection Identifier - uuid + explode: false + in: path + name: id + required: true + schema: + type: string + style: simple + requestBody: + content: + application/json: + examples: + example1: + summary: Rename OpenVPN Network Connection + value: |- + { + "name": "My Renamed OpenVPN Connection" + } + schema: + $ref: '#/components/schemas/UpdateNetworkConnectionOptions' + description: Network Connection Options + required: true + responses: {} + security: + - BearerAuth: [] + summary: Update Network Connection (partial) + tags: + - NetConnect + put: + deprecated: false + description: You must have the domain administrator role to update a network + connection. + operationId: v1UpdateNetworkConnection + parameters: + - deprecated: false + description: Network Connection Identifier - uuid + explode: false + in: path + name: id + required: true + schema: + type: string + style: simple + requestBody: + content: + application/json: + examples: + example1: + summary: Rename OpenVPN Network Connection + value: |- + { + "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" + } + } + schema: + $ref: '#/components/schemas/UpdateNetworkConnectionOptions' + description: Network Connection Options + required: true + responses: {} + security: + - BearerAuth: [] + summary: Update Network Connection + tags: + - NetConnect + /v1/network/providers: + get: + deprecated: false + description: |- + Provides a list of registered network providers to be used when [creating network connections](#post-/v1/network/connections). You + must have the domain administrator role to list network providers. + operationId: v1ListNetworkProviders + parameters: [] + responses: + "200": + content: + application/json: + examples: + example1: + summary: OK + value: |- + { + "total": 1, + "count": 1, + "limit": 100, + "offset": 0, + "results": [ + { "name: "OpenVPN", "type": "openvpn" } + ] + } + schema: + $ref: '#/components/schemas/NetworkConnectionProviderOffsetPaginationResult' + description: Success + "403": + content: + application/json: + examples: + example2: + summary: Forbidden + value: + error: Invalid or missing authorization token + errorID: PermissionDenied + originalError: Invalid or missing authorization token + schema: + $ref: '#/components/schemas/ApiError' + description: Forbidden + security: + - BearerAuth: [] + summary: List available network providers + tags: + - NetConnect + /v1/services/matrix/{instanceId}/instances/{instanceId}/assessments: + get: + operationId: getAssessmentsByInstanceId + parameters: + - description: ID of instance + explode: false + in: path + name: instanceId + required: true + schema: + format: uuid + type: string + style: simple + responses: + "200": + content: + application/json: + schema: + items: + $ref: '#/components/schemas/Assessment' + type: array + description: Returns array of assessments + "500": + content: + application/json: + schema: + $ref: '#/components/schemas/getAssessmentsByInstanceId_500_response' + description: Internal Server Error + summary: Get assessments by instanceId + tags: + - matrix + /v1/services/matrix/{instanceId}/assessments: + post: + operationId: createAssessment + parameters: + - description: ID of instance + explode: false + in: path + name: instanceId + required: true + schema: + format: uuid + type: string + style: simple + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/CreateAssessmentDto' + description: Create a new assessment + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/AssessmentIdStatus' + description: Successful operation + "400": + description: Invalid body + "500": + content: + application/json: + schema: + $ref: '#/components/schemas/getAssessmentsByInstanceId_500_response' + description: Internal Server Error + summary: Create assessment + tags: + - matrix + /v1/services/matrix/{instanceId}/assessments/{assessmentId}: + delete: + operationId: deleteAssessment + parameters: + - description: ID of instance + explode: false + in: path + name: instanceId + required: true + schema: + format: uuid + type: string + style: simple + - description: ID of assessment + explode: false + in: path + name: assessmentId + required: true + schema: + format: uuid + type: string + style: simple + responses: + "204": + description: Successful operation + "404": + description: Assessment not found + "500": + content: + application/json: + schema: + $ref: '#/components/schemas/getAssessmentsByInstanceId_500_response' + description: Internal Server Error + summary: Delete assessment + tags: + - matrix + get: + operationId: getAssessmentById + parameters: + - description: ID of instance + explode: false + in: path + name: instanceId + required: true + schema: + format: uuid + type: string + style: simple + - description: ID of assessment + explode: false + in: path + name: assessmentId + required: true + schema: + format: uuid + type: string + style: simple + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/Assessment' + description: Successful operation + "404": + description: Assessment not found + "500": + content: + application/json: + schema: + $ref: '#/components/schemas/getAssessmentsByInstanceId_500_response' + description: Internal Server Error + summary: Get assessment by ID + tags: + - matrix + /v1/services/matrix/{instanceId}/assessments/{assessmentId}/start: + post: + operationId: startMonitoring + parameters: + - description: ID of instance + explode: false + in: path + name: instanceId + required: true + schema: + format: uuid + type: string + style: simple + - description: ID of assessment + explode: false + in: path + name: assessmentId + required: true + schema: + format: uuid + type: string + style: simple + responses: + "204": + description: Successful operation + "404": + description: Assessment not found + "500": + content: + application/json: + schema: + $ref: '#/components/schemas/getAssessmentsByInstanceId_500_response' + description: Internal Server Error + summary: Update assessment state and begin device monitoring tags: - - Users - /v1/users/reset-password: + - matrix + /v1/services/matrix/{instanceId}/assessments/{assessmentId}/stop: post: - deprecated: false - operationId: v1ResetUserPassword - parameters: [] - requestBody: - content: - application/json: - examples: - example1: - summary: Password Reset - value: |- - { - "token": "", - "totpToken": "", - "new-password": "password" - } - schema: - $ref: '#/components/schemas/PasswordResetBody' - description: application/json + operationId: stopMonitoring + parameters: + - description: ID of instance + explode: false + in: path + name: instanceId + required: true + schema: + format: uuid + type: string + style: simple + - description: ID of assessment + explode: false + in: path + name: assessmentId required: true + schema: + format: uuid + type: string + style: simple responses: "204": - description: Accepted - "403": + description: Successful operation + "404": + description: Assessment not found + "500": content: application/json: - examples: - example1: - summary: Forbidden - value: - error: Invalid username or password. - errorID: InvalidUsernameorPassword - originalError: Access denied schema: - $ref: '#/components/schemas/ApiError' - description: Forbidden - security: [] - summary: Reset User Password + $ref: '#/components/schemas/getAssessmentsByInstanceId_500_response' + description: Internal Server Error + summary: Update assessment state and stop device monitoring tags: - - Users - /v1/users/send-reset-link: + - matrix + /v1/services/matrix/{instanceId}/assessments/{assessmentId}/test: post: - deprecated: false - operationId: v1SendUserResetLink - parameters: [] + operationId: runTests + parameters: + - description: ID of instance + explode: false + in: path + name: instanceId + required: true + schema: + format: uuid + type: string + style: simple + - description: ID of assessment + explode: false + in: path + name: assessmentId + required: true + schema: + format: uuid + type: string + style: simple requestBody: content: application/json: schema: - $ref: '#/components/schemas/ResetLinkBody' - description: application/json - required: true + $ref: '#/components/schemas/TestAssessmentDto' + description: Execute MATRIX tests responses: - "204": - description: Accepted - "403": + "200": content: application/json: - examples: - example1: - summary: Forbidden - value: - error: Invalid username or password. - errorID: InvalidUsernameorPassword - originalError: Access denied schema: - $ref: '#/components/schemas/ApiError' - description: Forbidden - security: [] - summary: Send Password Reset Link + $ref: '#/components/schemas/AssessmentIdStatus' + description: Successful operation + "400": + description: Assessment status invalid + "404": + description: Assessment not found + "500": + content: + application/json: + schema: + $ref: '#/components/schemas/getAssessmentsByInstanceId_500_response' + description: Internal Server Error + summary: Update assessment state and execute MATRIX tests tags: - - Users - /v1/users/reset-link-info: + - matrix + /v1/services/matrix/{instanceId}/assessments/{assessmentId}/download: get: - deprecated: false - operationId: v1GetResetLinkInfo + operationId: downloadReport parameters: - - deprecated: false - description: Reset token + - description: ID of instance + explode: false + in: path + name: instanceId + required: true + schema: + format: uuid + type: string + style: simple + - description: ID of assessment + explode: false + in: path + name: assessmentId + required: true + schema: + format: uuid + type: string + style: simple + - description: Assessment report download format explode: true in: query - name: token + name: format required: true schema: + default: html + format: "enum['json', 'html']" type: string style: form responses: "200": content: + text/html: + schema: + example: Automated Mobile Application Security Test Report + type: string application/json: schema: - type: object - description: Reset Link Info - "403": + example: "{ metadata: {}, results: [] }" + type: string + description: Returns the HTML file of the report + "400": + description: Assessment status invalid + "404": + description: Assessment not found + "500": content: application/json: - examples: - example1: - summary: Forbidden - value: - error: Invalid username or password. - errorID: InvalidUsernameorPassword - originalError: Access denied schema: - $ref: '#/components/schemas/ApiError' - description: Forbidden - security: [] - summary: Send Password Reset Link Info + $ref: '#/components/schemas/getAssessmentsByInstanceId_500_response' + description: Internal Server Error + summary: Download report tags: - - Users + - matrix components: + parameters: + assessmentId: + description: ID of assessment + explode: false + in: path + name: assessmentId + required: true + schema: + format: uuid + type: string + style: simple + instanceId: + description: ID of instance + explode: false + in: path + name: instanceId + required: true + schema: + format: uuid + type: string + style: simple + format: + description: Assessment report download format + explode: true + in: query + name: format + required: true + schema: + default: html + format: "enum['json', 'html']" + type: string + style: form + responses: + AssessmentResponse: + content: + application/json: + schema: + $ref: '#/components/schemas/Assessment' + description: Successful operation + AssessmentIdStatusResponse: + content: + application/json: + schema: + $ref: '#/components/schemas/AssessmentIdStatus' + description: Successful operation + "204SuccessNoContent": + description: Successful operation + "404NotFound": + description: Assessment not found + "500InternalServerError": + content: + application/json: + schema: + $ref: '#/components/schemas/getAssessmentsByInstanceId_500_response' + description: Internal Server Error schemas: + ActivityRequest: + description: "" + properties: + resource: + description: Resource filter + type: string + limit: + description: Number of entries to return + type: number + orderBy: + description: Sorting order ('-timestamp' or 'timestamp') + type: string + page: + description: "Paginated results. Must be a positive integer. If not provided,\ + \ defaults to the first page." + nullable: true + type: number + instance: + description: Instance identifier used to filter instance resources + nullable: true + type: string + required: + - limit + - orderBy + - resource + type: object + ActivityEntry: + description: "" + example: + resource: resource + id: id + timestamp: timestamp + properties: + id: + description: Unique identifier for the activity entry + nullable: true + type: string + resource: + description: Resource associated with the activity + nullable: true + type: string + timestamp: + description: Timestamp of the activity + nullable: true + type: string + type: object + ActivityList: + description: "" + example: + total: 0.8008281904610115 + items: + - resource: resource + id: id + timestamp: timestamp + - resource: resource + id: id + timestamp: timestamp + properties: + items: + description: List of activity entries + items: + $ref: '#/components/schemas/ActivityEntry' + nullable: true + type: array + total: + description: Total number of entries + nullable: true + type: number + type: object Credentials: description: "" example: @@ -7368,10 +8525,6 @@ components: type: object coupon_options: description: Coupon options - example: - amount: 0.8008281904610115 - used: true - type: percent properties: type: description: "" @@ -7394,9 +8547,6 @@ components: type: object plan: description: Plan options - example: - licenseType: premium - cores: 6 properties: licenseType: description: "" @@ -7418,8 +8568,6 @@ components: type: object trial: description: Trial options - example: - duration: 1.4658129805029452 properties: duration: description: Duration in days @@ -7429,26 +8577,6 @@ components: type: object SubscriberInvite: description: Subscriber Invite - example: - coupon_code: coupon_code - use_by: use_by - active: true - coupon_options: - amount: 0.8008281904610115 - used: true - type: percent - trial: - duration: 1.4658129805029452 - aggregate: aggregate - reusable: true - createdAt: createdAt - domain: domain - name: name - plan: - licenseType: premium - cores: 6 - email: email - updatedAt: updatedAt properties: coupon_options: $ref: '#/components/schemas/coupon_options' @@ -7946,8 +9074,8 @@ components: type: boolean trialExtension: $ref: '#/components/schemas/TrialExtension' - snapshotPermissions: - $ref: '#/components/schemas/SnapshotPermissions' + snapshotSharingPermissions: + $ref: '#/components/schemas/SnapshotSharingPermissions' type: object TrialExtension: description: "" @@ -7969,11 +9097,17 @@ components: nullable: true type: string type: object - SnapshotPermissions: + SnapshotSharingPermissions: description: "" properties: - enabled: - description: Indicates if snapshot permissions are enabled + cloudEnabled: + description: Indicates if snapshot permissions are enabled by the cloud + admin + nullable: true + type: boolean + domainEnabled: + description: Indicates if snapshot permissions are enabled by the domain + admin nullable: true type: boolean publicLink: @@ -8120,6 +9254,26 @@ components: - providerType - updatedAt type: object + v1CheckSubdomainExistenceParameters: + description: "" + properties: + domain: + description: Domain to check + type: string + required: + - domain + type: object + CheckSubdomainResponse: + description: "" + example: + available: true + properties: + available: + description: Indicates whether the subdomain is available or not + type: boolean + required: + - available + type: object Extension: description: "" properties: @@ -8923,7 +10077,7 @@ components: description: "" example: fwpackage: fwpackage - overrideWifiMAC: overrideWifiMAC + sharedSnapshot: sharedSnapshot os: os osbuild: osbuild patches: @@ -8931,6 +10085,7 @@ components: - patches project: project origFwPackageUrl: http://example.com/aeiou + sharedSnapshotPassword: sharedSnapshotPassword flavor: flavor volume: partitions: @@ -8951,6 +10106,7 @@ components: bootArgs: bootArgs encrypt: true name: name + wifiMac: wifiMac device: flavor: flavor bdid: 1.4658129805029452 @@ -8965,6 +10121,14 @@ components: key: key snapshot: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 properties: + sharedSnapshot: + description: identifier of the snapshot that was shared. + nullable: true + type: string + sharedSnapshotPassword: + description: optional password if the shared snapshot requires a password. + nullable: true + type: string name: description: the name of the device nullable: true @@ -9007,7 +10171,7 @@ components: description: "" nullable: true type: boolean - overrideWifiMAC: + wifiMac: description: "" nullable: true type: string @@ -9401,23 +10565,6 @@ components: required: - state type: object - RateInfo: - description: "" - example: - onRateMicrocents: 0 - offRateMicrocents: 6 - properties: - onRateMicrocents: - description: "The amount per second, in microcents (USD), that this instance\ - \ charges to be running." - nullable: true - type: integer - offRateMicrocents: - description: "The amount per second, in microcents (USD), that this instance\ - \ charges to be stored." - nullable: true - type: integer - type: object Bit: description: Bit value enum: @@ -9622,6 +10769,16 @@ components: - $ref: '#/components/schemas/TextInput' properties: {} type: object + InputResponse: + description: "" + example: + eta: 0.8008281904610115 + properties: + eta: + description: Expected time to complete + nullable: true + type: number + type: object MediaPlayBody: description: "" example: @@ -9739,6 +10896,16 @@ components: nullable: true type: array type: object + SslsplitFilter: + description: "" + example: + truncatePcap: true + properties: + truncatePcap: + description: "" + nullable: true + type: boolean + type: object NetdumpFilter: description: "" example: @@ -10010,17 +11177,23 @@ components: ProjectSettings: description: "" example: + connection: connection internet-access: true dhcp: true properties: internet-access: description: "" - nullable: true type: boolean + connection: + description: UUIDv4 network connection identifier or null for no vpn connection + nullable: true + type: string dhcp: description: "" - nullable: true type: boolean + required: + - dhcp + - internet-access type: object ProjectQuota: description: "" @@ -10071,6 +11244,7 @@ components: description: "" example: settings: + connection: connection internet-access: true dhcp: true quotasUsed: @@ -10176,64 +11350,95 @@ components: - role - user type: object - SnapshotUser: + SnapshotOwner: + description: "" + example: + name: name + email: email + properties: + name: + description: The name of the owner. + type: string + email: + description: The email of the member. + type: string + required: + - email + - name + type: object + SnapshotMember: description: "" example: inviteSentAt: 6.027456183070403 label: label userId: userId email: email - timestamp: 1.4658129805029452 + sharedOn: 1.4658129805029452 properties: email: - description: The email of the user. + description: The email of the member type: string inviteSentAt: - description: The date when the invite was sent. + description: The date when the invite was sent type: number - timestamp: - description: The timestamp. + sharedOn: + description: UNIX Date of when the snapshot was first shared with member type: number userId: - description: The user ID. + description: The member's user ID + nullable: true type: string label: - description: The label. + description: The user's label or name + nullable: true type: string required: - email - inviteSentAt - - label - - timestamp - - userId + - sharedOn type: object SnapshotSharing: description: "" example: - url: url - users: + password: password + sharedBy: + name: name + email: email + members: - inviteSentAt: 6.027456183070403 label: label userId: userId email: email - timestamp: 1.4658129805029452 + sharedOn: 1.4658129805029452 - inviteSentAt: 6.027456183070403 label: label userId: userId email: email - timestamp: 1.4658129805029452 + sharedOn: 1.4658129805029452 + sharingType: publicLink properties: - url: - description: The URL of the snapshot. + sharingType: + description: "" + enum: + - publicLink + - domainRestrictedLink + - passwordPublicLink + - emailInvite type: string - users: - description: The users who have access to the snapshot. + password: + description: Password with using passwordPublicLink + nullable: true + type: string + sharedBy: + $ref: '#/components/schemas/SnapshotOwner' + members: + description: The members who have access to the snapshot items: - $ref: '#/components/schemas/SnapshotUser' + $ref: '#/components/schemas/SnapshotMember' + nullable: true type: array required: - - url - - users + - sharingType type: object SnapshotStatus: description: "" @@ -10242,14 +11447,80 @@ components: created: true properties: task: - description: The current task being performed on the snapshot. + description: The current task being performed on the snapshot + nullable: true type: string created: - description: Indicates if the snapshot has been successfully created. + description: Indicates if the snapshot has been successfully created + nullable: true type: boolean + type: object + SharedSnapshotsInfo: + description: "" + example: + sharedWithMember: sharedWithMember + sharedBy: + name: name + email: email + name: name + model: model + id: id + sharedOn: 0.8008281904610115 + properties: + id: + description: UUID of the snapshot + type: string + name: + description: Snapshot name + type: string + model: + description: Device model + type: string + sharedOn: + description: UNIX Date of when the snapshot was first shared with member + type: number + sharedWithMember: + description: The member who the snapshot was shared with. Only present in + sharedWithUser + nullable: true + type: string + sharedBy: + $ref: '#/components/schemas/SnapshotOwner' + required: + - id + - model + - name + - sharedOn + type: object + UserSnapshots: + description: "" + example: + sharedWithUser: + sharedWithMember: sharedWithMember + sharedBy: + name: name + email: email + name: name + model: model + id: id + sharedOn: 0.8008281904610115 + sharedByUser: + sharedWithMember: sharedWithMember + sharedBy: + name: name + email: email + name: name + model: model + id: id + sharedOn: 0.8008281904610115 + properties: + sharedWithUser: + $ref: '#/components/schemas/SharedSnapshotsInfo' + sharedByUser: + $ref: '#/components/schemas/SharedSnapshotsInfo' required: - - created - - task + - sharedByUser + - sharedWithUser type: object Snapshot: description: "" @@ -10257,21 +11528,26 @@ components: date: 0.8008281904610115 instance: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 name: name + model: model id: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 fresh: true sharing: - url: url - users: + password: password + sharedBy: + name: name + email: email + members: - inviteSentAt: 6.027456183070403 label: label userId: userId email: email - timestamp: 1.4658129805029452 + sharedOn: 1.4658129805029452 - inviteSentAt: 6.027456183070403 label: label userId: userId email: email - timestamp: 1.4658129805029452 + sharedOn: 1.4658129805029452 + sharingType: publicLink live: true local: true status: @@ -10303,6 +11579,10 @@ components: local: description: "" type: boolean + model: + description: The device model + nullable: true + type: string sharing: $ref: '#/components/schemas/SnapshotSharing' required: @@ -10315,36 +11595,41 @@ components: - name - status type: object - PostSnapshotPermissionsRequestPayload: + PostShareSnapshotRequestPayload: description: "" example: - userId: userId - email: email + password: password + sharingType: publicLink properties: - email: - description: The email of the user. + sharingType: + description: "" + enum: + - publicLink + - domainRestrictedLink + - passwordPublicLink + - emailInvite. type: string - userId: - description: The user ID. + password: + description: Password for passwordPublicLink. nullable: true type: string required: - - email + - sharingType type: object - DeleteSnapshotPermissionsRequestPayload: + SnapshotPermissionsRequestPayload: description: "" example: - userId: userId - email: email + members: + - members + - members properties: - email: - description: The email of the user. - nullable: true - type: string - userId: - description: The user ID. - nullable: true - type: string + members: + description: The email addresses or user ids of the members. + items: + type: string + type: array + required: + - members type: object SnapshotCreationOptions: description: "" @@ -10364,11 +11649,13 @@ components: label: label users: - administrator: true + canEditUserAttributes: true name: name id: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 label: label email: email - administrator: true + canEditUserAttributes: true name: name id: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 label: label @@ -10395,6 +11682,7 @@ components: description: /** example: administrator: true + canEditUserAttributes: true name: name id: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 label: label @@ -10417,6 +11705,10 @@ components: description: the flag that specifies whether user is Administrator or not nullable: true type: boolean + canEditUserAttributes: + description: Flag to determine if user attributes are editable. + nullable: true + type: boolean required: - email - id @@ -10499,6 +11791,27 @@ components: type: object Features: description: "" + example: + console: true + settings: true + images: true + portForwarding: true + profile: true + strace: true + frida: true + deviceControl: true + messaging: true + network: true + powerManagement: true + snapshots: true + sensors: true + system: true + netmon: true + coretrace: true + files: true + connect: true + deviceDelete: true + apps: true properties: apps: description: "" @@ -10583,6 +11896,32 @@ components: type: object WebPlayerCreateSessionRequest: description: "" + example: + expiresIn: 0.8008281904610115 + features: + console: true + settings: true + images: true + portForwarding: true + profile: true + strace: true + frida: true + deviceControl: true + messaging: true + network: true + powerManagement: true + snapshots: true + sensors: true + system: true + netmon: true + coretrace: true + files: true + connect: true + deviceDelete: true + apps: true + instanceId: instanceId + clientId: clientId + projectId: projectId properties: projectId: description: Project Identifier @@ -10607,6 +11946,10 @@ components: type: object WebPlayerSession: description: "" + example: + identifier: identifier + expiration: 0.8008281904610115 + token: token properties: identifier: description: New Session Identifier @@ -10622,6 +11965,328 @@ components: - identifier - token type: object + NetworkConnectionOffsetPaginationResult: + description: Network Connection Offset Pagination Result + example: + total: 0.8008281904610115 + offset: 5.962133916683182 + count: 6.027456183070403 + limit: 1.4658129805029452 + results: + - identifier: identifier + createdAt: createdAt + updatedBy: updatedBy + provider: provider + createdBy: createdBy + name: name + config: "{}" + updatedAt: updatedAt + - identifier: identifier + createdAt: createdAt + updatedBy: updatedBy + provider: provider + createdBy: createdBy + name: name + config: "{}" + updatedAt: updatedAt + properties: + total: + description: Total number of items. + type: number + count: + description: The number of items returned in this result. + type: number + limit: + description: The maximum number of items that could be returned for this + result. + type: number + offset: + description: That starting item 0-indexed. + type: number + results: + description: Array of network connections associated with this domain. + items: + $ref: '#/components/schemas/NetworkConnection' + type: array + required: + - count + - limit + - offset + - results + - total + type: object + NetworkConnection: + description: "" + example: + identifier: identifier + createdAt: createdAt + updatedBy: updatedBy + provider: provider + createdBy: createdBy + name: name + config: "{}" + updatedAt: updatedAt + properties: + identifier: + description: UUIDv4 + type: string + name: + description: User specified name for this network connection. e.g. My Network + Connection + type: string + config: + description: An object containing network connection configuration data. + Will vary based on network provider type. + nullable: true + type: object + provider: + description: "One of the registered [network provider types](#get-/v1/network/providers)" + nullable: true + type: string + createdAt: + description: Created Date in ISO-8601 format e.g. 2022-05-06T02:39:23.000Z + type: string + updatedAt: + description: Updated Date in ISO-8601 format e.g. 2022-05-06T02:39:23.000Z + type: string + createdBy: + description: UUIDv4 of the user who created this record. + type: string + updatedBy: + description: UUIDv4 of the user who last updated this record. + type: string + required: + - createdAt + - createdBy + - identifier + - name + - updatedAt + - updatedBy + type: object + CreateNetworkConnectionOptions: + description: "" + example: + identifier: identifier + provider: provider + name: name + config: "{}" + properties: + identifier: + description: UUIDv4 + type: string + name: + description: User specified name for this network connection. e.g. My Network + Connection + type: string + provider: + description: "One of the registered [network provider types](#get-/v1/network/providers)" + type: string + config: + description: An object containing network connection configuration data. + Will vary based on network provider type. See examples. + nullable: true + type: object + required: + - identifier + - name + - provider + type: object + UpdateNetworkConnectionOptions: + description: "" + example: + name: name + config: "{}" + properties: + name: + description: User specified name for this network connection. e.g. My Network + Connection + type: string + config: + description: An object containing network connection configuration data. + Will vary based on network provider type. See examples. + nullable: true + type: object + required: + - name + type: object + NetworkConnectionProviderOffsetPaginationResult: + description: Network Connection Provider Offset Pagination Result + example: + total: 0.8008281904610115 + offset: 5.962133916683182 + count: 6.027456183070403 + limit: 1.4658129805029452 + results: + - name: name + type: type + - name: name + type: type + properties: + total: + description: Total number of items. + type: number + count: + description: The number of items returned in this result. + type: number + limit: + description: The maximum number of items that could be returned for this + result. + type: number + offset: + description: That starting item 0-indexed. + type: number + results: + description: Array of network connection providers. + items: + $ref: '#/components/schemas/NetworkConnectionProvider' + type: array + required: + - count + - limit + - offset + - results + - total + type: object + NetworkConnectionProvider: + description: "" + example: + name: name + type: type + properties: + name: + description: Human friendly name for Network Connection Provider. + type: string + type: + description: Internal identifier for Network Connection Provider. + type: string + required: + - name + - type + type: object + Assessment: + allOf: + - $ref: '#/components/schemas/CreateAssessmentDto' + - $ref: '#/components/schemas/AssessmentIdStatus' + example: + createdAt: 2000-01-23T04:56:07.000+00:00 + metadata: "{}" + wordlist: "{}" + reportId: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + createdBy: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + bundle: "{}" + results: "{}" + wordlistId: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + updatedAt: 2000-01-23T04:56:07.000+00:00 + properties: + createdAt: + format: date-time + type: string + updatedAt: + format: date-time + type: string + createdBy: + format: uuid + type: string + reportId: + format: uuid + type: string + bundle: + properties: + id: + format: uuid + type: string + name: + example: Camera + type: string + version: + example: 1.2.0 + type: string + type: object + results: + properties: + pass: + type: integer + fail: + type: integer + info: + type: integer + error: + type: integer + type: object + metadata: + properties: + corelliumVersion: + example: 6.4.0 + type: string + type: object + wordlistId: + deprecated: true + format: uuid + type: string + wordlist: + properties: + id: + format: uuid + type: string + name: + example: wordlist.txt + type: string + type: object + type: object + AssessmentIdStatus: + allOf: + - $ref: '#/components/schemas/UpdateAssessmentDto' + example: + id: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + properties: + id: + format: uuid + type: string + type: object + CreateAssessmentDto: + example: + instanceId: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + bundleId: com.android.egg + wordlistId: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + properties: + instanceId: + format: uuid + type: string + bundleId: + example: com.android.egg + type: string + writeOnly: true + wordlistId: + format: uuid + type: string + required: + - bundleId + - instanceId + type: object + UpdateAssessmentDto: + properties: + status: + example: testing + type: string + required: + - status + type: object + TestAssessmentDto: + example: + invert: true + grep: masvs-storage-2-android-8 + properties: + invert: + type: boolean + grep: + example: masvs-storage-2-android-8 + type: string + type: object + getAssessmentsByInstanceId_500_response: + properties: + error: + type: string + type: object ConfigResponse_maintenance: description: Denotes whether the server is undergoing maintenance nullable: true diff --git a/api_activity.go b/api_activity.go new file mode 100644 index 00000000..6821242d --- /dev/null +++ b/api_activity.go @@ -0,0 +1,151 @@ +/* +Corellium API + +REST API to manage your virtual devices. + +API version: 7.0.0-25053 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package corellium + +import ( + "bytes" + "context" + "io" + "net/http" + "net/url" +) + + +// ActivityApiService ActivityApi service +type ActivityApiService service + +type ActivityApiV1ActivityListRequest struct { + ctx context.Context + ApiService *ActivityApiService + request *ActivityRequest +} + +// +func (r ActivityApiV1ActivityListRequest) Request(request ActivityRequest) ActivityApiV1ActivityListRequest { + r.request = &request + return r +} + +func (r ActivityApiV1ActivityListRequest) Execute() (*ActivityList, *http.Response, error) { + return r.ApiService.V1ActivityListExecute(r) +} + +/* +V1ActivityList Get resource activities + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ActivityApiV1ActivityListRequest +*/ +func (a *ActivityApiService) V1ActivityList(ctx context.Context) ActivityApiV1ActivityListRequest { + return ActivityApiV1ActivityListRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return ActivityList +func (a *ActivityApiService) V1ActivityListExecute(r ActivityApiV1ActivityListRequest) (*ActivityList, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ActivityList + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ActivityApiService.V1ActivityList") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/v1/activity" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.request != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "request", r.request, "") + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 400 { + var v UserError + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 403 { + var v ApiError + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} diff --git a/api_agent.go b/api_agent.go index a40b0e27..af077b3b 100644 --- a/api_agent.go +++ b/api_agent.go @@ -3,7 +3,7 @@ Corellium API REST API to manage your virtual devices. -API version: 6.1.0-20784 +API version: 7.0.0-25053 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/api_authentication.go b/api_authentication.go index c4ca1ce3..d374ad73 100644 --- a/api_authentication.go +++ b/api_authentication.go @@ -3,7 +3,7 @@ Corellium API REST API to manage your virtual devices. -API version: 6.1.0-20784 +API version: 7.0.0-25053 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/api_config.go b/api_config.go index bc09d458..d41e5f37 100644 --- a/api_config.go +++ b/api_config.go @@ -3,7 +3,7 @@ Corellium API REST API to manage your virtual devices. -API version: 6.1.0-20784 +API version: 7.0.0-25053 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/api_core_trace.go b/api_core_trace.go index b55717df..30441a38 100644 --- a/api_core_trace.go +++ b/api_core_trace.go @@ -3,7 +3,7 @@ Corellium API REST API to manage your virtual devices. -API version: 6.1.0-20784 +API version: 7.0.0-25053 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/api_domain.go b/api_domain.go new file mode 100644 index 00000000..966ddfb7 --- /dev/null +++ b/api_domain.go @@ -0,0 +1,142 @@ +/* +Corellium API + +REST API to manage your virtual devices. + +API version: 7.0.0-25053 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package corellium + +import ( + "bytes" + "context" + "io" + "net/http" + "net/url" +) + + +// DomainApiService DomainApi service +type DomainApiService service + +type DomainApiV1CheckSubdomainExistenceRequest struct { + ctx context.Context + ApiService *DomainApiService + v1CheckSubdomainExistenceParameters *V1CheckSubdomainExistenceParameters +} + +// application/json +func (r DomainApiV1CheckSubdomainExistenceRequest) V1CheckSubdomainExistenceParameters(v1CheckSubdomainExistenceParameters V1CheckSubdomainExistenceParameters) DomainApiV1CheckSubdomainExistenceRequest { + r.v1CheckSubdomainExistenceParameters = &v1CheckSubdomainExistenceParameters + return r +} + +func (r DomainApiV1CheckSubdomainExistenceRequest) Execute() (*CheckSubdomainResponse, *http.Response, error) { + return r.ApiService.V1CheckSubdomainExistenceExecute(r) +} + +/* +V1CheckSubdomainExistence Check the existence of a subdomain + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return DomainApiV1CheckSubdomainExistenceRequest +*/ +func (a *DomainApiService) V1CheckSubdomainExistence(ctx context.Context) DomainApiV1CheckSubdomainExistenceRequest { + return DomainApiV1CheckSubdomainExistenceRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return CheckSubdomainResponse +func (a *DomainApiService) V1CheckSubdomainExistenceExecute(r DomainApiV1CheckSubdomainExistenceRequest) (*CheckSubdomainResponse, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *CheckSubdomainResponse + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DomainApiService.V1CheckSubdomainExistence") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/v1/domain/check" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.v1CheckSubdomainExistenceParameters == nil { + return localVarReturnValue, nil, reportError("v1CheckSubdomainExistenceParameters is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.v1CheckSubdomainExistenceParameters + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 403 { + var v ApiError + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} diff --git a/api_domain_auth_provider.go b/api_domain_auth_provider.go index 4c34c3ab..d6f1b541 100644 --- a/api_domain_auth_provider.go +++ b/api_domain_auth_provider.go @@ -3,7 +3,7 @@ Corellium API REST API to manage your virtual devices. -API version: 6.1.0-20784 +API version: 7.0.0-25053 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/api_hyper_trace.go b/api_hyper_trace.go index e724ba72..b59b737a 100644 --- a/api_hyper_trace.go +++ b/api_hyper_trace.go @@ -3,7 +3,7 @@ Corellium API REST API to manage your virtual devices. -API version: 6.1.0-20784 +API version: 7.0.0-25053 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/api_hypervisor_hooks.go b/api_hypervisor_hooks.go index c8fd4f71..10185e13 100644 --- a/api_hypervisor_hooks.go +++ b/api_hypervisor_hooks.go @@ -3,7 +3,7 @@ Corellium API REST API to manage your virtual devices. -API version: 6.1.0-20784 +API version: 7.0.0-25053 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/api_images.go b/api_images.go index d9ea49ba..f31fdd6c 100644 --- a/api_images.go +++ b/api_images.go @@ -3,7 +3,7 @@ Corellium API REST API to manage your virtual devices. -API version: 6.1.0-20784 +API version: 7.0.0-25053 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/api_instances.go b/api_instances.go index 86b5272c..add3d3f8 100644 --- a/api_instances.go +++ b/api_instances.go @@ -3,7 +3,7 @@ Corellium API REST API to manage your virtual devices. -API version: 6.1.0-20784 +API version: 7.0.0-25053 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -945,7 +945,7 @@ func (r InstancesApiV1DeleteInstanceSnapshotRequest) Execute() (*http.Response, } /* -V1DeleteInstanceSnapshot Delete a Snapshot +V1DeleteInstanceSnapshot Delete an Instance Snapshot @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param instanceId Instance ID - uuid @@ -2101,109 +2101,6 @@ func (a *InstancesApiService) V1GetInstancePeripheralsExecute(r InstancesApiV1Ge return localVarReturnValue, localVarHTTPResponse, nil } -type InstancesApiV1GetInstanceRateRequest struct { - ctx context.Context - ApiService *InstancesApiService - instanceId string -} - -func (r InstancesApiV1GetInstanceRateRequest) Execute() (*RateInfo, *http.Response, error) { - return r.ApiService.V1GetInstanceRateExecute(r) -} - -/* -V1GetInstanceRate Get rate information - -Returns the cost, in microcents, for the instance in the on and off state. Instances are charged $0.25 / day for storage (off) and $0.25 per core per hour (on). - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param instanceId Instance ID - uuid - @return InstancesApiV1GetInstanceRateRequest -*/ -func (a *InstancesApiService) V1GetInstanceRate(ctx context.Context, instanceId string) InstancesApiV1GetInstanceRateRequest { - return InstancesApiV1GetInstanceRateRequest{ - ApiService: a, - ctx: ctx, - instanceId: instanceId, - } -} - -// Execute executes the request -// @return RateInfo -func (a *InstancesApiService) V1GetInstanceRateExecute(r InstancesApiV1GetInstanceRateRequest) (*RateInfo, *http.Response, error) { - var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *RateInfo - ) - - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "InstancesApiService.V1GetInstanceRate") - if err != nil { - return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} - } - - localVarPath := localBasePath + "/v1/instances/{instanceId}/rate" - localVarPath = strings.Replace(localVarPath, "{"+"instanceId"+"}", url.PathEscape(parameterValueToString(r.instanceId, "instanceId")), -1) - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - - // to determine the Content-Type header - localVarHTTPContentTypes := []string{} - - // set Content-Type header - localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) - if localVarHTTPContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHTTPContentType - } - - // to determine the Accept header - localVarHTTPHeaderAccepts := []string{"application/json"} - - // set Accept header - localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) - if localVarHTTPHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept - } - req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) - if err != nil { - return localVarReturnValue, nil, err - } - - localVarHTTPResponse, err := a.client.callAPI(req) - if err != nil || localVarHTTPResponse == nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) - localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) - if err != nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - if localVarHTTPResponse.StatusCode >= 300 { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: localVarHTTPResponse.Status, - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: err.Error(), - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - return localVarReturnValue, localVarHTTPResponse, nil -} - type InstancesApiV1GetInstanceScreenshotRequest struct { ctx context.Context ApiService *InstancesApiService @@ -2719,6 +2616,13 @@ type InstancesApiV1InstancesInstanceIdMessagePostRequest struct { ctx context.Context ApiService *InstancesApiService instanceId string + body *map[string]interface{} +} + +// Message data +func (r InstancesApiV1InstancesInstanceIdMessagePostRequest) Body(body map[string]interface{}) InstancesApiV1InstancesInstanceIdMessagePostRequest { + r.body = &body + return r } func (r InstancesApiV1InstancesInstanceIdMessagePostRequest) Execute() (*http.Response, error) { @@ -2726,7 +2630,12 @@ func (r InstancesApiV1InstancesInstanceIdMessagePostRequest) Execute() (*http.Re } /* -V1InstancesInstanceIdMessagePost Receive a message on an iOS vm +V1InstancesInstanceIdMessagePost Inject a message into an iOS VM + +Given a message and source phone number, place this message as an incoming SMS message on the iOS VM. +For advanced usage, a raw message of bytes may be sent. In this case, the parameter should provide hex encoded bytes + (0x00 0x11 0x22 0x33 in the example below) which are sent verbatim. + The user must ensure that the body is the correct format for the underlying device stack. @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param instanceId Instance ID - uuid @@ -2759,9 +2668,12 @@ func (a *InstancesApiService) V1InstancesInstanceIdMessagePostExecute(r Instance localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} localVarFormParams := url.Values{} + if r.body == nil { + return nil, reportError("body is required and must be specified") + } // to determine the Content-Type header - localVarHTTPContentTypes := []string{} + localVarHTTPContentTypes := []string{"application/json"} // set Content-Type header localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) @@ -2777,6 +2689,8 @@ func (a *InstancesApiService) V1InstancesInstanceIdMessagePostExecute(r Instance if localVarHTTPHeaderAccept != "" { localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } + // body params + localVarPostBody = r.body req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) if err != nil { return nil, err @@ -3817,7 +3731,7 @@ func (r InstancesApiV1PostInstanceInputRequest) InstanceInput(instanceInput []In return r } -func (r InstancesApiV1PostInstanceInputRequest) Execute() (int32, *http.Response, error) { +func (r InstancesApiV1PostInstanceInputRequest) Execute() (*InputResponse, *http.Response, error) { return r.ApiService.V1PostInstanceInputExecute(r) } @@ -3843,13 +3757,13 @@ func (a *InstancesApiService) V1PostInstanceInput(ctx context.Context, instanceI } // Execute executes the request -// @return int32 -func (a *InstancesApiService) V1PostInstanceInputExecute(r InstancesApiV1PostInstanceInputRequest) (int32, *http.Response, error) { +// @return InputResponse +func (a *InstancesApiService) V1PostInstanceInputExecute(r InstancesApiV1PostInstanceInputRequest) (*InputResponse, *http.Response, error) { var ( localVarHTTPMethod = http.MethodPost localVarPostBody interface{} formFiles []formFile - localVarReturnValue int32 + localVarReturnValue *InputResponse ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "InstancesApiService.V1PostInstanceInput") @@ -4074,7 +3988,7 @@ func (r InstancesApiV1RenameInstanceSnapshotRequest) Execute() (*Snapshot, *http } /* -V1RenameInstanceSnapshot Rename a Snapshot +V1RenameInstanceSnapshot Rename an Instance Snapshot @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param instanceId Instance ID - uuid @@ -4325,7 +4239,7 @@ func (r InstancesApiV1RestoreInstanceSnapshotRequest) Execute() (*http.Response, } /* -V1RestoreInstanceSnapshot Restore a Snapshot +V1RestoreInstanceSnapshot Restore an Instance Snapshot @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param instanceId Instance ID - uuid @@ -5459,6 +5373,13 @@ type InstancesApiV1StartNetworkMonitorRequest struct { ctx context.Context ApiService *InstancesApiService instanceId string + sslsplitFilter *SslsplitFilter +} + +// +func (r InstancesApiV1StartNetworkMonitorRequest) SslsplitFilter(sslsplitFilter SslsplitFilter) InstancesApiV1StartNetworkMonitorRequest { + r.sslsplitFilter = &sslsplitFilter + return r } func (r InstancesApiV1StartNetworkMonitorRequest) Execute() (*http.Response, error) { @@ -5501,7 +5422,7 @@ func (a *InstancesApiService) V1StartNetworkMonitorExecute(r InstancesApiV1Start localVarFormParams := url.Values{} // to determine the Content-Type header - localVarHTTPContentTypes := []string{} + localVarHTTPContentTypes := []string{"application/json"} // set Content-Type header localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) @@ -5517,6 +5438,8 @@ func (a *InstancesApiService) V1StartNetworkMonitorExecute(r InstancesApiV1Start if localVarHTTPHeaderAccept != "" { localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } + // body params + localVarPostBody = r.sslsplitFilter req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) if err != nil { return nil, err diff --git a/api_matrix.go b/api_matrix.go new file mode 100644 index 00000000..357c461b --- /dev/null +++ b/api_matrix.go @@ -0,0 +1,935 @@ +/* +Corellium API + +REST API to manage your virtual devices. + +API version: 7.0.0-25053 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package corellium + +import ( + "bytes" + "context" + "io" + "net/http" + "net/url" + "strings" +) + + +// MatrixApiService MatrixApi service +type MatrixApiService service + +type MatrixApiCreateAssessmentRequest struct { + ctx context.Context + ApiService *MatrixApiService + instanceId string + createAssessmentDto *CreateAssessmentDto +} + +// Create a new assessment +func (r MatrixApiCreateAssessmentRequest) CreateAssessmentDto(createAssessmentDto CreateAssessmentDto) MatrixApiCreateAssessmentRequest { + r.createAssessmentDto = &createAssessmentDto + return r +} + +func (r MatrixApiCreateAssessmentRequest) Execute() (*AssessmentIdStatus, *http.Response, error) { + return r.ApiService.CreateAssessmentExecute(r) +} + +/* +CreateAssessment Create assessment + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param instanceId ID of instance + @return MatrixApiCreateAssessmentRequest +*/ +func (a *MatrixApiService) CreateAssessment(ctx context.Context, instanceId string) MatrixApiCreateAssessmentRequest { + return MatrixApiCreateAssessmentRequest{ + ApiService: a, + ctx: ctx, + instanceId: instanceId, + } +} + +// Execute executes the request +// @return AssessmentIdStatus +func (a *MatrixApiService) CreateAssessmentExecute(r MatrixApiCreateAssessmentRequest) (*AssessmentIdStatus, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *AssessmentIdStatus + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "MatrixApiService.CreateAssessment") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/v1/services/matrix/{instanceId}/assessments" + localVarPath = strings.Replace(localVarPath, "{"+"instanceId"+"}", url.PathEscape(parameterValueToString(r.instanceId, "instanceId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.createAssessmentDto == nil { + return localVarReturnValue, nil, reportError("createAssessmentDto is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.createAssessmentDto + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 500 { + var v GetAssessmentsByInstanceId500Response + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type MatrixApiDeleteAssessmentRequest struct { + ctx context.Context + ApiService *MatrixApiService + instanceId string + assessmentId string +} + +func (r MatrixApiDeleteAssessmentRequest) Execute() (*http.Response, error) { + return r.ApiService.DeleteAssessmentExecute(r) +} + +/* +DeleteAssessment Delete assessment + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param instanceId ID of instance + @param assessmentId ID of assessment + @return MatrixApiDeleteAssessmentRequest +*/ +func (a *MatrixApiService) DeleteAssessment(ctx context.Context, instanceId string, assessmentId string) MatrixApiDeleteAssessmentRequest { + return MatrixApiDeleteAssessmentRequest{ + ApiService: a, + ctx: ctx, + instanceId: instanceId, + assessmentId: assessmentId, + } +} + +// Execute executes the request +func (a *MatrixApiService) DeleteAssessmentExecute(r MatrixApiDeleteAssessmentRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "MatrixApiService.DeleteAssessment") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/v1/services/matrix/{instanceId}/assessments/{assessmentId}" + localVarPath = strings.Replace(localVarPath, "{"+"instanceId"+"}", url.PathEscape(parameterValueToString(r.instanceId, "instanceId")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"assessmentId"+"}", url.PathEscape(parameterValueToString(r.assessmentId, "assessmentId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 500 { + var v GetAssessmentsByInstanceId500Response + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type MatrixApiDownloadReportRequest struct { + ctx context.Context + ApiService *MatrixApiService + instanceId string + assessmentId string + format *string +} + +// Assessment report download format +func (r MatrixApiDownloadReportRequest) Format(format string) MatrixApiDownloadReportRequest { + r.format = &format + return r +} + +func (r MatrixApiDownloadReportRequest) Execute() (string, *http.Response, error) { + return r.ApiService.DownloadReportExecute(r) +} + +/* +DownloadReport Download report + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param instanceId ID of instance + @param assessmentId ID of assessment + @return MatrixApiDownloadReportRequest +*/ +func (a *MatrixApiService) DownloadReport(ctx context.Context, instanceId string, assessmentId string) MatrixApiDownloadReportRequest { + return MatrixApiDownloadReportRequest{ + ApiService: a, + ctx: ctx, + instanceId: instanceId, + assessmentId: assessmentId, + } +} + +// Execute executes the request +// @return string +func (a *MatrixApiService) DownloadReportExecute(r MatrixApiDownloadReportRequest) (string, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue string + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "MatrixApiService.DownloadReport") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/v1/services/matrix/{instanceId}/assessments/{assessmentId}/download" + localVarPath = strings.Replace(localVarPath, "{"+"instanceId"+"}", url.PathEscape(parameterValueToString(r.instanceId, "instanceId")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"assessmentId"+"}", url.PathEscape(parameterValueToString(r.assessmentId, "assessmentId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.format == nil { + return localVarReturnValue, nil, reportError("format is required and must be specified") + } + + parameterAddToHeaderOrQuery(localVarQueryParams, "format", r.format, "") + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"text/html", "application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 500 { + var v GetAssessmentsByInstanceId500Response + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type MatrixApiGetAssessmentByIdRequest struct { + ctx context.Context + ApiService *MatrixApiService + instanceId string + assessmentId string +} + +func (r MatrixApiGetAssessmentByIdRequest) Execute() (*Assessment, *http.Response, error) { + return r.ApiService.GetAssessmentByIdExecute(r) +} + +/* +GetAssessmentById Get assessment by ID + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param instanceId ID of instance + @param assessmentId ID of assessment + @return MatrixApiGetAssessmentByIdRequest +*/ +func (a *MatrixApiService) GetAssessmentById(ctx context.Context, instanceId string, assessmentId string) MatrixApiGetAssessmentByIdRequest { + return MatrixApiGetAssessmentByIdRequest{ + ApiService: a, + ctx: ctx, + instanceId: instanceId, + assessmentId: assessmentId, + } +} + +// Execute executes the request +// @return Assessment +func (a *MatrixApiService) GetAssessmentByIdExecute(r MatrixApiGetAssessmentByIdRequest) (*Assessment, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *Assessment + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "MatrixApiService.GetAssessmentById") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/v1/services/matrix/{instanceId}/assessments/{assessmentId}" + localVarPath = strings.Replace(localVarPath, "{"+"instanceId"+"}", url.PathEscape(parameterValueToString(r.instanceId, "instanceId")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"assessmentId"+"}", url.PathEscape(parameterValueToString(r.assessmentId, "assessmentId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 500 { + var v GetAssessmentsByInstanceId500Response + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type MatrixApiGetAssessmentsByInstanceIdRequest struct { + ctx context.Context + ApiService *MatrixApiService + instanceId string +} + +func (r MatrixApiGetAssessmentsByInstanceIdRequest) Execute() ([]Assessment, *http.Response, error) { + return r.ApiService.GetAssessmentsByInstanceIdExecute(r) +} + +/* +GetAssessmentsByInstanceId Get assessments by instanceId + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param instanceId ID of instance + @return MatrixApiGetAssessmentsByInstanceIdRequest +*/ +func (a *MatrixApiService) GetAssessmentsByInstanceId(ctx context.Context, instanceId string) MatrixApiGetAssessmentsByInstanceIdRequest { + return MatrixApiGetAssessmentsByInstanceIdRequest{ + ApiService: a, + ctx: ctx, + instanceId: instanceId, + } +} + +// Execute executes the request +// @return []Assessment +func (a *MatrixApiService) GetAssessmentsByInstanceIdExecute(r MatrixApiGetAssessmentsByInstanceIdRequest) ([]Assessment, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []Assessment + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "MatrixApiService.GetAssessmentsByInstanceId") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/v1/services/matrix/{instanceId}/instances/{instanceId}/assessments" + localVarPath = strings.Replace(localVarPath, "{"+"instanceId"+"}", url.PathEscape(parameterValueToString(r.instanceId, "instanceId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 500 { + var v GetAssessmentsByInstanceId500Response + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type MatrixApiRunTestsRequest struct { + ctx context.Context + ApiService *MatrixApiService + instanceId string + assessmentId string + testAssessmentDto *TestAssessmentDto +} + +// Execute MATRIX tests +func (r MatrixApiRunTestsRequest) TestAssessmentDto(testAssessmentDto TestAssessmentDto) MatrixApiRunTestsRequest { + r.testAssessmentDto = &testAssessmentDto + return r +} + +func (r MatrixApiRunTestsRequest) Execute() (*AssessmentIdStatus, *http.Response, error) { + return r.ApiService.RunTestsExecute(r) +} + +/* +RunTests Update assessment state and execute MATRIX tests + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param instanceId ID of instance + @param assessmentId ID of assessment + @return MatrixApiRunTestsRequest +*/ +func (a *MatrixApiService) RunTests(ctx context.Context, instanceId string, assessmentId string) MatrixApiRunTestsRequest { + return MatrixApiRunTestsRequest{ + ApiService: a, + ctx: ctx, + instanceId: instanceId, + assessmentId: assessmentId, + } +} + +// Execute executes the request +// @return AssessmentIdStatus +func (a *MatrixApiService) RunTestsExecute(r MatrixApiRunTestsRequest) (*AssessmentIdStatus, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *AssessmentIdStatus + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "MatrixApiService.RunTests") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/v1/services/matrix/{instanceId}/assessments/{assessmentId}/test" + localVarPath = strings.Replace(localVarPath, "{"+"instanceId"+"}", url.PathEscape(parameterValueToString(r.instanceId, "instanceId")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"assessmentId"+"}", url.PathEscape(parameterValueToString(r.assessmentId, "assessmentId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.testAssessmentDto + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 500 { + var v GetAssessmentsByInstanceId500Response + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type MatrixApiStartMonitoringRequest struct { + ctx context.Context + ApiService *MatrixApiService + instanceId string + assessmentId string +} + +func (r MatrixApiStartMonitoringRequest) Execute() (*http.Response, error) { + return r.ApiService.StartMonitoringExecute(r) +} + +/* +StartMonitoring Update assessment state and begin device monitoring + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param instanceId ID of instance + @param assessmentId ID of assessment + @return MatrixApiStartMonitoringRequest +*/ +func (a *MatrixApiService) StartMonitoring(ctx context.Context, instanceId string, assessmentId string) MatrixApiStartMonitoringRequest { + return MatrixApiStartMonitoringRequest{ + ApiService: a, + ctx: ctx, + instanceId: instanceId, + assessmentId: assessmentId, + } +} + +// Execute executes the request +func (a *MatrixApiService) StartMonitoringExecute(r MatrixApiStartMonitoringRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "MatrixApiService.StartMonitoring") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/v1/services/matrix/{instanceId}/assessments/{assessmentId}/start" + localVarPath = strings.Replace(localVarPath, "{"+"instanceId"+"}", url.PathEscape(parameterValueToString(r.instanceId, "instanceId")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"assessmentId"+"}", url.PathEscape(parameterValueToString(r.assessmentId, "assessmentId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 500 { + var v GetAssessmentsByInstanceId500Response + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type MatrixApiStopMonitoringRequest struct { + ctx context.Context + ApiService *MatrixApiService + instanceId string + assessmentId string +} + +func (r MatrixApiStopMonitoringRequest) Execute() (*http.Response, error) { + return r.ApiService.StopMonitoringExecute(r) +} + +/* +StopMonitoring Update assessment state and stop device monitoring + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param instanceId ID of instance + @param assessmentId ID of assessment + @return MatrixApiStopMonitoringRequest +*/ +func (a *MatrixApiService) StopMonitoring(ctx context.Context, instanceId string, assessmentId string) MatrixApiStopMonitoringRequest { + return MatrixApiStopMonitoringRequest{ + ApiService: a, + ctx: ctx, + instanceId: instanceId, + assessmentId: assessmentId, + } +} + +// Execute executes the request +func (a *MatrixApiService) StopMonitoringExecute(r MatrixApiStopMonitoringRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "MatrixApiService.StopMonitoring") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/v1/services/matrix/{instanceId}/assessments/{assessmentId}/stop" + localVarPath = strings.Replace(localVarPath, "{"+"instanceId"+"}", url.PathEscape(parameterValueToString(r.instanceId, "instanceId")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"assessmentId"+"}", url.PathEscape(parameterValueToString(r.assessmentId, "assessmentId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 500 { + var v GetAssessmentsByInstanceId500Response + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} diff --git a/api_models.go b/api_models.go index 7c004f12..750ecf52 100644 --- a/api_models.go +++ b/api_models.go @@ -3,7 +3,7 @@ Corellium API REST API to manage your virtual devices. -API version: 6.1.0-20784 +API version: 7.0.0-25053 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/api_net_connect.go b/api_net_connect.go new file mode 100644 index 00000000..15b54ef1 --- /dev/null +++ b/api_net_connect.go @@ -0,0 +1,653 @@ +/* +Corellium API + +REST API to manage your virtual devices. + +API version: 7.0.0-25053 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package corellium + +import ( + "bytes" + "context" + "io" + "net/http" + "net/url" + "strings" +) + + +// NetConnectApiService NetConnectApi service +type NetConnectApiService service + +type NetConnectApiV1CreateNetworkConnectionRequest struct { + ctx context.Context + ApiService *NetConnectApiService + createNetworkConnectionOptions *CreateNetworkConnectionOptions +} + +// Network Connection Options +func (r NetConnectApiV1CreateNetworkConnectionRequest) CreateNetworkConnectionOptions(createNetworkConnectionOptions CreateNetworkConnectionOptions) NetConnectApiV1CreateNetworkConnectionRequest { + r.createNetworkConnectionOptions = &createNetworkConnectionOptions + return r +} + +func (r NetConnectApiV1CreateNetworkConnectionRequest) Execute() (*http.Response, error) { + return r.ApiService.V1CreateNetworkConnectionExecute(r) +} + +/* +V1CreateNetworkConnection Create a new Network Connection + +You must have the domain administrator role to create a network connection. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return NetConnectApiV1CreateNetworkConnectionRequest +*/ +func (a *NetConnectApiService) V1CreateNetworkConnection(ctx context.Context) NetConnectApiV1CreateNetworkConnectionRequest { + return NetConnectApiV1CreateNetworkConnectionRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +func (a *NetConnectApiService) V1CreateNetworkConnectionExecute(r NetConnectApiV1CreateNetworkConnectionRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "NetConnectApiService.V1CreateNetworkConnection") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/v1/network/connections" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.createNetworkConnectionOptions == nil { + return nil, reportError("createNetworkConnectionOptions is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.createNetworkConnectionOptions + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type NetConnectApiV1DeleteNetworkConnectionRequest struct { + ctx context.Context + ApiService *NetConnectApiService + id string +} + +func (r NetConnectApiV1DeleteNetworkConnectionRequest) Execute() (*http.Response, error) { + return r.ApiService.V1DeleteNetworkConnectionExecute(r) +} + +/* +V1DeleteNetworkConnection Delete an existing Network Connection + +You must have the domain administrator role to delete a network connection. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id Network Connection Identifier - uuid + @return NetConnectApiV1DeleteNetworkConnectionRequest +*/ +func (a *NetConnectApiService) V1DeleteNetworkConnection(ctx context.Context, id string) NetConnectApiV1DeleteNetworkConnectionRequest { + return NetConnectApiV1DeleteNetworkConnectionRequest{ + ApiService: a, + ctx: ctx, + id: id, + } +} + +// Execute executes the request +func (a *NetConnectApiService) V1DeleteNetworkConnectionExecute(r NetConnectApiV1DeleteNetworkConnectionRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "NetConnectApiService.V1DeleteNetworkConnection") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/v1/network/connections/{id}" + localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 403 { + var v ApiError + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type NetConnectApiV1ListNetworkConnectionsRequest struct { + ctx context.Context + ApiService *NetConnectApiService +} + +func (r NetConnectApiV1ListNetworkConnectionsRequest) Execute() (*NetworkConnectionOffsetPaginationResult, *http.Response, error) { + return r.ApiService.V1ListNetworkConnectionsExecute(r) +} + +/* +V1ListNetworkConnections List available network connections + +You must have the domain administrator or project administrator role to list network connections. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return NetConnectApiV1ListNetworkConnectionsRequest +*/ +func (a *NetConnectApiService) V1ListNetworkConnections(ctx context.Context) NetConnectApiV1ListNetworkConnectionsRequest { + return NetConnectApiV1ListNetworkConnectionsRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return NetworkConnectionOffsetPaginationResult +func (a *NetConnectApiService) V1ListNetworkConnectionsExecute(r NetConnectApiV1ListNetworkConnectionsRequest) (*NetworkConnectionOffsetPaginationResult, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *NetworkConnectionOffsetPaginationResult + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "NetConnectApiService.V1ListNetworkConnections") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/v1/network/connections" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 403 { + var v ApiError + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type NetConnectApiV1ListNetworkProvidersRequest struct { + ctx context.Context + ApiService *NetConnectApiService +} + +func (r NetConnectApiV1ListNetworkProvidersRequest) Execute() (*NetworkConnectionProviderOffsetPaginationResult, *http.Response, error) { + return r.ApiService.V1ListNetworkProvidersExecute(r) +} + +/* +V1ListNetworkProviders List available network providers + +Provides a list of registered network providers to be used when [creating network connections](#post-/v1/network/connections). You +must have the domain administrator role to list network providers. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return NetConnectApiV1ListNetworkProvidersRequest +*/ +func (a *NetConnectApiService) V1ListNetworkProviders(ctx context.Context) NetConnectApiV1ListNetworkProvidersRequest { + return NetConnectApiV1ListNetworkProvidersRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return NetworkConnectionProviderOffsetPaginationResult +func (a *NetConnectApiService) V1ListNetworkProvidersExecute(r NetConnectApiV1ListNetworkProvidersRequest) (*NetworkConnectionProviderOffsetPaginationResult, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *NetworkConnectionProviderOffsetPaginationResult + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "NetConnectApiService.V1ListNetworkProviders") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/v1/network/providers" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 403 { + var v ApiError + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type NetConnectApiV1PartialUpdateNetworkConnectionRequest struct { + ctx context.Context + ApiService *NetConnectApiService + id string + updateNetworkConnectionOptions *UpdateNetworkConnectionOptions +} + +// Network Connection Options +func (r NetConnectApiV1PartialUpdateNetworkConnectionRequest) UpdateNetworkConnectionOptions(updateNetworkConnectionOptions UpdateNetworkConnectionOptions) NetConnectApiV1PartialUpdateNetworkConnectionRequest { + r.updateNetworkConnectionOptions = &updateNetworkConnectionOptions + return r +} + +func (r NetConnectApiV1PartialUpdateNetworkConnectionRequest) Execute() (*http.Response, error) { + return r.ApiService.V1PartialUpdateNetworkConnectionExecute(r) +} + +/* +V1PartialUpdateNetworkConnection Update Network Connection (partial) + +Only updates the specified attributes. You must have the domain administrator role to update a network connection. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id Network Connection Identifier - uuid + @return NetConnectApiV1PartialUpdateNetworkConnectionRequest +*/ +func (a *NetConnectApiService) V1PartialUpdateNetworkConnection(ctx context.Context, id string) NetConnectApiV1PartialUpdateNetworkConnectionRequest { + return NetConnectApiV1PartialUpdateNetworkConnectionRequest{ + ApiService: a, + ctx: ctx, + id: id, + } +} + +// Execute executes the request +func (a *NetConnectApiService) V1PartialUpdateNetworkConnectionExecute(r NetConnectApiV1PartialUpdateNetworkConnectionRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "NetConnectApiService.V1PartialUpdateNetworkConnection") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/v1/network/connections/{id}" + localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.updateNetworkConnectionOptions == nil { + return nil, reportError("updateNetworkConnectionOptions is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.updateNetworkConnectionOptions + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type NetConnectApiV1UpdateNetworkConnectionRequest struct { + ctx context.Context + ApiService *NetConnectApiService + id string + updateNetworkConnectionOptions *UpdateNetworkConnectionOptions +} + +// Network Connection Options +func (r NetConnectApiV1UpdateNetworkConnectionRequest) UpdateNetworkConnectionOptions(updateNetworkConnectionOptions UpdateNetworkConnectionOptions) NetConnectApiV1UpdateNetworkConnectionRequest { + r.updateNetworkConnectionOptions = &updateNetworkConnectionOptions + return r +} + +func (r NetConnectApiV1UpdateNetworkConnectionRequest) Execute() (*http.Response, error) { + return r.ApiService.V1UpdateNetworkConnectionExecute(r) +} + +/* +V1UpdateNetworkConnection Update Network Connection + +You must have the domain administrator role to update a network connection. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id Network Connection Identifier - uuid + @return NetConnectApiV1UpdateNetworkConnectionRequest +*/ +func (a *NetConnectApiService) V1UpdateNetworkConnection(ctx context.Context, id string) NetConnectApiV1UpdateNetworkConnectionRequest { + return NetConnectApiV1UpdateNetworkConnectionRequest{ + ApiService: a, + ctx: ctx, + id: id, + } +} + +// Execute executes the request +func (a *NetConnectApiService) V1UpdateNetworkConnectionExecute(r NetConnectApiV1UpdateNetworkConnectionRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "NetConnectApiService.V1UpdateNetworkConnection") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/v1/network/connections/{id}" + localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.updateNetworkConnectionOptions == nil { + return nil, reportError("updateNetworkConnectionOptions is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.updateNetworkConnectionOptions + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} diff --git a/api_netdump.go b/api_netdump.go index d47989d5..2033de88 100644 --- a/api_netdump.go +++ b/api_netdump.go @@ -3,7 +3,7 @@ Corellium API REST API to manage your virtual devices. -API version: 6.1.0-20784 +API version: 7.0.0-25053 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/api_projects.go b/api_projects.go index 118e1082..adbe3c2a 100644 --- a/api_projects.go +++ b/api_projects.go @@ -3,7 +3,7 @@ Corellium API REST API to manage your virtual devices. -API version: 6.1.0-20784 +API version: 7.0.0-25053 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -1318,6 +1318,17 @@ func (a *ProjectsApiService) V1UpdateProjectSettingsExecute(r ProjectsApiV1Updat body: localVarBody, error: localVarHTTPResponse.Status, } + if localVarHTTPResponse.StatusCode == 400 { + var v ApiError + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarHTTPResponse, newErr + } if localVarHTTPResponse.StatusCode == 403 { var v ApiError err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) diff --git a/api_roles.go b/api_roles.go index 962621f3..3faa4f19 100644 --- a/api_roles.go +++ b/api_roles.go @@ -3,7 +3,7 @@ Corellium API REST API to manage your virtual devices. -API version: 6.1.0-20784 +API version: 7.0.0-25053 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/api_snapshot_sharing.go b/api_snapshot_sharing.go new file mode 100644 index 00000000..a3b6e761 --- /dev/null +++ b/api_snapshot_sharing.go @@ -0,0 +1,684 @@ +/* +Corellium API + +REST API to manage your virtual devices. + +API version: 7.0.0-25053 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package corellium + +import ( + "bytes" + "context" + "io" + "net/http" + "net/url" + "strings" +) + + +// SnapshotSharingApiService SnapshotSharingApi service +type SnapshotSharingApiService service + +type SnapshotSharingApiV1AcceptSharedSnapshotRequest struct { + ctx context.Context + ApiService *SnapshotSharingApiService + postShareSnapshotRequestPayload *PostShareSnapshotRequestPayload +} + +// +func (r SnapshotSharingApiV1AcceptSharedSnapshotRequest) PostShareSnapshotRequestPayload(postShareSnapshotRequestPayload PostShareSnapshotRequestPayload) SnapshotSharingApiV1AcceptSharedSnapshotRequest { + r.postShareSnapshotRequestPayload = &postShareSnapshotRequestPayload + return r +} + +func (r SnapshotSharingApiV1AcceptSharedSnapshotRequest) Execute() (*Snapshot, *http.Response, error) { + return r.ApiService.V1AcceptSharedSnapshotExecute(r) +} + +/* +V1AcceptSharedSnapshot Accept a snapshot shared with you + +Accept a snapshot shared with you + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return SnapshotSharingApiV1AcceptSharedSnapshotRequest +*/ +func (a *SnapshotSharingApiService) V1AcceptSharedSnapshot(ctx context.Context) SnapshotSharingApiV1AcceptSharedSnapshotRequest { + return SnapshotSharingApiV1AcceptSharedSnapshotRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return Snapshot +func (a *SnapshotSharingApiService) V1AcceptSharedSnapshotExecute(r SnapshotSharingApiV1AcceptSharedSnapshotRequest) (*Snapshot, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *Snapshot + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "SnapshotSharingApiService.V1AcceptSharedSnapshot") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/v1/snapshots/accept" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.postShareSnapshotRequestPayload == nil { + return localVarReturnValue, nil, reportError("postShareSnapshotRequestPayload is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.postShareSnapshotRequestPayload + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 403 { + var v ApiError + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 404 { + var v UserError + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type SnapshotSharingApiV1DeleteSnapshotPermissionsRequest struct { + ctx context.Context + ApiService *SnapshotSharingApiService + snapshotId string + snapshotPermissionsRequestPayload *SnapshotPermissionsRequestPayload +} + +// +func (r SnapshotSharingApiV1DeleteSnapshotPermissionsRequest) SnapshotPermissionsRequestPayload(snapshotPermissionsRequestPayload SnapshotPermissionsRequestPayload) SnapshotSharingApiV1DeleteSnapshotPermissionsRequest { + r.snapshotPermissionsRequestPayload = &snapshotPermissionsRequestPayload + return r +} + +func (r SnapshotSharingApiV1DeleteSnapshotPermissionsRequest) Execute() (*Snapshot, *http.Response, error) { + return r.ApiService.V1DeleteSnapshotPermissionsExecute(r) +} + +/* +V1DeleteSnapshotPermissions Delete member(s) + +Deletes one or more members from the list of members who have access to the snapshot + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param snapshotId Snapshot ID - uuid + @return SnapshotSharingApiV1DeleteSnapshotPermissionsRequest +*/ +func (a *SnapshotSharingApiService) V1DeleteSnapshotPermissions(ctx context.Context, snapshotId string) SnapshotSharingApiV1DeleteSnapshotPermissionsRequest { + return SnapshotSharingApiV1DeleteSnapshotPermissionsRequest{ + ApiService: a, + ctx: ctx, + snapshotId: snapshotId, + } +} + +// Execute executes the request +// @return Snapshot +func (a *SnapshotSharingApiService) V1DeleteSnapshotPermissionsExecute(r SnapshotSharingApiV1DeleteSnapshotPermissionsRequest) (*Snapshot, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *Snapshot + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "SnapshotSharingApiService.V1DeleteSnapshotPermissions") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/v1/snapshots/{snapshotId}/permissions" + localVarPath = strings.Replace(localVarPath, "{"+"snapshotId"+"}", url.PathEscape(parameterValueToString(r.snapshotId, "snapshotId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.snapshotPermissionsRequestPayload == nil { + return localVarReturnValue, nil, reportError("snapshotPermissionsRequestPayload is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.snapshotPermissionsRequestPayload + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 403 { + var v ApiError + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 404 { + var v UserError + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type SnapshotSharingApiV1GetSharedSnapshotsRequest struct { + ctx context.Context + ApiService *SnapshotSharingApiService +} + +func (r SnapshotSharingApiV1GetSharedSnapshotsRequest) Execute() (*UserSnapshots, *http.Response, error) { + return r.ApiService.V1GetSharedSnapshotsExecute(r) +} + +/* +V1GetSharedSnapshots Fetch shared snapshots + +Fetch snapshots shared with and shared by the requesting user + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return SnapshotSharingApiV1GetSharedSnapshotsRequest +*/ +func (a *SnapshotSharingApiService) V1GetSharedSnapshots(ctx context.Context) SnapshotSharingApiV1GetSharedSnapshotsRequest { + return SnapshotSharingApiV1GetSharedSnapshotsRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// @return UserSnapshots +func (a *SnapshotSharingApiService) V1GetSharedSnapshotsExecute(r SnapshotSharingApiV1GetSharedSnapshotsRequest) (*UserSnapshots, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *UserSnapshots + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "SnapshotSharingApiService.V1GetSharedSnapshots") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/v1/snapshots/shared" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 403 { + var v ApiError + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 404 { + var v UserError + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type SnapshotSharingApiV1SetSnapshotPermissionsRequest struct { + ctx context.Context + ApiService *SnapshotSharingApiService + snapshotId string + snapshotPermissionsRequestPayload *SnapshotPermissionsRequestPayload +} + +// +func (r SnapshotSharingApiV1SetSnapshotPermissionsRequest) SnapshotPermissionsRequestPayload(snapshotPermissionsRequestPayload SnapshotPermissionsRequestPayload) SnapshotSharingApiV1SetSnapshotPermissionsRequest { + r.snapshotPermissionsRequestPayload = &snapshotPermissionsRequestPayload + return r +} + +func (r SnapshotSharingApiV1SetSnapshotPermissionsRequest) Execute() (*Snapshot, *http.Response, error) { + return r.ApiService.V1SetSnapshotPermissionsExecute(r) +} + +/* +V1SetSnapshotPermissions Set member list + +Sets the list of members who have access to the snapshot + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param snapshotId Snapshot ID - uuid + @return SnapshotSharingApiV1SetSnapshotPermissionsRequest +*/ +func (a *SnapshotSharingApiService) V1SetSnapshotPermissions(ctx context.Context, snapshotId string) SnapshotSharingApiV1SetSnapshotPermissionsRequest { + return SnapshotSharingApiV1SetSnapshotPermissionsRequest{ + ApiService: a, + ctx: ctx, + snapshotId: snapshotId, + } +} + +// Execute executes the request +// @return Snapshot +func (a *SnapshotSharingApiService) V1SetSnapshotPermissionsExecute(r SnapshotSharingApiV1SetSnapshotPermissionsRequest) (*Snapshot, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *Snapshot + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "SnapshotSharingApiService.V1SetSnapshotPermissions") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/v1/snapshots/{snapshotId}/permissions" + localVarPath = strings.Replace(localVarPath, "{"+"snapshotId"+"}", url.PathEscape(parameterValueToString(r.snapshotId, "snapshotId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.snapshotPermissionsRequestPayload == nil { + return localVarReturnValue, nil, reportError("snapshotPermissionsRequestPayload is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.snapshotPermissionsRequestPayload + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 403 { + var v ApiError + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 404 { + var v UserError + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type SnapshotSharingApiV1ShareSnapshotRequest struct { + ctx context.Context + ApiService *SnapshotSharingApiService + snapshotId string + postShareSnapshotRequestPayload *PostShareSnapshotRequestPayload +} + +// +func (r SnapshotSharingApiV1ShareSnapshotRequest) PostShareSnapshotRequestPayload(postShareSnapshotRequestPayload PostShareSnapshotRequestPayload) SnapshotSharingApiV1ShareSnapshotRequest { + r.postShareSnapshotRequestPayload = &postShareSnapshotRequestPayload + return r +} + +func (r SnapshotSharingApiV1ShareSnapshotRequest) Execute() (*Snapshot, *http.Response, error) { + return r.ApiService.V1ShareSnapshotExecute(r) +} + +/* +V1ShareSnapshot Share snapshot + +Share a snapshot + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param snapshotId Snapshot ID - uuid + @return SnapshotSharingApiV1ShareSnapshotRequest +*/ +func (a *SnapshotSharingApiService) V1ShareSnapshot(ctx context.Context, snapshotId string) SnapshotSharingApiV1ShareSnapshotRequest { + return SnapshotSharingApiV1ShareSnapshotRequest{ + ApiService: a, + ctx: ctx, + snapshotId: snapshotId, + } +} + +// Execute executes the request +// @return Snapshot +func (a *SnapshotSharingApiService) V1ShareSnapshotExecute(r SnapshotSharingApiV1ShareSnapshotRequest) (*Snapshot, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *Snapshot + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "SnapshotSharingApiService.V1ShareSnapshot") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/v1/snapshots/{snapshotId}/share" + localVarPath = strings.Replace(localVarPath, "{"+"snapshotId"+"}", url.PathEscape(parameterValueToString(r.snapshotId, "snapshotId")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.postShareSnapshotRequestPayload == nil { + return localVarReturnValue, nil, reportError("postShareSnapshotRequestPayload is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.postShareSnapshotRequestPayload + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + if localVarHTTPResponse.StatusCode == 403 { + var v ApiError + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + return localVarReturnValue, localVarHTTPResponse, newErr + } + if localVarHTTPResponse.StatusCode == 404 { + var v UserError + err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr.error = err.Error() + return localVarReturnValue, localVarHTTPResponse, newErr + } + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} diff --git a/api_snapshots.go b/api_snapshots.go index 7296e9e9..3afde841 100644 --- a/api_snapshots.go +++ b/api_snapshots.go @@ -3,7 +3,7 @@ Corellium API REST API to manage your virtual devices. -API version: 6.1.0-20784 +API version: 7.0.0-25053 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -169,7 +169,7 @@ func (r SnapshotsApiV1DeleteInstanceSnapshotRequest) Execute() (*http.Response, } /* -V1DeleteInstanceSnapshot Delete a Snapshot +V1DeleteInstanceSnapshot Delete an Instance Snapshot @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param instanceId Instance ID - uuid @@ -383,140 +383,6 @@ func (a *SnapshotsApiService) V1DeleteSnapshotExecute(r SnapshotsApiV1DeleteSnap return localVarHTTPResponse, nil } -type SnapshotsApiV1DeleteSnapshotPermissionsRequest struct { - ctx context.Context - ApiService *SnapshotsApiService - snapshotId string - deleteSnapshotPermissionsRequestPayload *DeleteSnapshotPermissionsRequestPayload -} - -// -func (r SnapshotsApiV1DeleteSnapshotPermissionsRequest) DeleteSnapshotPermissionsRequestPayload(deleteSnapshotPermissionsRequestPayload DeleteSnapshotPermissionsRequestPayload) SnapshotsApiV1DeleteSnapshotPermissionsRequest { - r.deleteSnapshotPermissionsRequestPayload = &deleteSnapshotPermissionsRequestPayload - return r -} - -func (r SnapshotsApiV1DeleteSnapshotPermissionsRequest) Execute() (*Snapshot, *http.Response, error) { - return r.ApiService.V1DeleteSnapshotPermissionsExecute(r) -} - -/* -V1DeleteSnapshotPermissions Remove a user from the list of users who have access to the snapshot - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param snapshotId Snapshot ID - uuid - @return SnapshotsApiV1DeleteSnapshotPermissionsRequest -*/ -func (a *SnapshotsApiService) V1DeleteSnapshotPermissions(ctx context.Context, snapshotId string) SnapshotsApiV1DeleteSnapshotPermissionsRequest { - return SnapshotsApiV1DeleteSnapshotPermissionsRequest{ - ApiService: a, - ctx: ctx, - snapshotId: snapshotId, - } -} - -// Execute executes the request -// @return Snapshot -func (a *SnapshotsApiService) V1DeleteSnapshotPermissionsExecute(r SnapshotsApiV1DeleteSnapshotPermissionsRequest) (*Snapshot, *http.Response, error) { - var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *Snapshot - ) - - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "SnapshotsApiService.V1DeleteSnapshotPermissions") - if err != nil { - return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} - } - - localVarPath := localBasePath + "/v1/snapshots/{snapshotId}/permissions" - localVarPath = strings.Replace(localVarPath, "{"+"snapshotId"+"}", url.PathEscape(parameterValueToString(r.snapshotId, "snapshotId")), -1) - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - if r.deleteSnapshotPermissionsRequestPayload == nil { - return localVarReturnValue, nil, reportError("deleteSnapshotPermissionsRequestPayload is required and must be specified") - } - - // to determine the Content-Type header - localVarHTTPContentTypes := []string{"application/json"} - - // set Content-Type header - localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) - if localVarHTTPContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHTTPContentType - } - - // to determine the Accept header - localVarHTTPHeaderAccepts := []string{"application/json"} - - // set Accept header - localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) - if localVarHTTPHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept - } - // body params - localVarPostBody = r.deleteSnapshotPermissionsRequestPayload - req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) - if err != nil { - return localVarReturnValue, nil, err - } - - localVarHTTPResponse, err := a.client.callAPI(req) - if err != nil || localVarHTTPResponse == nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) - localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) - if err != nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - if localVarHTTPResponse.StatusCode >= 300 { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: localVarHTTPResponse.Status, - } - if localVarHTTPResponse.StatusCode == 403 { - var v ApiError - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v - return localVarReturnValue, localVarHTTPResponse, newErr - } - if localVarHTTPResponse.StatusCode == 404 { - var v UserError - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: err.Error(), - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - return localVarReturnValue, localVarHTTPResponse, nil -} - type SnapshotsApiV1GetInstanceSnapshotRequest struct { ctx context.Context ApiService *SnapshotsApiService @@ -765,124 +631,6 @@ func (a *SnapshotsApiService) V1GetInstanceSnapshotsExecute(r SnapshotsApiV1GetI return localVarReturnValue, localVarHTTPResponse, nil } -type SnapshotsApiV1GetSharedSnapshotsRequest struct { - ctx context.Context - ApiService *SnapshotsApiService -} - -func (r SnapshotsApiV1GetSharedSnapshotsRequest) Execute() (*Snapshot, *http.Response, error) { - return r.ApiService.V1GetSharedSnapshotsExecute(r) -} - -/* -V1GetSharedSnapshots Fetch snapshots shared with and shared by the requesting user - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return SnapshotsApiV1GetSharedSnapshotsRequest -*/ -func (a *SnapshotsApiService) V1GetSharedSnapshots(ctx context.Context) SnapshotsApiV1GetSharedSnapshotsRequest { - return SnapshotsApiV1GetSharedSnapshotsRequest{ - ApiService: a, - ctx: ctx, - } -} - -// Execute executes the request -// @return Snapshot -func (a *SnapshotsApiService) V1GetSharedSnapshotsExecute(r SnapshotsApiV1GetSharedSnapshotsRequest) (*Snapshot, *http.Response, error) { - var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *Snapshot - ) - - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "SnapshotsApiService.V1GetSharedSnapshots") - if err != nil { - return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} - } - - localVarPath := localBasePath + "/v1/snapshots" - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - - // to determine the Content-Type header - localVarHTTPContentTypes := []string{} - - // set Content-Type header - localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) - if localVarHTTPContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHTTPContentType - } - - // to determine the Accept header - localVarHTTPHeaderAccepts := []string{"application/json"} - - // set Accept header - localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) - if localVarHTTPHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept - } - req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) - if err != nil { - return localVarReturnValue, nil, err - } - - localVarHTTPResponse, err := a.client.callAPI(req) - if err != nil || localVarHTTPResponse == nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) - localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) - if err != nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - if localVarHTTPResponse.StatusCode >= 300 { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: localVarHTTPResponse.Status, - } - if localVarHTTPResponse.StatusCode == 403 { - var v ApiError - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v - return localVarReturnValue, localVarHTTPResponse, newErr - } - if localVarHTTPResponse.StatusCode == 404 { - var v UserError - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: err.Error(), - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - return localVarReturnValue, localVarHTTPResponse, nil -} - type SnapshotsApiV1GetSnapshotRequest struct { ctx context.Context ApiService *SnapshotsApiService @@ -1024,7 +772,7 @@ func (r SnapshotsApiV1RenameInstanceSnapshotRequest) Execute() (*Snapshot, *http } /* -V1RenameInstanceSnapshot Rename a Snapshot +V1RenameInstanceSnapshot Rename an Instance Snapshot @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param instanceId Instance ID - uuid @@ -1155,7 +903,7 @@ func (r SnapshotsApiV1RestoreInstanceSnapshotRequest) Execute() (*http.Response, } /* -V1RestoreInstanceSnapshot Restore a Snapshot +V1RestoreInstanceSnapshot Restore an Instance Snapshot @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param instanceId Instance ID - uuid @@ -1258,140 +1006,6 @@ func (a *SnapshotsApiService) V1RestoreInstanceSnapshotExecute(r SnapshotsApiV1R return localVarHTTPResponse, nil } -type SnapshotsApiV1SetSnapshotPermissionsRequest struct { - ctx context.Context - ApiService *SnapshotsApiService - snapshotId string - postSnapshotPermissionsRequestPayload *PostSnapshotPermissionsRequestPayload -} - -// -func (r SnapshotsApiV1SetSnapshotPermissionsRequest) PostSnapshotPermissionsRequestPayload(postSnapshotPermissionsRequestPayload PostSnapshotPermissionsRequestPayload) SnapshotsApiV1SetSnapshotPermissionsRequest { - r.postSnapshotPermissionsRequestPayload = &postSnapshotPermissionsRequestPayload - return r -} - -func (r SnapshotsApiV1SetSnapshotPermissionsRequest) Execute() (*Snapshot, *http.Response, error) { - return r.ApiService.V1SetSnapshotPermissionsExecute(r) -} - -/* -V1SetSnapshotPermissions Add a user to the list of users who have access to the snapshot - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param snapshotId Snapshot ID - uuid - @return SnapshotsApiV1SetSnapshotPermissionsRequest -*/ -func (a *SnapshotsApiService) V1SetSnapshotPermissions(ctx context.Context, snapshotId string) SnapshotsApiV1SetSnapshotPermissionsRequest { - return SnapshotsApiV1SetSnapshotPermissionsRequest{ - ApiService: a, - ctx: ctx, - snapshotId: snapshotId, - } -} - -// Execute executes the request -// @return Snapshot -func (a *SnapshotsApiService) V1SetSnapshotPermissionsExecute(r SnapshotsApiV1SetSnapshotPermissionsRequest) (*Snapshot, *http.Response, error) { - var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *Snapshot - ) - - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "SnapshotsApiService.V1SetSnapshotPermissions") - if err != nil { - return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} - } - - localVarPath := localBasePath + "/v1/snapshots/{snapshotId}/permissions" - localVarPath = strings.Replace(localVarPath, "{"+"snapshotId"+"}", url.PathEscape(parameterValueToString(r.snapshotId, "snapshotId")), -1) - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - if r.postSnapshotPermissionsRequestPayload == nil { - return localVarReturnValue, nil, reportError("postSnapshotPermissionsRequestPayload is required and must be specified") - } - - // to determine the Content-Type header - localVarHTTPContentTypes := []string{"application/json"} - - // set Content-Type header - localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) - if localVarHTTPContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHTTPContentType - } - - // to determine the Accept header - localVarHTTPHeaderAccepts := []string{"application/json"} - - // set Accept header - localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) - if localVarHTTPHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept - } - // body params - localVarPostBody = r.postSnapshotPermissionsRequestPayload - req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) - if err != nil { - return localVarReturnValue, nil, err - } - - localVarHTTPResponse, err := a.client.callAPI(req) - if err != nil || localVarHTTPResponse == nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) - localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) - if err != nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - if localVarHTTPResponse.StatusCode >= 300 { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: localVarHTTPResponse.Status, - } - if localVarHTTPResponse.StatusCode == 403 { - var v ApiError - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v - return localVarReturnValue, localVarHTTPResponse, newErr - } - if localVarHTTPResponse.StatusCode == 404 { - var v UserError - err = a.client.decode(&v, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr.error = err.Error() - return localVarReturnValue, localVarHTTPResponse, newErr - } - newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) - newErr.model = v - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: err.Error(), - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - return localVarReturnValue, localVarHTTPResponse, nil -} - type SnapshotsApiV1SnapshotRenameRequest struct { ctx context.Context ApiService *SnapshotsApiService diff --git a/api_status.go b/api_status.go index 0869d111..eaba40d7 100644 --- a/api_status.go +++ b/api_status.go @@ -3,7 +3,7 @@ Corellium API REST API to manage your virtual devices. -API version: 6.1.0-20784 +API version: 7.0.0-25053 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/api_teams.go b/api_teams.go index 22d8fde0..9e9996e5 100644 --- a/api_teams.go +++ b/api_teams.go @@ -3,7 +3,7 @@ Corellium API REST API to manage your virtual devices. -API version: 6.1.0-20784 +API version: 7.0.0-25053 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/api_users.go b/api_users.go index 42a29ab1..baff9197 100644 --- a/api_users.go +++ b/api_users.go @@ -3,7 +3,7 @@ Corellium API REST API to manage your virtual devices. -API version: 6.1.0-20784 +API version: 7.0.0-25053 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/api_web_player.go b/api_web_player.go index aafb7c0a..033681ea 100644 --- a/api_web_player.go +++ b/api_web_player.go @@ -3,7 +3,7 @@ Corellium API REST API to manage your virtual devices. -API version: 5.0.0-17089 +API version: 7.0.0-25053 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/client.go b/client.go index 6ed1eb21..8fd5ecac 100644 --- a/client.go +++ b/client.go @@ -3,7 +3,7 @@ Corellium API REST API to manage your virtual devices. -API version: 6.1.0-20784 +API version: 7.0.0-25053 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -41,7 +41,7 @@ var ( queryDescape = strings.NewReplacer( "%5B", "[", "%5D", "]" ) ) -// APIClient manages communication with the Corellium API API v6.1.0-20784 +// APIClient manages communication with the Corellium API API v7.0.0-25053 // In most cases there should be only one, shared, APIClient. type APIClient struct { cfg *Configuration @@ -49,6 +49,8 @@ type APIClient struct { // API Services + ActivityApi *ActivityApiService + AgentApi *AgentApiService AuthenticationApi *AuthenticationApiService @@ -57,6 +59,8 @@ type APIClient struct { CoreTraceApi *CoreTraceApiService + DomainApi *DomainApiService + DomainAuthProviderApi *DomainAuthProviderApiService HyperTraceApi *HyperTraceApiService @@ -67,25 +71,29 @@ type APIClient struct { InstancesApi *InstancesApiService - LicensingApi *LicensingApiService + MatrixApi *MatrixApiService ModelsApi *ModelsApiService + NetConnectApi *NetConnectApiService + NetdumpApi *NetdumpApiService ProjectsApi *ProjectsApiService RolesApi *RolesApiService + SnapshotSharingApi *SnapshotSharingApiService + SnapshotsApi *SnapshotsApiService StatusApi *StatusApiService TeamsApi *TeamsApiService - TrialRequestsApi *TrialRequestsApiService - UsersApi *UsersApiService + + WebPlayerApi *WebPlayerApiService } type service struct { @@ -104,25 +112,29 @@ func NewAPIClient(cfg *Configuration) *APIClient { c.common.client = c // API Services + c.ActivityApi = (*ActivityApiService)(&c.common) c.AgentApi = (*AgentApiService)(&c.common) c.AuthenticationApi = (*AuthenticationApiService)(&c.common) c.ConfigApi = (*ConfigApiService)(&c.common) c.CoreTraceApi = (*CoreTraceApiService)(&c.common) + c.DomainApi = (*DomainApiService)(&c.common) c.DomainAuthProviderApi = (*DomainAuthProviderApiService)(&c.common) c.HyperTraceApi = (*HyperTraceApiService)(&c.common) c.HypervisorHooksApi = (*HypervisorHooksApiService)(&c.common) c.ImagesApi = (*ImagesApiService)(&c.common) c.InstancesApi = (*InstancesApiService)(&c.common) - c.LicensingApi = (*LicensingApiService)(&c.common) + c.MatrixApi = (*MatrixApiService)(&c.common) c.ModelsApi = (*ModelsApiService)(&c.common) + c.NetConnectApi = (*NetConnectApiService)(&c.common) c.NetdumpApi = (*NetdumpApiService)(&c.common) c.ProjectsApi = (*ProjectsApiService)(&c.common) c.RolesApi = (*RolesApiService)(&c.common) + c.SnapshotSharingApi = (*SnapshotSharingApiService)(&c.common) c.SnapshotsApi = (*SnapshotsApiService)(&c.common) c.StatusApi = (*StatusApiService)(&c.common) c.TeamsApi = (*TeamsApiService)(&c.common) - c.TrialRequestsApi = (*TrialRequestsApiService)(&c.common) c.UsersApi = (*UsersApiService)(&c.common) + c.WebPlayerApi = (*WebPlayerApiService)(&c.common) return c } diff --git a/configuration.go b/configuration.go index cc4bd731..1ddfbc8a 100644 --- a/configuration.go +++ b/configuration.go @@ -3,7 +3,7 @@ Corellium API REST API to manage your virtual devices. -API version: 6.1.0-20784 +API version: 7.0.0-25053 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/docs/ActivityApi.md b/docs/ActivityApi.md new file mode 100644 index 00000000..cdae96dc --- /dev/null +++ b/docs/ActivityApi.md @@ -0,0 +1,73 @@ +# \ActivityApi + +All URIs are relative to *https://app.corellium.com/api* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**V1ActivityList**](ActivityApi.md#V1ActivityList) | **Get** /v1/activity | Get resource activities + + + +## V1ActivityList + +> ActivityList V1ActivityList(ctx).Request(request).Execute() + +Get resource activities + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/corellium/go-corellium-api-client" +) + +func main() { + request := map[string][]openapiclient.ActivityRequest{ ... } // ActivityRequest | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ActivityApi.V1ActivityList(context.Background()).Request(request).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ActivityApi.V1ActivityList``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `V1ActivityList`: ActivityList + fmt.Fprintf(os.Stdout, "Response from `ActivityApi.V1ActivityList`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiV1ActivityListRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **request** | [**ActivityRequest**](ActivityRequest.md) | | + +### Return type + +[**ActivityList**](ActivityList.md) + +### Authorization + +[BearerAuth](../README.md#BearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + diff --git a/docs/ActivityEntry.md b/docs/ActivityEntry.md new file mode 100644 index 00000000..e9cee409 --- /dev/null +++ b/docs/ActivityEntry.md @@ -0,0 +1,138 @@ +# ActivityEntry + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | Pointer to **NullableString** | Unique identifier for the activity entry | [optional] +**Resource** | Pointer to **NullableString** | Resource associated with the activity | [optional] +**Timestamp** | Pointer to **NullableString** | Timestamp of the activity | [optional] + +## Methods + +### NewActivityEntry + +`func NewActivityEntry() *ActivityEntry` + +NewActivityEntry instantiates a new ActivityEntry object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewActivityEntryWithDefaults + +`func NewActivityEntryWithDefaults() *ActivityEntry` + +NewActivityEntryWithDefaults instantiates a new ActivityEntry object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetId + +`func (o *ActivityEntry) GetId() string` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *ActivityEntry) GetIdOk() (*string, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *ActivityEntry) SetId(v string)` + +SetId sets Id field to given value. + +### HasId + +`func (o *ActivityEntry) HasId() bool` + +HasId returns a boolean if a field has been set. + +### SetIdNil + +`func (o *ActivityEntry) SetIdNil(b bool)` + + SetIdNil sets the value for Id to be an explicit nil + +### UnsetId +`func (o *ActivityEntry) UnsetId()` + +UnsetId ensures that no value is present for Id, not even an explicit nil +### GetResource + +`func (o *ActivityEntry) GetResource() string` + +GetResource returns the Resource field if non-nil, zero value otherwise. + +### GetResourceOk + +`func (o *ActivityEntry) GetResourceOk() (*string, bool)` + +GetResourceOk returns a tuple with the Resource field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetResource + +`func (o *ActivityEntry) SetResource(v string)` + +SetResource sets Resource field to given value. + +### HasResource + +`func (o *ActivityEntry) HasResource() bool` + +HasResource returns a boolean if a field has been set. + +### SetResourceNil + +`func (o *ActivityEntry) SetResourceNil(b bool)` + + SetResourceNil sets the value for Resource to be an explicit nil + +### UnsetResource +`func (o *ActivityEntry) UnsetResource()` + +UnsetResource ensures that no value is present for Resource, not even an explicit nil +### GetTimestamp + +`func (o *ActivityEntry) GetTimestamp() string` + +GetTimestamp returns the Timestamp field if non-nil, zero value otherwise. + +### GetTimestampOk + +`func (o *ActivityEntry) GetTimestampOk() (*string, bool)` + +GetTimestampOk returns a tuple with the Timestamp field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTimestamp + +`func (o *ActivityEntry) SetTimestamp(v string)` + +SetTimestamp sets Timestamp field to given value. + +### HasTimestamp + +`func (o *ActivityEntry) HasTimestamp() bool` + +HasTimestamp returns a boolean if a field has been set. + +### SetTimestampNil + +`func (o *ActivityEntry) SetTimestampNil(b bool)` + + SetTimestampNil sets the value for Timestamp to be an explicit nil + +### UnsetTimestamp +`func (o *ActivityEntry) UnsetTimestamp()` + +UnsetTimestamp ensures that no value is present for Timestamp, not even an explicit nil + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ActivityList.md b/docs/ActivityList.md new file mode 100644 index 00000000..389abd0c --- /dev/null +++ b/docs/ActivityList.md @@ -0,0 +1,102 @@ +# ActivityList + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Items** | Pointer to [**[]ActivityEntry**](ActivityEntry.md) | List of activity entries | [optional] +**Total** | Pointer to **NullableFloat32** | Total number of entries | [optional] + +## Methods + +### NewActivityList + +`func NewActivityList() *ActivityList` + +NewActivityList instantiates a new ActivityList object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewActivityListWithDefaults + +`func NewActivityListWithDefaults() *ActivityList` + +NewActivityListWithDefaults instantiates a new ActivityList object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetItems + +`func (o *ActivityList) GetItems() []ActivityEntry` + +GetItems returns the Items field if non-nil, zero value otherwise. + +### GetItemsOk + +`func (o *ActivityList) GetItemsOk() (*[]ActivityEntry, bool)` + +GetItemsOk returns a tuple with the Items field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetItems + +`func (o *ActivityList) SetItems(v []ActivityEntry)` + +SetItems sets Items field to given value. + +### HasItems + +`func (o *ActivityList) HasItems() bool` + +HasItems returns a boolean if a field has been set. + +### SetItemsNil + +`func (o *ActivityList) SetItemsNil(b bool)` + + SetItemsNil sets the value for Items to be an explicit nil + +### UnsetItems +`func (o *ActivityList) UnsetItems()` + +UnsetItems ensures that no value is present for Items, not even an explicit nil +### GetTotal + +`func (o *ActivityList) GetTotal() float32` + +GetTotal returns the Total field if non-nil, zero value otherwise. + +### GetTotalOk + +`func (o *ActivityList) GetTotalOk() (*float32, bool)` + +GetTotalOk returns a tuple with the Total field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTotal + +`func (o *ActivityList) SetTotal(v float32)` + +SetTotal sets Total field to given value. + +### HasTotal + +`func (o *ActivityList) HasTotal() bool` + +HasTotal returns a boolean if a field has been set. + +### SetTotalNil + +`func (o *ActivityList) SetTotalNil(b bool)` + + SetTotalNil sets the value for Total to be an explicit nil + +### UnsetTotal +`func (o *ActivityList) UnsetTotal()` + +UnsetTotal ensures that no value is present for Total, not even an explicit nil + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ActivityRequest.md b/docs/ActivityRequest.md new file mode 100644 index 00000000..a15c2f5b --- /dev/null +++ b/docs/ActivityRequest.md @@ -0,0 +1,165 @@ +# ActivityRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Resource** | **string** | Resource filter | +**Limit** | **float32** | Number of entries to return | +**OrderBy** | **string** | Sorting order ('-timestamp' or 'timestamp') | +**Page** | Pointer to **NullableFloat32** | Paginated results. Must be a positive integer. If not provided, defaults to the first page. | [optional] +**Instance** | Pointer to **NullableString** | Instance identifier used to filter instance resources | [optional] + +## Methods + +### NewActivityRequest + +`func NewActivityRequest(resource string, limit float32, orderBy string, ) *ActivityRequest` + +NewActivityRequest instantiates a new ActivityRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewActivityRequestWithDefaults + +`func NewActivityRequestWithDefaults() *ActivityRequest` + +NewActivityRequestWithDefaults instantiates a new ActivityRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetResource + +`func (o *ActivityRequest) GetResource() string` + +GetResource returns the Resource field if non-nil, zero value otherwise. + +### GetResourceOk + +`func (o *ActivityRequest) GetResourceOk() (*string, bool)` + +GetResourceOk returns a tuple with the Resource field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetResource + +`func (o *ActivityRequest) SetResource(v string)` + +SetResource sets Resource field to given value. + + +### GetLimit + +`func (o *ActivityRequest) GetLimit() float32` + +GetLimit returns the Limit field if non-nil, zero value otherwise. + +### GetLimitOk + +`func (o *ActivityRequest) GetLimitOk() (*float32, bool)` + +GetLimitOk returns a tuple with the Limit field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLimit + +`func (o *ActivityRequest) SetLimit(v float32)` + +SetLimit sets Limit field to given value. + + +### GetOrderBy + +`func (o *ActivityRequest) GetOrderBy() string` + +GetOrderBy returns the OrderBy field if non-nil, zero value otherwise. + +### GetOrderByOk + +`func (o *ActivityRequest) GetOrderByOk() (*string, bool)` + +GetOrderByOk returns a tuple with the OrderBy field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOrderBy + +`func (o *ActivityRequest) SetOrderBy(v string)` + +SetOrderBy sets OrderBy field to given value. + + +### GetPage + +`func (o *ActivityRequest) GetPage() float32` + +GetPage returns the Page field if non-nil, zero value otherwise. + +### GetPageOk + +`func (o *ActivityRequest) GetPageOk() (*float32, bool)` + +GetPageOk returns a tuple with the Page field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPage + +`func (o *ActivityRequest) SetPage(v float32)` + +SetPage sets Page field to given value. + +### HasPage + +`func (o *ActivityRequest) HasPage() bool` + +HasPage returns a boolean if a field has been set. + +### SetPageNil + +`func (o *ActivityRequest) SetPageNil(b bool)` + + SetPageNil sets the value for Page to be an explicit nil + +### UnsetPage +`func (o *ActivityRequest) UnsetPage()` + +UnsetPage ensures that no value is present for Page, not even an explicit nil +### GetInstance + +`func (o *ActivityRequest) GetInstance() string` + +GetInstance returns the Instance field if non-nil, zero value otherwise. + +### GetInstanceOk + +`func (o *ActivityRequest) GetInstanceOk() (*string, bool)` + +GetInstanceOk returns a tuple with the Instance field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetInstance + +`func (o *ActivityRequest) SetInstance(v string)` + +SetInstance sets Instance field to given value. + +### HasInstance + +`func (o *ActivityRequest) HasInstance() bool` + +HasInstance returns a boolean if a field has been set. + +### SetInstanceNil + +`func (o *ActivityRequest) SetInstanceNil(b bool)` + + SetInstanceNil sets the value for Instance to be an explicit nil + +### UnsetInstance +`func (o *ActivityRequest) UnsetInstance()` + +UnsetInstance ensures that no value is present for Instance, not even an explicit nil + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/Assessment.md b/docs/Assessment.md new file mode 100644 index 00000000..751b43f0 --- /dev/null +++ b/docs/Assessment.md @@ -0,0 +1,327 @@ +# Assessment + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**CreatedAt** | Pointer to **time.Time** | | [optional] +**UpdatedAt** | Pointer to **time.Time** | | [optional] +**CreatedBy** | Pointer to **string** | | [optional] +**ReportId** | Pointer to **string** | | [optional] +**Bundle** | Pointer to **map[string]interface{}** | | [optional] +**Results** | Pointer to **map[string]interface{}** | | [optional] +**Metadata** | Pointer to **map[string]interface{}** | | [optional] +**WordlistId** | Pointer to **string** | | [optional] +**Wordlist** | Pointer to **map[string]interface{}** | | [optional] +**InstanceId** | **string** | | +**BundleId** | **string** | | +**Status** | **string** | | + +## Methods + +### NewAssessment + +`func NewAssessment(instanceId string, bundleId string, status string, ) *Assessment` + +NewAssessment instantiates a new Assessment object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewAssessmentWithDefaults + +`func NewAssessmentWithDefaults() *Assessment` + +NewAssessmentWithDefaults instantiates a new Assessment object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetCreatedAt + +`func (o *Assessment) GetCreatedAt() time.Time` + +GetCreatedAt returns the CreatedAt field if non-nil, zero value otherwise. + +### GetCreatedAtOk + +`func (o *Assessment) GetCreatedAtOk() (*time.Time, bool)` + +GetCreatedAtOk returns a tuple with the CreatedAt field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCreatedAt + +`func (o *Assessment) SetCreatedAt(v time.Time)` + +SetCreatedAt sets CreatedAt field to given value. + +### HasCreatedAt + +`func (o *Assessment) HasCreatedAt() bool` + +HasCreatedAt returns a boolean if a field has been set. + +### GetUpdatedAt + +`func (o *Assessment) GetUpdatedAt() time.Time` + +GetUpdatedAt returns the UpdatedAt field if non-nil, zero value otherwise. + +### GetUpdatedAtOk + +`func (o *Assessment) GetUpdatedAtOk() (*time.Time, bool)` + +GetUpdatedAtOk returns a tuple with the UpdatedAt field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUpdatedAt + +`func (o *Assessment) SetUpdatedAt(v time.Time)` + +SetUpdatedAt sets UpdatedAt field to given value. + +### HasUpdatedAt + +`func (o *Assessment) HasUpdatedAt() bool` + +HasUpdatedAt returns a boolean if a field has been set. + +### GetCreatedBy + +`func (o *Assessment) GetCreatedBy() string` + +GetCreatedBy returns the CreatedBy field if non-nil, zero value otherwise. + +### GetCreatedByOk + +`func (o *Assessment) GetCreatedByOk() (*string, bool)` + +GetCreatedByOk returns a tuple with the CreatedBy field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCreatedBy + +`func (o *Assessment) SetCreatedBy(v string)` + +SetCreatedBy sets CreatedBy field to given value. + +### HasCreatedBy + +`func (o *Assessment) HasCreatedBy() bool` + +HasCreatedBy returns a boolean if a field has been set. + +### GetReportId + +`func (o *Assessment) GetReportId() string` + +GetReportId returns the ReportId field if non-nil, zero value otherwise. + +### GetReportIdOk + +`func (o *Assessment) GetReportIdOk() (*string, bool)` + +GetReportIdOk returns a tuple with the ReportId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetReportId + +`func (o *Assessment) SetReportId(v string)` + +SetReportId sets ReportId field to given value. + +### HasReportId + +`func (o *Assessment) HasReportId() bool` + +HasReportId returns a boolean if a field has been set. + +### GetBundle + +`func (o *Assessment) GetBundle() map[string]interface{}` + +GetBundle returns the Bundle field if non-nil, zero value otherwise. + +### GetBundleOk + +`func (o *Assessment) GetBundleOk() (*map[string]interface{}, bool)` + +GetBundleOk returns a tuple with the Bundle field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetBundle + +`func (o *Assessment) SetBundle(v map[string]interface{})` + +SetBundle sets Bundle field to given value. + +### HasBundle + +`func (o *Assessment) HasBundle() bool` + +HasBundle returns a boolean if a field has been set. + +### GetResults + +`func (o *Assessment) GetResults() map[string]interface{}` + +GetResults returns the Results field if non-nil, zero value otherwise. + +### GetResultsOk + +`func (o *Assessment) GetResultsOk() (*map[string]interface{}, bool)` + +GetResultsOk returns a tuple with the Results field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetResults + +`func (o *Assessment) SetResults(v map[string]interface{})` + +SetResults sets Results field to given value. + +### HasResults + +`func (o *Assessment) HasResults() bool` + +HasResults returns a boolean if a field has been set. + +### GetMetadata + +`func (o *Assessment) GetMetadata() map[string]interface{}` + +GetMetadata returns the Metadata field if non-nil, zero value otherwise. + +### GetMetadataOk + +`func (o *Assessment) GetMetadataOk() (*map[string]interface{}, bool)` + +GetMetadataOk returns a tuple with the Metadata field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMetadata + +`func (o *Assessment) SetMetadata(v map[string]interface{})` + +SetMetadata sets Metadata field to given value. + +### HasMetadata + +`func (o *Assessment) HasMetadata() bool` + +HasMetadata returns a boolean if a field has been set. + +### GetWordlistId + +`func (o *Assessment) GetWordlistId() string` + +GetWordlistId returns the WordlistId field if non-nil, zero value otherwise. + +### GetWordlistIdOk + +`func (o *Assessment) GetWordlistIdOk() (*string, bool)` + +GetWordlistIdOk returns a tuple with the WordlistId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetWordlistId + +`func (o *Assessment) SetWordlistId(v string)` + +SetWordlistId sets WordlistId field to given value. + +### HasWordlistId + +`func (o *Assessment) HasWordlistId() bool` + +HasWordlistId returns a boolean if a field has been set. + +### GetWordlist + +`func (o *Assessment) GetWordlist() map[string]interface{}` + +GetWordlist returns the Wordlist field if non-nil, zero value otherwise. + +### GetWordlistOk + +`func (o *Assessment) GetWordlistOk() (*map[string]interface{}, bool)` + +GetWordlistOk returns a tuple with the Wordlist field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetWordlist + +`func (o *Assessment) SetWordlist(v map[string]interface{})` + +SetWordlist sets Wordlist field to given value. + +### HasWordlist + +`func (o *Assessment) HasWordlist() bool` + +HasWordlist returns a boolean if a field has been set. + +### GetInstanceId + +`func (o *Assessment) GetInstanceId() string` + +GetInstanceId returns the InstanceId field if non-nil, zero value otherwise. + +### GetInstanceIdOk + +`func (o *Assessment) GetInstanceIdOk() (*string, bool)` + +GetInstanceIdOk returns a tuple with the InstanceId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetInstanceId + +`func (o *Assessment) SetInstanceId(v string)` + +SetInstanceId sets InstanceId field to given value. + + +### GetBundleId + +`func (o *Assessment) GetBundleId() string` + +GetBundleId returns the BundleId field if non-nil, zero value otherwise. + +### GetBundleIdOk + +`func (o *Assessment) GetBundleIdOk() (*string, bool)` + +GetBundleIdOk returns a tuple with the BundleId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetBundleId + +`func (o *Assessment) SetBundleId(v string)` + +SetBundleId sets BundleId field to given value. + + +### GetStatus + +`func (o *Assessment) GetStatus() string` + +GetStatus returns the Status field if non-nil, zero value otherwise. + +### GetStatusOk + +`func (o *Assessment) GetStatusOk() (*string, bool)` + +GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStatus + +`func (o *Assessment) SetStatus(v string)` + +SetStatus sets Status field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/AssessmentIdStatus.md b/docs/AssessmentIdStatus.md new file mode 100644 index 00000000..6786238a --- /dev/null +++ b/docs/AssessmentIdStatus.md @@ -0,0 +1,77 @@ +# AssessmentIdStatus + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | Pointer to **string** | | [optional] +**Status** | **string** | | + +## Methods + +### NewAssessmentIdStatus + +`func NewAssessmentIdStatus(status string, ) *AssessmentIdStatus` + +NewAssessmentIdStatus instantiates a new AssessmentIdStatus object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewAssessmentIdStatusWithDefaults + +`func NewAssessmentIdStatusWithDefaults() *AssessmentIdStatus` + +NewAssessmentIdStatusWithDefaults instantiates a new AssessmentIdStatus object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetId + +`func (o *AssessmentIdStatus) GetId() string` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *AssessmentIdStatus) GetIdOk() (*string, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *AssessmentIdStatus) SetId(v string)` + +SetId sets Id field to given value. + +### HasId + +`func (o *AssessmentIdStatus) HasId() bool` + +HasId returns a boolean if a field has been set. + +### GetStatus + +`func (o *AssessmentIdStatus) GetStatus() string` + +GetStatus returns the Status field if non-nil, zero value otherwise. + +### GetStatusOk + +`func (o *AssessmentIdStatus) GetStatusOk() (*string, bool)` + +GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStatus + +`func (o *AssessmentIdStatus) SetStatus(v string)` + +SetStatus sets Status field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/CheckSubdomainResponse.md b/docs/CheckSubdomainResponse.md new file mode 100644 index 00000000..f66c0797 --- /dev/null +++ b/docs/CheckSubdomainResponse.md @@ -0,0 +1,51 @@ +# CheckSubdomainResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Available** | **bool** | Indicates whether the subdomain is available or not | + +## Methods + +### NewCheckSubdomainResponse + +`func NewCheckSubdomainResponse(available bool, ) *CheckSubdomainResponse` + +NewCheckSubdomainResponse instantiates a new CheckSubdomainResponse object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewCheckSubdomainResponseWithDefaults + +`func NewCheckSubdomainResponseWithDefaults() *CheckSubdomainResponse` + +NewCheckSubdomainResponseWithDefaults instantiates a new CheckSubdomainResponse object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetAvailable + +`func (o *CheckSubdomainResponse) GetAvailable() bool` + +GetAvailable returns the Available field if non-nil, zero value otherwise. + +### GetAvailableOk + +`func (o *CheckSubdomainResponse) GetAvailableOk() (*bool, bool)` + +GetAvailableOk returns a tuple with the Available field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAvailable + +`func (o *CheckSubdomainResponse) SetAvailable(v bool)` + +SetAvailable sets Available field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/CreateAssessmentDto.md b/docs/CreateAssessmentDto.md new file mode 100644 index 00000000..2cd622cb --- /dev/null +++ b/docs/CreateAssessmentDto.md @@ -0,0 +1,98 @@ +# CreateAssessmentDto + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**InstanceId** | **string** | | +**BundleId** | **string** | | +**WordlistId** | Pointer to **string** | | [optional] + +## Methods + +### NewCreateAssessmentDto + +`func NewCreateAssessmentDto(instanceId string, bundleId string, ) *CreateAssessmentDto` + +NewCreateAssessmentDto instantiates a new CreateAssessmentDto object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewCreateAssessmentDtoWithDefaults + +`func NewCreateAssessmentDtoWithDefaults() *CreateAssessmentDto` + +NewCreateAssessmentDtoWithDefaults instantiates a new CreateAssessmentDto object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetInstanceId + +`func (o *CreateAssessmentDto) GetInstanceId() string` + +GetInstanceId returns the InstanceId field if non-nil, zero value otherwise. + +### GetInstanceIdOk + +`func (o *CreateAssessmentDto) GetInstanceIdOk() (*string, bool)` + +GetInstanceIdOk returns a tuple with the InstanceId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetInstanceId + +`func (o *CreateAssessmentDto) SetInstanceId(v string)` + +SetInstanceId sets InstanceId field to given value. + + +### GetBundleId + +`func (o *CreateAssessmentDto) GetBundleId() string` + +GetBundleId returns the BundleId field if non-nil, zero value otherwise. + +### GetBundleIdOk + +`func (o *CreateAssessmentDto) GetBundleIdOk() (*string, bool)` + +GetBundleIdOk returns a tuple with the BundleId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetBundleId + +`func (o *CreateAssessmentDto) SetBundleId(v string)` + +SetBundleId sets BundleId field to given value. + + +### GetWordlistId + +`func (o *CreateAssessmentDto) GetWordlistId() string` + +GetWordlistId returns the WordlistId field if non-nil, zero value otherwise. + +### GetWordlistIdOk + +`func (o *CreateAssessmentDto) GetWordlistIdOk() (*string, bool)` + +GetWordlistIdOk returns a tuple with the WordlistId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetWordlistId + +`func (o *CreateAssessmentDto) SetWordlistId(v string)` + +SetWordlistId sets WordlistId field to given value. + +### HasWordlistId + +`func (o *CreateAssessmentDto) HasWordlistId() bool` + +HasWordlistId returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/CreateNetworkConnectionOptions.md b/docs/CreateNetworkConnectionOptions.md new file mode 100644 index 00000000..d37bb13f --- /dev/null +++ b/docs/CreateNetworkConnectionOptions.md @@ -0,0 +1,129 @@ +# CreateNetworkConnectionOptions + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Identifier** | **string** | UUIDv4 | +**Name** | **string** | User specified name for this network connection. e.g. My Network Connection | +**Provider** | **string** | One of the registered [network provider types](#get-/v1/network/providers) | +**Config** | Pointer to **map[string]interface{}** | An object containing network connection configuration data. Will vary based on network provider type. See examples. | [optional] + +## Methods + +### NewCreateNetworkConnectionOptions + +`func NewCreateNetworkConnectionOptions(identifier string, name string, provider string, ) *CreateNetworkConnectionOptions` + +NewCreateNetworkConnectionOptions instantiates a new CreateNetworkConnectionOptions object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewCreateNetworkConnectionOptionsWithDefaults + +`func NewCreateNetworkConnectionOptionsWithDefaults() *CreateNetworkConnectionOptions` + +NewCreateNetworkConnectionOptionsWithDefaults instantiates a new CreateNetworkConnectionOptions object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetIdentifier + +`func (o *CreateNetworkConnectionOptions) GetIdentifier() string` + +GetIdentifier returns the Identifier field if non-nil, zero value otherwise. + +### GetIdentifierOk + +`func (o *CreateNetworkConnectionOptions) GetIdentifierOk() (*string, bool)` + +GetIdentifierOk returns a tuple with the Identifier field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIdentifier + +`func (o *CreateNetworkConnectionOptions) SetIdentifier(v string)` + +SetIdentifier sets Identifier field to given value. + + +### GetName + +`func (o *CreateNetworkConnectionOptions) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *CreateNetworkConnectionOptions) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *CreateNetworkConnectionOptions) SetName(v string)` + +SetName sets Name field to given value. + + +### GetProvider + +`func (o *CreateNetworkConnectionOptions) GetProvider() string` + +GetProvider returns the Provider field if non-nil, zero value otherwise. + +### GetProviderOk + +`func (o *CreateNetworkConnectionOptions) GetProviderOk() (*string, bool)` + +GetProviderOk returns a tuple with the Provider field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetProvider + +`func (o *CreateNetworkConnectionOptions) SetProvider(v string)` + +SetProvider sets Provider field to given value. + + +### GetConfig + +`func (o *CreateNetworkConnectionOptions) GetConfig() map[string]interface{}` + +GetConfig returns the Config field if non-nil, zero value otherwise. + +### GetConfigOk + +`func (o *CreateNetworkConnectionOptions) GetConfigOk() (*map[string]interface{}, bool)` + +GetConfigOk returns a tuple with the Config field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetConfig + +`func (o *CreateNetworkConnectionOptions) SetConfig(v map[string]interface{})` + +SetConfig sets Config field to given value. + +### HasConfig + +`func (o *CreateNetworkConnectionOptions) HasConfig() bool` + +HasConfig returns a boolean if a field has been set. + +### SetConfigNil + +`func (o *CreateNetworkConnectionOptions) SetConfigNil(b bool)` + + SetConfigNil sets the value for Config to be an explicit nil + +### UnsetConfig +`func (o *CreateNetworkConnectionOptions) UnsetConfig()` + +UnsetConfig ensures that no value is present for Config, not even an explicit nil + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/DomainApi.md b/docs/DomainApi.md new file mode 100644 index 00000000..37d0b8ba --- /dev/null +++ b/docs/DomainApi.md @@ -0,0 +1,73 @@ +# \DomainApi + +All URIs are relative to *https://app.corellium.com/api* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**V1CheckSubdomainExistence**](DomainApi.md#V1CheckSubdomainExistence) | **Post** /v1/domain/check | Check the existence of a subdomain + + + +## V1CheckSubdomainExistence + +> CheckSubdomainResponse V1CheckSubdomainExistence(ctx).V1CheckSubdomainExistenceParameters(v1CheckSubdomainExistenceParameters).Execute() + +Check the existence of a subdomain + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/corellium/go-corellium-api-client" +) + +func main() { + v1CheckSubdomainExistenceParameters := *openapiclient.NewV1CheckSubdomainExistenceParameters("Domain_example") // V1CheckSubdomainExistenceParameters | application/json + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.DomainApi.V1CheckSubdomainExistence(context.Background()).V1CheckSubdomainExistenceParameters(v1CheckSubdomainExistenceParameters).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DomainApi.V1CheckSubdomainExistence``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `V1CheckSubdomainExistence`: CheckSubdomainResponse + fmt.Fprintf(os.Stdout, "Response from `DomainApi.V1CheckSubdomainExistence`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiV1CheckSubdomainExistenceRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **v1CheckSubdomainExistenceParameters** | [**V1CheckSubdomainExistenceParameters**](V1CheckSubdomainExistenceParameters.md) | application/json | + +### Return type + +[**CheckSubdomainResponse**](CheckSubdomainResponse.md) + +### Authorization + +[BearerAuth](../README.md#BearerAuth) + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + diff --git a/docs/DomainOptions.md b/docs/DomainOptions.md index 60d696c1..f2f8e66d 100644 --- a/docs/DomainOptions.md +++ b/docs/DomainOptions.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **TotpRequired** | Pointer to **NullableBool** | if true, totp is required | [optional] **TrialExtension** | Pointer to [**TrialExtension**](TrialExtension.md) | | [optional] -**SnapshotPermissions** | Pointer to [**SnapshotPermissions**](SnapshotPermissions.md) | | [optional] +**SnapshotSharingPermissions** | Pointer to [**SnapshotSharingPermissions**](SnapshotSharingPermissions.md) | | [optional] ## Methods @@ -87,30 +87,30 @@ SetTrialExtension sets TrialExtension field to given value. HasTrialExtension returns a boolean if a field has been set. -### GetSnapshotPermissions +### GetSnapshotSharingPermissions -`func (o *DomainOptions) GetSnapshotPermissions() SnapshotPermissions` +`func (o *DomainOptions) GetSnapshotSharingPermissions() SnapshotSharingPermissions` -GetSnapshotPermissions returns the SnapshotPermissions field if non-nil, zero value otherwise. +GetSnapshotSharingPermissions returns the SnapshotSharingPermissions field if non-nil, zero value otherwise. -### GetSnapshotPermissionsOk +### GetSnapshotSharingPermissionsOk -`func (o *DomainOptions) GetSnapshotPermissionsOk() (*SnapshotPermissions, bool)` +`func (o *DomainOptions) GetSnapshotSharingPermissionsOk() (*SnapshotSharingPermissions, bool)` -GetSnapshotPermissionsOk returns a tuple with the SnapshotPermissions field if it's non-nil, zero value otherwise +GetSnapshotSharingPermissionsOk returns a tuple with the SnapshotSharingPermissions field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. -### SetSnapshotPermissions +### SetSnapshotSharingPermissions -`func (o *DomainOptions) SetSnapshotPermissions(v SnapshotPermissions)` +`func (o *DomainOptions) SetSnapshotSharingPermissions(v SnapshotSharingPermissions)` -SetSnapshotPermissions sets SnapshotPermissions field to given value. +SetSnapshotSharingPermissions sets SnapshotSharingPermissions field to given value. -### HasSnapshotPermissions +### HasSnapshotSharingPermissions -`func (o *DomainOptions) HasSnapshotPermissions() bool` +`func (o *DomainOptions) HasSnapshotSharingPermissions() bool` -HasSnapshotPermissions returns a boolean if a field has been set. +HasSnapshotSharingPermissions returns a boolean if a field has been set. [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/GetAssessmentsByInstanceId500Response.md b/docs/GetAssessmentsByInstanceId500Response.md new file mode 100644 index 00000000..79f789b3 --- /dev/null +++ b/docs/GetAssessmentsByInstanceId500Response.md @@ -0,0 +1,56 @@ +# GetAssessmentsByInstanceId500Response + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Error** | Pointer to **string** | | [optional] + +## Methods + +### NewGetAssessmentsByInstanceId500Response + +`func NewGetAssessmentsByInstanceId500Response() *GetAssessmentsByInstanceId500Response` + +NewGetAssessmentsByInstanceId500Response instantiates a new GetAssessmentsByInstanceId500Response object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewGetAssessmentsByInstanceId500ResponseWithDefaults + +`func NewGetAssessmentsByInstanceId500ResponseWithDefaults() *GetAssessmentsByInstanceId500Response` + +NewGetAssessmentsByInstanceId500ResponseWithDefaults instantiates a new GetAssessmentsByInstanceId500Response object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetError + +`func (o *GetAssessmentsByInstanceId500Response) GetError() string` + +GetError returns the Error field if non-nil, zero value otherwise. + +### GetErrorOk + +`func (o *GetAssessmentsByInstanceId500Response) GetErrorOk() (*string, bool)` + +GetErrorOk returns a tuple with the Error field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetError + +`func (o *GetAssessmentsByInstanceId500Response) SetError(v string)` + +SetError sets Error field to given value. + +### HasError + +`func (o *GetAssessmentsByInstanceId500Response) HasError() bool` + +HasError returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/InputResponse.md b/docs/InputResponse.md new file mode 100644 index 00000000..cb0ff2d3 --- /dev/null +++ b/docs/InputResponse.md @@ -0,0 +1,66 @@ +# InputResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Eta** | Pointer to **NullableFloat32** | Expected time to complete | [optional] + +## Methods + +### NewInputResponse + +`func NewInputResponse() *InputResponse` + +NewInputResponse instantiates a new InputResponse object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewInputResponseWithDefaults + +`func NewInputResponseWithDefaults() *InputResponse` + +NewInputResponseWithDefaults instantiates a new InputResponse object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetEta + +`func (o *InputResponse) GetEta() float32` + +GetEta returns the Eta field if non-nil, zero value otherwise. + +### GetEtaOk + +`func (o *InputResponse) GetEtaOk() (*float32, bool)` + +GetEtaOk returns a tuple with the Eta field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEta + +`func (o *InputResponse) SetEta(v float32)` + +SetEta sets Eta field to given value. + +### HasEta + +`func (o *InputResponse) HasEta() bool` + +HasEta returns a boolean if a field has been set. + +### SetEtaNil + +`func (o *InputResponse) SetEtaNil(b bool)` + + SetEtaNil sets the value for Eta to be an explicit nil + +### UnsetEta +`func (o *InputResponse) UnsetEta()` + +UnsetEta ensures that no value is present for Eta, not even an explicit nil + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/InstanceCreateOptions.md b/docs/InstanceCreateOptions.md index de8f70a8..a3ea067c 100644 --- a/docs/InstanceCreateOptions.md +++ b/docs/InstanceCreateOptions.md @@ -4,6 +4,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**SharedSnapshot** | Pointer to **NullableString** | identifier of the snapshot that was shared. | [optional] +**SharedSnapshotPassword** | Pointer to **NullableString** | optional password if the shared snapshot requires a password. | [optional] **Name** | Pointer to **NullableString** | the name of the device | [optional] **Key** | Pointer to **NullableString** | Key used to encrypt the Instance | [optional] **Flavor** | **string** | the flavor id | @@ -14,7 +16,7 @@ Name | Type | Description | Notes **Fwpackage** | Pointer to **NullableString** | URL or image id | [optional] **OrigFwPackageUrl** | Pointer to **NullableString** | URL that firmware package used to create this instance is available at | [optional] **Encrypt** | Pointer to **NullableBool** | | [optional] -**OverrideWifiMAC** | Pointer to **NullableString** | | [optional] +**WifiMac** | Pointer to **NullableString** | | [optional] **Volume** | Pointer to [**VolumeOptions**](VolumeOptions.md) | | [optional] **Snapshot** | Pointer to **NullableString** | Snapshot ID for this instance to be cloned from if defined | [optional] **BootOptions** | Pointer to [**InstanceBootOptions**](InstanceBootOptions.md) | | [optional] @@ -39,6 +41,76 @@ NewInstanceCreateOptionsWithDefaults instantiates a new InstanceCreateOptions ob This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set +### GetSharedSnapshot + +`func (o *InstanceCreateOptions) GetSharedSnapshot() string` + +GetSharedSnapshot returns the SharedSnapshot field if non-nil, zero value otherwise. + +### GetSharedSnapshotOk + +`func (o *InstanceCreateOptions) GetSharedSnapshotOk() (*string, bool)` + +GetSharedSnapshotOk returns a tuple with the SharedSnapshot field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSharedSnapshot + +`func (o *InstanceCreateOptions) SetSharedSnapshot(v string)` + +SetSharedSnapshot sets SharedSnapshot field to given value. + +### HasSharedSnapshot + +`func (o *InstanceCreateOptions) HasSharedSnapshot() bool` + +HasSharedSnapshot returns a boolean if a field has been set. + +### SetSharedSnapshotNil + +`func (o *InstanceCreateOptions) SetSharedSnapshotNil(b bool)` + + SetSharedSnapshotNil sets the value for SharedSnapshot to be an explicit nil + +### UnsetSharedSnapshot +`func (o *InstanceCreateOptions) UnsetSharedSnapshot()` + +UnsetSharedSnapshot ensures that no value is present for SharedSnapshot, not even an explicit nil +### GetSharedSnapshotPassword + +`func (o *InstanceCreateOptions) GetSharedSnapshotPassword() string` + +GetSharedSnapshotPassword returns the SharedSnapshotPassword field if non-nil, zero value otherwise. + +### GetSharedSnapshotPasswordOk + +`func (o *InstanceCreateOptions) GetSharedSnapshotPasswordOk() (*string, bool)` + +GetSharedSnapshotPasswordOk returns a tuple with the SharedSnapshotPassword field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSharedSnapshotPassword + +`func (o *InstanceCreateOptions) SetSharedSnapshotPassword(v string)` + +SetSharedSnapshotPassword sets SharedSnapshotPassword field to given value. + +### HasSharedSnapshotPassword + +`func (o *InstanceCreateOptions) HasSharedSnapshotPassword() bool` + +HasSharedSnapshotPassword returns a boolean if a field has been set. + +### SetSharedSnapshotPasswordNil + +`func (o *InstanceCreateOptions) SetSharedSnapshotPasswordNil(b bool)` + + SetSharedSnapshotPasswordNil sets the value for SharedSnapshotPassword to be an explicit nil + +### UnsetSharedSnapshotPassword +`func (o *InstanceCreateOptions) UnsetSharedSnapshotPassword()` + +UnsetSharedSnapshotPassword ensures that no value is present for SharedSnapshotPassword, not even an explicit nil ### GetName `func (o *InstanceCreateOptions) GetName() string` @@ -344,41 +416,41 @@ HasEncrypt returns a boolean if a field has been set. `func (o *InstanceCreateOptions) UnsetEncrypt()` UnsetEncrypt ensures that no value is present for Encrypt, not even an explicit nil -### GetOverrideWifiMAC +### GetWifiMac -`func (o *InstanceCreateOptions) GetOverrideWifiMAC() string` +`func (o *InstanceCreateOptions) GetWifiMac() string` -GetOverrideWifiMAC returns the OverrideWifiMAC field if non-nil, zero value otherwise. +GetWifiMac returns the WifiMac field if non-nil, zero value otherwise. -### GetOverrideWifiMACOk +### GetWifiMacOk -`func (o *InstanceCreateOptions) GetOverrideWifiMACOk() (*string, bool)` +`func (o *InstanceCreateOptions) GetWifiMacOk() (*string, bool)` -GetOverrideWifiMACOk returns a tuple with the OverrideWifiMAC field if it's non-nil, zero value otherwise +GetWifiMacOk returns a tuple with the WifiMac field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. -### SetOverrideWifiMAC +### SetWifiMac -`func (o *InstanceCreateOptions) SetOverrideWifiMAC(v string)` +`func (o *InstanceCreateOptions) SetWifiMac(v string)` -SetOverrideWifiMAC sets OverrideWifiMAC field to given value. +SetWifiMac sets WifiMac field to given value. -### HasOverrideWifiMAC +### HasWifiMac -`func (o *InstanceCreateOptions) HasOverrideWifiMAC() bool` +`func (o *InstanceCreateOptions) HasWifiMac() bool` -HasOverrideWifiMAC returns a boolean if a field has been set. +HasWifiMac returns a boolean if a field has been set. -### SetOverrideWifiMACNil +### SetWifiMacNil -`func (o *InstanceCreateOptions) SetOverrideWifiMACNil(b bool)` +`func (o *InstanceCreateOptions) SetWifiMacNil(b bool)` - SetOverrideWifiMACNil sets the value for OverrideWifiMAC to be an explicit nil + SetWifiMacNil sets the value for WifiMac to be an explicit nil -### UnsetOverrideWifiMAC -`func (o *InstanceCreateOptions) UnsetOverrideWifiMAC()` +### UnsetWifiMac +`func (o *InstanceCreateOptions) UnsetWifiMac()` -UnsetOverrideWifiMAC ensures that no value is present for OverrideWifiMAC, not even an explicit nil +UnsetWifiMac ensures that no value is present for WifiMac, not even an explicit nil ### GetVolume `func (o *InstanceCreateOptions) GetVolume() VolumeOptions` diff --git a/docs/InstancesApi.md b/docs/InstancesApi.md index 0ee28519..66f667be 100644 --- a/docs/InstancesApi.md +++ b/docs/InstancesApi.md @@ -12,7 +12,7 @@ Method | HTTP request | Description [**V1CreateInstance**](InstancesApi.md#V1CreateInstance) | **Post** /v1/instances | Create Instance [**V1CreateSnapshot**](InstancesApi.md#V1CreateSnapshot) | **Post** /v1/instances/{instanceId}/snapshots | Create Instance Snapshot [**V1DeleteInstance**](InstancesApi.md#V1DeleteInstance) | **Delete** /v1/instances/{instanceId} | Remove Instance -[**V1DeleteInstanceSnapshot**](InstancesApi.md#V1DeleteInstanceSnapshot) | **Delete** /v1/instances/{instanceId}/snapshots/{snapshotId} | Delete a Snapshot +[**V1DeleteInstanceSnapshot**](InstancesApi.md#V1DeleteInstanceSnapshot) | **Delete** /v1/instances/{instanceId}/snapshots/{snapshotId} | Delete an Instance Snapshot [**V1DisableExposePort**](InstancesApi.md#V1DisableExposePort) | **Post** /v1/instances/{instanceId}/exposeport/disable | Disable an exposed port on an instance for device access. [**V1EnableExposePort**](InstancesApi.md#V1EnableExposePort) | **Post** /v1/instances/{instanceId}/exposeport/enable | Enable an exposed port on an instance for device access. [**V1ExecuteHyperTraceHooks**](InstancesApi.md#V1ExecuteHyperTraceHooks) | **Post** /v1/instances/{instanceId}/hooks/execute | Execute Hooks on an instance @@ -22,12 +22,11 @@ Method | HTTP request | Description [**V1GetInstanceGpios**](InstancesApi.md#V1GetInstanceGpios) | **Get** /v1/instances/{instanceId}/gpios | Get Instance GPIOs [**V1GetInstancePanics**](InstancesApi.md#V1GetInstancePanics) | **Get** /v1/instances/{instanceId}/panics | Get Panics [**V1GetInstancePeripherals**](InstancesApi.md#V1GetInstancePeripherals) | **Get** /v1/instances/{instanceId}/peripherals | Get Instance Peripherals -[**V1GetInstanceRate**](InstancesApi.md#V1GetInstanceRate) | **Get** /v1/instances/{instanceId}/rate | Get rate information [**V1GetInstanceScreenshot**](InstancesApi.md#V1GetInstanceScreenshot) | **Get** /v1/instances/{instanceId}/screenshot.{format} | Get Instance Screenshot [**V1GetInstanceSnapshot**](InstancesApi.md#V1GetInstanceSnapshot) | **Get** /v1/instances/{instanceId}/snapshots/{snapshotId} | Get Instance Snapshot [**V1GetInstanceSnapshots**](InstancesApi.md#V1GetInstanceSnapshots) | **Get** /v1/instances/{instanceId}/snapshots | Get Instance Snapshots [**V1GetInstances**](InstancesApi.md#V1GetInstances) | **Get** /v1/instances | Get Instances -[**V1InstancesInstanceIdMessagePost**](InstancesApi.md#V1InstancesInstanceIdMessagePost) | **Post** /v1/instances/{instanceId}/message | Receive a message on an iOS vm +[**V1InstancesInstanceIdMessagePost**](InstancesApi.md#V1InstancesInstanceIdMessagePost) | **Post** /v1/instances/{instanceId}/message | Inject a message into an iOS VM [**V1InstancesInstanceIdNetdumpPcapGet**](InstancesApi.md#V1InstancesInstanceIdNetdumpPcapGet) | **Get** /v1/instances/{instanceId}/netdump.pcap | Download a netdump pcap file [**V1InstancesInstanceIdNetworkMonitorPcapGet**](InstancesApi.md#V1InstancesInstanceIdNetworkMonitorPcapGet) | **Get** /v1/instances/{instanceId}/networkMonitor.pcap | Download a Network Monitor pcap file [**V1Kcrange**](InstancesApi.md#V1Kcrange) | **Get** /v1/instances/{instanceId}/btrace-kcrange | Get Kernel extension ranges @@ -38,9 +37,9 @@ Method | HTTP request | Description [**V1PauseInstance**](InstancesApi.md#V1PauseInstance) | **Post** /v1/instances/{instanceId}/pause | Pause an Instance [**V1PostInstanceInput**](InstancesApi.md#V1PostInstanceInput) | **Post** /v1/instances/{instanceId}/input | Provide Instance Input [**V1RebootInstance**](InstancesApi.md#V1RebootInstance) | **Post** /v1/instances/{instanceId}/reboot | Reboot an Instance -[**V1RenameInstanceSnapshot**](InstancesApi.md#V1RenameInstanceSnapshot) | **Patch** /v1/instances/{instanceId}/snapshots/{snapshotId} | Rename a Snapshot +[**V1RenameInstanceSnapshot**](InstancesApi.md#V1RenameInstanceSnapshot) | **Patch** /v1/instances/{instanceId}/snapshots/{snapshotId} | Rename an Instance Snapshot [**V1RestoreBackup**](InstancesApi.md#V1RestoreBackup) | **Post** /v1/instances/{instanceId}/restoreBackup | Restore backup -[**V1RestoreInstanceSnapshot**](InstancesApi.md#V1RestoreInstanceSnapshot) | **Post** /v1/instances/{instanceId}/snapshots/{snapshotId}/restore | Restore a Snapshot +[**V1RestoreInstanceSnapshot**](InstancesApi.md#V1RestoreInstanceSnapshot) | **Post** /v1/instances/{instanceId}/snapshots/{snapshotId}/restore | Restore an Instance Snapshot [**V1RotateInstance**](InstancesApi.md#V1RotateInstance) | **Post** /v1/instances/{instanceId}/rotate | Rotate device to specified orientation [**V1SetInstanceGpios**](InstancesApi.md#V1SetInstanceGpios) | **Put** /v1/instances/{instanceId}/gpios | Set Instance GPIOs [**V1SetInstancePeripherals**](InstancesApi.md#V1SetInstancePeripherals) | **Put** /v1/instances/{instanceId}/peripherals | Set Instance Peripherals @@ -598,7 +597,7 @@ Name | Type | Description | Notes > V1DeleteInstanceSnapshot(ctx, instanceId, snapshotId).Execute() -Delete a Snapshot +Delete an Instance Snapshot ### Example @@ -1271,76 +1270,6 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## V1GetInstanceRate - -> RateInfo V1GetInstanceRate(ctx, instanceId).Execute() - -Get rate information - - - -### Example - -```go -package main - -import ( - "context" - "fmt" - "os" - openapiclient "github.com/corellium/go-corellium-api-client" -) - -func main() { - instanceId := "instanceId_example" // string | Instance ID - uuid - - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.InstancesApi.V1GetInstanceRate(context.Background(), instanceId).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `InstancesApi.V1GetInstanceRate``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `V1GetInstanceRate`: RateInfo - fmt.Fprintf(os.Stdout, "Response from `InstancesApi.V1GetInstanceRate`: %v\n", resp) -} -``` - -### Path Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**instanceId** | **string** | Instance ID - uuid | - -### Other Parameters - -Other parameters are passed through a pointer to a apiV1GetInstanceRateRequest struct via the builder pattern - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - - -### Return type - -[**RateInfo**](RateInfo.md) - -### Authorization - -[BearerAuth](../README.md#BearerAuth) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) -[[Back to Model list]](../README.md#documentation-for-models) -[[Back to README]](../README.md) - - ## V1GetInstanceScreenshot > *os.File V1GetInstanceScreenshot(ctx, instanceId, format).Scale(scale).Execute() @@ -1621,9 +1550,11 @@ Name | Type | Description | Notes ## V1InstancesInstanceIdMessagePost -> V1InstancesInstanceIdMessagePost(ctx, instanceId).Execute() +> V1InstancesInstanceIdMessagePost(ctx, instanceId).Body(body).Execute() + +Inject a message into an iOS VM + -Receive a message on an iOS vm ### Example @@ -1639,10 +1570,11 @@ import ( func main() { instanceId := "instanceId_example" // string | Instance ID - uuid + body := map[string]interface{}{ ... } // map[string]interface{} | Message data configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.InstancesApi.V1InstancesInstanceIdMessagePost(context.Background(), instanceId).Execute() + r, err := apiClient.InstancesApi.V1InstancesInstanceIdMessagePost(context.Background(), instanceId).Body(body).Execute() if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `InstancesApi.V1InstancesInstanceIdMessagePost``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) @@ -1666,6 +1598,7 @@ Other parameters are passed through a pointer to a apiV1InstancesInstanceIdMessa Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- + **body** | **map[string]interface{}** | Message data | ### Return type @@ -1677,7 +1610,7 @@ Name | Type | Description | Notes ### HTTP request headers -- **Content-Type**: Not defined +- **Content-Type**: application/json - **Accept**: application/json [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) @@ -2229,7 +2162,7 @@ Name | Type | Description | Notes ## V1PostInstanceInput -> int32 V1PostInstanceInput(ctx, instanceId).InstanceInput(instanceInput).Execute() +> InputResponse V1PostInstanceInput(ctx, instanceId).InstanceInput(instanceInput).Execute() Provide Instance Input @@ -2258,7 +2191,7 @@ func main() { fmt.Fprintf(os.Stderr, "Error when calling `InstancesApi.V1PostInstanceInput``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } - // response from `V1PostInstanceInput`: int32 + // response from `V1PostInstanceInput`: InputResponse fmt.Fprintf(os.Stdout, "Response from `InstancesApi.V1PostInstanceInput`: %v\n", resp) } ``` @@ -2283,7 +2216,7 @@ Name | Type | Description | Notes ### Return type -**int32** +[**InputResponse**](InputResponse.md) ### Authorization @@ -2369,7 +2302,7 @@ Name | Type | Description | Notes > Snapshot V1RenameInstanceSnapshot(ctx, instanceId, snapshotId).SnapshotCreationOptions(snapshotCreationOptions).Execute() -Rename a Snapshot +Rename an Instance Snapshot ### Example @@ -2510,7 +2443,7 @@ Name | Type | Description | Notes > V1RestoreInstanceSnapshot(ctx, instanceId, snapshotId).Execute() -Restore a Snapshot +Restore an Instance Snapshot ### Example @@ -3125,7 +3058,7 @@ Name | Type | Description | Notes ## V1StartNetworkMonitor -> V1StartNetworkMonitor(ctx, instanceId).Execute() +> V1StartNetworkMonitor(ctx, instanceId).SslsplitFilter(sslsplitFilter).Execute() Start Network Monitor on an instance. @@ -3143,10 +3076,11 @@ import ( func main() { instanceId := "instanceId_example" // string | Instance ID - uuid + sslsplitFilter := *openapiclient.NewSslsplitFilter() // SslsplitFilter | (optional) configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.InstancesApi.V1StartNetworkMonitor(context.Background(), instanceId).Execute() + r, err := apiClient.InstancesApi.V1StartNetworkMonitor(context.Background(), instanceId).SslsplitFilter(sslsplitFilter).Execute() if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `InstancesApi.V1StartNetworkMonitor``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) @@ -3170,6 +3104,7 @@ Other parameters are passed through a pointer to a apiV1StartNetworkMonitorReque Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- + **sslsplitFilter** | [**SslsplitFilter**](SslsplitFilter.md) | | ### Return type @@ -3181,7 +3116,7 @@ Name | Type | Description | Notes ### HTTP request headers -- **Content-Type**: Not defined +- **Content-Type**: application/json - **Accept**: application/json [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) diff --git a/docs/MatrixApi.md b/docs/MatrixApi.md new file mode 100644 index 00000000..81693059 --- /dev/null +++ b/docs/MatrixApi.md @@ -0,0 +1,578 @@ +# \MatrixApi + +All URIs are relative to *https://app.corellium.com/api* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**CreateAssessment**](MatrixApi.md#CreateAssessment) | **Post** /v1/services/matrix/{instanceId}/assessments | Create assessment +[**DeleteAssessment**](MatrixApi.md#DeleteAssessment) | **Delete** /v1/services/matrix/{instanceId}/assessments/{assessmentId} | Delete assessment +[**DownloadReport**](MatrixApi.md#DownloadReport) | **Get** /v1/services/matrix/{instanceId}/assessments/{assessmentId}/download | Download report +[**GetAssessmentById**](MatrixApi.md#GetAssessmentById) | **Get** /v1/services/matrix/{instanceId}/assessments/{assessmentId} | Get assessment by ID +[**GetAssessmentsByInstanceId**](MatrixApi.md#GetAssessmentsByInstanceId) | **Get** /v1/services/matrix/{instanceId}/instances/{instanceId}/assessments | Get assessments by instanceId +[**RunTests**](MatrixApi.md#RunTests) | **Post** /v1/services/matrix/{instanceId}/assessments/{assessmentId}/test | Update assessment state and execute MATRIX tests +[**StartMonitoring**](MatrixApi.md#StartMonitoring) | **Post** /v1/services/matrix/{instanceId}/assessments/{assessmentId}/start | Update assessment state and begin device monitoring +[**StopMonitoring**](MatrixApi.md#StopMonitoring) | **Post** /v1/services/matrix/{instanceId}/assessments/{assessmentId}/stop | Update assessment state and stop device monitoring + + + +## CreateAssessment + +> AssessmentIdStatus CreateAssessment(ctx, instanceId).CreateAssessmentDto(createAssessmentDto).Execute() + +Create assessment + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/corellium/go-corellium-api-client" +) + +func main() { + instanceId := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | ID of instance + createAssessmentDto := *openapiclient.NewCreateAssessmentDto("InstanceId_example", "com.android.egg") // CreateAssessmentDto | Create a new assessment + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.MatrixApi.CreateAssessment(context.Background(), instanceId).CreateAssessmentDto(createAssessmentDto).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `MatrixApi.CreateAssessment``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CreateAssessment`: AssessmentIdStatus + fmt.Fprintf(os.Stdout, "Response from `MatrixApi.CreateAssessment`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**instanceId** | **string** | ID of instance | + +### Other Parameters + +Other parameters are passed through a pointer to a apiCreateAssessmentRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **createAssessmentDto** | [**CreateAssessmentDto**](CreateAssessmentDto.md) | Create a new assessment | + +### Return type + +[**AssessmentIdStatus**](AssessmentIdStatus.md) + +### Authorization + +[BearerAuth](../README.md#BearerAuth) + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## DeleteAssessment + +> DeleteAssessment(ctx, instanceId, assessmentId).Execute() + +Delete assessment + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/corellium/go-corellium-api-client" +) + +func main() { + instanceId := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | ID of instance + assessmentId := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | ID of assessment + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.MatrixApi.DeleteAssessment(context.Background(), instanceId, assessmentId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `MatrixApi.DeleteAssessment``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**instanceId** | **string** | ID of instance | +**assessmentId** | **string** | ID of assessment | + +### Other Parameters + +Other parameters are passed through a pointer to a apiDeleteAssessmentRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + +### Return type + + (empty response body) + +### Authorization + +[BearerAuth](../README.md#BearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## DownloadReport + +> string DownloadReport(ctx, instanceId, assessmentId).Format(format).Execute() + +Download report + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/corellium/go-corellium-api-client" +) + +func main() { + instanceId := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | ID of instance + assessmentId := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | ID of assessment + format := "format_example" // string | Assessment report download format (default to "html") + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.MatrixApi.DownloadReport(context.Background(), instanceId, assessmentId).Format(format).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `MatrixApi.DownloadReport``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `DownloadReport`: string + fmt.Fprintf(os.Stdout, "Response from `MatrixApi.DownloadReport`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**instanceId** | **string** | ID of instance | +**assessmentId** | **string** | ID of assessment | + +### Other Parameters + +Other parameters are passed through a pointer to a apiDownloadReportRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **format** | **string** | Assessment report download format | [default to "html"] + +### Return type + +**string** + +### Authorization + +[BearerAuth](../README.md#BearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: text/html, application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GetAssessmentById + +> Assessment GetAssessmentById(ctx, instanceId, assessmentId).Execute() + +Get assessment by ID + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/corellium/go-corellium-api-client" +) + +func main() { + instanceId := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | ID of instance + assessmentId := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | ID of assessment + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.MatrixApi.GetAssessmentById(context.Background(), instanceId, assessmentId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `MatrixApi.GetAssessmentById``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetAssessmentById`: Assessment + fmt.Fprintf(os.Stdout, "Response from `MatrixApi.GetAssessmentById`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**instanceId** | **string** | ID of instance | +**assessmentId** | **string** | ID of assessment | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGetAssessmentByIdRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + +### Return type + +[**Assessment**](Assessment.md) + +### Authorization + +[BearerAuth](../README.md#BearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## GetAssessmentsByInstanceId + +> []Assessment GetAssessmentsByInstanceId(ctx, instanceId).Execute() + +Get assessments by instanceId + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/corellium/go-corellium-api-client" +) + +func main() { + instanceId := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | ID of instance + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.MatrixApi.GetAssessmentsByInstanceId(context.Background(), instanceId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `MatrixApi.GetAssessmentsByInstanceId``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `GetAssessmentsByInstanceId`: []Assessment + fmt.Fprintf(os.Stdout, "Response from `MatrixApi.GetAssessmentsByInstanceId`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**instanceId** | **string** | ID of instance | + +### Other Parameters + +Other parameters are passed through a pointer to a apiGetAssessmentsByInstanceIdRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + +[**[]Assessment**](Assessment.md) + +### Authorization + +[BearerAuth](../README.md#BearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## RunTests + +> AssessmentIdStatus RunTests(ctx, instanceId, assessmentId).TestAssessmentDto(testAssessmentDto).Execute() + +Update assessment state and execute MATRIX tests + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/corellium/go-corellium-api-client" +) + +func main() { + instanceId := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | ID of instance + assessmentId := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | ID of assessment + testAssessmentDto := *openapiclient.NewTestAssessmentDto() // TestAssessmentDto | Execute MATRIX tests (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.MatrixApi.RunTests(context.Background(), instanceId, assessmentId).TestAssessmentDto(testAssessmentDto).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `MatrixApi.RunTests``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `RunTests`: AssessmentIdStatus + fmt.Fprintf(os.Stdout, "Response from `MatrixApi.RunTests`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**instanceId** | **string** | ID of instance | +**assessmentId** | **string** | ID of assessment | + +### Other Parameters + +Other parameters are passed through a pointer to a apiRunTestsRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + **testAssessmentDto** | [**TestAssessmentDto**](TestAssessmentDto.md) | Execute MATRIX tests | + +### Return type + +[**AssessmentIdStatus**](AssessmentIdStatus.md) + +### Authorization + +[BearerAuth](../README.md#BearerAuth) + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## StartMonitoring + +> StartMonitoring(ctx, instanceId, assessmentId).Execute() + +Update assessment state and begin device monitoring + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/corellium/go-corellium-api-client" +) + +func main() { + instanceId := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | ID of instance + assessmentId := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | ID of assessment + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.MatrixApi.StartMonitoring(context.Background(), instanceId, assessmentId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `MatrixApi.StartMonitoring``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**instanceId** | **string** | ID of instance | +**assessmentId** | **string** | ID of assessment | + +### Other Parameters + +Other parameters are passed through a pointer to a apiStartMonitoringRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + +### Return type + + (empty response body) + +### Authorization + +[BearerAuth](../README.md#BearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## StopMonitoring + +> StopMonitoring(ctx, instanceId, assessmentId).Execute() + +Update assessment state and stop device monitoring + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/corellium/go-corellium-api-client" +) + +func main() { + instanceId := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | ID of instance + assessmentId := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | ID of assessment + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.MatrixApi.StopMonitoring(context.Background(), instanceId, assessmentId).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `MatrixApi.StopMonitoring``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**instanceId** | **string** | ID of instance | +**assessmentId** | **string** | ID of assessment | + +### Other Parameters + +Other parameters are passed through a pointer to a apiStopMonitoringRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + + +### Return type + + (empty response body) + +### Authorization + +[BearerAuth](../README.md#BearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + diff --git a/docs/NetConnectApi.md b/docs/NetConnectApi.md new file mode 100644 index 00000000..66c81ce1 --- /dev/null +++ b/docs/NetConnectApi.md @@ -0,0 +1,408 @@ +# \NetConnectApi + +All URIs are relative to *https://app.corellium.com/api* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**V1CreateNetworkConnection**](NetConnectApi.md#V1CreateNetworkConnection) | **Post** /v1/network/connections | Create a new Network Connection +[**V1DeleteNetworkConnection**](NetConnectApi.md#V1DeleteNetworkConnection) | **Delete** /v1/network/connections/{id} | Delete an existing Network Connection +[**V1ListNetworkConnections**](NetConnectApi.md#V1ListNetworkConnections) | **Get** /v1/network/connections | List available network connections +[**V1ListNetworkProviders**](NetConnectApi.md#V1ListNetworkProviders) | **Get** /v1/network/providers | List available network providers +[**V1PartialUpdateNetworkConnection**](NetConnectApi.md#V1PartialUpdateNetworkConnection) | **Patch** /v1/network/connections/{id} | Update Network Connection (partial) +[**V1UpdateNetworkConnection**](NetConnectApi.md#V1UpdateNetworkConnection) | **Put** /v1/network/connections/{id} | Update Network Connection + + + +## V1CreateNetworkConnection + +> V1CreateNetworkConnection(ctx).CreateNetworkConnectionOptions(createNetworkConnectionOptions).Execute() + +Create a new Network Connection + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/corellium/go-corellium-api-client" +) + +func main() { + createNetworkConnectionOptions := *openapiclient.NewCreateNetworkConnectionOptions("Identifier_example", "Name_example", "Provider_example") // CreateNetworkConnectionOptions | Network Connection Options + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.NetConnectApi.V1CreateNetworkConnection(context.Background()).CreateNetworkConnectionOptions(createNetworkConnectionOptions).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `NetConnectApi.V1CreateNetworkConnection``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiV1CreateNetworkConnectionRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **createNetworkConnectionOptions** | [**CreateNetworkConnectionOptions**](CreateNetworkConnectionOptions.md) | Network Connection Options | + +### Return type + + (empty response body) + +### Authorization + +[BearerAuth](../README.md#BearerAuth) + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## V1DeleteNetworkConnection + +> V1DeleteNetworkConnection(ctx, id).Execute() + +Delete an existing Network Connection + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/corellium/go-corellium-api-client" +) + +func main() { + id := "id_example" // string | Network Connection Identifier - uuid + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.NetConnectApi.V1DeleteNetworkConnection(context.Background(), id).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `NetConnectApi.V1DeleteNetworkConnection``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**id** | **string** | Network Connection Identifier - uuid | + +### Other Parameters + +Other parameters are passed through a pointer to a apiV1DeleteNetworkConnectionRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + + (empty response body) + +### Authorization + +[BearerAuth](../README.md#BearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## V1ListNetworkConnections + +> NetworkConnectionOffsetPaginationResult V1ListNetworkConnections(ctx).Execute() + +List available network connections + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/corellium/go-corellium-api-client" +) + +func main() { + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.NetConnectApi.V1ListNetworkConnections(context.Background()).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `NetConnectApi.V1ListNetworkConnections``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `V1ListNetworkConnections`: NetworkConnectionOffsetPaginationResult + fmt.Fprintf(os.Stdout, "Response from `NetConnectApi.V1ListNetworkConnections`: %v\n", resp) +} +``` + +### Path Parameters + +This endpoint does not need any parameter. + +### Other Parameters + +Other parameters are passed through a pointer to a apiV1ListNetworkConnectionsRequest struct via the builder pattern + + +### Return type + +[**NetworkConnectionOffsetPaginationResult**](NetworkConnectionOffsetPaginationResult.md) + +### Authorization + +[BearerAuth](../README.md#BearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## V1ListNetworkProviders + +> NetworkConnectionProviderOffsetPaginationResult V1ListNetworkProviders(ctx).Execute() + +List available network providers + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/corellium/go-corellium-api-client" +) + +func main() { + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.NetConnectApi.V1ListNetworkProviders(context.Background()).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `NetConnectApi.V1ListNetworkProviders``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `V1ListNetworkProviders`: NetworkConnectionProviderOffsetPaginationResult + fmt.Fprintf(os.Stdout, "Response from `NetConnectApi.V1ListNetworkProviders`: %v\n", resp) +} +``` + +### Path Parameters + +This endpoint does not need any parameter. + +### Other Parameters + +Other parameters are passed through a pointer to a apiV1ListNetworkProvidersRequest struct via the builder pattern + + +### Return type + +[**NetworkConnectionProviderOffsetPaginationResult**](NetworkConnectionProviderOffsetPaginationResult.md) + +### Authorization + +[BearerAuth](../README.md#BearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## V1PartialUpdateNetworkConnection + +> V1PartialUpdateNetworkConnection(ctx, id).UpdateNetworkConnectionOptions(updateNetworkConnectionOptions).Execute() + +Update Network Connection (partial) + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/corellium/go-corellium-api-client" +) + +func main() { + id := "id_example" // string | Network Connection Identifier - uuid + updateNetworkConnectionOptions := *openapiclient.NewUpdateNetworkConnectionOptions("Name_example") // UpdateNetworkConnectionOptions | Network Connection Options + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.NetConnectApi.V1PartialUpdateNetworkConnection(context.Background(), id).UpdateNetworkConnectionOptions(updateNetworkConnectionOptions).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `NetConnectApi.V1PartialUpdateNetworkConnection``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**id** | **string** | Network Connection Identifier - uuid | + +### Other Parameters + +Other parameters are passed through a pointer to a apiV1PartialUpdateNetworkConnectionRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **updateNetworkConnectionOptions** | [**UpdateNetworkConnectionOptions**](UpdateNetworkConnectionOptions.md) | Network Connection Options | + +### Return type + + (empty response body) + +### Authorization + +[BearerAuth](../README.md#BearerAuth) + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## V1UpdateNetworkConnection + +> V1UpdateNetworkConnection(ctx, id).UpdateNetworkConnectionOptions(updateNetworkConnectionOptions).Execute() + +Update Network Connection + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/corellium/go-corellium-api-client" +) + +func main() { + id := "id_example" // string | Network Connection Identifier - uuid + updateNetworkConnectionOptions := *openapiclient.NewUpdateNetworkConnectionOptions("Name_example") // UpdateNetworkConnectionOptions | Network Connection Options + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.NetConnectApi.V1UpdateNetworkConnection(context.Background(), id).UpdateNetworkConnectionOptions(updateNetworkConnectionOptions).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `NetConnectApi.V1UpdateNetworkConnection``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**id** | **string** | Network Connection Identifier - uuid | + +### Other Parameters + +Other parameters are passed through a pointer to a apiV1UpdateNetworkConnectionRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **updateNetworkConnectionOptions** | [**UpdateNetworkConnectionOptions**](UpdateNetworkConnectionOptions.md) | Network Connection Options | + +### Return type + + (empty response body) + +### Authorization + +[BearerAuth](../README.md#BearerAuth) + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + diff --git a/docs/NetworkConnection.md b/docs/NetworkConnection.md new file mode 100644 index 00000000..e3bf0ef4 --- /dev/null +++ b/docs/NetworkConnection.md @@ -0,0 +1,228 @@ +# NetworkConnection + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Identifier** | **string** | UUIDv4 | +**Name** | **string** | User specified name for this network connection. e.g. My Network Connection | +**Config** | Pointer to **map[string]interface{}** | An object containing network connection configuration data. Will vary based on network provider type. | [optional] +**Provider** | Pointer to **NullableString** | One of the registered [network provider types](#get-/v1/network/providers) | [optional] +**CreatedAt** | **string** | Created Date in ISO-8601 format e.g. 2022-05-06T02:39:23.000Z | +**UpdatedAt** | **string** | Updated Date in ISO-8601 format e.g. 2022-05-06T02:39:23.000Z | +**CreatedBy** | **string** | UUIDv4 of the user who created this record. | +**UpdatedBy** | **string** | UUIDv4 of the user who last updated this record. | + +## Methods + +### NewNetworkConnection + +`func NewNetworkConnection(identifier string, name string, createdAt string, updatedAt string, createdBy string, updatedBy string, ) *NetworkConnection` + +NewNetworkConnection instantiates a new NetworkConnection object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewNetworkConnectionWithDefaults + +`func NewNetworkConnectionWithDefaults() *NetworkConnection` + +NewNetworkConnectionWithDefaults instantiates a new NetworkConnection object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetIdentifier + +`func (o *NetworkConnection) GetIdentifier() string` + +GetIdentifier returns the Identifier field if non-nil, zero value otherwise. + +### GetIdentifierOk + +`func (o *NetworkConnection) GetIdentifierOk() (*string, bool)` + +GetIdentifierOk returns a tuple with the Identifier field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIdentifier + +`func (o *NetworkConnection) SetIdentifier(v string)` + +SetIdentifier sets Identifier field to given value. + + +### GetName + +`func (o *NetworkConnection) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *NetworkConnection) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *NetworkConnection) SetName(v string)` + +SetName sets Name field to given value. + + +### GetConfig + +`func (o *NetworkConnection) GetConfig() map[string]interface{}` + +GetConfig returns the Config field if non-nil, zero value otherwise. + +### GetConfigOk + +`func (o *NetworkConnection) GetConfigOk() (*map[string]interface{}, bool)` + +GetConfigOk returns a tuple with the Config field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetConfig + +`func (o *NetworkConnection) SetConfig(v map[string]interface{})` + +SetConfig sets Config field to given value. + +### HasConfig + +`func (o *NetworkConnection) HasConfig() bool` + +HasConfig returns a boolean if a field has been set. + +### SetConfigNil + +`func (o *NetworkConnection) SetConfigNil(b bool)` + + SetConfigNil sets the value for Config to be an explicit nil + +### UnsetConfig +`func (o *NetworkConnection) UnsetConfig()` + +UnsetConfig ensures that no value is present for Config, not even an explicit nil +### GetProvider + +`func (o *NetworkConnection) GetProvider() string` + +GetProvider returns the Provider field if non-nil, zero value otherwise. + +### GetProviderOk + +`func (o *NetworkConnection) GetProviderOk() (*string, bool)` + +GetProviderOk returns a tuple with the Provider field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetProvider + +`func (o *NetworkConnection) SetProvider(v string)` + +SetProvider sets Provider field to given value. + +### HasProvider + +`func (o *NetworkConnection) HasProvider() bool` + +HasProvider returns a boolean if a field has been set. + +### SetProviderNil + +`func (o *NetworkConnection) SetProviderNil(b bool)` + + SetProviderNil sets the value for Provider to be an explicit nil + +### UnsetProvider +`func (o *NetworkConnection) UnsetProvider()` + +UnsetProvider ensures that no value is present for Provider, not even an explicit nil +### GetCreatedAt + +`func (o *NetworkConnection) GetCreatedAt() string` + +GetCreatedAt returns the CreatedAt field if non-nil, zero value otherwise. + +### GetCreatedAtOk + +`func (o *NetworkConnection) GetCreatedAtOk() (*string, bool)` + +GetCreatedAtOk returns a tuple with the CreatedAt field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCreatedAt + +`func (o *NetworkConnection) SetCreatedAt(v string)` + +SetCreatedAt sets CreatedAt field to given value. + + +### GetUpdatedAt + +`func (o *NetworkConnection) GetUpdatedAt() string` + +GetUpdatedAt returns the UpdatedAt field if non-nil, zero value otherwise. + +### GetUpdatedAtOk + +`func (o *NetworkConnection) GetUpdatedAtOk() (*string, bool)` + +GetUpdatedAtOk returns a tuple with the UpdatedAt field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUpdatedAt + +`func (o *NetworkConnection) SetUpdatedAt(v string)` + +SetUpdatedAt sets UpdatedAt field to given value. + + +### GetCreatedBy + +`func (o *NetworkConnection) GetCreatedBy() string` + +GetCreatedBy returns the CreatedBy field if non-nil, zero value otherwise. + +### GetCreatedByOk + +`func (o *NetworkConnection) GetCreatedByOk() (*string, bool)` + +GetCreatedByOk returns a tuple with the CreatedBy field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCreatedBy + +`func (o *NetworkConnection) SetCreatedBy(v string)` + +SetCreatedBy sets CreatedBy field to given value. + + +### GetUpdatedBy + +`func (o *NetworkConnection) GetUpdatedBy() string` + +GetUpdatedBy returns the UpdatedBy field if non-nil, zero value otherwise. + +### GetUpdatedByOk + +`func (o *NetworkConnection) GetUpdatedByOk() (*string, bool)` + +GetUpdatedByOk returns a tuple with the UpdatedBy field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUpdatedBy + +`func (o *NetworkConnection) SetUpdatedBy(v string)` + +SetUpdatedBy sets UpdatedBy field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/NetworkConnectionOffsetPaginationResult.md b/docs/NetworkConnectionOffsetPaginationResult.md new file mode 100644 index 00000000..04ff15ac --- /dev/null +++ b/docs/NetworkConnectionOffsetPaginationResult.md @@ -0,0 +1,135 @@ +# NetworkConnectionOffsetPaginationResult + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Total** | **float32** | Total number of items. | +**Count** | **float32** | The number of items returned in this result. | +**Limit** | **float32** | The maximum number of items that could be returned for this result. | +**Offset** | **float32** | That starting item 0-indexed. | +**Results** | [**[]NetworkConnection**](NetworkConnection.md) | Array of network connections associated with this domain. | + +## Methods + +### NewNetworkConnectionOffsetPaginationResult + +`func NewNetworkConnectionOffsetPaginationResult(total float32, count float32, limit float32, offset float32, results []NetworkConnection, ) *NetworkConnectionOffsetPaginationResult` + +NewNetworkConnectionOffsetPaginationResult instantiates a new NetworkConnectionOffsetPaginationResult object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewNetworkConnectionOffsetPaginationResultWithDefaults + +`func NewNetworkConnectionOffsetPaginationResultWithDefaults() *NetworkConnectionOffsetPaginationResult` + +NewNetworkConnectionOffsetPaginationResultWithDefaults instantiates a new NetworkConnectionOffsetPaginationResult object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetTotal + +`func (o *NetworkConnectionOffsetPaginationResult) GetTotal() float32` + +GetTotal returns the Total field if non-nil, zero value otherwise. + +### GetTotalOk + +`func (o *NetworkConnectionOffsetPaginationResult) GetTotalOk() (*float32, bool)` + +GetTotalOk returns a tuple with the Total field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTotal + +`func (o *NetworkConnectionOffsetPaginationResult) SetTotal(v float32)` + +SetTotal sets Total field to given value. + + +### GetCount + +`func (o *NetworkConnectionOffsetPaginationResult) GetCount() float32` + +GetCount returns the Count field if non-nil, zero value otherwise. + +### GetCountOk + +`func (o *NetworkConnectionOffsetPaginationResult) GetCountOk() (*float32, bool)` + +GetCountOk returns a tuple with the Count field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCount + +`func (o *NetworkConnectionOffsetPaginationResult) SetCount(v float32)` + +SetCount sets Count field to given value. + + +### GetLimit + +`func (o *NetworkConnectionOffsetPaginationResult) GetLimit() float32` + +GetLimit returns the Limit field if non-nil, zero value otherwise. + +### GetLimitOk + +`func (o *NetworkConnectionOffsetPaginationResult) GetLimitOk() (*float32, bool)` + +GetLimitOk returns a tuple with the Limit field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLimit + +`func (o *NetworkConnectionOffsetPaginationResult) SetLimit(v float32)` + +SetLimit sets Limit field to given value. + + +### GetOffset + +`func (o *NetworkConnectionOffsetPaginationResult) GetOffset() float32` + +GetOffset returns the Offset field if non-nil, zero value otherwise. + +### GetOffsetOk + +`func (o *NetworkConnectionOffsetPaginationResult) GetOffsetOk() (*float32, bool)` + +GetOffsetOk returns a tuple with the Offset field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOffset + +`func (o *NetworkConnectionOffsetPaginationResult) SetOffset(v float32)` + +SetOffset sets Offset field to given value. + + +### GetResults + +`func (o *NetworkConnectionOffsetPaginationResult) GetResults() []NetworkConnection` + +GetResults returns the Results field if non-nil, zero value otherwise. + +### GetResultsOk + +`func (o *NetworkConnectionOffsetPaginationResult) GetResultsOk() (*[]NetworkConnection, bool)` + +GetResultsOk returns a tuple with the Results field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetResults + +`func (o *NetworkConnectionOffsetPaginationResult) SetResults(v []NetworkConnection)` + +SetResults sets Results field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/NetworkConnectionProvider.md b/docs/NetworkConnectionProvider.md new file mode 100644 index 00000000..38598291 --- /dev/null +++ b/docs/NetworkConnectionProvider.md @@ -0,0 +1,72 @@ +# NetworkConnectionProvider + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Name** | **string** | Human friendly name for Network Connection Provider. | +**Type** | **string** | Internal identifier for Network Connection Provider. | + +## Methods + +### NewNetworkConnectionProvider + +`func NewNetworkConnectionProvider(name string, type_ string, ) *NetworkConnectionProvider` + +NewNetworkConnectionProvider instantiates a new NetworkConnectionProvider object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewNetworkConnectionProviderWithDefaults + +`func NewNetworkConnectionProviderWithDefaults() *NetworkConnectionProvider` + +NewNetworkConnectionProviderWithDefaults instantiates a new NetworkConnectionProvider object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetName + +`func (o *NetworkConnectionProvider) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *NetworkConnectionProvider) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *NetworkConnectionProvider) SetName(v string)` + +SetName sets Name field to given value. + + +### GetType + +`func (o *NetworkConnectionProvider) GetType() string` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *NetworkConnectionProvider) GetTypeOk() (*string, bool)` + +GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetType + +`func (o *NetworkConnectionProvider) SetType(v string)` + +SetType sets Type field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/NetworkConnectionProviderOffsetPaginationResult.md b/docs/NetworkConnectionProviderOffsetPaginationResult.md new file mode 100644 index 00000000..be905c14 --- /dev/null +++ b/docs/NetworkConnectionProviderOffsetPaginationResult.md @@ -0,0 +1,135 @@ +# NetworkConnectionProviderOffsetPaginationResult + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Total** | **float32** | Total number of items. | +**Count** | **float32** | The number of items returned in this result. | +**Limit** | **float32** | The maximum number of items that could be returned for this result. | +**Offset** | **float32** | That starting item 0-indexed. | +**Results** | [**[]NetworkConnectionProvider**](NetworkConnectionProvider.md) | Array of network connection providers. | + +## Methods + +### NewNetworkConnectionProviderOffsetPaginationResult + +`func NewNetworkConnectionProviderOffsetPaginationResult(total float32, count float32, limit float32, offset float32, results []NetworkConnectionProvider, ) *NetworkConnectionProviderOffsetPaginationResult` + +NewNetworkConnectionProviderOffsetPaginationResult instantiates a new NetworkConnectionProviderOffsetPaginationResult object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewNetworkConnectionProviderOffsetPaginationResultWithDefaults + +`func NewNetworkConnectionProviderOffsetPaginationResultWithDefaults() *NetworkConnectionProviderOffsetPaginationResult` + +NewNetworkConnectionProviderOffsetPaginationResultWithDefaults instantiates a new NetworkConnectionProviderOffsetPaginationResult object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetTotal + +`func (o *NetworkConnectionProviderOffsetPaginationResult) GetTotal() float32` + +GetTotal returns the Total field if non-nil, zero value otherwise. + +### GetTotalOk + +`func (o *NetworkConnectionProviderOffsetPaginationResult) GetTotalOk() (*float32, bool)` + +GetTotalOk returns a tuple with the Total field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTotal + +`func (o *NetworkConnectionProviderOffsetPaginationResult) SetTotal(v float32)` + +SetTotal sets Total field to given value. + + +### GetCount + +`func (o *NetworkConnectionProviderOffsetPaginationResult) GetCount() float32` + +GetCount returns the Count field if non-nil, zero value otherwise. + +### GetCountOk + +`func (o *NetworkConnectionProviderOffsetPaginationResult) GetCountOk() (*float32, bool)` + +GetCountOk returns a tuple with the Count field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCount + +`func (o *NetworkConnectionProviderOffsetPaginationResult) SetCount(v float32)` + +SetCount sets Count field to given value. + + +### GetLimit + +`func (o *NetworkConnectionProviderOffsetPaginationResult) GetLimit() float32` + +GetLimit returns the Limit field if non-nil, zero value otherwise. + +### GetLimitOk + +`func (o *NetworkConnectionProviderOffsetPaginationResult) GetLimitOk() (*float32, bool)` + +GetLimitOk returns a tuple with the Limit field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLimit + +`func (o *NetworkConnectionProviderOffsetPaginationResult) SetLimit(v float32)` + +SetLimit sets Limit field to given value. + + +### GetOffset + +`func (o *NetworkConnectionProviderOffsetPaginationResult) GetOffset() float32` + +GetOffset returns the Offset field if non-nil, zero value otherwise. + +### GetOffsetOk + +`func (o *NetworkConnectionProviderOffsetPaginationResult) GetOffsetOk() (*float32, bool)` + +GetOffsetOk returns a tuple with the Offset field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOffset + +`func (o *NetworkConnectionProviderOffsetPaginationResult) SetOffset(v float32)` + +SetOffset sets Offset field to given value. + + +### GetResults + +`func (o *NetworkConnectionProviderOffsetPaginationResult) GetResults() []NetworkConnectionProvider` + +GetResults returns the Results field if non-nil, zero value otherwise. + +### GetResultsOk + +`func (o *NetworkConnectionProviderOffsetPaginationResult) GetResultsOk() (*[]NetworkConnectionProvider, bool)` + +GetResultsOk returns a tuple with the Results field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetResults + +`func (o *NetworkConnectionProviderOffsetPaginationResult) SetResults(v []NetworkConnectionProvider)` + +SetResults sets Results field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/PostShareSnapshotRequestPayload.md b/docs/PostShareSnapshotRequestPayload.md new file mode 100644 index 00000000..ec12f95a --- /dev/null +++ b/docs/PostShareSnapshotRequestPayload.md @@ -0,0 +1,87 @@ +# PostShareSnapshotRequestPayload + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**SharingType** | **string** | | +**Password** | Pointer to **NullableString** | Password for passwordPublicLink. | [optional] + +## Methods + +### NewPostShareSnapshotRequestPayload + +`func NewPostShareSnapshotRequestPayload(sharingType string, ) *PostShareSnapshotRequestPayload` + +NewPostShareSnapshotRequestPayload instantiates a new PostShareSnapshotRequestPayload object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewPostShareSnapshotRequestPayloadWithDefaults + +`func NewPostShareSnapshotRequestPayloadWithDefaults() *PostShareSnapshotRequestPayload` + +NewPostShareSnapshotRequestPayloadWithDefaults instantiates a new PostShareSnapshotRequestPayload object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetSharingType + +`func (o *PostShareSnapshotRequestPayload) GetSharingType() string` + +GetSharingType returns the SharingType field if non-nil, zero value otherwise. + +### GetSharingTypeOk + +`func (o *PostShareSnapshotRequestPayload) GetSharingTypeOk() (*string, bool)` + +GetSharingTypeOk returns a tuple with the SharingType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSharingType + +`func (o *PostShareSnapshotRequestPayload) SetSharingType(v string)` + +SetSharingType sets SharingType field to given value. + + +### GetPassword + +`func (o *PostShareSnapshotRequestPayload) GetPassword() string` + +GetPassword returns the Password field if non-nil, zero value otherwise. + +### GetPasswordOk + +`func (o *PostShareSnapshotRequestPayload) GetPasswordOk() (*string, bool)` + +GetPasswordOk returns a tuple with the Password field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPassword + +`func (o *PostShareSnapshotRequestPayload) SetPassword(v string)` + +SetPassword sets Password field to given value. + +### HasPassword + +`func (o *PostShareSnapshotRequestPayload) HasPassword() bool` + +HasPassword returns a boolean if a field has been set. + +### SetPasswordNil + +`func (o *PostShareSnapshotRequestPayload) SetPasswordNil(b bool)` + + SetPasswordNil sets the value for Password to be an explicit nil + +### UnsetPassword +`func (o *PostShareSnapshotRequestPayload) UnsetPassword()` + +UnsetPassword ensures that no value is present for Password, not even an explicit nil + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ProjectSettings.md b/docs/ProjectSettings.md index 1b56f903..c6214461 100644 --- a/docs/ProjectSettings.md +++ b/docs/ProjectSettings.md @@ -4,14 +4,15 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**InternetAccess** | Pointer to **NullableBool** | | [optional] -**Dhcp** | Pointer to **NullableBool** | | [optional] +**InternetAccess** | **bool** | | +**Connection** | Pointer to **NullableString** | UUIDv4 network connection identifier or null for no vpn connection | [optional] +**Dhcp** | **bool** | | ## Methods ### NewProjectSettings -`func NewProjectSettings() *ProjectSettings` +`func NewProjectSettings(internetAccess bool, dhcp bool, ) *ProjectSettings` NewProjectSettings instantiates a new ProjectSettings object This constructor will assign default values to properties that have it defined, @@ -45,22 +46,42 @@ and a boolean to check if the value has been set. SetInternetAccess sets InternetAccess field to given value. -### HasInternetAccess -`func (o *ProjectSettings) HasInternetAccess() bool` +### GetConnection -HasInternetAccess returns a boolean if a field has been set. +`func (o *ProjectSettings) GetConnection() string` -### SetInternetAccessNil +GetConnection returns the Connection field if non-nil, zero value otherwise. -`func (o *ProjectSettings) SetInternetAccessNil(b bool)` +### GetConnectionOk - SetInternetAccessNil sets the value for InternetAccess to be an explicit nil +`func (o *ProjectSettings) GetConnectionOk() (*string, bool)` -### UnsetInternetAccess -`func (o *ProjectSettings) UnsetInternetAccess()` +GetConnectionOk returns a tuple with the Connection field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetConnection + +`func (o *ProjectSettings) SetConnection(v string)` + +SetConnection sets Connection field to given value. + +### HasConnection + +`func (o *ProjectSettings) HasConnection() bool` + +HasConnection returns a boolean if a field has been set. + +### SetConnectionNil + +`func (o *ProjectSettings) SetConnectionNil(b bool)` -UnsetInternetAccess ensures that no value is present for InternetAccess, not even an explicit nil + SetConnectionNil sets the value for Connection to be an explicit nil + +### UnsetConnection +`func (o *ProjectSettings) UnsetConnection()` + +UnsetConnection ensures that no value is present for Connection, not even an explicit nil ### GetDhcp `func (o *ProjectSettings) GetDhcp() bool` @@ -80,22 +101,7 @@ and a boolean to check if the value has been set. SetDhcp sets Dhcp field to given value. -### HasDhcp - -`func (o *ProjectSettings) HasDhcp() bool` - -HasDhcp returns a boolean if a field has been set. - -### SetDhcpNil - -`func (o *ProjectSettings) SetDhcpNil(b bool)` - - SetDhcpNil sets the value for Dhcp to be an explicit nil - -### UnsetDhcp -`func (o *ProjectSettings) UnsetDhcp()` -UnsetDhcp ensures that no value is present for Dhcp, not even an explicit nil [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/ProjectsApi.md b/docs/ProjectsApi.md index 67c63217..240b009b 100644 --- a/docs/ProjectsApi.md +++ b/docs/ProjectsApi.md @@ -724,7 +724,7 @@ import ( func main() { projectId := "projectId_example" // string | Project ID - uuid - projectSettings := *openapiclient.NewProjectSettings() // ProjectSettings | New settings + projectSettings := *openapiclient.NewProjectSettings(false, false) // ProjectSettings | New settings configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) diff --git a/docs/SharedSnapshotsInfo.md b/docs/SharedSnapshotsInfo.md new file mode 100644 index 00000000..9d7382aa --- /dev/null +++ b/docs/SharedSnapshotsInfo.md @@ -0,0 +1,176 @@ +# SharedSnapshotsInfo + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | **string** | UUID of the snapshot | +**Name** | **string** | Snapshot name | +**Model** | **string** | Device model | +**SharedOn** | **float32** | UNIX Date of when the snapshot was first shared with member | +**SharedWithMember** | Pointer to **NullableString** | The member who the snapshot was shared with. Only present in sharedWithUser | [optional] +**SharedBy** | Pointer to [**SnapshotOwner**](SnapshotOwner.md) | | [optional] + +## Methods + +### NewSharedSnapshotsInfo + +`func NewSharedSnapshotsInfo(id string, name string, model string, sharedOn float32, ) *SharedSnapshotsInfo` + +NewSharedSnapshotsInfo instantiates a new SharedSnapshotsInfo object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewSharedSnapshotsInfoWithDefaults + +`func NewSharedSnapshotsInfoWithDefaults() *SharedSnapshotsInfo` + +NewSharedSnapshotsInfoWithDefaults instantiates a new SharedSnapshotsInfo object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetId + +`func (o *SharedSnapshotsInfo) GetId() string` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *SharedSnapshotsInfo) GetIdOk() (*string, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *SharedSnapshotsInfo) SetId(v string)` + +SetId sets Id field to given value. + + +### GetName + +`func (o *SharedSnapshotsInfo) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *SharedSnapshotsInfo) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *SharedSnapshotsInfo) SetName(v string)` + +SetName sets Name field to given value. + + +### GetModel + +`func (o *SharedSnapshotsInfo) GetModel() string` + +GetModel returns the Model field if non-nil, zero value otherwise. + +### GetModelOk + +`func (o *SharedSnapshotsInfo) GetModelOk() (*string, bool)` + +GetModelOk returns a tuple with the Model field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetModel + +`func (o *SharedSnapshotsInfo) SetModel(v string)` + +SetModel sets Model field to given value. + + +### GetSharedOn + +`func (o *SharedSnapshotsInfo) GetSharedOn() float32` + +GetSharedOn returns the SharedOn field if non-nil, zero value otherwise. + +### GetSharedOnOk + +`func (o *SharedSnapshotsInfo) GetSharedOnOk() (*float32, bool)` + +GetSharedOnOk returns a tuple with the SharedOn field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSharedOn + +`func (o *SharedSnapshotsInfo) SetSharedOn(v float32)` + +SetSharedOn sets SharedOn field to given value. + + +### GetSharedWithMember + +`func (o *SharedSnapshotsInfo) GetSharedWithMember() string` + +GetSharedWithMember returns the SharedWithMember field if non-nil, zero value otherwise. + +### GetSharedWithMemberOk + +`func (o *SharedSnapshotsInfo) GetSharedWithMemberOk() (*string, bool)` + +GetSharedWithMemberOk returns a tuple with the SharedWithMember field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSharedWithMember + +`func (o *SharedSnapshotsInfo) SetSharedWithMember(v string)` + +SetSharedWithMember sets SharedWithMember field to given value. + +### HasSharedWithMember + +`func (o *SharedSnapshotsInfo) HasSharedWithMember() bool` + +HasSharedWithMember returns a boolean if a field has been set. + +### SetSharedWithMemberNil + +`func (o *SharedSnapshotsInfo) SetSharedWithMemberNil(b bool)` + + SetSharedWithMemberNil sets the value for SharedWithMember to be an explicit nil + +### UnsetSharedWithMember +`func (o *SharedSnapshotsInfo) UnsetSharedWithMember()` + +UnsetSharedWithMember ensures that no value is present for SharedWithMember, not even an explicit nil +### GetSharedBy + +`func (o *SharedSnapshotsInfo) GetSharedBy() SnapshotOwner` + +GetSharedBy returns the SharedBy field if non-nil, zero value otherwise. + +### GetSharedByOk + +`func (o *SharedSnapshotsInfo) GetSharedByOk() (*SnapshotOwner, bool)` + +GetSharedByOk returns a tuple with the SharedBy field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSharedBy + +`func (o *SharedSnapshotsInfo) SetSharedBy(v SnapshotOwner)` + +SetSharedBy sets SharedBy field to given value. + +### HasSharedBy + +`func (o *SharedSnapshotsInfo) HasSharedBy() bool` + +HasSharedBy returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/Snapshot.md b/docs/Snapshot.md index 0e3c4efc..c7184912 100644 --- a/docs/Snapshot.md +++ b/docs/Snapshot.md @@ -12,6 +12,7 @@ Name | Type | Description | Notes **Fresh** | **bool** | | **Live** | **bool** | Live snapshot (included state and memory) | **Local** | **bool** | | +**Model** | Pointer to **NullableString** | The device model | [optional] **Sharing** | Pointer to [**SnapshotSharing**](SnapshotSharing.md) | | [optional] ## Methods @@ -193,6 +194,41 @@ and a boolean to check if the value has been set. SetLocal sets Local field to given value. +### GetModel + +`func (o *Snapshot) GetModel() string` + +GetModel returns the Model field if non-nil, zero value otherwise. + +### GetModelOk + +`func (o *Snapshot) GetModelOk() (*string, bool)` + +GetModelOk returns a tuple with the Model field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetModel + +`func (o *Snapshot) SetModel(v string)` + +SetModel sets Model field to given value. + +### HasModel + +`func (o *Snapshot) HasModel() bool` + +HasModel returns a boolean if a field has been set. + +### SetModelNil + +`func (o *Snapshot) SetModelNil(b bool)` + + SetModelNil sets the value for Model to be an explicit nil + +### UnsetModel +`func (o *Snapshot) UnsetModel()` + +UnsetModel ensures that no value is present for Model, not even an explicit nil ### GetSharing `func (o *Snapshot) GetSharing() SnapshotSharing` diff --git a/docs/SnapshotMember.md b/docs/SnapshotMember.md new file mode 100644 index 00000000..dd20804c --- /dev/null +++ b/docs/SnapshotMember.md @@ -0,0 +1,165 @@ +# SnapshotMember + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Email** | **string** | The email of the member | +**InviteSentAt** | **float32** | The date when the invite was sent | +**SharedOn** | **float32** | UNIX Date of when the snapshot was first shared with member | +**UserId** | Pointer to **NullableString** | The member's user ID | [optional] +**Label** | Pointer to **NullableString** | The user's label or name | [optional] + +## Methods + +### NewSnapshotMember + +`func NewSnapshotMember(email string, inviteSentAt float32, sharedOn float32, ) *SnapshotMember` + +NewSnapshotMember instantiates a new SnapshotMember object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewSnapshotMemberWithDefaults + +`func NewSnapshotMemberWithDefaults() *SnapshotMember` + +NewSnapshotMemberWithDefaults instantiates a new SnapshotMember object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetEmail + +`func (o *SnapshotMember) GetEmail() string` + +GetEmail returns the Email field if non-nil, zero value otherwise. + +### GetEmailOk + +`func (o *SnapshotMember) GetEmailOk() (*string, bool)` + +GetEmailOk returns a tuple with the Email field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEmail + +`func (o *SnapshotMember) SetEmail(v string)` + +SetEmail sets Email field to given value. + + +### GetInviteSentAt + +`func (o *SnapshotMember) GetInviteSentAt() float32` + +GetInviteSentAt returns the InviteSentAt field if non-nil, zero value otherwise. + +### GetInviteSentAtOk + +`func (o *SnapshotMember) GetInviteSentAtOk() (*float32, bool)` + +GetInviteSentAtOk returns a tuple with the InviteSentAt field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetInviteSentAt + +`func (o *SnapshotMember) SetInviteSentAt(v float32)` + +SetInviteSentAt sets InviteSentAt field to given value. + + +### GetSharedOn + +`func (o *SnapshotMember) GetSharedOn() float32` + +GetSharedOn returns the SharedOn field if non-nil, zero value otherwise. + +### GetSharedOnOk + +`func (o *SnapshotMember) GetSharedOnOk() (*float32, bool)` + +GetSharedOnOk returns a tuple with the SharedOn field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSharedOn + +`func (o *SnapshotMember) SetSharedOn(v float32)` + +SetSharedOn sets SharedOn field to given value. + + +### GetUserId + +`func (o *SnapshotMember) GetUserId() string` + +GetUserId returns the UserId field if non-nil, zero value otherwise. + +### GetUserIdOk + +`func (o *SnapshotMember) GetUserIdOk() (*string, bool)` + +GetUserIdOk returns a tuple with the UserId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUserId + +`func (o *SnapshotMember) SetUserId(v string)` + +SetUserId sets UserId field to given value. + +### HasUserId + +`func (o *SnapshotMember) HasUserId() bool` + +HasUserId returns a boolean if a field has been set. + +### SetUserIdNil + +`func (o *SnapshotMember) SetUserIdNil(b bool)` + + SetUserIdNil sets the value for UserId to be an explicit nil + +### UnsetUserId +`func (o *SnapshotMember) UnsetUserId()` + +UnsetUserId ensures that no value is present for UserId, not even an explicit nil +### GetLabel + +`func (o *SnapshotMember) GetLabel() string` + +GetLabel returns the Label field if non-nil, zero value otherwise. + +### GetLabelOk + +`func (o *SnapshotMember) GetLabelOk() (*string, bool)` + +GetLabelOk returns a tuple with the Label field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLabel + +`func (o *SnapshotMember) SetLabel(v string)` + +SetLabel sets Label field to given value. + +### HasLabel + +`func (o *SnapshotMember) HasLabel() bool` + +HasLabel returns a boolean if a field has been set. + +### SetLabelNil + +`func (o *SnapshotMember) SetLabelNil(b bool)` + + SetLabelNil sets the value for Label to be an explicit nil + +### UnsetLabel +`func (o *SnapshotMember) UnsetLabel()` + +UnsetLabel ensures that no value is present for Label, not even an explicit nil + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/SnapshotOwner.md b/docs/SnapshotOwner.md new file mode 100644 index 00000000..65394cd9 --- /dev/null +++ b/docs/SnapshotOwner.md @@ -0,0 +1,72 @@ +# SnapshotOwner + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Name** | **string** | The name of the owner. | +**Email** | **string** | The email of the member. | + +## Methods + +### NewSnapshotOwner + +`func NewSnapshotOwner(name string, email string, ) *SnapshotOwner` + +NewSnapshotOwner instantiates a new SnapshotOwner object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewSnapshotOwnerWithDefaults + +`func NewSnapshotOwnerWithDefaults() *SnapshotOwner` + +NewSnapshotOwnerWithDefaults instantiates a new SnapshotOwner object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetName + +`func (o *SnapshotOwner) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *SnapshotOwner) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *SnapshotOwner) SetName(v string)` + +SetName sets Name field to given value. + + +### GetEmail + +`func (o *SnapshotOwner) GetEmail() string` + +GetEmail returns the Email field if non-nil, zero value otherwise. + +### GetEmailOk + +`func (o *SnapshotOwner) GetEmailOk() (*string, bool)` + +GetEmailOk returns a tuple with the Email field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEmail + +`func (o *SnapshotOwner) SetEmail(v string)` + +SetEmail sets Email field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/SnapshotPermissionsRequestPayload.md b/docs/SnapshotPermissionsRequestPayload.md new file mode 100644 index 00000000..1cc1a60f --- /dev/null +++ b/docs/SnapshotPermissionsRequestPayload.md @@ -0,0 +1,51 @@ +# SnapshotPermissionsRequestPayload + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Members** | **[]string** | The email addresses or user ids of the members. | + +## Methods + +### NewSnapshotPermissionsRequestPayload + +`func NewSnapshotPermissionsRequestPayload(members []string, ) *SnapshotPermissionsRequestPayload` + +NewSnapshotPermissionsRequestPayload instantiates a new SnapshotPermissionsRequestPayload object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewSnapshotPermissionsRequestPayloadWithDefaults + +`func NewSnapshotPermissionsRequestPayloadWithDefaults() *SnapshotPermissionsRequestPayload` + +NewSnapshotPermissionsRequestPayloadWithDefaults instantiates a new SnapshotPermissionsRequestPayload object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetMembers + +`func (o *SnapshotPermissionsRequestPayload) GetMembers() []string` + +GetMembers returns the Members field if non-nil, zero value otherwise. + +### GetMembersOk + +`func (o *SnapshotPermissionsRequestPayload) GetMembersOk() (*[]string, bool)` + +GetMembersOk returns a tuple with the Members field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMembers + +`func (o *SnapshotPermissionsRequestPayload) SetMembers(v []string)` + +SetMembers sets Members field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/SnapshotSharing.md b/docs/SnapshotSharing.md index 297f621f..7bc1e735 100644 --- a/docs/SnapshotSharing.md +++ b/docs/SnapshotSharing.md @@ -4,14 +4,16 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Url** | **string** | The URL of the snapshot. | -**Users** | [**[]SnapshotUser**](SnapshotUser.md) | The users who have access to the snapshot. | +**SharingType** | **string** | | +**Password** | Pointer to **NullableString** | Password with using passwordPublicLink | [optional] +**SharedBy** | Pointer to [**SnapshotOwner**](SnapshotOwner.md) | | [optional] +**Members** | Pointer to [**[]SnapshotMember**](SnapshotMember.md) | The members who have access to the snapshot | [optional] ## Methods ### NewSnapshotSharing -`func NewSnapshotSharing(url string, users []SnapshotUser, ) *SnapshotSharing` +`func NewSnapshotSharing(sharingType string, ) *SnapshotSharing` NewSnapshotSharing instantiates a new SnapshotSharing object This constructor will assign default values to properties that have it defined, @@ -26,46 +28,121 @@ NewSnapshotSharingWithDefaults instantiates a new SnapshotSharing object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set -### GetUrl +### GetSharingType -`func (o *SnapshotSharing) GetUrl() string` +`func (o *SnapshotSharing) GetSharingType() string` -GetUrl returns the Url field if non-nil, zero value otherwise. +GetSharingType returns the SharingType field if non-nil, zero value otherwise. -### GetUrlOk +### GetSharingTypeOk -`func (o *SnapshotSharing) GetUrlOk() (*string, bool)` +`func (o *SnapshotSharing) GetSharingTypeOk() (*string, bool)` -GetUrlOk returns a tuple with the Url field if it's non-nil, zero value otherwise +GetSharingTypeOk returns a tuple with the SharingType field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. -### SetUrl +### SetSharingType -`func (o *SnapshotSharing) SetUrl(v string)` +`func (o *SnapshotSharing) SetSharingType(v string)` -SetUrl sets Url field to given value. +SetSharingType sets SharingType field to given value. -### GetUsers +### GetPassword -`func (o *SnapshotSharing) GetUsers() []SnapshotUser` +`func (o *SnapshotSharing) GetPassword() string` -GetUsers returns the Users field if non-nil, zero value otherwise. +GetPassword returns the Password field if non-nil, zero value otherwise. -### GetUsersOk +### GetPasswordOk -`func (o *SnapshotSharing) GetUsersOk() (*[]SnapshotUser, bool)` +`func (o *SnapshotSharing) GetPasswordOk() (*string, bool)` -GetUsersOk returns a tuple with the Users field if it's non-nil, zero value otherwise +GetPasswordOk returns a tuple with the Password field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. -### SetUsers +### SetPassword -`func (o *SnapshotSharing) SetUsers(v []SnapshotUser)` +`func (o *SnapshotSharing) SetPassword(v string)` -SetUsers sets Users field to given value. +SetPassword sets Password field to given value. +### HasPassword +`func (o *SnapshotSharing) HasPassword() bool` + +HasPassword returns a boolean if a field has been set. + +### SetPasswordNil + +`func (o *SnapshotSharing) SetPasswordNil(b bool)` + + SetPasswordNil sets the value for Password to be an explicit nil + +### UnsetPassword +`func (o *SnapshotSharing) UnsetPassword()` + +UnsetPassword ensures that no value is present for Password, not even an explicit nil +### GetSharedBy + +`func (o *SnapshotSharing) GetSharedBy() SnapshotOwner` + +GetSharedBy returns the SharedBy field if non-nil, zero value otherwise. + +### GetSharedByOk + +`func (o *SnapshotSharing) GetSharedByOk() (*SnapshotOwner, bool)` + +GetSharedByOk returns a tuple with the SharedBy field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSharedBy + +`func (o *SnapshotSharing) SetSharedBy(v SnapshotOwner)` + +SetSharedBy sets SharedBy field to given value. + +### HasSharedBy + +`func (o *SnapshotSharing) HasSharedBy() bool` + +HasSharedBy returns a boolean if a field has been set. + +### GetMembers + +`func (o *SnapshotSharing) GetMembers() []SnapshotMember` + +GetMembers returns the Members field if non-nil, zero value otherwise. + +### GetMembersOk + +`func (o *SnapshotSharing) GetMembersOk() (*[]SnapshotMember, bool)` + +GetMembersOk returns a tuple with the Members field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMembers + +`func (o *SnapshotSharing) SetMembers(v []SnapshotMember)` + +SetMembers sets Members field to given value. + +### HasMembers + +`func (o *SnapshotSharing) HasMembers() bool` + +HasMembers returns a boolean if a field has been set. + +### SetMembersNil + +`func (o *SnapshotSharing) SetMembersNil(b bool)` + + SetMembersNil sets the value for Members to be an explicit nil + +### UnsetMembers +`func (o *SnapshotSharing) UnsetMembers()` + +UnsetMembers ensures that no value is present for Members, not even an explicit nil [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/SnapshotSharingApi.md b/docs/SnapshotSharingApi.md new file mode 100644 index 00000000..7b1d74b0 --- /dev/null +++ b/docs/SnapshotSharingApi.md @@ -0,0 +1,356 @@ +# \SnapshotSharingApi + +All URIs are relative to *https://app.corellium.com/api* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**V1AcceptSharedSnapshot**](SnapshotSharingApi.md#V1AcceptSharedSnapshot) | **Post** /v1/snapshots/accept | Accept a snapshot shared with you +[**V1DeleteSnapshotPermissions**](SnapshotSharingApi.md#V1DeleteSnapshotPermissions) | **Delete** /v1/snapshots/{snapshotId}/permissions | Delete member(s) +[**V1GetSharedSnapshots**](SnapshotSharingApi.md#V1GetSharedSnapshots) | **Get** /v1/snapshots/shared | Fetch shared snapshots +[**V1SetSnapshotPermissions**](SnapshotSharingApi.md#V1SetSnapshotPermissions) | **Post** /v1/snapshots/{snapshotId}/permissions | Set member list +[**V1ShareSnapshot**](SnapshotSharingApi.md#V1ShareSnapshot) | **Post** /v1/snapshots/{snapshotId}/share | Share snapshot + + + +## V1AcceptSharedSnapshot + +> Snapshot V1AcceptSharedSnapshot(ctx).PostShareSnapshotRequestPayload(postShareSnapshotRequestPayload).Execute() + +Accept a snapshot shared with you + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/corellium/go-corellium-api-client" +) + +func main() { + postShareSnapshotRequestPayload := *openapiclient.NewPostShareSnapshotRequestPayload("SharingType_example") // PostShareSnapshotRequestPayload | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.SnapshotSharingApi.V1AcceptSharedSnapshot(context.Background()).PostShareSnapshotRequestPayload(postShareSnapshotRequestPayload).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SnapshotSharingApi.V1AcceptSharedSnapshot``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `V1AcceptSharedSnapshot`: Snapshot + fmt.Fprintf(os.Stdout, "Response from `SnapshotSharingApi.V1AcceptSharedSnapshot`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiV1AcceptSharedSnapshotRequest struct via the builder pattern + + +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 + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## V1DeleteSnapshotPermissions + +> Snapshot V1DeleteSnapshotPermissions(ctx, snapshotId).SnapshotPermissionsRequestPayload(snapshotPermissionsRequestPayload).Execute() + +Delete member(s) + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/corellium/go-corellium-api-client" +) + +func main() { + snapshotId := "snapshotId_example" // string | Snapshot ID - uuid + snapshotPermissionsRequestPayload := *openapiclient.NewSnapshotPermissionsRequestPayload([]string{"Members_example"}) // SnapshotPermissionsRequestPayload | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.SnapshotSharingApi.V1DeleteSnapshotPermissions(context.Background(), snapshotId).SnapshotPermissionsRequestPayload(snapshotPermissionsRequestPayload).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SnapshotSharingApi.V1DeleteSnapshotPermissions``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `V1DeleteSnapshotPermissions`: Snapshot + fmt.Fprintf(os.Stdout, "Response from `SnapshotSharingApi.V1DeleteSnapshotPermissions`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**snapshotId** | **string** | Snapshot ID - uuid | + +### Other Parameters + +Other parameters are passed through a pointer to a apiV1DeleteSnapshotPermissionsRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **snapshotPermissionsRequestPayload** | [**SnapshotPermissionsRequestPayload**](SnapshotPermissionsRequestPayload.md) | | + +### Return type + +[**Snapshot**](Snapshot.md) + +### Authorization + +[BearerAuth](../README.md#BearerAuth) + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## V1GetSharedSnapshots + +> UserSnapshots V1GetSharedSnapshots(ctx).Execute() + +Fetch shared snapshots + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/corellium/go-corellium-api-client" +) + +func main() { + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.SnapshotSharingApi.V1GetSharedSnapshots(context.Background()).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SnapshotSharingApi.V1GetSharedSnapshots``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `V1GetSharedSnapshots`: UserSnapshots + fmt.Fprintf(os.Stdout, "Response from `SnapshotSharingApi.V1GetSharedSnapshots`: %v\n", resp) +} +``` + +### Path Parameters + +This endpoint does not need any parameter. + +### Other Parameters + +Other parameters are passed through a pointer to a apiV1GetSharedSnapshotsRequest struct via the builder pattern + + +### Return type + +[**UserSnapshots**](UserSnapshots.md) + +### Authorization + +[BearerAuth](../README.md#BearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## V1SetSnapshotPermissions + +> Snapshot V1SetSnapshotPermissions(ctx, snapshotId).SnapshotPermissionsRequestPayload(snapshotPermissionsRequestPayload).Execute() + +Set member list + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/corellium/go-corellium-api-client" +) + +func main() { + snapshotId := "snapshotId_example" // string | Snapshot ID - uuid + snapshotPermissionsRequestPayload := *openapiclient.NewSnapshotPermissionsRequestPayload([]string{"Members_example"}) // SnapshotPermissionsRequestPayload | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.SnapshotSharingApi.V1SetSnapshotPermissions(context.Background(), snapshotId).SnapshotPermissionsRequestPayload(snapshotPermissionsRequestPayload).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SnapshotSharingApi.V1SetSnapshotPermissions``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `V1SetSnapshotPermissions`: Snapshot + fmt.Fprintf(os.Stdout, "Response from `SnapshotSharingApi.V1SetSnapshotPermissions`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**snapshotId** | **string** | Snapshot ID - uuid | + +### Other Parameters + +Other parameters are passed through a pointer to a apiV1SetSnapshotPermissionsRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **snapshotPermissionsRequestPayload** | [**SnapshotPermissionsRequestPayload**](SnapshotPermissionsRequestPayload.md) | | + +### Return type + +[**Snapshot**](Snapshot.md) + +### Authorization + +[BearerAuth](../README.md#BearerAuth) + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## V1ShareSnapshot + +> Snapshot V1ShareSnapshot(ctx, snapshotId).PostShareSnapshotRequestPayload(postShareSnapshotRequestPayload).Execute() + +Share snapshot + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/corellium/go-corellium-api-client" +) + +func main() { + snapshotId := "snapshotId_example" // string | Snapshot ID - uuid + postShareSnapshotRequestPayload := *openapiclient.NewPostShareSnapshotRequestPayload("SharingType_example") // PostShareSnapshotRequestPayload | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.SnapshotSharingApi.V1ShareSnapshot(context.Background(), snapshotId).PostShareSnapshotRequestPayload(postShareSnapshotRequestPayload).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `SnapshotSharingApi.V1ShareSnapshot``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `V1ShareSnapshot`: Snapshot + fmt.Fprintf(os.Stdout, "Response from `SnapshotSharingApi.V1ShareSnapshot`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**snapshotId** | **string** | Snapshot ID - uuid | + +### Other Parameters + +Other parameters are passed through a pointer to a apiV1ShareSnapshotRequest struct via the builder pattern + + +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 + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + diff --git a/docs/SnapshotSharingPermissions.md b/docs/SnapshotSharingPermissions.md new file mode 100644 index 00000000..33eea1d0 --- /dev/null +++ b/docs/SnapshotSharingPermissions.md @@ -0,0 +1,246 @@ +# SnapshotSharingPermissions + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**CloudEnabled** | Pointer to **NullableBool** | Indicates if snapshot permissions are enabled by the cloud admin | [optional] +**DomainEnabled** | Pointer to **NullableBool** | Indicates if snapshot permissions are enabled by the domain admin | [optional] +**PublicLink** | Pointer to **NullableBool** | Indicates if public link access is enabled | [optional] +**DomainRestrictedLink** | Pointer to **NullableBool** | Indicates if domain-restricted link access is enabled | [optional] +**PasswordPublicLink** | Pointer to **NullableBool** | Indicates if password-protected public link access is enabled | [optional] +**EmailInvite** | Pointer to **NullableBool** | Indicates if email invite access is enabled | [optional] + +## Methods + +### NewSnapshotSharingPermissions + +`func NewSnapshotSharingPermissions() *SnapshotSharingPermissions` + +NewSnapshotSharingPermissions instantiates a new SnapshotSharingPermissions object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewSnapshotSharingPermissionsWithDefaults + +`func NewSnapshotSharingPermissionsWithDefaults() *SnapshotSharingPermissions` + +NewSnapshotSharingPermissionsWithDefaults instantiates a new SnapshotSharingPermissions object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetCloudEnabled + +`func (o *SnapshotSharingPermissions) GetCloudEnabled() bool` + +GetCloudEnabled returns the CloudEnabled field if non-nil, zero value otherwise. + +### GetCloudEnabledOk + +`func (o *SnapshotSharingPermissions) GetCloudEnabledOk() (*bool, bool)` + +GetCloudEnabledOk returns a tuple with the CloudEnabled field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCloudEnabled + +`func (o *SnapshotSharingPermissions) SetCloudEnabled(v bool)` + +SetCloudEnabled sets CloudEnabled field to given value. + +### HasCloudEnabled + +`func (o *SnapshotSharingPermissions) HasCloudEnabled() bool` + +HasCloudEnabled returns a boolean if a field has been set. + +### SetCloudEnabledNil + +`func (o *SnapshotSharingPermissions) SetCloudEnabledNil(b bool)` + + SetCloudEnabledNil sets the value for CloudEnabled to be an explicit nil + +### UnsetCloudEnabled +`func (o *SnapshotSharingPermissions) UnsetCloudEnabled()` + +UnsetCloudEnabled ensures that no value is present for CloudEnabled, not even an explicit nil +### GetDomainEnabled + +`func (o *SnapshotSharingPermissions) GetDomainEnabled() bool` + +GetDomainEnabled returns the DomainEnabled field if non-nil, zero value otherwise. + +### GetDomainEnabledOk + +`func (o *SnapshotSharingPermissions) GetDomainEnabledOk() (*bool, bool)` + +GetDomainEnabledOk returns a tuple with the DomainEnabled field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDomainEnabled + +`func (o *SnapshotSharingPermissions) SetDomainEnabled(v bool)` + +SetDomainEnabled sets DomainEnabled field to given value. + +### HasDomainEnabled + +`func (o *SnapshotSharingPermissions) HasDomainEnabled() bool` + +HasDomainEnabled returns a boolean if a field has been set. + +### SetDomainEnabledNil + +`func (o *SnapshotSharingPermissions) SetDomainEnabledNil(b bool)` + + SetDomainEnabledNil sets the value for DomainEnabled to be an explicit nil + +### UnsetDomainEnabled +`func (o *SnapshotSharingPermissions) UnsetDomainEnabled()` + +UnsetDomainEnabled ensures that no value is present for DomainEnabled, not even an explicit nil +### GetPublicLink + +`func (o *SnapshotSharingPermissions) GetPublicLink() bool` + +GetPublicLink returns the PublicLink field if non-nil, zero value otherwise. + +### GetPublicLinkOk + +`func (o *SnapshotSharingPermissions) GetPublicLinkOk() (*bool, bool)` + +GetPublicLinkOk returns a tuple with the PublicLink field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPublicLink + +`func (o *SnapshotSharingPermissions) SetPublicLink(v bool)` + +SetPublicLink sets PublicLink field to given value. + +### HasPublicLink + +`func (o *SnapshotSharingPermissions) HasPublicLink() bool` + +HasPublicLink returns a boolean if a field has been set. + +### SetPublicLinkNil + +`func (o *SnapshotSharingPermissions) SetPublicLinkNil(b bool)` + + SetPublicLinkNil sets the value for PublicLink to be an explicit nil + +### UnsetPublicLink +`func (o *SnapshotSharingPermissions) UnsetPublicLink()` + +UnsetPublicLink ensures that no value is present for PublicLink, not even an explicit nil +### GetDomainRestrictedLink + +`func (o *SnapshotSharingPermissions) GetDomainRestrictedLink() bool` + +GetDomainRestrictedLink returns the DomainRestrictedLink field if non-nil, zero value otherwise. + +### GetDomainRestrictedLinkOk + +`func (o *SnapshotSharingPermissions) GetDomainRestrictedLinkOk() (*bool, bool)` + +GetDomainRestrictedLinkOk returns a tuple with the DomainRestrictedLink field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDomainRestrictedLink + +`func (o *SnapshotSharingPermissions) SetDomainRestrictedLink(v bool)` + +SetDomainRestrictedLink sets DomainRestrictedLink field to given value. + +### HasDomainRestrictedLink + +`func (o *SnapshotSharingPermissions) HasDomainRestrictedLink() bool` + +HasDomainRestrictedLink returns a boolean if a field has been set. + +### SetDomainRestrictedLinkNil + +`func (o *SnapshotSharingPermissions) SetDomainRestrictedLinkNil(b bool)` + + SetDomainRestrictedLinkNil sets the value for DomainRestrictedLink to be an explicit nil + +### UnsetDomainRestrictedLink +`func (o *SnapshotSharingPermissions) UnsetDomainRestrictedLink()` + +UnsetDomainRestrictedLink ensures that no value is present for DomainRestrictedLink, not even an explicit nil +### GetPasswordPublicLink + +`func (o *SnapshotSharingPermissions) GetPasswordPublicLink() bool` + +GetPasswordPublicLink returns the PasswordPublicLink field if non-nil, zero value otherwise. + +### GetPasswordPublicLinkOk + +`func (o *SnapshotSharingPermissions) GetPasswordPublicLinkOk() (*bool, bool)` + +GetPasswordPublicLinkOk returns a tuple with the PasswordPublicLink field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPasswordPublicLink + +`func (o *SnapshotSharingPermissions) SetPasswordPublicLink(v bool)` + +SetPasswordPublicLink sets PasswordPublicLink field to given value. + +### HasPasswordPublicLink + +`func (o *SnapshotSharingPermissions) HasPasswordPublicLink() bool` + +HasPasswordPublicLink returns a boolean if a field has been set. + +### SetPasswordPublicLinkNil + +`func (o *SnapshotSharingPermissions) SetPasswordPublicLinkNil(b bool)` + + SetPasswordPublicLinkNil sets the value for PasswordPublicLink to be an explicit nil + +### UnsetPasswordPublicLink +`func (o *SnapshotSharingPermissions) UnsetPasswordPublicLink()` + +UnsetPasswordPublicLink ensures that no value is present for PasswordPublicLink, not even an explicit nil +### GetEmailInvite + +`func (o *SnapshotSharingPermissions) GetEmailInvite() bool` + +GetEmailInvite returns the EmailInvite field if non-nil, zero value otherwise. + +### GetEmailInviteOk + +`func (o *SnapshotSharingPermissions) GetEmailInviteOk() (*bool, bool)` + +GetEmailInviteOk returns a tuple with the EmailInvite field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEmailInvite + +`func (o *SnapshotSharingPermissions) SetEmailInvite(v bool)` + +SetEmailInvite sets EmailInvite field to given value. + +### HasEmailInvite + +`func (o *SnapshotSharingPermissions) HasEmailInvite() bool` + +HasEmailInvite returns a boolean if a field has been set. + +### SetEmailInviteNil + +`func (o *SnapshotSharingPermissions) SetEmailInviteNil(b bool)` + + SetEmailInviteNil sets the value for EmailInvite to be an explicit nil + +### UnsetEmailInvite +`func (o *SnapshotSharingPermissions) UnsetEmailInvite()` + +UnsetEmailInvite ensures that no value is present for EmailInvite, not even an explicit nil + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/SnapshotStatus.md b/docs/SnapshotStatus.md index dec51f2a..f20d3263 100644 --- a/docs/SnapshotStatus.md +++ b/docs/SnapshotStatus.md @@ -4,14 +4,14 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Task** | **string** | The current task being performed on the snapshot. | -**Created** | **bool** | Indicates if the snapshot has been successfully created. | +**Task** | Pointer to **NullableString** | The current task being performed on the snapshot | [optional] +**Created** | Pointer to **NullableBool** | Indicates if the snapshot has been successfully created | [optional] ## Methods ### NewSnapshotStatus -`func NewSnapshotStatus(task string, created bool, ) *SnapshotStatus` +`func NewSnapshotStatus() *SnapshotStatus` NewSnapshotStatus instantiates a new SnapshotStatus object This constructor will assign default values to properties that have it defined, @@ -45,7 +45,22 @@ and a boolean to check if the value has been set. SetTask sets Task field to given value. +### HasTask +`func (o *SnapshotStatus) HasTask() bool` + +HasTask returns a boolean if a field has been set. + +### SetTaskNil + +`func (o *SnapshotStatus) SetTaskNil(b bool)` + + SetTaskNil sets the value for Task to be an explicit nil + +### UnsetTask +`func (o *SnapshotStatus) UnsetTask()` + +UnsetTask ensures that no value is present for Task, not even an explicit nil ### GetCreated `func (o *SnapshotStatus) GetCreated() bool` @@ -65,7 +80,22 @@ and a boolean to check if the value has been set. SetCreated sets Created field to given value. +### HasCreated + +`func (o *SnapshotStatus) HasCreated() bool` + +HasCreated returns a boolean if a field has been set. + +### SetCreatedNil + +`func (o *SnapshotStatus) SetCreatedNil(b bool)` + + SetCreatedNil sets the value for Created to be an explicit nil + +### UnsetCreated +`func (o *SnapshotStatus) UnsetCreated()` +UnsetCreated ensures that no value is present for Created, not even an explicit nil [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/SnapshotsApi.md b/docs/SnapshotsApi.md index f776504e..291b87a3 100644 --- a/docs/SnapshotsApi.md +++ b/docs/SnapshotsApi.md @@ -5,16 +5,13 @@ All URIs are relative to *https://app.corellium.com/api* Method | HTTP request | Description ------------- | ------------- | ------------- [**V1CreateSnapshot**](SnapshotsApi.md#V1CreateSnapshot) | **Post** /v1/instances/{instanceId}/snapshots | Create Instance Snapshot -[**V1DeleteInstanceSnapshot**](SnapshotsApi.md#V1DeleteInstanceSnapshot) | **Delete** /v1/instances/{instanceId}/snapshots/{snapshotId} | Delete a Snapshot +[**V1DeleteInstanceSnapshot**](SnapshotsApi.md#V1DeleteInstanceSnapshot) | **Delete** /v1/instances/{instanceId}/snapshots/{snapshotId} | Delete an Instance Snapshot [**V1DeleteSnapshot**](SnapshotsApi.md#V1DeleteSnapshot) | **Delete** /v1/snapshots/{snapshotId} | Delete a Snapshot -[**V1DeleteSnapshotPermissions**](SnapshotsApi.md#V1DeleteSnapshotPermissions) | **Delete** /v1/snapshots/{snapshotId}/permissions | Remove a user from the list of users who have access to the snapshot [**V1GetInstanceSnapshot**](SnapshotsApi.md#V1GetInstanceSnapshot) | **Get** /v1/instances/{instanceId}/snapshots/{snapshotId} | Get Instance Snapshot [**V1GetInstanceSnapshots**](SnapshotsApi.md#V1GetInstanceSnapshots) | **Get** /v1/instances/{instanceId}/snapshots | Get Instance Snapshots -[**V1GetSharedSnapshots**](SnapshotsApi.md#V1GetSharedSnapshots) | **Get** /v1/snapshots | Fetch snapshots shared with and shared by the requesting user [**V1GetSnapshot**](SnapshotsApi.md#V1GetSnapshot) | **Get** /v1/snapshots/{snapshotId} | Get Snapshot -[**V1RenameInstanceSnapshot**](SnapshotsApi.md#V1RenameInstanceSnapshot) | **Patch** /v1/instances/{instanceId}/snapshots/{snapshotId} | Rename a Snapshot -[**V1RestoreInstanceSnapshot**](SnapshotsApi.md#V1RestoreInstanceSnapshot) | **Post** /v1/instances/{instanceId}/snapshots/{snapshotId}/restore | Restore a Snapshot -[**V1SetSnapshotPermissions**](SnapshotsApi.md#V1SetSnapshotPermissions) | **Post** /v1/snapshots/{snapshotId}/permissions | Add a user to the list of users who have access to the snapshot +[**V1RenameInstanceSnapshot**](SnapshotsApi.md#V1RenameInstanceSnapshot) | **Patch** /v1/instances/{instanceId}/snapshots/{snapshotId} | Rename an Instance Snapshot +[**V1RestoreInstanceSnapshot**](SnapshotsApi.md#V1RestoreInstanceSnapshot) | **Post** /v1/instances/{instanceId}/snapshots/{snapshotId}/restore | Restore an Instance Snapshot [**V1SnapshotRename**](SnapshotsApi.md#V1SnapshotRename) | **Patch** /v1/snapshots/{snapshotId} | Rename a Snapshot @@ -93,7 +90,7 @@ Name | Type | Description | Notes > V1DeleteInstanceSnapshot(ctx, instanceId, snapshotId).Execute() -Delete a Snapshot +Delete an Instance Snapshot ### Example @@ -224,76 +221,6 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## V1DeleteSnapshotPermissions - -> Snapshot V1DeleteSnapshotPermissions(ctx, snapshotId).DeleteSnapshotPermissionsRequestPayload(deleteSnapshotPermissionsRequestPayload).Execute() - -Remove a user from the list of users who have access to the snapshot - -### Example - -```go -package main - -import ( - "context" - "fmt" - "os" - openapiclient "github.com/corellium/go-corellium-api-client" -) - -func main() { - snapshotId := "snapshotId_example" // string | Snapshot ID - uuid - deleteSnapshotPermissionsRequestPayload := *openapiclient.NewDeleteSnapshotPermissionsRequestPayload() // DeleteSnapshotPermissionsRequestPayload | - - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.SnapshotsApi.V1DeleteSnapshotPermissions(context.Background(), snapshotId).DeleteSnapshotPermissionsRequestPayload(deleteSnapshotPermissionsRequestPayload).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `SnapshotsApi.V1DeleteSnapshotPermissions``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `V1DeleteSnapshotPermissions`: Snapshot - fmt.Fprintf(os.Stdout, "Response from `SnapshotsApi.V1DeleteSnapshotPermissions`: %v\n", resp) -} -``` - -### Path Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**snapshotId** | **string** | Snapshot ID - uuid | - -### Other Parameters - -Other parameters are passed through a pointer to a apiV1DeleteSnapshotPermissionsRequest struct via the builder pattern - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - - **deleteSnapshotPermissionsRequestPayload** | [**DeleteSnapshotPermissionsRequestPayload**](DeleteSnapshotPermissionsRequestPayload.md) | | - -### Return type - -[**Snapshot**](Snapshot.md) - -### Authorization - -[BearerAuth](../README.md#BearerAuth) - -### HTTP request headers - -- **Content-Type**: application/json -- **Accept**: application/json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) -[[Back to Model list]](../README.md#documentation-for-models) -[[Back to README]](../README.md) - - ## V1GetInstanceSnapshot > Snapshot V1GetInstanceSnapshot(ctx, instanceId, snapshotId).Execute() @@ -433,65 +360,6 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## V1GetSharedSnapshots - -> Snapshot V1GetSharedSnapshots(ctx).Execute() - -Fetch snapshots shared with and shared by the requesting user - -### Example - -```go -package main - -import ( - "context" - "fmt" - "os" - openapiclient "github.com/corellium/go-corellium-api-client" -) - -func main() { - - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.SnapshotsApi.V1GetSharedSnapshots(context.Background()).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `SnapshotsApi.V1GetSharedSnapshots``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `V1GetSharedSnapshots`: Snapshot - fmt.Fprintf(os.Stdout, "Response from `SnapshotsApi.V1GetSharedSnapshots`: %v\n", resp) -} -``` - -### Path Parameters - -This endpoint does not need any parameter. - -### Other Parameters - -Other parameters are passed through a pointer to a apiV1GetSharedSnapshotsRequest struct via the builder pattern - - -### Return type - -[**Snapshot**](Snapshot.md) - -### Authorization - -[BearerAuth](../README.md#BearerAuth) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) -[[Back to Model list]](../README.md#documentation-for-models) -[[Back to README]](../README.md) - - ## V1GetSnapshot > Snapshot V1GetSnapshot(ctx, snapshotId).Execute() @@ -564,7 +432,7 @@ Name | Type | Description | Notes > Snapshot V1RenameInstanceSnapshot(ctx, instanceId, snapshotId).SnapshotCreationOptions(snapshotCreationOptions).Execute() -Rename a Snapshot +Rename an Instance Snapshot ### Example @@ -637,7 +505,7 @@ Name | Type | Description | Notes > V1RestoreInstanceSnapshot(ctx, instanceId, snapshotId).Execute() -Restore a Snapshot +Restore an Instance Snapshot ### Example @@ -702,76 +570,6 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## V1SetSnapshotPermissions - -> Snapshot V1SetSnapshotPermissions(ctx, snapshotId).PostSnapshotPermissionsRequestPayload(postSnapshotPermissionsRequestPayload).Execute() - -Add a user to the list of users who have access to the snapshot - -### Example - -```go -package main - -import ( - "context" - "fmt" - "os" - openapiclient "github.com/corellium/go-corellium-api-client" -) - -func main() { - snapshotId := "snapshotId_example" // string | Snapshot ID - uuid - postSnapshotPermissionsRequestPayload := *openapiclient.NewPostSnapshotPermissionsRequestPayload("Email_example") // PostSnapshotPermissionsRequestPayload | - - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.SnapshotsApi.V1SetSnapshotPermissions(context.Background(), snapshotId).PostSnapshotPermissionsRequestPayload(postSnapshotPermissionsRequestPayload).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `SnapshotsApi.V1SetSnapshotPermissions``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `V1SetSnapshotPermissions`: Snapshot - fmt.Fprintf(os.Stdout, "Response from `SnapshotsApi.V1SetSnapshotPermissions`: %v\n", resp) -} -``` - -### Path Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**snapshotId** | **string** | Snapshot ID - uuid | - -### Other Parameters - -Other parameters are passed through a pointer to a apiV1SetSnapshotPermissionsRequest struct via the builder pattern - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - - **postSnapshotPermissionsRequestPayload** | [**PostSnapshotPermissionsRequestPayload**](PostSnapshotPermissionsRequestPayload.md) | | - -### Return type - -[**Snapshot**](Snapshot.md) - -### Authorization - -[BearerAuth](../README.md#BearerAuth) - -### HTTP request headers - -- **Content-Type**: application/json -- **Accept**: application/json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) -[[Back to Model list]](../README.md#documentation-for-models) -[[Back to README]](../README.md) - - ## V1SnapshotRename > Snapshot V1SnapshotRename(ctx, snapshotId).SnapshotCreationOptions(snapshotCreationOptions).Execute() diff --git a/docs/SslsplitFilter.md b/docs/SslsplitFilter.md new file mode 100644 index 00000000..de4c6261 --- /dev/null +++ b/docs/SslsplitFilter.md @@ -0,0 +1,66 @@ +# SslsplitFilter + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**TruncatePcap** | Pointer to **NullableBool** | | [optional] + +## Methods + +### NewSslsplitFilter + +`func NewSslsplitFilter() *SslsplitFilter` + +NewSslsplitFilter instantiates a new SslsplitFilter object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewSslsplitFilterWithDefaults + +`func NewSslsplitFilterWithDefaults() *SslsplitFilter` + +NewSslsplitFilterWithDefaults instantiates a new SslsplitFilter object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetTruncatePcap + +`func (o *SslsplitFilter) GetTruncatePcap() bool` + +GetTruncatePcap returns the TruncatePcap field if non-nil, zero value otherwise. + +### GetTruncatePcapOk + +`func (o *SslsplitFilter) GetTruncatePcapOk() (*bool, bool)` + +GetTruncatePcapOk returns a tuple with the TruncatePcap field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTruncatePcap + +`func (o *SslsplitFilter) SetTruncatePcap(v bool)` + +SetTruncatePcap sets TruncatePcap field to given value. + +### HasTruncatePcap + +`func (o *SslsplitFilter) HasTruncatePcap() bool` + +HasTruncatePcap returns a boolean if a field has been set. + +### SetTruncatePcapNil + +`func (o *SslsplitFilter) SetTruncatePcapNil(b bool)` + + SetTruncatePcapNil sets the value for TruncatePcap to be an explicit nil + +### UnsetTruncatePcap +`func (o *SslsplitFilter) UnsetTruncatePcap()` + +UnsetTruncatePcap ensures that no value is present for TruncatePcap, not even an explicit nil + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/TestAssessmentDto.md b/docs/TestAssessmentDto.md new file mode 100644 index 00000000..17cb45cf --- /dev/null +++ b/docs/TestAssessmentDto.md @@ -0,0 +1,82 @@ +# TestAssessmentDto + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Invert** | Pointer to **bool** | | [optional] +**Grep** | Pointer to **string** | | [optional] + +## Methods + +### NewTestAssessmentDto + +`func NewTestAssessmentDto() *TestAssessmentDto` + +NewTestAssessmentDto instantiates a new TestAssessmentDto object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewTestAssessmentDtoWithDefaults + +`func NewTestAssessmentDtoWithDefaults() *TestAssessmentDto` + +NewTestAssessmentDtoWithDefaults instantiates a new TestAssessmentDto object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetInvert + +`func (o *TestAssessmentDto) GetInvert() bool` + +GetInvert returns the Invert field if non-nil, zero value otherwise. + +### GetInvertOk + +`func (o *TestAssessmentDto) GetInvertOk() (*bool, bool)` + +GetInvertOk returns a tuple with the Invert field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetInvert + +`func (o *TestAssessmentDto) SetInvert(v bool)` + +SetInvert sets Invert field to given value. + +### HasInvert + +`func (o *TestAssessmentDto) HasInvert() bool` + +HasInvert returns a boolean if a field has been set. + +### GetGrep + +`func (o *TestAssessmentDto) GetGrep() string` + +GetGrep returns the Grep field if non-nil, zero value otherwise. + +### GetGrepOk + +`func (o *TestAssessmentDto) GetGrepOk() (*string, bool)` + +GetGrepOk returns a tuple with the Grep field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetGrep + +`func (o *TestAssessmentDto) SetGrep(v string)` + +SetGrep sets Grep field to given value. + +### HasGrep + +`func (o *TestAssessmentDto) HasGrep() bool` + +HasGrep returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/UpdateAssessmentDto.md b/docs/UpdateAssessmentDto.md new file mode 100644 index 00000000..ffa2fc7a --- /dev/null +++ b/docs/UpdateAssessmentDto.md @@ -0,0 +1,51 @@ +# UpdateAssessmentDto + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Status** | **string** | | + +## Methods + +### NewUpdateAssessmentDto + +`func NewUpdateAssessmentDto(status string, ) *UpdateAssessmentDto` + +NewUpdateAssessmentDto instantiates a new UpdateAssessmentDto object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewUpdateAssessmentDtoWithDefaults + +`func NewUpdateAssessmentDtoWithDefaults() *UpdateAssessmentDto` + +NewUpdateAssessmentDtoWithDefaults instantiates a new UpdateAssessmentDto object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetStatus + +`func (o *UpdateAssessmentDto) GetStatus() string` + +GetStatus returns the Status field if non-nil, zero value otherwise. + +### GetStatusOk + +`func (o *UpdateAssessmentDto) GetStatusOk() (*string, bool)` + +GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStatus + +`func (o *UpdateAssessmentDto) SetStatus(v string)` + +SetStatus sets Status field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/UpdateNetworkConnectionOptions.md b/docs/UpdateNetworkConnectionOptions.md new file mode 100644 index 00000000..432e3c3d --- /dev/null +++ b/docs/UpdateNetworkConnectionOptions.md @@ -0,0 +1,87 @@ +# UpdateNetworkConnectionOptions + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Name** | **string** | User specified name for this network connection. e.g. My Network Connection | +**Config** | Pointer to **map[string]interface{}** | An object containing network connection configuration data. Will vary based on network provider type. See examples. | [optional] + +## Methods + +### NewUpdateNetworkConnectionOptions + +`func NewUpdateNetworkConnectionOptions(name string, ) *UpdateNetworkConnectionOptions` + +NewUpdateNetworkConnectionOptions instantiates a new UpdateNetworkConnectionOptions object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewUpdateNetworkConnectionOptionsWithDefaults + +`func NewUpdateNetworkConnectionOptionsWithDefaults() *UpdateNetworkConnectionOptions` + +NewUpdateNetworkConnectionOptionsWithDefaults instantiates a new UpdateNetworkConnectionOptions object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetName + +`func (o *UpdateNetworkConnectionOptions) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *UpdateNetworkConnectionOptions) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *UpdateNetworkConnectionOptions) SetName(v string)` + +SetName sets Name field to given value. + + +### GetConfig + +`func (o *UpdateNetworkConnectionOptions) GetConfig() map[string]interface{}` + +GetConfig returns the Config field if non-nil, zero value otherwise. + +### GetConfigOk + +`func (o *UpdateNetworkConnectionOptions) GetConfigOk() (*map[string]interface{}, bool)` + +GetConfigOk returns a tuple with the Config field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetConfig + +`func (o *UpdateNetworkConnectionOptions) SetConfig(v map[string]interface{})` + +SetConfig sets Config field to given value. + +### HasConfig + +`func (o *UpdateNetworkConnectionOptions) HasConfig() bool` + +HasConfig returns a boolean if a field has been set. + +### SetConfigNil + +`func (o *UpdateNetworkConnectionOptions) SetConfigNil(b bool)` + + SetConfigNil sets the value for Config to be an explicit nil + +### UnsetConfig +`func (o *UpdateNetworkConnectionOptions) UnsetConfig()` + +UnsetConfig ensures that no value is present for Config, not even an explicit nil + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/User.md b/docs/User.md index cc0cbd64..5b8d5a20 100644 --- a/docs/User.md +++ b/docs/User.md @@ -9,6 +9,7 @@ Name | Type | Description | Notes **Name** | **string** | User Name | **Email** | **string** | User Email | **Administrator** | Pointer to **NullableBool** | the flag that specifies whether user is Administrator or not | [optional] +**CanEditUserAttributes** | Pointer to **NullableBool** | Flag to determine if user attributes are editable. | [optional] ## Methods @@ -144,6 +145,41 @@ HasAdministrator returns a boolean if a field has been set. `func (o *User) UnsetAdministrator()` UnsetAdministrator ensures that no value is present for Administrator, not even an explicit nil +### GetCanEditUserAttributes + +`func (o *User) GetCanEditUserAttributes() bool` + +GetCanEditUserAttributes returns the CanEditUserAttributes field if non-nil, zero value otherwise. + +### GetCanEditUserAttributesOk + +`func (o *User) GetCanEditUserAttributesOk() (*bool, bool)` + +GetCanEditUserAttributesOk returns a tuple with the CanEditUserAttributes field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCanEditUserAttributes + +`func (o *User) SetCanEditUserAttributes(v bool)` + +SetCanEditUserAttributes sets CanEditUserAttributes field to given value. + +### HasCanEditUserAttributes + +`func (o *User) HasCanEditUserAttributes() bool` + +HasCanEditUserAttributes returns a boolean if a field has been set. + +### SetCanEditUserAttributesNil + +`func (o *User) SetCanEditUserAttributesNil(b bool)` + + SetCanEditUserAttributesNil sets the value for CanEditUserAttributes to be an explicit nil + +### UnsetCanEditUserAttributes +`func (o *User) UnsetCanEditUserAttributes()` + +UnsetCanEditUserAttributes ensures that no value is present for CanEditUserAttributes, not even an explicit nil [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/UserSnapshots.md b/docs/UserSnapshots.md new file mode 100644 index 00000000..2cf5ec4f --- /dev/null +++ b/docs/UserSnapshots.md @@ -0,0 +1,72 @@ +# UserSnapshots + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**SharedWithUser** | [**SharedSnapshotsInfo**](SharedSnapshotsInfo.md) | | +**SharedByUser** | [**SharedSnapshotsInfo**](SharedSnapshotsInfo.md) | | + +## Methods + +### NewUserSnapshots + +`func NewUserSnapshots(sharedWithUser SharedSnapshotsInfo, sharedByUser SharedSnapshotsInfo, ) *UserSnapshots` + +NewUserSnapshots instantiates a new UserSnapshots object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewUserSnapshotsWithDefaults + +`func NewUserSnapshotsWithDefaults() *UserSnapshots` + +NewUserSnapshotsWithDefaults instantiates a new UserSnapshots object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetSharedWithUser + +`func (o *UserSnapshots) GetSharedWithUser() SharedSnapshotsInfo` + +GetSharedWithUser returns the SharedWithUser field if non-nil, zero value otherwise. + +### GetSharedWithUserOk + +`func (o *UserSnapshots) GetSharedWithUserOk() (*SharedSnapshotsInfo, bool)` + +GetSharedWithUserOk returns a tuple with the SharedWithUser field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSharedWithUser + +`func (o *UserSnapshots) SetSharedWithUser(v SharedSnapshotsInfo)` + +SetSharedWithUser sets SharedWithUser field to given value. + + +### GetSharedByUser + +`func (o *UserSnapshots) GetSharedByUser() SharedSnapshotsInfo` + +GetSharedByUser returns the SharedByUser field if non-nil, zero value otherwise. + +### GetSharedByUserOk + +`func (o *UserSnapshots) GetSharedByUserOk() (*SharedSnapshotsInfo, bool)` + +GetSharedByUserOk returns a tuple with the SharedByUser field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSharedByUser + +`func (o *UserSnapshots) SetSharedByUser(v SharedSnapshotsInfo)` + +SetSharedByUser sets SharedByUser field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1CheckSubdomainExistenceParameters.md b/docs/V1CheckSubdomainExistenceParameters.md new file mode 100644 index 00000000..27d9b75d --- /dev/null +++ b/docs/V1CheckSubdomainExistenceParameters.md @@ -0,0 +1,51 @@ +# V1CheckSubdomainExistenceParameters + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Domain** | **string** | Domain to check | + +## Methods + +### NewV1CheckSubdomainExistenceParameters + +`func NewV1CheckSubdomainExistenceParameters(domain string, ) *V1CheckSubdomainExistenceParameters` + +NewV1CheckSubdomainExistenceParameters instantiates a new V1CheckSubdomainExistenceParameters object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewV1CheckSubdomainExistenceParametersWithDefaults + +`func NewV1CheckSubdomainExistenceParametersWithDefaults() *V1CheckSubdomainExistenceParameters` + +NewV1CheckSubdomainExistenceParametersWithDefaults instantiates a new V1CheckSubdomainExistenceParameters object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetDomain + +`func (o *V1CheckSubdomainExistenceParameters) GetDomain() string` + +GetDomain returns the Domain field if non-nil, zero value otherwise. + +### GetDomainOk + +`func (o *V1CheckSubdomainExistenceParameters) GetDomainOk() (*string, bool)` + +GetDomainOk returns a tuple with the Domain field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDomain + +`func (o *V1CheckSubdomainExistenceParameters) SetDomain(v string)` + +SetDomain sets Domain field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/WebPlayerApi.md b/docs/WebPlayerApi.md index 1c5b31cc..2388de8c 100644 --- a/docs/WebPlayerApi.md +++ b/docs/WebPlayerApi.md @@ -27,7 +27,7 @@ import ( "context" "fmt" "os" - openapiclient "github.com/aimoda/go-corellium-api-client" + openapiclient "github.com/corellium/go-corellium-api-client" ) func main() { @@ -86,7 +86,7 @@ import ( "context" "fmt" "os" - openapiclient "github.com/aimoda/go-corellium-api-client" + openapiclient "github.com/corellium/go-corellium-api-client" ) func main() { @@ -150,7 +150,7 @@ import ( "context" "fmt" "os" - openapiclient "github.com/aimoda/go-corellium-api-client" + openapiclient "github.com/corellium/go-corellium-api-client" ) func main() { @@ -216,7 +216,7 @@ import ( "context" "fmt" "os" - openapiclient "github.com/aimoda/go-corellium-api-client" + openapiclient "github.com/corellium/go-corellium-api-client" ) func main() { @@ -275,7 +275,7 @@ import ( "context" "fmt" "os" - openapiclient "github.com/aimoda/go-corellium-api-client" + openapiclient "github.com/corellium/go-corellium-api-client" ) func main() { diff --git a/model_activity_entry.go b/model_activity_entry.go new file mode 100644 index 00000000..8b3cd5f8 --- /dev/null +++ b/model_activity_entry.go @@ -0,0 +1,231 @@ +/* +Corellium API + +REST API to manage your virtual devices. + +API version: 7.0.0-25053 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package corellium + +import ( + "encoding/json" +) + +// checks if the ActivityEntry type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ActivityEntry{} + +// ActivityEntry +type ActivityEntry struct { + // Unique identifier for the activity entry + Id NullableString `json:"id,omitempty"` + // Resource associated with the activity + Resource NullableString `json:"resource,omitempty"` + // Timestamp of the activity + Timestamp NullableString `json:"timestamp,omitempty"` +} + +// NewActivityEntry instantiates a new ActivityEntry object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewActivityEntry() *ActivityEntry { + this := ActivityEntry{} + return &this +} + +// NewActivityEntryWithDefaults instantiates a new ActivityEntry object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewActivityEntryWithDefaults() *ActivityEntry { + this := ActivityEntry{} + return &this +} + +// GetId returns the Id field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *ActivityEntry) GetId() string { + if o == nil || IsNil(o.Id.Get()) { + var ret string + return ret + } + return *o.Id.Get() +} + +// GetIdOk returns a tuple with the Id field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *ActivityEntry) GetIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Id.Get(), o.Id.IsSet() +} + +// HasId returns a boolean if a field has been set. +func (o *ActivityEntry) HasId() bool { + if o != nil && o.Id.IsSet() { + return true + } + + return false +} + +// SetId gets a reference to the given NullableString and assigns it to the Id field. +func (o *ActivityEntry) SetId(v string) { + o.Id.Set(&v) +} +// SetIdNil sets the value for Id to be an explicit nil +func (o *ActivityEntry) SetIdNil() { + o.Id.Set(nil) +} + +// UnsetId ensures that no value is present for Id, not even an explicit nil +func (o *ActivityEntry) UnsetId() { + o.Id.Unset() +} + +// GetResource returns the Resource field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *ActivityEntry) GetResource() string { + if o == nil || IsNil(o.Resource.Get()) { + var ret string + return ret + } + return *o.Resource.Get() +} + +// GetResourceOk returns a tuple with the Resource field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *ActivityEntry) GetResourceOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Resource.Get(), o.Resource.IsSet() +} + +// HasResource returns a boolean if a field has been set. +func (o *ActivityEntry) HasResource() bool { + if o != nil && o.Resource.IsSet() { + return true + } + + return false +} + +// SetResource gets a reference to the given NullableString and assigns it to the Resource field. +func (o *ActivityEntry) SetResource(v string) { + o.Resource.Set(&v) +} +// SetResourceNil sets the value for Resource to be an explicit nil +func (o *ActivityEntry) SetResourceNil() { + o.Resource.Set(nil) +} + +// UnsetResource ensures that no value is present for Resource, not even an explicit nil +func (o *ActivityEntry) UnsetResource() { + o.Resource.Unset() +} + +// GetTimestamp returns the Timestamp field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *ActivityEntry) GetTimestamp() string { + if o == nil || IsNil(o.Timestamp.Get()) { + var ret string + return ret + } + return *o.Timestamp.Get() +} + +// GetTimestampOk returns a tuple with the Timestamp field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *ActivityEntry) GetTimestampOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Timestamp.Get(), o.Timestamp.IsSet() +} + +// HasTimestamp returns a boolean if a field has been set. +func (o *ActivityEntry) HasTimestamp() bool { + if o != nil && o.Timestamp.IsSet() { + return true + } + + return false +} + +// SetTimestamp gets a reference to the given NullableString and assigns it to the Timestamp field. +func (o *ActivityEntry) SetTimestamp(v string) { + o.Timestamp.Set(&v) +} +// SetTimestampNil sets the value for Timestamp to be an explicit nil +func (o *ActivityEntry) SetTimestampNil() { + o.Timestamp.Set(nil) +} + +// UnsetTimestamp ensures that no value is present for Timestamp, not even an explicit nil +func (o *ActivityEntry) UnsetTimestamp() { + o.Timestamp.Unset() +} + +func (o ActivityEntry) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ActivityEntry) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if o.Id.IsSet() { + toSerialize["id"] = o.Id.Get() + } + if o.Resource.IsSet() { + toSerialize["resource"] = o.Resource.Get() + } + if o.Timestamp.IsSet() { + toSerialize["timestamp"] = o.Timestamp.Get() + } + return toSerialize, nil +} + +type NullableActivityEntry struct { + value *ActivityEntry + isSet bool +} + +func (v NullableActivityEntry) Get() *ActivityEntry { + return v.value +} + +func (v *NullableActivityEntry) Set(val *ActivityEntry) { + v.value = val + v.isSet = true +} + +func (v NullableActivityEntry) IsSet() bool { + return v.isSet +} + +func (v *NullableActivityEntry) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableActivityEntry(val *ActivityEntry) *NullableActivityEntry { + return &NullableActivityEntry{value: val, isSet: true} +} + +func (v NullableActivityEntry) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableActivityEntry) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_activity_list.go b/model_activity_list.go new file mode 100644 index 00000000..648ff2e7 --- /dev/null +++ b/model_activity_list.go @@ -0,0 +1,175 @@ +/* +Corellium API + +REST API to manage your virtual devices. + +API version: 7.0.0-25053 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package corellium + +import ( + "encoding/json" +) + +// checks if the ActivityList type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ActivityList{} + +// ActivityList +type ActivityList struct { + // List of activity entries + Items []ActivityEntry `json:"items,omitempty"` + // Total number of entries + Total NullableFloat32 `json:"total,omitempty"` +} + +// NewActivityList instantiates a new ActivityList object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewActivityList() *ActivityList { + this := ActivityList{} + return &this +} + +// NewActivityListWithDefaults instantiates a new ActivityList object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewActivityListWithDefaults() *ActivityList { + this := ActivityList{} + return &this +} + +// GetItems returns the Items field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *ActivityList) GetItems() []ActivityEntry { + if o == nil { + var ret []ActivityEntry + return ret + } + return o.Items +} + +// GetItemsOk returns a tuple with the Items field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *ActivityList) GetItemsOk() ([]ActivityEntry, bool) { + if o == nil || IsNil(o.Items) { + return nil, false + } + return o.Items, true +} + +// HasItems returns a boolean if a field has been set. +func (o *ActivityList) HasItems() bool { + if o != nil && IsNil(o.Items) { + return true + } + + return false +} + +// SetItems gets a reference to the given []ActivityEntry and assigns it to the Items field. +func (o *ActivityList) SetItems(v []ActivityEntry) { + o.Items = v +} + +// GetTotal returns the Total field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *ActivityList) GetTotal() float32 { + if o == nil || IsNil(o.Total.Get()) { + var ret float32 + return ret + } + return *o.Total.Get() +} + +// GetTotalOk returns a tuple with the Total field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *ActivityList) GetTotalOk() (*float32, bool) { + if o == nil { + return nil, false + } + return o.Total.Get(), o.Total.IsSet() +} + +// HasTotal returns a boolean if a field has been set. +func (o *ActivityList) HasTotal() bool { + if o != nil && o.Total.IsSet() { + return true + } + + return false +} + +// SetTotal gets a reference to the given NullableFloat32 and assigns it to the Total field. +func (o *ActivityList) SetTotal(v float32) { + o.Total.Set(&v) +} +// SetTotalNil sets the value for Total to be an explicit nil +func (o *ActivityList) SetTotalNil() { + o.Total.Set(nil) +} + +// UnsetTotal ensures that no value is present for Total, not even an explicit nil +func (o *ActivityList) UnsetTotal() { + o.Total.Unset() +} + +func (o ActivityList) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ActivityList) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if o.Items != nil { + toSerialize["items"] = o.Items + } + if o.Total.IsSet() { + toSerialize["total"] = o.Total.Get() + } + return toSerialize, nil +} + +type NullableActivityList struct { + value *ActivityList + isSet bool +} + +func (v NullableActivityList) Get() *ActivityList { + return v.value +} + +func (v *NullableActivityList) Set(val *ActivityList) { + v.value = val + v.isSet = true +} + +func (v NullableActivityList) IsSet() bool { + return v.isSet +} + +func (v *NullableActivityList) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableActivityList(val *ActivityList) *NullableActivityList { + return &NullableActivityList{value: val, isSet: true} +} + +func (v NullableActivityList) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableActivityList) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_activity_request.go b/model_activity_request.go new file mode 100644 index 00000000..8bba0d80 --- /dev/null +++ b/model_activity_request.go @@ -0,0 +1,268 @@ +/* +Corellium API + +REST API to manage your virtual devices. + +API version: 7.0.0-25053 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package corellium + +import ( + "encoding/json" +) + +// checks if the ActivityRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ActivityRequest{} + +// ActivityRequest +type ActivityRequest struct { + // Resource filter + Resource string `json:"resource"` + // Number of entries to return + Limit float32 `json:"limit"` + // Sorting order ('-timestamp' or 'timestamp') + OrderBy string `json:"orderBy"` + // Paginated results. Must be a positive integer. If not provided, defaults to the first page. + Page NullableFloat32 `json:"page,omitempty"` + // Instance identifier used to filter instance resources + Instance NullableString `json:"instance,omitempty"` +} + +// NewActivityRequest instantiates a new ActivityRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewActivityRequest(resource string, limit float32, orderBy string) *ActivityRequest { + this := ActivityRequest{} + this.Resource = resource + this.Limit = limit + this.OrderBy = orderBy + return &this +} + +// NewActivityRequestWithDefaults instantiates a new ActivityRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewActivityRequestWithDefaults() *ActivityRequest { + this := ActivityRequest{} + return &this +} + +// GetResource returns the Resource field value +func (o *ActivityRequest) GetResource() string { + if o == nil { + var ret string + return ret + } + + return o.Resource +} + +// GetResourceOk returns a tuple with the Resource field value +// and a boolean to check if the value has been set. +func (o *ActivityRequest) GetResourceOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Resource, true +} + +// SetResource sets field value +func (o *ActivityRequest) SetResource(v string) { + o.Resource = v +} + +// GetLimit returns the Limit field value +func (o *ActivityRequest) GetLimit() float32 { + if o == nil { + var ret float32 + return ret + } + + return o.Limit +} + +// GetLimitOk returns a tuple with the Limit field value +// and a boolean to check if the value has been set. +func (o *ActivityRequest) GetLimitOk() (*float32, bool) { + if o == nil { + return nil, false + } + return &o.Limit, true +} + +// SetLimit sets field value +func (o *ActivityRequest) SetLimit(v float32) { + o.Limit = v +} + +// GetOrderBy returns the OrderBy field value +func (o *ActivityRequest) GetOrderBy() string { + if o == nil { + var ret string + return ret + } + + return o.OrderBy +} + +// GetOrderByOk returns a tuple with the OrderBy field value +// and a boolean to check if the value has been set. +func (o *ActivityRequest) GetOrderByOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.OrderBy, true +} + +// SetOrderBy sets field value +func (o *ActivityRequest) SetOrderBy(v string) { + o.OrderBy = v +} + +// GetPage returns the Page field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *ActivityRequest) GetPage() float32 { + if o == nil || IsNil(o.Page.Get()) { + var ret float32 + return ret + } + return *o.Page.Get() +} + +// GetPageOk returns a tuple with the Page field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *ActivityRequest) GetPageOk() (*float32, bool) { + if o == nil { + return nil, false + } + return o.Page.Get(), o.Page.IsSet() +} + +// HasPage returns a boolean if a field has been set. +func (o *ActivityRequest) HasPage() bool { + if o != nil && o.Page.IsSet() { + return true + } + + return false +} + +// SetPage gets a reference to the given NullableFloat32 and assigns it to the Page field. +func (o *ActivityRequest) SetPage(v float32) { + o.Page.Set(&v) +} +// SetPageNil sets the value for Page to be an explicit nil +func (o *ActivityRequest) SetPageNil() { + o.Page.Set(nil) +} + +// UnsetPage ensures that no value is present for Page, not even an explicit nil +func (o *ActivityRequest) UnsetPage() { + o.Page.Unset() +} + +// GetInstance returns the Instance field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *ActivityRequest) GetInstance() string { + if o == nil || IsNil(o.Instance.Get()) { + var ret string + return ret + } + return *o.Instance.Get() +} + +// GetInstanceOk returns a tuple with the Instance field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *ActivityRequest) GetInstanceOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Instance.Get(), o.Instance.IsSet() +} + +// HasInstance returns a boolean if a field has been set. +func (o *ActivityRequest) HasInstance() bool { + if o != nil && o.Instance.IsSet() { + return true + } + + return false +} + +// SetInstance gets a reference to the given NullableString and assigns it to the Instance field. +func (o *ActivityRequest) SetInstance(v string) { + o.Instance.Set(&v) +} +// SetInstanceNil sets the value for Instance to be an explicit nil +func (o *ActivityRequest) SetInstanceNil() { + o.Instance.Set(nil) +} + +// UnsetInstance ensures that no value is present for Instance, not even an explicit nil +func (o *ActivityRequest) UnsetInstance() { + o.Instance.Unset() +} + +func (o ActivityRequest) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ActivityRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["resource"] = o.Resource + toSerialize["limit"] = o.Limit + toSerialize["orderBy"] = o.OrderBy + if o.Page.IsSet() { + toSerialize["page"] = o.Page.Get() + } + if o.Instance.IsSet() { + toSerialize["instance"] = o.Instance.Get() + } + return toSerialize, nil +} + +type NullableActivityRequest struct { + value *ActivityRequest + isSet bool +} + +func (v NullableActivityRequest) Get() *ActivityRequest { + return v.value +} + +func (v *NullableActivityRequest) Set(val *ActivityRequest) { + v.value = val + v.isSet = true +} + +func (v NullableActivityRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableActivityRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableActivityRequest(val *ActivityRequest) *NullableActivityRequest { + return &NullableActivityRequest{value: val, isSet: true} +} + +func (v NullableActivityRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableActivityRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_address.go b/model_address.go index 3fd63cbe..bbbe24e0 100644 --- a/model_address.go +++ b/model_address.go @@ -3,7 +3,7 @@ Corellium API REST API to manage your virtual devices. -API version: 6.1.0-20784 +API version: 7.0.0-25053 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_agent_app.go b/model_agent_app.go index 495b2ff6..76095618 100644 --- a/model_agent_app.go +++ b/model_agent_app.go @@ -3,7 +3,7 @@ Corellium API REST API to manage your virtual devices. -API version: 6.1.0-20784 +API version: 7.0.0-25053 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_agent_app_ready_response.go b/model_agent_app_ready_response.go index 8d7c6c1f..7205a125 100644 --- a/model_agent_app_ready_response.go +++ b/model_agent_app_ready_response.go @@ -3,7 +3,7 @@ Corellium API REST API to manage your virtual devices. -API version: 6.1.0-20784 +API version: 7.0.0-25053 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_agent_app_status.go b/model_agent_app_status.go index 1918aad4..911d276c 100644 --- a/model_agent_app_status.go +++ b/model_agent_app_status.go @@ -3,7 +3,7 @@ Corellium API REST API to manage your virtual devices. -API version: 6.1.0-20784 +API version: 7.0.0-25053 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_agent_apps_list.go b/model_agent_apps_list.go index 38519a96..8cdd7726 100644 --- a/model_agent_apps_list.go +++ b/model_agent_apps_list.go @@ -3,7 +3,7 @@ Corellium API REST API to manage your virtual devices. -API version: 6.1.0-20784 +API version: 7.0.0-25053 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_agent_apps_status_list.go b/model_agent_apps_status_list.go index 25c00a2f..dc4a884d 100644 --- a/model_agent_apps_status_list.go +++ b/model_agent_apps_status_list.go @@ -3,7 +3,7 @@ Corellium API REST API to manage your virtual devices. -API version: 6.1.0-20784 +API version: 7.0.0-25053 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_agent_error.go b/model_agent_error.go index 4c108966..9474e1c8 100644 --- a/model_agent_error.go +++ b/model_agent_error.go @@ -3,7 +3,7 @@ Corellium API REST API to manage your virtual devices. -API version: 6.1.0-20784 +API version: 7.0.0-25053 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_agent_icons.go b/model_agent_icons.go index 36939a00..444d417c 100644 --- a/model_agent_icons.go +++ b/model_agent_icons.go @@ -3,7 +3,7 @@ Corellium API REST API to manage your virtual devices. -API version: 6.1.0-20784 +API version: 7.0.0-25053 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_agent_install_body.go b/model_agent_install_body.go index 01258536..0391f315 100644 --- a/model_agent_install_body.go +++ b/model_agent_install_body.go @@ -3,7 +3,7 @@ Corellium API REST API to manage your virtual devices. -API version: 6.1.0-20784 +API version: 7.0.0-25053 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_agent_profiles_return.go b/model_agent_profiles_return.go index 2a8a9755..d8ba19fe 100644 --- a/model_agent_profiles_return.go +++ b/model_agent_profiles_return.go @@ -3,7 +3,7 @@ Corellium API REST API to manage your virtual devices. -API version: 6.1.0-20784 +API version: 7.0.0-25053 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_agent_system_adb_auth.go b/model_agent_system_adb_auth.go index 82a55bd1..97c3926b 100644 --- a/model_agent_system_adb_auth.go +++ b/model_agent_system_adb_auth.go @@ -3,7 +3,7 @@ Corellium API REST API to manage your virtual devices. -API version: 6.1.0-20784 +API version: 7.0.0-25053 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_agent_system_get_prop_body.go b/model_agent_system_get_prop_body.go index e650a0b6..ce18b7fb 100644 --- a/model_agent_system_get_prop_body.go +++ b/model_agent_system_get_prop_body.go @@ -3,7 +3,7 @@ Corellium API REST API to manage your virtual devices. -API version: 6.1.0-20784 +API version: 7.0.0-25053 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_agent_system_set_hostname_body.go b/model_agent_system_set_hostname_body.go index 88945eff..aa5dc4e9 100644 --- a/model_agent_system_set_hostname_body.go +++ b/model_agent_system_set_hostname_body.go @@ -3,7 +3,7 @@ Corellium API REST API to manage your virtual devices. -API version: 6.1.0-20784 +API version: 7.0.0-25053 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_agent_value_return.go b/model_agent_value_return.go index 121ab640..1032882c 100644 --- a/model_agent_value_return.go +++ b/model_agent_value_return.go @@ -3,7 +3,7 @@ Corellium API REST API to manage your virtual devices. -API version: 6.1.0-20784 +API version: 7.0.0-25053 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_agreed_ack.go b/model_agreed_ack.go index 9f9db28a..a027d8ec 100644 --- a/model_agreed_ack.go +++ b/model_agreed_ack.go @@ -3,7 +3,7 @@ Corellium API REST API to manage your virtual devices. -API version: 6.1.0-20784 +API version: 7.0.0-25053 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_api_conflict_error.go b/model_api_conflict_error.go index 757388a5..761f9a07 100644 --- a/model_api_conflict_error.go +++ b/model_api_conflict_error.go @@ -3,7 +3,7 @@ Corellium API REST API to manage your virtual devices. -API version: 6.1.0-20784 +API version: 7.0.0-25053 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_api_error.go b/model_api_error.go index 619b32b0..42ae2ea5 100644 --- a/model_api_error.go +++ b/model_api_error.go @@ -3,7 +3,7 @@ Corellium API REST API to manage your virtual devices. -API version: 6.1.0-20784 +API version: 7.0.0-25053 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_api_internal_consistency_error.go b/model_api_internal_consistency_error.go index 52506e27..a145eb87 100644 --- a/model_api_internal_consistency_error.go +++ b/model_api_internal_consistency_error.go @@ -3,7 +3,7 @@ Corellium API REST API to manage your virtual devices. -API version: 6.1.0-20784 +API version: 7.0.0-25053 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_api_not_found_error.go b/model_api_not_found_error.go index d1b21cf3..ead91d09 100644 --- a/model_api_not_found_error.go +++ b/model_api_not_found_error.go @@ -3,7 +3,7 @@ Corellium API REST API to manage your virtual devices. -API version: 6.1.0-20784 +API version: 7.0.0-25053 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_api_token.go b/model_api_token.go index 050d77c9..ffb32d51 100644 --- a/model_api_token.go +++ b/model_api_token.go @@ -3,7 +3,7 @@ Corellium API REST API to manage your virtual devices. -API version: 6.1.0-20784 +API version: 7.0.0-25053 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_assessment.go b/model_assessment.go new file mode 100644 index 00000000..2a11cecc --- /dev/null +++ b/model_assessment.go @@ -0,0 +1,500 @@ +/* +Corellium API + +REST API to manage your virtual devices. + +API version: 7.0.0-25053 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package corellium + +import ( + "encoding/json" + "time" +) + +// checks if the Assessment type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &Assessment{} + +// Assessment struct for Assessment +type Assessment struct { + CreatedAt *time.Time `json:"createdAt,omitempty"` + UpdatedAt *time.Time `json:"updatedAt,omitempty"` + CreatedBy *string `json:"createdBy,omitempty"` + ReportId *string `json:"reportId,omitempty"` + Bundle *map[string]interface{} `json:"bundle,omitempty"` + Results *map[string]interface{} `json:"results,omitempty"` + Metadata *map[string]interface{} `json:"metadata,omitempty"` + // Deprecated + WordlistId *string `json:"wordlistId,omitempty"` + Wordlist *map[string]interface{} `json:"wordlist,omitempty"` + InstanceId string `json:"instanceId"` + BundleId string `json:"bundleId"` + Status string `json:"status"` +} + +// NewAssessment instantiates a new Assessment object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewAssessment(instanceId string, bundleId string, status string) *Assessment { + this := Assessment{} + this.InstanceId = instanceId + this.BundleId = bundleId + this.Status = status + return &this +} + +// NewAssessmentWithDefaults instantiates a new Assessment object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewAssessmentWithDefaults() *Assessment { + this := Assessment{} + return &this +} + +// GetCreatedAt returns the CreatedAt field value if set, zero value otherwise. +func (o *Assessment) GetCreatedAt() time.Time { + if o == nil || IsNil(o.CreatedAt) { + var ret time.Time + return ret + } + return *o.CreatedAt +} + +// GetCreatedAtOk returns a tuple with the CreatedAt field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Assessment) GetCreatedAtOk() (*time.Time, bool) { + if o == nil || IsNil(o.CreatedAt) { + return nil, false + } + return o.CreatedAt, true +} + +// HasCreatedAt returns a boolean if a field has been set. +func (o *Assessment) HasCreatedAt() bool { + if o != nil && !IsNil(o.CreatedAt) { + return true + } + + return false +} + +// SetCreatedAt gets a reference to the given time.Time and assigns it to the CreatedAt field. +func (o *Assessment) SetCreatedAt(v time.Time) { + o.CreatedAt = &v +} + +// GetUpdatedAt returns the UpdatedAt field value if set, zero value otherwise. +func (o *Assessment) GetUpdatedAt() time.Time { + if o == nil || IsNil(o.UpdatedAt) { + var ret time.Time + return ret + } + return *o.UpdatedAt +} + +// GetUpdatedAtOk returns a tuple with the UpdatedAt field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Assessment) GetUpdatedAtOk() (*time.Time, bool) { + if o == nil || IsNil(o.UpdatedAt) { + return nil, false + } + return o.UpdatedAt, true +} + +// HasUpdatedAt returns a boolean if a field has been set. +func (o *Assessment) HasUpdatedAt() bool { + if o != nil && !IsNil(o.UpdatedAt) { + return true + } + + return false +} + +// SetUpdatedAt gets a reference to the given time.Time and assigns it to the UpdatedAt field. +func (o *Assessment) SetUpdatedAt(v time.Time) { + o.UpdatedAt = &v +} + +// GetCreatedBy returns the CreatedBy field value if set, zero value otherwise. +func (o *Assessment) GetCreatedBy() string { + if o == nil || IsNil(o.CreatedBy) { + var ret string + return ret + } + return *o.CreatedBy +} + +// GetCreatedByOk returns a tuple with the CreatedBy field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Assessment) GetCreatedByOk() (*string, bool) { + if o == nil || IsNil(o.CreatedBy) { + return nil, false + } + return o.CreatedBy, true +} + +// HasCreatedBy returns a boolean if a field has been set. +func (o *Assessment) HasCreatedBy() bool { + if o != nil && !IsNil(o.CreatedBy) { + return true + } + + return false +} + +// SetCreatedBy gets a reference to the given string and assigns it to the CreatedBy field. +func (o *Assessment) SetCreatedBy(v string) { + o.CreatedBy = &v +} + +// GetReportId returns the ReportId field value if set, zero value otherwise. +func (o *Assessment) GetReportId() string { + if o == nil || IsNil(o.ReportId) { + var ret string + return ret + } + return *o.ReportId +} + +// GetReportIdOk returns a tuple with the ReportId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Assessment) GetReportIdOk() (*string, bool) { + if o == nil || IsNil(o.ReportId) { + return nil, false + } + return o.ReportId, true +} + +// HasReportId returns a boolean if a field has been set. +func (o *Assessment) HasReportId() bool { + if o != nil && !IsNil(o.ReportId) { + return true + } + + return false +} + +// SetReportId gets a reference to the given string and assigns it to the ReportId field. +func (o *Assessment) SetReportId(v string) { + o.ReportId = &v +} + +// GetBundle returns the Bundle field value if set, zero value otherwise. +func (o *Assessment) GetBundle() map[string]interface{} { + if o == nil || IsNil(o.Bundle) { + var ret map[string]interface{} + return ret + } + return *o.Bundle +} + +// GetBundleOk returns a tuple with the Bundle field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Assessment) GetBundleOk() (*map[string]interface{}, bool) { + if o == nil || IsNil(o.Bundle) { + return nil, false + } + return o.Bundle, true +} + +// HasBundle returns a boolean if a field has been set. +func (o *Assessment) HasBundle() bool { + if o != nil && !IsNil(o.Bundle) { + return true + } + + return false +} + +// SetBundle gets a reference to the given map[string]interface{} and assigns it to the Bundle field. +func (o *Assessment) SetBundle(v map[string]interface{}) { + o.Bundle = &v +} + +// GetResults returns the Results field value if set, zero value otherwise. +func (o *Assessment) GetResults() map[string]interface{} { + if o == nil || IsNil(o.Results) { + var ret map[string]interface{} + return ret + } + return *o.Results +} + +// GetResultsOk returns a tuple with the Results field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Assessment) GetResultsOk() (*map[string]interface{}, bool) { + if o == nil || IsNil(o.Results) { + return nil, false + } + return o.Results, true +} + +// HasResults returns a boolean if a field has been set. +func (o *Assessment) HasResults() bool { + if o != nil && !IsNil(o.Results) { + return true + } + + return false +} + +// SetResults gets a reference to the given map[string]interface{} and assigns it to the Results field. +func (o *Assessment) SetResults(v map[string]interface{}) { + o.Results = &v +} + +// GetMetadata returns the Metadata field value if set, zero value otherwise. +func (o *Assessment) GetMetadata() map[string]interface{} { + if o == nil || IsNil(o.Metadata) { + var ret map[string]interface{} + return ret + } + return *o.Metadata +} + +// GetMetadataOk returns a tuple with the Metadata field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Assessment) GetMetadataOk() (*map[string]interface{}, bool) { + if o == nil || IsNil(o.Metadata) { + return nil, false + } + return o.Metadata, true +} + +// HasMetadata returns a boolean if a field has been set. +func (o *Assessment) HasMetadata() bool { + if o != nil && !IsNil(o.Metadata) { + return true + } + + return false +} + +// SetMetadata gets a reference to the given map[string]interface{} and assigns it to the Metadata field. +func (o *Assessment) SetMetadata(v map[string]interface{}) { + o.Metadata = &v +} + +// GetWordlistId returns the WordlistId field value if set, zero value otherwise. +// Deprecated +func (o *Assessment) GetWordlistId() string { + if o == nil || IsNil(o.WordlistId) { + var ret string + return ret + } + return *o.WordlistId +} + +// GetWordlistIdOk returns a tuple with the WordlistId field value if set, nil otherwise +// and a boolean to check if the value has been set. +// Deprecated +func (o *Assessment) GetWordlistIdOk() (*string, bool) { + if o == nil || IsNil(o.WordlistId) { + return nil, false + } + return o.WordlistId, true +} + +// HasWordlistId returns a boolean if a field has been set. +func (o *Assessment) HasWordlistId() bool { + if o != nil && !IsNil(o.WordlistId) { + return true + } + + return false +} + +// SetWordlistId gets a reference to the given string and assigns it to the WordlistId field. +// Deprecated +func (o *Assessment) SetWordlistId(v string) { + o.WordlistId = &v +} + +// GetWordlist returns the Wordlist field value if set, zero value otherwise. +func (o *Assessment) GetWordlist() map[string]interface{} { + if o == nil || IsNil(o.Wordlist) { + var ret map[string]interface{} + return ret + } + return *o.Wordlist +} + +// GetWordlistOk returns a tuple with the Wordlist field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Assessment) GetWordlistOk() (*map[string]interface{}, bool) { + if o == nil || IsNil(o.Wordlist) { + return nil, false + } + return o.Wordlist, true +} + +// HasWordlist returns a boolean if a field has been set. +func (o *Assessment) HasWordlist() bool { + if o != nil && !IsNil(o.Wordlist) { + return true + } + + return false +} + +// SetWordlist gets a reference to the given map[string]interface{} and assigns it to the Wordlist field. +func (o *Assessment) SetWordlist(v map[string]interface{}) { + o.Wordlist = &v +} + +// GetInstanceId returns the InstanceId field value +func (o *Assessment) GetInstanceId() string { + if o == nil { + var ret string + return ret + } + + return o.InstanceId +} + +// GetInstanceIdOk returns a tuple with the InstanceId field value +// and a boolean to check if the value has been set. +func (o *Assessment) GetInstanceIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.InstanceId, true +} + +// SetInstanceId sets field value +func (o *Assessment) SetInstanceId(v string) { + o.InstanceId = v +} + +// GetBundleId returns the BundleId field value +func (o *Assessment) GetBundleId() string { + if o == nil { + var ret string + return ret + } + + return o.BundleId +} + +// GetBundleIdOk returns a tuple with the BundleId field value +// and a boolean to check if the value has been set. +func (o *Assessment) GetBundleIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.BundleId, true +} + +// SetBundleId sets field value +func (o *Assessment) SetBundleId(v string) { + o.BundleId = v +} + +// GetStatus returns the Status field value +func (o *Assessment) GetStatus() string { + if o == nil { + var ret string + return ret + } + + return o.Status +} + +// GetStatusOk returns a tuple with the Status field value +// and a boolean to check if the value has been set. +func (o *Assessment) GetStatusOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Status, true +} + +// SetStatus sets field value +func (o *Assessment) SetStatus(v string) { + o.Status = v +} + +func (o Assessment) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o Assessment) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.CreatedAt) { + toSerialize["createdAt"] = o.CreatedAt + } + if !IsNil(o.UpdatedAt) { + toSerialize["updatedAt"] = o.UpdatedAt + } + if !IsNil(o.CreatedBy) { + toSerialize["createdBy"] = o.CreatedBy + } + if !IsNil(o.ReportId) { + toSerialize["reportId"] = o.ReportId + } + if !IsNil(o.Bundle) { + toSerialize["bundle"] = o.Bundle + } + if !IsNil(o.Results) { + toSerialize["results"] = o.Results + } + if !IsNil(o.Metadata) { + toSerialize["metadata"] = o.Metadata + } + if !IsNil(o.WordlistId) { + toSerialize["wordlistId"] = o.WordlistId + } + if !IsNil(o.Wordlist) { + toSerialize["wordlist"] = o.Wordlist + } + toSerialize["instanceId"] = o.InstanceId + toSerialize["bundleId"] = o.BundleId + toSerialize["status"] = o.Status + return toSerialize, nil +} + +type NullableAssessment struct { + value *Assessment + isSet bool +} + +func (v NullableAssessment) Get() *Assessment { + return v.value +} + +func (v *NullableAssessment) Set(val *Assessment) { + v.value = val + v.isSet = true +} + +func (v NullableAssessment) IsSet() bool { + return v.isSet +} + +func (v *NullableAssessment) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableAssessment(val *Assessment) *NullableAssessment { + return &NullableAssessment{value: val, isSet: true} +} + +func (v NullableAssessment) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableAssessment) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_assessment_id_status.go b/model_assessment_id_status.go new file mode 100644 index 00000000..22918b46 --- /dev/null +++ b/model_assessment_id_status.go @@ -0,0 +1,153 @@ +/* +Corellium API + +REST API to manage your virtual devices. + +API version: 7.0.0-25053 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package corellium + +import ( + "encoding/json" +) + +// checks if the AssessmentIdStatus type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &AssessmentIdStatus{} + +// AssessmentIdStatus struct for AssessmentIdStatus +type AssessmentIdStatus struct { + Id *string `json:"id,omitempty"` + Status string `json:"status"` +} + +// NewAssessmentIdStatus instantiates a new AssessmentIdStatus object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewAssessmentIdStatus(status string) *AssessmentIdStatus { + this := AssessmentIdStatus{} + this.Status = status + return &this +} + +// NewAssessmentIdStatusWithDefaults instantiates a new AssessmentIdStatus object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewAssessmentIdStatusWithDefaults() *AssessmentIdStatus { + this := AssessmentIdStatus{} + return &this +} + +// GetId returns the Id field value if set, zero value otherwise. +func (o *AssessmentIdStatus) GetId() string { + if o == nil || IsNil(o.Id) { + var ret string + return ret + } + return *o.Id +} + +// GetIdOk returns a tuple with the Id field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AssessmentIdStatus) GetIdOk() (*string, bool) { + if o == nil || IsNil(o.Id) { + return nil, false + } + return o.Id, true +} + +// HasId returns a boolean if a field has been set. +func (o *AssessmentIdStatus) HasId() bool { + if o != nil && !IsNil(o.Id) { + return true + } + + return false +} + +// SetId gets a reference to the given string and assigns it to the Id field. +func (o *AssessmentIdStatus) SetId(v string) { + o.Id = &v +} + +// GetStatus returns the Status field value +func (o *AssessmentIdStatus) GetStatus() string { + if o == nil { + var ret string + return ret + } + + return o.Status +} + +// GetStatusOk returns a tuple with the Status field value +// and a boolean to check if the value has been set. +func (o *AssessmentIdStatus) GetStatusOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Status, true +} + +// SetStatus sets field value +func (o *AssessmentIdStatus) SetStatus(v string) { + o.Status = v +} + +func (o AssessmentIdStatus) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o AssessmentIdStatus) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Id) { + toSerialize["id"] = o.Id + } + toSerialize["status"] = o.Status + return toSerialize, nil +} + +type NullableAssessmentIdStatus struct { + value *AssessmentIdStatus + isSet bool +} + +func (v NullableAssessmentIdStatus) Get() *AssessmentIdStatus { + return v.value +} + +func (v *NullableAssessmentIdStatus) Set(val *AssessmentIdStatus) { + v.value = val + v.isSet = true +} + +func (v NullableAssessmentIdStatus) IsSet() bool { + return v.isSet +} + +func (v *NullableAssessmentIdStatus) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableAssessmentIdStatus(val *AssessmentIdStatus) *NullableAssessmentIdStatus { + return &NullableAssessmentIdStatus{value: val, isSet: true} +} + +func (v NullableAssessmentIdStatus) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableAssessmentIdStatus) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_auth_provider.go b/model_auth_provider.go index 96225b37..1b146b5c 100644 --- a/model_auth_provider.go +++ b/model_auth_provider.go @@ -3,7 +3,7 @@ Corellium API REST API to manage your virtual devices. -API version: 6.1.0-20784 +API version: 7.0.0-25053 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_bit.go b/model_bit.go index 1f9b8fec..dc8520a8 100644 --- a/model_bit.go +++ b/model_bit.go @@ -3,7 +3,7 @@ Corellium API REST API to manage your virtual devices. -API version: 6.1.0-20784 +API version: 7.0.0-25053 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_btrace_enable_options.go b/model_btrace_enable_options.go index ec863766..0840b75b 100644 --- a/model_btrace_enable_options.go +++ b/model_btrace_enable_options.go @@ -3,7 +3,7 @@ Corellium API REST API to manage your virtual devices. -API version: 6.1.0-20784 +API version: 7.0.0-25053 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_button.go b/model_button.go index 611493a4..57e4569d 100644 --- a/model_button.go +++ b/model_button.go @@ -3,7 +3,7 @@ Corellium API REST API to manage your virtual devices. -API version: 6.1.0-20784 +API version: 7.0.0-25053 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_check_subdomain_response.go b/model_check_subdomain_response.go new file mode 100644 index 00000000..62956b87 --- /dev/null +++ b/model_check_subdomain_response.go @@ -0,0 +1,118 @@ +/* +Corellium API + +REST API to manage your virtual devices. + +API version: 7.0.0-25053 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package corellium + +import ( + "encoding/json" +) + +// checks if the CheckSubdomainResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &CheckSubdomainResponse{} + +// CheckSubdomainResponse +type CheckSubdomainResponse struct { + // Indicates whether the subdomain is available or not + Available bool `json:"available"` +} + +// NewCheckSubdomainResponse instantiates a new CheckSubdomainResponse object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewCheckSubdomainResponse(available bool) *CheckSubdomainResponse { + this := CheckSubdomainResponse{} + this.Available = available + return &this +} + +// NewCheckSubdomainResponseWithDefaults instantiates a new CheckSubdomainResponse object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewCheckSubdomainResponseWithDefaults() *CheckSubdomainResponse { + this := CheckSubdomainResponse{} + return &this +} + +// GetAvailable returns the Available field value +func (o *CheckSubdomainResponse) GetAvailable() bool { + if o == nil { + var ret bool + return ret + } + + return o.Available +} + +// GetAvailableOk returns a tuple with the Available field value +// and a boolean to check if the value has been set. +func (o *CheckSubdomainResponse) GetAvailableOk() (*bool, bool) { + if o == nil { + return nil, false + } + return &o.Available, true +} + +// SetAvailable sets field value +func (o *CheckSubdomainResponse) SetAvailable(v bool) { + o.Available = v +} + +func (o CheckSubdomainResponse) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o CheckSubdomainResponse) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["available"] = o.Available + return toSerialize, nil +} + +type NullableCheckSubdomainResponse struct { + value *CheckSubdomainResponse + isSet bool +} + +func (v NullableCheckSubdomainResponse) Get() *CheckSubdomainResponse { + return v.value +} + +func (v *NullableCheckSubdomainResponse) Set(val *CheckSubdomainResponse) { + v.value = val + v.isSet = true +} + +func (v NullableCheckSubdomainResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableCheckSubdomainResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCheckSubdomainResponse(val *CheckSubdomainResponse) *NullableCheckSubdomainResponse { + return &NullableCheckSubdomainResponse{value: val, isSet: true} +} + +func (v NullableCheckSubdomainResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCheckSubdomainResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_config_response.go b/model_config_response.go index fa011392..287ea493 100644 --- a/model_config_response.go +++ b/model_config_response.go @@ -3,7 +3,7 @@ Corellium API REST API to manage your virtual devices. -API version: 6.1.0-20784 +API version: 7.0.0-25053 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_config_response_maintenance.go b/model_config_response_maintenance.go index 2e2a8f77..0055e294 100644 --- a/model_config_response_maintenance.go +++ b/model_config_response_maintenance.go @@ -3,7 +3,7 @@ Corellium API REST API to manage your virtual devices. -API version: 6.1.0-20784 +API version: 7.0.0-25053 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_coupon_options.go b/model_coupon_options.go index 57cefe72..7021beed 100644 --- a/model_coupon_options.go +++ b/model_coupon_options.go @@ -3,7 +3,7 @@ Corellium API REST API to manage your virtual devices. -API version: 6.1.0-20784 +API version: 7.0.0-25053 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_create_assessment_dto.go b/model_create_assessment_dto.go new file mode 100644 index 00000000..b4d301d4 --- /dev/null +++ b/model_create_assessment_dto.go @@ -0,0 +1,180 @@ +/* +Corellium API + +REST API to manage your virtual devices. + +API version: 7.0.0-25053 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package corellium + +import ( + "encoding/json" +) + +// checks if the CreateAssessmentDto type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &CreateAssessmentDto{} + +// CreateAssessmentDto struct for CreateAssessmentDto +type CreateAssessmentDto struct { + InstanceId string `json:"instanceId"` + BundleId string `json:"bundleId"` + WordlistId *string `json:"wordlistId,omitempty"` +} + +// NewCreateAssessmentDto instantiates a new CreateAssessmentDto object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewCreateAssessmentDto(instanceId string, bundleId string) *CreateAssessmentDto { + this := CreateAssessmentDto{} + this.InstanceId = instanceId + this.BundleId = bundleId + return &this +} + +// NewCreateAssessmentDtoWithDefaults instantiates a new CreateAssessmentDto object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewCreateAssessmentDtoWithDefaults() *CreateAssessmentDto { + this := CreateAssessmentDto{} + return &this +} + +// GetInstanceId returns the InstanceId field value +func (o *CreateAssessmentDto) GetInstanceId() string { + if o == nil { + var ret string + return ret + } + + return o.InstanceId +} + +// GetInstanceIdOk returns a tuple with the InstanceId field value +// and a boolean to check if the value has been set. +func (o *CreateAssessmentDto) GetInstanceIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.InstanceId, true +} + +// SetInstanceId sets field value +func (o *CreateAssessmentDto) SetInstanceId(v string) { + o.InstanceId = v +} + +// GetBundleId returns the BundleId field value +func (o *CreateAssessmentDto) GetBundleId() string { + if o == nil { + var ret string + return ret + } + + return o.BundleId +} + +// GetBundleIdOk returns a tuple with the BundleId field value +// and a boolean to check if the value has been set. +func (o *CreateAssessmentDto) GetBundleIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.BundleId, true +} + +// SetBundleId sets field value +func (o *CreateAssessmentDto) SetBundleId(v string) { + o.BundleId = v +} + +// GetWordlistId returns the WordlistId field value if set, zero value otherwise. +func (o *CreateAssessmentDto) GetWordlistId() string { + if o == nil || IsNil(o.WordlistId) { + var ret string + return ret + } + return *o.WordlistId +} + +// GetWordlistIdOk returns a tuple with the WordlistId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CreateAssessmentDto) GetWordlistIdOk() (*string, bool) { + if o == nil || IsNil(o.WordlistId) { + return nil, false + } + return o.WordlistId, true +} + +// HasWordlistId returns a boolean if a field has been set. +func (o *CreateAssessmentDto) HasWordlistId() bool { + if o != nil && !IsNil(o.WordlistId) { + return true + } + + return false +} + +// SetWordlistId gets a reference to the given string and assigns it to the WordlistId field. +func (o *CreateAssessmentDto) SetWordlistId(v string) { + o.WordlistId = &v +} + +func (o CreateAssessmentDto) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o CreateAssessmentDto) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["instanceId"] = o.InstanceId + toSerialize["bundleId"] = o.BundleId + if !IsNil(o.WordlistId) { + toSerialize["wordlistId"] = o.WordlistId + } + return toSerialize, nil +} + +type NullableCreateAssessmentDto struct { + value *CreateAssessmentDto + isSet bool +} + +func (v NullableCreateAssessmentDto) Get() *CreateAssessmentDto { + return v.value +} + +func (v *NullableCreateAssessmentDto) Set(val *CreateAssessmentDto) { + v.value = val + v.isSet = true +} + +func (v NullableCreateAssessmentDto) IsSet() bool { + return v.isSet +} + +func (v *NullableCreateAssessmentDto) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCreateAssessmentDto(val *CreateAssessmentDto) *NullableCreateAssessmentDto { + return &NullableCreateAssessmentDto{value: val, isSet: true} +} + +func (v NullableCreateAssessmentDto) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCreateAssessmentDto) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_create_network_connection_options.go b/model_create_network_connection_options.go new file mode 100644 index 00000000..beef691d --- /dev/null +++ b/model_create_network_connection_options.go @@ -0,0 +1,212 @@ +/* +Corellium API + +REST API to manage your virtual devices. + +API version: 7.0.0-25053 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package corellium + +import ( + "encoding/json" +) + +// checks if the CreateNetworkConnectionOptions type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &CreateNetworkConnectionOptions{} + +// CreateNetworkConnectionOptions +type CreateNetworkConnectionOptions struct { + // UUIDv4 + Identifier string `json:"identifier"` + // User specified name for this network connection. e.g. My Network Connection + Name string `json:"name"` + // One of the registered [network provider types](#get-/v1/network/providers) + Provider string `json:"provider"` + // An object containing network connection configuration data. Will vary based on network provider type. See examples. + Config map[string]interface{} `json:"config,omitempty"` +} + +// NewCreateNetworkConnectionOptions instantiates a new CreateNetworkConnectionOptions object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewCreateNetworkConnectionOptions(identifier string, name string, provider string) *CreateNetworkConnectionOptions { + this := CreateNetworkConnectionOptions{} + this.Identifier = identifier + this.Name = name + this.Provider = provider + return &this +} + +// NewCreateNetworkConnectionOptionsWithDefaults instantiates a new CreateNetworkConnectionOptions object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewCreateNetworkConnectionOptionsWithDefaults() *CreateNetworkConnectionOptions { + this := CreateNetworkConnectionOptions{} + return &this +} + +// GetIdentifier returns the Identifier field value +func (o *CreateNetworkConnectionOptions) GetIdentifier() string { + if o == nil { + var ret string + return ret + } + + return o.Identifier +} + +// GetIdentifierOk returns a tuple with the Identifier field value +// and a boolean to check if the value has been set. +func (o *CreateNetworkConnectionOptions) GetIdentifierOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Identifier, true +} + +// SetIdentifier sets field value +func (o *CreateNetworkConnectionOptions) SetIdentifier(v string) { + o.Identifier = v +} + +// GetName returns the Name field value +func (o *CreateNetworkConnectionOptions) GetName() string { + if o == nil { + var ret string + return ret + } + + return o.Name +} + +// GetNameOk returns a tuple with the Name field value +// and a boolean to check if the value has been set. +func (o *CreateNetworkConnectionOptions) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *CreateNetworkConnectionOptions) SetName(v string) { + o.Name = v +} + +// GetProvider returns the Provider field value +func (o *CreateNetworkConnectionOptions) GetProvider() string { + if o == nil { + var ret string + return ret + } + + return o.Provider +} + +// GetProviderOk returns a tuple with the Provider field value +// and a boolean to check if the value has been set. +func (o *CreateNetworkConnectionOptions) GetProviderOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Provider, true +} + +// SetProvider sets field value +func (o *CreateNetworkConnectionOptions) SetProvider(v string) { + o.Provider = v +} + +// GetConfig returns the Config field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CreateNetworkConnectionOptions) GetConfig() map[string]interface{} { + if o == nil { + var ret map[string]interface{} + return ret + } + return o.Config +} + +// GetConfigOk returns a tuple with the Config field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CreateNetworkConnectionOptions) GetConfigOk() (map[string]interface{}, bool) { + if o == nil || IsNil(o.Config) { + return map[string]interface{}{}, false + } + return o.Config, true +} + +// HasConfig returns a boolean if a field has been set. +func (o *CreateNetworkConnectionOptions) HasConfig() bool { + if o != nil && IsNil(o.Config) { + return true + } + + return false +} + +// SetConfig gets a reference to the given map[string]interface{} and assigns it to the Config field. +func (o *CreateNetworkConnectionOptions) SetConfig(v map[string]interface{}) { + o.Config = v +} + +func (o CreateNetworkConnectionOptions) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o CreateNetworkConnectionOptions) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["identifier"] = o.Identifier + toSerialize["name"] = o.Name + toSerialize["provider"] = o.Provider + if o.Config != nil { + toSerialize["config"] = o.Config + } + return toSerialize, nil +} + +type NullableCreateNetworkConnectionOptions struct { + value *CreateNetworkConnectionOptions + isSet bool +} + +func (v NullableCreateNetworkConnectionOptions) Get() *CreateNetworkConnectionOptions { + return v.value +} + +func (v *NullableCreateNetworkConnectionOptions) Set(val *CreateNetworkConnectionOptions) { + v.value = val + v.isSet = true +} + +func (v NullableCreateNetworkConnectionOptions) IsSet() bool { + return v.isSet +} + +func (v *NullableCreateNetworkConnectionOptions) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCreateNetworkConnectionOptions(val *CreateNetworkConnectionOptions) *NullableCreateNetworkConnectionOptions { + return &NullableCreateNetworkConnectionOptions{value: val, isSet: true} +} + +func (v NullableCreateNetworkConnectionOptions) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCreateNetworkConnectionOptions) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_create_team.go b/model_create_team.go index 94ce8920..17f8eda1 100644 --- a/model_create_team.go +++ b/model_create_team.go @@ -3,7 +3,7 @@ Corellium API REST API to manage your virtual devices. -API version: 6.1.0-20784 +API version: 7.0.0-25053 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_created_by.go b/model_created_by.go index 0b250d7e..c61b9c6e 100644 --- a/model_created_by.go +++ b/model_created_by.go @@ -3,7 +3,7 @@ Corellium API REST API to manage your virtual devices. -API version: 6.1.0-20784 +API version: 7.0.0-25053 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_credentials.go b/model_credentials.go index ef6e61a4..c73b5153 100644 --- a/model_credentials.go +++ b/model_credentials.go @@ -3,7 +3,7 @@ Corellium API REST API to manage your virtual devices. -API version: 6.1.0-20784 +API version: 7.0.0-25053 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_domain_auth_provider_request.go b/model_domain_auth_provider_request.go index 6b5f98c7..f42a2097 100644 --- a/model_domain_auth_provider_request.go +++ b/model_domain_auth_provider_request.go @@ -3,7 +3,7 @@ Corellium API REST API to manage your virtual devices. -API version: 6.1.0-20784 +API version: 7.0.0-25053 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_domain_auth_provider_response.go b/model_domain_auth_provider_response.go index 9bfca6d0..9154107b 100644 --- a/model_domain_auth_provider_response.go +++ b/model_domain_auth_provider_response.go @@ -3,7 +3,7 @@ Corellium API REST API to manage your virtual devices. -API version: 6.1.0-20784 +API version: 7.0.0-25053 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_domain_options.go b/model_domain_options.go index 075d98b2..7bca1d2e 100644 --- a/model_domain_options.go +++ b/model_domain_options.go @@ -3,7 +3,7 @@ Corellium API REST API to manage your virtual devices. -API version: 6.1.0-20784 +API version: 7.0.0-25053 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -22,7 +22,7 @@ type DomainOptions struct { // if true, totp is required TotpRequired NullableBool `json:"totpRequired,omitempty"` TrialExtension *TrialExtension `json:"trialExtension,omitempty"` - SnapshotPermissions *SnapshotPermissions `json:"snapshotPermissions,omitempty"` + SnapshotSharingPermissions *SnapshotSharingPermissions `json:"snapshotSharingPermissions,omitempty"` } // NewDomainOptions instantiates a new DomainOptions object @@ -116,36 +116,36 @@ func (o *DomainOptions) SetTrialExtension(v TrialExtension) { o.TrialExtension = &v } -// GetSnapshotPermissions returns the SnapshotPermissions field value if set, zero value otherwise. -func (o *DomainOptions) GetSnapshotPermissions() SnapshotPermissions { - if o == nil || IsNil(o.SnapshotPermissions) { - var ret SnapshotPermissions +// GetSnapshotSharingPermissions returns the SnapshotSharingPermissions field value if set, zero value otherwise. +func (o *DomainOptions) GetSnapshotSharingPermissions() SnapshotSharingPermissions { + if o == nil || IsNil(o.SnapshotSharingPermissions) { + var ret SnapshotSharingPermissions return ret } - return *o.SnapshotPermissions + return *o.SnapshotSharingPermissions } -// GetSnapshotPermissionsOk returns a tuple with the SnapshotPermissions field value if set, nil otherwise +// GetSnapshotSharingPermissionsOk returns a tuple with the SnapshotSharingPermissions field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *DomainOptions) GetSnapshotPermissionsOk() (*SnapshotPermissions, bool) { - if o == nil || IsNil(o.SnapshotPermissions) { +func (o *DomainOptions) GetSnapshotSharingPermissionsOk() (*SnapshotSharingPermissions, bool) { + if o == nil || IsNil(o.SnapshotSharingPermissions) { return nil, false } - return o.SnapshotPermissions, true + return o.SnapshotSharingPermissions, true } -// HasSnapshotPermissions returns a boolean if a field has been set. -func (o *DomainOptions) HasSnapshotPermissions() bool { - if o != nil && !IsNil(o.SnapshotPermissions) { +// HasSnapshotSharingPermissions returns a boolean if a field has been set. +func (o *DomainOptions) HasSnapshotSharingPermissions() bool { + if o != nil && !IsNil(o.SnapshotSharingPermissions) { return true } return false } -// SetSnapshotPermissions gets a reference to the given SnapshotPermissions and assigns it to the SnapshotPermissions field. -func (o *DomainOptions) SetSnapshotPermissions(v SnapshotPermissions) { - o.SnapshotPermissions = &v +// SetSnapshotSharingPermissions gets a reference to the given SnapshotSharingPermissions and assigns it to the SnapshotSharingPermissions field. +func (o *DomainOptions) SetSnapshotSharingPermissions(v SnapshotSharingPermissions) { + o.SnapshotSharingPermissions = &v } func (o DomainOptions) MarshalJSON() ([]byte, error) { @@ -164,8 +164,8 @@ func (o DomainOptions) ToMap() (map[string]interface{}, error) { if !IsNil(o.TrialExtension) { toSerialize["trialExtension"] = o.TrialExtension } - if !IsNil(o.SnapshotPermissions) { - toSerialize["snapshotPermissions"] = o.SnapshotPermissions + if !IsNil(o.SnapshotSharingPermissions) { + toSerialize["snapshotSharingPermissions"] = o.SnapshotSharingPermissions } return toSerialize, nil } diff --git a/model_extension.go b/model_extension.go index 2371d462..003fede0 100644 --- a/model_extension.go +++ b/model_extension.go @@ -3,7 +3,7 @@ Corellium API REST API to manage your virtual devices. -API version: 6.1.0-20784 +API version: 7.0.0-25053 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_features.go b/model_features.go index e792d7fa..a75a6195 100644 --- a/model_features.go +++ b/model_features.go @@ -3,7 +3,7 @@ Corellium API REST API to manage your virtual devices. -API version: 6.1.0-20784 +API version: 7.0.0-25053 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_file_changes.go b/model_file_changes.go index 6ce271d4..b9528f35 100644 --- a/model_file_changes.go +++ b/model_file_changes.go @@ -3,7 +3,7 @@ Corellium API REST API to manage your virtual devices. -API version: 6.1.0-20784 +API version: 7.0.0-25053 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_firmware.go b/model_firmware.go index b40ed320..fcf562fc 100644 --- a/model_firmware.go +++ b/model_firmware.go @@ -3,7 +3,7 @@ Corellium API REST API to manage your virtual devices. -API version: 6.1.0-20784 +API version: 7.0.0-25053 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_get_assessments_by_instance_id_500_response.go b/model_get_assessments_by_instance_id_500_response.go new file mode 100644 index 00000000..051a55a2 --- /dev/null +++ b/model_get_assessments_by_instance_id_500_response.go @@ -0,0 +1,126 @@ +/* +Corellium API + +REST API to manage your virtual devices. + +API version: 7.0.0-25053 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package corellium + +import ( + "encoding/json" +) + +// checks if the GetAssessmentsByInstanceId500Response type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &GetAssessmentsByInstanceId500Response{} + +// GetAssessmentsByInstanceId500Response struct for GetAssessmentsByInstanceId500Response +type GetAssessmentsByInstanceId500Response struct { + Error *string `json:"error,omitempty"` +} + +// NewGetAssessmentsByInstanceId500Response instantiates a new GetAssessmentsByInstanceId500Response object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewGetAssessmentsByInstanceId500Response() *GetAssessmentsByInstanceId500Response { + this := GetAssessmentsByInstanceId500Response{} + return &this +} + +// NewGetAssessmentsByInstanceId500ResponseWithDefaults instantiates a new GetAssessmentsByInstanceId500Response object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewGetAssessmentsByInstanceId500ResponseWithDefaults() *GetAssessmentsByInstanceId500Response { + this := GetAssessmentsByInstanceId500Response{} + return &this +} + +// GetError returns the Error field value if set, zero value otherwise. +func (o *GetAssessmentsByInstanceId500Response) GetError() string { + if o == nil || IsNil(o.Error) { + var ret string + return ret + } + return *o.Error +} + +// GetErrorOk returns a tuple with the Error field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GetAssessmentsByInstanceId500Response) GetErrorOk() (*string, bool) { + if o == nil || IsNil(o.Error) { + return nil, false + } + return o.Error, true +} + +// HasError returns a boolean if a field has been set. +func (o *GetAssessmentsByInstanceId500Response) HasError() bool { + if o != nil && !IsNil(o.Error) { + return true + } + + return false +} + +// SetError gets a reference to the given string and assigns it to the Error field. +func (o *GetAssessmentsByInstanceId500Response) SetError(v string) { + o.Error = &v +} + +func (o GetAssessmentsByInstanceId500Response) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o GetAssessmentsByInstanceId500Response) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Error) { + toSerialize["error"] = o.Error + } + return toSerialize, nil +} + +type NullableGetAssessmentsByInstanceId500Response struct { + value *GetAssessmentsByInstanceId500Response + isSet bool +} + +func (v NullableGetAssessmentsByInstanceId500Response) Get() *GetAssessmentsByInstanceId500Response { + return v.value +} + +func (v *NullableGetAssessmentsByInstanceId500Response) Set(val *GetAssessmentsByInstanceId500Response) { + v.value = val + v.isSet = true +} + +func (v NullableGetAssessmentsByInstanceId500Response) IsSet() bool { + return v.isSet +} + +func (v *NullableGetAssessmentsByInstanceId500Response) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableGetAssessmentsByInstanceId500Response(val *GetAssessmentsByInstanceId500Response) *NullableGetAssessmentsByInstanceId500Response { + return &NullableGetAssessmentsByInstanceId500Response{value: val, isSet: true} +} + +func (v NullableGetAssessmentsByInstanceId500Response) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableGetAssessmentsByInstanceId500Response) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_gpio_state_definition.go b/model_gpio_state_definition.go index bd1a48f2..d795df36 100644 --- a/model_gpio_state_definition.go +++ b/model_gpio_state_definition.go @@ -3,7 +3,7 @@ Corellium API REST API to manage your virtual devices. -API version: 6.1.0-20784 +API version: 7.0.0-25053 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_gpios_state.go b/model_gpios_state.go index a16b17ce..e646d142 100644 --- a/model_gpios_state.go +++ b/model_gpios_state.go @@ -3,7 +3,7 @@ Corellium API REST API to manage your virtual devices. -API version: 6.1.0-20784 +API version: 7.0.0-25053 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_grant_trial_request_response.go b/model_grant_trial_request_response.go index cb8471b0..dcf5ef77 100644 --- a/model_grant_trial_request_response.go +++ b/model_grant_trial_request_response.go @@ -3,7 +3,7 @@ Corellium API REST API to manage your virtual devices. -API version: 6.1.0-20784 +API version: 7.0.0-25053 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_hook.go b/model_hook.go index 846d52fe..a9c6145c 100644 --- a/model_hook.go +++ b/model_hook.go @@ -3,7 +3,7 @@ Corellium API REST API to manage your virtual devices. -API version: 6.1.0-20784 +API version: 7.0.0-25053 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_image.go b/model_image.go index 0fcbd331..29aae5f8 100644 --- a/model_image.go +++ b/model_image.go @@ -3,7 +3,7 @@ Corellium API REST API to manage your virtual devices. -API version: 6.1.0-20784 +API version: 7.0.0-25053 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_input_response.go b/model_input_response.go new file mode 100644 index 00000000..a3f90c47 --- /dev/null +++ b/model_input_response.go @@ -0,0 +1,137 @@ +/* +Corellium API + +REST API to manage your virtual devices. + +API version: 7.0.0-25053 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package corellium + +import ( + "encoding/json" +) + +// checks if the InputResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &InputResponse{} + +// InputResponse +type InputResponse struct { + // Expected time to complete + Eta NullableFloat32 `json:"eta,omitempty"` +} + +// NewInputResponse instantiates a new InputResponse object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewInputResponse() *InputResponse { + this := InputResponse{} + return &this +} + +// NewInputResponseWithDefaults instantiates a new InputResponse object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewInputResponseWithDefaults() *InputResponse { + this := InputResponse{} + return &this +} + +// GetEta returns the Eta field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *InputResponse) GetEta() float32 { + if o == nil || IsNil(o.Eta.Get()) { + var ret float32 + return ret + } + return *o.Eta.Get() +} + +// GetEtaOk returns a tuple with the Eta field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *InputResponse) GetEtaOk() (*float32, bool) { + if o == nil { + return nil, false + } + return o.Eta.Get(), o.Eta.IsSet() +} + +// HasEta returns a boolean if a field has been set. +func (o *InputResponse) HasEta() bool { + if o != nil && o.Eta.IsSet() { + return true + } + + return false +} + +// SetEta gets a reference to the given NullableFloat32 and assigns it to the Eta field. +func (o *InputResponse) SetEta(v float32) { + o.Eta.Set(&v) +} +// SetEtaNil sets the value for Eta to be an explicit nil +func (o *InputResponse) SetEtaNil() { + o.Eta.Set(nil) +} + +// UnsetEta ensures that no value is present for Eta, not even an explicit nil +func (o *InputResponse) UnsetEta() { + o.Eta.Unset() +} + +func (o InputResponse) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o InputResponse) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if o.Eta.IsSet() { + toSerialize["eta"] = o.Eta.Get() + } + return toSerialize, nil +} + +type NullableInputResponse struct { + value *InputResponse + isSet bool +} + +func (v NullableInputResponse) Get() *InputResponse { + return v.value +} + +func (v *NullableInputResponse) Set(val *InputResponse) { + v.value = val + v.isSet = true +} + +func (v NullableInputResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableInputResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableInputResponse(val *InputResponse) *NullableInputResponse { + return &NullableInputResponse{value: val, isSet: true} +} + +func (v NullableInputResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableInputResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_instance.go b/model_instance.go index df131822..3e6ce940 100644 --- a/model_instance.go +++ b/model_instance.go @@ -3,7 +3,7 @@ Corellium API REST API to manage your virtual devices. -API version: 6.1.0-20784 +API version: 7.0.0-25053 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_instance_agent_state.go b/model_instance_agent_state.go index a484fe34..dd0cf133 100644 --- a/model_instance_agent_state.go +++ b/model_instance_agent_state.go @@ -3,7 +3,7 @@ Corellium API REST API to manage your virtual devices. -API version: 6.1.0-20784 +API version: 7.0.0-25053 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_instance_boot_options.go b/model_instance_boot_options.go index 9b0ffc2e..01cfd220 100644 --- a/model_instance_boot_options.go +++ b/model_instance_boot_options.go @@ -3,7 +3,7 @@ Corellium API REST API to manage your virtual devices. -API version: 6.1.0-20784 +API version: 7.0.0-25053 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_instance_boot_options_additional_tag.go b/model_instance_boot_options_additional_tag.go index 9747db21..434ec6bb 100644 --- a/model_instance_boot_options_additional_tag.go +++ b/model_instance_boot_options_additional_tag.go @@ -3,7 +3,7 @@ Corellium API REST API to manage your virtual devices. -API version: 6.1.0-20784 +API version: 7.0.0-25053 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_instance_console_endpoint.go b/model_instance_console_endpoint.go index b53e4707..1857263c 100644 --- a/model_instance_console_endpoint.go +++ b/model_instance_console_endpoint.go @@ -3,7 +3,7 @@ Corellium API REST API to manage your virtual devices. -API version: 6.1.0-20784 +API version: 7.0.0-25053 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_instance_create_options.go b/model_instance_create_options.go index 925052de..2cbd1c5d 100644 --- a/model_instance_create_options.go +++ b/model_instance_create_options.go @@ -3,7 +3,7 @@ Corellium API REST API to manage your virtual devices. -API version: 6.1.0-20784 +API version: 7.0.0-25053 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,6 +19,10 @@ var _ MappedNullable = &InstanceCreateOptions{} // InstanceCreateOptions type InstanceCreateOptions struct { + // identifier of the snapshot that was shared. + SharedSnapshot NullableString `json:"sharedSnapshot,omitempty"` + // optional password if the shared snapshot requires a password. + SharedSnapshotPassword NullableString `json:"sharedSnapshotPassword,omitempty"` // the name of the device Name NullableString `json:"name,omitempty"` // Key used to encrypt the Instance @@ -40,7 +44,7 @@ type InstanceCreateOptions struct { // Encrypt NullableBool `json:"encrypt,omitempty"` // - OverrideWifiMAC NullableString `json:"overrideWifiMAC,omitempty"` + WifiMac NullableString `json:"wifiMac,omitempty"` Volume *VolumeOptions `json:"volume,omitempty"` // Snapshot ID for this instance to be cloned from if defined Snapshot NullableString `json:"snapshot,omitempty"` @@ -68,6 +72,90 @@ func NewInstanceCreateOptionsWithDefaults() *InstanceCreateOptions { return &this } +// GetSharedSnapshot returns the SharedSnapshot field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *InstanceCreateOptions) GetSharedSnapshot() string { + if o == nil || IsNil(o.SharedSnapshot.Get()) { + var ret string + return ret + } + return *o.SharedSnapshot.Get() +} + +// GetSharedSnapshotOk returns a tuple with the SharedSnapshot field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *InstanceCreateOptions) GetSharedSnapshotOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.SharedSnapshot.Get(), o.SharedSnapshot.IsSet() +} + +// HasSharedSnapshot returns a boolean if a field has been set. +func (o *InstanceCreateOptions) HasSharedSnapshot() bool { + if o != nil && o.SharedSnapshot.IsSet() { + return true + } + + return false +} + +// SetSharedSnapshot gets a reference to the given NullableString and assigns it to the SharedSnapshot field. +func (o *InstanceCreateOptions) SetSharedSnapshot(v string) { + o.SharedSnapshot.Set(&v) +} +// SetSharedSnapshotNil sets the value for SharedSnapshot to be an explicit nil +func (o *InstanceCreateOptions) SetSharedSnapshotNil() { + o.SharedSnapshot.Set(nil) +} + +// UnsetSharedSnapshot ensures that no value is present for SharedSnapshot, not even an explicit nil +func (o *InstanceCreateOptions) UnsetSharedSnapshot() { + o.SharedSnapshot.Unset() +} + +// GetSharedSnapshotPassword returns the SharedSnapshotPassword field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *InstanceCreateOptions) GetSharedSnapshotPassword() string { + if o == nil || IsNil(o.SharedSnapshotPassword.Get()) { + var ret string + return ret + } + return *o.SharedSnapshotPassword.Get() +} + +// GetSharedSnapshotPasswordOk returns a tuple with the SharedSnapshotPassword field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *InstanceCreateOptions) GetSharedSnapshotPasswordOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.SharedSnapshotPassword.Get(), o.SharedSnapshotPassword.IsSet() +} + +// HasSharedSnapshotPassword returns a boolean if a field has been set. +func (o *InstanceCreateOptions) HasSharedSnapshotPassword() bool { + if o != nil && o.SharedSnapshotPassword.IsSet() { + return true + } + + return false +} + +// SetSharedSnapshotPassword gets a reference to the given NullableString and assigns it to the SharedSnapshotPassword field. +func (o *InstanceCreateOptions) SetSharedSnapshotPassword(v string) { + o.SharedSnapshotPassword.Set(&v) +} +// SetSharedSnapshotPasswordNil sets the value for SharedSnapshotPassword to be an explicit nil +func (o *InstanceCreateOptions) SetSharedSnapshotPasswordNil() { + o.SharedSnapshotPassword.Set(nil) +} + +// UnsetSharedSnapshotPassword ensures that no value is present for SharedSnapshotPassword, not even an explicit nil +func (o *InstanceCreateOptions) UnsetSharedSnapshotPassword() { + o.SharedSnapshotPassword.Unset() +} + // GetName returns the Name field value if set, zero value otherwise (both if not set or set to explicit null). func (o *InstanceCreateOptions) GetName() string { if o == nil || IsNil(o.Name.Get()) { @@ -425,46 +513,46 @@ func (o *InstanceCreateOptions) UnsetEncrypt() { o.Encrypt.Unset() } -// GetOverrideWifiMAC returns the OverrideWifiMAC field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *InstanceCreateOptions) GetOverrideWifiMAC() string { - if o == nil || IsNil(o.OverrideWifiMAC.Get()) { +// GetWifiMac returns the WifiMac field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *InstanceCreateOptions) GetWifiMac() string { + if o == nil || IsNil(o.WifiMac.Get()) { var ret string return ret } - return *o.OverrideWifiMAC.Get() + return *o.WifiMac.Get() } -// GetOverrideWifiMACOk returns a tuple with the OverrideWifiMAC field value if set, nil otherwise +// GetWifiMacOk returns a tuple with the WifiMac field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *InstanceCreateOptions) GetOverrideWifiMACOk() (*string, bool) { +func (o *InstanceCreateOptions) GetWifiMacOk() (*string, bool) { if o == nil { return nil, false } - return o.OverrideWifiMAC.Get(), o.OverrideWifiMAC.IsSet() + return o.WifiMac.Get(), o.WifiMac.IsSet() } -// HasOverrideWifiMAC returns a boolean if a field has been set. -func (o *InstanceCreateOptions) HasOverrideWifiMAC() bool { - if o != nil && o.OverrideWifiMAC.IsSet() { +// HasWifiMac returns a boolean if a field has been set. +func (o *InstanceCreateOptions) HasWifiMac() bool { + if o != nil && o.WifiMac.IsSet() { return true } return false } -// SetOverrideWifiMAC gets a reference to the given NullableString and assigns it to the OverrideWifiMAC field. -func (o *InstanceCreateOptions) SetOverrideWifiMAC(v string) { - o.OverrideWifiMAC.Set(&v) +// SetWifiMac gets a reference to the given NullableString and assigns it to the WifiMac field. +func (o *InstanceCreateOptions) SetWifiMac(v string) { + o.WifiMac.Set(&v) } -// SetOverrideWifiMACNil sets the value for OverrideWifiMAC to be an explicit nil -func (o *InstanceCreateOptions) SetOverrideWifiMACNil() { - o.OverrideWifiMAC.Set(nil) +// SetWifiMacNil sets the value for WifiMac to be an explicit nil +func (o *InstanceCreateOptions) SetWifiMacNil() { + o.WifiMac.Set(nil) } -// UnsetOverrideWifiMAC ensures that no value is present for OverrideWifiMAC, not even an explicit nil -func (o *InstanceCreateOptions) UnsetOverrideWifiMAC() { - o.OverrideWifiMAC.Unset() +// UnsetWifiMac ensures that no value is present for WifiMac, not even an explicit nil +func (o *InstanceCreateOptions) UnsetWifiMac() { + o.WifiMac.Unset() } // GetVolume returns the Volume field value if set, zero value otherwise. @@ -615,6 +703,12 @@ func (o InstanceCreateOptions) MarshalJSON() ([]byte, error) { func (o InstanceCreateOptions) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} + if o.SharedSnapshot.IsSet() { + toSerialize["sharedSnapshot"] = o.SharedSnapshot.Get() + } + if o.SharedSnapshotPassword.IsSet() { + toSerialize["sharedSnapshotPassword"] = o.SharedSnapshotPassword.Get() + } if o.Name.IsSet() { toSerialize["name"] = o.Name.Get() } @@ -639,8 +733,8 @@ func (o InstanceCreateOptions) ToMap() (map[string]interface{}, error) { if o.Encrypt.IsSet() { toSerialize["encrypt"] = o.Encrypt.Get() } - if o.OverrideWifiMAC.IsSet() { - toSerialize["overrideWifiMAC"] = o.OverrideWifiMAC.Get() + if o.WifiMac.IsSet() { + toSerialize["wifiMac"] = o.WifiMac.Get() } if !IsNil(o.Volume) { toSerialize["volume"] = o.Volume diff --git a/model_instance_input.go b/model_instance_input.go index 62415dac..c8b7bccb 100644 --- a/model_instance_input.go +++ b/model_instance_input.go @@ -3,7 +3,7 @@ Corellium API REST API to manage your virtual devices. -API version: 6.1.0-20784 +API version: 7.0.0-25053 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_instance_netdump_state.go b/model_instance_netdump_state.go index dbf5d1b8..7dcb4001 100644 --- a/model_instance_netdump_state.go +++ b/model_instance_netdump_state.go @@ -3,7 +3,7 @@ Corellium API REST API to manage your virtual devices. -API version: 6.1.0-20784 +API version: 7.0.0-25053 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_instance_netmon_state.go b/model_instance_netmon_state.go index 08f458ba..d489b307 100644 --- a/model_instance_netmon_state.go +++ b/model_instance_netmon_state.go @@ -3,7 +3,7 @@ Corellium API REST API to manage your virtual devices. -API version: 6.1.0-20784 +API version: 7.0.0-25053 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_instance_return.go b/model_instance_return.go index 4dbaf41c..3093dd1c 100644 --- a/model_instance_return.go +++ b/model_instance_return.go @@ -3,7 +3,7 @@ Corellium API REST API to manage your virtual devices. -API version: 6.1.0-20784 +API version: 7.0.0-25053 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_instance_services.go b/model_instance_services.go index 1f108235..a80666f6 100644 --- a/model_instance_services.go +++ b/model_instance_services.go @@ -3,7 +3,7 @@ Corellium API REST API to manage your virtual devices. -API version: 6.1.0-20784 +API version: 7.0.0-25053 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_instance_start_options.go b/model_instance_start_options.go index 498cfdb9..658af7c3 100644 --- a/model_instance_start_options.go +++ b/model_instance_start_options.go @@ -3,7 +3,7 @@ Corellium API REST API to manage your virtual devices. -API version: 6.1.0-20784 +API version: 7.0.0-25053 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_instance_state.go b/model_instance_state.go index f993599f..83b250e8 100644 --- a/model_instance_state.go +++ b/model_instance_state.go @@ -3,7 +3,7 @@ Corellium API REST API to manage your virtual devices. -API version: 6.1.0-20784 +API version: 7.0.0-25053 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_instance_stop_options.go b/model_instance_stop_options.go index 904c163b..b3891480 100644 --- a/model_instance_stop_options.go +++ b/model_instance_stop_options.go @@ -3,7 +3,7 @@ Corellium API REST API to manage your virtual devices. -API version: 6.1.0-20784 +API version: 7.0.0-25053 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_instance_upgrade_body.go b/model_instance_upgrade_body.go index 5f79cb39..3fe00b93 100644 --- a/model_instance_upgrade_body.go +++ b/model_instance_upgrade_body.go @@ -3,7 +3,7 @@ Corellium API REST API to manage your virtual devices. -API version: 6.1.0-20784 +API version: 7.0.0-25053 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_invitation.go b/model_invitation.go index fd4b18df..65731d83 100644 --- a/model_invitation.go +++ b/model_invitation.go @@ -3,7 +3,7 @@ Corellium API REST API to manage your virtual devices. -API version: 6.1.0-20784 +API version: 7.0.0-25053 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_invite_revoke_params.go b/model_invite_revoke_params.go index 2388d80a..19bca617 100644 --- a/model_invite_revoke_params.go +++ b/model_invite_revoke_params.go @@ -3,7 +3,7 @@ Corellium API REST API to manage your virtual devices. -API version: 6.1.0-20784 +API version: 7.0.0-25053 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_invite_revoke_params_ids.go b/model_invite_revoke_params_ids.go index 2cb76007..84307dfa 100644 --- a/model_invite_revoke_params_ids.go +++ b/model_invite_revoke_params_ids.go @@ -3,7 +3,7 @@ Corellium API REST API to manage your virtual devices. -API version: 6.1.0-20784 +API version: 7.0.0-25053 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_kcrange.go b/model_kcrange.go index ca638529..25d0730c 100644 --- a/model_kcrange.go +++ b/model_kcrange.go @@ -3,7 +3,7 @@ Corellium API REST API to manage your virtual devices. -API version: 6.1.0-20784 +API version: 7.0.0-25053 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_kernel_task.go b/model_kernel_task.go index efd9dafa..4204444f 100644 --- a/model_kernel_task.go +++ b/model_kernel_task.go @@ -3,7 +3,7 @@ Corellium API REST API to manage your virtual devices. -API version: 6.1.0-20784 +API version: 7.0.0-25053 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_kernel_thread.go b/model_kernel_thread.go index f9ab5c0d..ade7267e 100644 --- a/model_kernel_thread.go +++ b/model_kernel_thread.go @@ -3,7 +3,7 @@ Corellium API REST API to manage your virtual devices. -API version: 6.1.0-20784 +API version: 7.0.0-25053 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_logging.go b/model_logging.go index 4ee429a2..e6b8e5ad 100644 --- a/model_logging.go +++ b/model_logging.go @@ -3,7 +3,7 @@ Corellium API REST API to manage your virtual devices. -API version: 6.1.0-20784 +API version: 7.0.0-25053 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_maintenance.go b/model_maintenance.go index e95acb8b..64961f60 100644 --- a/model_maintenance.go +++ b/model_maintenance.go @@ -3,7 +3,7 @@ Corellium API REST API to manage your virtual devices. -API version: 6.1.0-20784 +API version: 7.0.0-25053 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_media_play_body.go b/model_media_play_body.go index 0471b2ed..e3503120 100644 --- a/model_media_play_body.go +++ b/model_media_play_body.go @@ -3,7 +3,7 @@ Corellium API REST API to manage your virtual devices. -API version: 6.1.0-20784 +API version: 7.0.0-25053 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_metered_subscription_usage.go b/model_metered_subscription_usage.go index b64a3e55..ce6cb318 100644 --- a/model_metered_subscription_usage.go +++ b/model_metered_subscription_usage.go @@ -3,7 +3,7 @@ Corellium API REST API to manage your virtual devices. -API version: 6.1.0-20784 +API version: 7.0.0-25053 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_model.go b/model_model.go index 966b8fb7..56a0846b 100644 --- a/model_model.go +++ b/model_model.go @@ -3,7 +3,7 @@ Corellium API REST API to manage your virtual devices. -API version: 6.1.0-20784 +API version: 7.0.0-25053 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_model_software.go b/model_model_software.go index b0786386..50ac5fc8 100644 --- a/model_model_software.go +++ b/model_model_software.go @@ -3,7 +3,7 @@ Corellium API REST API to manage your virtual devices. -API version: 6.1.0-20784 +API version: 7.0.0-25053 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_netdump_filter.go b/model_netdump_filter.go index 24815ddd..c586ba8e 100644 --- a/model_netdump_filter.go +++ b/model_netdump_filter.go @@ -3,7 +3,7 @@ Corellium API REST API to manage your virtual devices. -API version: 6.1.0-20784 +API version: 7.0.0-25053 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_network_connection.go b/model_network_connection.go new file mode 100644 index 00000000..146c7c78 --- /dev/null +++ b/model_network_connection.go @@ -0,0 +1,343 @@ +/* +Corellium API + +REST API to manage your virtual devices. + +API version: 7.0.0-25053 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package corellium + +import ( + "encoding/json" +) + +// checks if the NetworkConnection type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &NetworkConnection{} + +// NetworkConnection +type NetworkConnection struct { + // UUIDv4 + Identifier string `json:"identifier"` + // User specified name for this network connection. e.g. My Network Connection + Name string `json:"name"` + // An object containing network connection configuration data. Will vary based on network provider type. + Config map[string]interface{} `json:"config,omitempty"` + // One of the registered [network provider types](#get-/v1/network/providers) + Provider NullableString `json:"provider,omitempty"` + // Created Date in ISO-8601 format e.g. 2022-05-06T02:39:23.000Z + CreatedAt string `json:"createdAt"` + // Updated Date in ISO-8601 format e.g. 2022-05-06T02:39:23.000Z + UpdatedAt string `json:"updatedAt"` + // UUIDv4 of the user who created this record. + CreatedBy string `json:"createdBy"` + // UUIDv4 of the user who last updated this record. + UpdatedBy string `json:"updatedBy"` +} + +// NewNetworkConnection instantiates a new NetworkConnection object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewNetworkConnection(identifier string, name string, createdAt string, updatedAt string, createdBy string, updatedBy string) *NetworkConnection { + this := NetworkConnection{} + this.Identifier = identifier + this.Name = name + this.CreatedAt = createdAt + this.UpdatedAt = updatedAt + this.CreatedBy = createdBy + this.UpdatedBy = updatedBy + return &this +} + +// NewNetworkConnectionWithDefaults instantiates a new NetworkConnection object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewNetworkConnectionWithDefaults() *NetworkConnection { + this := NetworkConnection{} + return &this +} + +// GetIdentifier returns the Identifier field value +func (o *NetworkConnection) GetIdentifier() string { + if o == nil { + var ret string + return ret + } + + return o.Identifier +} + +// GetIdentifierOk returns a tuple with the Identifier field value +// and a boolean to check if the value has been set. +func (o *NetworkConnection) GetIdentifierOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Identifier, true +} + +// SetIdentifier sets field value +func (o *NetworkConnection) SetIdentifier(v string) { + o.Identifier = v +} + +// GetName returns the Name field value +func (o *NetworkConnection) GetName() string { + if o == nil { + var ret string + return ret + } + + return o.Name +} + +// GetNameOk returns a tuple with the Name field value +// and a boolean to check if the value has been set. +func (o *NetworkConnection) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *NetworkConnection) SetName(v string) { + o.Name = v +} + +// GetConfig returns the Config field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *NetworkConnection) GetConfig() map[string]interface{} { + if o == nil { + var ret map[string]interface{} + return ret + } + return o.Config +} + +// GetConfigOk returns a tuple with the Config field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *NetworkConnection) GetConfigOk() (map[string]interface{}, bool) { + if o == nil || IsNil(o.Config) { + return map[string]interface{}{}, false + } + return o.Config, true +} + +// HasConfig returns a boolean if a field has been set. +func (o *NetworkConnection) HasConfig() bool { + if o != nil && IsNil(o.Config) { + return true + } + + return false +} + +// SetConfig gets a reference to the given map[string]interface{} and assigns it to the Config field. +func (o *NetworkConnection) SetConfig(v map[string]interface{}) { + o.Config = v +} + +// GetProvider returns the Provider field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *NetworkConnection) GetProvider() string { + if o == nil || IsNil(o.Provider.Get()) { + var ret string + return ret + } + return *o.Provider.Get() +} + +// GetProviderOk returns a tuple with the Provider field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *NetworkConnection) GetProviderOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Provider.Get(), o.Provider.IsSet() +} + +// HasProvider returns a boolean if a field has been set. +func (o *NetworkConnection) HasProvider() bool { + if o != nil && o.Provider.IsSet() { + return true + } + + return false +} + +// SetProvider gets a reference to the given NullableString and assigns it to the Provider field. +func (o *NetworkConnection) SetProvider(v string) { + o.Provider.Set(&v) +} +// SetProviderNil sets the value for Provider to be an explicit nil +func (o *NetworkConnection) SetProviderNil() { + o.Provider.Set(nil) +} + +// UnsetProvider ensures that no value is present for Provider, not even an explicit nil +func (o *NetworkConnection) UnsetProvider() { + o.Provider.Unset() +} + +// GetCreatedAt returns the CreatedAt field value +func (o *NetworkConnection) GetCreatedAt() string { + if o == nil { + var ret string + return ret + } + + return o.CreatedAt +} + +// GetCreatedAtOk returns a tuple with the CreatedAt field value +// and a boolean to check if the value has been set. +func (o *NetworkConnection) GetCreatedAtOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.CreatedAt, true +} + +// SetCreatedAt sets field value +func (o *NetworkConnection) SetCreatedAt(v string) { + o.CreatedAt = v +} + +// GetUpdatedAt returns the UpdatedAt field value +func (o *NetworkConnection) GetUpdatedAt() string { + if o == nil { + var ret string + return ret + } + + return o.UpdatedAt +} + +// GetUpdatedAtOk returns a tuple with the UpdatedAt field value +// and a boolean to check if the value has been set. +func (o *NetworkConnection) GetUpdatedAtOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.UpdatedAt, true +} + +// SetUpdatedAt sets field value +func (o *NetworkConnection) SetUpdatedAt(v string) { + o.UpdatedAt = v +} + +// GetCreatedBy returns the CreatedBy field value +func (o *NetworkConnection) GetCreatedBy() string { + if o == nil { + var ret string + return ret + } + + return o.CreatedBy +} + +// GetCreatedByOk returns a tuple with the CreatedBy field value +// and a boolean to check if the value has been set. +func (o *NetworkConnection) GetCreatedByOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.CreatedBy, true +} + +// SetCreatedBy sets field value +func (o *NetworkConnection) SetCreatedBy(v string) { + o.CreatedBy = v +} + +// GetUpdatedBy returns the UpdatedBy field value +func (o *NetworkConnection) GetUpdatedBy() string { + if o == nil { + var ret string + return ret + } + + return o.UpdatedBy +} + +// GetUpdatedByOk returns a tuple with the UpdatedBy field value +// and a boolean to check if the value has been set. +func (o *NetworkConnection) GetUpdatedByOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.UpdatedBy, true +} + +// SetUpdatedBy sets field value +func (o *NetworkConnection) SetUpdatedBy(v string) { + o.UpdatedBy = v +} + +func (o NetworkConnection) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o NetworkConnection) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["identifier"] = o.Identifier + toSerialize["name"] = o.Name + if o.Config != nil { + toSerialize["config"] = o.Config + } + if o.Provider.IsSet() { + toSerialize["provider"] = o.Provider.Get() + } + toSerialize["createdAt"] = o.CreatedAt + toSerialize["updatedAt"] = o.UpdatedAt + toSerialize["createdBy"] = o.CreatedBy + toSerialize["updatedBy"] = o.UpdatedBy + return toSerialize, nil +} + +type NullableNetworkConnection struct { + value *NetworkConnection + isSet bool +} + +func (v NullableNetworkConnection) Get() *NetworkConnection { + return v.value +} + +func (v *NullableNetworkConnection) Set(val *NetworkConnection) { + v.value = val + v.isSet = true +} + +func (v NullableNetworkConnection) IsSet() bool { + return v.isSet +} + +func (v *NullableNetworkConnection) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableNetworkConnection(val *NetworkConnection) *NullableNetworkConnection { + return &NullableNetworkConnection{value: val, isSet: true} +} + +func (v NullableNetworkConnection) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableNetworkConnection) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_network_connection_offset_pagination_result.go b/model_network_connection_offset_pagination_result.go new file mode 100644 index 00000000..ae3ea06d --- /dev/null +++ b/model_network_connection_offset_pagination_result.go @@ -0,0 +1,230 @@ +/* +Corellium API + +REST API to manage your virtual devices. + +API version: 7.0.0-25053 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package corellium + +import ( + "encoding/json" +) + +// checks if the NetworkConnectionOffsetPaginationResult type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &NetworkConnectionOffsetPaginationResult{} + +// NetworkConnectionOffsetPaginationResult Network Connection Offset Pagination Result +type NetworkConnectionOffsetPaginationResult struct { + // Total number of items. + Total float32 `json:"total"` + // The number of items returned in this result. + Count float32 `json:"count"` + // The maximum number of items that could be returned for this result. + Limit float32 `json:"limit"` + // That starting item 0-indexed. + Offset float32 `json:"offset"` + // Array of network connections associated with this domain. + Results []NetworkConnection `json:"results"` +} + +// NewNetworkConnectionOffsetPaginationResult instantiates a new NetworkConnectionOffsetPaginationResult object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewNetworkConnectionOffsetPaginationResult(total float32, count float32, limit float32, offset float32, results []NetworkConnection) *NetworkConnectionOffsetPaginationResult { + this := NetworkConnectionOffsetPaginationResult{} + this.Total = total + this.Count = count + this.Limit = limit + this.Offset = offset + this.Results = results + return &this +} + +// NewNetworkConnectionOffsetPaginationResultWithDefaults instantiates a new NetworkConnectionOffsetPaginationResult object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewNetworkConnectionOffsetPaginationResultWithDefaults() *NetworkConnectionOffsetPaginationResult { + this := NetworkConnectionOffsetPaginationResult{} + return &this +} + +// GetTotal returns the Total field value +func (o *NetworkConnectionOffsetPaginationResult) GetTotal() float32 { + if o == nil { + var ret float32 + return ret + } + + return o.Total +} + +// GetTotalOk returns a tuple with the Total field value +// and a boolean to check if the value has been set. +func (o *NetworkConnectionOffsetPaginationResult) GetTotalOk() (*float32, bool) { + if o == nil { + return nil, false + } + return &o.Total, true +} + +// SetTotal sets field value +func (o *NetworkConnectionOffsetPaginationResult) SetTotal(v float32) { + o.Total = v +} + +// GetCount returns the Count field value +func (o *NetworkConnectionOffsetPaginationResult) GetCount() float32 { + if o == nil { + var ret float32 + return ret + } + + return o.Count +} + +// GetCountOk returns a tuple with the Count field value +// and a boolean to check if the value has been set. +func (o *NetworkConnectionOffsetPaginationResult) GetCountOk() (*float32, bool) { + if o == nil { + return nil, false + } + return &o.Count, true +} + +// SetCount sets field value +func (o *NetworkConnectionOffsetPaginationResult) SetCount(v float32) { + o.Count = v +} + +// GetLimit returns the Limit field value +func (o *NetworkConnectionOffsetPaginationResult) GetLimit() float32 { + if o == nil { + var ret float32 + return ret + } + + return o.Limit +} + +// GetLimitOk returns a tuple with the Limit field value +// and a boolean to check if the value has been set. +func (o *NetworkConnectionOffsetPaginationResult) GetLimitOk() (*float32, bool) { + if o == nil { + return nil, false + } + return &o.Limit, true +} + +// SetLimit sets field value +func (o *NetworkConnectionOffsetPaginationResult) SetLimit(v float32) { + o.Limit = v +} + +// GetOffset returns the Offset field value +func (o *NetworkConnectionOffsetPaginationResult) GetOffset() float32 { + if o == nil { + var ret float32 + return ret + } + + return o.Offset +} + +// GetOffsetOk returns a tuple with the Offset field value +// and a boolean to check if the value has been set. +func (o *NetworkConnectionOffsetPaginationResult) GetOffsetOk() (*float32, bool) { + if o == nil { + return nil, false + } + return &o.Offset, true +} + +// SetOffset sets field value +func (o *NetworkConnectionOffsetPaginationResult) SetOffset(v float32) { + o.Offset = v +} + +// GetResults returns the Results field value +func (o *NetworkConnectionOffsetPaginationResult) GetResults() []NetworkConnection { + if o == nil { + var ret []NetworkConnection + return ret + } + + return o.Results +} + +// GetResultsOk returns a tuple with the Results field value +// and a boolean to check if the value has been set. +func (o *NetworkConnectionOffsetPaginationResult) GetResultsOk() ([]NetworkConnection, bool) { + if o == nil { + return nil, false + } + return o.Results, true +} + +// SetResults sets field value +func (o *NetworkConnectionOffsetPaginationResult) SetResults(v []NetworkConnection) { + o.Results = v +} + +func (o NetworkConnectionOffsetPaginationResult) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o NetworkConnectionOffsetPaginationResult) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["total"] = o.Total + toSerialize["count"] = o.Count + toSerialize["limit"] = o.Limit + toSerialize["offset"] = o.Offset + toSerialize["results"] = o.Results + return toSerialize, nil +} + +type NullableNetworkConnectionOffsetPaginationResult struct { + value *NetworkConnectionOffsetPaginationResult + isSet bool +} + +func (v NullableNetworkConnectionOffsetPaginationResult) Get() *NetworkConnectionOffsetPaginationResult { + return v.value +} + +func (v *NullableNetworkConnectionOffsetPaginationResult) Set(val *NetworkConnectionOffsetPaginationResult) { + v.value = val + v.isSet = true +} + +func (v NullableNetworkConnectionOffsetPaginationResult) IsSet() bool { + return v.isSet +} + +func (v *NullableNetworkConnectionOffsetPaginationResult) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableNetworkConnectionOffsetPaginationResult(val *NetworkConnectionOffsetPaginationResult) *NullableNetworkConnectionOffsetPaginationResult { + return &NullableNetworkConnectionOffsetPaginationResult{value: val, isSet: true} +} + +func (v NullableNetworkConnectionOffsetPaginationResult) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableNetworkConnectionOffsetPaginationResult) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_network_connection_provider.go b/model_network_connection_provider.go new file mode 100644 index 00000000..adb820c6 --- /dev/null +++ b/model_network_connection_provider.go @@ -0,0 +1,146 @@ +/* +Corellium API + +REST API to manage your virtual devices. + +API version: 7.0.0-25053 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package corellium + +import ( + "encoding/json" +) + +// checks if the NetworkConnectionProvider type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &NetworkConnectionProvider{} + +// NetworkConnectionProvider +type NetworkConnectionProvider struct { + // Human friendly name for Network Connection Provider. + Name string `json:"name"` + // Internal identifier for Network Connection Provider. + Type string `json:"type"` +} + +// NewNetworkConnectionProvider instantiates a new NetworkConnectionProvider object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewNetworkConnectionProvider(name string, type_ string) *NetworkConnectionProvider { + this := NetworkConnectionProvider{} + this.Name = name + this.Type = type_ + return &this +} + +// NewNetworkConnectionProviderWithDefaults instantiates a new NetworkConnectionProvider object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewNetworkConnectionProviderWithDefaults() *NetworkConnectionProvider { + this := NetworkConnectionProvider{} + return &this +} + +// GetName returns the Name field value +func (o *NetworkConnectionProvider) GetName() string { + if o == nil { + var ret string + return ret + } + + return o.Name +} + +// GetNameOk returns a tuple with the Name field value +// and a boolean to check if the value has been set. +func (o *NetworkConnectionProvider) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *NetworkConnectionProvider) SetName(v string) { + o.Name = v +} + +// GetType returns the Type field value +func (o *NetworkConnectionProvider) GetType() string { + if o == nil { + var ret string + return ret + } + + return o.Type +} + +// GetTypeOk returns a tuple with the Type field value +// and a boolean to check if the value has been set. +func (o *NetworkConnectionProvider) GetTypeOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Type, true +} + +// SetType sets field value +func (o *NetworkConnectionProvider) SetType(v string) { + o.Type = v +} + +func (o NetworkConnectionProvider) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o NetworkConnectionProvider) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["name"] = o.Name + toSerialize["type"] = o.Type + return toSerialize, nil +} + +type NullableNetworkConnectionProvider struct { + value *NetworkConnectionProvider + isSet bool +} + +func (v NullableNetworkConnectionProvider) Get() *NetworkConnectionProvider { + return v.value +} + +func (v *NullableNetworkConnectionProvider) Set(val *NetworkConnectionProvider) { + v.value = val + v.isSet = true +} + +func (v NullableNetworkConnectionProvider) IsSet() bool { + return v.isSet +} + +func (v *NullableNetworkConnectionProvider) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableNetworkConnectionProvider(val *NetworkConnectionProvider) *NullableNetworkConnectionProvider { + return &NullableNetworkConnectionProvider{value: val, isSet: true} +} + +func (v NullableNetworkConnectionProvider) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableNetworkConnectionProvider) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_network_connection_provider_offset_pagination_result.go b/model_network_connection_provider_offset_pagination_result.go new file mode 100644 index 00000000..6ed3aa0b --- /dev/null +++ b/model_network_connection_provider_offset_pagination_result.go @@ -0,0 +1,230 @@ +/* +Corellium API + +REST API to manage your virtual devices. + +API version: 7.0.0-25053 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package corellium + +import ( + "encoding/json" +) + +// checks if the NetworkConnectionProviderOffsetPaginationResult type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &NetworkConnectionProviderOffsetPaginationResult{} + +// NetworkConnectionProviderOffsetPaginationResult Network Connection Provider Offset Pagination Result +type NetworkConnectionProviderOffsetPaginationResult struct { + // Total number of items. + Total float32 `json:"total"` + // The number of items returned in this result. + Count float32 `json:"count"` + // The maximum number of items that could be returned for this result. + Limit float32 `json:"limit"` + // That starting item 0-indexed. + Offset float32 `json:"offset"` + // Array of network connection providers. + Results []NetworkConnectionProvider `json:"results"` +} + +// NewNetworkConnectionProviderOffsetPaginationResult instantiates a new NetworkConnectionProviderOffsetPaginationResult object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewNetworkConnectionProviderOffsetPaginationResult(total float32, count float32, limit float32, offset float32, results []NetworkConnectionProvider) *NetworkConnectionProviderOffsetPaginationResult { + this := NetworkConnectionProviderOffsetPaginationResult{} + this.Total = total + this.Count = count + this.Limit = limit + this.Offset = offset + this.Results = results + return &this +} + +// NewNetworkConnectionProviderOffsetPaginationResultWithDefaults instantiates a new NetworkConnectionProviderOffsetPaginationResult object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewNetworkConnectionProviderOffsetPaginationResultWithDefaults() *NetworkConnectionProviderOffsetPaginationResult { + this := NetworkConnectionProviderOffsetPaginationResult{} + return &this +} + +// GetTotal returns the Total field value +func (o *NetworkConnectionProviderOffsetPaginationResult) GetTotal() float32 { + if o == nil { + var ret float32 + return ret + } + + return o.Total +} + +// GetTotalOk returns a tuple with the Total field value +// and a boolean to check if the value has been set. +func (o *NetworkConnectionProviderOffsetPaginationResult) GetTotalOk() (*float32, bool) { + if o == nil { + return nil, false + } + return &o.Total, true +} + +// SetTotal sets field value +func (o *NetworkConnectionProviderOffsetPaginationResult) SetTotal(v float32) { + o.Total = v +} + +// GetCount returns the Count field value +func (o *NetworkConnectionProviderOffsetPaginationResult) GetCount() float32 { + if o == nil { + var ret float32 + return ret + } + + return o.Count +} + +// GetCountOk returns a tuple with the Count field value +// and a boolean to check if the value has been set. +func (o *NetworkConnectionProviderOffsetPaginationResult) GetCountOk() (*float32, bool) { + if o == nil { + return nil, false + } + return &o.Count, true +} + +// SetCount sets field value +func (o *NetworkConnectionProviderOffsetPaginationResult) SetCount(v float32) { + o.Count = v +} + +// GetLimit returns the Limit field value +func (o *NetworkConnectionProviderOffsetPaginationResult) GetLimit() float32 { + if o == nil { + var ret float32 + return ret + } + + return o.Limit +} + +// GetLimitOk returns a tuple with the Limit field value +// and a boolean to check if the value has been set. +func (o *NetworkConnectionProviderOffsetPaginationResult) GetLimitOk() (*float32, bool) { + if o == nil { + return nil, false + } + return &o.Limit, true +} + +// SetLimit sets field value +func (o *NetworkConnectionProviderOffsetPaginationResult) SetLimit(v float32) { + o.Limit = v +} + +// GetOffset returns the Offset field value +func (o *NetworkConnectionProviderOffsetPaginationResult) GetOffset() float32 { + if o == nil { + var ret float32 + return ret + } + + return o.Offset +} + +// GetOffsetOk returns a tuple with the Offset field value +// and a boolean to check if the value has been set. +func (o *NetworkConnectionProviderOffsetPaginationResult) GetOffsetOk() (*float32, bool) { + if o == nil { + return nil, false + } + return &o.Offset, true +} + +// SetOffset sets field value +func (o *NetworkConnectionProviderOffsetPaginationResult) SetOffset(v float32) { + o.Offset = v +} + +// GetResults returns the Results field value +func (o *NetworkConnectionProviderOffsetPaginationResult) GetResults() []NetworkConnectionProvider { + if o == nil { + var ret []NetworkConnectionProvider + return ret + } + + return o.Results +} + +// GetResultsOk returns a tuple with the Results field value +// and a boolean to check if the value has been set. +func (o *NetworkConnectionProviderOffsetPaginationResult) GetResultsOk() ([]NetworkConnectionProvider, bool) { + if o == nil { + return nil, false + } + return o.Results, true +} + +// SetResults sets field value +func (o *NetworkConnectionProviderOffsetPaginationResult) SetResults(v []NetworkConnectionProvider) { + o.Results = v +} + +func (o NetworkConnectionProviderOffsetPaginationResult) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o NetworkConnectionProviderOffsetPaginationResult) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["total"] = o.Total + toSerialize["count"] = o.Count + toSerialize["limit"] = o.Limit + toSerialize["offset"] = o.Offset + toSerialize["results"] = o.Results + return toSerialize, nil +} + +type NullableNetworkConnectionProviderOffsetPaginationResult struct { + value *NetworkConnectionProviderOffsetPaginationResult + isSet bool +} + +func (v NullableNetworkConnectionProviderOffsetPaginationResult) Get() *NetworkConnectionProviderOffsetPaginationResult { + return v.value +} + +func (v *NullableNetworkConnectionProviderOffsetPaginationResult) Set(val *NetworkConnectionProviderOffsetPaginationResult) { + v.value = val + v.isSet = true +} + +func (v NullableNetworkConnectionProviderOffsetPaginationResult) IsSet() bool { + return v.isSet +} + +func (v *NullableNetworkConnectionProviderOffsetPaginationResult) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableNetworkConnectionProviderOffsetPaginationResult(val *NetworkConnectionProviderOffsetPaginationResult) *NullableNetworkConnectionProviderOffsetPaginationResult { + return &NullableNetworkConnectionProviderOffsetPaginationResult{value: val, isSet: true} +} + +func (v NullableNetworkConnectionProviderOffsetPaginationResult) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableNetworkConnectionProviderOffsetPaginationResult) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_open_id_config.go b/model_open_id_config.go index bd476f41..67814412 100644 --- a/model_open_id_config.go +++ b/model_open_id_config.go @@ -3,7 +3,7 @@ Corellium API REST API to manage your virtual devices. -API version: 6.1.0-20784 +API version: 7.0.0-25053 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_password_change_body.go b/model_password_change_body.go index c8e8627b..bda73c5d 100644 --- a/model_password_change_body.go +++ b/model_password_change_body.go @@ -3,7 +3,7 @@ Corellium API REST API to manage your virtual devices. -API version: 6.1.0-20784 +API version: 7.0.0-25053 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_password_reset_body.go b/model_password_reset_body.go index b7c192b4..8c1494b8 100644 --- a/model_password_reset_body.go +++ b/model_password_reset_body.go @@ -3,7 +3,7 @@ Corellium API REST API to manage your virtual devices. -API version: 6.1.0-20784 +API version: 7.0.0-25053 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_patch_instance_options.go b/model_patch_instance_options.go index 04fb9180..eb5971ce 100644 --- a/model_patch_instance_options.go +++ b/model_patch_instance_options.go @@ -3,7 +3,7 @@ Corellium API REST API to manage your virtual devices. -API version: 6.1.0-20784 +API version: 7.0.0-25053 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_peripherals_data.go b/model_peripherals_data.go index e8900788..a580f593 100644 --- a/model_peripherals_data.go +++ b/model_peripherals_data.go @@ -3,7 +3,7 @@ Corellium API REST API to manage your virtual devices. -API version: 6.1.0-20784 +API version: 7.0.0-25053 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_plan.go b/model_plan.go index f2991396..d84555d4 100644 --- a/model_plan.go +++ b/model_plan.go @@ -3,7 +3,7 @@ Corellium API REST API to manage your virtual devices. -API version: 6.1.0-20784 +API version: 7.0.0-25053 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_post_share_snapshot_request_payload.go b/model_post_share_snapshot_request_payload.go new file mode 100644 index 00000000..bde9a3a9 --- /dev/null +++ b/model_post_share_snapshot_request_payload.go @@ -0,0 +1,165 @@ +/* +Corellium API + +REST API to manage your virtual devices. + +API version: 7.0.0-25053 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package corellium + +import ( + "encoding/json" +) + +// checks if the PostShareSnapshotRequestPayload type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &PostShareSnapshotRequestPayload{} + +// PostShareSnapshotRequestPayload +type PostShareSnapshotRequestPayload struct { + // + SharingType string `json:"sharingType"` + // Password for passwordPublicLink. + Password NullableString `json:"password,omitempty"` +} + +// NewPostShareSnapshotRequestPayload instantiates a new PostShareSnapshotRequestPayload object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewPostShareSnapshotRequestPayload(sharingType string) *PostShareSnapshotRequestPayload { + this := PostShareSnapshotRequestPayload{} + this.SharingType = sharingType + return &this +} + +// NewPostShareSnapshotRequestPayloadWithDefaults instantiates a new PostShareSnapshotRequestPayload object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewPostShareSnapshotRequestPayloadWithDefaults() *PostShareSnapshotRequestPayload { + this := PostShareSnapshotRequestPayload{} + return &this +} + +// GetSharingType returns the SharingType field value +func (o *PostShareSnapshotRequestPayload) GetSharingType() string { + if o == nil { + var ret string + return ret + } + + return o.SharingType +} + +// GetSharingTypeOk returns a tuple with the SharingType field value +// and a boolean to check if the value has been set. +func (o *PostShareSnapshotRequestPayload) GetSharingTypeOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.SharingType, true +} + +// SetSharingType sets field value +func (o *PostShareSnapshotRequestPayload) SetSharingType(v string) { + o.SharingType = v +} + +// GetPassword returns the Password field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PostShareSnapshotRequestPayload) GetPassword() string { + if o == nil || IsNil(o.Password.Get()) { + var ret string + return ret + } + return *o.Password.Get() +} + +// GetPasswordOk returns a tuple with the Password field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *PostShareSnapshotRequestPayload) GetPasswordOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Password.Get(), o.Password.IsSet() +} + +// HasPassword returns a boolean if a field has been set. +func (o *PostShareSnapshotRequestPayload) HasPassword() bool { + if o != nil && o.Password.IsSet() { + return true + } + + return false +} + +// SetPassword gets a reference to the given NullableString and assigns it to the Password field. +func (o *PostShareSnapshotRequestPayload) SetPassword(v string) { + o.Password.Set(&v) +} +// SetPasswordNil sets the value for Password to be an explicit nil +func (o *PostShareSnapshotRequestPayload) SetPasswordNil() { + o.Password.Set(nil) +} + +// UnsetPassword ensures that no value is present for Password, not even an explicit nil +func (o *PostShareSnapshotRequestPayload) UnsetPassword() { + o.Password.Unset() +} + +func (o PostShareSnapshotRequestPayload) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o PostShareSnapshotRequestPayload) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["sharingType"] = o.SharingType + if o.Password.IsSet() { + toSerialize["password"] = o.Password.Get() + } + return toSerialize, nil +} + +type NullablePostShareSnapshotRequestPayload struct { + value *PostShareSnapshotRequestPayload + isSet bool +} + +func (v NullablePostShareSnapshotRequestPayload) Get() *PostShareSnapshotRequestPayload { + return v.value +} + +func (v *NullablePostShareSnapshotRequestPayload) Set(val *PostShareSnapshotRequestPayload) { + v.value = val + v.isSet = true +} + +func (v NullablePostShareSnapshotRequestPayload) IsSet() bool { + return v.isSet +} + +func (v *NullablePostShareSnapshotRequestPayload) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePostShareSnapshotRequestPayload(val *PostShareSnapshotRequestPayload) *NullablePostShareSnapshotRequestPayload { + return &NullablePostShareSnapshotRequestPayload{value: val, isSet: true} +} + +func (v NullablePostShareSnapshotRequestPayload) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePostShareSnapshotRequestPayload) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_project.go b/model_project.go index b61d2463..b1e79895 100644 --- a/model_project.go +++ b/model_project.go @@ -3,7 +3,7 @@ Corellium API REST API to manage your virtual devices. -API version: 6.1.0-20784 +API version: 7.0.0-25053 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_project_key.go b/model_project_key.go index 32817ba6..235ca147 100644 --- a/model_project_key.go +++ b/model_project_key.go @@ -3,7 +3,7 @@ Corellium API REST API to manage your virtual devices. -API version: 6.1.0-20784 +API version: 7.0.0-25053 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_project_quota.go b/model_project_quota.go index 8c84b15e..47fc4df7 100644 --- a/model_project_quota.go +++ b/model_project_quota.go @@ -3,7 +3,7 @@ Corellium API REST API to manage your virtual devices. -API version: 6.1.0-20784 +API version: 7.0.0-25053 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_project_settings.go b/model_project_settings.go index bb78d1e2..1cd5421a 100644 --- a/model_project_settings.go +++ b/model_project_settings.go @@ -3,7 +3,7 @@ Corellium API REST API to manage your virtual devices. -API version: 6.1.0-20784 +API version: 7.0.0-25053 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,17 +20,21 @@ var _ MappedNullable = &ProjectSettings{} // ProjectSettings type ProjectSettings struct { // - InternetAccess NullableBool `json:"internet-access,omitempty"` + InternetAccess bool `json:"internet-access"` + // UUIDv4 network connection identifier or null for no vpn connection + Connection NullableString `json:"connection,omitempty"` // - Dhcp NullableBool `json:"dhcp,omitempty"` + Dhcp bool `json:"dhcp"` } // NewProjectSettings instantiates a new ProjectSettings object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed -func NewProjectSettings() *ProjectSettings { +func NewProjectSettings(internetAccess bool, dhcp bool) *ProjectSettings { this := ProjectSettings{} + this.InternetAccess = internetAccess + this.Dhcp = dhcp return &this } @@ -42,88 +46,94 @@ func NewProjectSettingsWithDefaults() *ProjectSettings { return &this } -// GetInternetAccess returns the InternetAccess field value if set, zero value otherwise (both if not set or set to explicit null). +// GetInternetAccess returns the InternetAccess field value func (o *ProjectSettings) GetInternetAccess() bool { - if o == nil || IsNil(o.InternetAccess.Get()) { + if o == nil { var ret bool return ret } - return *o.InternetAccess.Get() + + return o.InternetAccess } -// GetInternetAccessOk returns a tuple with the InternetAccess field value if set, nil otherwise +// GetInternetAccessOk returns a tuple with the InternetAccess field value // and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *ProjectSettings) GetInternetAccessOk() (*bool, bool) { if o == nil { return nil, false } - return o.InternetAccess.Get(), o.InternetAccess.IsSet() + return &o.InternetAccess, true +} + +// SetInternetAccess sets field value +func (o *ProjectSettings) SetInternetAccess(v bool) { + o.InternetAccess = v +} + +// GetConnection returns the Connection field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *ProjectSettings) GetConnection() string { + if o == nil || IsNil(o.Connection.Get()) { + var ret string + return ret + } + return *o.Connection.Get() } -// HasInternetAccess returns a boolean if a field has been set. -func (o *ProjectSettings) HasInternetAccess() bool { - if o != nil && o.InternetAccess.IsSet() { +// GetConnectionOk returns a tuple with the Connection field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *ProjectSettings) GetConnectionOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Connection.Get(), o.Connection.IsSet() +} + +// HasConnection returns a boolean if a field has been set. +func (o *ProjectSettings) HasConnection() bool { + if o != nil && o.Connection.IsSet() { return true } return false } -// SetInternetAccess gets a reference to the given NullableBool and assigns it to the InternetAccess field. -func (o *ProjectSettings) SetInternetAccess(v bool) { - o.InternetAccess.Set(&v) +// SetConnection gets a reference to the given NullableString and assigns it to the Connection field. +func (o *ProjectSettings) SetConnection(v string) { + o.Connection.Set(&v) } -// SetInternetAccessNil sets the value for InternetAccess to be an explicit nil -func (o *ProjectSettings) SetInternetAccessNil() { - o.InternetAccess.Set(nil) +// SetConnectionNil sets the value for Connection to be an explicit nil +func (o *ProjectSettings) SetConnectionNil() { + o.Connection.Set(nil) } -// UnsetInternetAccess ensures that no value is present for InternetAccess, not even an explicit nil -func (o *ProjectSettings) UnsetInternetAccess() { - o.InternetAccess.Unset() +// UnsetConnection ensures that no value is present for Connection, not even an explicit nil +func (o *ProjectSettings) UnsetConnection() { + o.Connection.Unset() } -// GetDhcp returns the Dhcp field value if set, zero value otherwise (both if not set or set to explicit null). +// GetDhcp returns the Dhcp field value func (o *ProjectSettings) GetDhcp() bool { - if o == nil || IsNil(o.Dhcp.Get()) { + if o == nil { var ret bool return ret } - return *o.Dhcp.Get() + + return o.Dhcp } -// GetDhcpOk returns a tuple with the Dhcp field value if set, nil otherwise +// GetDhcpOk returns a tuple with the Dhcp field value // and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *ProjectSettings) GetDhcpOk() (*bool, bool) { if o == nil { return nil, false } - return o.Dhcp.Get(), o.Dhcp.IsSet() + return &o.Dhcp, true } -// HasDhcp returns a boolean if a field has been set. -func (o *ProjectSettings) HasDhcp() bool { - if o != nil && o.Dhcp.IsSet() { - return true - } - - return false -} - -// SetDhcp gets a reference to the given NullableBool and assigns it to the Dhcp field. +// SetDhcp sets field value func (o *ProjectSettings) SetDhcp(v bool) { - o.Dhcp.Set(&v) -} -// SetDhcpNil sets the value for Dhcp to be an explicit nil -func (o *ProjectSettings) SetDhcpNil() { - o.Dhcp.Set(nil) -} - -// UnsetDhcp ensures that no value is present for Dhcp, not even an explicit nil -func (o *ProjectSettings) UnsetDhcp() { - o.Dhcp.Unset() + o.Dhcp = v } func (o ProjectSettings) MarshalJSON() ([]byte, error) { @@ -136,12 +146,11 @@ func (o ProjectSettings) MarshalJSON() ([]byte, error) { func (o ProjectSettings) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - if o.InternetAccess.IsSet() { - toSerialize["internet-access"] = o.InternetAccess.Get() - } - if o.Dhcp.IsSet() { - toSerialize["dhcp"] = o.Dhcp.Get() + toSerialize["internet-access"] = o.InternetAccess + if o.Connection.IsSet() { + toSerialize["connection"] = o.Connection.Get() } + toSerialize["dhcp"] = o.Dhcp return toSerialize, nil } diff --git a/model_project_usage.go b/model_project_usage.go index 30d9df71..ee6425d6 100644 --- a/model_project_usage.go +++ b/model_project_usage.go @@ -3,7 +3,7 @@ Corellium API REST API to manage your virtual devices. -API version: 6.1.0-20784 +API version: 7.0.0-25053 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_proxy_config.go b/model_proxy_config.go index eaba0039..f3da1aa2 100644 --- a/model_proxy_config.go +++ b/model_proxy_config.go @@ -3,7 +3,7 @@ Corellium API REST API to manage your virtual devices. -API version: 6.1.0-20784 +API version: 7.0.0-25053 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_reset_link_body.go b/model_reset_link_body.go index 20ec6962..b340babb 100644 --- a/model_reset_link_body.go +++ b/model_reset_link_body.go @@ -3,7 +3,7 @@ Corellium API REST API to manage your virtual devices. -API version: 6.1.0-20784 +API version: 7.0.0-25053 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_role.go b/model_role.go index 3c99ad64..c33e426e 100644 --- a/model_role.go +++ b/model_role.go @@ -3,7 +3,7 @@ Corellium API REST API to manage your virtual devices. -API version: 6.1.0-20784 +API version: 7.0.0-25053 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_rotate_body.go b/model_rotate_body.go index 7da215ab..0f13b255 100644 --- a/model_rotate_body.go +++ b/model_rotate_body.go @@ -3,7 +3,7 @@ Corellium API REST API to manage your virtual devices. -API version: 6.1.0-20784 +API version: 7.0.0-25053 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_shared_snapshots_info.go b/model_shared_snapshots_info.go new file mode 100644 index 00000000..3896f5a7 --- /dev/null +++ b/model_shared_snapshots_info.go @@ -0,0 +1,285 @@ +/* +Corellium API + +REST API to manage your virtual devices. + +API version: 7.0.0-25053 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package corellium + +import ( + "encoding/json" +) + +// checks if the SharedSnapshotsInfo type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &SharedSnapshotsInfo{} + +// SharedSnapshotsInfo +type SharedSnapshotsInfo struct { + // UUID of the snapshot + Id string `json:"id"` + // Snapshot name + Name string `json:"name"` + // Device model + Model string `json:"model"` + // UNIX Date of when the snapshot was first shared with member + SharedOn float32 `json:"sharedOn"` + // The member who the snapshot was shared with. Only present in sharedWithUser + SharedWithMember NullableString `json:"sharedWithMember,omitempty"` + SharedBy *SnapshotOwner `json:"sharedBy,omitempty"` +} + +// NewSharedSnapshotsInfo instantiates a new SharedSnapshotsInfo object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewSharedSnapshotsInfo(id string, name string, model string, sharedOn float32) *SharedSnapshotsInfo { + this := SharedSnapshotsInfo{} + this.Id = id + this.Name = name + this.Model = model + this.SharedOn = sharedOn + return &this +} + +// NewSharedSnapshotsInfoWithDefaults instantiates a new SharedSnapshotsInfo object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewSharedSnapshotsInfoWithDefaults() *SharedSnapshotsInfo { + this := SharedSnapshotsInfo{} + return &this +} + +// GetId returns the Id field value +func (o *SharedSnapshotsInfo) GetId() string { + if o == nil { + var ret string + return ret + } + + return o.Id +} + +// GetIdOk returns a tuple with the Id field value +// and a boolean to check if the value has been set. +func (o *SharedSnapshotsInfo) GetIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Id, true +} + +// SetId sets field value +func (o *SharedSnapshotsInfo) SetId(v string) { + o.Id = v +} + +// GetName returns the Name field value +func (o *SharedSnapshotsInfo) GetName() string { + if o == nil { + var ret string + return ret + } + + return o.Name +} + +// GetNameOk returns a tuple with the Name field value +// and a boolean to check if the value has been set. +func (o *SharedSnapshotsInfo) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *SharedSnapshotsInfo) SetName(v string) { + o.Name = v +} + +// GetModel returns the Model field value +func (o *SharedSnapshotsInfo) GetModel() string { + if o == nil { + var ret string + return ret + } + + return o.Model +} + +// GetModelOk returns a tuple with the Model field value +// and a boolean to check if the value has been set. +func (o *SharedSnapshotsInfo) GetModelOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Model, true +} + +// SetModel sets field value +func (o *SharedSnapshotsInfo) SetModel(v string) { + o.Model = v +} + +// GetSharedOn returns the SharedOn field value +func (o *SharedSnapshotsInfo) GetSharedOn() float32 { + if o == nil { + var ret float32 + return ret + } + + return o.SharedOn +} + +// GetSharedOnOk returns a tuple with the SharedOn field value +// and a boolean to check if the value has been set. +func (o *SharedSnapshotsInfo) GetSharedOnOk() (*float32, bool) { + if o == nil { + return nil, false + } + return &o.SharedOn, true +} + +// SetSharedOn sets field value +func (o *SharedSnapshotsInfo) SetSharedOn(v float32) { + o.SharedOn = v +} + +// GetSharedWithMember returns the SharedWithMember field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *SharedSnapshotsInfo) GetSharedWithMember() string { + if o == nil || IsNil(o.SharedWithMember.Get()) { + var ret string + return ret + } + return *o.SharedWithMember.Get() +} + +// GetSharedWithMemberOk returns a tuple with the SharedWithMember field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *SharedSnapshotsInfo) GetSharedWithMemberOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.SharedWithMember.Get(), o.SharedWithMember.IsSet() +} + +// HasSharedWithMember returns a boolean if a field has been set. +func (o *SharedSnapshotsInfo) HasSharedWithMember() bool { + if o != nil && o.SharedWithMember.IsSet() { + return true + } + + return false +} + +// SetSharedWithMember gets a reference to the given NullableString and assigns it to the SharedWithMember field. +func (o *SharedSnapshotsInfo) SetSharedWithMember(v string) { + o.SharedWithMember.Set(&v) +} +// SetSharedWithMemberNil sets the value for SharedWithMember to be an explicit nil +func (o *SharedSnapshotsInfo) SetSharedWithMemberNil() { + o.SharedWithMember.Set(nil) +} + +// UnsetSharedWithMember ensures that no value is present for SharedWithMember, not even an explicit nil +func (o *SharedSnapshotsInfo) UnsetSharedWithMember() { + o.SharedWithMember.Unset() +} + +// GetSharedBy returns the SharedBy field value if set, zero value otherwise. +func (o *SharedSnapshotsInfo) GetSharedBy() SnapshotOwner { + if o == nil || IsNil(o.SharedBy) { + var ret SnapshotOwner + return ret + } + return *o.SharedBy +} + +// GetSharedByOk returns a tuple with the SharedBy field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SharedSnapshotsInfo) GetSharedByOk() (*SnapshotOwner, bool) { + if o == nil || IsNil(o.SharedBy) { + return nil, false + } + return o.SharedBy, true +} + +// HasSharedBy returns a boolean if a field has been set. +func (o *SharedSnapshotsInfo) HasSharedBy() bool { + if o != nil && !IsNil(o.SharedBy) { + return true + } + + return false +} + +// SetSharedBy gets a reference to the given SnapshotOwner and assigns it to the SharedBy field. +func (o *SharedSnapshotsInfo) SetSharedBy(v SnapshotOwner) { + o.SharedBy = &v +} + +func (o SharedSnapshotsInfo) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o SharedSnapshotsInfo) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["id"] = o.Id + toSerialize["name"] = o.Name + toSerialize["model"] = o.Model + toSerialize["sharedOn"] = o.SharedOn + if o.SharedWithMember.IsSet() { + toSerialize["sharedWithMember"] = o.SharedWithMember.Get() + } + if !IsNil(o.SharedBy) { + toSerialize["sharedBy"] = o.SharedBy + } + return toSerialize, nil +} + +type NullableSharedSnapshotsInfo struct { + value *SharedSnapshotsInfo + isSet bool +} + +func (v NullableSharedSnapshotsInfo) Get() *SharedSnapshotsInfo { + return v.value +} + +func (v *NullableSharedSnapshotsInfo) Set(val *SharedSnapshotsInfo) { + v.value = val + v.isSet = true +} + +func (v NullableSharedSnapshotsInfo) IsSet() bool { + return v.isSet +} + +func (v *NullableSharedSnapshotsInfo) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableSharedSnapshotsInfo(val *SharedSnapshotsInfo) *NullableSharedSnapshotsInfo { + return &NullableSharedSnapshotsInfo{value: val, isSet: true} +} + +func (v NullableSharedSnapshotsInfo) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableSharedSnapshotsInfo) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_snapshot.go b/model_snapshot.go index 6362c6e1..4b21cd43 100644 --- a/model_snapshot.go +++ b/model_snapshot.go @@ -3,7 +3,7 @@ Corellium API REST API to manage your virtual devices. -API version: 6.1.0-20784 +API version: 7.0.0-25053 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -34,6 +34,8 @@ type Snapshot struct { Live bool `json:"live"` // Local bool `json:"local"` + // The device model + Model NullableString `json:"model,omitempty"` Sharing *SnapshotSharing `json:"sharing,omitempty"` } @@ -254,6 +256,48 @@ func (o *Snapshot) SetLocal(v bool) { o.Local = v } +// GetModel returns the Model field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *Snapshot) GetModel() string { + if o == nil || IsNil(o.Model.Get()) { + var ret string + return ret + } + return *o.Model.Get() +} + +// GetModelOk returns a tuple with the Model field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *Snapshot) GetModelOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Model.Get(), o.Model.IsSet() +} + +// HasModel returns a boolean if a field has been set. +func (o *Snapshot) HasModel() bool { + if o != nil && o.Model.IsSet() { + return true + } + + return false +} + +// SetModel gets a reference to the given NullableString and assigns it to the Model field. +func (o *Snapshot) SetModel(v string) { + o.Model.Set(&v) +} +// SetModelNil sets the value for Model to be an explicit nil +func (o *Snapshot) SetModelNil() { + o.Model.Set(nil) +} + +// UnsetModel ensures that no value is present for Model, not even an explicit nil +func (o *Snapshot) UnsetModel() { + o.Model.Unset() +} + // GetSharing returns the Sharing field value if set, zero value otherwise. func (o *Snapshot) GetSharing() SnapshotSharing { if o == nil || IsNil(o.Sharing) { @@ -304,6 +348,9 @@ func (o Snapshot) ToMap() (map[string]interface{}, error) { toSerialize["fresh"] = o.Fresh toSerialize["live"] = o.Live toSerialize["local"] = o.Local + if o.Model.IsSet() { + toSerialize["model"] = o.Model.Get() + } if !IsNil(o.Sharing) { toSerialize["sharing"] = o.Sharing } diff --git a/model_snapshot_creation_options.go b/model_snapshot_creation_options.go index a353a31f..49841a9a 100644 --- a/model_snapshot_creation_options.go +++ b/model_snapshot_creation_options.go @@ -3,7 +3,7 @@ Corellium API REST API to manage your virtual devices. -API version: 6.1.0-20784 +API version: 7.0.0-25053 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_snapshot_member.go b/model_snapshot_member.go new file mode 100644 index 00000000..f5f69355 --- /dev/null +++ b/model_snapshot_member.go @@ -0,0 +1,268 @@ +/* +Corellium API + +REST API to manage your virtual devices. + +API version: 7.0.0-25053 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package corellium + +import ( + "encoding/json" +) + +// checks if the SnapshotMember type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &SnapshotMember{} + +// SnapshotMember +type SnapshotMember struct { + // The email of the member + Email string `json:"email"` + // The date when the invite was sent + InviteSentAt float32 `json:"inviteSentAt"` + // UNIX Date of when the snapshot was first shared with member + SharedOn float32 `json:"sharedOn"` + // The member's user ID + UserId NullableString `json:"userId,omitempty"` + // The user's label or name + Label NullableString `json:"label,omitempty"` +} + +// NewSnapshotMember instantiates a new SnapshotMember object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewSnapshotMember(email string, inviteSentAt float32, sharedOn float32) *SnapshotMember { + this := SnapshotMember{} + this.Email = email + this.InviteSentAt = inviteSentAt + this.SharedOn = sharedOn + return &this +} + +// NewSnapshotMemberWithDefaults instantiates a new SnapshotMember object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewSnapshotMemberWithDefaults() *SnapshotMember { + this := SnapshotMember{} + return &this +} + +// GetEmail returns the Email field value +func (o *SnapshotMember) GetEmail() string { + if o == nil { + var ret string + return ret + } + + return o.Email +} + +// GetEmailOk returns a tuple with the Email field value +// and a boolean to check if the value has been set. +func (o *SnapshotMember) GetEmailOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Email, true +} + +// SetEmail sets field value +func (o *SnapshotMember) SetEmail(v string) { + o.Email = v +} + +// GetInviteSentAt returns the InviteSentAt field value +func (o *SnapshotMember) GetInviteSentAt() float32 { + if o == nil { + var ret float32 + return ret + } + + return o.InviteSentAt +} + +// GetInviteSentAtOk returns a tuple with the InviteSentAt field value +// and a boolean to check if the value has been set. +func (o *SnapshotMember) GetInviteSentAtOk() (*float32, bool) { + if o == nil { + return nil, false + } + return &o.InviteSentAt, true +} + +// SetInviteSentAt sets field value +func (o *SnapshotMember) SetInviteSentAt(v float32) { + o.InviteSentAt = v +} + +// GetSharedOn returns the SharedOn field value +func (o *SnapshotMember) GetSharedOn() float32 { + if o == nil { + var ret float32 + return ret + } + + return o.SharedOn +} + +// GetSharedOnOk returns a tuple with the SharedOn field value +// and a boolean to check if the value has been set. +func (o *SnapshotMember) GetSharedOnOk() (*float32, bool) { + if o == nil { + return nil, false + } + return &o.SharedOn, true +} + +// SetSharedOn sets field value +func (o *SnapshotMember) SetSharedOn(v float32) { + o.SharedOn = v +} + +// GetUserId returns the UserId field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *SnapshotMember) GetUserId() string { + if o == nil || IsNil(o.UserId.Get()) { + var ret string + return ret + } + return *o.UserId.Get() +} + +// GetUserIdOk returns a tuple with the UserId field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *SnapshotMember) GetUserIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.UserId.Get(), o.UserId.IsSet() +} + +// HasUserId returns a boolean if a field has been set. +func (o *SnapshotMember) HasUserId() bool { + if o != nil && o.UserId.IsSet() { + return true + } + + return false +} + +// SetUserId gets a reference to the given NullableString and assigns it to the UserId field. +func (o *SnapshotMember) SetUserId(v string) { + o.UserId.Set(&v) +} +// SetUserIdNil sets the value for UserId to be an explicit nil +func (o *SnapshotMember) SetUserIdNil() { + o.UserId.Set(nil) +} + +// UnsetUserId ensures that no value is present for UserId, not even an explicit nil +func (o *SnapshotMember) UnsetUserId() { + o.UserId.Unset() +} + +// GetLabel returns the Label field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *SnapshotMember) GetLabel() string { + if o == nil || IsNil(o.Label.Get()) { + var ret string + return ret + } + return *o.Label.Get() +} + +// GetLabelOk returns a tuple with the Label field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *SnapshotMember) GetLabelOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Label.Get(), o.Label.IsSet() +} + +// HasLabel returns a boolean if a field has been set. +func (o *SnapshotMember) HasLabel() bool { + if o != nil && o.Label.IsSet() { + return true + } + + return false +} + +// SetLabel gets a reference to the given NullableString and assigns it to the Label field. +func (o *SnapshotMember) SetLabel(v string) { + o.Label.Set(&v) +} +// SetLabelNil sets the value for Label to be an explicit nil +func (o *SnapshotMember) SetLabelNil() { + o.Label.Set(nil) +} + +// UnsetLabel ensures that no value is present for Label, not even an explicit nil +func (o *SnapshotMember) UnsetLabel() { + o.Label.Unset() +} + +func (o SnapshotMember) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o SnapshotMember) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["email"] = o.Email + toSerialize["inviteSentAt"] = o.InviteSentAt + toSerialize["sharedOn"] = o.SharedOn + if o.UserId.IsSet() { + toSerialize["userId"] = o.UserId.Get() + } + if o.Label.IsSet() { + toSerialize["label"] = o.Label.Get() + } + return toSerialize, nil +} + +type NullableSnapshotMember struct { + value *SnapshotMember + isSet bool +} + +func (v NullableSnapshotMember) Get() *SnapshotMember { + return v.value +} + +func (v *NullableSnapshotMember) Set(val *SnapshotMember) { + v.value = val + v.isSet = true +} + +func (v NullableSnapshotMember) IsSet() bool { + return v.isSet +} + +func (v *NullableSnapshotMember) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableSnapshotMember(val *SnapshotMember) *NullableSnapshotMember { + return &NullableSnapshotMember{value: val, isSet: true} +} + +func (v NullableSnapshotMember) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableSnapshotMember) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_snapshot_owner.go b/model_snapshot_owner.go new file mode 100644 index 00000000..d76c8a86 --- /dev/null +++ b/model_snapshot_owner.go @@ -0,0 +1,146 @@ +/* +Corellium API + +REST API to manage your virtual devices. + +API version: 7.0.0-25053 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package corellium + +import ( + "encoding/json" +) + +// checks if the SnapshotOwner type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &SnapshotOwner{} + +// SnapshotOwner +type SnapshotOwner struct { + // The name of the owner. + Name string `json:"name"` + // The email of the member. + Email string `json:"email"` +} + +// NewSnapshotOwner instantiates a new SnapshotOwner object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewSnapshotOwner(name string, email string) *SnapshotOwner { + this := SnapshotOwner{} + this.Name = name + this.Email = email + return &this +} + +// NewSnapshotOwnerWithDefaults instantiates a new SnapshotOwner object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewSnapshotOwnerWithDefaults() *SnapshotOwner { + this := SnapshotOwner{} + return &this +} + +// GetName returns the Name field value +func (o *SnapshotOwner) GetName() string { + if o == nil { + var ret string + return ret + } + + return o.Name +} + +// GetNameOk returns a tuple with the Name field value +// and a boolean to check if the value has been set. +func (o *SnapshotOwner) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *SnapshotOwner) SetName(v string) { + o.Name = v +} + +// GetEmail returns the Email field value +func (o *SnapshotOwner) GetEmail() string { + if o == nil { + var ret string + return ret + } + + return o.Email +} + +// GetEmailOk returns a tuple with the Email field value +// and a boolean to check if the value has been set. +func (o *SnapshotOwner) GetEmailOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Email, true +} + +// SetEmail sets field value +func (o *SnapshotOwner) SetEmail(v string) { + o.Email = v +} + +func (o SnapshotOwner) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o SnapshotOwner) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["name"] = o.Name + toSerialize["email"] = o.Email + return toSerialize, nil +} + +type NullableSnapshotOwner struct { + value *SnapshotOwner + isSet bool +} + +func (v NullableSnapshotOwner) Get() *SnapshotOwner { + return v.value +} + +func (v *NullableSnapshotOwner) Set(val *SnapshotOwner) { + v.value = val + v.isSet = true +} + +func (v NullableSnapshotOwner) IsSet() bool { + return v.isSet +} + +func (v *NullableSnapshotOwner) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableSnapshotOwner(val *SnapshotOwner) *NullableSnapshotOwner { + return &NullableSnapshotOwner{value: val, isSet: true} +} + +func (v NullableSnapshotOwner) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableSnapshotOwner) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_snapshot_permissions_request_payload.go b/model_snapshot_permissions_request_payload.go new file mode 100644 index 00000000..82d301af --- /dev/null +++ b/model_snapshot_permissions_request_payload.go @@ -0,0 +1,118 @@ +/* +Corellium API + +REST API to manage your virtual devices. + +API version: 7.0.0-25053 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package corellium + +import ( + "encoding/json" +) + +// checks if the SnapshotPermissionsRequestPayload type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &SnapshotPermissionsRequestPayload{} + +// SnapshotPermissionsRequestPayload +type SnapshotPermissionsRequestPayload struct { + // The email addresses or user ids of the members. + Members []string `json:"members"` +} + +// NewSnapshotPermissionsRequestPayload instantiates a new SnapshotPermissionsRequestPayload object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewSnapshotPermissionsRequestPayload(members []string) *SnapshotPermissionsRequestPayload { + this := SnapshotPermissionsRequestPayload{} + this.Members = members + return &this +} + +// NewSnapshotPermissionsRequestPayloadWithDefaults instantiates a new SnapshotPermissionsRequestPayload object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewSnapshotPermissionsRequestPayloadWithDefaults() *SnapshotPermissionsRequestPayload { + this := SnapshotPermissionsRequestPayload{} + return &this +} + +// GetMembers returns the Members field value +func (o *SnapshotPermissionsRequestPayload) GetMembers() []string { + if o == nil { + var ret []string + return ret + } + + return o.Members +} + +// GetMembersOk returns a tuple with the Members field value +// and a boolean to check if the value has been set. +func (o *SnapshotPermissionsRequestPayload) GetMembersOk() ([]string, bool) { + if o == nil { + return nil, false + } + return o.Members, true +} + +// SetMembers sets field value +func (o *SnapshotPermissionsRequestPayload) SetMembers(v []string) { + o.Members = v +} + +func (o SnapshotPermissionsRequestPayload) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o SnapshotPermissionsRequestPayload) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["members"] = o.Members + return toSerialize, nil +} + +type NullableSnapshotPermissionsRequestPayload struct { + value *SnapshotPermissionsRequestPayload + isSet bool +} + +func (v NullableSnapshotPermissionsRequestPayload) Get() *SnapshotPermissionsRequestPayload { + return v.value +} + +func (v *NullableSnapshotPermissionsRequestPayload) Set(val *SnapshotPermissionsRequestPayload) { + v.value = val + v.isSet = true +} + +func (v NullableSnapshotPermissionsRequestPayload) IsSet() bool { + return v.isSet +} + +func (v *NullableSnapshotPermissionsRequestPayload) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableSnapshotPermissionsRequestPayload(val *SnapshotPermissionsRequestPayload) *NullableSnapshotPermissionsRequestPayload { + return &NullableSnapshotPermissionsRequestPayload{value: val, isSet: true} +} + +func (v NullableSnapshotPermissionsRequestPayload) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableSnapshotPermissionsRequestPayload) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_snapshot_sharing.go b/model_snapshot_sharing.go index e6abf496..4094bac3 100644 --- a/model_snapshot_sharing.go +++ b/model_snapshot_sharing.go @@ -3,7 +3,7 @@ Corellium API REST API to manage your virtual devices. -API version: 6.1.0-20784 +API version: 7.0.0-25053 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,20 +19,22 @@ var _ MappedNullable = &SnapshotSharing{} // SnapshotSharing type SnapshotSharing struct { - // The URL of the snapshot. - Url string `json:"url"` - // The users who have access to the snapshot. - Users []SnapshotUser `json:"users"` + // + SharingType string `json:"sharingType"` + // Password with using passwordPublicLink + Password NullableString `json:"password,omitempty"` + SharedBy *SnapshotOwner `json:"sharedBy,omitempty"` + // The members who have access to the snapshot + Members []SnapshotMember `json:"members,omitempty"` } // NewSnapshotSharing instantiates a new SnapshotSharing object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed -func NewSnapshotSharing(url string, users []SnapshotUser) *SnapshotSharing { +func NewSnapshotSharing(sharingType string) *SnapshotSharing { this := SnapshotSharing{} - this.Url = url - this.Users = users + this.SharingType = sharingType return &this } @@ -44,52 +46,135 @@ func NewSnapshotSharingWithDefaults() *SnapshotSharing { return &this } -// GetUrl returns the Url field value -func (o *SnapshotSharing) GetUrl() string { +// GetSharingType returns the SharingType field value +func (o *SnapshotSharing) GetSharingType() string { if o == nil { var ret string return ret } - return o.Url + return o.SharingType } -// GetUrlOk returns a tuple with the Url field value +// GetSharingTypeOk returns a tuple with the SharingType field value // and a boolean to check if the value has been set. -func (o *SnapshotSharing) GetUrlOk() (*string, bool) { +func (o *SnapshotSharing) GetSharingTypeOk() (*string, bool) { if o == nil { return nil, false } - return &o.Url, true + return &o.SharingType, true } -// SetUrl sets field value -func (o *SnapshotSharing) SetUrl(v string) { - o.Url = v +// SetSharingType sets field value +func (o *SnapshotSharing) SetSharingType(v string) { + o.SharingType = v } -// GetUsers returns the Users field value -func (o *SnapshotSharing) GetUsers() []SnapshotUser { - if o == nil { - var ret []SnapshotUser +// GetPassword returns the Password field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *SnapshotSharing) GetPassword() string { + if o == nil || IsNil(o.Password.Get()) { + var ret string return ret } + return *o.Password.Get() +} + +// GetPasswordOk returns a tuple with the Password field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *SnapshotSharing) GetPasswordOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Password.Get(), o.Password.IsSet() +} + +// HasPassword returns a boolean if a field has been set. +func (o *SnapshotSharing) HasPassword() bool { + if o != nil && o.Password.IsSet() { + return true + } - return o.Users + return false } -// GetUsersOk returns a tuple with the Users field value +// SetPassword gets a reference to the given NullableString and assigns it to the Password field. +func (o *SnapshotSharing) SetPassword(v string) { + o.Password.Set(&v) +} +// SetPasswordNil sets the value for Password to be an explicit nil +func (o *SnapshotSharing) SetPasswordNil() { + o.Password.Set(nil) +} + +// UnsetPassword ensures that no value is present for Password, not even an explicit nil +func (o *SnapshotSharing) UnsetPassword() { + o.Password.Unset() +} + +// GetSharedBy returns the SharedBy field value if set, zero value otherwise. +func (o *SnapshotSharing) GetSharedBy() SnapshotOwner { + if o == nil || IsNil(o.SharedBy) { + var ret SnapshotOwner + return ret + } + return *o.SharedBy +} + +// GetSharedByOk returns a tuple with the SharedBy field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *SnapshotSharing) GetUsersOk() ([]SnapshotUser, bool) { +func (o *SnapshotSharing) GetSharedByOk() (*SnapshotOwner, bool) { + if o == nil || IsNil(o.SharedBy) { + return nil, false + } + return o.SharedBy, true +} + +// HasSharedBy returns a boolean if a field has been set. +func (o *SnapshotSharing) HasSharedBy() bool { + if o != nil && !IsNil(o.SharedBy) { + return true + } + + return false +} + +// SetSharedBy gets a reference to the given SnapshotOwner and assigns it to the SharedBy field. +func (o *SnapshotSharing) SetSharedBy(v SnapshotOwner) { + o.SharedBy = &v +} + +// GetMembers returns the Members field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *SnapshotSharing) GetMembers() []SnapshotMember { if o == nil { + var ret []SnapshotMember + return ret + } + return o.Members +} + +// GetMembersOk returns a tuple with the Members field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *SnapshotSharing) GetMembersOk() ([]SnapshotMember, bool) { + if o == nil || IsNil(o.Members) { return nil, false } - return o.Users, true + return o.Members, true +} + +// HasMembers returns a boolean if a field has been set. +func (o *SnapshotSharing) HasMembers() bool { + if o != nil && IsNil(o.Members) { + return true + } + + return false } -// SetUsers sets field value -func (o *SnapshotSharing) SetUsers(v []SnapshotUser) { - o.Users = v +// SetMembers gets a reference to the given []SnapshotMember and assigns it to the Members field. +func (o *SnapshotSharing) SetMembers(v []SnapshotMember) { + o.Members = v } func (o SnapshotSharing) MarshalJSON() ([]byte, error) { @@ -102,8 +187,16 @@ func (o SnapshotSharing) MarshalJSON() ([]byte, error) { func (o SnapshotSharing) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - toSerialize["url"] = o.Url - toSerialize["users"] = o.Users + toSerialize["sharingType"] = o.SharingType + if o.Password.IsSet() { + toSerialize["password"] = o.Password.Get() + } + if !IsNil(o.SharedBy) { + toSerialize["sharedBy"] = o.SharedBy + } + if o.Members != nil { + toSerialize["members"] = o.Members + } return toSerialize, nil } diff --git a/model_snapshot_sharing_permissions.go b/model_snapshot_sharing_permissions.go new file mode 100644 index 00000000..dc860a45 --- /dev/null +++ b/model_snapshot_sharing_permissions.go @@ -0,0 +1,372 @@ +/* +Corellium API + +REST API to manage your virtual devices. + +API version: 7.0.0-25053 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package corellium + +import ( + "encoding/json" +) + +// checks if the SnapshotSharingPermissions type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &SnapshotSharingPermissions{} + +// SnapshotSharingPermissions +type SnapshotSharingPermissions struct { + // Indicates if snapshot permissions are enabled by the cloud admin + CloudEnabled NullableBool `json:"cloudEnabled,omitempty"` + // Indicates if snapshot permissions are enabled by the domain admin + DomainEnabled NullableBool `json:"domainEnabled,omitempty"` + // Indicates if public link access is enabled + PublicLink NullableBool `json:"publicLink,omitempty"` + // Indicates if domain-restricted link access is enabled + DomainRestrictedLink NullableBool `json:"domainRestrictedLink,omitempty"` + // Indicates if password-protected public link access is enabled + PasswordPublicLink NullableBool `json:"passwordPublicLink,omitempty"` + // Indicates if email invite access is enabled + EmailInvite NullableBool `json:"emailInvite,omitempty"` +} + +// NewSnapshotSharingPermissions instantiates a new SnapshotSharingPermissions object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewSnapshotSharingPermissions() *SnapshotSharingPermissions { + this := SnapshotSharingPermissions{} + return &this +} + +// NewSnapshotSharingPermissionsWithDefaults instantiates a new SnapshotSharingPermissions object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewSnapshotSharingPermissionsWithDefaults() *SnapshotSharingPermissions { + this := SnapshotSharingPermissions{} + return &this +} + +// GetCloudEnabled returns the CloudEnabled field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *SnapshotSharingPermissions) GetCloudEnabled() bool { + if o == nil || IsNil(o.CloudEnabled.Get()) { + var ret bool + return ret + } + return *o.CloudEnabled.Get() +} + +// GetCloudEnabledOk returns a tuple with the CloudEnabled field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *SnapshotSharingPermissions) GetCloudEnabledOk() (*bool, bool) { + if o == nil { + return nil, false + } + return o.CloudEnabled.Get(), o.CloudEnabled.IsSet() +} + +// HasCloudEnabled returns a boolean if a field has been set. +func (o *SnapshotSharingPermissions) HasCloudEnabled() bool { + if o != nil && o.CloudEnabled.IsSet() { + return true + } + + return false +} + +// SetCloudEnabled gets a reference to the given NullableBool and assigns it to the CloudEnabled field. +func (o *SnapshotSharingPermissions) SetCloudEnabled(v bool) { + o.CloudEnabled.Set(&v) +} +// SetCloudEnabledNil sets the value for CloudEnabled to be an explicit nil +func (o *SnapshotSharingPermissions) SetCloudEnabledNil() { + o.CloudEnabled.Set(nil) +} + +// UnsetCloudEnabled ensures that no value is present for CloudEnabled, not even an explicit nil +func (o *SnapshotSharingPermissions) UnsetCloudEnabled() { + o.CloudEnabled.Unset() +} + +// GetDomainEnabled returns the DomainEnabled field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *SnapshotSharingPermissions) GetDomainEnabled() bool { + if o == nil || IsNil(o.DomainEnabled.Get()) { + var ret bool + return ret + } + return *o.DomainEnabled.Get() +} + +// GetDomainEnabledOk returns a tuple with the DomainEnabled field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *SnapshotSharingPermissions) GetDomainEnabledOk() (*bool, bool) { + if o == nil { + return nil, false + } + return o.DomainEnabled.Get(), o.DomainEnabled.IsSet() +} + +// HasDomainEnabled returns a boolean if a field has been set. +func (o *SnapshotSharingPermissions) HasDomainEnabled() bool { + if o != nil && o.DomainEnabled.IsSet() { + return true + } + + return false +} + +// SetDomainEnabled gets a reference to the given NullableBool and assigns it to the DomainEnabled field. +func (o *SnapshotSharingPermissions) SetDomainEnabled(v bool) { + o.DomainEnabled.Set(&v) +} +// SetDomainEnabledNil sets the value for DomainEnabled to be an explicit nil +func (o *SnapshotSharingPermissions) SetDomainEnabledNil() { + o.DomainEnabled.Set(nil) +} + +// UnsetDomainEnabled ensures that no value is present for DomainEnabled, not even an explicit nil +func (o *SnapshotSharingPermissions) UnsetDomainEnabled() { + o.DomainEnabled.Unset() +} + +// GetPublicLink returns the PublicLink field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *SnapshotSharingPermissions) GetPublicLink() bool { + if o == nil || IsNil(o.PublicLink.Get()) { + var ret bool + return ret + } + return *o.PublicLink.Get() +} + +// GetPublicLinkOk returns a tuple with the PublicLink field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *SnapshotSharingPermissions) GetPublicLinkOk() (*bool, bool) { + if o == nil { + return nil, false + } + return o.PublicLink.Get(), o.PublicLink.IsSet() +} + +// HasPublicLink returns a boolean if a field has been set. +func (o *SnapshotSharingPermissions) HasPublicLink() bool { + if o != nil && o.PublicLink.IsSet() { + return true + } + + return false +} + +// SetPublicLink gets a reference to the given NullableBool and assigns it to the PublicLink field. +func (o *SnapshotSharingPermissions) SetPublicLink(v bool) { + o.PublicLink.Set(&v) +} +// SetPublicLinkNil sets the value for PublicLink to be an explicit nil +func (o *SnapshotSharingPermissions) SetPublicLinkNil() { + o.PublicLink.Set(nil) +} + +// UnsetPublicLink ensures that no value is present for PublicLink, not even an explicit nil +func (o *SnapshotSharingPermissions) UnsetPublicLink() { + o.PublicLink.Unset() +} + +// GetDomainRestrictedLink returns the DomainRestrictedLink field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *SnapshotSharingPermissions) GetDomainRestrictedLink() bool { + if o == nil || IsNil(o.DomainRestrictedLink.Get()) { + var ret bool + return ret + } + return *o.DomainRestrictedLink.Get() +} + +// GetDomainRestrictedLinkOk returns a tuple with the DomainRestrictedLink field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *SnapshotSharingPermissions) GetDomainRestrictedLinkOk() (*bool, bool) { + if o == nil { + return nil, false + } + return o.DomainRestrictedLink.Get(), o.DomainRestrictedLink.IsSet() +} + +// HasDomainRestrictedLink returns a boolean if a field has been set. +func (o *SnapshotSharingPermissions) HasDomainRestrictedLink() bool { + if o != nil && o.DomainRestrictedLink.IsSet() { + return true + } + + return false +} + +// SetDomainRestrictedLink gets a reference to the given NullableBool and assigns it to the DomainRestrictedLink field. +func (o *SnapshotSharingPermissions) SetDomainRestrictedLink(v bool) { + o.DomainRestrictedLink.Set(&v) +} +// SetDomainRestrictedLinkNil sets the value for DomainRestrictedLink to be an explicit nil +func (o *SnapshotSharingPermissions) SetDomainRestrictedLinkNil() { + o.DomainRestrictedLink.Set(nil) +} + +// UnsetDomainRestrictedLink ensures that no value is present for DomainRestrictedLink, not even an explicit nil +func (o *SnapshotSharingPermissions) UnsetDomainRestrictedLink() { + o.DomainRestrictedLink.Unset() +} + +// GetPasswordPublicLink returns the PasswordPublicLink field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *SnapshotSharingPermissions) GetPasswordPublicLink() bool { + if o == nil || IsNil(o.PasswordPublicLink.Get()) { + var ret bool + return ret + } + return *o.PasswordPublicLink.Get() +} + +// GetPasswordPublicLinkOk returns a tuple with the PasswordPublicLink field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *SnapshotSharingPermissions) GetPasswordPublicLinkOk() (*bool, bool) { + if o == nil { + return nil, false + } + return o.PasswordPublicLink.Get(), o.PasswordPublicLink.IsSet() +} + +// HasPasswordPublicLink returns a boolean if a field has been set. +func (o *SnapshotSharingPermissions) HasPasswordPublicLink() bool { + if o != nil && o.PasswordPublicLink.IsSet() { + return true + } + + return false +} + +// SetPasswordPublicLink gets a reference to the given NullableBool and assigns it to the PasswordPublicLink field. +func (o *SnapshotSharingPermissions) SetPasswordPublicLink(v bool) { + o.PasswordPublicLink.Set(&v) +} +// SetPasswordPublicLinkNil sets the value for PasswordPublicLink to be an explicit nil +func (o *SnapshotSharingPermissions) SetPasswordPublicLinkNil() { + o.PasswordPublicLink.Set(nil) +} + +// UnsetPasswordPublicLink ensures that no value is present for PasswordPublicLink, not even an explicit nil +func (o *SnapshotSharingPermissions) UnsetPasswordPublicLink() { + o.PasswordPublicLink.Unset() +} + +// GetEmailInvite returns the EmailInvite field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *SnapshotSharingPermissions) GetEmailInvite() bool { + if o == nil || IsNil(o.EmailInvite.Get()) { + var ret bool + return ret + } + return *o.EmailInvite.Get() +} + +// GetEmailInviteOk returns a tuple with the EmailInvite field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *SnapshotSharingPermissions) GetEmailInviteOk() (*bool, bool) { + if o == nil { + return nil, false + } + return o.EmailInvite.Get(), o.EmailInvite.IsSet() +} + +// HasEmailInvite returns a boolean if a field has been set. +func (o *SnapshotSharingPermissions) HasEmailInvite() bool { + if o != nil && o.EmailInvite.IsSet() { + return true + } + + return false +} + +// SetEmailInvite gets a reference to the given NullableBool and assigns it to the EmailInvite field. +func (o *SnapshotSharingPermissions) SetEmailInvite(v bool) { + o.EmailInvite.Set(&v) +} +// SetEmailInviteNil sets the value for EmailInvite to be an explicit nil +func (o *SnapshotSharingPermissions) SetEmailInviteNil() { + o.EmailInvite.Set(nil) +} + +// UnsetEmailInvite ensures that no value is present for EmailInvite, not even an explicit nil +func (o *SnapshotSharingPermissions) UnsetEmailInvite() { + o.EmailInvite.Unset() +} + +func (o SnapshotSharingPermissions) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o SnapshotSharingPermissions) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if o.CloudEnabled.IsSet() { + toSerialize["cloudEnabled"] = o.CloudEnabled.Get() + } + if o.DomainEnabled.IsSet() { + toSerialize["domainEnabled"] = o.DomainEnabled.Get() + } + if o.PublicLink.IsSet() { + toSerialize["publicLink"] = o.PublicLink.Get() + } + if o.DomainRestrictedLink.IsSet() { + toSerialize["domainRestrictedLink"] = o.DomainRestrictedLink.Get() + } + if o.PasswordPublicLink.IsSet() { + toSerialize["passwordPublicLink"] = o.PasswordPublicLink.Get() + } + if o.EmailInvite.IsSet() { + toSerialize["emailInvite"] = o.EmailInvite.Get() + } + return toSerialize, nil +} + +type NullableSnapshotSharingPermissions struct { + value *SnapshotSharingPermissions + isSet bool +} + +func (v NullableSnapshotSharingPermissions) Get() *SnapshotSharingPermissions { + return v.value +} + +func (v *NullableSnapshotSharingPermissions) Set(val *SnapshotSharingPermissions) { + v.value = val + v.isSet = true +} + +func (v NullableSnapshotSharingPermissions) IsSet() bool { + return v.isSet +} + +func (v *NullableSnapshotSharingPermissions) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableSnapshotSharingPermissions(val *SnapshotSharingPermissions) *NullableSnapshotSharingPermissions { + return &NullableSnapshotSharingPermissions{value: val, isSet: true} +} + +func (v NullableSnapshotSharingPermissions) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableSnapshotSharingPermissions) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_snapshot_status.go b/model_snapshot_status.go index fef86fdd..05e9f1e8 100644 --- a/model_snapshot_status.go +++ b/model_snapshot_status.go @@ -3,7 +3,7 @@ Corellium API REST API to manage your virtual devices. -API version: 6.1.0-20784 +API version: 7.0.0-25053 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,20 +19,18 @@ var _ MappedNullable = &SnapshotStatus{} // SnapshotStatus type SnapshotStatus struct { - // The current task being performed on the snapshot. - Task string `json:"task"` - // Indicates if the snapshot has been successfully created. - Created bool `json:"created"` + // The current task being performed on the snapshot + Task NullableString `json:"task,omitempty"` + // Indicates if the snapshot has been successfully created + Created NullableBool `json:"created,omitempty"` } // NewSnapshotStatus instantiates a new SnapshotStatus object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed -func NewSnapshotStatus(task string, created bool) *SnapshotStatus { +func NewSnapshotStatus() *SnapshotStatus { this := SnapshotStatus{} - this.Task = task - this.Created = created return &this } @@ -44,52 +42,88 @@ func NewSnapshotStatusWithDefaults() *SnapshotStatus { return &this } -// GetTask returns the Task field value +// GetTask returns the Task field value if set, zero value otherwise (both if not set or set to explicit null). func (o *SnapshotStatus) GetTask() string { - if o == nil { + if o == nil || IsNil(o.Task.Get()) { var ret string return ret } - - return o.Task + return *o.Task.Get() } -// GetTaskOk returns a tuple with the Task field value +// GetTaskOk returns a tuple with the Task field value if set, nil otherwise // and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *SnapshotStatus) GetTaskOk() (*string, bool) { if o == nil { return nil, false } - return &o.Task, true + return o.Task.Get(), o.Task.IsSet() +} + +// HasTask returns a boolean if a field has been set. +func (o *SnapshotStatus) HasTask() bool { + if o != nil && o.Task.IsSet() { + return true + } + + return false } -// SetTask sets field value +// SetTask gets a reference to the given NullableString and assigns it to the Task field. func (o *SnapshotStatus) SetTask(v string) { - o.Task = v + o.Task.Set(&v) +} +// SetTaskNil sets the value for Task to be an explicit nil +func (o *SnapshotStatus) SetTaskNil() { + o.Task.Set(nil) } -// GetCreated returns the Created field value +// UnsetTask ensures that no value is present for Task, not even an explicit nil +func (o *SnapshotStatus) UnsetTask() { + o.Task.Unset() +} + +// GetCreated returns the Created field value if set, zero value otherwise (both if not set or set to explicit null). func (o *SnapshotStatus) GetCreated() bool { - if o == nil { + if o == nil || IsNil(o.Created.Get()) { var ret bool return ret } - - return o.Created + return *o.Created.Get() } -// GetCreatedOk returns a tuple with the Created field value +// GetCreatedOk returns a tuple with the Created field value if set, nil otherwise // and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *SnapshotStatus) GetCreatedOk() (*bool, bool) { if o == nil { return nil, false } - return &o.Created, true + return o.Created.Get(), o.Created.IsSet() +} + +// HasCreated returns a boolean if a field has been set. +func (o *SnapshotStatus) HasCreated() bool { + if o != nil && o.Created.IsSet() { + return true + } + + return false } -// SetCreated sets field value +// SetCreated gets a reference to the given NullableBool and assigns it to the Created field. func (o *SnapshotStatus) SetCreated(v bool) { - o.Created = v + o.Created.Set(&v) +} +// SetCreatedNil sets the value for Created to be an explicit nil +func (o *SnapshotStatus) SetCreatedNil() { + o.Created.Set(nil) +} + +// UnsetCreated ensures that no value is present for Created, not even an explicit nil +func (o *SnapshotStatus) UnsetCreated() { + o.Created.Unset() } func (o SnapshotStatus) MarshalJSON() ([]byte, error) { @@ -102,8 +136,12 @@ func (o SnapshotStatus) MarshalJSON() ([]byte, error) { func (o SnapshotStatus) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - toSerialize["task"] = o.Task - toSerialize["created"] = o.Created + if o.Task.IsSet() { + toSerialize["task"] = o.Task.Get() + } + if o.Created.IsSet() { + toSerialize["created"] = o.Created.Get() + } return toSerialize, nil } diff --git a/model_sslsplit_filter.go b/model_sslsplit_filter.go new file mode 100644 index 00000000..02d37906 --- /dev/null +++ b/model_sslsplit_filter.go @@ -0,0 +1,137 @@ +/* +Corellium API + +REST API to manage your virtual devices. + +API version: 7.0.0-25053 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package corellium + +import ( + "encoding/json" +) + +// checks if the SslsplitFilter type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &SslsplitFilter{} + +// SslsplitFilter +type SslsplitFilter struct { + // + TruncatePcap NullableBool `json:"truncatePcap,omitempty"` +} + +// NewSslsplitFilter instantiates a new SslsplitFilter object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewSslsplitFilter() *SslsplitFilter { + this := SslsplitFilter{} + return &this +} + +// NewSslsplitFilterWithDefaults instantiates a new SslsplitFilter object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewSslsplitFilterWithDefaults() *SslsplitFilter { + this := SslsplitFilter{} + return &this +} + +// GetTruncatePcap returns the TruncatePcap field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *SslsplitFilter) GetTruncatePcap() bool { + if o == nil || IsNil(o.TruncatePcap.Get()) { + var ret bool + return ret + } + return *o.TruncatePcap.Get() +} + +// GetTruncatePcapOk returns a tuple with the TruncatePcap field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *SslsplitFilter) GetTruncatePcapOk() (*bool, bool) { + if o == nil { + return nil, false + } + return o.TruncatePcap.Get(), o.TruncatePcap.IsSet() +} + +// HasTruncatePcap returns a boolean if a field has been set. +func (o *SslsplitFilter) HasTruncatePcap() bool { + if o != nil && o.TruncatePcap.IsSet() { + return true + } + + return false +} + +// SetTruncatePcap gets a reference to the given NullableBool and assigns it to the TruncatePcap field. +func (o *SslsplitFilter) SetTruncatePcap(v bool) { + o.TruncatePcap.Set(&v) +} +// SetTruncatePcapNil sets the value for TruncatePcap to be an explicit nil +func (o *SslsplitFilter) SetTruncatePcapNil() { + o.TruncatePcap.Set(nil) +} + +// UnsetTruncatePcap ensures that no value is present for TruncatePcap, not even an explicit nil +func (o *SslsplitFilter) UnsetTruncatePcap() { + o.TruncatePcap.Unset() +} + +func (o SslsplitFilter) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o SslsplitFilter) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if o.TruncatePcap.IsSet() { + toSerialize["truncatePcap"] = o.TruncatePcap.Get() + } + return toSerialize, nil +} + +type NullableSslsplitFilter struct { + value *SslsplitFilter + isSet bool +} + +func (v NullableSslsplitFilter) Get() *SslsplitFilter { + return v.value +} + +func (v *NullableSslsplitFilter) Set(val *SslsplitFilter) { + v.value = val + v.isSet = true +} + +func (v NullableSslsplitFilter) IsSet() bool { + return v.isSet +} + +func (v *NullableSslsplitFilter) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableSslsplitFilter(val *SslsplitFilter) *NullableSslsplitFilter { + return &NullableSslsplitFilter{value: val, isSet: true} +} + +func (v NullableSslsplitFilter) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableSslsplitFilter) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_subscriber_invite.go b/model_subscriber_invite.go index 68886c3f..8a1d72d9 100644 --- a/model_subscriber_invite.go +++ b/model_subscriber_invite.go @@ -3,7 +3,7 @@ Corellium API REST API to manage your virtual devices. -API version: 6.1.0-20784 +API version: 7.0.0-25053 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_team.go b/model_team.go index 178932af..bc2b1760 100644 --- a/model_team.go +++ b/model_team.go @@ -3,7 +3,7 @@ Corellium API REST API to manage your virtual devices. -API version: 6.1.0-20784 +API version: 7.0.0-25053 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_team_create.go b/model_team_create.go index 289b0589..c1024f6c 100644 --- a/model_team_create.go +++ b/model_team_create.go @@ -3,7 +3,7 @@ Corellium API REST API to manage your virtual devices. -API version: 6.1.0-20784 +API version: 7.0.0-25053 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_test_assessment_dto.go b/model_test_assessment_dto.go new file mode 100644 index 00000000..c06a149a --- /dev/null +++ b/model_test_assessment_dto.go @@ -0,0 +1,162 @@ +/* +Corellium API + +REST API to manage your virtual devices. + +API version: 7.0.0-25053 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package corellium + +import ( + "encoding/json" +) + +// checks if the TestAssessmentDto type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &TestAssessmentDto{} + +// TestAssessmentDto struct for TestAssessmentDto +type TestAssessmentDto struct { + Invert *bool `json:"invert,omitempty"` + Grep *string `json:"grep,omitempty"` +} + +// NewTestAssessmentDto instantiates a new TestAssessmentDto object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewTestAssessmentDto() *TestAssessmentDto { + this := TestAssessmentDto{} + return &this +} + +// NewTestAssessmentDtoWithDefaults instantiates a new TestAssessmentDto object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewTestAssessmentDtoWithDefaults() *TestAssessmentDto { + this := TestAssessmentDto{} + return &this +} + +// GetInvert returns the Invert field value if set, zero value otherwise. +func (o *TestAssessmentDto) GetInvert() bool { + if o == nil || IsNil(o.Invert) { + var ret bool + return ret + } + return *o.Invert +} + +// GetInvertOk returns a tuple with the Invert field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *TestAssessmentDto) GetInvertOk() (*bool, bool) { + if o == nil || IsNil(o.Invert) { + return nil, false + } + return o.Invert, true +} + +// HasInvert returns a boolean if a field has been set. +func (o *TestAssessmentDto) HasInvert() bool { + if o != nil && !IsNil(o.Invert) { + return true + } + + return false +} + +// SetInvert gets a reference to the given bool and assigns it to the Invert field. +func (o *TestAssessmentDto) SetInvert(v bool) { + o.Invert = &v +} + +// GetGrep returns the Grep field value if set, zero value otherwise. +func (o *TestAssessmentDto) GetGrep() string { + if o == nil || IsNil(o.Grep) { + var ret string + return ret + } + return *o.Grep +} + +// GetGrepOk returns a tuple with the Grep field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *TestAssessmentDto) GetGrepOk() (*string, bool) { + if o == nil || IsNil(o.Grep) { + return nil, false + } + return o.Grep, true +} + +// HasGrep returns a boolean if a field has been set. +func (o *TestAssessmentDto) HasGrep() bool { + if o != nil && !IsNil(o.Grep) { + return true + } + + return false +} + +// SetGrep gets a reference to the given string and assigns it to the Grep field. +func (o *TestAssessmentDto) SetGrep(v string) { + o.Grep = &v +} + +func (o TestAssessmentDto) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o TestAssessmentDto) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Invert) { + toSerialize["invert"] = o.Invert + } + if !IsNil(o.Grep) { + toSerialize["grep"] = o.Grep + } + return toSerialize, nil +} + +type NullableTestAssessmentDto struct { + value *TestAssessmentDto + isSet bool +} + +func (v NullableTestAssessmentDto) Get() *TestAssessmentDto { + return v.value +} + +func (v *NullableTestAssessmentDto) Set(val *TestAssessmentDto) { + v.value = val + v.isSet = true +} + +func (v NullableTestAssessmentDto) IsSet() bool { + return v.isSet +} + +func (v *NullableTestAssessmentDto) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableTestAssessmentDto(val *TestAssessmentDto) *NullableTestAssessmentDto { + return &NullableTestAssessmentDto{value: val, isSet: true} +} + +func (v NullableTestAssessmentDto) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableTestAssessmentDto) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_text_input.go b/model_text_input.go index 7358c630..f89965c1 100644 --- a/model_text_input.go +++ b/model_text_input.go @@ -3,7 +3,7 @@ Corellium API REST API to manage your virtual devices. -API version: 6.1.0-20784 +API version: 7.0.0-25053 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_token.go b/model_token.go index 1f6558c2..4c4d3b15 100644 --- a/model_token.go +++ b/model_token.go @@ -3,7 +3,7 @@ Corellium API REST API to manage your virtual devices. -API version: 6.1.0-20784 +API version: 7.0.0-25053 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_touch_curve_input.go b/model_touch_curve_input.go index 4893cc84..fb379f83 100644 --- a/model_touch_curve_input.go +++ b/model_touch_curve_input.go @@ -3,7 +3,7 @@ Corellium API REST API to manage your virtual devices. -API version: 6.1.0-20784 +API version: 7.0.0-25053 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_touch_input.go b/model_touch_input.go index f30b34f5..f514f63d 100644 --- a/model_touch_input.go +++ b/model_touch_input.go @@ -3,7 +3,7 @@ Corellium API REST API to manage your virtual devices. -API version: 6.1.0-20784 +API version: 7.0.0-25053 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_trial.go b/model_trial.go index 6e2dbbb0..d9085d84 100644 --- a/model_trial.go +++ b/model_trial.go @@ -3,7 +3,7 @@ Corellium API REST API to manage your virtual devices. -API version: 6.1.0-20784 +API version: 7.0.0-25053 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_trial_extension.go b/model_trial_extension.go index a8f44129..d6c2deec 100644 --- a/model_trial_extension.go +++ b/model_trial_extension.go @@ -3,7 +3,7 @@ Corellium API REST API to manage your virtual devices. -API version: 6.1.0-20784 +API version: 7.0.0-25053 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_trial_request_metadata.go b/model_trial_request_metadata.go index 06961103..b581b4e5 100644 --- a/model_trial_request_metadata.go +++ b/model_trial_request_metadata.go @@ -3,7 +3,7 @@ Corellium API REST API to manage your virtual devices. -API version: 6.1.0-20784 +API version: 7.0.0-25053 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_trial_request_options.go b/model_trial_request_options.go index 4fed38f6..749e7185 100644 --- a/model_trial_request_options.go +++ b/model_trial_request_options.go @@ -3,7 +3,7 @@ Corellium API REST API to manage your virtual devices. -API version: 6.1.0-20784 +API version: 7.0.0-25053 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_update_assessment_dto.go b/model_update_assessment_dto.go new file mode 100644 index 00000000..c7df9ca6 --- /dev/null +++ b/model_update_assessment_dto.go @@ -0,0 +1,117 @@ +/* +Corellium API + +REST API to manage your virtual devices. + +API version: 7.0.0-25053 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package corellium + +import ( + "encoding/json" +) + +// checks if the UpdateAssessmentDto type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &UpdateAssessmentDto{} + +// UpdateAssessmentDto struct for UpdateAssessmentDto +type UpdateAssessmentDto struct { + Status string `json:"status"` +} + +// NewUpdateAssessmentDto instantiates a new UpdateAssessmentDto object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewUpdateAssessmentDto(status string) *UpdateAssessmentDto { + this := UpdateAssessmentDto{} + this.Status = status + return &this +} + +// NewUpdateAssessmentDtoWithDefaults instantiates a new UpdateAssessmentDto object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewUpdateAssessmentDtoWithDefaults() *UpdateAssessmentDto { + this := UpdateAssessmentDto{} + return &this +} + +// GetStatus returns the Status field value +func (o *UpdateAssessmentDto) GetStatus() string { + if o == nil { + var ret string + return ret + } + + return o.Status +} + +// GetStatusOk returns a tuple with the Status field value +// and a boolean to check if the value has been set. +func (o *UpdateAssessmentDto) GetStatusOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Status, true +} + +// SetStatus sets field value +func (o *UpdateAssessmentDto) SetStatus(v string) { + o.Status = v +} + +func (o UpdateAssessmentDto) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o UpdateAssessmentDto) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["status"] = o.Status + return toSerialize, nil +} + +type NullableUpdateAssessmentDto struct { + value *UpdateAssessmentDto + isSet bool +} + +func (v NullableUpdateAssessmentDto) Get() *UpdateAssessmentDto { + return v.value +} + +func (v *NullableUpdateAssessmentDto) Set(val *UpdateAssessmentDto) { + v.value = val + v.isSet = true +} + +func (v NullableUpdateAssessmentDto) IsSet() bool { + return v.isSet +} + +func (v *NullableUpdateAssessmentDto) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableUpdateAssessmentDto(val *UpdateAssessmentDto) *NullableUpdateAssessmentDto { + return &NullableUpdateAssessmentDto{value: val, isSet: true} +} + +func (v NullableUpdateAssessmentDto) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableUpdateAssessmentDto) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_update_extension.go b/model_update_extension.go index 38e5c67b..1534a226 100644 --- a/model_update_extension.go +++ b/model_update_extension.go @@ -3,7 +3,7 @@ Corellium API REST API to manage your virtual devices. -API version: 6.1.0-20784 +API version: 7.0.0-25053 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_update_network_connection_options.go b/model_update_network_connection_options.go new file mode 100644 index 00000000..2c9c3eb2 --- /dev/null +++ b/model_update_network_connection_options.go @@ -0,0 +1,156 @@ +/* +Corellium API + +REST API to manage your virtual devices. + +API version: 7.0.0-25053 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package corellium + +import ( + "encoding/json" +) + +// checks if the UpdateNetworkConnectionOptions type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &UpdateNetworkConnectionOptions{} + +// UpdateNetworkConnectionOptions +type UpdateNetworkConnectionOptions struct { + // User specified name for this network connection. e.g. My Network Connection + Name string `json:"name"` + // An object containing network connection configuration data. Will vary based on network provider type. See examples. + Config map[string]interface{} `json:"config,omitempty"` +} + +// NewUpdateNetworkConnectionOptions instantiates a new UpdateNetworkConnectionOptions object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewUpdateNetworkConnectionOptions(name string) *UpdateNetworkConnectionOptions { + this := UpdateNetworkConnectionOptions{} + this.Name = name + return &this +} + +// NewUpdateNetworkConnectionOptionsWithDefaults instantiates a new UpdateNetworkConnectionOptions object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewUpdateNetworkConnectionOptionsWithDefaults() *UpdateNetworkConnectionOptions { + this := UpdateNetworkConnectionOptions{} + return &this +} + +// GetName returns the Name field value +func (o *UpdateNetworkConnectionOptions) GetName() string { + if o == nil { + var ret string + return ret + } + + return o.Name +} + +// GetNameOk returns a tuple with the Name field value +// and a boolean to check if the value has been set. +func (o *UpdateNetworkConnectionOptions) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *UpdateNetworkConnectionOptions) SetName(v string) { + o.Name = v +} + +// GetConfig returns the Config field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *UpdateNetworkConnectionOptions) GetConfig() map[string]interface{} { + if o == nil { + var ret map[string]interface{} + return ret + } + return o.Config +} + +// GetConfigOk returns a tuple with the Config field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *UpdateNetworkConnectionOptions) GetConfigOk() (map[string]interface{}, bool) { + if o == nil || IsNil(o.Config) { + return map[string]interface{}{}, false + } + return o.Config, true +} + +// HasConfig returns a boolean if a field has been set. +func (o *UpdateNetworkConnectionOptions) HasConfig() bool { + if o != nil && IsNil(o.Config) { + return true + } + + return false +} + +// SetConfig gets a reference to the given map[string]interface{} and assigns it to the Config field. +func (o *UpdateNetworkConnectionOptions) SetConfig(v map[string]interface{}) { + o.Config = v +} + +func (o UpdateNetworkConnectionOptions) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o UpdateNetworkConnectionOptions) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["name"] = o.Name + if o.Config != nil { + toSerialize["config"] = o.Config + } + return toSerialize, nil +} + +type NullableUpdateNetworkConnectionOptions struct { + value *UpdateNetworkConnectionOptions + isSet bool +} + +func (v NullableUpdateNetworkConnectionOptions) Get() *UpdateNetworkConnectionOptions { + return v.value +} + +func (v *NullableUpdateNetworkConnectionOptions) Set(val *UpdateNetworkConnectionOptions) { + v.value = val + v.isSet = true +} + +func (v NullableUpdateNetworkConnectionOptions) IsSet() bool { + return v.isSet +} + +func (v *NullableUpdateNetworkConnectionOptions) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableUpdateNetworkConnectionOptions(val *UpdateNetworkConnectionOptions) *NullableUpdateNetworkConnectionOptions { + return &NullableUpdateNetworkConnectionOptions{value: val, isSet: true} +} + +func (v NullableUpdateNetworkConnectionOptions) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableUpdateNetworkConnectionOptions) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_user.go b/model_user.go index d68c15f8..9ed52f36 100644 --- a/model_user.go +++ b/model_user.go @@ -3,7 +3,7 @@ Corellium API REST API to manage your virtual devices. -API version: 6.1.0-20784 +API version: 7.0.0-25053 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -29,6 +29,8 @@ type User struct { Email string `json:"email"` // the flag that specifies whether user is Administrator or not Administrator NullableBool `json:"administrator,omitempty"` + // Flag to determine if user attributes are editable. + CanEditUserAttributes NullableBool `json:"canEditUserAttributes,omitempty"` } // NewUser instantiates a new User object @@ -190,6 +192,48 @@ func (o *User) UnsetAdministrator() { o.Administrator.Unset() } +// GetCanEditUserAttributes returns the CanEditUserAttributes field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *User) GetCanEditUserAttributes() bool { + if o == nil || IsNil(o.CanEditUserAttributes.Get()) { + var ret bool + return ret + } + return *o.CanEditUserAttributes.Get() +} + +// GetCanEditUserAttributesOk returns a tuple with the CanEditUserAttributes field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *User) GetCanEditUserAttributesOk() (*bool, bool) { + if o == nil { + return nil, false + } + return o.CanEditUserAttributes.Get(), o.CanEditUserAttributes.IsSet() +} + +// HasCanEditUserAttributes returns a boolean if a field has been set. +func (o *User) HasCanEditUserAttributes() bool { + if o != nil && o.CanEditUserAttributes.IsSet() { + return true + } + + return false +} + +// SetCanEditUserAttributes gets a reference to the given NullableBool and assigns it to the CanEditUserAttributes field. +func (o *User) SetCanEditUserAttributes(v bool) { + o.CanEditUserAttributes.Set(&v) +} +// SetCanEditUserAttributesNil sets the value for CanEditUserAttributes to be an explicit nil +func (o *User) SetCanEditUserAttributesNil() { + o.CanEditUserAttributes.Set(nil) +} + +// UnsetCanEditUserAttributes ensures that no value is present for CanEditUserAttributes, not even an explicit nil +func (o *User) UnsetCanEditUserAttributes() { + o.CanEditUserAttributes.Unset() +} + func (o User) MarshalJSON() ([]byte, error) { toSerialize,err := o.ToMap() if err != nil { @@ -207,6 +251,9 @@ func (o User) ToMap() (map[string]interface{}, error) { if o.Administrator.IsSet() { toSerialize["administrator"] = o.Administrator.Get() } + if o.CanEditUserAttributes.IsSet() { + toSerialize["canEditUserAttributes"] = o.CanEditUserAttributes.Get() + } return toSerialize, nil } diff --git a/model_user_error.go b/model_user_error.go index e2743285..3f0a6855 100644 --- a/model_user_error.go +++ b/model_user_error.go @@ -3,7 +3,7 @@ Corellium API REST API to manage your virtual devices. -API version: 6.1.0-20784 +API version: 7.0.0-25053 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_user_snapshots.go b/model_user_snapshots.go new file mode 100644 index 00000000..2677940e --- /dev/null +++ b/model_user_snapshots.go @@ -0,0 +1,144 @@ +/* +Corellium API + +REST API to manage your virtual devices. + +API version: 7.0.0-25053 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package corellium + +import ( + "encoding/json" +) + +// checks if the UserSnapshots type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &UserSnapshots{} + +// UserSnapshots +type UserSnapshots struct { + SharedWithUser SharedSnapshotsInfo `json:"sharedWithUser"` + SharedByUser SharedSnapshotsInfo `json:"sharedByUser"` +} + +// NewUserSnapshots instantiates a new UserSnapshots object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewUserSnapshots(sharedWithUser SharedSnapshotsInfo, sharedByUser SharedSnapshotsInfo) *UserSnapshots { + this := UserSnapshots{} + this.SharedWithUser = sharedWithUser + this.SharedByUser = sharedByUser + return &this +} + +// NewUserSnapshotsWithDefaults instantiates a new UserSnapshots object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewUserSnapshotsWithDefaults() *UserSnapshots { + this := UserSnapshots{} + return &this +} + +// GetSharedWithUser returns the SharedWithUser field value +func (o *UserSnapshots) GetSharedWithUser() SharedSnapshotsInfo { + if o == nil { + var ret SharedSnapshotsInfo + return ret + } + + return o.SharedWithUser +} + +// GetSharedWithUserOk returns a tuple with the SharedWithUser field value +// and a boolean to check if the value has been set. +func (o *UserSnapshots) GetSharedWithUserOk() (*SharedSnapshotsInfo, bool) { + if o == nil { + return nil, false + } + return &o.SharedWithUser, true +} + +// SetSharedWithUser sets field value +func (o *UserSnapshots) SetSharedWithUser(v SharedSnapshotsInfo) { + o.SharedWithUser = v +} + +// GetSharedByUser returns the SharedByUser field value +func (o *UserSnapshots) GetSharedByUser() SharedSnapshotsInfo { + if o == nil { + var ret SharedSnapshotsInfo + return ret + } + + return o.SharedByUser +} + +// GetSharedByUserOk returns a tuple with the SharedByUser field value +// and a boolean to check if the value has been set. +func (o *UserSnapshots) GetSharedByUserOk() (*SharedSnapshotsInfo, bool) { + if o == nil { + return nil, false + } + return &o.SharedByUser, true +} + +// SetSharedByUser sets field value +func (o *UserSnapshots) SetSharedByUser(v SharedSnapshotsInfo) { + o.SharedByUser = v +} + +func (o UserSnapshots) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o UserSnapshots) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["sharedWithUser"] = o.SharedWithUser + toSerialize["sharedByUser"] = o.SharedByUser + return toSerialize, nil +} + +type NullableUserSnapshots struct { + value *UserSnapshots + isSet bool +} + +func (v NullableUserSnapshots) Get() *UserSnapshots { + return v.value +} + +func (v *NullableUserSnapshots) Set(val *UserSnapshots) { + v.value = val + v.isSet = true +} + +func (v NullableUserSnapshots) IsSet() bool { + return v.isSet +} + +func (v *NullableUserSnapshots) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableUserSnapshots(val *UserSnapshots) *NullableUserSnapshots { + return &NullableUserSnapshots{value: val, isSet: true} +} + +func (v NullableUserSnapshots) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableUserSnapshots) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_v1_check_subdomain_existence_parameters.go b/model_v1_check_subdomain_existence_parameters.go new file mode 100644 index 00000000..da6b8a3e --- /dev/null +++ b/model_v1_check_subdomain_existence_parameters.go @@ -0,0 +1,118 @@ +/* +Corellium API + +REST API to manage your virtual devices. + +API version: 7.0.0-25053 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package corellium + +import ( + "encoding/json" +) + +// checks if the V1CheckSubdomainExistenceParameters type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &V1CheckSubdomainExistenceParameters{} + +// V1CheckSubdomainExistenceParameters +type V1CheckSubdomainExistenceParameters struct { + // Domain to check + Domain string `json:"domain"` +} + +// NewV1CheckSubdomainExistenceParameters instantiates a new V1CheckSubdomainExistenceParameters object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewV1CheckSubdomainExistenceParameters(domain string) *V1CheckSubdomainExistenceParameters { + this := V1CheckSubdomainExistenceParameters{} + this.Domain = domain + return &this +} + +// NewV1CheckSubdomainExistenceParametersWithDefaults instantiates a new V1CheckSubdomainExistenceParameters object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewV1CheckSubdomainExistenceParametersWithDefaults() *V1CheckSubdomainExistenceParameters { + this := V1CheckSubdomainExistenceParameters{} + return &this +} + +// GetDomain returns the Domain field value +func (o *V1CheckSubdomainExistenceParameters) GetDomain() string { + if o == nil { + var ret string + return ret + } + + return o.Domain +} + +// GetDomainOk returns a tuple with the Domain field value +// and a boolean to check if the value has been set. +func (o *V1CheckSubdomainExistenceParameters) GetDomainOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Domain, true +} + +// SetDomain sets field value +func (o *V1CheckSubdomainExistenceParameters) SetDomain(v string) { + o.Domain = v +} + +func (o V1CheckSubdomainExistenceParameters) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o V1CheckSubdomainExistenceParameters) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["domain"] = o.Domain + return toSerialize, nil +} + +type NullableV1CheckSubdomainExistenceParameters struct { + value *V1CheckSubdomainExistenceParameters + isSet bool +} + +func (v NullableV1CheckSubdomainExistenceParameters) Get() *V1CheckSubdomainExistenceParameters { + return v.value +} + +func (v *NullableV1CheckSubdomainExistenceParameters) Set(val *V1CheckSubdomainExistenceParameters) { + v.value = val + v.isSet = true +} + +func (v NullableV1CheckSubdomainExistenceParameters) IsSet() bool { + return v.isSet +} + +func (v *NullableV1CheckSubdomainExistenceParameters) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableV1CheckSubdomainExistenceParameters(val *V1CheckSubdomainExistenceParameters) *NullableV1CheckSubdomainExistenceParameters { + return &NullableV1CheckSubdomainExistenceParameters{value: val, isSet: true} +} + +func (v NullableV1CheckSubdomainExistenceParameters) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableV1CheckSubdomainExistenceParameters) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_v1_create_hook_parameters.go b/model_v1_create_hook_parameters.go index 532abd6a..01c94d5e 100644 --- a/model_v1_create_hook_parameters.go +++ b/model_v1_create_hook_parameters.go @@ -3,7 +3,7 @@ Corellium API REST API to manage your virtual devices. -API version: 6.1.0-20784 +API version: 7.0.0-25053 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_v1_load_extension_parameters.go b/model_v1_load_extension_parameters.go index 0343161f..190fd206 100644 --- a/model_v1_load_extension_parameters.go +++ b/model_v1_load_extension_parameters.go @@ -3,7 +3,7 @@ Corellium API REST API to manage your virtual devices. -API version: 6.1.0-20784 +API version: 7.0.0-25053 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_v1_set_state_body.go b/model_v1_set_state_body.go index 9ee78cec..6b128478 100644 --- a/model_v1_set_state_body.go +++ b/model_v1_set_state_body.go @@ -3,7 +3,7 @@ Corellium API REST API to manage your virtual devices. -API version: 6.1.0-20784 +API version: 7.0.0-25053 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_validation_error.go b/model_validation_error.go index b1537280..de1d608f 100644 --- a/model_validation_error.go +++ b/model_validation_error.go @@ -3,7 +3,7 @@ Corellium API REST API to manage your virtual devices. -API version: 6.1.0-20784 +API version: 7.0.0-25053 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_volume_options.go b/model_volume_options.go index 334a9cfe..64f5251f 100644 --- a/model_volume_options.go +++ b/model_volume_options.go @@ -3,7 +3,7 @@ Corellium API REST API to manage your virtual devices. -API version: 6.1.0-20784 +API version: 7.0.0-25053 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_vpn_definition.go b/model_vpn_definition.go index ab10448f..9fb72a05 100644 --- a/model_vpn_definition.go +++ b/model_vpn_definition.go @@ -3,7 +3,7 @@ Corellium API REST API to manage your virtual devices. -API version: 6.1.0-20784 +API version: 7.0.0-25053 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_web_player_create_session_request.go b/model_web_player_create_session_request.go index 516553ac..58dcbf05 100644 --- a/model_web_player_create_session_request.go +++ b/model_web_player_create_session_request.go @@ -3,7 +3,7 @@ Corellium API REST API to manage your virtual devices. -API version: 6.1.0-20784 +API version: 7.0.0-25053 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_web_player_session.go b/model_web_player_session.go index c6daf93b..dd45e786 100644 --- a/model_web_player_session.go +++ b/model_web_player_session.go @@ -3,7 +3,7 @@ Corellium API REST API to manage your virtual devices. -API version: 6.1.0-20784 +API version: 7.0.0-25053 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/response.go b/response.go index d6d157c8..1c253033 100644 --- a/response.go +++ b/response.go @@ -3,7 +3,7 @@ Corellium API REST API to manage your virtual devices. -API version: 6.1.0-20784 +API version: 7.0.0-25053 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/test/api_trial_requests_test.go b/test/api_activity_test.go similarity index 65% rename from test/api_trial_requests_test.go rename to test/api_activity_test.go index ced1d43c..95317638 100644 --- a/test/api_trial_requests_test.go +++ b/test/api_activity_test.go @@ -1,7 +1,7 @@ /* Corellium API -Testing TrialRequestsApiService +Testing ActivityApiService */ @@ -17,16 +17,16 @@ import ( openapiclient "github.com/corellium/go-corellium-api-client" ) -func Test_corellium_TrialRequestsApiService(t *testing.T) { +func Test_corellium_ActivityApiService(t *testing.T) { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - t.Run("Test TrialRequestsApiService V1CreateSubscriberInvite", func(t *testing.T) { + t.Run("Test ActivityApiService V1ActivityList", func(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.TrialRequestsApi.V1CreateSubscriberInvite(context.Background()).Execute() + resp, httpRes, err := apiClient.ActivityApi.V1ActivityList(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) diff --git a/test/api_licensing_test.go b/test/api_domain_test.go similarity index 69% rename from test/api_licensing_test.go rename to test/api_domain_test.go index 6153b64e..4bd3b54d 100644 --- a/test/api_licensing_test.go +++ b/test/api_domain_test.go @@ -1,7 +1,7 @@ /* Corellium API -Testing LicensingApiService +Testing DomainApiService */ @@ -17,16 +17,16 @@ import ( openapiclient "github.com/corellium/go-corellium-api-client" ) -func Test_corellium_LicensingApiService(t *testing.T) { +func Test_corellium_DomainApiService(t *testing.T) { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - t.Run("Test LicensingApiService V1GetSupportedFeatures", func(t *testing.T) { + t.Run("Test DomainApiService V1CheckSubdomainExistence", func(t *testing.T) { t.Skip("skip test") // remove to run test - resp, httpRes, err := apiClient.LicensingApi.V1GetSupportedFeatures(context.Background()).Execute() + resp, httpRes, err := apiClient.DomainApi.V1CheckSubdomainExistence(context.Background()).Execute() require.Nil(t, err) require.NotNil(t, resp) diff --git a/test/api_instances_test.go b/test/api_instances_test.go index dd6de8e7..218ebde8 100644 --- a/test/api_instances_test.go +++ b/test/api_instances_test.go @@ -264,20 +264,6 @@ func Test_corellium_InstancesApiService(t *testing.T) { }) - t.Run("Test InstancesApiService V1GetInstanceRate", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - var instanceId string - - resp, httpRes, err := apiClient.InstancesApi.V1GetInstanceRate(context.Background(), instanceId).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - t.Run("Test InstancesApiService V1GetInstanceScreenshot", func(t *testing.T) { t.Skip("skip test") // remove to run test diff --git a/test/api_matrix_test.go b/test/api_matrix_test.go new file mode 100644 index 00000000..5ed39358 --- /dev/null +++ b/test/api_matrix_test.go @@ -0,0 +1,140 @@ +/* +Corellium API + +Testing MatrixApiService + +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); + +package corellium + +import ( + "context" + "github.com/stretchr/testify/assert" + "github.com/stretchr/testify/require" + "testing" + openapiclient "github.com/corellium/go-corellium-api-client" +) + +func Test_corellium_MatrixApiService(t *testing.T) { + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + + t.Run("Test MatrixApiService CreateAssessment", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var instanceId string + + resp, httpRes, err := apiClient.MatrixApi.CreateAssessment(context.Background(), instanceId).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test MatrixApiService DeleteAssessment", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var instanceId string + var assessmentId string + + httpRes, err := apiClient.MatrixApi.DeleteAssessment(context.Background(), instanceId, assessmentId).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test MatrixApiService DownloadReport", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var instanceId string + var assessmentId string + + resp, httpRes, err := apiClient.MatrixApi.DownloadReport(context.Background(), instanceId, assessmentId).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test MatrixApiService GetAssessmentById", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var instanceId string + var assessmentId string + + resp, httpRes, err := apiClient.MatrixApi.GetAssessmentById(context.Background(), instanceId, assessmentId).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test MatrixApiService GetAssessmentsByInstanceId", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var instanceId string + + resp, httpRes, err := apiClient.MatrixApi.GetAssessmentsByInstanceId(context.Background(), instanceId).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test MatrixApiService RunTests", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var instanceId string + var assessmentId string + + resp, httpRes, err := apiClient.MatrixApi.RunTests(context.Background(), instanceId, assessmentId).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test MatrixApiService StartMonitoring", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var instanceId string + var assessmentId string + + httpRes, err := apiClient.MatrixApi.StartMonitoring(context.Background(), instanceId, assessmentId).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test MatrixApiService StopMonitoring", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var instanceId string + var assessmentId string + + httpRes, err := apiClient.MatrixApi.StopMonitoring(context.Background(), instanceId, assessmentId).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + +} diff --git a/test/api_net_connect_test.go b/test/api_net_connect_test.go new file mode 100644 index 00000000..747c536d --- /dev/null +++ b/test/api_net_connect_test.go @@ -0,0 +1,99 @@ +/* +Corellium API + +Testing NetConnectApiService + +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); + +package corellium + +import ( + "context" + "github.com/stretchr/testify/assert" + "github.com/stretchr/testify/require" + "testing" + openapiclient "github.com/corellium/go-corellium-api-client" +) + +func Test_corellium_NetConnectApiService(t *testing.T) { + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + + t.Run("Test NetConnectApiService V1CreateNetworkConnection", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + httpRes, err := apiClient.NetConnectApi.V1CreateNetworkConnection(context.Background()).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test NetConnectApiService V1DeleteNetworkConnection", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id string + + httpRes, err := apiClient.NetConnectApi.V1DeleteNetworkConnection(context.Background(), id).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test NetConnectApiService V1ListNetworkConnections", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.NetConnectApi.V1ListNetworkConnections(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test NetConnectApiService V1ListNetworkProviders", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.NetConnectApi.V1ListNetworkProviders(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test NetConnectApiService V1PartialUpdateNetworkConnection", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id string + + httpRes, err := apiClient.NetConnectApi.V1PartialUpdateNetworkConnection(context.Background(), id).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test NetConnectApiService V1UpdateNetworkConnection", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id string + + httpRes, err := apiClient.NetConnectApi.V1UpdateNetworkConnection(context.Background(), id).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + +} diff --git a/test/api_snapshot_sharing_test.go b/test/api_snapshot_sharing_test.go new file mode 100644 index 00000000..89d22f01 --- /dev/null +++ b/test/api_snapshot_sharing_test.go @@ -0,0 +1,91 @@ +/* +Corellium API + +Testing SnapshotSharingApiService + +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); + +package corellium + +import ( + "context" + "github.com/stretchr/testify/assert" + "github.com/stretchr/testify/require" + "testing" + openapiclient "github.com/corellium/go-corellium-api-client" +) + +func Test_corellium_SnapshotSharingApiService(t *testing.T) { + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + + t.Run("Test SnapshotSharingApiService V1AcceptSharedSnapshot", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.SnapshotSharingApi.V1AcceptSharedSnapshot(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test SnapshotSharingApiService V1DeleteSnapshotPermissions", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var snapshotId string + + resp, httpRes, err := apiClient.SnapshotSharingApi.V1DeleteSnapshotPermissions(context.Background(), snapshotId).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test SnapshotSharingApiService V1GetSharedSnapshots", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.SnapshotSharingApi.V1GetSharedSnapshots(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test SnapshotSharingApiService V1SetSnapshotPermissions", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var snapshotId string + + resp, httpRes, err := apiClient.SnapshotSharingApi.V1SetSnapshotPermissions(context.Background(), snapshotId).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test SnapshotSharingApiService V1ShareSnapshot", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var snapshotId string + + resp, httpRes, err := apiClient.SnapshotSharingApi.V1ShareSnapshot(context.Background(), snapshotId).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + +} diff --git a/test/api_snapshots_test.go b/test/api_snapshots_test.go index 62ed01b5..5806f827 100644 --- a/test/api_snapshots_test.go +++ b/test/api_snapshots_test.go @@ -63,20 +63,6 @@ func Test_corellium_SnapshotsApiService(t *testing.T) { }) - t.Run("Test SnapshotsApiService V1DeleteSnapshotPermissions", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - var snapshotId string - - resp, httpRes, err := apiClient.SnapshotsApi.V1DeleteSnapshotPermissions(context.Background(), snapshotId).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - t.Run("Test SnapshotsApiService V1GetInstanceSnapshot", func(t *testing.T) { t.Skip("skip test") // remove to run test @@ -106,18 +92,6 @@ func Test_corellium_SnapshotsApiService(t *testing.T) { }) - t.Run("Test SnapshotsApiService V1GetSharedSnapshots", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - resp, httpRes, err := apiClient.SnapshotsApi.V1GetSharedSnapshots(context.Background()).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - t.Run("Test SnapshotsApiService V1GetSnapshot", func(t *testing.T) { t.Skip("skip test") // remove to run test @@ -161,20 +135,6 @@ func Test_corellium_SnapshotsApiService(t *testing.T) { }) - t.Run("Test SnapshotsApiService V1SetSnapshotPermissions", func(t *testing.T) { - - t.Skip("skip test") // remove to run test - - var snapshotId string - - resp, httpRes, err := apiClient.SnapshotsApi.V1SetSnapshotPermissions(context.Background(), snapshotId).Execute() - - require.Nil(t, err) - require.NotNil(t, resp) - assert.Equal(t, 200, httpRes.StatusCode) - - }) - t.Run("Test SnapshotsApiService V1SnapshotRename", func(t *testing.T) { t.Skip("skip test") // remove to run test diff --git a/test/api_web_player_test.go b/test/api_web_player_test.go new file mode 100644 index 00000000..01279054 --- /dev/null +++ b/test/api_web_player_test.go @@ -0,0 +1,88 @@ +/* +Corellium API + +Testing WebPlayerApiService + +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); + +package corellium + +import ( + "context" + "github.com/stretchr/testify/assert" + "github.com/stretchr/testify/require" + "testing" + openapiclient "github.com/corellium/go-corellium-api-client" +) + +func Test_corellium_WebPlayerApiService(t *testing.T) { + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + + t.Run("Test WebPlayerApiService V1WebPlayerAllowedDomains", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.WebPlayerApi.V1WebPlayerAllowedDomains(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test WebPlayerApiService V1WebPlayerCreateSession", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.WebPlayerApi.V1WebPlayerCreateSession(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test WebPlayerApiService V1WebPlayerDestroySession", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var sessionId string + + httpRes, err := apiClient.WebPlayerApi.V1WebPlayerDestroySession(context.Background(), sessionId).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test WebPlayerApiService V1WebPlayerListSessions", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.WebPlayerApi.V1WebPlayerListSessions(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test WebPlayerApiService V1WebPlayerSessionInfo", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var sessionId string + + resp, httpRes, err := apiClient.WebPlayerApi.V1WebPlayerSessionInfo(context.Background(), sessionId).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + +} diff --git a/utils.go b/utils.go index 8019031c..98d71f78 100644 --- a/utils.go +++ b/utils.go @@ -3,7 +3,7 @@ Corellium API REST API to manage your virtual devices. -API version: 6.1.0-20784 +API version: 7.0.0-25053 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.