diff --git a/.openapi-generator/FILES b/.openapi-generator/FILES index 951a3b9..d84721a 100644 --- a/.openapi-generator/FILES +++ b/.openapi-generator/FILES @@ -57,6 +57,7 @@ docs/CouponOptions.md docs/CreateTeam.md docs/CreatedBy.md docs/Credentials.md +docs/DeleteSnapshotPermissionsRequestPayload.md docs/DomainAuthProviderApi.md docs/DomainAuthProviderRequest.md docs/DomainAuthProviderResponse.md @@ -99,6 +100,7 @@ docs/LicensingApi.md docs/Logging.md docs/Maintenance.md docs/MediaPlayBody.md +docs/MeteredSubscriptionUsage.md docs/Model.md docs/ModelSoftware.md docs/ModelsApi.md @@ -110,6 +112,7 @@ docs/PasswordResetBody.md docs/PatchInstanceOptions.md docs/PeripheralsData.md docs/Plan.md +docs/PostSnapshotPermissionsRequestPayload.md docs/Project.md docs/ProjectKey.md docs/ProjectQuota.md @@ -124,9 +127,10 @@ docs/RolesApi.md docs/RotateBody.md docs/Snapshot.md docs/SnapshotCreationOptions.md -docs/SnapshotInvitationTypes.md docs/SnapshotPermissions.md +docs/SnapshotSharing.md docs/SnapshotStatus.md +docs/SnapshotUser.md docs/SnapshotsApi.md docs/StatusApi.md docs/SubscriberInvite.md @@ -187,6 +191,7 @@ model_coupon_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 @@ -223,6 +228,7 @@ model_kernel_thread.go model_logging.go model_maintenance.go model_media_play_body.go +model_metered_subscription_usage.go model_model.go model_model_software.go model_netdump_filter.go @@ -232,6 +238,7 @@ 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_project.go model_project_key.go model_project_quota.go @@ -244,9 +251,10 @@ model_role.go model_rotate_body.go model_snapshot.go model_snapshot_creation_options.go -model_snapshot_invitation_types.go model_snapshot_permissions.go +model_snapshot_sharing.go model_snapshot_status.go +model_snapshot_user.go model_subscriber_invite.go model_team.go model_team_create.go diff --git a/README.md b/README.md index 5c37b75..f4338ad 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.0.0-20323 +- API version: 6.1.0-20784 - Package version: 1.0.0 - Build package: org.openapitools.codegen.languages.GoClientCodegen @@ -209,11 +209,14 @@ Class | Method | HTTP request | Description *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* | [**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* | [**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 @@ -266,6 +269,7 @@ Class | Method | HTTP request | Description - [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) @@ -302,6 +306,7 @@ Class | Method | HTTP request | Description - [Logging](docs/Logging.md) - [Maintenance](docs/Maintenance.md) - [MediaPlayBody](docs/MediaPlayBody.md) + - [MeteredSubscriptionUsage](docs/MeteredSubscriptionUsage.md) - [Model](docs/Model.md) - [ModelSoftware](docs/ModelSoftware.md) - [NetdumpFilter](docs/NetdumpFilter.md) @@ -311,6 +316,7 @@ Class | Method | HTTP request | Description - [PatchInstanceOptions](docs/PatchInstanceOptions.md) - [PeripheralsData](docs/PeripheralsData.md) - [Plan](docs/Plan.md) + - [PostSnapshotPermissionsRequestPayload](docs/PostSnapshotPermissionsRequestPayload.md) - [Project](docs/Project.md) - [ProjectKey](docs/ProjectKey.md) - [ProjectQuota](docs/ProjectQuota.md) @@ -323,9 +329,10 @@ Class | Method | HTTP request | Description - [RotateBody](docs/RotateBody.md) - [Snapshot](docs/Snapshot.md) - [SnapshotCreationOptions](docs/SnapshotCreationOptions.md) - - [SnapshotInvitationTypes](docs/SnapshotInvitationTypes.md) - [SnapshotPermissions](docs/SnapshotPermissions.md) + - [SnapshotSharing](docs/SnapshotSharing.md) - [SnapshotStatus](docs/SnapshotStatus.md) + - [SnapshotUser](docs/SnapshotUser.md) - [SubscriberInvite](docs/SubscriberInvite.md) - [Team](docs/Team.md) - [TeamCreate](docs/TeamCreate.md) diff --git a/api/openapi.yaml b/api/openapi.yaml index a500b69..f9f3547 100644 --- a/api/openapi.yaml +++ b/api/openapi.yaml @@ -3,7 +3,7 @@ info: description: REST API to manage your virtual devices. termsOfService: https://www.corellium.com/legal/terms title: Corellium API - version: 6.0.0-20323 + version: 6.1.0-20784 servers: - description: "" url: "https://{serverName}/api" @@ -5667,6 +5667,10 @@ paths: /v1/projects/{projectId}/vpnconfig/{format}: get: deprecated: false + description: "A Project VPN allows connection _into_ virtual devices in the\ + \ project (e.g., connecting a researcher's computer as a VPN client to a virtual\ + \ device within the project). If a Project VPN has been defined, this will\ + \ return the configuration." operationId: v1GetProjectVpnConfig parameters: - deprecated: false @@ -5696,6 +5700,20 @@ paths: schema: type: string description: OpenVPN Configuration + "400": + content: + application/json: + examples: + example2: + summary: User Error + value: + error: "Project {projectId} does not have an active VPN IP or\ + \ port" + errorID: UserError + field: projectId + schema: + $ref: '#/components/schemas/ApiError' + description: User Error "403": content: application/json: @@ -6184,6 +6202,211 @@ paths: summary: Add team role to project tags: - Roles + /v1/snapshots/{snapshotId}/permissions: + delete: + deprecated: false + operationId: v1DeleteSnapshotPermissions + parameters: + - deprecated: false + description: Snapshot ID - uuid + explode: false + in: path + name: snapshotId + required: true + schema: + type: string + style: simple + requestBody: + content: + application/json: + examples: + example1: + summary: application/json + value: |- + { + "email": "jcalhoun@meta.com", + "userId": 'cef72e47-68af-4d3e-b122-01094216a0ce' + } + schema: + $ref: '#/components/schemas/DeleteSnapshotPermissionsRequestPayload' + 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 + "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, + } + ] + } + 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: Snapshot with snapshotID=3a28e565-cf46-4706-86e7-e3af6b33ae0dd + not found + errorID: NotFound + name: Snapshot + params: + SnapshotId: 3a28e565-cf46-4706-86e7-e3af6b33ae0dd + 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 + tags: + - Snapshots + 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 + requestBody: + content: + application/json: + examples: + example1: + summary: application/json + value: |- + { + "email": "jcalhoun@meta.com", + "userId": 'cef72e47-68af-4d3e-b122-01094216a0ce' + } + schema: + $ref: '#/components/schemas/PostSnapshotPermissionsRequestPayload' + 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 + "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, + } + ] + } + 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: Snapshot with snapshotID=3a28e565-cf46-4706-86e7-e3af6b33ae0dd + not found + errorID: NotFound + name: Snapshot + params: + SnapshotId: 3a28e565-cf46-4706-86e7-e3af6b33ae0dd + 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 + tags: + - Snapshots /v1/snapshots/{snapshotId}: delete: deprecated: false @@ -6378,6 +6601,80 @@ paths: summary: Rename a Snapshot tags: - Snapshots + /v1/snapshots: + get: + deprecated: false + operationId: v1GetSharedSnapshots + parameters: [] + 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 + "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: Fetch snapshots shared with and shared by the requesting user + tags: + - Snapshots /v1/teams: get: deprecated: false @@ -7201,6 +7498,50 @@ components: - reusable - updatedAt type: object + MeteredSubscriptionUsage: + description: "" + properties: + burst_rate: + description: Unit price + nullable: true + type: number + allocated_hours: + description: Allocated hours + nullable: true + type: number + plan_billed_amount: + description: Plan cost + nullable: true + type: number + plan_billed_units: + description: Units included in plan + nullable: true + type: number + burst_billed_amount: + description: Amount billed + nullable: true + type: number + burst_billed_units: + description: Units billed + nullable: true + type: number + burst_outstanding_amount: + description: Outstanding amount + nullable: true + type: number + burst_outstanding_units: + description: Outstanding units + nullable: true + type: number + total_usage_amount: + description: Total cost in cents for current period + nullable: true + type: number + total_used_units: + description: Total used units for current period + nullable: true + type: number + type: object EmptyResponse: description: "" properties: {} @@ -7635,12 +7976,6 @@ components: description: Indicates if snapshot permissions are enabled nullable: true type: boolean - invitationTypes: - $ref: '#/components/schemas/SnapshotInvitationTypes' - type: object - SnapshotInvitationTypes: - description: "" - properties: publicLink: description: Indicates if public link access is enabled nullable: true @@ -9841,6 +10176,65 @@ components: - role - user type: object + SnapshotUser: + description: "" + example: + inviteSentAt: 6.027456183070403 + label: label + userId: userId + email: email + timestamp: 1.4658129805029452 + properties: + email: + description: The email of the user. + type: string + inviteSentAt: + description: The date when the invite was sent. + type: number + timestamp: + description: The timestamp. + type: number + userId: + description: The user ID. + type: string + label: + description: The label. + type: string + required: + - email + - inviteSentAt + - label + - timestamp + - userId + type: object + SnapshotSharing: + description: "" + example: + url: url + users: + - inviteSentAt: 6.027456183070403 + label: label + userId: userId + email: email + timestamp: 1.4658129805029452 + - inviteSentAt: 6.027456183070403 + label: label + userId: userId + email: email + timestamp: 1.4658129805029452 + properties: + url: + description: The URL of the snapshot. + type: string + users: + description: The users who have access to the snapshot. + items: + $ref: '#/components/schemas/SnapshotUser' + type: array + required: + - url + - users + type: object SnapshotStatus: description: "" example: @@ -9848,13 +10242,14 @@ components: created: true properties: task: - description: "" - nullable: true + description: The current task being performed on the snapshot. type: string created: - description: "" - nullable: true + description: Indicates if the snapshot has been successfully created. type: boolean + required: + - created + - task type: object Snapshot: description: "" @@ -9864,6 +10259,19 @@ components: name: name id: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 fresh: true + sharing: + url: url + users: + - inviteSentAt: 6.027456183070403 + label: label + userId: userId + email: email + timestamp: 1.4658129805029452 + - inviteSentAt: 6.027456183070403 + label: label + userId: userId + email: email + timestamp: 1.4658129805029452 live: true local: true status: @@ -9873,35 +10281,70 @@ components: id: description: Snapshot ID format: uuid - nullable: true type: string name: description: Snapshot name - nullable: true type: string instance: description: Instance that this snapshot is of format: uuid - nullable: true type: string status: $ref: '#/components/schemas/SnapshotStatus' date: description: UNIX Date that the snapshot was created - nullable: true type: number fresh: description: "" - nullable: true type: boolean live: description: Live snapshot (included state and memory) - nullable: true type: boolean local: description: "" - nullable: true type: boolean + sharing: + $ref: '#/components/schemas/SnapshotSharing' + required: + - date + - fresh + - id + - instance + - live + - local + - name + - status + type: object + PostSnapshotPermissionsRequestPayload: + description: "" + example: + userId: userId + email: email + properties: + email: + description: The email of the user. + type: string + userId: + description: The user ID. + nullable: true + type: string + required: + - email + type: object + DeleteSnapshotPermissionsRequestPayload: + description: "" + example: + userId: userId + email: email + properties: + email: + description: The email of the user. + nullable: true + type: string + userId: + description: The user ID. + nullable: true + type: string type: object SnapshotCreationOptions: description: "" diff --git a/api_agent.go b/api_agent.go index 1af4e41..a40b0e2 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.0.0-20323 +API version: 6.1.0-20784 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/api_authentication.go b/api_authentication.go index ff2d3a4..c4ca1ce 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.0.0-20323 +API version: 6.1.0-20784 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/api_config.go b/api_config.go index 23b4299..bc09d45 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.0.0-20323 +API version: 6.1.0-20784 */ // 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 c5fc5c8..b55717d 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.0.0-20323 +API version: 6.1.0-20784 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/api_domain_auth_provider.go b/api_domain_auth_provider.go index d12a8e0..4c34c3a 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.0.0-20323 +API version: 6.1.0-20784 */ // 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 f52c835..e724ba7 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.0.0-20323 +API version: 6.1.0-20784 */ // 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 f43305a..c8fd4f7 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.0.0-20323 +API version: 6.1.0-20784 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/api_images.go b/api_images.go index 7228bdc..d9ea49b 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.0.0-20323 +API version: 6.1.0-20784 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/api_instances.go b/api_instances.go index 208af26..86b5272 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.0.0-20323 +API version: 6.1.0-20784 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/api_licensing.go b/api_licensing.go index 9e912c4..d345b37 100644 --- a/api_licensing.go +++ b/api_licensing.go @@ -3,7 +3,7 @@ Corellium API REST API to manage your virtual devices. -API version: 6.0.0-20323 +API version: 6.1.0-20784 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/api_models.go b/api_models.go index f251b79..7c004f1 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.0.0-20323 +API version: 6.1.0-20784 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/api_netdump.go b/api_netdump.go index 0641139..d47989d 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.0.0-20323 +API version: 6.1.0-20784 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/api_projects.go b/api_projects.go index 7ab1998..118e108 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.0.0-20323 +API version: 6.1.0-20784 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -732,6 +732,8 @@ func (r ProjectsApiV1GetProjectVpnConfigRequest) Execute() (string, *http.Respon /* V1GetProjectVpnConfig Get Project VPN Configuration +A Project VPN allows connection _into_ virtual devices in the project (e.g., connecting a researcher's computer as a VPN client to a virtual device within the project). If a Project VPN has been defined, this will return the configuration. + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param projectId Project ID - uuid @param format VPN Config format @@ -808,6 +810,17 @@ func (a *ProjectsApiService) V1GetProjectVpnConfigExecute(r ProjectsApiV1GetProj 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 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")) diff --git a/api_roles.go b/api_roles.go index fd698b0..962621f 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.0.0-20323 +API version: 6.1.0-20784 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/api_snapshots.go b/api_snapshots.go index 8bc4fd7..7296e9e 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.0.0-20323 +API version: 6.1.0-20784 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -383,6 +383,140 @@ 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 @@ -631,6 +765,124 @@ 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 @@ -1006,6 +1258,140 @@ 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 ada132c..0869d11 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.0.0-20323 +API version: 6.1.0-20784 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/api_teams.go b/api_teams.go index 3fa979e..22d8fde 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.0.0-20323 +API version: 6.1.0-20784 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/api_trial_requests.go b/api_trial_requests.go index 6800b9b..e2ac8ab 100644 --- a/api_trial_requests.go +++ b/api_trial_requests.go @@ -3,7 +3,7 @@ Corellium API REST API to manage your virtual devices. -API version: 6.0.0-20323 +API version: 6.1.0-20784 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/api_users.go b/api_users.go index 4ed8092..42a29ab 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.0.0-20323 +API version: 6.1.0-20784 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/client.go b/client.go index 83cec54..6ed1eb2 100644 --- a/client.go +++ b/client.go @@ -3,7 +3,7 @@ Corellium API REST API to manage your virtual devices. -API version: 6.0.0-20323 +API version: 6.1.0-20784 */ // 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.0.0-20323 +// APIClient manages communication with the Corellium API API v6.1.0-20784 // In most cases there should be only one, shared, APIClient. type APIClient struct { cfg *Configuration diff --git a/configuration.go b/configuration.go index 97d3f29..cc4bd73 100644 --- a/configuration.go +++ b/configuration.go @@ -3,7 +3,7 @@ Corellium API REST API to manage your virtual devices. -API version: 6.0.0-20323 +API version: 6.1.0-20784 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/docs/DeleteSnapshotPermissionsRequestPayload.md b/docs/DeleteSnapshotPermissionsRequestPayload.md new file mode 100644 index 0000000..0ac31ba --- /dev/null +++ b/docs/DeleteSnapshotPermissionsRequestPayload.md @@ -0,0 +1,102 @@ +# DeleteSnapshotPermissionsRequestPayload + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Email** | Pointer to **NullableString** | The email of the user. | [optional] +**UserId** | Pointer to **NullableString** | The user ID. | [optional] + +## Methods + +### NewDeleteSnapshotPermissionsRequestPayload + +`func NewDeleteSnapshotPermissionsRequestPayload() *DeleteSnapshotPermissionsRequestPayload` + +NewDeleteSnapshotPermissionsRequestPayload instantiates a new DeleteSnapshotPermissionsRequestPayload object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewDeleteSnapshotPermissionsRequestPayloadWithDefaults + +`func NewDeleteSnapshotPermissionsRequestPayloadWithDefaults() *DeleteSnapshotPermissionsRequestPayload` + +NewDeleteSnapshotPermissionsRequestPayloadWithDefaults instantiates a new DeleteSnapshotPermissionsRequestPayload object +This 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 *DeleteSnapshotPermissionsRequestPayload) GetEmail() string` + +GetEmail returns the Email field if non-nil, zero value otherwise. + +### GetEmailOk + +`func (o *DeleteSnapshotPermissionsRequestPayload) 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 *DeleteSnapshotPermissionsRequestPayload) SetEmail(v string)` + +SetEmail sets Email field to given value. + +### HasEmail + +`func (o *DeleteSnapshotPermissionsRequestPayload) HasEmail() bool` + +HasEmail returns a boolean if a field has been set. + +### SetEmailNil + +`func (o *DeleteSnapshotPermissionsRequestPayload) SetEmailNil(b bool)` + + SetEmailNil sets the value for Email to be an explicit nil + +### UnsetEmail +`func (o *DeleteSnapshotPermissionsRequestPayload) UnsetEmail()` + +UnsetEmail ensures that no value is present for Email, not even an explicit nil +### GetUserId + +`func (o *DeleteSnapshotPermissionsRequestPayload) GetUserId() string` + +GetUserId returns the UserId field if non-nil, zero value otherwise. + +### GetUserIdOk + +`func (o *DeleteSnapshotPermissionsRequestPayload) 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 *DeleteSnapshotPermissionsRequestPayload) SetUserId(v string)` + +SetUserId sets UserId field to given value. + +### HasUserId + +`func (o *DeleteSnapshotPermissionsRequestPayload) HasUserId() bool` + +HasUserId returns a boolean if a field has been set. + +### SetUserIdNil + +`func (o *DeleteSnapshotPermissionsRequestPayload) SetUserIdNil(b bool)` + + SetUserIdNil sets the value for UserId to be an explicit nil + +### UnsetUserId +`func (o *DeleteSnapshotPermissionsRequestPayload) UnsetUserId()` + +UnsetUserId ensures that no value is present for UserId, 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/MeteredSubscriptionUsage.md b/docs/MeteredSubscriptionUsage.md new file mode 100644 index 0000000..e7cf33f --- /dev/null +++ b/docs/MeteredSubscriptionUsage.md @@ -0,0 +1,390 @@ +# MeteredSubscriptionUsage + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**BurstRate** | Pointer to **NullableFloat32** | Unit price | [optional] +**AllocatedHours** | Pointer to **NullableFloat32** | Allocated hours | [optional] +**PlanBilledAmount** | Pointer to **NullableFloat32** | Plan cost | [optional] +**PlanBilledUnits** | Pointer to **NullableFloat32** | Units included in plan | [optional] +**BurstBilledAmount** | Pointer to **NullableFloat32** | Amount billed | [optional] +**BurstBilledUnits** | Pointer to **NullableFloat32** | Units billed | [optional] +**BurstOutstandingAmount** | Pointer to **NullableFloat32** | Outstanding amount | [optional] +**BurstOutstandingUnits** | Pointer to **NullableFloat32** | Outstanding units | [optional] +**TotalUsageAmount** | Pointer to **NullableFloat32** | Total cost in cents for current period | [optional] +**TotalUsedUnits** | Pointer to **NullableFloat32** | Total used units for current period | [optional] + +## Methods + +### NewMeteredSubscriptionUsage + +`func NewMeteredSubscriptionUsage() *MeteredSubscriptionUsage` + +NewMeteredSubscriptionUsage instantiates a new MeteredSubscriptionUsage object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewMeteredSubscriptionUsageWithDefaults + +`func NewMeteredSubscriptionUsageWithDefaults() *MeteredSubscriptionUsage` + +NewMeteredSubscriptionUsageWithDefaults instantiates a new MeteredSubscriptionUsage object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetBurstRate + +`func (o *MeteredSubscriptionUsage) GetBurstRate() float32` + +GetBurstRate returns the BurstRate field if non-nil, zero value otherwise. + +### GetBurstRateOk + +`func (o *MeteredSubscriptionUsage) GetBurstRateOk() (*float32, bool)` + +GetBurstRateOk returns a tuple with the BurstRate field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetBurstRate + +`func (o *MeteredSubscriptionUsage) SetBurstRate(v float32)` + +SetBurstRate sets BurstRate field to given value. + +### HasBurstRate + +`func (o *MeteredSubscriptionUsage) HasBurstRate() bool` + +HasBurstRate returns a boolean if a field has been set. + +### SetBurstRateNil + +`func (o *MeteredSubscriptionUsage) SetBurstRateNil(b bool)` + + SetBurstRateNil sets the value for BurstRate to be an explicit nil + +### UnsetBurstRate +`func (o *MeteredSubscriptionUsage) UnsetBurstRate()` + +UnsetBurstRate ensures that no value is present for BurstRate, not even an explicit nil +### GetAllocatedHours + +`func (o *MeteredSubscriptionUsage) GetAllocatedHours() float32` + +GetAllocatedHours returns the AllocatedHours field if non-nil, zero value otherwise. + +### GetAllocatedHoursOk + +`func (o *MeteredSubscriptionUsage) GetAllocatedHoursOk() (*float32, bool)` + +GetAllocatedHoursOk returns a tuple with the AllocatedHours field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAllocatedHours + +`func (o *MeteredSubscriptionUsage) SetAllocatedHours(v float32)` + +SetAllocatedHours sets AllocatedHours field to given value. + +### HasAllocatedHours + +`func (o *MeteredSubscriptionUsage) HasAllocatedHours() bool` + +HasAllocatedHours returns a boolean if a field has been set. + +### SetAllocatedHoursNil + +`func (o *MeteredSubscriptionUsage) SetAllocatedHoursNil(b bool)` + + SetAllocatedHoursNil sets the value for AllocatedHours to be an explicit nil + +### UnsetAllocatedHours +`func (o *MeteredSubscriptionUsage) UnsetAllocatedHours()` + +UnsetAllocatedHours ensures that no value is present for AllocatedHours, not even an explicit nil +### GetPlanBilledAmount + +`func (o *MeteredSubscriptionUsage) GetPlanBilledAmount() float32` + +GetPlanBilledAmount returns the PlanBilledAmount field if non-nil, zero value otherwise. + +### GetPlanBilledAmountOk + +`func (o *MeteredSubscriptionUsage) GetPlanBilledAmountOk() (*float32, bool)` + +GetPlanBilledAmountOk returns a tuple with the PlanBilledAmount field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPlanBilledAmount + +`func (o *MeteredSubscriptionUsage) SetPlanBilledAmount(v float32)` + +SetPlanBilledAmount sets PlanBilledAmount field to given value. + +### HasPlanBilledAmount + +`func (o *MeteredSubscriptionUsage) HasPlanBilledAmount() bool` + +HasPlanBilledAmount returns a boolean if a field has been set. + +### SetPlanBilledAmountNil + +`func (o *MeteredSubscriptionUsage) SetPlanBilledAmountNil(b bool)` + + SetPlanBilledAmountNil sets the value for PlanBilledAmount to be an explicit nil + +### UnsetPlanBilledAmount +`func (o *MeteredSubscriptionUsage) UnsetPlanBilledAmount()` + +UnsetPlanBilledAmount ensures that no value is present for PlanBilledAmount, not even an explicit nil +### GetPlanBilledUnits + +`func (o *MeteredSubscriptionUsage) GetPlanBilledUnits() float32` + +GetPlanBilledUnits returns the PlanBilledUnits field if non-nil, zero value otherwise. + +### GetPlanBilledUnitsOk + +`func (o *MeteredSubscriptionUsage) GetPlanBilledUnitsOk() (*float32, bool)` + +GetPlanBilledUnitsOk returns a tuple with the PlanBilledUnits field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPlanBilledUnits + +`func (o *MeteredSubscriptionUsage) SetPlanBilledUnits(v float32)` + +SetPlanBilledUnits sets PlanBilledUnits field to given value. + +### HasPlanBilledUnits + +`func (o *MeteredSubscriptionUsage) HasPlanBilledUnits() bool` + +HasPlanBilledUnits returns a boolean if a field has been set. + +### SetPlanBilledUnitsNil + +`func (o *MeteredSubscriptionUsage) SetPlanBilledUnitsNil(b bool)` + + SetPlanBilledUnitsNil sets the value for PlanBilledUnits to be an explicit nil + +### UnsetPlanBilledUnits +`func (o *MeteredSubscriptionUsage) UnsetPlanBilledUnits()` + +UnsetPlanBilledUnits ensures that no value is present for PlanBilledUnits, not even an explicit nil +### GetBurstBilledAmount + +`func (o *MeteredSubscriptionUsage) GetBurstBilledAmount() float32` + +GetBurstBilledAmount returns the BurstBilledAmount field if non-nil, zero value otherwise. + +### GetBurstBilledAmountOk + +`func (o *MeteredSubscriptionUsage) GetBurstBilledAmountOk() (*float32, bool)` + +GetBurstBilledAmountOk returns a tuple with the BurstBilledAmount field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetBurstBilledAmount + +`func (o *MeteredSubscriptionUsage) SetBurstBilledAmount(v float32)` + +SetBurstBilledAmount sets BurstBilledAmount field to given value. + +### HasBurstBilledAmount + +`func (o *MeteredSubscriptionUsage) HasBurstBilledAmount() bool` + +HasBurstBilledAmount returns a boolean if a field has been set. + +### SetBurstBilledAmountNil + +`func (o *MeteredSubscriptionUsage) SetBurstBilledAmountNil(b bool)` + + SetBurstBilledAmountNil sets the value for BurstBilledAmount to be an explicit nil + +### UnsetBurstBilledAmount +`func (o *MeteredSubscriptionUsage) UnsetBurstBilledAmount()` + +UnsetBurstBilledAmount ensures that no value is present for BurstBilledAmount, not even an explicit nil +### GetBurstBilledUnits + +`func (o *MeteredSubscriptionUsage) GetBurstBilledUnits() float32` + +GetBurstBilledUnits returns the BurstBilledUnits field if non-nil, zero value otherwise. + +### GetBurstBilledUnitsOk + +`func (o *MeteredSubscriptionUsage) GetBurstBilledUnitsOk() (*float32, bool)` + +GetBurstBilledUnitsOk returns a tuple with the BurstBilledUnits field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetBurstBilledUnits + +`func (o *MeteredSubscriptionUsage) SetBurstBilledUnits(v float32)` + +SetBurstBilledUnits sets BurstBilledUnits field to given value. + +### HasBurstBilledUnits + +`func (o *MeteredSubscriptionUsage) HasBurstBilledUnits() bool` + +HasBurstBilledUnits returns a boolean if a field has been set. + +### SetBurstBilledUnitsNil + +`func (o *MeteredSubscriptionUsage) SetBurstBilledUnitsNil(b bool)` + + SetBurstBilledUnitsNil sets the value for BurstBilledUnits to be an explicit nil + +### UnsetBurstBilledUnits +`func (o *MeteredSubscriptionUsage) UnsetBurstBilledUnits()` + +UnsetBurstBilledUnits ensures that no value is present for BurstBilledUnits, not even an explicit nil +### GetBurstOutstandingAmount + +`func (o *MeteredSubscriptionUsage) GetBurstOutstandingAmount() float32` + +GetBurstOutstandingAmount returns the BurstOutstandingAmount field if non-nil, zero value otherwise. + +### GetBurstOutstandingAmountOk + +`func (o *MeteredSubscriptionUsage) GetBurstOutstandingAmountOk() (*float32, bool)` + +GetBurstOutstandingAmountOk returns a tuple with the BurstOutstandingAmount field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetBurstOutstandingAmount + +`func (o *MeteredSubscriptionUsage) SetBurstOutstandingAmount(v float32)` + +SetBurstOutstandingAmount sets BurstOutstandingAmount field to given value. + +### HasBurstOutstandingAmount + +`func (o *MeteredSubscriptionUsage) HasBurstOutstandingAmount() bool` + +HasBurstOutstandingAmount returns a boolean if a field has been set. + +### SetBurstOutstandingAmountNil + +`func (o *MeteredSubscriptionUsage) SetBurstOutstandingAmountNil(b bool)` + + SetBurstOutstandingAmountNil sets the value for BurstOutstandingAmount to be an explicit nil + +### UnsetBurstOutstandingAmount +`func (o *MeteredSubscriptionUsage) UnsetBurstOutstandingAmount()` + +UnsetBurstOutstandingAmount ensures that no value is present for BurstOutstandingAmount, not even an explicit nil +### GetBurstOutstandingUnits + +`func (o *MeteredSubscriptionUsage) GetBurstOutstandingUnits() float32` + +GetBurstOutstandingUnits returns the BurstOutstandingUnits field if non-nil, zero value otherwise. + +### GetBurstOutstandingUnitsOk + +`func (o *MeteredSubscriptionUsage) GetBurstOutstandingUnitsOk() (*float32, bool)` + +GetBurstOutstandingUnitsOk returns a tuple with the BurstOutstandingUnits field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetBurstOutstandingUnits + +`func (o *MeteredSubscriptionUsage) SetBurstOutstandingUnits(v float32)` + +SetBurstOutstandingUnits sets BurstOutstandingUnits field to given value. + +### HasBurstOutstandingUnits + +`func (o *MeteredSubscriptionUsage) HasBurstOutstandingUnits() bool` + +HasBurstOutstandingUnits returns a boolean if a field has been set. + +### SetBurstOutstandingUnitsNil + +`func (o *MeteredSubscriptionUsage) SetBurstOutstandingUnitsNil(b bool)` + + SetBurstOutstandingUnitsNil sets the value for BurstOutstandingUnits to be an explicit nil + +### UnsetBurstOutstandingUnits +`func (o *MeteredSubscriptionUsage) UnsetBurstOutstandingUnits()` + +UnsetBurstOutstandingUnits ensures that no value is present for BurstOutstandingUnits, not even an explicit nil +### GetTotalUsageAmount + +`func (o *MeteredSubscriptionUsage) GetTotalUsageAmount() float32` + +GetTotalUsageAmount returns the TotalUsageAmount field if non-nil, zero value otherwise. + +### GetTotalUsageAmountOk + +`func (o *MeteredSubscriptionUsage) GetTotalUsageAmountOk() (*float32, bool)` + +GetTotalUsageAmountOk returns a tuple with the TotalUsageAmount field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTotalUsageAmount + +`func (o *MeteredSubscriptionUsage) SetTotalUsageAmount(v float32)` + +SetTotalUsageAmount sets TotalUsageAmount field to given value. + +### HasTotalUsageAmount + +`func (o *MeteredSubscriptionUsage) HasTotalUsageAmount() bool` + +HasTotalUsageAmount returns a boolean if a field has been set. + +### SetTotalUsageAmountNil + +`func (o *MeteredSubscriptionUsage) SetTotalUsageAmountNil(b bool)` + + SetTotalUsageAmountNil sets the value for TotalUsageAmount to be an explicit nil + +### UnsetTotalUsageAmount +`func (o *MeteredSubscriptionUsage) UnsetTotalUsageAmount()` + +UnsetTotalUsageAmount ensures that no value is present for TotalUsageAmount, not even an explicit nil +### GetTotalUsedUnits + +`func (o *MeteredSubscriptionUsage) GetTotalUsedUnits() float32` + +GetTotalUsedUnits returns the TotalUsedUnits field if non-nil, zero value otherwise. + +### GetTotalUsedUnitsOk + +`func (o *MeteredSubscriptionUsage) GetTotalUsedUnitsOk() (*float32, bool)` + +GetTotalUsedUnitsOk returns a tuple with the TotalUsedUnits field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTotalUsedUnits + +`func (o *MeteredSubscriptionUsage) SetTotalUsedUnits(v float32)` + +SetTotalUsedUnits sets TotalUsedUnits field to given value. + +### HasTotalUsedUnits + +`func (o *MeteredSubscriptionUsage) HasTotalUsedUnits() bool` + +HasTotalUsedUnits returns a boolean if a field has been set. + +### SetTotalUsedUnitsNil + +`func (o *MeteredSubscriptionUsage) SetTotalUsedUnitsNil(b bool)` + + SetTotalUsedUnitsNil sets the value for TotalUsedUnits to be an explicit nil + +### UnsetTotalUsedUnits +`func (o *MeteredSubscriptionUsage) UnsetTotalUsedUnits()` + +UnsetTotalUsedUnits ensures that no value is present for TotalUsedUnits, 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/PostSnapshotPermissionsRequestPayload.md b/docs/PostSnapshotPermissionsRequestPayload.md new file mode 100644 index 0000000..a1df98d --- /dev/null +++ b/docs/PostSnapshotPermissionsRequestPayload.md @@ -0,0 +1,87 @@ +# PostSnapshotPermissionsRequestPayload + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Email** | **string** | The email of the user. | +**UserId** | Pointer to **NullableString** | The user ID. | [optional] + +## Methods + +### NewPostSnapshotPermissionsRequestPayload + +`func NewPostSnapshotPermissionsRequestPayload(email string, ) *PostSnapshotPermissionsRequestPayload` + +NewPostSnapshotPermissionsRequestPayload instantiates a new PostSnapshotPermissionsRequestPayload object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewPostSnapshotPermissionsRequestPayloadWithDefaults + +`func NewPostSnapshotPermissionsRequestPayloadWithDefaults() *PostSnapshotPermissionsRequestPayload` + +NewPostSnapshotPermissionsRequestPayloadWithDefaults instantiates a new PostSnapshotPermissionsRequestPayload object +This 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 *PostSnapshotPermissionsRequestPayload) GetEmail() string` + +GetEmail returns the Email field if non-nil, zero value otherwise. + +### GetEmailOk + +`func (o *PostSnapshotPermissionsRequestPayload) 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 *PostSnapshotPermissionsRequestPayload) SetEmail(v string)` + +SetEmail sets Email field to given value. + + +### GetUserId + +`func (o *PostSnapshotPermissionsRequestPayload) GetUserId() string` + +GetUserId returns the UserId field if non-nil, zero value otherwise. + +### GetUserIdOk + +`func (o *PostSnapshotPermissionsRequestPayload) 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 *PostSnapshotPermissionsRequestPayload) SetUserId(v string)` + +SetUserId sets UserId field to given value. + +### HasUserId + +`func (o *PostSnapshotPermissionsRequestPayload) HasUserId() bool` + +HasUserId returns a boolean if a field has been set. + +### SetUserIdNil + +`func (o *PostSnapshotPermissionsRequestPayload) SetUserIdNil(b bool)` + + SetUserIdNil sets the value for UserId to be an explicit nil + +### UnsetUserId +`func (o *PostSnapshotPermissionsRequestPayload) UnsetUserId()` + +UnsetUserId ensures that no value is present for UserId, 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 150e0fc..67c6321 100644 --- a/docs/ProjectsApi.md +++ b/docs/ProjectsApi.md @@ -432,6 +432,8 @@ Name | Type | Description | Notes Get Project VPN Configuration + + ### Example ```go diff --git a/docs/Snapshot.md b/docs/Snapshot.md index 0b4032e..0e3c4ef 100644 --- a/docs/Snapshot.md +++ b/docs/Snapshot.md @@ -4,20 +4,21 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Id** | Pointer to **NullableString** | Snapshot ID | [optional] -**Name** | Pointer to **NullableString** | Snapshot name | [optional] -**Instance** | Pointer to **NullableString** | Instance that this snapshot is of | [optional] -**Status** | Pointer to [**SnapshotStatus**](SnapshotStatus.md) | | [optional] -**Date** | Pointer to **NullableFloat32** | UNIX Date that the snapshot was created | [optional] -**Fresh** | Pointer to **NullableBool** | | [optional] -**Live** | Pointer to **NullableBool** | Live snapshot (included state and memory) | [optional] -**Local** | Pointer to **NullableBool** | | [optional] +**Id** | **string** | Snapshot ID | +**Name** | **string** | Snapshot name | +**Instance** | **string** | Instance that this snapshot is of | +**Status** | [**SnapshotStatus**](SnapshotStatus.md) | | +**Date** | **float32** | UNIX Date that the snapshot was created | +**Fresh** | **bool** | | +**Live** | **bool** | Live snapshot (included state and memory) | +**Local** | **bool** | | +**Sharing** | Pointer to [**SnapshotSharing**](SnapshotSharing.md) | | [optional] ## Methods ### NewSnapshot -`func NewSnapshot() *Snapshot` +`func NewSnapshot(id string, name string, instance string, status SnapshotStatus, date float32, fresh bool, live bool, local bool, ) *Snapshot` NewSnapshot instantiates a new Snapshot object This constructor will assign default values to properties that have it defined, @@ -51,22 +52,7 @@ and a boolean to check if the value has been set. SetId sets Id field to given value. -### HasId -`func (o *Snapshot) HasId() bool` - -HasId returns a boolean if a field has been set. - -### SetIdNil - -`func (o *Snapshot) SetIdNil(b bool)` - - SetIdNil sets the value for Id to be an explicit nil - -### UnsetId -`func (o *Snapshot) UnsetId()` - -UnsetId ensures that no value is present for Id, not even an explicit nil ### GetName `func (o *Snapshot) GetName() string` @@ -86,22 +72,7 @@ and a boolean to check if the value has been set. SetName sets Name field to given value. -### HasName - -`func (o *Snapshot) HasName() bool` - -HasName returns a boolean if a field has been set. - -### SetNameNil - -`func (o *Snapshot) SetNameNil(b bool)` - - SetNameNil sets the value for Name to be an explicit nil - -### UnsetName -`func (o *Snapshot) UnsetName()` -UnsetName ensures that no value is present for Name, not even an explicit nil ### GetInstance `func (o *Snapshot) GetInstance() string` @@ -121,22 +92,7 @@ and a boolean to check if the value has been set. SetInstance sets Instance field to given value. -### HasInstance -`func (o *Snapshot) HasInstance() bool` - -HasInstance returns a boolean if a field has been set. - -### SetInstanceNil - -`func (o *Snapshot) SetInstanceNil(b bool)` - - SetInstanceNil sets the value for Instance to be an explicit nil - -### UnsetInstance -`func (o *Snapshot) UnsetInstance()` - -UnsetInstance ensures that no value is present for Instance, not even an explicit nil ### GetStatus `func (o *Snapshot) GetStatus() SnapshotStatus` @@ -156,11 +112,6 @@ and a boolean to check if the value has been set. SetStatus sets Status field to given value. -### HasStatus - -`func (o *Snapshot) HasStatus() bool` - -HasStatus returns a boolean if a field has been set. ### GetDate @@ -181,22 +132,7 @@ and a boolean to check if the value has been set. SetDate sets Date field to given value. -### HasDate - -`func (o *Snapshot) HasDate() bool` - -HasDate returns a boolean if a field has been set. - -### SetDateNil -`func (o *Snapshot) SetDateNil(b bool)` - - SetDateNil sets the value for Date to be an explicit nil - -### UnsetDate -`func (o *Snapshot) UnsetDate()` - -UnsetDate ensures that no value is present for Date, not even an explicit nil ### GetFresh `func (o *Snapshot) GetFresh() bool` @@ -216,22 +152,7 @@ and a boolean to check if the value has been set. SetFresh sets Fresh field to given value. -### HasFresh - -`func (o *Snapshot) HasFresh() bool` - -HasFresh returns a boolean if a field has been set. - -### SetFreshNil -`func (o *Snapshot) SetFreshNil(b bool)` - - SetFreshNil sets the value for Fresh to be an explicit nil - -### UnsetFresh -`func (o *Snapshot) UnsetFresh()` - -UnsetFresh ensures that no value is present for Fresh, not even an explicit nil ### GetLive `func (o *Snapshot) GetLive() bool` @@ -251,22 +172,7 @@ and a boolean to check if the value has been set. SetLive sets Live field to given value. -### HasLive - -`func (o *Snapshot) HasLive() bool` - -HasLive returns a boolean if a field has been set. -### SetLiveNil - -`func (o *Snapshot) SetLiveNil(b bool)` - - SetLiveNil sets the value for Live to be an explicit nil - -### UnsetLive -`func (o *Snapshot) UnsetLive()` - -UnsetLive ensures that no value is present for Live, not even an explicit nil ### GetLocal `func (o *Snapshot) GetLocal() bool` @@ -286,22 +192,32 @@ and a boolean to check if the value has been set. SetLocal sets Local field to given value. -### HasLocal -`func (o *Snapshot) HasLocal() bool` +### GetSharing + +`func (o *Snapshot) GetSharing() SnapshotSharing` + +GetSharing returns the Sharing field if non-nil, zero value otherwise. + +### GetSharingOk + +`func (o *Snapshot) GetSharingOk() (*SnapshotSharing, bool)` + +GetSharingOk returns a tuple with the Sharing field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSharing -HasLocal returns a boolean if a field has been set. +`func (o *Snapshot) SetSharing(v SnapshotSharing)` -### SetLocalNil +SetSharing sets Sharing field to given value. -`func (o *Snapshot) SetLocalNil(b bool)` +### HasSharing - SetLocalNil sets the value for Local to be an explicit nil +`func (o *Snapshot) HasSharing() bool` -### UnsetLocal -`func (o *Snapshot) UnsetLocal()` +HasSharing returns a boolean if a field has been set. -UnsetLocal ensures that no value is present for Local, 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/SnapshotPermissions.md b/docs/SnapshotPermissions.md index d92b8c4..fdd52ee 100644 --- a/docs/SnapshotPermissions.md +++ b/docs/SnapshotPermissions.md @@ -5,7 +5,10 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Enabled** | Pointer to **NullableBool** | Indicates if snapshot permissions are enabled | [optional] -**InvitationTypes** | Pointer to [**SnapshotInvitationTypes**](SnapshotInvitationTypes.md) | | [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 @@ -61,31 +64,146 @@ HasEnabled returns a boolean if a field has been set. `func (o *SnapshotPermissions) UnsetEnabled()` UnsetEnabled ensures that no value is present for Enabled, not even an explicit nil -### GetInvitationTypes +### GetPublicLink -`func (o *SnapshotPermissions) GetInvitationTypes() SnapshotInvitationTypes` +`func (o *SnapshotPermissions) GetPublicLink() bool` -GetInvitationTypes returns the InvitationTypes field if non-nil, zero value otherwise. +GetPublicLink returns the PublicLink field if non-nil, zero value otherwise. -### GetInvitationTypesOk +### GetPublicLinkOk -`func (o *SnapshotPermissions) GetInvitationTypesOk() (*SnapshotInvitationTypes, bool)` +`func (o *SnapshotPermissions) GetPublicLinkOk() (*bool, bool)` -GetInvitationTypesOk returns a tuple with the InvitationTypes field if it's non-nil, zero value otherwise +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. -### SetInvitationTypes +### SetPublicLink -`func (o *SnapshotPermissions) SetInvitationTypes(v SnapshotInvitationTypes)` +`func (o *SnapshotPermissions) SetPublicLink(v bool)` -SetInvitationTypes sets InvitationTypes field to given value. +SetPublicLink sets PublicLink field to given value. -### HasInvitationTypes +### HasPublicLink -`func (o *SnapshotPermissions) HasInvitationTypes() bool` +`func (o *SnapshotPermissions) HasPublicLink() bool` -HasInvitationTypes returns a boolean if a field has been set. +HasPublicLink returns a boolean if a field has been set. +### SetPublicLinkNil + +`func (o *SnapshotPermissions) SetPublicLinkNil(b bool)` + + SetPublicLinkNil sets the value for PublicLink to be an explicit nil + +### UnsetPublicLink +`func (o *SnapshotPermissions) UnsetPublicLink()` + +UnsetPublicLink ensures that no value is present for PublicLink, not even an explicit nil +### GetDomainRestrictedLink + +`func (o *SnapshotPermissions) GetDomainRestrictedLink() bool` + +GetDomainRestrictedLink returns the DomainRestrictedLink field if non-nil, zero value otherwise. + +### GetDomainRestrictedLinkOk + +`func (o *SnapshotPermissions) 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 *SnapshotPermissions) SetDomainRestrictedLink(v bool)` + +SetDomainRestrictedLink sets DomainRestrictedLink field to given value. + +### HasDomainRestrictedLink + +`func (o *SnapshotPermissions) HasDomainRestrictedLink() bool` + +HasDomainRestrictedLink returns a boolean if a field has been set. + +### SetDomainRestrictedLinkNil + +`func (o *SnapshotPermissions) SetDomainRestrictedLinkNil(b bool)` + + SetDomainRestrictedLinkNil sets the value for DomainRestrictedLink to be an explicit nil + +### UnsetDomainRestrictedLink +`func (o *SnapshotPermissions) UnsetDomainRestrictedLink()` + +UnsetDomainRestrictedLink ensures that no value is present for DomainRestrictedLink, not even an explicit nil +### GetPasswordPublicLink + +`func (o *SnapshotPermissions) GetPasswordPublicLink() bool` + +GetPasswordPublicLink returns the PasswordPublicLink field if non-nil, zero value otherwise. + +### GetPasswordPublicLinkOk + +`func (o *SnapshotPermissions) 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 *SnapshotPermissions) SetPasswordPublicLink(v bool)` + +SetPasswordPublicLink sets PasswordPublicLink field to given value. + +### HasPasswordPublicLink + +`func (o *SnapshotPermissions) HasPasswordPublicLink() bool` + +HasPasswordPublicLink returns a boolean if a field has been set. + +### SetPasswordPublicLinkNil + +`func (o *SnapshotPermissions) SetPasswordPublicLinkNil(b bool)` + + SetPasswordPublicLinkNil sets the value for PasswordPublicLink to be an explicit nil + +### UnsetPasswordPublicLink +`func (o *SnapshotPermissions) UnsetPasswordPublicLink()` + +UnsetPasswordPublicLink ensures that no value is present for PasswordPublicLink, not even an explicit nil +### GetEmailInvite + +`func (o *SnapshotPermissions) GetEmailInvite() bool` + +GetEmailInvite returns the EmailInvite field if non-nil, zero value otherwise. + +### GetEmailInviteOk + +`func (o *SnapshotPermissions) 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 *SnapshotPermissions) SetEmailInvite(v bool)` + +SetEmailInvite sets EmailInvite field to given value. + +### HasEmailInvite + +`func (o *SnapshotPermissions) HasEmailInvite() bool` + +HasEmailInvite returns a boolean if a field has been set. + +### SetEmailInviteNil + +`func (o *SnapshotPermissions) SetEmailInviteNil(b bool)` + + SetEmailInviteNil sets the value for EmailInvite to be an explicit nil + +### UnsetEmailInvite +`func (o *SnapshotPermissions) 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/SnapshotSharing.md b/docs/SnapshotSharing.md new file mode 100644 index 0000000..297f621 --- /dev/null +++ b/docs/SnapshotSharing.md @@ -0,0 +1,72 @@ +# SnapshotSharing + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Url** | **string** | The URL of the snapshot. | +**Users** | [**[]SnapshotUser**](SnapshotUser.md) | The users who have access to the snapshot. | + +## Methods + +### NewSnapshotSharing + +`func NewSnapshotSharing(url string, users []SnapshotUser, ) *SnapshotSharing` + +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 + +### NewSnapshotSharingWithDefaults + +`func NewSnapshotSharingWithDefaults() *SnapshotSharing` + +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 + +`func (o *SnapshotSharing) GetUrl() string` + +GetUrl returns the Url field if non-nil, zero value otherwise. + +### GetUrlOk + +`func (o *SnapshotSharing) GetUrlOk() (*string, bool)` + +GetUrlOk returns a tuple with the Url field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUrl + +`func (o *SnapshotSharing) SetUrl(v string)` + +SetUrl sets Url field to given value. + + +### GetUsers + +`func (o *SnapshotSharing) GetUsers() []SnapshotUser` + +GetUsers returns the Users field if non-nil, zero value otherwise. + +### GetUsersOk + +`func (o *SnapshotSharing) GetUsersOk() (*[]SnapshotUser, bool)` + +GetUsersOk returns a tuple with the Users field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUsers + +`func (o *SnapshotSharing) SetUsers(v []SnapshotUser)` + +SetUsers sets Users field to given value. + + + +[[Back to Model 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 02330b1..dec51f2 100644 --- a/docs/SnapshotStatus.md +++ b/docs/SnapshotStatus.md @@ -4,14 +4,14 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Task** | Pointer to **NullableString** | | [optional] -**Created** | Pointer to **NullableBool** | | [optional] +**Task** | **string** | The current task being performed on the snapshot. | +**Created** | **bool** | Indicates if the snapshot has been successfully created. | ## Methods ### NewSnapshotStatus -`func NewSnapshotStatus() *SnapshotStatus` +`func NewSnapshotStatus(task string, created bool, ) *SnapshotStatus` NewSnapshotStatus instantiates a new SnapshotStatus object This constructor will assign default values to properties that have it defined, @@ -45,22 +45,7 @@ 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` @@ -80,22 +65,7 @@ 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/SnapshotUser.md b/docs/SnapshotUser.md new file mode 100644 index 0000000..0c7d2f0 --- /dev/null +++ b/docs/SnapshotUser.md @@ -0,0 +1,135 @@ +# SnapshotUser + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Email** | **string** | The email of the user. | +**InviteSentAt** | **float32** | The date when the invite was sent. | +**Timestamp** | **float32** | The timestamp. | +**UserId** | **string** | The user ID. | +**Label** | **string** | The label. | + +## Methods + +### NewSnapshotUser + +`func NewSnapshotUser(email string, inviteSentAt float32, timestamp float32, userId string, label string, ) *SnapshotUser` + +NewSnapshotUser instantiates a new SnapshotUser object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewSnapshotUserWithDefaults + +`func NewSnapshotUserWithDefaults() *SnapshotUser` + +NewSnapshotUserWithDefaults instantiates a new SnapshotUser object +This 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 *SnapshotUser) GetEmail() string` + +GetEmail returns the Email field if non-nil, zero value otherwise. + +### GetEmailOk + +`func (o *SnapshotUser) 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 *SnapshotUser) SetEmail(v string)` + +SetEmail sets Email field to given value. + + +### GetInviteSentAt + +`func (o *SnapshotUser) GetInviteSentAt() float32` + +GetInviteSentAt returns the InviteSentAt field if non-nil, zero value otherwise. + +### GetInviteSentAtOk + +`func (o *SnapshotUser) 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 *SnapshotUser) SetInviteSentAt(v float32)` + +SetInviteSentAt sets InviteSentAt field to given value. + + +### GetTimestamp + +`func (o *SnapshotUser) GetTimestamp() float32` + +GetTimestamp returns the Timestamp field if non-nil, zero value otherwise. + +### GetTimestampOk + +`func (o *SnapshotUser) GetTimestampOk() (*float32, 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 *SnapshotUser) SetTimestamp(v float32)` + +SetTimestamp sets Timestamp field to given value. + + +### GetUserId + +`func (o *SnapshotUser) GetUserId() string` + +GetUserId returns the UserId field if non-nil, zero value otherwise. + +### GetUserIdOk + +`func (o *SnapshotUser) 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 *SnapshotUser) SetUserId(v string)` + +SetUserId sets UserId field to given value. + + +### GetLabel + +`func (o *SnapshotUser) GetLabel() string` + +GetLabel returns the Label field if non-nil, zero value otherwise. + +### GetLabelOk + +`func (o *SnapshotUser) 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 *SnapshotUser) SetLabel(v string)` + +SetLabel sets Label field to given value. + + + +[[Back to Model 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 82104da..f776504 100644 --- a/docs/SnapshotsApi.md +++ b/docs/SnapshotsApi.md @@ -7,11 +7,14 @@ 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 [**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 [**V1SnapshotRename**](SnapshotsApi.md#V1SnapshotRename) | **Patch** /v1/snapshots/{snapshotId} | Rename a Snapshot @@ -221,6 +224,76 @@ 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() @@ -360,6 +433,65 @@ 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() @@ -570,6 +702,76 @@ 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/model_address.go b/model_address.go index a262f10..3fd63cb 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.0.0-20323 +API version: 6.1.0-20784 */ // 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 05776c4..495b2ff 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.0.0-20323 +API version: 6.1.0-20784 */ // 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 9b95bc3..8d7c6c1 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.0.0-20323 +API version: 6.1.0-20784 */ // 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 dc44eae..1918aad 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.0.0-20323 +API version: 6.1.0-20784 */ // 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 52ce70c..38519a9 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.0.0-20323 +API version: 6.1.0-20784 */ // 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 373e6b8..25c00a2 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.0.0-20323 +API version: 6.1.0-20784 */ // 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 d603c25..4c10896 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.0.0-20323 +API version: 6.1.0-20784 */ // 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 1f2a8c0..36939a0 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.0.0-20323 +API version: 6.1.0-20784 */ // 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 630fdd9..0125853 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.0.0-20323 +API version: 6.1.0-20784 */ // 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 881728c..2a8a975 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.0.0-20323 +API version: 6.1.0-20784 */ // 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 de8e981..82a55bd 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.0.0-20323 +API version: 6.1.0-20784 */ // 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 7302066..e650a0b 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.0.0-20323 +API version: 6.1.0-20784 */ // 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 9295328..88945ef 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.0.0-20323 +API version: 6.1.0-20784 */ // 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 34e1a7f..121ab64 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.0.0-20323 +API version: 6.1.0-20784 */ // 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 4a7840b..9f9db28 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.0.0-20323 +API version: 6.1.0-20784 */ // 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 5c48765..757388a 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.0.0-20323 +API version: 6.1.0-20784 */ // 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 3c69162..619b32b 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.0.0-20323 +API version: 6.1.0-20784 */ // 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 687f910..52506e2 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.0.0-20323 +API version: 6.1.0-20784 */ // 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 c7e93b9..d1b21cf 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.0.0-20323 +API version: 6.1.0-20784 */ // 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 fb1a6b4..050d77c 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.0.0-20323 +API version: 6.1.0-20784 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_auth_provider.go b/model_auth_provider.go index 1583651..96225b3 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.0.0-20323 +API version: 6.1.0-20784 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_bit.go b/model_bit.go index 2b03a6a..1f9b8fe 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.0.0-20323 +API version: 6.1.0-20784 */ // 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 f18799c..ec86376 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.0.0-20323 +API version: 6.1.0-20784 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_button.go b/model_button.go index 0228897..611493a 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.0.0-20323 +API version: 6.1.0-20784 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_config_response.go b/model_config_response.go index 1bf9d2a..fa01139 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.0.0-20323 +API version: 6.1.0-20784 */ // 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 d19cfd4..2e2a8f7 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.0.0-20323 +API version: 6.1.0-20784 */ // 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 59c3b37..57cefe7 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.0.0-20323 +API version: 6.1.0-20784 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_create_team.go b/model_create_team.go index 65f84c2..94ce892 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.0.0-20323 +API version: 6.1.0-20784 */ // 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 a4ceaad..0b250d7 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.0.0-20323 +API version: 6.1.0-20784 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_credentials.go b/model_credentials.go index a9ff11f..ef6e61a 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.0.0-20323 +API version: 6.1.0-20784 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_delete_snapshot_permissions_request_payload.go b/model_delete_snapshot_permissions_request_payload.go new file mode 100644 index 0000000..a3374ab --- /dev/null +++ b/model_delete_snapshot_permissions_request_payload.go @@ -0,0 +1,184 @@ +/* +Corellium API + +REST API to manage your virtual devices. + +API version: 6.1.0-20784 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package corellium + +import ( + "encoding/json" +) + +// checks if the DeleteSnapshotPermissionsRequestPayload type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &DeleteSnapshotPermissionsRequestPayload{} + +// DeleteSnapshotPermissionsRequestPayload +type DeleteSnapshotPermissionsRequestPayload struct { + // The email of the user. + Email NullableString `json:"email,omitempty"` + // The user ID. + UserId NullableString `json:"userId,omitempty"` +} + +// NewDeleteSnapshotPermissionsRequestPayload instantiates a new DeleteSnapshotPermissionsRequestPayload object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewDeleteSnapshotPermissionsRequestPayload() *DeleteSnapshotPermissionsRequestPayload { + this := DeleteSnapshotPermissionsRequestPayload{} + return &this +} + +// NewDeleteSnapshotPermissionsRequestPayloadWithDefaults instantiates a new DeleteSnapshotPermissionsRequestPayload object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewDeleteSnapshotPermissionsRequestPayloadWithDefaults() *DeleteSnapshotPermissionsRequestPayload { + this := DeleteSnapshotPermissionsRequestPayload{} + return &this +} + +// GetEmail returns the Email field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *DeleteSnapshotPermissionsRequestPayload) GetEmail() string { + if o == nil || IsNil(o.Email.Get()) { + var ret string + return ret + } + return *o.Email.Get() +} + +// GetEmailOk returns a tuple with the Email 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 *DeleteSnapshotPermissionsRequestPayload) GetEmailOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Email.Get(), o.Email.IsSet() +} + +// HasEmail returns a boolean if a field has been set. +func (o *DeleteSnapshotPermissionsRequestPayload) HasEmail() bool { + if o != nil && o.Email.IsSet() { + return true + } + + return false +} + +// SetEmail gets a reference to the given NullableString and assigns it to the Email field. +func (o *DeleteSnapshotPermissionsRequestPayload) SetEmail(v string) { + o.Email.Set(&v) +} +// SetEmailNil sets the value for Email to be an explicit nil +func (o *DeleteSnapshotPermissionsRequestPayload) SetEmailNil() { + o.Email.Set(nil) +} + +// UnsetEmail ensures that no value is present for Email, not even an explicit nil +func (o *DeleteSnapshotPermissionsRequestPayload) UnsetEmail() { + o.Email.Unset() +} + +// GetUserId returns the UserId field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *DeleteSnapshotPermissionsRequestPayload) 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 *DeleteSnapshotPermissionsRequestPayload) 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 *DeleteSnapshotPermissionsRequestPayload) 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 *DeleteSnapshotPermissionsRequestPayload) SetUserId(v string) { + o.UserId.Set(&v) +} +// SetUserIdNil sets the value for UserId to be an explicit nil +func (o *DeleteSnapshotPermissionsRequestPayload) SetUserIdNil() { + o.UserId.Set(nil) +} + +// UnsetUserId ensures that no value is present for UserId, not even an explicit nil +func (o *DeleteSnapshotPermissionsRequestPayload) UnsetUserId() { + o.UserId.Unset() +} + +func (o DeleteSnapshotPermissionsRequestPayload) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o DeleteSnapshotPermissionsRequestPayload) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if o.Email.IsSet() { + toSerialize["email"] = o.Email.Get() + } + if o.UserId.IsSet() { + toSerialize["userId"] = o.UserId.Get() + } + return toSerialize, nil +} + +type NullableDeleteSnapshotPermissionsRequestPayload struct { + value *DeleteSnapshotPermissionsRequestPayload + isSet bool +} + +func (v NullableDeleteSnapshotPermissionsRequestPayload) Get() *DeleteSnapshotPermissionsRequestPayload { + return v.value +} + +func (v *NullableDeleteSnapshotPermissionsRequestPayload) Set(val *DeleteSnapshotPermissionsRequestPayload) { + v.value = val + v.isSet = true +} + +func (v NullableDeleteSnapshotPermissionsRequestPayload) IsSet() bool { + return v.isSet +} + +func (v *NullableDeleteSnapshotPermissionsRequestPayload) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableDeleteSnapshotPermissionsRequestPayload(val *DeleteSnapshotPermissionsRequestPayload) *NullableDeleteSnapshotPermissionsRequestPayload { + return &NullableDeleteSnapshotPermissionsRequestPayload{value: val, isSet: true} +} + +func (v NullableDeleteSnapshotPermissionsRequestPayload) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableDeleteSnapshotPermissionsRequestPayload) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_domain_auth_provider_request.go b/model_domain_auth_provider_request.go index 840273c..6b5f98c 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.0.0-20323 +API version: 6.1.0-20784 */ // 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 61b75b3..9bfca6d 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.0.0-20323 +API version: 6.1.0-20784 */ // 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 30c37b0..075d98b 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.0.0-20323 +API version: 6.1.0-20784 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_extension.go b/model_extension.go index 28140fa..2371d46 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.0.0-20323 +API version: 6.1.0-20784 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_features.go b/model_features.go index 4699e75..e792d7f 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.0.0-20323 +API version: 6.1.0-20784 */ // 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 fdd6aa6..6ce271d 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.0.0-20323 +API version: 6.1.0-20784 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_firmware.go b/model_firmware.go index 16a0dc6..b40ed32 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.0.0-20323 +API version: 6.1.0-20784 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_gpio_state_definition.go b/model_gpio_state_definition.go index 1d75ab3..bd1a48f 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.0.0-20323 +API version: 6.1.0-20784 */ // 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 d0b4a9e..a16b17c 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.0.0-20323 +API version: 6.1.0-20784 */ // 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 0758fb4..cb8471b 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.0.0-20323 +API version: 6.1.0-20784 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_hook.go b/model_hook.go index 644c8c1..846d52f 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.0.0-20323 +API version: 6.1.0-20784 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_image.go b/model_image.go index f1ca5f5..0fcbd33 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.0.0-20323 +API version: 6.1.0-20784 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_instance.go b/model_instance.go index 73e4802..df13182 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.0.0-20323 +API version: 6.1.0-20784 */ // 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 296c82f..a484fe3 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.0.0-20323 +API version: 6.1.0-20784 */ // 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 cafefe8..9b0ffc2 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.0.0-20323 +API version: 6.1.0-20784 */ // 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 992e8fc..9747db2 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.0.0-20323 +API version: 6.1.0-20784 */ // 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 7f08d0f..b53e470 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.0.0-20323 +API version: 6.1.0-20784 */ // 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 774407b..925052d 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.0.0-20323 +API version: 6.1.0-20784 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_instance_input.go b/model_instance_input.go index 7c1aa71..62415da 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.0.0-20323 +API version: 6.1.0-20784 */ // 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 722c73f..dbf5d1b 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.0.0-20323 +API version: 6.1.0-20784 */ // 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 584746c..08f458b 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.0.0-20323 +API version: 6.1.0-20784 */ // 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 0e524ce..4dbaf41 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.0.0-20323 +API version: 6.1.0-20784 */ // 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 017d1ff..1f10823 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.0.0-20323 +API version: 6.1.0-20784 */ // 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 192f851..498cfdb 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.0.0-20323 +API version: 6.1.0-20784 */ // 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 909f665..f993599 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.0.0-20323 +API version: 6.1.0-20784 */ // 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 fbaad17..904c163 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.0.0-20323 +API version: 6.1.0-20784 */ // 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 d24ed73..5f79cb3 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.0.0-20323 +API version: 6.1.0-20784 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_invitation.go b/model_invitation.go index 1a63e0b..fd4b18d 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.0.0-20323 +API version: 6.1.0-20784 */ // 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 4efe805..2388d80 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.0.0-20323 +API version: 6.1.0-20784 */ // 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 761b8e8..2cb7600 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.0.0-20323 +API version: 6.1.0-20784 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_kcrange.go b/model_kcrange.go index 6167042..ca63852 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.0.0-20323 +API version: 6.1.0-20784 */ // 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 76a6dc8..efd9daf 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.0.0-20323 +API version: 6.1.0-20784 */ // 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 29e82f4..f9ab5c0 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.0.0-20323 +API version: 6.1.0-20784 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_logging.go b/model_logging.go index 324df34..4ee429a 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.0.0-20323 +API version: 6.1.0-20784 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_maintenance.go b/model_maintenance.go index c85e246..e95acb8 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.0.0-20323 +API version: 6.1.0-20784 */ // 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 c552698..0471b2e 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.0.0-20323 +API version: 6.1.0-20784 */ // 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 new file mode 100644 index 0000000..b64a3e5 --- /dev/null +++ b/model_metered_subscription_usage.go @@ -0,0 +1,560 @@ +/* +Corellium API + +REST API to manage your virtual devices. + +API version: 6.1.0-20784 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package corellium + +import ( + "encoding/json" +) + +// checks if the MeteredSubscriptionUsage type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &MeteredSubscriptionUsage{} + +// MeteredSubscriptionUsage +type MeteredSubscriptionUsage struct { + // Unit price + BurstRate NullableFloat32 `json:"burst_rate,omitempty"` + // Allocated hours + AllocatedHours NullableFloat32 `json:"allocated_hours,omitempty"` + // Plan cost + PlanBilledAmount NullableFloat32 `json:"plan_billed_amount,omitempty"` + // Units included in plan + PlanBilledUnits NullableFloat32 `json:"plan_billed_units,omitempty"` + // Amount billed + BurstBilledAmount NullableFloat32 `json:"burst_billed_amount,omitempty"` + // Units billed + BurstBilledUnits NullableFloat32 `json:"burst_billed_units,omitempty"` + // Outstanding amount + BurstOutstandingAmount NullableFloat32 `json:"burst_outstanding_amount,omitempty"` + // Outstanding units + BurstOutstandingUnits NullableFloat32 `json:"burst_outstanding_units,omitempty"` + // Total cost in cents for current period + TotalUsageAmount NullableFloat32 `json:"total_usage_amount,omitempty"` + // Total used units for current period + TotalUsedUnits NullableFloat32 `json:"total_used_units,omitempty"` +} + +// NewMeteredSubscriptionUsage instantiates a new MeteredSubscriptionUsage object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewMeteredSubscriptionUsage() *MeteredSubscriptionUsage { + this := MeteredSubscriptionUsage{} + return &this +} + +// NewMeteredSubscriptionUsageWithDefaults instantiates a new MeteredSubscriptionUsage object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewMeteredSubscriptionUsageWithDefaults() *MeteredSubscriptionUsage { + this := MeteredSubscriptionUsage{} + return &this +} + +// GetBurstRate returns the BurstRate field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *MeteredSubscriptionUsage) GetBurstRate() float32 { + if o == nil || IsNil(o.BurstRate.Get()) { + var ret float32 + return ret + } + return *o.BurstRate.Get() +} + +// GetBurstRateOk returns a tuple with the BurstRate 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 *MeteredSubscriptionUsage) GetBurstRateOk() (*float32, bool) { + if o == nil { + return nil, false + } + return o.BurstRate.Get(), o.BurstRate.IsSet() +} + +// HasBurstRate returns a boolean if a field has been set. +func (o *MeteredSubscriptionUsage) HasBurstRate() bool { + if o != nil && o.BurstRate.IsSet() { + return true + } + + return false +} + +// SetBurstRate gets a reference to the given NullableFloat32 and assigns it to the BurstRate field. +func (o *MeteredSubscriptionUsage) SetBurstRate(v float32) { + o.BurstRate.Set(&v) +} +// SetBurstRateNil sets the value for BurstRate to be an explicit nil +func (o *MeteredSubscriptionUsage) SetBurstRateNil() { + o.BurstRate.Set(nil) +} + +// UnsetBurstRate ensures that no value is present for BurstRate, not even an explicit nil +func (o *MeteredSubscriptionUsage) UnsetBurstRate() { + o.BurstRate.Unset() +} + +// GetAllocatedHours returns the AllocatedHours field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *MeteredSubscriptionUsage) GetAllocatedHours() float32 { + if o == nil || IsNil(o.AllocatedHours.Get()) { + var ret float32 + return ret + } + return *o.AllocatedHours.Get() +} + +// GetAllocatedHoursOk returns a tuple with the AllocatedHours 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 *MeteredSubscriptionUsage) GetAllocatedHoursOk() (*float32, bool) { + if o == nil { + return nil, false + } + return o.AllocatedHours.Get(), o.AllocatedHours.IsSet() +} + +// HasAllocatedHours returns a boolean if a field has been set. +func (o *MeteredSubscriptionUsage) HasAllocatedHours() bool { + if o != nil && o.AllocatedHours.IsSet() { + return true + } + + return false +} + +// SetAllocatedHours gets a reference to the given NullableFloat32 and assigns it to the AllocatedHours field. +func (o *MeteredSubscriptionUsage) SetAllocatedHours(v float32) { + o.AllocatedHours.Set(&v) +} +// SetAllocatedHoursNil sets the value for AllocatedHours to be an explicit nil +func (o *MeteredSubscriptionUsage) SetAllocatedHoursNil() { + o.AllocatedHours.Set(nil) +} + +// UnsetAllocatedHours ensures that no value is present for AllocatedHours, not even an explicit nil +func (o *MeteredSubscriptionUsage) UnsetAllocatedHours() { + o.AllocatedHours.Unset() +} + +// GetPlanBilledAmount returns the PlanBilledAmount field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *MeteredSubscriptionUsage) GetPlanBilledAmount() float32 { + if o == nil || IsNil(o.PlanBilledAmount.Get()) { + var ret float32 + return ret + } + return *o.PlanBilledAmount.Get() +} + +// GetPlanBilledAmountOk returns a tuple with the PlanBilledAmount 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 *MeteredSubscriptionUsage) GetPlanBilledAmountOk() (*float32, bool) { + if o == nil { + return nil, false + } + return o.PlanBilledAmount.Get(), o.PlanBilledAmount.IsSet() +} + +// HasPlanBilledAmount returns a boolean if a field has been set. +func (o *MeteredSubscriptionUsage) HasPlanBilledAmount() bool { + if o != nil && o.PlanBilledAmount.IsSet() { + return true + } + + return false +} + +// SetPlanBilledAmount gets a reference to the given NullableFloat32 and assigns it to the PlanBilledAmount field. +func (o *MeteredSubscriptionUsage) SetPlanBilledAmount(v float32) { + o.PlanBilledAmount.Set(&v) +} +// SetPlanBilledAmountNil sets the value for PlanBilledAmount to be an explicit nil +func (o *MeteredSubscriptionUsage) SetPlanBilledAmountNil() { + o.PlanBilledAmount.Set(nil) +} + +// UnsetPlanBilledAmount ensures that no value is present for PlanBilledAmount, not even an explicit nil +func (o *MeteredSubscriptionUsage) UnsetPlanBilledAmount() { + o.PlanBilledAmount.Unset() +} + +// GetPlanBilledUnits returns the PlanBilledUnits field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *MeteredSubscriptionUsage) GetPlanBilledUnits() float32 { + if o == nil || IsNil(o.PlanBilledUnits.Get()) { + var ret float32 + return ret + } + return *o.PlanBilledUnits.Get() +} + +// GetPlanBilledUnitsOk returns a tuple with the PlanBilledUnits 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 *MeteredSubscriptionUsage) GetPlanBilledUnitsOk() (*float32, bool) { + if o == nil { + return nil, false + } + return o.PlanBilledUnits.Get(), o.PlanBilledUnits.IsSet() +} + +// HasPlanBilledUnits returns a boolean if a field has been set. +func (o *MeteredSubscriptionUsage) HasPlanBilledUnits() bool { + if o != nil && o.PlanBilledUnits.IsSet() { + return true + } + + return false +} + +// SetPlanBilledUnits gets a reference to the given NullableFloat32 and assigns it to the PlanBilledUnits field. +func (o *MeteredSubscriptionUsage) SetPlanBilledUnits(v float32) { + o.PlanBilledUnits.Set(&v) +} +// SetPlanBilledUnitsNil sets the value for PlanBilledUnits to be an explicit nil +func (o *MeteredSubscriptionUsage) SetPlanBilledUnitsNil() { + o.PlanBilledUnits.Set(nil) +} + +// UnsetPlanBilledUnits ensures that no value is present for PlanBilledUnits, not even an explicit nil +func (o *MeteredSubscriptionUsage) UnsetPlanBilledUnits() { + o.PlanBilledUnits.Unset() +} + +// GetBurstBilledAmount returns the BurstBilledAmount field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *MeteredSubscriptionUsage) GetBurstBilledAmount() float32 { + if o == nil || IsNil(o.BurstBilledAmount.Get()) { + var ret float32 + return ret + } + return *o.BurstBilledAmount.Get() +} + +// GetBurstBilledAmountOk returns a tuple with the BurstBilledAmount 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 *MeteredSubscriptionUsage) GetBurstBilledAmountOk() (*float32, bool) { + if o == nil { + return nil, false + } + return o.BurstBilledAmount.Get(), o.BurstBilledAmount.IsSet() +} + +// HasBurstBilledAmount returns a boolean if a field has been set. +func (o *MeteredSubscriptionUsage) HasBurstBilledAmount() bool { + if o != nil && o.BurstBilledAmount.IsSet() { + return true + } + + return false +} + +// SetBurstBilledAmount gets a reference to the given NullableFloat32 and assigns it to the BurstBilledAmount field. +func (o *MeteredSubscriptionUsage) SetBurstBilledAmount(v float32) { + o.BurstBilledAmount.Set(&v) +} +// SetBurstBilledAmountNil sets the value for BurstBilledAmount to be an explicit nil +func (o *MeteredSubscriptionUsage) SetBurstBilledAmountNil() { + o.BurstBilledAmount.Set(nil) +} + +// UnsetBurstBilledAmount ensures that no value is present for BurstBilledAmount, not even an explicit nil +func (o *MeteredSubscriptionUsage) UnsetBurstBilledAmount() { + o.BurstBilledAmount.Unset() +} + +// GetBurstBilledUnits returns the BurstBilledUnits field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *MeteredSubscriptionUsage) GetBurstBilledUnits() float32 { + if o == nil || IsNil(o.BurstBilledUnits.Get()) { + var ret float32 + return ret + } + return *o.BurstBilledUnits.Get() +} + +// GetBurstBilledUnitsOk returns a tuple with the BurstBilledUnits 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 *MeteredSubscriptionUsage) GetBurstBilledUnitsOk() (*float32, bool) { + if o == nil { + return nil, false + } + return o.BurstBilledUnits.Get(), o.BurstBilledUnits.IsSet() +} + +// HasBurstBilledUnits returns a boolean if a field has been set. +func (o *MeteredSubscriptionUsage) HasBurstBilledUnits() bool { + if o != nil && o.BurstBilledUnits.IsSet() { + return true + } + + return false +} + +// SetBurstBilledUnits gets a reference to the given NullableFloat32 and assigns it to the BurstBilledUnits field. +func (o *MeteredSubscriptionUsage) SetBurstBilledUnits(v float32) { + o.BurstBilledUnits.Set(&v) +} +// SetBurstBilledUnitsNil sets the value for BurstBilledUnits to be an explicit nil +func (o *MeteredSubscriptionUsage) SetBurstBilledUnitsNil() { + o.BurstBilledUnits.Set(nil) +} + +// UnsetBurstBilledUnits ensures that no value is present for BurstBilledUnits, not even an explicit nil +func (o *MeteredSubscriptionUsage) UnsetBurstBilledUnits() { + o.BurstBilledUnits.Unset() +} + +// GetBurstOutstandingAmount returns the BurstOutstandingAmount field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *MeteredSubscriptionUsage) GetBurstOutstandingAmount() float32 { + if o == nil || IsNil(o.BurstOutstandingAmount.Get()) { + var ret float32 + return ret + } + return *o.BurstOutstandingAmount.Get() +} + +// GetBurstOutstandingAmountOk returns a tuple with the BurstOutstandingAmount 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 *MeteredSubscriptionUsage) GetBurstOutstandingAmountOk() (*float32, bool) { + if o == nil { + return nil, false + } + return o.BurstOutstandingAmount.Get(), o.BurstOutstandingAmount.IsSet() +} + +// HasBurstOutstandingAmount returns a boolean if a field has been set. +func (o *MeteredSubscriptionUsage) HasBurstOutstandingAmount() bool { + if o != nil && o.BurstOutstandingAmount.IsSet() { + return true + } + + return false +} + +// SetBurstOutstandingAmount gets a reference to the given NullableFloat32 and assigns it to the BurstOutstandingAmount field. +func (o *MeteredSubscriptionUsage) SetBurstOutstandingAmount(v float32) { + o.BurstOutstandingAmount.Set(&v) +} +// SetBurstOutstandingAmountNil sets the value for BurstOutstandingAmount to be an explicit nil +func (o *MeteredSubscriptionUsage) SetBurstOutstandingAmountNil() { + o.BurstOutstandingAmount.Set(nil) +} + +// UnsetBurstOutstandingAmount ensures that no value is present for BurstOutstandingAmount, not even an explicit nil +func (o *MeteredSubscriptionUsage) UnsetBurstOutstandingAmount() { + o.BurstOutstandingAmount.Unset() +} + +// GetBurstOutstandingUnits returns the BurstOutstandingUnits field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *MeteredSubscriptionUsage) GetBurstOutstandingUnits() float32 { + if o == nil || IsNil(o.BurstOutstandingUnits.Get()) { + var ret float32 + return ret + } + return *o.BurstOutstandingUnits.Get() +} + +// GetBurstOutstandingUnitsOk returns a tuple with the BurstOutstandingUnits 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 *MeteredSubscriptionUsage) GetBurstOutstandingUnitsOk() (*float32, bool) { + if o == nil { + return nil, false + } + return o.BurstOutstandingUnits.Get(), o.BurstOutstandingUnits.IsSet() +} + +// HasBurstOutstandingUnits returns a boolean if a field has been set. +func (o *MeteredSubscriptionUsage) HasBurstOutstandingUnits() bool { + if o != nil && o.BurstOutstandingUnits.IsSet() { + return true + } + + return false +} + +// SetBurstOutstandingUnits gets a reference to the given NullableFloat32 and assigns it to the BurstOutstandingUnits field. +func (o *MeteredSubscriptionUsage) SetBurstOutstandingUnits(v float32) { + o.BurstOutstandingUnits.Set(&v) +} +// SetBurstOutstandingUnitsNil sets the value for BurstOutstandingUnits to be an explicit nil +func (o *MeteredSubscriptionUsage) SetBurstOutstandingUnitsNil() { + o.BurstOutstandingUnits.Set(nil) +} + +// UnsetBurstOutstandingUnits ensures that no value is present for BurstOutstandingUnits, not even an explicit nil +func (o *MeteredSubscriptionUsage) UnsetBurstOutstandingUnits() { + o.BurstOutstandingUnits.Unset() +} + +// GetTotalUsageAmount returns the TotalUsageAmount field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *MeteredSubscriptionUsage) GetTotalUsageAmount() float32 { + if o == nil || IsNil(o.TotalUsageAmount.Get()) { + var ret float32 + return ret + } + return *o.TotalUsageAmount.Get() +} + +// GetTotalUsageAmountOk returns a tuple with the TotalUsageAmount 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 *MeteredSubscriptionUsage) GetTotalUsageAmountOk() (*float32, bool) { + if o == nil { + return nil, false + } + return o.TotalUsageAmount.Get(), o.TotalUsageAmount.IsSet() +} + +// HasTotalUsageAmount returns a boolean if a field has been set. +func (o *MeteredSubscriptionUsage) HasTotalUsageAmount() bool { + if o != nil && o.TotalUsageAmount.IsSet() { + return true + } + + return false +} + +// SetTotalUsageAmount gets a reference to the given NullableFloat32 and assigns it to the TotalUsageAmount field. +func (o *MeteredSubscriptionUsage) SetTotalUsageAmount(v float32) { + o.TotalUsageAmount.Set(&v) +} +// SetTotalUsageAmountNil sets the value for TotalUsageAmount to be an explicit nil +func (o *MeteredSubscriptionUsage) SetTotalUsageAmountNil() { + o.TotalUsageAmount.Set(nil) +} + +// UnsetTotalUsageAmount ensures that no value is present for TotalUsageAmount, not even an explicit nil +func (o *MeteredSubscriptionUsage) UnsetTotalUsageAmount() { + o.TotalUsageAmount.Unset() +} + +// GetTotalUsedUnits returns the TotalUsedUnits field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *MeteredSubscriptionUsage) GetTotalUsedUnits() float32 { + if o == nil || IsNil(o.TotalUsedUnits.Get()) { + var ret float32 + return ret + } + return *o.TotalUsedUnits.Get() +} + +// GetTotalUsedUnitsOk returns a tuple with the TotalUsedUnits 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 *MeteredSubscriptionUsage) GetTotalUsedUnitsOk() (*float32, bool) { + if o == nil { + return nil, false + } + return o.TotalUsedUnits.Get(), o.TotalUsedUnits.IsSet() +} + +// HasTotalUsedUnits returns a boolean if a field has been set. +func (o *MeteredSubscriptionUsage) HasTotalUsedUnits() bool { + if o != nil && o.TotalUsedUnits.IsSet() { + return true + } + + return false +} + +// SetTotalUsedUnits gets a reference to the given NullableFloat32 and assigns it to the TotalUsedUnits field. +func (o *MeteredSubscriptionUsage) SetTotalUsedUnits(v float32) { + o.TotalUsedUnits.Set(&v) +} +// SetTotalUsedUnitsNil sets the value for TotalUsedUnits to be an explicit nil +func (o *MeteredSubscriptionUsage) SetTotalUsedUnitsNil() { + o.TotalUsedUnits.Set(nil) +} + +// UnsetTotalUsedUnits ensures that no value is present for TotalUsedUnits, not even an explicit nil +func (o *MeteredSubscriptionUsage) UnsetTotalUsedUnits() { + o.TotalUsedUnits.Unset() +} + +func (o MeteredSubscriptionUsage) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o MeteredSubscriptionUsage) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if o.BurstRate.IsSet() { + toSerialize["burst_rate"] = o.BurstRate.Get() + } + if o.AllocatedHours.IsSet() { + toSerialize["allocated_hours"] = o.AllocatedHours.Get() + } + if o.PlanBilledAmount.IsSet() { + toSerialize["plan_billed_amount"] = o.PlanBilledAmount.Get() + } + if o.PlanBilledUnits.IsSet() { + toSerialize["plan_billed_units"] = o.PlanBilledUnits.Get() + } + if o.BurstBilledAmount.IsSet() { + toSerialize["burst_billed_amount"] = o.BurstBilledAmount.Get() + } + if o.BurstBilledUnits.IsSet() { + toSerialize["burst_billed_units"] = o.BurstBilledUnits.Get() + } + if o.BurstOutstandingAmount.IsSet() { + toSerialize["burst_outstanding_amount"] = o.BurstOutstandingAmount.Get() + } + if o.BurstOutstandingUnits.IsSet() { + toSerialize["burst_outstanding_units"] = o.BurstOutstandingUnits.Get() + } + if o.TotalUsageAmount.IsSet() { + toSerialize["total_usage_amount"] = o.TotalUsageAmount.Get() + } + if o.TotalUsedUnits.IsSet() { + toSerialize["total_used_units"] = o.TotalUsedUnits.Get() + } + return toSerialize, nil +} + +type NullableMeteredSubscriptionUsage struct { + value *MeteredSubscriptionUsage + isSet bool +} + +func (v NullableMeteredSubscriptionUsage) Get() *MeteredSubscriptionUsage { + return v.value +} + +func (v *NullableMeteredSubscriptionUsage) Set(val *MeteredSubscriptionUsage) { + v.value = val + v.isSet = true +} + +func (v NullableMeteredSubscriptionUsage) IsSet() bool { + return v.isSet +} + +func (v *NullableMeteredSubscriptionUsage) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableMeteredSubscriptionUsage(val *MeteredSubscriptionUsage) *NullableMeteredSubscriptionUsage { + return &NullableMeteredSubscriptionUsage{value: val, isSet: true} +} + +func (v NullableMeteredSubscriptionUsage) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableMeteredSubscriptionUsage) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_model.go b/model_model.go index 17fa18d..966b8fb 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.0.0-20323 +API version: 6.1.0-20784 */ // 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 2eb7989..b078638 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.0.0-20323 +API version: 6.1.0-20784 */ // 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 8a900d3..24815dd 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.0.0-20323 +API version: 6.1.0-20784 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_open_id_config.go b/model_open_id_config.go index 7a88d1b..bd476f4 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.0.0-20323 +API version: 6.1.0-20784 */ // 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 27d9e76..c8e8627 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.0.0-20323 +API version: 6.1.0-20784 */ // 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 1dd59e5..b7c192b 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.0.0-20323 +API version: 6.1.0-20784 */ // 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 405c784..04fb918 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.0.0-20323 +API version: 6.1.0-20784 */ // 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 d0d7e4f..e890078 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.0.0-20323 +API version: 6.1.0-20784 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_plan.go b/model_plan.go index 8b6ac68..f299139 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.0.0-20323 +API version: 6.1.0-20784 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_post_snapshot_permissions_request_payload.go b/model_post_snapshot_permissions_request_payload.go new file mode 100644 index 0000000..bfad487 --- /dev/null +++ b/model_post_snapshot_permissions_request_payload.go @@ -0,0 +1,165 @@ +/* +Corellium API + +REST API to manage your virtual devices. + +API version: 6.1.0-20784 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package corellium + +import ( + "encoding/json" +) + +// checks if the PostSnapshotPermissionsRequestPayload type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &PostSnapshotPermissionsRequestPayload{} + +// PostSnapshotPermissionsRequestPayload +type PostSnapshotPermissionsRequestPayload struct { + // The email of the user. + Email string `json:"email"` + // The user ID. + UserId NullableString `json:"userId,omitempty"` +} + +// NewPostSnapshotPermissionsRequestPayload instantiates a new PostSnapshotPermissionsRequestPayload object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewPostSnapshotPermissionsRequestPayload(email string) *PostSnapshotPermissionsRequestPayload { + this := PostSnapshotPermissionsRequestPayload{} + this.Email = email + return &this +} + +// NewPostSnapshotPermissionsRequestPayloadWithDefaults instantiates a new PostSnapshotPermissionsRequestPayload object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewPostSnapshotPermissionsRequestPayloadWithDefaults() *PostSnapshotPermissionsRequestPayload { + this := PostSnapshotPermissionsRequestPayload{} + return &this +} + +// GetEmail returns the Email field value +func (o *PostSnapshotPermissionsRequestPayload) 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 *PostSnapshotPermissionsRequestPayload) GetEmailOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Email, true +} + +// SetEmail sets field value +func (o *PostSnapshotPermissionsRequestPayload) SetEmail(v string) { + o.Email = v +} + +// GetUserId returns the UserId field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PostSnapshotPermissionsRequestPayload) 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 *PostSnapshotPermissionsRequestPayload) 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 *PostSnapshotPermissionsRequestPayload) 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 *PostSnapshotPermissionsRequestPayload) SetUserId(v string) { + o.UserId.Set(&v) +} +// SetUserIdNil sets the value for UserId to be an explicit nil +func (o *PostSnapshotPermissionsRequestPayload) SetUserIdNil() { + o.UserId.Set(nil) +} + +// UnsetUserId ensures that no value is present for UserId, not even an explicit nil +func (o *PostSnapshotPermissionsRequestPayload) UnsetUserId() { + o.UserId.Unset() +} + +func (o PostSnapshotPermissionsRequestPayload) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o PostSnapshotPermissionsRequestPayload) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["email"] = o.Email + if o.UserId.IsSet() { + toSerialize["userId"] = o.UserId.Get() + } + return toSerialize, nil +} + +type NullablePostSnapshotPermissionsRequestPayload struct { + value *PostSnapshotPermissionsRequestPayload + isSet bool +} + +func (v NullablePostSnapshotPermissionsRequestPayload) Get() *PostSnapshotPermissionsRequestPayload { + return v.value +} + +func (v *NullablePostSnapshotPermissionsRequestPayload) Set(val *PostSnapshotPermissionsRequestPayload) { + v.value = val + v.isSet = true +} + +func (v NullablePostSnapshotPermissionsRequestPayload) IsSet() bool { + return v.isSet +} + +func (v *NullablePostSnapshotPermissionsRequestPayload) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePostSnapshotPermissionsRequestPayload(val *PostSnapshotPermissionsRequestPayload) *NullablePostSnapshotPermissionsRequestPayload { + return &NullablePostSnapshotPermissionsRequestPayload{value: val, isSet: true} +} + +func (v NullablePostSnapshotPermissionsRequestPayload) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePostSnapshotPermissionsRequestPayload) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_project.go b/model_project.go index cad4f83..b61d246 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.0.0-20323 +API version: 6.1.0-20784 */ // 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 fcffc46..32817ba 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.0.0-20323 +API version: 6.1.0-20784 */ // 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 a11791d..8c84b15 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.0.0-20323 +API version: 6.1.0-20784 */ // 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 b66f539..bb78d1e 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.0.0-20323 +API version: 6.1.0-20784 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_project_usage.go b/model_project_usage.go index 24bf935..30d9df7 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.0.0-20323 +API version: 6.1.0-20784 */ // 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 09325a3..eaba003 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.0.0-20323 +API version: 6.1.0-20784 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_rate_info.go b/model_rate_info.go index bd08afb..24a36d9 100644 --- a/model_rate_info.go +++ b/model_rate_info.go @@ -3,7 +3,7 @@ Corellium API REST API to manage your virtual devices. -API version: 6.0.0-20323 +API version: 6.1.0-20784 */ // 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 0b72df5..20ec696 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.0.0-20323 +API version: 6.1.0-20784 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_role.go b/model_role.go index 50ebb23..3c99ad6 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.0.0-20323 +API version: 6.1.0-20784 */ // 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 8726bdb..7da215a 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.0.0-20323 +API version: 6.1.0-20784 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_snapshot.go b/model_snapshot.go index 103b2b7..6362c6e 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.0.0-20323 +API version: 6.1.0-20784 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,28 +20,37 @@ var _ MappedNullable = &Snapshot{} // Snapshot type Snapshot struct { // Snapshot ID - Id NullableString `json:"id,omitempty"` + Id string `json:"id"` // Snapshot name - Name NullableString `json:"name,omitempty"` + Name string `json:"name"` // Instance that this snapshot is of - Instance NullableString `json:"instance,omitempty"` - Status *SnapshotStatus `json:"status,omitempty"` + Instance string `json:"instance"` + Status SnapshotStatus `json:"status"` // UNIX Date that the snapshot was created - Date NullableFloat32 `json:"date,omitempty"` + Date float32 `json:"date"` // - Fresh NullableBool `json:"fresh,omitempty"` + Fresh bool `json:"fresh"` // Live snapshot (included state and memory) - Live NullableBool `json:"live,omitempty"` + Live bool `json:"live"` // - Local NullableBool `json:"local,omitempty"` + Local bool `json:"local"` + Sharing *SnapshotSharing `json:"sharing,omitempty"` } // NewSnapshot instantiates a new Snapshot object // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed -func NewSnapshot() *Snapshot { +func NewSnapshot(id string, name string, instance string, status SnapshotStatus, date float32, fresh bool, live bool, local bool) *Snapshot { this := Snapshot{} + this.Id = id + this.Name = name + this.Instance = instance + this.Status = status + this.Date = date + this.Fresh = fresh + this.Live = live + this.Local = local return &this } @@ -53,330 +62,228 @@ func NewSnapshotWithDefaults() *Snapshot { return &this } -// GetId returns the Id field value if set, zero value otherwise (both if not set or set to explicit null). +// GetId returns the Id field value func (o *Snapshot) GetId() string { - if o == nil || IsNil(o.Id.Get()) { + if o == nil { var ret string return ret } - return *o.Id.Get() + + return o.Id } -// GetIdOk returns a tuple with the Id field value if set, nil otherwise +// GetIdOk returns a tuple with the Id 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 *Snapshot) GetIdOk() (*string, bool) { if o == nil { return nil, false } - return o.Id.Get(), o.Id.IsSet() + return &o.Id, true } -// HasId returns a boolean if a field has been set. -func (o *Snapshot) 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. +// SetId sets field value func (o *Snapshot) SetId(v string) { - o.Id.Set(&v) -} -// SetIdNil sets the value for Id to be an explicit nil -func (o *Snapshot) SetIdNil() { - o.Id.Set(nil) -} - -// UnsetId ensures that no value is present for Id, not even an explicit nil -func (o *Snapshot) UnsetId() { - o.Id.Unset() + o.Id = v } -// GetName returns the Name field value if set, zero value otherwise (both if not set or set to explicit null). +// GetName returns the Name field value func (o *Snapshot) GetName() string { - if o == nil || IsNil(o.Name.Get()) { + if o == nil { var ret string return ret } - return *o.Name.Get() + + return o.Name } -// GetNameOk returns a tuple with the Name field value if set, nil otherwise +// GetNameOk returns a tuple with the Name 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 *Snapshot) GetNameOk() (*string, bool) { if o == nil { return nil, false } - return o.Name.Get(), o.Name.IsSet() + return &o.Name, true } -// HasName returns a boolean if a field has been set. -func (o *Snapshot) HasName() bool { - if o != nil && o.Name.IsSet() { - return true - } - - return false -} - -// SetName gets a reference to the given NullableString and assigns it to the Name field. +// SetName sets field value func (o *Snapshot) SetName(v string) { - o.Name.Set(&v) -} -// SetNameNil sets the value for Name to be an explicit nil -func (o *Snapshot) SetNameNil() { - o.Name.Set(nil) -} - -// UnsetName ensures that no value is present for Name, not even an explicit nil -func (o *Snapshot) UnsetName() { - o.Name.Unset() + o.Name = v } -// GetInstance returns the Instance field value if set, zero value otherwise (both if not set or set to explicit null). +// GetInstance returns the Instance field value func (o *Snapshot) GetInstance() string { - if o == nil || IsNil(o.Instance.Get()) { + if o == nil { var ret string return ret } - return *o.Instance.Get() + + return o.Instance } -// GetInstanceOk returns a tuple with the Instance field value if set, nil otherwise +// GetInstanceOk returns a tuple with the Instance 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 *Snapshot) GetInstanceOk() (*string, bool) { if o == nil { return nil, false } - return o.Instance.Get(), o.Instance.IsSet() + return &o.Instance, true } -// HasInstance returns a boolean if a field has been set. -func (o *Snapshot) 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. +// SetInstance sets field value func (o *Snapshot) SetInstance(v string) { - o.Instance.Set(&v) -} -// SetInstanceNil sets the value for Instance to be an explicit nil -func (o *Snapshot) SetInstanceNil() { - o.Instance.Set(nil) + o.Instance = v } -// UnsetInstance ensures that no value is present for Instance, not even an explicit nil -func (o *Snapshot) UnsetInstance() { - o.Instance.Unset() -} - -// GetStatus returns the Status field value if set, zero value otherwise. +// GetStatus returns the Status field value func (o *Snapshot) GetStatus() SnapshotStatus { - if o == nil || IsNil(o.Status) { + if o == nil { var ret SnapshotStatus return ret } - return *o.Status + + return o.Status } -// GetStatusOk returns a tuple with the Status field value if set, nil otherwise +// GetStatusOk returns a tuple with the Status field value // and a boolean to check if the value has been set. func (o *Snapshot) GetStatusOk() (*SnapshotStatus, bool) { - if o == nil || IsNil(o.Status) { + if o == nil { return nil, false } - return o.Status, true -} - -// HasStatus returns a boolean if a field has been set. -func (o *Snapshot) HasStatus() bool { - if o != nil && !IsNil(o.Status) { - return true - } - - return false + return &o.Status, true } -// SetStatus gets a reference to the given SnapshotStatus and assigns it to the Status field. +// SetStatus sets field value func (o *Snapshot) SetStatus(v SnapshotStatus) { - o.Status = &v + o.Status = v } -// GetDate returns the Date field value if set, zero value otherwise (both if not set or set to explicit null). +// GetDate returns the Date field value func (o *Snapshot) GetDate() float32 { - if o == nil || IsNil(o.Date.Get()) { + if o == nil { var ret float32 return ret } - return *o.Date.Get() + + return o.Date } -// GetDateOk returns a tuple with the Date field value if set, nil otherwise +// GetDateOk returns a tuple with the Date 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 *Snapshot) GetDateOk() (*float32, bool) { if o == nil { return nil, false } - return o.Date.Get(), o.Date.IsSet() -} - -// HasDate returns a boolean if a field has been set. -func (o *Snapshot) HasDate() bool { - if o != nil && o.Date.IsSet() { - return true - } - - return false + return &o.Date, true } -// SetDate gets a reference to the given NullableFloat32 and assigns it to the Date field. +// SetDate sets field value func (o *Snapshot) SetDate(v float32) { - o.Date.Set(&v) -} -// SetDateNil sets the value for Date to be an explicit nil -func (o *Snapshot) SetDateNil() { - o.Date.Set(nil) -} - -// UnsetDate ensures that no value is present for Date, not even an explicit nil -func (o *Snapshot) UnsetDate() { - o.Date.Unset() + o.Date = v } -// GetFresh returns the Fresh field value if set, zero value otherwise (both if not set or set to explicit null). +// GetFresh returns the Fresh field value func (o *Snapshot) GetFresh() bool { - if o == nil || IsNil(o.Fresh.Get()) { + if o == nil { var ret bool return ret } - return *o.Fresh.Get() + + return o.Fresh } -// GetFreshOk returns a tuple with the Fresh field value if set, nil otherwise +// GetFreshOk returns a tuple with the Fresh 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 *Snapshot) GetFreshOk() (*bool, bool) { if o == nil { return nil, false } - return o.Fresh.Get(), o.Fresh.IsSet() + return &o.Fresh, true } -// HasFresh returns a boolean if a field has been set. -func (o *Snapshot) HasFresh() bool { - if o != nil && o.Fresh.IsSet() { - return true - } - - return false -} - -// SetFresh gets a reference to the given NullableBool and assigns it to the Fresh field. +// SetFresh sets field value func (o *Snapshot) SetFresh(v bool) { - o.Fresh.Set(&v) -} -// SetFreshNil sets the value for Fresh to be an explicit nil -func (o *Snapshot) SetFreshNil() { - o.Fresh.Set(nil) + o.Fresh = v } -// UnsetFresh ensures that no value is present for Fresh, not even an explicit nil -func (o *Snapshot) UnsetFresh() { - o.Fresh.Unset() -} - -// GetLive returns the Live field value if set, zero value otherwise (both if not set or set to explicit null). +// GetLive returns the Live field value func (o *Snapshot) GetLive() bool { - if o == nil || IsNil(o.Live.Get()) { + if o == nil { var ret bool return ret } - return *o.Live.Get() + + return o.Live } -// GetLiveOk returns a tuple with the Live field value if set, nil otherwise +// GetLiveOk returns a tuple with the Live 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 *Snapshot) GetLiveOk() (*bool, bool) { if o == nil { return nil, false } - return o.Live.Get(), o.Live.IsSet() + return &o.Live, true } -// HasLive returns a boolean if a field has been set. -func (o *Snapshot) HasLive() bool { - if o != nil && o.Live.IsSet() { - return true +// SetLive sets field value +func (o *Snapshot) SetLive(v bool) { + o.Live = v +} + +// GetLocal returns the Local field value +func (o *Snapshot) GetLocal() bool { + if o == nil { + var ret bool + return ret } - return false + return o.Local } -// SetLive gets a reference to the given NullableBool and assigns it to the Live field. -func (o *Snapshot) SetLive(v bool) { - o.Live.Set(&v) -} -// SetLiveNil sets the value for Live to be an explicit nil -func (o *Snapshot) SetLiveNil() { - o.Live.Set(nil) +// GetLocalOk returns a tuple with the Local field value +// and a boolean to check if the value has been set. +func (o *Snapshot) GetLocalOk() (*bool, bool) { + if o == nil { + return nil, false + } + return &o.Local, true } -// UnsetLive ensures that no value is present for Live, not even an explicit nil -func (o *Snapshot) UnsetLive() { - o.Live.Unset() +// SetLocal sets field value +func (o *Snapshot) SetLocal(v bool) { + o.Local = v } -// GetLocal returns the Local field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *Snapshot) GetLocal() bool { - if o == nil || IsNil(o.Local.Get()) { - var ret bool +// GetSharing returns the Sharing field value if set, zero value otherwise. +func (o *Snapshot) GetSharing() SnapshotSharing { + if o == nil || IsNil(o.Sharing) { + var ret SnapshotSharing return ret } - return *o.Local.Get() + return *o.Sharing } -// GetLocalOk returns a tuple with the Local field value if set, nil otherwise +// GetSharingOk returns a tuple with the Sharing 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) GetLocalOk() (*bool, bool) { - if o == nil { +func (o *Snapshot) GetSharingOk() (*SnapshotSharing, bool) { + if o == nil || IsNil(o.Sharing) { return nil, false } - return o.Local.Get(), o.Local.IsSet() + return o.Sharing, true } -// HasLocal returns a boolean if a field has been set. -func (o *Snapshot) HasLocal() bool { - if o != nil && o.Local.IsSet() { +// HasSharing returns a boolean if a field has been set. +func (o *Snapshot) HasSharing() bool { + if o != nil && !IsNil(o.Sharing) { return true } return false } -// SetLocal gets a reference to the given NullableBool and assigns it to the Local field. -func (o *Snapshot) SetLocal(v bool) { - o.Local.Set(&v) -} -// SetLocalNil sets the value for Local to be an explicit nil -func (o *Snapshot) SetLocalNil() { - o.Local.Set(nil) -} - -// UnsetLocal ensures that no value is present for Local, not even an explicit nil -func (o *Snapshot) UnsetLocal() { - o.Local.Unset() +// SetSharing gets a reference to the given SnapshotSharing and assigns it to the Sharing field. +func (o *Snapshot) SetSharing(v SnapshotSharing) { + o.Sharing = &v } func (o Snapshot) MarshalJSON() ([]byte, error) { @@ -389,29 +296,16 @@ func (o Snapshot) MarshalJSON() ([]byte, error) { func (o Snapshot) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - if o.Id.IsSet() { - toSerialize["id"] = o.Id.Get() - } - if o.Name.IsSet() { - toSerialize["name"] = o.Name.Get() - } - if o.Instance.IsSet() { - toSerialize["instance"] = o.Instance.Get() - } - if !IsNil(o.Status) { - toSerialize["status"] = o.Status - } - if o.Date.IsSet() { - toSerialize["date"] = o.Date.Get() - } - if o.Fresh.IsSet() { - toSerialize["fresh"] = o.Fresh.Get() - } - if o.Live.IsSet() { - toSerialize["live"] = o.Live.Get() - } - if o.Local.IsSet() { - toSerialize["local"] = o.Local.Get() + toSerialize["id"] = o.Id + toSerialize["name"] = o.Name + toSerialize["instance"] = o.Instance + toSerialize["status"] = o.Status + toSerialize["date"] = o.Date + toSerialize["fresh"] = o.Fresh + toSerialize["live"] = o.Live + toSerialize["local"] = o.Local + if !IsNil(o.Sharing) { + toSerialize["sharing"] = o.Sharing } return toSerialize, nil } diff --git a/model_snapshot_creation_options.go b/model_snapshot_creation_options.go index 856fc6d..a353a31 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.0.0-20323 +API version: 6.1.0-20784 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_snapshot_permissions.go b/model_snapshot_permissions.go index 20b2c1c..87f5579 100644 --- a/model_snapshot_permissions.go +++ b/model_snapshot_permissions.go @@ -3,7 +3,7 @@ Corellium API REST API to manage your virtual devices. -API version: 6.0.0-20323 +API version: 6.1.0-20784 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -21,7 +21,14 @@ var _ MappedNullable = &SnapshotPermissions{} type SnapshotPermissions struct { // Indicates if snapshot permissions are enabled Enabled NullableBool `json:"enabled,omitempty"` - InvitationTypes *SnapshotInvitationTypes `json:"invitationTypes,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"` } // NewSnapshotPermissions instantiates a new SnapshotPermissions object @@ -83,36 +90,172 @@ func (o *SnapshotPermissions) UnsetEnabled() { o.Enabled.Unset() } -// GetInvitationTypes returns the InvitationTypes field value if set, zero value otherwise. -func (o *SnapshotPermissions) GetInvitationTypes() SnapshotInvitationTypes { - if o == nil || IsNil(o.InvitationTypes) { - var ret SnapshotInvitationTypes +// GetPublicLink returns the PublicLink field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *SnapshotPermissions) 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 *SnapshotPermissions) 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 *SnapshotPermissions) 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 *SnapshotPermissions) SetPublicLink(v bool) { + o.PublicLink.Set(&v) +} +// SetPublicLinkNil sets the value for PublicLink to be an explicit nil +func (o *SnapshotPermissions) SetPublicLinkNil() { + o.PublicLink.Set(nil) +} + +// UnsetPublicLink ensures that no value is present for PublicLink, not even an explicit nil +func (o *SnapshotPermissions) 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 *SnapshotPermissions) 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 *SnapshotPermissions) 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 *SnapshotPermissions) 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 *SnapshotPermissions) SetDomainRestrictedLink(v bool) { + o.DomainRestrictedLink.Set(&v) +} +// SetDomainRestrictedLinkNil sets the value for DomainRestrictedLink to be an explicit nil +func (o *SnapshotPermissions) SetDomainRestrictedLinkNil() { + o.DomainRestrictedLink.Set(nil) +} + +// UnsetDomainRestrictedLink ensures that no value is present for DomainRestrictedLink, not even an explicit nil +func (o *SnapshotPermissions) 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 *SnapshotPermissions) GetPasswordPublicLink() bool { + if o == nil || IsNil(o.PasswordPublicLink.Get()) { + var ret bool return ret } - return *o.InvitationTypes + return *o.PasswordPublicLink.Get() } -// GetInvitationTypesOk returns a tuple with the InvitationTypes field value if set, nil otherwise +// GetPasswordPublicLinkOk returns a tuple with the PasswordPublicLink field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *SnapshotPermissions) GetInvitationTypesOk() (*SnapshotInvitationTypes, bool) { - if o == nil || IsNil(o.InvitationTypes) { +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *SnapshotPermissions) GetPasswordPublicLinkOk() (*bool, bool) { + if o == nil { return nil, false } - return o.InvitationTypes, true + return o.PasswordPublicLink.Get(), o.PasswordPublicLink.IsSet() } -// HasInvitationTypes returns a boolean if a field has been set. -func (o *SnapshotPermissions) HasInvitationTypes() bool { - if o != nil && !IsNil(o.InvitationTypes) { +// HasPasswordPublicLink returns a boolean if a field has been set. +func (o *SnapshotPermissions) HasPasswordPublicLink() bool { + if o != nil && o.PasswordPublicLink.IsSet() { return true } return false } -// SetInvitationTypes gets a reference to the given SnapshotInvitationTypes and assigns it to the InvitationTypes field. -func (o *SnapshotPermissions) SetInvitationTypes(v SnapshotInvitationTypes) { - o.InvitationTypes = &v +// SetPasswordPublicLink gets a reference to the given NullableBool and assigns it to the PasswordPublicLink field. +func (o *SnapshotPermissions) SetPasswordPublicLink(v bool) { + o.PasswordPublicLink.Set(&v) +} +// SetPasswordPublicLinkNil sets the value for PasswordPublicLink to be an explicit nil +func (o *SnapshotPermissions) SetPasswordPublicLinkNil() { + o.PasswordPublicLink.Set(nil) +} + +// UnsetPasswordPublicLink ensures that no value is present for PasswordPublicLink, not even an explicit nil +func (o *SnapshotPermissions) 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 *SnapshotPermissions) 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 *SnapshotPermissions) 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 *SnapshotPermissions) 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 *SnapshotPermissions) SetEmailInvite(v bool) { + o.EmailInvite.Set(&v) +} +// SetEmailInviteNil sets the value for EmailInvite to be an explicit nil +func (o *SnapshotPermissions) SetEmailInviteNil() { + o.EmailInvite.Set(nil) +} + +// UnsetEmailInvite ensures that no value is present for EmailInvite, not even an explicit nil +func (o *SnapshotPermissions) UnsetEmailInvite() { + o.EmailInvite.Unset() } func (o SnapshotPermissions) MarshalJSON() ([]byte, error) { @@ -128,8 +271,17 @@ func (o SnapshotPermissions) ToMap() (map[string]interface{}, error) { if o.Enabled.IsSet() { toSerialize["enabled"] = o.Enabled.Get() } - if !IsNil(o.InvitationTypes) { - toSerialize["invitationTypes"] = o.InvitationTypes + 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 } diff --git a/model_snapshot_sharing.go b/model_snapshot_sharing.go new file mode 100644 index 0000000..e6abf49 --- /dev/null +++ b/model_snapshot_sharing.go @@ -0,0 +1,146 @@ +/* +Corellium API + +REST API to manage your virtual devices. + +API version: 6.1.0-20784 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package corellium + +import ( + "encoding/json" +) + +// checks if the SnapshotSharing type satisfies the MappedNullable interface at compile time +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"` +} + +// 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 { + this := SnapshotSharing{} + this.Url = url + this.Users = users + return &this +} + +// 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 +func NewSnapshotSharingWithDefaults() *SnapshotSharing { + this := SnapshotSharing{} + return &this +} + +// GetUrl returns the Url field value +func (o *SnapshotSharing) GetUrl() string { + if o == nil { + var ret string + return ret + } + + return o.Url +} + +// GetUrlOk returns a tuple with the Url field value +// and a boolean to check if the value has been set. +func (o *SnapshotSharing) GetUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Url, true +} + +// SetUrl sets field value +func (o *SnapshotSharing) SetUrl(v string) { + o.Url = v +} + +// GetUsers returns the Users field value +func (o *SnapshotSharing) GetUsers() []SnapshotUser { + if o == nil { + var ret []SnapshotUser + return ret + } + + return o.Users +} + +// GetUsersOk returns a tuple with the Users field value +// and a boolean to check if the value has been set. +func (o *SnapshotSharing) GetUsersOk() ([]SnapshotUser, bool) { + if o == nil { + return nil, false + } + return o.Users, true +} + +// SetUsers sets field value +func (o *SnapshotSharing) SetUsers(v []SnapshotUser) { + o.Users = v +} + +func (o SnapshotSharing) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o SnapshotSharing) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["url"] = o.Url + toSerialize["users"] = o.Users + return toSerialize, nil +} + +type NullableSnapshotSharing struct { + value *SnapshotSharing + isSet bool +} + +func (v NullableSnapshotSharing) Get() *SnapshotSharing { + return v.value +} + +func (v *NullableSnapshotSharing) Set(val *SnapshotSharing) { + v.value = val + v.isSet = true +} + +func (v NullableSnapshotSharing) IsSet() bool { + return v.isSet +} + +func (v *NullableSnapshotSharing) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableSnapshotSharing(val *SnapshotSharing) *NullableSnapshotSharing { + return &NullableSnapshotSharing{value: val, isSet: true} +} + +func (v NullableSnapshotSharing) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableSnapshotSharing) 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 9b51b85..fef86fd 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.0.0-20323 +API version: 6.1.0-20784 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,18 +19,20 @@ var _ MappedNullable = &SnapshotStatus{} // SnapshotStatus type SnapshotStatus struct { - // - Task NullableString `json:"task,omitempty"` - // - Created NullableBool `json:"created,omitempty"` + // The current task being performed on the snapshot. + Task string `json:"task"` + // Indicates if the snapshot has been successfully created. + Created bool `json:"created"` } // 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() *SnapshotStatus { +func NewSnapshotStatus(task string, created bool) *SnapshotStatus { this := SnapshotStatus{} + this.Task = task + this.Created = created return &this } @@ -42,88 +44,52 @@ func NewSnapshotStatusWithDefaults() *SnapshotStatus { return &this } -// GetTask returns the Task field value if set, zero value otherwise (both if not set or set to explicit null). +// GetTask returns the Task field value func (o *SnapshotStatus) GetTask() string { - if o == nil || IsNil(o.Task.Get()) { + if o == nil { var ret string return ret } - return *o.Task.Get() + + return o.Task } -// GetTaskOk returns a tuple with the Task field value if set, nil otherwise +// GetTaskOk returns a tuple with the Task 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 *SnapshotStatus) GetTaskOk() (*string, bool) { if o == nil { return nil, false } - 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 + return &o.Task, true } -// SetTask gets a reference to the given NullableString and assigns it to the Task field. +// SetTask sets field value func (o *SnapshotStatus) SetTask(v string) { - o.Task.Set(&v) -} -// SetTaskNil sets the value for Task to be an explicit nil -func (o *SnapshotStatus) SetTaskNil() { - o.Task.Set(nil) + o.Task = v } -// 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). +// GetCreated returns the Created field value func (o *SnapshotStatus) GetCreated() bool { - if o == nil || IsNil(o.Created.Get()) { + if o == nil { var ret bool return ret } - return *o.Created.Get() + + return o.Created } -// GetCreatedOk returns a tuple with the Created field value if set, nil otherwise +// GetCreatedOk returns a tuple with the Created 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 *SnapshotStatus) GetCreatedOk() (*bool, bool) { if o == nil { return nil, false } - 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 + return &o.Created, true } -// SetCreated gets a reference to the given NullableBool and assigns it to the Created field. +// SetCreated sets field value func (o *SnapshotStatus) SetCreated(v bool) { - 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() + o.Created = v } func (o SnapshotStatus) MarshalJSON() ([]byte, error) { @@ -136,12 +102,8 @@ func (o SnapshotStatus) MarshalJSON() ([]byte, error) { func (o SnapshotStatus) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - if o.Task.IsSet() { - toSerialize["task"] = o.Task.Get() - } - if o.Created.IsSet() { - toSerialize["created"] = o.Created.Get() - } + toSerialize["task"] = o.Task + toSerialize["created"] = o.Created return toSerialize, nil } diff --git a/model_snapshot_user.go b/model_snapshot_user.go new file mode 100644 index 0000000..66f17d0 --- /dev/null +++ b/model_snapshot_user.go @@ -0,0 +1,230 @@ +/* +Corellium API + +REST API to manage your virtual devices. + +API version: 6.1.0-20784 +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package corellium + +import ( + "encoding/json" +) + +// checks if the SnapshotUser type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &SnapshotUser{} + +// SnapshotUser +type SnapshotUser struct { + // The email of the user. + Email string `json:"email"` + // The date when the invite was sent. + InviteSentAt float32 `json:"inviteSentAt"` + // The timestamp. + Timestamp float32 `json:"timestamp"` + // The user ID. + UserId string `json:"userId"` + // The label. + Label string `json:"label"` +} + +// NewSnapshotUser instantiates a new SnapshotUser object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewSnapshotUser(email string, inviteSentAt float32, timestamp float32, userId string, label string) *SnapshotUser { + this := SnapshotUser{} + this.Email = email + this.InviteSentAt = inviteSentAt + this.Timestamp = timestamp + this.UserId = userId + this.Label = label + return &this +} + +// NewSnapshotUserWithDefaults instantiates a new SnapshotUser object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewSnapshotUserWithDefaults() *SnapshotUser { + this := SnapshotUser{} + return &this +} + +// GetEmail returns the Email field value +func (o *SnapshotUser) 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 *SnapshotUser) GetEmailOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Email, true +} + +// SetEmail sets field value +func (o *SnapshotUser) SetEmail(v string) { + o.Email = v +} + +// GetInviteSentAt returns the InviteSentAt field value +func (o *SnapshotUser) 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 *SnapshotUser) GetInviteSentAtOk() (*float32, bool) { + if o == nil { + return nil, false + } + return &o.InviteSentAt, true +} + +// SetInviteSentAt sets field value +func (o *SnapshotUser) SetInviteSentAt(v float32) { + o.InviteSentAt = v +} + +// GetTimestamp returns the Timestamp field value +func (o *SnapshotUser) GetTimestamp() float32 { + if o == nil { + var ret float32 + return ret + } + + return o.Timestamp +} + +// GetTimestampOk returns a tuple with the Timestamp field value +// and a boolean to check if the value has been set. +func (o *SnapshotUser) GetTimestampOk() (*float32, bool) { + if o == nil { + return nil, false + } + return &o.Timestamp, true +} + +// SetTimestamp sets field value +func (o *SnapshotUser) SetTimestamp(v float32) { + o.Timestamp = v +} + +// GetUserId returns the UserId field value +func (o *SnapshotUser) GetUserId() string { + if o == nil { + var ret string + return ret + } + + return o.UserId +} + +// GetUserIdOk returns a tuple with the UserId field value +// and a boolean to check if the value has been set. +func (o *SnapshotUser) GetUserIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.UserId, true +} + +// SetUserId sets field value +func (o *SnapshotUser) SetUserId(v string) { + o.UserId = v +} + +// GetLabel returns the Label field value +func (o *SnapshotUser) GetLabel() string { + if o == nil { + var ret string + return ret + } + + return o.Label +} + +// GetLabelOk returns a tuple with the Label field value +// and a boolean to check if the value has been set. +func (o *SnapshotUser) GetLabelOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Label, true +} + +// SetLabel sets field value +func (o *SnapshotUser) SetLabel(v string) { + o.Label = v +} + +func (o SnapshotUser) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o SnapshotUser) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["email"] = o.Email + toSerialize["inviteSentAt"] = o.InviteSentAt + toSerialize["timestamp"] = o.Timestamp + toSerialize["userId"] = o.UserId + toSerialize["label"] = o.Label + return toSerialize, nil +} + +type NullableSnapshotUser struct { + value *SnapshotUser + isSet bool +} + +func (v NullableSnapshotUser) Get() *SnapshotUser { + return v.value +} + +func (v *NullableSnapshotUser) Set(val *SnapshotUser) { + v.value = val + v.isSet = true +} + +func (v NullableSnapshotUser) IsSet() bool { + return v.isSet +} + +func (v *NullableSnapshotUser) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableSnapshotUser(val *SnapshotUser) *NullableSnapshotUser { + return &NullableSnapshotUser{value: val, isSet: true} +} + +func (v NullableSnapshotUser) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableSnapshotUser) 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 f9c96e9..68886c3 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.0.0-20323 +API version: 6.1.0-20784 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_team.go b/model_team.go index b07d94b..178932a 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.0.0-20323 +API version: 6.1.0-20784 */ // 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 cd3cecc..289b058 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.0.0-20323 +API version: 6.1.0-20784 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_text_input.go b/model_text_input.go index 0ea6060..7358c63 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.0.0-20323 +API version: 6.1.0-20784 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_token.go b/model_token.go index 4da8188..1f6558c 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.0.0-20323 +API version: 6.1.0-20784 */ // 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 c41f1b3..4893cc8 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.0.0-20323 +API version: 6.1.0-20784 */ // 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 816476a..f30b34f 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.0.0-20323 +API version: 6.1.0-20784 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_trial.go b/model_trial.go index 364f6df..6e2dbbb 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.0.0-20323 +API version: 6.1.0-20784 */ // 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 693e2cd..a8f4412 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.0.0-20323 +API version: 6.1.0-20784 */ // 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 a24afc6..0696110 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.0.0-20323 +API version: 6.1.0-20784 */ // 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 91a30fb..4fed38f 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.0.0-20323 +API version: 6.1.0-20784 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_update_extension.go b/model_update_extension.go index f393c46..38e5c67 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.0.0-20323 +API version: 6.1.0-20784 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_user.go b/model_user.go index 7381a49..d68c15f 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.0.0-20323 +API version: 6.1.0-20784 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_user_error.go b/model_user_error.go index 4623ff1..e274328 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.0.0-20323 +API version: 6.1.0-20784 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_v1_create_hook_parameters.go b/model_v1_create_hook_parameters.go index a18d7a9..532abd6 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.0.0-20323 +API version: 6.1.0-20784 */ // 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 e217b4a..0343161 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.0.0-20323 +API version: 6.1.0-20784 */ // 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 bf1fa74..9ee78ce 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.0.0-20323 +API version: 6.1.0-20784 */ // 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 f560685..b153728 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.0.0-20323 +API version: 6.1.0-20784 */ // 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 b84e5df..334a9cf 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.0.0-20323 +API version: 6.1.0-20784 */ // 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 119cd28..ab10448 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.0.0-20323 +API version: 6.1.0-20784 */ // 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 c64d45b..516553a 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.0.0-20323 +API version: 6.1.0-20784 */ // 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 4c31d25..c6daf93 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.0.0-20323 +API version: 6.1.0-20784 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/response.go b/response.go index 7819d4f..d6d157c 100644 --- a/response.go +++ b/response.go @@ -3,7 +3,7 @@ Corellium API REST API to manage your virtual devices. -API version: 6.0.0-20323 +API version: 6.1.0-20784 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/test/api_snapshots_test.go b/test/api_snapshots_test.go index 5806f82..62ed01b 100644 --- a/test/api_snapshots_test.go +++ b/test/api_snapshots_test.go @@ -63,6 +63,20 @@ 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 @@ -92,6 +106,18 @@ 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 @@ -135,6 +161,20 @@ 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/utils.go b/utils.go index 9adbd20..8019031 100644 --- a/utils.go +++ b/utils.go @@ -3,7 +3,7 @@ Corellium API REST API to manage your virtual devices. -API version: 6.0.0-20323 +API version: 6.1.0-20784 */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.