diff --git a/.openapi-generator/FILES b/.openapi-generator/FILES index 8812aefd..205ae2b3 100644 --- a/.openapi-generator/FILES +++ b/.openapi-generator/FILES @@ -200,6 +200,7 @@ docs/PackageDenyPolicyRequest.md docs/PackageDenyPolicyRequestPatch.md docs/PackageDependencies.md docs/PackageDependency.md +docs/PackageDetail.md docs/PackageFile.md docs/PackageFilePartsUpload.md docs/PackageFileUpload.md @@ -343,6 +344,7 @@ docs/VulnerabilityScan.md docs/VulnerabilityScanResults.md docs/VulnerabilityScanResultsList.md docs/VulnerabilityScanVersion.md +docs/WebOSVSeverityCounts.md docs/WebhookTemplate.md docs/WebhooksApi.md git_push.sh @@ -511,6 +513,7 @@ model_package_deny_policy_request.go model_package_deny_policy_request_patch.go model_package_dependencies.go model_package_dependency.go +model_package_detail.go model_package_file.go model_package_file_parts_upload.go model_package_file_upload.go @@ -644,6 +647,7 @@ model_vulnerability_scan.go model_vulnerability_scan_results.go model_vulnerability_scan_results_list.go model_vulnerability_scan_version.go +model_web_osv_severity_counts.go model_webhook_template.go response.go test/api_audit_log_test.go diff --git a/README.md b/README.md index ea9e40e2..b568a213 100644 --- a/README.md +++ b/README.md @@ -5,8 +5,8 @@ The API to the Cloudsmith Service ## 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: 1.1288.1 -- Package version: 0.0.59 +- API version: 1.1341.7 +- Package version: 0.0.60 - Generator version: 7.9.0 - Build package: org.openapitools.codegen.languages.GoClientCodegen For more information, please visit [https://help.cloudsmith.io](https://help.cloudsmith.io) @@ -605,6 +605,7 @@ Class | Method | HTTP request | Description - [PackageDenyPolicyRequestPatch](docs/PackageDenyPolicyRequestPatch.md) - [PackageDependencies](docs/PackageDependencies.md) - [PackageDependency](docs/PackageDependency.md) + - [PackageDetail](docs/PackageDetail.md) - [PackageFile](docs/PackageFile.md) - [PackageFilePartsUpload](docs/PackageFilePartsUpload.md) - [PackageFileUpload](docs/PackageFileUpload.md) @@ -738,6 +739,7 @@ Class | Method | HTTP request | Description - [VulnerabilityScanResults](docs/VulnerabilityScanResults.md) - [VulnerabilityScanResultsList](docs/VulnerabilityScanResultsList.md) - [VulnerabilityScanVersion](docs/VulnerabilityScanVersion.md) + - [WebOSVSeverityCounts](docs/WebOSVSeverityCounts.md) - [WebhookTemplate](docs/WebhookTemplate.md) diff --git a/api/openapi.yaml b/api/openapi.yaml index 1c41065b..ac098de0 100644 --- a/api/openapi.yaml +++ b/api/openapi.yaml @@ -10,7 +10,7 @@ info: url: https://opensource.org/licenses/MIT termsOfService: https://help.cloudsmith.io title: Cloudsmith API (v1) - version: 1.1288.1 + version: 1.1341.7 servers: - url: https://api.cloudsmith.io/ security: @@ -7829,7 +7829,7 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Package' + $ref: '#/components/schemas/PackageDetail' description: Retrieved the specified package successfully. "400": content: @@ -18140,6 +18140,7 @@ components: properties: filename: description: Filename for the package file upload. + maxLength: 255 minLength: 1 title: Filename type: string @@ -19305,10 +19306,62 @@ components: title: User url type: string type: object + WebOSVSeverityCounts: + description: Per-severity OSV vulnerability counts for non-hidden matches. Requires + Ultra plan. + example: + high: 6 + total: 2 + malware: 5 + critical: 0 + low: 1 + medium: 5 + unknown: 7 + nullable: true + properties: + critical: + readOnly: true + title: Critical + type: integer + high: + readOnly: true + title: High + type: integer + low: + readOnly: true + title: Low + type: integer + malware: + readOnly: true + title: Malware + type: integer + medium: + readOnly: true + title: Medium + type: integer + total: + readOnly: true + title: Total + type: integer + unknown: + readOnly: true + title: Unknown + type: integer + type: object + x-nullable: true PackageVulnerability: example: identifier: identifier name: name + vulnerability_counts: + high: 6 + total: 2 + malware: 5 + critical: 0 + low: 1 + medium: 5 + unknown: 7 + is_malware_detected: true version: version url: https://openapi-generator.tech properties: @@ -19316,6 +19369,12 @@ components: minLength: 1 title: Identifier type: string + is_malware_detected: + description: Whether the package has been detected as containing malware. + Requires Ultra plan. + readOnly: true + title: Is malware detected + type: boolean name: description: The name of this package. nullable: true @@ -19334,6 +19393,8 @@ components: readOnly: true title: Version type: string + vulnerability_counts: + $ref: '#/components/schemas/WebOSVSeverityCounts' required: - identifier type: object @@ -19412,6 +19473,15 @@ components: package: identifier: identifier name: name + vulnerability_counts: + high: 6 + total: 2 + malware: 5 + critical: 0 + low: 1 + medium: 5 + unknown: 7 + is_malware_detected: true version: version url: https://openapi-generator.tech reasons: @@ -20978,6 +21048,15 @@ components: package: identifier: identifier name: name + vulnerability_counts: + high: 6 + total: 2 + malware: 5 + critical: 0 + low: 1 + medium: 5 + unknown: 7 + is_malware_detected: true version: version url: https://openapi-generator.tech reasons: @@ -21360,6 +21439,7 @@ components: security_scan_status_updated_at: 2000-01-23T04:56:07.000+00:00 checksum_sha256: checksum_sha256 release: release + is_malware_detected: true package_type: 7 repository: repository origin_repository: origin_repository @@ -21464,6 +21544,14 @@ components: key: identifiers checksum_md5: checksum_md5 sync_progress: 4 + vulnerability_counts: + high: 6 + total: 2 + malware: 5 + critical: 0 + low: 1 + medium: 5 + unknown: 7 is_sync_awaiting: true uploader_url: https://openapi-generator.tech self_html_url: self_html_url @@ -21621,6 +21709,12 @@ components: readOnly: true title: Is hidden type: boolean + is_malware_detected: + description: Whether the package has been detected as containing malware. + Requires Ultra plan. + readOnly: true + title: Is malware detected + type: boolean is_moveable: readOnly: true title: Is moveable @@ -21927,6 +22021,8 @@ components: readOnly: true title: Version orig type: string + vulnerability_counts: + $ref: '#/components/schemas/WebOSVSeverityCounts' vulnerability_scan_results_url: format: uri readOnly: true @@ -21975,7 +22071,16 @@ components: AlpinePackageUploadRequest: example: republish: true + vulnerability_counts: + high: 6 + total: 2 + malware: 5 + critical: 0 + low: 1 + medium: 5 + unknown: 7 distribution: distribution + is_malware_detected: true package_file: package_file tags: tags properties: @@ -21984,6 +22089,12 @@ components: minLength: 1 title: Distribution type: string + is_malware_detected: + description: Whether the package has been detected as containing malware. + Requires Ultra plan. + readOnly: true + title: Is malware detected + type: boolean package_file: description: The primary file for the package. minLength: 1 @@ -22002,6 +22113,8 @@ components: nullable: true title: Tags type: string + vulnerability_counts: + $ref: '#/components/schemas/WebOSVSeverityCounts' required: - distribution - package_file @@ -22016,6 +22129,7 @@ components: security_scan_status_updated_at: 2000-01-23T04:56:07.000+00:00 checksum_sha256: checksum_sha256 release: release + is_malware_detected: true package_type: 5 repository: repository origin_repository: origin_repository @@ -22118,6 +22232,14 @@ components: key: identifiers checksum_md5: checksum_md5 sync_progress: 3 + vulnerability_counts: + high: 6 + total: 2 + malware: 5 + critical: 0 + low: 1 + medium: 5 + unknown: 7 is_sync_awaiting: true uploader_url: https://openapi-generator.tech self_html_url: self_html_url @@ -22268,6 +22390,12 @@ components: readOnly: true title: Is hidden type: boolean + is_malware_detected: + description: Whether the package has been detected as containing malware. + Requires Ultra plan. + readOnly: true + title: Is malware detected + type: boolean is_moveable: readOnly: true title: Is moveable @@ -22569,6 +22697,8 @@ components: readOnly: true title: Version orig type: string + vulnerability_counts: + $ref: '#/components/schemas/WebOSVSeverityCounts' vulnerability_scan_results_url: format: uri readOnly: true @@ -22578,9 +22708,24 @@ components: CargoPackageUploadRequest: example: republish: true + vulnerability_counts: + high: 6 + total: 2 + malware: 5 + critical: 0 + low: 1 + medium: 5 + unknown: 7 + is_malware_detected: true package_file: package_file tags: tags properties: + is_malware_detected: + description: Whether the package has been detected as containing malware. + Requires Ultra plan. + readOnly: true + title: Is malware detected + type: boolean package_file: description: The primary file for the package. minLength: 1 @@ -22599,6 +22744,8 @@ components: nullable: true title: Tags type: string + vulnerability_counts: + $ref: '#/components/schemas/WebOSVSeverityCounts' required: - package_file type: object @@ -22612,6 +22759,7 @@ components: security_scan_status_updated_at: 2000-01-23T04:56:07.000+00:00 checksum_sha256: checksum_sha256 release: release + is_malware_detected: true package_type: 5 repository: repository origin_repository: origin_repository @@ -22714,6 +22862,14 @@ components: key: identifiers checksum_md5: checksum_md5 sync_progress: 3 + vulnerability_counts: + high: 6 + total: 2 + malware: 5 + critical: 0 + low: 1 + medium: 5 + unknown: 7 is_sync_awaiting: true uploader_url: https://openapi-generator.tech self_html_url: self_html_url @@ -22864,6 +23020,12 @@ components: readOnly: true title: Is hidden type: boolean + is_malware_detected: + description: Whether the package has been detected as containing malware. + Requires Ultra plan. + readOnly: true + title: Is malware detected + type: boolean is_moveable: readOnly: true title: Is moveable @@ -23165,6 +23327,8 @@ components: readOnly: true title: Version orig type: string + vulnerability_counts: + $ref: '#/components/schemas/WebOSVSeverityCounts' vulnerability_scan_results_url: format: uri readOnly: true @@ -23174,9 +23338,24 @@ components: CocoapodsPackageUploadRequest: example: republish: true + vulnerability_counts: + high: 6 + total: 2 + malware: 5 + critical: 0 + low: 1 + medium: 5 + unknown: 7 + is_malware_detected: true package_file: package_file tags: tags properties: + is_malware_detected: + description: Whether the package has been detected as containing malware. + Requires Ultra plan. + readOnly: true + title: Is malware detected + type: boolean package_file: description: The primary file for the package. minLength: 1 @@ -23195,6 +23374,8 @@ components: nullable: true title: Tags type: string + vulnerability_counts: + $ref: '#/components/schemas/WebOSVSeverityCounts' required: - package_file type: object @@ -23208,6 +23389,7 @@ components: security_scan_status_updated_at: 2000-01-23T04:56:07.000+00:00 checksum_sha256: checksum_sha256 release: release + is_malware_detected: true package_type: 5 repository: repository origin_repository: origin_repository @@ -23310,6 +23492,14 @@ components: key: identifiers checksum_md5: checksum_md5 sync_progress: 3 + vulnerability_counts: + high: 6 + total: 2 + malware: 5 + critical: 0 + low: 1 + medium: 5 + unknown: 7 is_sync_awaiting: true uploader_url: https://openapi-generator.tech self_html_url: self_html_url @@ -23460,6 +23650,12 @@ components: readOnly: true title: Is hidden type: boolean + is_malware_detected: + description: Whether the package has been detected as containing malware. + Requires Ultra plan. + readOnly: true + title: Is malware detected + type: boolean is_moveable: readOnly: true title: Is moveable @@ -23761,6 +23957,8 @@ components: readOnly: true title: Version orig type: string + vulnerability_counts: + $ref: '#/components/schemas/WebOSVSeverityCounts' vulnerability_scan_results_url: format: uri readOnly: true @@ -23770,10 +23968,25 @@ components: ComposerPackageUploadRequest: example: republish: true + vulnerability_counts: + high: 6 + total: 2 + malware: 5 + critical: 0 + low: 1 + medium: 5 + unknown: 7 + is_malware_detected: true package_file: package_file version: version tags: tags properties: + is_malware_detected: + description: Whether the package has been detected as containing malware. + Requires Ultra plan. + readOnly: true + title: Is malware detected + type: boolean package_file: description: The primary file for the package. minLength: 1 @@ -23798,6 +24011,8 @@ components: nullable: true title: Version type: string + vulnerability_counts: + $ref: '#/components/schemas/WebOSVSeverityCounts' required: - package_file type: object @@ -23811,6 +24026,7 @@ components: security_scan_status_updated_at: 2000-01-23T04:56:07.000+00:00 checksum_sha256: checksum_sha256 release: release + is_malware_detected: true package_type: 5 repository: repository origin_repository: origin_repository @@ -23913,6 +24129,14 @@ components: key: identifiers checksum_md5: checksum_md5 sync_progress: 3 + vulnerability_counts: + high: 6 + total: 2 + malware: 5 + critical: 0 + low: 1 + medium: 5 + unknown: 7 is_sync_awaiting: true uploader_url: https://openapi-generator.tech self_html_url: self_html_url @@ -24063,6 +24287,12 @@ components: readOnly: true title: Is hidden type: boolean + is_malware_detected: + description: Whether the package has been detected as containing malware. + Requires Ultra plan. + readOnly: true + title: Is malware detected + type: boolean is_moveable: readOnly: true title: Is moveable @@ -24364,6 +24594,8 @@ components: readOnly: true title: Version orig type: string + vulnerability_counts: + $ref: '#/components/schemas/WebOSVSeverityCounts' vulnerability_scan_results_url: format: uri readOnly: true @@ -24375,6 +24607,15 @@ components: republish: true name: name metadata_file: metadata_file + vulnerability_counts: + high: 6 + total: 2 + malware: 5 + critical: 0 + low: 1 + medium: 5 + unknown: 7 + is_malware_detected: true package_file: package_file conan_prefix: conan_prefix version: version @@ -24402,6 +24643,12 @@ components: minLength: 1 title: Info file type: string + is_malware_detected: + description: Whether the package has been detected as containing malware. + Requires Ultra plan. + readOnly: true + title: Is malware detected + type: boolean manifest_file: description: The info file is an python file containing the package metadata. minLength: 1 @@ -24442,6 +24689,8 @@ components: nullable: true title: Version type: string + vulnerability_counts: + $ref: '#/components/schemas/WebOSVSeverityCounts' required: - info_file - manifest_file @@ -24458,6 +24707,7 @@ components: security_scan_status_updated_at: 2000-01-23T04:56:07.000+00:00 checksum_sha256: checksum_sha256 release: release + is_malware_detected: true package_type: 5 repository: repository origin_repository: origin_repository @@ -24562,6 +24812,14 @@ components: key: identifiers checksum_md5: checksum_md5 sync_progress: 3 + vulnerability_counts: + high: 6 + total: 2 + malware: 5 + critical: 0 + low: 1 + medium: 5 + unknown: 7 is_sync_awaiting: true uploader_url: https://openapi-generator.tech self_html_url: self_html_url @@ -24726,6 +24984,12 @@ components: readOnly: true title: Is hidden type: boolean + is_malware_detected: + description: Whether the package has been detected as containing malware. + Requires Ultra plan. + readOnly: true + title: Is malware detected + type: boolean is_moveable: readOnly: true title: Is moveable @@ -25027,6 +25291,8 @@ components: readOnly: true title: Version orig type: string + vulnerability_counts: + $ref: '#/components/schemas/WebOSVSeverityCounts' vulnerability_scan_results_url: format: uri readOnly: true @@ -25036,9 +25302,24 @@ components: CondaPackageUploadRequest: example: republish: true + vulnerability_counts: + high: 6 + total: 2 + malware: 5 + critical: 0 + low: 1 + medium: 5 + unknown: 7 + is_malware_detected: true package_file: package_file tags: tags properties: + is_malware_detected: + description: Whether the package has been detected as containing malware. + Requires Ultra plan. + readOnly: true + title: Is malware detected + type: boolean package_file: description: The primary file for the package. minLength: 1 @@ -25057,6 +25338,8 @@ components: nullable: true title: Tags type: string + vulnerability_counts: + $ref: '#/components/schemas/WebOSVSeverityCounts' required: - package_file type: object @@ -25070,6 +25353,7 @@ components: security_scan_status_updated_at: 2000-01-23T04:56:07.000+00:00 checksum_sha256: checksum_sha256 release: release + is_malware_detected: true package_type: 5 repository: repository origin_repository: origin_repository @@ -25172,6 +25456,14 @@ components: key: identifiers checksum_md5: checksum_md5 sync_progress: 3 + vulnerability_counts: + high: 6 + total: 2 + malware: 5 + critical: 0 + low: 1 + medium: 5 + unknown: 7 is_sync_awaiting: true uploader_url: https://openapi-generator.tech self_html_url: self_html_url @@ -25322,6 +25614,12 @@ components: readOnly: true title: Is hidden type: boolean + is_malware_detected: + description: Whether the package has been detected as containing malware. + Requires Ultra plan. + readOnly: true + title: Is malware detected + type: boolean is_moveable: readOnly: true title: Is moveable @@ -25623,6 +25921,8 @@ components: readOnly: true title: Version orig type: string + vulnerability_counts: + $ref: '#/components/schemas/WebOSVSeverityCounts' vulnerability_scan_results_url: format: uri readOnly: true @@ -25633,6 +25933,15 @@ components: example: republish: true r_version: r_version + vulnerability_counts: + high: 6 + total: 2 + malware: 5 + critical: 0 + low: 1 + medium: 5 + unknown: 7 + is_malware_detected: true package_file: package_file architecture: architecture tags: tags @@ -25643,6 +25952,12 @@ components: minLength: 1 title: Architecture type: string + is_malware_detected: + description: Whether the package has been detected as containing malware. + Requires Ultra plan. + readOnly: true + title: Is malware detected + type: boolean package_file: description: The primary file for the package. minLength: 1 @@ -25669,6 +25984,8 @@ components: nullable: true title: Tags type: string + vulnerability_counts: + $ref: '#/components/schemas/WebOSVSeverityCounts' required: - package_file type: object @@ -25682,6 +25999,7 @@ components: security_scan_status_updated_at: 2000-01-23T04:56:07.000+00:00 checksum_sha256: checksum_sha256 release: release + is_malware_detected: true package_type: 5 repository: repository origin_repository: origin_repository @@ -25784,6 +26102,14 @@ components: key: identifiers checksum_md5: checksum_md5 sync_progress: 3 + vulnerability_counts: + high: 6 + total: 2 + malware: 5 + critical: 0 + low: 1 + medium: 5 + unknown: 7 is_sync_awaiting: true uploader_url: https://openapi-generator.tech self_html_url: self_html_url @@ -25935,6 +26261,12 @@ components: readOnly: true title: Is hidden type: boolean + is_malware_detected: + description: Whether the package has been detected as containing malware. + Requires Ultra plan. + readOnly: true + title: Is malware detected + type: boolean is_moveable: readOnly: true title: Is moveable @@ -26244,6 +26576,8 @@ components: readOnly: true title: Version orig type: string + vulnerability_counts: + $ref: '#/components/schemas/WebOSVSeverityCounts' vulnerability_scan_results_url: format: uri readOnly: true @@ -26253,9 +26587,24 @@ components: DartPackageUploadRequest: example: republish: true + vulnerability_counts: + high: 6 + total: 2 + malware: 5 + critical: 0 + low: 1 + medium: 5 + unknown: 7 + is_malware_detected: true package_file: package_file tags: tags properties: + is_malware_detected: + description: Whether the package has been detected as containing malware. + Requires Ultra plan. + readOnly: true + title: Is malware detected + type: boolean package_file: description: The primary file for the package. minLength: 1 @@ -26274,6 +26623,8 @@ components: nullable: true title: Tags type: string + vulnerability_counts: + $ref: '#/components/schemas/WebOSVSeverityCounts' required: - package_file type: object @@ -26287,6 +26638,7 @@ components: security_scan_status_updated_at: 2000-01-23T04:56:07.000+00:00 checksum_sha256: checksum_sha256 release: release + is_malware_detected: true package_type: 5 repository: repository origin_repository: origin_repository @@ -26389,6 +26741,14 @@ components: key: identifiers checksum_md5: checksum_md5 sync_progress: 3 + vulnerability_counts: + high: 6 + total: 2 + malware: 5 + critical: 0 + low: 1 + medium: 5 + unknown: 7 is_sync_awaiting: true uploader_url: https://openapi-generator.tech self_html_url: self_html_url @@ -26539,6 +26899,12 @@ components: readOnly: true title: Is hidden type: boolean + is_malware_detected: + description: Whether the package has been detected as containing malware. + Requires Ultra plan. + readOnly: true + title: Is malware detected + type: boolean is_moveable: readOnly: true title: Is moveable @@ -26840,6 +27206,8 @@ components: readOnly: true title: Version orig type: string + vulnerability_counts: + $ref: '#/components/schemas/WebOSVSeverityCounts' vulnerability_scan_results_url: format: uri readOnly: true @@ -26852,7 +27220,16 @@ components: component: main republish: true changes_file: changes_file + vulnerability_counts: + high: 6 + total: 2 + malware: 5 + critical: 0 + low: 1 + medium: 5 + unknown: 7 distribution: distribution + is_malware_detected: true package_file: package_file tags: tags properties: @@ -26877,6 +27254,12 @@ components: minLength: 1 title: Distribution type: string + is_malware_detected: + description: Whether the package has been detected as containing malware. + Requires Ultra plan. + readOnly: true + title: Is malware detected + type: boolean package_file: description: The primary file for the package. minLength: 1 @@ -26901,6 +27284,8 @@ components: nullable: true title: Tags type: string + vulnerability_counts: + $ref: '#/components/schemas/WebOSVSeverityCounts' required: - distribution - package_file @@ -26915,6 +27300,7 @@ components: security_scan_status_updated_at: 2000-01-23T04:56:07.000+00:00 checksum_sha256: checksum_sha256 release: release + is_malware_detected: true package_type: 5 repository: repository origin_repository: origin_repository @@ -27017,6 +27403,14 @@ components: key: identifiers checksum_md5: checksum_md5 sync_progress: 3 + vulnerability_counts: + high: 6 + total: 2 + malware: 5 + critical: 0 + low: 1 + medium: 5 + unknown: 7 is_sync_awaiting: true uploader_url: https://openapi-generator.tech self_html_url: self_html_url @@ -27167,6 +27561,12 @@ components: readOnly: true title: Is hidden type: boolean + is_malware_detected: + description: Whether the package has been detected as containing malware. + Requires Ultra plan. + readOnly: true + title: Is malware detected + type: boolean is_moveable: readOnly: true title: Is moveable @@ -27468,6 +27868,8 @@ components: readOnly: true title: Version orig type: string + vulnerability_counts: + $ref: '#/components/schemas/WebOSVSeverityCounts' vulnerability_scan_results_url: format: uri readOnly: true @@ -27477,9 +27879,24 @@ components: DockerPackageUploadRequest: example: republish: true + vulnerability_counts: + high: 6 + total: 2 + malware: 5 + critical: 0 + low: 1 + medium: 5 + unknown: 7 + is_malware_detected: true package_file: package_file tags: tags properties: + is_malware_detected: + description: Whether the package has been detected as containing malware. + Requires Ultra plan. + readOnly: true + title: Is malware detected + type: boolean package_file: description: The primary file for the package. minLength: 1 @@ -27498,6 +27915,8 @@ components: nullable: true title: Tags type: string + vulnerability_counts: + $ref: '#/components/schemas/WebOSVSeverityCounts' required: - package_file type: object @@ -27511,6 +27930,7 @@ components: security_scan_status_updated_at: 2000-01-23T04:56:07.000+00:00 checksum_sha256: checksum_sha256 release: release + is_malware_detected: true package_type: 5 repository: repository origin_repository: origin_repository @@ -27613,6 +28033,14 @@ components: key: identifiers checksum_md5: checksum_md5 sync_progress: 3 + vulnerability_counts: + high: 6 + total: 2 + malware: 5 + critical: 0 + low: 1 + medium: 5 + unknown: 7 is_sync_awaiting: true uploader_url: https://openapi-generator.tech self_html_url: self_html_url @@ -27763,6 +28191,12 @@ components: readOnly: true title: Is hidden type: boolean + is_malware_detected: + description: Whether the package has been detected as containing malware. + Requires Ultra plan. + readOnly: true + title: Is malware detected + type: boolean is_moveable: readOnly: true title: Is moveable @@ -28064,6 +28498,8 @@ components: readOnly: true title: Version orig type: string + vulnerability_counts: + $ref: '#/components/schemas/WebOSVSeverityCounts' vulnerability_scan_results_url: format: uri readOnly: true @@ -28075,6 +28511,15 @@ components: filepath: filepath republish: true name: name + vulnerability_counts: + high: 6 + total: 2 + malware: 5 + critical: 0 + low: 1 + medium: 5 + unknown: 7 + is_malware_detected: true package_file: package_file version: version tags: tags @@ -28085,6 +28530,12 @@ components: minLength: 1 title: Filepath type: string + is_malware_detected: + description: Whether the package has been detected as containing malware. + Requires Ultra plan. + readOnly: true + title: Is malware detected + type: boolean name: description: The name of this package. maxLength: 200 @@ -28115,6 +28566,8 @@ components: nullable: true title: Version type: string + vulnerability_counts: + $ref: '#/components/schemas/WebOSVSeverityCounts' required: - filepath - package_file @@ -28129,6 +28582,7 @@ components: security_scan_status_updated_at: 2000-01-23T04:56:07.000+00:00 checksum_sha256: checksum_sha256 release: release + is_malware_detected: true package_type: 5 repository: repository origin_repository: origin_repository @@ -28231,6 +28685,14 @@ components: key: identifiers checksum_md5: checksum_md5 sync_progress: 3 + vulnerability_counts: + high: 6 + total: 2 + malware: 5 + critical: 0 + low: 1 + medium: 5 + unknown: 7 is_sync_awaiting: true uploader_url: https://openapi-generator.tech self_html_url: self_html_url @@ -28381,6 +28843,12 @@ components: readOnly: true title: Is hidden type: boolean + is_malware_detected: + description: Whether the package has been detected as containing malware. + Requires Ultra plan. + readOnly: true + title: Is malware detected + type: boolean is_moveable: readOnly: true title: Is moveable @@ -28682,6 +29150,8 @@ components: readOnly: true title: Version orig type: string + vulnerability_counts: + $ref: '#/components/schemas/WebOSVSeverityCounts' vulnerability_scan_results_url: format: uri readOnly: true @@ -28691,9 +29161,24 @@ components: GoPackageUploadRequest: example: republish: true + vulnerability_counts: + high: 6 + total: 2 + malware: 5 + critical: 0 + low: 1 + medium: 5 + unknown: 7 + is_malware_detected: true package_file: package_file tags: tags properties: + is_malware_detected: + description: Whether the package has been detected as containing malware. + Requires Ultra plan. + readOnly: true + title: Is malware detected + type: boolean package_file: description: The primary file for the package. minLength: 1 @@ -28712,6 +29197,8 @@ components: nullable: true title: Tags type: string + vulnerability_counts: + $ref: '#/components/schemas/WebOSVSeverityCounts' required: - package_file type: object @@ -28725,6 +29212,7 @@ components: security_scan_status_updated_at: 2000-01-23T04:56:07.000+00:00 checksum_sha256: checksum_sha256 release: release + is_malware_detected: true package_type: 5 repository: repository origin_repository: origin_repository @@ -28827,6 +29315,14 @@ components: key: identifiers checksum_md5: checksum_md5 sync_progress: 3 + vulnerability_counts: + high: 6 + total: 2 + malware: 5 + critical: 0 + low: 1 + medium: 5 + unknown: 7 is_sync_awaiting: true uploader_url: https://openapi-generator.tech self_html_url: self_html_url @@ -28977,6 +29473,12 @@ components: readOnly: true title: Is hidden type: boolean + is_malware_detected: + description: Whether the package has been detected as containing malware. + Requires Ultra plan. + readOnly: true + title: Is malware detected + type: boolean is_moveable: readOnly: true title: Is moveable @@ -29278,6 +29780,8 @@ components: readOnly: true title: Version orig type: string + vulnerability_counts: + $ref: '#/components/schemas/WebOSVSeverityCounts' vulnerability_scan_results_url: format: uri readOnly: true @@ -29288,9 +29792,24 @@ components: example: provenance_file: provenance_file republish: true + vulnerability_counts: + high: 6 + total: 2 + malware: 5 + critical: 0 + low: 1 + medium: 5 + unknown: 7 + is_malware_detected: true package_file: package_file tags: tags properties: + is_malware_detected: + description: Whether the package has been detected as containing malware. + Requires Ultra plan. + readOnly: true + title: Is malware detected + type: boolean package_file: description: The primary file for the package. minLength: 1 @@ -29316,6 +29835,8 @@ components: nullable: true title: Tags type: string + vulnerability_counts: + $ref: '#/components/schemas/WebOSVSeverityCounts' required: - package_file type: object @@ -29329,6 +29850,7 @@ components: security_scan_status_updated_at: 2000-01-23T04:56:07.000+00:00 checksum_sha256: checksum_sha256 release: release + is_malware_detected: true package_type: 5 repository: repository origin_repository: origin_repository @@ -29431,6 +29953,14 @@ components: key: identifiers checksum_md5: checksum_md5 sync_progress: 3 + vulnerability_counts: + high: 6 + total: 2 + malware: 5 + critical: 0 + low: 1 + medium: 5 + unknown: 7 is_sync_awaiting: true uploader_url: https://openapi-generator.tech self_html_url: self_html_url @@ -29581,6 +30111,12 @@ components: readOnly: true title: Is hidden type: boolean + is_malware_detected: + description: Whether the package has been detected as containing malware. + Requires Ultra plan. + readOnly: true + title: Is malware detected + type: boolean is_moveable: readOnly: true title: Is moveable @@ -29882,6 +30418,8 @@ components: readOnly: true title: Version orig type: string + vulnerability_counts: + $ref: '#/components/schemas/WebOSVSeverityCounts' vulnerability_scan_results_url: format: uri readOnly: true @@ -29891,9 +30429,24 @@ components: HexPackageUploadRequest: example: republish: true + vulnerability_counts: + high: 6 + total: 2 + malware: 5 + critical: 0 + low: 1 + medium: 5 + unknown: 7 + is_malware_detected: true package_file: package_file tags: tags properties: + is_malware_detected: + description: Whether the package has been detected as containing malware. + Requires Ultra plan. + readOnly: true + title: Is malware detected + type: boolean package_file: description: The primary file for the package. minLength: 1 @@ -29912,6 +30465,8 @@ components: nullable: true title: Tags type: string + vulnerability_counts: + $ref: '#/components/schemas/WebOSVSeverityCounts' required: - package_file type: object @@ -29925,6 +30480,7 @@ components: security_scan_status_updated_at: 2000-01-23T04:56:07.000+00:00 checksum_sha256: checksum_sha256 release: release + is_malware_detected: true package_type: 5 repository: repository origin_repository: origin_repository @@ -30027,6 +30583,14 @@ components: key: identifiers checksum_md5: checksum_md5 sync_progress: 3 + vulnerability_counts: + high: 6 + total: 2 + malware: 5 + critical: 0 + low: 1 + medium: 5 + unknown: 7 is_sync_awaiting: true uploader_url: https://openapi-generator.tech self_html_url: self_html_url @@ -30177,6 +30741,12 @@ components: readOnly: true title: Is hidden type: boolean + is_malware_detected: + description: Whether the package has been detected as containing malware. + Requires Ultra plan. + readOnly: true + title: Is malware detected + type: boolean is_moveable: readOnly: true title: Is moveable @@ -30478,6 +31048,8 @@ components: readOnly: true title: Version orig type: string + vulnerability_counts: + $ref: '#/components/schemas/WebOSVSeverityCounts' vulnerability_scan_results_url: format: uri readOnly: true @@ -30487,9 +31059,24 @@ components: HuggingfacePackageUploadRequest: example: republish: true + vulnerability_counts: + high: 6 + total: 2 + malware: 5 + critical: 0 + low: 1 + medium: 5 + unknown: 7 + is_malware_detected: true package_file: package_file tags: tags properties: + is_malware_detected: + description: Whether the package has been detected as containing malware. + Requires Ultra plan. + readOnly: true + title: Is malware detected + type: boolean package_file: description: The primary file for the package. minLength: 1 @@ -30508,6 +31095,8 @@ components: nullable: true title: Tags type: string + vulnerability_counts: + $ref: '#/components/schemas/WebOSVSeverityCounts' required: - package_file type: object @@ -30521,6 +31110,7 @@ components: security_scan_status_updated_at: 2000-01-23T04:56:07.000+00:00 checksum_sha256: checksum_sha256 release: release + is_malware_detected: true package_type: 5 repository: repository origin_repository: origin_repository @@ -30623,6 +31213,14 @@ components: key: identifiers checksum_md5: checksum_md5 sync_progress: 3 + vulnerability_counts: + high: 6 + total: 2 + malware: 5 + critical: 0 + low: 1 + medium: 5 + unknown: 7 is_sync_awaiting: true uploader_url: https://openapi-generator.tech self_html_url: self_html_url @@ -30773,6 +31371,12 @@ components: readOnly: true title: Is hidden type: boolean + is_malware_detected: + description: Whether the package has been detected as containing malware. + Requires Ultra plan. + readOnly: true + title: Is malware detected + type: boolean is_moveable: readOnly: true title: Is moveable @@ -31074,6 +31678,8 @@ components: readOnly: true title: Version orig type: string + vulnerability_counts: + $ref: '#/components/schemas/WebOSVSeverityCounts' vulnerability_scan_results_url: format: uri readOnly: true @@ -31083,9 +31689,24 @@ components: LuarocksPackageUploadRequest: example: republish: true + vulnerability_counts: + high: 6 + total: 2 + malware: 5 + critical: 0 + low: 1 + medium: 5 + unknown: 7 + is_malware_detected: true package_file: package_file tags: tags properties: + is_malware_detected: + description: Whether the package has been detected as containing malware. + Requires Ultra plan. + readOnly: true + title: Is malware detected + type: boolean package_file: description: The primary file for the package. minLength: 1 @@ -31104,6 +31725,8 @@ components: nullable: true title: Tags type: string + vulnerability_counts: + $ref: '#/components/schemas/WebOSVSeverityCounts' required: - package_file type: object @@ -31117,6 +31740,7 @@ components: security_scan_status_updated_at: 2000-01-23T04:56:07.000+00:00 checksum_sha256: checksum_sha256 release: release + is_malware_detected: true package_type: 5 repository: repository origin_repository: origin_repository @@ -31219,6 +31843,14 @@ components: key: identifiers checksum_md5: checksum_md5 sync_progress: 3 + vulnerability_counts: + high: 6 + total: 2 + malware: 5 + critical: 0 + low: 1 + medium: 5 + unknown: 7 is_sync_awaiting: true uploader_url: https://openapi-generator.tech self_html_url: self_html_url @@ -31369,6 +32001,12 @@ components: readOnly: true title: Is hidden type: boolean + is_malware_detected: + description: Whether the package has been detected as containing malware. + Requires Ultra plan. + readOnly: true + title: Is malware detected + type: boolean is_moveable: readOnly: true title: Is moveable @@ -31670,6 +32308,8 @@ components: readOnly: true title: Version orig type: string + vulnerability_counts: + $ref: '#/components/schemas/WebOSVSeverityCounts' vulnerability_scan_results_url: format: uri readOnly: true @@ -31679,8 +32319,17 @@ components: MavenPackageUploadRequest: example: javadoc_file: javadoc_file + vulnerability_counts: + high: 6 + total: 2 + malware: 5 + critical: 0 + low: 1 + medium: 5 + unknown: 7 packaging: packaging artifact_id: artifact_id + is_malware_detected: true package_file: package_file version: version pom_file: pom_file @@ -31716,6 +32365,12 @@ components: nullable: true title: Group id type: string + is_malware_detected: + description: Whether the package has been detected as containing malware. + Requires Ultra plan. + readOnly: true + title: Is malware detected + type: boolean ivy_file: description: The ivy file is an XML file describing the dependencies of the project. @@ -31787,6 +32442,8 @@ components: nullable: true title: Version type: string + vulnerability_counts: + $ref: '#/components/schemas/WebOSVSeverityCounts' required: - package_file type: object @@ -31801,6 +32458,7 @@ components: checksum_sha256: checksum_sha256 release: release artifact_id: artifact_id + is_malware_detected: true package_type: 5 repository: repository origin_repository: origin_repository @@ -31903,6 +32561,14 @@ components: key: identifiers checksum_md5: checksum_md5 sync_progress: 3 + vulnerability_counts: + high: 6 + total: 2 + malware: 5 + critical: 0 + low: 1 + medium: 5 + unknown: 7 is_sync_awaiting: true packaging: packaging uploader_url: https://openapi-generator.tech @@ -32069,6 +32735,12 @@ components: readOnly: true title: Is hidden type: boolean + is_malware_detected: + description: Whether the package has been detected as containing malware. + Requires Ultra plan. + readOnly: true + title: Is malware detected + type: boolean is_moveable: readOnly: true title: Is moveable @@ -32386,6 +33058,8 @@ components: readOnly: true title: Version orig type: string + vulnerability_counts: + $ref: '#/components/schemas/WebOSVSeverityCounts' vulnerability_scan_results_url: format: uri readOnly: true @@ -32395,10 +33069,25 @@ components: McpPackageUploadRequest: example: republish: true + vulnerability_counts: + high: 6 + total: 2 + malware: 5 + critical: 0 + low: 1 + medium: 5 + unknown: 7 + is_malware_detected: true package_file: package_file version: version tags: tags properties: + is_malware_detected: + description: Whether the package has been detected as containing malware. + Requires Ultra plan. + readOnly: true + title: Is malware detected + type: boolean package_file: description: The primary file for the package. minLength: 1 @@ -32423,6 +33112,8 @@ components: nullable: true title: Version type: string + vulnerability_counts: + $ref: '#/components/schemas/WebOSVSeverityCounts' required: - package_file type: object @@ -32436,6 +33127,7 @@ components: security_scan_status_updated_at: 2000-01-23T04:56:07.000+00:00 checksum_sha256: checksum_sha256 release: release + is_malware_detected: true package_type: 5 repository: repository origin_repository: origin_repository @@ -32538,6 +33230,14 @@ components: key: identifiers checksum_md5: checksum_md5 sync_progress: 3 + vulnerability_counts: + high: 6 + total: 2 + malware: 5 + critical: 0 + low: 1 + medium: 5 + unknown: 7 is_sync_awaiting: true uploader_url: https://openapi-generator.tech self_html_url: self_html_url @@ -32688,6 +33388,12 @@ components: readOnly: true title: Is hidden type: boolean + is_malware_detected: + description: Whether the package has been detected as containing malware. + Requires Ultra plan. + readOnly: true + title: Is malware detected + type: boolean is_moveable: readOnly: true title: Is moveable @@ -32989,6 +33695,8 @@ components: readOnly: true title: Version orig type: string + vulnerability_counts: + $ref: '#/components/schemas/WebOSVSeverityCounts' vulnerability_scan_results_url: format: uri readOnly: true @@ -32998,10 +33706,25 @@ components: NpmPackageUploadRequest: example: republish: true + vulnerability_counts: + high: 6 + total: 2 + malware: 5 + critical: 0 + low: 1 + medium: 5 + unknown: 7 npm_dist_tag: latest + is_malware_detected: true package_file: package_file tags: tags properties: + is_malware_detected: + description: Whether the package has been detected as containing malware. + Requires Ultra plan. + readOnly: true + title: Is malware detected + type: boolean npm_dist_tag: default: latest description: The default npm dist-tag for this package/version - This will @@ -33028,6 +33751,8 @@ components: nullable: true title: Tags type: string + vulnerability_counts: + $ref: '#/components/schemas/WebOSVSeverityCounts' required: - package_file type: object @@ -33041,6 +33766,7 @@ components: security_scan_status_updated_at: 2000-01-23T04:56:07.000+00:00 checksum_sha256: checksum_sha256 release: release + is_malware_detected: true package_type: 5 repository: repository origin_repository: origin_repository @@ -33143,6 +33869,14 @@ components: key: identifiers checksum_md5: checksum_md5 sync_progress: 3 + vulnerability_counts: + high: 6 + total: 2 + malware: 5 + critical: 0 + low: 1 + medium: 5 + unknown: 7 is_sync_awaiting: true uploader_url: https://openapi-generator.tech self_html_url: self_html_url @@ -33293,6 +34027,12 @@ components: readOnly: true title: Is hidden type: boolean + is_malware_detected: + description: Whether the package has been detected as containing malware. + Requires Ultra plan. + readOnly: true + title: Is malware detected + type: boolean is_moveable: readOnly: true title: Is moveable @@ -33594,6 +34334,8 @@ components: readOnly: true title: Version orig type: string + vulnerability_counts: + $ref: '#/components/schemas/WebOSVSeverityCounts' vulnerability_scan_results_url: format: uri readOnly: true @@ -33604,9 +34346,24 @@ components: example: republish: true symbols_file: symbols_file + vulnerability_counts: + high: 6 + total: 2 + malware: 5 + critical: 0 + low: 1 + medium: 5 + unknown: 7 + is_malware_detected: true package_file: package_file tags: tags properties: + is_malware_detected: + description: Whether the package has been detected as containing malware. + Requires Ultra plan. + readOnly: true + title: Is malware detected + type: boolean package_file: description: The primary file for the package. minLength: 1 @@ -33631,6 +34388,8 @@ components: nullable: true title: Tags type: string + vulnerability_counts: + $ref: '#/components/schemas/WebOSVSeverityCounts' required: - package_file type: object @@ -33644,6 +34403,7 @@ components: security_scan_status_updated_at: 2000-01-23T04:56:07.000+00:00 checksum_sha256: checksum_sha256 release: release + is_malware_detected: true package_type: 5 repository: repository origin_repository: origin_repository @@ -33746,6 +34506,14 @@ components: key: identifiers checksum_md5: checksum_md5 sync_progress: 3 + vulnerability_counts: + high: 6 + total: 2 + malware: 5 + critical: 0 + low: 1 + medium: 5 + unknown: 7 is_sync_awaiting: true uploader_url: https://openapi-generator.tech self_html_url: self_html_url @@ -33896,6 +34664,12 @@ components: readOnly: true title: Is hidden type: boolean + is_malware_detected: + description: Whether the package has been detected as containing malware. + Requires Ultra plan. + readOnly: true + title: Is malware detected + type: boolean is_moveable: readOnly: true title: Is moveable @@ -34197,6 +34971,8 @@ components: readOnly: true title: Version orig type: string + vulnerability_counts: + $ref: '#/components/schemas/WebOSVSeverityCounts' vulnerability_scan_results_url: format: uri readOnly: true @@ -34206,9 +34982,24 @@ components: P2PackageUploadRequest: example: republish: true + vulnerability_counts: + high: 6 + total: 2 + malware: 5 + critical: 0 + low: 1 + medium: 5 + unknown: 7 + is_malware_detected: true package_file: package_file tags: tags properties: + is_malware_detected: + description: Whether the package has been detected as containing malware. + Requires Ultra plan. + readOnly: true + title: Is malware detected + type: boolean package_file: description: The primary file for the package. minLength: 1 @@ -34227,6 +35018,8 @@ components: nullable: true title: Tags type: string + vulnerability_counts: + $ref: '#/components/schemas/WebOSVSeverityCounts' required: - package_file type: object @@ -34240,6 +35033,7 @@ components: security_scan_status_updated_at: 2000-01-23T04:56:07.000+00:00 checksum_sha256: checksum_sha256 release: release + is_malware_detected: true package_type: 5 repository: repository origin_repository: origin_repository @@ -34342,6 +35136,14 @@ components: key: identifiers checksum_md5: checksum_md5 sync_progress: 3 + vulnerability_counts: + high: 6 + total: 2 + malware: 5 + critical: 0 + low: 1 + medium: 5 + unknown: 7 is_sync_awaiting: true uploader_url: https://openapi-generator.tech self_html_url: self_html_url @@ -34492,6 +35294,12 @@ components: readOnly: true title: Is hidden type: boolean + is_malware_detected: + description: Whether the package has been detected as containing malware. + Requires Ultra plan. + readOnly: true + title: Is malware detected + type: boolean is_moveable: readOnly: true title: Is moveable @@ -34793,6 +35601,8 @@ components: readOnly: true title: Version orig type: string + vulnerability_counts: + $ref: '#/components/schemas/WebOSVSeverityCounts' vulnerability_scan_results_url: format: uri readOnly: true @@ -34802,9 +35612,24 @@ components: PythonPackageUploadRequest: example: republish: true + vulnerability_counts: + high: 6 + total: 2 + malware: 5 + critical: 0 + low: 1 + medium: 5 + unknown: 7 + is_malware_detected: true package_file: package_file tags: tags properties: + is_malware_detected: + description: Whether the package has been detected as containing malware. + Requires Ultra plan. + readOnly: true + title: Is malware detected + type: boolean package_file: description: The primary file for the package. minLength: 1 @@ -34823,6 +35648,8 @@ components: nullable: true title: Tags type: string + vulnerability_counts: + $ref: '#/components/schemas/WebOSVSeverityCounts' required: - package_file type: object @@ -34836,6 +35663,7 @@ components: security_scan_status_updated_at: 2000-01-23T04:56:07.000+00:00 checksum_sha256: checksum_sha256 release: release + is_malware_detected: true package_type: 5 repository: repository origin_repository: origin_repository @@ -34938,6 +35766,14 @@ components: key: identifiers checksum_md5: checksum_md5 sync_progress: 3 + vulnerability_counts: + high: 6 + total: 2 + malware: 5 + critical: 0 + low: 1 + medium: 5 + unknown: 7 is_sync_awaiting: true uploader_url: https://openapi-generator.tech self_html_url: self_html_url @@ -35088,6 +35924,12 @@ components: readOnly: true title: Is hidden type: boolean + is_malware_detected: + description: Whether the package has been detected as containing malware. + Requires Ultra plan. + readOnly: true + title: Is malware detected + type: boolean is_moveable: readOnly: true title: Is moveable @@ -35389,6 +36231,8 @@ components: readOnly: true title: Version orig type: string + vulnerability_counts: + $ref: '#/components/schemas/WebOSVSeverityCounts' vulnerability_scan_results_url: format: uri readOnly: true @@ -35402,6 +36246,15 @@ components: republish: true name: name description: description + vulnerability_counts: + high: 6 + total: 2 + malware: 5 + critical: 0 + low: 1 + medium: 5 + unknown: 7 + is_malware_detected: true package_file: package_file version: version tags: tags @@ -35421,6 +36274,12 @@ components: nullable: true title: Description type: string + is_malware_detected: + description: Whether the package has been detected as containing malware. + Requires Ultra plan. + readOnly: true + title: Is malware detected + type: boolean name: description: The name of this package. maxLength: 200 @@ -35457,6 +36316,8 @@ components: nullable: true title: Version type: string + vulnerability_counts: + $ref: '#/components/schemas/WebOSVSeverityCounts' required: - package_file type: object @@ -35470,6 +36331,7 @@ components: security_scan_status_updated_at: 2000-01-23T04:56:07.000+00:00 checksum_sha256: checksum_sha256 release: release + is_malware_detected: true package_type: 5 repository: repository origin_repository: origin_repository @@ -35572,6 +36434,14 @@ components: key: identifiers checksum_md5: checksum_md5 sync_progress: 3 + vulnerability_counts: + high: 6 + total: 2 + malware: 5 + critical: 0 + low: 1 + medium: 5 + unknown: 7 is_sync_awaiting: true uploader_url: https://openapi-generator.tech self_html_url: self_html_url @@ -35722,6 +36592,12 @@ components: readOnly: true title: Is hidden type: boolean + is_malware_detected: + description: Whether the package has been detected as containing malware. + Requires Ultra plan. + readOnly: true + title: Is malware detected + type: boolean is_moveable: readOnly: true title: Is moveable @@ -36023,6 +36899,8 @@ components: readOnly: true title: Version orig type: string + vulnerability_counts: + $ref: '#/components/schemas/WebOSVSeverityCounts' vulnerability_scan_results_url: format: uri readOnly: true @@ -36032,7 +36910,16 @@ components: RpmPackageUploadRequest: example: republish: true + vulnerability_counts: + high: 6 + total: 2 + malware: 5 + critical: 0 + low: 1 + medium: 5 + unknown: 7 distribution: distribution + is_malware_detected: true package_file: package_file tags: tags properties: @@ -36041,6 +36928,12 @@ components: minLength: 1 title: Distribution type: string + is_malware_detected: + description: Whether the package has been detected as containing malware. + Requires Ultra plan. + readOnly: true + title: Is malware detected + type: boolean package_file: description: The primary file for the package. minLength: 1 @@ -36059,6 +36952,8 @@ components: nullable: true title: Tags type: string + vulnerability_counts: + $ref: '#/components/schemas/WebOSVSeverityCounts' required: - distribution - package_file @@ -36073,6 +36968,7 @@ components: security_scan_status_updated_at: 2000-01-23T04:56:07.000+00:00 checksum_sha256: checksum_sha256 release: release + is_malware_detected: true package_type: 5 repository: repository origin_repository: origin_repository @@ -36175,6 +37071,14 @@ components: key: identifiers checksum_md5: checksum_md5 sync_progress: 3 + vulnerability_counts: + high: 6 + total: 2 + malware: 5 + critical: 0 + low: 1 + medium: 5 + unknown: 7 is_sync_awaiting: true uploader_url: https://openapi-generator.tech self_html_url: self_html_url @@ -36325,6 +37229,12 @@ components: readOnly: true title: Is hidden type: boolean + is_malware_detected: + description: Whether the package has been detected as containing malware. + Requires Ultra plan. + readOnly: true + title: Is malware detected + type: boolean is_moveable: readOnly: true title: Is moveable @@ -36626,6 +37536,8 @@ components: readOnly: true title: Version orig type: string + vulnerability_counts: + $ref: '#/components/schemas/WebOSVSeverityCounts' vulnerability_scan_results_url: format: uri readOnly: true @@ -36635,9 +37547,24 @@ components: RubyPackageUploadRequest: example: republish: true + vulnerability_counts: + high: 6 + total: 2 + malware: 5 + critical: 0 + low: 1 + medium: 5 + unknown: 7 + is_malware_detected: true package_file: package_file tags: tags properties: + is_malware_detected: + description: Whether the package has been detected as containing malware. + Requires Ultra plan. + readOnly: true + title: Is malware detected + type: boolean package_file: description: The primary file for the package. minLength: 1 @@ -36656,6 +37583,8 @@ components: nullable: true title: Tags type: string + vulnerability_counts: + $ref: '#/components/schemas/WebOSVSeverityCounts' required: - package_file type: object @@ -36669,6 +37598,7 @@ components: security_scan_status_updated_at: 2000-01-23T04:56:07.000+00:00 checksum_sha256: checksum_sha256 release: release + is_malware_detected: true package_type: 5 repository: repository origin_repository: origin_repository @@ -36771,6 +37701,14 @@ components: key: identifiers checksum_md5: checksum_md5 sync_progress: 3 + vulnerability_counts: + high: 6 + total: 2 + malware: 5 + critical: 0 + low: 1 + medium: 5 + unknown: 7 is_sync_awaiting: true uploader_url: https://openapi-generator.tech self_html_url: self_html_url @@ -36921,6 +37859,12 @@ components: readOnly: true title: Is hidden type: boolean + is_malware_detected: + description: Whether the package has been detected as containing malware. + Requires Ultra plan. + readOnly: true + title: Is malware detected + type: boolean is_moveable: readOnly: true title: Is moveable @@ -37222,6 +38166,8 @@ components: readOnly: true title: Version orig type: string + vulnerability_counts: + $ref: '#/components/schemas/WebOSVSeverityCounts' vulnerability_scan_results_url: format: uri readOnly: true @@ -37231,16 +38177,25 @@ components: SwiftPackageUploadRequest: example: author_name: author_name + vulnerability_counts: + high: 6 + total: 2 + malware: 5 + critical: 0 + low: 1 + medium: 5 + unknown: 7 + is_malware_detected: true + package_file: package_file + version: version + readme_url: https://openapi-generator.tech + tags: tags republish: true scope: scope author_org: author_org name: name repository_url: https://openapi-generator.tech - package_file: package_file - version: version license_url: https://openapi-generator.tech - readme_url: https://openapi-generator.tech - tags: tags properties: author_name: description: The name of the author of the package. @@ -37252,6 +38207,12 @@ components: minLength: 1 title: Author org type: string + is_malware_detected: + description: Whether the package has been detected as containing malware. + Requires Ultra plan. + readOnly: true + title: Is malware detected + type: boolean license_url: description: The license URL of this package. format: uri @@ -37306,6 +38267,8 @@ components: maxLength: 255 title: Version type: string + vulnerability_counts: + $ref: '#/components/schemas/WebOSVSeverityCounts' required: - name - package_file @@ -37322,6 +38285,7 @@ components: security_scan_status_updated_at: 2000-01-23T04:56:07.000+00:00 checksum_sha256: checksum_sha256 release: release + is_malware_detected: true package_type: 5 repository: repository origin_repository: origin_repository @@ -37428,6 +38392,14 @@ components: key: identifiers checksum_md5: checksum_md5 sync_progress: 3 + vulnerability_counts: + high: 6 + total: 2 + malware: 5 + critical: 0 + low: 1 + medium: 5 + unknown: 7 is_sync_awaiting: true uploader_url: https://openapi-generator.tech self_html_url: self_html_url @@ -37589,6 +38561,12 @@ components: readOnly: true title: Is hidden type: boolean + is_malware_detected: + description: Whether the package has been detected as containing malware. + Requires Ultra plan. + readOnly: true + title: Is malware detected + type: boolean is_moveable: readOnly: true title: Is moveable @@ -37909,6 +38887,8 @@ components: readOnly: true title: Version orig type: string + vulnerability_counts: + $ref: '#/components/schemas/WebOSVSeverityCounts' vulnerability_scan_results_url: format: uri readOnly: true @@ -37922,9 +38902,24 @@ components: TerraformPackageUploadRequest: example: republish: true + vulnerability_counts: + high: 6 + total: 2 + malware: 5 + critical: 0 + low: 1 + medium: 5 + unknown: 7 + is_malware_detected: true package_file: package_file tags: tags properties: + is_malware_detected: + description: Whether the package has been detected as containing malware. + Requires Ultra plan. + readOnly: true + title: Is malware detected + type: boolean package_file: description: The primary file for the package. minLength: 1 @@ -37943,6 +38938,8 @@ components: nullable: true title: Tags type: string + vulnerability_counts: + $ref: '#/components/schemas/WebOSVSeverityCounts' required: - package_file type: object @@ -37956,6 +38953,7 @@ components: security_scan_status_updated_at: 2000-01-23T04:56:07.000+00:00 checksum_sha256: checksum_sha256 release: release + is_malware_detected: true package_type: 5 repository: repository origin_repository: origin_repository @@ -38058,6 +39056,14 @@ components: key: identifiers checksum_md5: checksum_md5 sync_progress: 3 + vulnerability_counts: + high: 6 + total: 2 + malware: 5 + critical: 0 + low: 1 + medium: 5 + unknown: 7 is_sync_awaiting: true uploader_url: https://openapi-generator.tech self_html_url: self_html_url @@ -38208,6 +39214,12 @@ components: readOnly: true title: Is hidden type: boolean + is_malware_detected: + description: Whether the package has been detected as containing malware. + Requires Ultra plan. + readOnly: true + title: Is malware detected + type: boolean is_moveable: readOnly: true title: Is moveable @@ -38509,6 +39521,8 @@ components: readOnly: true title: Version orig type: string + vulnerability_counts: + $ref: '#/components/schemas/WebOSVSeverityCounts' vulnerability_scan_results_url: format: uri readOnly: true @@ -38520,10 +39534,25 @@ components: republish: true provider: provider name: name + vulnerability_counts: + high: 6 + total: 2 + malware: 5 + critical: 0 + low: 1 + medium: 5 + unknown: 7 + is_malware_detected: true package_file: package_file version: version tags: tags properties: + is_malware_detected: + description: Whether the package has been detected as containing malware. + Requires Ultra plan. + readOnly: true + title: Is malware detected + type: boolean name: description: The name of this package. maxLength: 200 @@ -38557,6 +39586,8 @@ components: maxLength: 255 title: Version type: string + vulnerability_counts: + $ref: '#/components/schemas/WebOSVSeverityCounts' required: - name - package_file @@ -38573,6 +39604,7 @@ components: security_scan_status_updated_at: 2000-01-23T04:56:07.000+00:00 checksum_sha256: checksum_sha256 release: release + is_malware_detected: true package_type: 5 repository: repository origin_repository: origin_repository @@ -38676,6 +39708,14 @@ components: key: identifiers checksum_md5: checksum_md5 sync_progress: 3 + vulnerability_counts: + high: 6 + total: 2 + malware: 5 + critical: 0 + low: 1 + medium: 5 + unknown: 7 is_sync_awaiting: true uploader_url: https://openapi-generator.tech self_html_url: self_html_url @@ -38826,6 +39866,12 @@ components: readOnly: true title: Is hidden type: boolean + is_malware_detected: + description: Whether the package has been detected as containing malware. + Requires Ultra plan. + readOnly: true + title: Is malware detected + type: boolean is_moveable: readOnly: true title: Is moveable @@ -39130,6 +40176,8 @@ components: readOnly: true title: Version orig type: string + vulnerability_counts: + $ref: '#/components/schemas/WebOSVSeverityCounts' vulnerability_scan_results_url: format: uri readOnly: true @@ -39143,9 +40191,24 @@ components: VsxPackageUploadRequest: example: republish: true + vulnerability_counts: + high: 6 + total: 2 + malware: 5 + critical: 0 + low: 1 + medium: 5 + unknown: 7 + is_malware_detected: true package_file: package_file tags: tags properties: + is_malware_detected: + description: Whether the package has been detected as containing malware. + Requires Ultra plan. + readOnly: true + title: Is malware detected + type: boolean package_file: description: The primary file for the package. minLength: 1 @@ -39164,6 +40227,8 @@ components: nullable: true title: Tags type: string + vulnerability_counts: + $ref: '#/components/schemas/WebOSVSeverityCounts' required: - package_file type: object @@ -39177,6 +40242,7 @@ components: security_scan_status_updated_at: 2000-01-23T04:56:07.000+00:00 checksum_sha256: checksum_sha256 release: release + is_malware_detected: true package_type: 5 repository: repository origin_repository: origin_repository @@ -39279,6 +40345,14 @@ components: key: identifiers checksum_md5: checksum_md5 sync_progress: 3 + vulnerability_counts: + high: 6 + total: 2 + malware: 5 + critical: 0 + low: 1 + medium: 5 + unknown: 7 is_sync_awaiting: true uploader_url: https://openapi-generator.tech self_html_url: self_html_url @@ -39429,6 +40503,12 @@ components: readOnly: true title: Is hidden type: boolean + is_malware_detected: + description: Whether the package has been detected as containing malware. + Requires Ultra plan. + readOnly: true + title: Is malware detected + type: boolean is_moveable: readOnly: true title: Is moveable @@ -39730,31 +40810,15 @@ components: readOnly: true title: Version orig type: string + vulnerability_counts: + $ref: '#/components/schemas/WebOSVSeverityCounts' vulnerability_scan_results_url: format: uri readOnly: true title: Vulnerability scan results url type: string type: object - PackageCopyRequest: - example: - republish: true - destination: destination - properties: - destination: - description: The name of the destination repository without the namespace. - minLength: 1 - title: Destination - type: string - republish: - description: "If true, the package will overwrite any others with the same\ - \ attributes (e.g. same version); otherwise, it will be flagged as a duplicate." - title: Republish - type: boolean - required: - - destination - type: object - PackageCopy: + PackageDetail: example: architectures: - name: name @@ -39762,8 +40826,10 @@ components: - name: name description: description security_scan_status_updated_at: 2000-01-23T04:56:07.000+00:00 + has_dependencies: true checksum_sha256: checksum_sha256 release: release + is_malware_detected: true package_type: 5 repository: repository origin_repository: origin_repository @@ -39868,6 +40934,14 @@ components: key: identifiers checksum_md5: checksum_md5 sync_progress: 3 + vulnerability_counts: + high: 6 + total: 2 + malware: 5 + critical: 0 + low: 1 + medium: 5 + unknown: 7 is_sync_awaiting: true uploader_url: https://openapi-generator.tech self_html_url: self_html_url @@ -39987,6 +41061,12 @@ components: readOnly: true title: Fully qualified name type: string + has_dependencies: + description: Whether the package has any dependencies (top-level or from + its SBOM). + readOnly: true + title: Has dependencies + type: boolean identifier_perm: description: Unique and permanent identifier for the package. minLength: 1 @@ -40025,6 +41105,12 @@ components: readOnly: true title: Is hidden type: boolean + is_malware_detected: + description: Whether the package has been detected as containing malware. + Requires Ultra plan. + readOnly: true + title: Is malware detected + type: boolean is_moveable: readOnly: true title: Is moveable @@ -40130,7 +41216,6 @@ components: title: Release type: string repository: - description: The repository the package will be copied to. minLength: 1 readOnly: true title: Repository @@ -40332,115 +41417,50 @@ components: readOnly: true title: Version orig type: string + vulnerability_counts: + $ref: '#/components/schemas/WebOSVSeverityCounts' vulnerability_scan_results_url: format: uri readOnly: true title: Vulnerability scan results url type: string type: object - PackageDependency: - example: - dep_type: Depends - name: name - version: version - operator: = - properties: - dep_type: - default: Depends - enum: - - Depends - - Pre-Depends - - Recommends - - Suggests - - Enhances - - Replaces - - Breaks - - Built-Using - - Build-Depends - - Build-Depends-Indep - - Build-Conflicts - - Build-Conflicts-Indep - - Conflicts - - Provides - - Obsoletes - - Requires - - Runtime - - Development - - Compile - - Provided - - Test - - System - - Import - - Excluded - - Build-Requires - - Python-Requires - readOnly: true - title: Dep type - type: string - name: - maxLength: 255 - minLength: 1 - readOnly: true - title: Name - type: string - operator: - default: = - enum: - - = - - '!=' - - < - - << - - <= - - '>' - - '>>' - - '>=' - - "~=" - - "~>" - - matches - nullable: true - readOnly: true - title: Operator - type: string - version: - maxLength: 128 - minLength: 1 - nullable: true - readOnly: true - title: Version - type: string - type: object - PackageDependencies: - example: - dependencies: - - dep_type: Depends - name: name - version: version - operator: = - - dep_type: Depends - name: name - version: version - operator: = - properties: - dependencies: - items: - $ref: '#/components/schemas/PackageDependency' - type: array - required: - - dependencies - type: object - PackageMoveRequest: + PackageCopyRequest: example: + republish: true destination: destination + vulnerability_counts: + high: 6 + total: 2 + malware: 5 + critical: 0 + low: 1 + medium: 5 + unknown: 7 + is_malware_detected: true properties: destination: description: The name of the destination repository without the namespace. minLength: 1 title: Destination type: string + is_malware_detected: + description: Whether the package has been detected as containing malware. + Requires Ultra plan. + readOnly: true + title: Is malware detected + type: boolean + republish: + description: "If true, the package will overwrite any others with the same\ + \ attributes (e.g. same version); otherwise, it will be flagged as a duplicate." + title: Republish + type: boolean + vulnerability_counts: + $ref: '#/components/schemas/WebOSVSeverityCounts' required: - destination type: object - PackageMove: + PackageCopy: example: architectures: - name: name @@ -40450,6 +41470,7 @@ components: security_scan_status_updated_at: 2000-01-23T04:56:07.000+00:00 checksum_sha256: checksum_sha256 release: release + is_malware_detected: true package_type: 5 repository: repository origin_repository: origin_repository @@ -40554,6 +41575,14 @@ components: key: identifiers checksum_md5: checksum_md5 sync_progress: 3 + vulnerability_counts: + high: 6 + total: 2 + malware: 5 + critical: 0 + low: 1 + medium: 5 + unknown: 7 is_sync_awaiting: true uploader_url: https://openapi-generator.tech self_html_url: self_html_url @@ -40711,6 +41740,732 @@ components: readOnly: true title: Is hidden type: boolean + is_malware_detected: + description: Whether the package has been detected as containing malware. + Requires Ultra plan. + readOnly: true + title: Is malware detected + type: boolean + is_moveable: + readOnly: true + title: Is moveable + type: boolean + is_quarantinable: + readOnly: true + title: Is quarantinable + type: boolean + is_quarantined: + readOnly: true + title: Is quarantined + type: boolean + is_resyncable: + readOnly: true + title: Is resyncable + type: boolean + is_security_scannable: + readOnly: true + title: Is security scannable + type: boolean + is_sync_awaiting: + readOnly: true + title: Is sync awaiting + type: boolean + is_sync_completed: + readOnly: true + title: Is sync completed + type: boolean + is_sync_failed: + readOnly: true + title: Is sync failed + type: boolean + is_sync_in_flight: + readOnly: true + title: Is sync in flight + type: boolean + is_sync_in_progress: + readOnly: true + title: Is sync in progress + type: boolean + license: + description: The license of this package. + nullable: true + readOnly: true + title: License + type: string + name: + description: The name of this package. + nullable: true + readOnly: true + title: Name + type: string + namespace: + minLength: 1 + readOnly: true + title: Namespace + type: string + namespace_url: + format: uri + readOnly: true + title: Namespace url + type: string + num_files: + readOnly: true + title: Num files + type: integer + origin_repository: + minLength: 1 + readOnly: true + title: Origin repository + type: string + origin_repository_url: + format: uri + readOnly: true + title: Origin repository url + type: string + osi_approved: + description: Whether the package's SPDX license is OSI-approved. + readOnly: true + title: Osi approved + type: boolean + package_type: + description: The type of package contents. + readOnly: true + title: Package type + type: integer + policy_violated: + description: Whether or not the package has violated any policy. + readOnly: true + title: Policy violated + type: boolean + raw_license: + description: The raw license string. + minLength: 1 + nullable: true + readOnly: true + title: Raw license + type: string + release: + description: The release of the package version (if any). + nullable: true + readOnly: true + title: Release + type: string + repository: + description: The repository the package will be copied to. + minLength: 1 + readOnly: true + title: Repository + type: string + repository_url: + format: uri + readOnly: true + title: Repository url + type: string + security_scan_completed_at: + description: The datetime the security scanning was completed. + format: date-time + nullable: true + readOnly: true + title: Security scan completed at + type: string + security_scan_started_at: + description: The datetime the security scanning was started. + format: date-time + nullable: true + readOnly: true + title: Security scan started at + type: string + security_scan_status: + default: Awaiting Security Scan + enum: + - Awaiting Security Scan + - Security Scanning in Progress + - Scan Detected Vulnerabilities + - Scan Detected No Vulnerabilities + - Security Scanning Disabled + - Security Scanning Failed + - Security Scanning Skipped + - Security Scanning Not Supported + nullable: true + readOnly: true + title: Security scan status + type: string + security_scan_status_updated_at: + description: The datetime the security scanning status was updated. + format: date-time + nullable: true + readOnly: true + title: Security scan status updated at + type: string + self_html_url: + minLength: 1 + readOnly: true + title: Self html url + type: string + self_url: + format: uri + readOnly: true + title: Self url + type: string + self_webapp_url: + minLength: 1 + readOnly: true + title: Self webapp url + type: string + signature_url: + nullable: true + readOnly: true + title: Signature url + type: string + size: + description: The calculated size of the package. + readOnly: true + title: Size + type: integer + slug: + description: The public unique identifier for the package. + format: slug + minLength: 1 + pattern: "^[-a-zA-Z0-9_]+$" + readOnly: true + title: Slug + type: string + slug_perm: + format: slug + minLength: 1 + pattern: "^[-a-zA-Z0-9_]+$" + readOnly: true + title: Slug perm + type: string + spdx_license: + description: The SPDX license identifier for this package. + minLength: 1 + nullable: true + readOnly: true + title: Spdx license + type: string + stage: + description: The synchronisation (in progress) stage of the package. + readOnly: true + title: Stage + type: integer + stage_str: + readOnly: true + title: Stage str + type: string + stage_updated_at: + description: The datetime the package stage was updated at. + format: date-time + readOnly: true + title: Stage updated at + type: string + status: + description: The synchronisation status of the package. + readOnly: true + title: Status + type: integer + status_reason: + description: A textual description for the synchronous status reason (if + any + nullable: true + readOnly: true + title: Status reason + type: string + status_str: + readOnly: true + title: Status str + type: string + status_updated_at: + description: The datetime the package status was updated at. + format: date-time + readOnly: true + title: Status updated at + type: string + status_url: + format: uri + readOnly: true + title: Status url + type: string + subtype: + readOnly: true + title: Subtype + type: string + summary: + description: A one-liner synopsis of this package. + nullable: true + readOnly: true + title: Summary + type: string + sync_finished_at: + description: The datetime the package sync was finished at. + format: date-time + nullable: true + readOnly: true + title: Sync finished at + type: string + sync_progress: + description: Synchronisation progress (from 0-100) + readOnly: true + title: Sync progress + type: integer + tags: + description: "All tags on the package, grouped by tag type. This includes\ + \ immutable tags, but doesn't distinguish them from mutable. To see which\ + \ tags are immutable specifically, see the tags_immutable field." + type: object + tags_automatic: + description: "All tags on the package, grouped by tag type. This includes\ + \ immutable tags, but doesn't distinguish them from mutable. To see which\ + \ tags are immutable specifically, see the tags_immutable field." + type: object + tags_immutable: + description: "All tags on the package, grouped by tag type. This includes\ + \ immutable tags, but doesn't distinguish them from mutable. To see which\ + \ tags are immutable specifically, see the tags_immutable field." + type: object + type_display: + readOnly: true + title: Type display + type: string + uploaded_at: + description: The date this package was uploaded. + format: date-time + readOnly: true + title: Uploaded at + type: string + uploader: + minLength: 1 + readOnly: true + title: Uploader + type: string + uploader_url: + format: uri + readOnly: true + title: Uploader url + type: string + version: + description: The raw version for this package. + nullable: true + readOnly: true + title: Version + type: string + version_orig: + readOnly: true + title: Version orig + type: string + vulnerability_counts: + $ref: '#/components/schemas/WebOSVSeverityCounts' + vulnerability_scan_results_url: + format: uri + readOnly: true + title: Vulnerability scan results url + type: string + type: object + PackageDependency: + example: + dep_type: Depends + name: name + version: version + operator: = + properties: + dep_type: + default: Depends + enum: + - Depends + - Pre-Depends + - Recommends + - Suggests + - Enhances + - Replaces + - Breaks + - Built-Using + - Build-Depends + - Build-Depends-Indep + - Build-Conflicts + - Build-Conflicts-Indep + - Conflicts + - Provides + - Obsoletes + - Requires + - Runtime + - Development + - Compile + - Provided + - Test + - System + - Import + - Excluded + - Build-Requires + - Python-Requires + readOnly: true + title: Dep type + type: string + name: + maxLength: 255 + minLength: 1 + readOnly: true + title: Name + type: string + operator: + default: = + enum: + - = + - '!=' + - < + - << + - <= + - '>' + - '>>' + - '>=' + - "~=" + - "~>" + - matches + nullable: true + readOnly: true + title: Operator + type: string + version: + maxLength: 128 + minLength: 1 + nullable: true + readOnly: true + title: Version + type: string + type: object + PackageDependencies: + example: + dependencies: + - dep_type: Depends + name: name + version: version + operator: = + - dep_type: Depends + name: name + version: version + operator: = + properties: + dependencies: + items: + $ref: '#/components/schemas/PackageDependency' + type: array + required: + - dependencies + type: object + PackageMoveRequest: + example: + destination: destination + vulnerability_counts: + high: 6 + total: 2 + malware: 5 + critical: 0 + low: 1 + medium: 5 + unknown: 7 + is_malware_detected: true + properties: + destination: + description: The name of the destination repository without the namespace. + minLength: 1 + title: Destination + type: string + is_malware_detected: + description: Whether the package has been detected as containing malware. + Requires Ultra plan. + readOnly: true + title: Is malware detected + type: boolean + vulnerability_counts: + $ref: '#/components/schemas/WebOSVSeverityCounts' + required: + - destination + type: object + PackageMove: + example: + architectures: + - name: name + description: description + - name: name + description: description + security_scan_status_updated_at: 2000-01-23T04:56:07.000+00:00 + checksum_sha256: checksum_sha256 + release: release + is_malware_detected: true + package_type: 5 + repository: repository + origin_repository: origin_repository + identifier_perm: identifier_perm + stage_updated_at: 2000-01-23T04:56:07.000+00:00 + filepath: filepath + tags_immutable: "{}" + is_quarantined: true + slug: slug + freeable_storage: 1 + is_security_scannable: true + security_scan_started_at: 2000-01-23T04:56:07.000+00:00 + security_scan_status: Awaiting Security Scan + indexed: true + is_deleteable: true + format: format + status_str: status_str + version_orig: version_orig + namespace_url: https://openapi-generator.tech + display_name: display_name + slug_perm: slug_perm + spdx_license: spdx_license + version: version + tags: "{}" + is_resyncable: true + license: license + filename: filename + size: 2 + cdn_url: cdn_url + uploaded_at: 2000-01-23T04:56:07.000+00:00 + is_cancellable: true + is_downloadable: true + name: name + sync_finished_at: 2000-01-23T04:56:07.000+00:00 + files: + - checksum_sha512: checksum_sha512 + checksum_sha1: checksum_sha1 + checksum_sha256: checksum_sha256 + is_primary: true + checksum_md5: checksum_md5 + slug_perm: slug_perm + filename: filename + size: 5 + cdn_url: cdn_url + downloads: 1 + is_synchronised: true + is_downloadable: true + signature_url: signature_url + tag: tag + - checksum_sha512: checksum_sha512 + checksum_sha1: checksum_sha1 + checksum_sha256: checksum_sha256 + is_primary: true + checksum_md5: checksum_md5 + slug_perm: slug_perm + filename: filename + size: 5 + cdn_url: cdn_url + downloads: 1 + is_synchronised: true + is_downloadable: true + signature_url: signature_url + tag: tag + num_files: 5 + status: 9 + checksum_sha512: checksum_sha512 + distro: + name: name + variants: variants + self_url: https://openapi-generator.tech + slug: slug + extension: extension + fully_qualified_name: fully_qualified_name + is_hidden: true + description: description + is_copyable: true + epoch: 6 + is_sync_completed: true + distro_version: + name: name + slug: slug + type_display: type_display + raw_license: raw_license + vulnerability_scan_results_url: https://openapi-generator.tech + dependencies_checksum_md5: dependencies_checksum_md5 + policy_violated: true + downloads: 0 + subtype: subtype + uploader: uploader + self_webapp_url: self_webapp_url + signature_url: signature_url + tags_automatic: "{}" + repository_url: https://openapi-generator.tech + is_moveable: true + status_reason: status_reason + osi_approved: true + status_updated_at: 2000-01-23T04:56:07.000+00:00 + summary: summary + checksum_sha1: checksum_sha1 + is_quarantinable: true + identifiers: + key: identifiers + checksum_md5: checksum_md5 + sync_progress: 3 + vulnerability_counts: + high: 6 + total: 2 + malware: 5 + critical: 0 + low: 1 + medium: 5 + unknown: 7 + is_sync_awaiting: true + uploader_url: https://openapi-generator.tech + self_html_url: self_html_url + origin_repository_url: https://openapi-generator.tech + self_url: https://openapi-generator.tech + status_url: https://openapi-generator.tech + is_sync_in_flight: true + security_scan_completed_at: 2000-01-23T04:56:07.000+00:00 + is_sync_in_progress: true + stage_str: stage_str + stage: 7 + format_url: https://openapi-generator.tech + dependencies_url: https://openapi-generator.tech + namespace: namespace + is_sync_failed: true + properties: + architectures: + items: + $ref: '#/components/schemas/Architecture' + readOnly: true + type: array + cdn_url: + nullable: true + readOnly: true + title: Cdn url + type: string + checksum_md5: + readOnly: true + title: Checksum md5 + type: string + checksum_sha1: + readOnly: true + title: Checksum sha1 + type: string + checksum_sha256: + readOnly: true + title: Checksum sha256 + type: string + checksum_sha512: + readOnly: true + title: Checksum sha512 + type: string + dependencies_checksum_md5: + description: A checksum of all of the package's dependencies. + nullable: true + readOnly: true + title: Dependencies checksum md5 + type: string + dependencies_url: + format: uri + readOnly: true + title: Dependencies url + type: string + description: + description: A textual description of this package. + nullable: true + readOnly: true + title: Description + type: string + display_name: + readOnly: true + title: Display name + type: string + distro: + $ref: '#/components/schemas/Distribution' + distro_version: + $ref: '#/components/schemas/DistributionVersion' + downloads: + readOnly: true + title: Downloads + type: integer + epoch: + description: The epoch of the package version (if any). + nullable: true + readOnly: true + title: Epoch + type: integer + extension: + readOnly: true + title: Extension + type: string + filename: + minLength: 1 + readOnly: true + title: Filename + type: string + filepath: + description: "Full path to the file, including filename e.g. bin/utils/tool.tar.gz" + minLength: 1 + nullable: true + readOnly: true + title: Filepath + type: string + files: + items: + $ref: '#/components/schemas/PackageFile' + readOnly: true + type: array + format: + minLength: 1 + readOnly: true + title: Format + type: string + format_url: + format: uri + readOnly: true + title: Format url + type: string + freeable_storage: + description: Amount of storage that will be freed if this package is deleted + readOnly: true + title: Freeable storage + type: integer + fully_qualified_name: + minLength: 1 + nullable: true + readOnly: true + title: Fully qualified name + type: string + identifier_perm: + description: Unique and permanent identifier for the package. + minLength: 1 + readOnly: true + title: Identifier perm + type: string + identifiers: + additionalProperties: + nullable: true + type: string + description: Return a map of identifier field names and their values. + readOnly: true + title: Identifiers + type: object + indexed: + readOnly: true + title: Indexed + type: boolean + is_cancellable: + readOnly: true + title: Is cancellable + type: boolean + is_copyable: + readOnly: true + title: Is copyable + type: boolean + is_deleteable: + readOnly: true + title: Is deleteable + type: boolean + is_downloadable: + readOnly: true + title: Is downloadable + type: boolean + is_hidden: + readOnly: true + title: Is hidden + type: boolean + is_malware_detected: + description: Whether the package has been detected as containing malware. + Requires Ultra plan. + readOnly: true + title: Is malware detected + type: boolean is_moveable: readOnly: true title: Is moveable @@ -41018,6 +42773,8 @@ components: readOnly: true title: Version orig type: string + vulnerability_counts: + $ref: '#/components/schemas/WebOSVSeverityCounts' vulnerability_scan_results_url: format: uri readOnly: true @@ -41028,7 +42785,22 @@ components: example: restore: true release: true - properties: + vulnerability_counts: + high: 6 + total: 2 + malware: 5 + critical: 0 + low: 1 + medium: 5 + unknown: 7 + is_malware_detected: true + properties: + is_malware_detected: + description: Whether the package has been detected as containing malware. + Requires Ultra plan. + readOnly: true + title: Is malware detected + type: boolean release: description: "If true, the package is released from quarantine." title: Release @@ -41038,6 +42810,8 @@ components: \ field is deprecated, please use 'release' instead." title: Restore type: boolean + vulnerability_counts: + $ref: '#/components/schemas/WebOSVSeverityCounts' type: object PackageQuarantine: example: @@ -41048,6 +42822,7 @@ components: description: description security_scan_status_updated_at: 2000-01-23T04:56:07.000+00:00 checksum_sha256: checksum_sha256 + is_malware_detected: true package_type: 5 repository: repository origin_repository: origin_repository @@ -41152,6 +42927,14 @@ components: key: identifiers checksum_md5: checksum_md5 sync_progress: 3 + vulnerability_counts: + high: 6 + total: 2 + malware: 5 + critical: 0 + low: 1 + medium: 5 + unknown: 7 is_sync_awaiting: true uploader_url: https://openapi-generator.tech self_html_url: self_html_url @@ -41309,6 +43092,12 @@ components: readOnly: true title: Is hidden type: boolean + is_malware_detected: + description: Whether the package has been detected as containing malware. + Requires Ultra plan. + readOnly: true + title: Is malware detected + type: boolean is_moveable: readOnly: true title: Is moveable @@ -41609,6 +43398,8 @@ components: readOnly: true title: Version orig type: string + vulnerability_counts: + $ref: '#/components/schemas/WebOSVSeverityCounts' vulnerability_scan_results_url: format: uri readOnly: true @@ -41625,6 +43416,7 @@ components: security_scan_status_updated_at: 2000-01-23T04:56:07.000+00:00 checksum_sha256: checksum_sha256 release: release + is_malware_detected: true package_type: 5 repository: repository origin_repository: origin_repository @@ -41729,6 +43521,14 @@ components: key: identifiers checksum_md5: checksum_md5 sync_progress: 3 + vulnerability_counts: + high: 6 + total: 2 + malware: 5 + critical: 0 + low: 1 + medium: 5 + unknown: 7 is_sync_awaiting: true uploader_url: https://openapi-generator.tech self_html_url: self_html_url @@ -41886,6 +43686,12 @@ components: readOnly: true title: Is hidden type: boolean + is_malware_detected: + description: Whether the package has been detected as containing malware. + Requires Ultra plan. + readOnly: true + title: Is malware detected + type: boolean is_moveable: readOnly: true title: Is moveable @@ -42192,6 +43998,8 @@ components: readOnly: true title: Version orig type: string + vulnerability_counts: + $ref: '#/components/schemas/WebOSVSeverityCounts' vulnerability_scan_results_url: format: uri readOnly: true @@ -42345,6 +44153,15 @@ components: example: is_immutable: false action: Add + vulnerability_counts: + high: 6 + total: 2 + malware: 5 + critical: 0 + low: 1 + medium: 5 + unknown: 7 + is_malware_detected: true tags: - tags - tags @@ -42365,6 +44182,12 @@ components: \ is a tag that cannot be removed from a package." title: Is immutable type: boolean + is_malware_detected: + description: Whether the package has been detected as containing malware. + Requires Ultra plan. + readOnly: true + title: Is malware detected + type: boolean tags: description: A list of tags to apply the action to. Not required for clears. items: @@ -42373,6 +44196,8 @@ components: type: string nullable: true type: array + vulnerability_counts: + $ref: '#/components/schemas/WebOSVSeverityCounts' type: object PackageTag: properties: @@ -42523,6 +44348,12 @@ components: \ is a tag that cannot be removed from a package." title: Is immutable type: boolean + is_malware_detected: + description: Whether the package has been detected as containing malware. + Requires Ultra plan. + readOnly: true + title: Is malware detected + type: boolean is_moveable: readOnly: true title: Is moveable @@ -42824,6 +44655,8 @@ components: readOnly: true title: Version orig type: string + vulnerability_counts: + $ref: '#/components/schemas/WebOSVSeverityCounts' vulnerability_scan_results_url: format: uri readOnly: true @@ -42834,6 +44667,15 @@ components: example: license_notes: license_notes action: Update + vulnerability_counts: + high: 6 + total: 2 + malware: 5 + critical: 0 + low: 1 + medium: 5 + unknown: 7 + is_malware_detected: true license_override: None spdx_license: spdx_license license_url: https://openapi-generator.tech @@ -42845,6 +44687,12 @@ components: nullable: true title: Action type: string + is_malware_detected: + description: Whether the package has been detected as containing malware. + Requires Ultra plan. + readOnly: true + title: Is malware detected + type: boolean license_notes: maxLength: 1000 nullable: true @@ -42870,9 +44718,19 @@ components: minLength: 1 title: Spdx license type: string + vulnerability_counts: + $ref: '#/components/schemas/WebOSVSeverityCounts' + required: + - spdx_license type: object PackageLicense: properties: + is_malware_detected: + description: Whether the package has been detected as containing malware. + Requires Ultra plan. + readOnly: true + title: Is malware detected + type: boolean license_notes: maxLength: 1000 nullable: true @@ -42898,6 +44756,8 @@ components: minLength: 1 title: Spdx license type: string + vulnerability_counts: + $ref: '#/components/schemas/WebOSVSeverityCounts' required: - spdx_license type: object @@ -43484,32 +45344,41 @@ components: type: object RecycleBinPackage: example: - security_scan_status: Awaiting Security Scan fully_qualified_name: fully_qualified_name + is_malware_detected: true + repository: repository + type_display: type_display + action_by: action_by + policy_violated: true + downloads: 0 + uploader: uploader + is_quarantined: true + status_updated_at: 2000-01-23T04:56:07.000+00:00 + security_scan_status: Awaiting Security Scan identifiers: key: identifiers is_deleteable: true format: format - repository: repository + vulnerability_counts: + high: 6 + total: 2 + malware: 5 + critical: 0 + low: 1 + medium: 5 + unknown: 7 slug_perm: slug_perm version: version tags: "{}" - type_display: type_display - action_by: action_by security_scan_completed_at: 2000-01-23T04:56:07.000+00:00 filename: filename is_restorable: true - policy_violated: true size: 6 - downloads: 0 invoked_retention_rule: key: invoked_retention_rule uploaded_at: 2000-01-23T04:56:07.000+00:00 - uploader: uploader name: name - is_quarantined: true status: 1 - status_updated_at: 2000-01-23T04:56:07.000+00:00 properties: action_by: description: The name of the user who deleted the package. @@ -43560,6 +45429,12 @@ components: readOnly: true title: Is deleteable type: boolean + is_malware_detected: + description: Whether the package has been detected as containing malware. + Requires Ultra plan. + readOnly: true + title: Is malware detected + type: boolean is_quarantined: readOnly: true title: Is quarantined @@ -43655,6 +45530,8 @@ components: readOnly: true title: Version type: string + vulnerability_counts: + $ref: '#/components/schemas/WebOSVSeverityCounts' type: object PackageRecycleBin: example: @@ -56312,6 +58189,15 @@ components: package: identifier: identifier name: name + vulnerability_counts: + high: 6 + total: 2 + malware: 5 + critical: 0 + low: 1 + medium: 5 + unknown: 7 + is_malware_detected: true version: version url: https://openapi-generator.tech has_vulnerabilities: true @@ -56574,6 +58460,15 @@ components: package: identifier: identifier name: name + vulnerability_counts: + high: 6 + total: 2 + malware: 5 + critical: 0 + low: 1 + medium: 5 + unknown: 7 + is_malware_detected: true version: version url: https://openapi-generator.tech scans: @@ -57210,6 +59105,15 @@ components: - package: identifier: identifier name: name + vulnerability_counts: + high: 6 + total: 2 + malware: 5 + critical: 0 + low: 1 + medium: 5 + unknown: 7 + is_malware_detected: true version: version url: https://openapi-generator.tech reasons: @@ -57232,6 +59136,15 @@ components: - package: identifier: identifier name: name + vulnerability_counts: + high: 6 + total: 2 + malware: 5 + critical: 0 + low: 1 + medium: 5 + unknown: 7 + is_malware_detected: true version: version url: https://openapi-generator.tech reasons: @@ -57276,6 +59189,15 @@ components: - package: identifier: identifier name: name + vulnerability_counts: + high: 6 + total: 2 + malware: 5 + critical: 0 + low: 1 + medium: 5 + unknown: 7 + is_malware_detected: true version: version url: https://openapi-generator.tech reasons: @@ -57304,6 +59226,15 @@ components: - package: identifier: identifier name: name + vulnerability_counts: + high: 6 + total: 2 + malware: 5 + critical: 0 + low: 1 + medium: 5 + unknown: 7 + is_malware_detected: true version: version url: https://openapi-generator.tech reasons: diff --git a/api_audit_log.go b/api_audit_log.go index ab457201..7d294859 100644 --- a/api_audit_log.go +++ b/api_audit_log.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1288.1 +API version: 1.1341.7 Contact: support@cloudsmith.io */ diff --git a/api_badges.go b/api_badges.go index 36ad5f30..62818aa6 100644 --- a/api_badges.go +++ b/api_badges.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1288.1 +API version: 1.1341.7 Contact: support@cloudsmith.io */ diff --git a/api_broadcasts.go b/api_broadcasts.go index 41f7fc85..a40cdd51 100644 --- a/api_broadcasts.go +++ b/api_broadcasts.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1288.1 +API version: 1.1341.7 Contact: support@cloudsmith.io */ diff --git a/api_bulk_action.go b/api_bulk_action.go index 8613c77d..64ec64ba 100644 --- a/api_bulk_action.go +++ b/api_bulk_action.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1288.1 +API version: 1.1341.7 Contact: support@cloudsmith.io */ diff --git a/api_distros.go b/api_distros.go index 3146501d..6e8ca3aa 100644 --- a/api_distros.go +++ b/api_distros.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1288.1 +API version: 1.1341.7 Contact: support@cloudsmith.io */ diff --git a/api_entitlements.go b/api_entitlements.go index e9d4aebf..5c4bfc6a 100644 --- a/api_entitlements.go +++ b/api_entitlements.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1288.1 +API version: 1.1341.7 Contact: support@cloudsmith.io */ diff --git a/api_files.go b/api_files.go index 77f86bf0..ff574f64 100644 --- a/api_files.go +++ b/api_files.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1288.1 +API version: 1.1341.7 Contact: support@cloudsmith.io */ diff --git a/api_formats.go b/api_formats.go index c089887c..bccd9b9b 100644 --- a/api_formats.go +++ b/api_formats.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1288.1 +API version: 1.1341.7 Contact: support@cloudsmith.io */ diff --git a/api_metrics.go b/api_metrics.go index e7b0eed4..bd355408 100644 --- a/api_metrics.go +++ b/api_metrics.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1288.1 +API version: 1.1341.7 Contact: support@cloudsmith.io */ diff --git a/api_namespaces.go b/api_namespaces.go index f66dd289..bd7fc7e5 100644 --- a/api_namespaces.go +++ b/api_namespaces.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1288.1 +API version: 1.1341.7 Contact: support@cloudsmith.io */ diff --git a/api_orgs.go b/api_orgs.go index 96cb7e11..82e2ef53 100644 --- a/api_orgs.go +++ b/api_orgs.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1288.1 +API version: 1.1341.7 Contact: support@cloudsmith.io */ diff --git a/api_packages.go b/api_packages.go index a263c5da..e386cead 100644 --- a/api_packages.go +++ b/api_packages.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1288.1 +API version: 1.1341.7 Contact: support@cloudsmith.io */ @@ -1227,7 +1227,7 @@ func (r ApiPackagesReadRequest) IncludeConnectedRepositories(includeConnectedRep return r } -func (r ApiPackagesReadRequest) Execute() (*Package, *http.Response, error) { +func (r ApiPackagesReadRequest) Execute() (*PackageDetail, *http.Response, error) { return r.ApiService.PackagesReadExecute(r) } @@ -1253,13 +1253,13 @@ func (a *PackagesApiService) PackagesRead(ctx context.Context, owner string, rep } // Execute executes the request -// @return Package -func (a *PackagesApiService) PackagesReadExecute(r ApiPackagesReadRequest) (*Package, *http.Response, error) { +// @return PackageDetail +func (a *PackagesApiService) PackagesReadExecute(r ApiPackagesReadRequest) (*PackageDetail, *http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile - localVarReturnValue *Package + localVarReturnValue *PackageDetail ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "PackagesApiService.PackagesRead") diff --git a/api_quota.go b/api_quota.go index 840c9199..3f1b7462 100644 --- a/api_quota.go +++ b/api_quota.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1288.1 +API version: 1.1341.7 Contact: support@cloudsmith.io */ diff --git a/api_rates.go b/api_rates.go index 2d213729..eb5ff833 100644 --- a/api_rates.go +++ b/api_rates.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1288.1 +API version: 1.1341.7 Contact: support@cloudsmith.io */ diff --git a/api_recycle_bin.go b/api_recycle_bin.go index ca68e1f8..a0f1b7c3 100644 --- a/api_recycle_bin.go +++ b/api_recycle_bin.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1288.1 +API version: 1.1341.7 Contact: support@cloudsmith.io */ diff --git a/api_repos.go b/api_repos.go index 4a4a71bf..898d5dbe 100644 --- a/api_repos.go +++ b/api_repos.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1288.1 +API version: 1.1341.7 Contact: support@cloudsmith.io */ diff --git a/api_status.go b/api_status.go index 16f1afad..8eddd78f 100644 --- a/api_status.go +++ b/api_status.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1288.1 +API version: 1.1341.7 Contact: support@cloudsmith.io */ diff --git a/api_storage_regions.go b/api_storage_regions.go index 72ca4d57..02ac1166 100644 --- a/api_storage_regions.go +++ b/api_storage_regions.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1288.1 +API version: 1.1341.7 Contact: support@cloudsmith.io */ diff --git a/api_user.go b/api_user.go index 93e513b4..035723c9 100644 --- a/api_user.go +++ b/api_user.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1288.1 +API version: 1.1341.7 Contact: support@cloudsmith.io */ diff --git a/api_users.go b/api_users.go index 5a88cdf8..c3bf6402 100644 --- a/api_users.go +++ b/api_users.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1288.1 +API version: 1.1341.7 Contact: support@cloudsmith.io */ diff --git a/api_vulnerabilities.go b/api_vulnerabilities.go index 03eaf5a9..24464736 100644 --- a/api_vulnerabilities.go +++ b/api_vulnerabilities.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1288.1 +API version: 1.1341.7 Contact: support@cloudsmith.io */ diff --git a/api_webhooks.go b/api_webhooks.go index ea6d0afb..5565e470 100644 --- a/api_webhooks.go +++ b/api_webhooks.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1288.1 +API version: 1.1341.7 Contact: support@cloudsmith.io */ diff --git a/bin/generate b/bin/generate index 329d77d8..24787076 100755 --- a/bin/generate +++ b/bin/generate @@ -2,7 +2,7 @@ set -eou pipefail -PKG_VERSION=${1:-"0.0.59"} +PKG_VERSION=${1:-"0.0.60"} API_HOST=${2:-"https://api.cloudsmith.io"} # GNU sed is required for the in-place edits below. It is `gsed` on macOS diff --git a/client.go b/client.go index 7b3bc051..78ee0c2c 100644 --- a/client.go +++ b/client.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1288.1 +API version: 1.1341.7 Contact: support@cloudsmith.io */ @@ -41,7 +41,7 @@ var ( queryDescape = strings.NewReplacer("%5B", "[", "%5D", "]") ) -// APIClient manages communication with the Cloudsmith API (v1) API v1.1288.1 +// APIClient manages communication with the Cloudsmith API (v1) API v1.1341.7 // In most cases there should be only one, shared, APIClient. type APIClient struct { cfg *Configuration diff --git a/configuration.go b/configuration.go index 45d200ee..4aebe6d8 100644 --- a/configuration.go +++ b/configuration.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1288.1 +API version: 1.1341.7 Contact: support@cloudsmith.io */ @@ -93,7 +93,7 @@ type Configuration struct { func NewConfiguration() *Configuration { cfg := &Configuration{ DefaultHeader: make(map[string]string), - UserAgent: "OpenAPI-Generator/0.0.59/go", + UserAgent: "OpenAPI-Generator/0.0.60/go", Debug: false, Servers: ServerConfigurations{ { diff --git a/docs/AlpinePackageUpload.md b/docs/AlpinePackageUpload.md index 084da76c..d9ce6ec7 100644 --- a/docs/AlpinePackageUpload.md +++ b/docs/AlpinePackageUpload.md @@ -33,6 +33,7 @@ Name | Type | Description | Notes **IsDeleteable** | Pointer to **bool** | | [optional] [readonly] **IsDownloadable** | Pointer to **bool** | | [optional] [readonly] **IsHidden** | Pointer to **bool** | | [optional] [readonly] +**IsMalwareDetected** | Pointer to **bool** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] [readonly] **IsMoveable** | Pointer to **bool** | | [optional] [readonly] **IsQuarantinable** | Pointer to **bool** | | [optional] [readonly] **IsQuarantined** | Pointer to **bool** | | [optional] [readonly] @@ -89,6 +90,7 @@ Name | Type | Description | Notes **UploaderUrl** | Pointer to **string** | | [optional] [readonly] **Version** | Pointer to **NullableString** | The raw version for this package. | [optional] [readonly] **VersionOrig** | Pointer to **string** | | [optional] [readonly] +**VulnerabilityCounts** | Pointer to [**NullableWebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] **VulnerabilityScanResultsUrl** | Pointer to **string** | | [optional] [readonly] ## Methods @@ -895,6 +897,31 @@ SetIsHidden sets IsHidden field to given value. HasIsHidden returns a boolean if a field has been set. +### GetIsMalwareDetected + +`func (o *AlpinePackageUpload) GetIsMalwareDetected() bool` + +GetIsMalwareDetected returns the IsMalwareDetected field if non-nil, zero value otherwise. + +### GetIsMalwareDetectedOk + +`func (o *AlpinePackageUpload) GetIsMalwareDetectedOk() (*bool, bool)` + +GetIsMalwareDetectedOk returns a tuple with the IsMalwareDetected field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIsMalwareDetected + +`func (o *AlpinePackageUpload) SetIsMalwareDetected(v bool)` + +SetIsMalwareDetected sets IsMalwareDetected field to given value. + +### HasIsMalwareDetected + +`func (o *AlpinePackageUpload) HasIsMalwareDetected() bool` + +HasIsMalwareDetected returns a boolean if a field has been set. + ### GetIsMoveable `func (o *AlpinePackageUpload) GetIsMoveable() bool` @@ -2435,6 +2462,41 @@ SetVersionOrig sets VersionOrig field to given value. HasVersionOrig returns a boolean if a field has been set. +### GetVulnerabilityCounts + +`func (o *AlpinePackageUpload) GetVulnerabilityCounts() WebOSVSeverityCounts` + +GetVulnerabilityCounts returns the VulnerabilityCounts field if non-nil, zero value otherwise. + +### GetVulnerabilityCountsOk + +`func (o *AlpinePackageUpload) GetVulnerabilityCountsOk() (*WebOSVSeverityCounts, bool)` + +GetVulnerabilityCountsOk returns a tuple with the VulnerabilityCounts field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetVulnerabilityCounts + +`func (o *AlpinePackageUpload) SetVulnerabilityCounts(v WebOSVSeverityCounts)` + +SetVulnerabilityCounts sets VulnerabilityCounts field to given value. + +### HasVulnerabilityCounts + +`func (o *AlpinePackageUpload) HasVulnerabilityCounts() bool` + +HasVulnerabilityCounts returns a boolean if a field has been set. + +### SetVulnerabilityCountsNil + +`func (o *AlpinePackageUpload) SetVulnerabilityCountsNil(b bool)` + + SetVulnerabilityCountsNil sets the value for VulnerabilityCounts to be an explicit nil + +### UnsetVulnerabilityCounts +`func (o *AlpinePackageUpload) UnsetVulnerabilityCounts()` + +UnsetVulnerabilityCounts ensures that no value is present for VulnerabilityCounts, not even an explicit nil ### GetVulnerabilityScanResultsUrl `func (o *AlpinePackageUpload) GetVulnerabilityScanResultsUrl() string` diff --git a/docs/AlpinePackageUploadRequest.md b/docs/AlpinePackageUploadRequest.md index 3d434f49..d6f12e55 100644 --- a/docs/AlpinePackageUploadRequest.md +++ b/docs/AlpinePackageUploadRequest.md @@ -5,9 +5,11 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Distribution** | **string** | The distribution to store the package for. | +**IsMalwareDetected** | Pointer to **bool** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] [readonly] **PackageFile** | **string** | The primary file for the package. | **Republish** | Pointer to **bool** | If true, the uploaded package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate. | [optional] **Tags** | Pointer to **NullableString** | A comma-separated values list of tags to add to the package. | [optional] +**VulnerabilityCounts** | Pointer to [**NullableWebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] ## Methods @@ -48,6 +50,31 @@ and a boolean to check if the value has been set. SetDistribution sets Distribution field to given value. +### GetIsMalwareDetected + +`func (o *AlpinePackageUploadRequest) GetIsMalwareDetected() bool` + +GetIsMalwareDetected returns the IsMalwareDetected field if non-nil, zero value otherwise. + +### GetIsMalwareDetectedOk + +`func (o *AlpinePackageUploadRequest) GetIsMalwareDetectedOk() (*bool, bool)` + +GetIsMalwareDetectedOk returns a tuple with the IsMalwareDetected field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIsMalwareDetected + +`func (o *AlpinePackageUploadRequest) SetIsMalwareDetected(v bool)` + +SetIsMalwareDetected sets IsMalwareDetected field to given value. + +### HasIsMalwareDetected + +`func (o *AlpinePackageUploadRequest) HasIsMalwareDetected() bool` + +HasIsMalwareDetected returns a boolean if a field has been set. + ### GetPackageFile `func (o *AlpinePackageUploadRequest) GetPackageFile() string` @@ -128,6 +155,41 @@ HasTags returns a boolean if a field has been set. `func (o *AlpinePackageUploadRequest) UnsetTags()` UnsetTags ensures that no value is present for Tags, not even an explicit nil +### GetVulnerabilityCounts + +`func (o *AlpinePackageUploadRequest) GetVulnerabilityCounts() WebOSVSeverityCounts` + +GetVulnerabilityCounts returns the VulnerabilityCounts field if non-nil, zero value otherwise. + +### GetVulnerabilityCountsOk + +`func (o *AlpinePackageUploadRequest) GetVulnerabilityCountsOk() (*WebOSVSeverityCounts, bool)` + +GetVulnerabilityCountsOk returns a tuple with the VulnerabilityCounts field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetVulnerabilityCounts + +`func (o *AlpinePackageUploadRequest) SetVulnerabilityCounts(v WebOSVSeverityCounts)` + +SetVulnerabilityCounts sets VulnerabilityCounts field to given value. + +### HasVulnerabilityCounts + +`func (o *AlpinePackageUploadRequest) HasVulnerabilityCounts() bool` + +HasVulnerabilityCounts returns a boolean if a field has been set. + +### SetVulnerabilityCountsNil + +`func (o *AlpinePackageUploadRequest) SetVulnerabilityCountsNil(b bool)` + + SetVulnerabilityCountsNil sets the value for VulnerabilityCounts to be an explicit nil + +### UnsetVulnerabilityCounts +`func (o *AlpinePackageUploadRequest) UnsetVulnerabilityCounts()` + +UnsetVulnerabilityCounts ensures that no value is present for VulnerabilityCounts, 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/CargoPackageUpload.md b/docs/CargoPackageUpload.md index 30324c81..53030795 100644 --- a/docs/CargoPackageUpload.md +++ b/docs/CargoPackageUpload.md @@ -33,6 +33,7 @@ Name | Type | Description | Notes **IsDeleteable** | Pointer to **bool** | | [optional] [readonly] **IsDownloadable** | Pointer to **bool** | | [optional] [readonly] **IsHidden** | Pointer to **bool** | | [optional] [readonly] +**IsMalwareDetected** | Pointer to **bool** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] [readonly] **IsMoveable** | Pointer to **bool** | | [optional] [readonly] **IsQuarantinable** | Pointer to **bool** | | [optional] [readonly] **IsQuarantined** | Pointer to **bool** | | [optional] [readonly] @@ -89,6 +90,7 @@ Name | Type | Description | Notes **UploaderUrl** | Pointer to **string** | | [optional] [readonly] **Version** | Pointer to **NullableString** | The raw version for this package. | [optional] [readonly] **VersionOrig** | Pointer to **string** | | [optional] [readonly] +**VulnerabilityCounts** | Pointer to [**NullableWebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] **VulnerabilityScanResultsUrl** | Pointer to **string** | | [optional] [readonly] ## Methods @@ -895,6 +897,31 @@ SetIsHidden sets IsHidden field to given value. HasIsHidden returns a boolean if a field has been set. +### GetIsMalwareDetected + +`func (o *CargoPackageUpload) GetIsMalwareDetected() bool` + +GetIsMalwareDetected returns the IsMalwareDetected field if non-nil, zero value otherwise. + +### GetIsMalwareDetectedOk + +`func (o *CargoPackageUpload) GetIsMalwareDetectedOk() (*bool, bool)` + +GetIsMalwareDetectedOk returns a tuple with the IsMalwareDetected field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIsMalwareDetected + +`func (o *CargoPackageUpload) SetIsMalwareDetected(v bool)` + +SetIsMalwareDetected sets IsMalwareDetected field to given value. + +### HasIsMalwareDetected + +`func (o *CargoPackageUpload) HasIsMalwareDetected() bool` + +HasIsMalwareDetected returns a boolean if a field has been set. + ### GetIsMoveable `func (o *CargoPackageUpload) GetIsMoveable() bool` @@ -2435,6 +2462,41 @@ SetVersionOrig sets VersionOrig field to given value. HasVersionOrig returns a boolean if a field has been set. +### GetVulnerabilityCounts + +`func (o *CargoPackageUpload) GetVulnerabilityCounts() WebOSVSeverityCounts` + +GetVulnerabilityCounts returns the VulnerabilityCounts field if non-nil, zero value otherwise. + +### GetVulnerabilityCountsOk + +`func (o *CargoPackageUpload) GetVulnerabilityCountsOk() (*WebOSVSeverityCounts, bool)` + +GetVulnerabilityCountsOk returns a tuple with the VulnerabilityCounts field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetVulnerabilityCounts + +`func (o *CargoPackageUpload) SetVulnerabilityCounts(v WebOSVSeverityCounts)` + +SetVulnerabilityCounts sets VulnerabilityCounts field to given value. + +### HasVulnerabilityCounts + +`func (o *CargoPackageUpload) HasVulnerabilityCounts() bool` + +HasVulnerabilityCounts returns a boolean if a field has been set. + +### SetVulnerabilityCountsNil + +`func (o *CargoPackageUpload) SetVulnerabilityCountsNil(b bool)` + + SetVulnerabilityCountsNil sets the value for VulnerabilityCounts to be an explicit nil + +### UnsetVulnerabilityCounts +`func (o *CargoPackageUpload) UnsetVulnerabilityCounts()` + +UnsetVulnerabilityCounts ensures that no value is present for VulnerabilityCounts, not even an explicit nil ### GetVulnerabilityScanResultsUrl `func (o *CargoPackageUpload) GetVulnerabilityScanResultsUrl() string` diff --git a/docs/CargoPackageUploadRequest.md b/docs/CargoPackageUploadRequest.md index acb1c6b5..19f37693 100644 --- a/docs/CargoPackageUploadRequest.md +++ b/docs/CargoPackageUploadRequest.md @@ -4,9 +4,11 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**IsMalwareDetected** | Pointer to **bool** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] [readonly] **PackageFile** | **string** | The primary file for the package. | **Republish** | Pointer to **bool** | If true, the uploaded package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate. | [optional] **Tags** | Pointer to **NullableString** | A comma-separated values list of tags to add to the package. | [optional] +**VulnerabilityCounts** | Pointer to [**NullableWebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] ## Methods @@ -27,6 +29,31 @@ NewCargoPackageUploadRequestWithDefaults instantiates a new CargoPackageUploadRe This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set +### GetIsMalwareDetected + +`func (o *CargoPackageUploadRequest) GetIsMalwareDetected() bool` + +GetIsMalwareDetected returns the IsMalwareDetected field if non-nil, zero value otherwise. + +### GetIsMalwareDetectedOk + +`func (o *CargoPackageUploadRequest) GetIsMalwareDetectedOk() (*bool, bool)` + +GetIsMalwareDetectedOk returns a tuple with the IsMalwareDetected field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIsMalwareDetected + +`func (o *CargoPackageUploadRequest) SetIsMalwareDetected(v bool)` + +SetIsMalwareDetected sets IsMalwareDetected field to given value. + +### HasIsMalwareDetected + +`func (o *CargoPackageUploadRequest) HasIsMalwareDetected() bool` + +HasIsMalwareDetected returns a boolean if a field has been set. + ### GetPackageFile `func (o *CargoPackageUploadRequest) GetPackageFile() string` @@ -107,6 +134,41 @@ HasTags returns a boolean if a field has been set. `func (o *CargoPackageUploadRequest) UnsetTags()` UnsetTags ensures that no value is present for Tags, not even an explicit nil +### GetVulnerabilityCounts + +`func (o *CargoPackageUploadRequest) GetVulnerabilityCounts() WebOSVSeverityCounts` + +GetVulnerabilityCounts returns the VulnerabilityCounts field if non-nil, zero value otherwise. + +### GetVulnerabilityCountsOk + +`func (o *CargoPackageUploadRequest) GetVulnerabilityCountsOk() (*WebOSVSeverityCounts, bool)` + +GetVulnerabilityCountsOk returns a tuple with the VulnerabilityCounts field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetVulnerabilityCounts + +`func (o *CargoPackageUploadRequest) SetVulnerabilityCounts(v WebOSVSeverityCounts)` + +SetVulnerabilityCounts sets VulnerabilityCounts field to given value. + +### HasVulnerabilityCounts + +`func (o *CargoPackageUploadRequest) HasVulnerabilityCounts() bool` + +HasVulnerabilityCounts returns a boolean if a field has been set. + +### SetVulnerabilityCountsNil + +`func (o *CargoPackageUploadRequest) SetVulnerabilityCountsNil(b bool)` + + SetVulnerabilityCountsNil sets the value for VulnerabilityCounts to be an explicit nil + +### UnsetVulnerabilityCounts +`func (o *CargoPackageUploadRequest) UnsetVulnerabilityCounts()` + +UnsetVulnerabilityCounts ensures that no value is present for VulnerabilityCounts, 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/CocoapodsPackageUpload.md b/docs/CocoapodsPackageUpload.md index 468882b0..cfbecb46 100644 --- a/docs/CocoapodsPackageUpload.md +++ b/docs/CocoapodsPackageUpload.md @@ -33,6 +33,7 @@ Name | Type | Description | Notes **IsDeleteable** | Pointer to **bool** | | [optional] [readonly] **IsDownloadable** | Pointer to **bool** | | [optional] [readonly] **IsHidden** | Pointer to **bool** | | [optional] [readonly] +**IsMalwareDetected** | Pointer to **bool** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] [readonly] **IsMoveable** | Pointer to **bool** | | [optional] [readonly] **IsQuarantinable** | Pointer to **bool** | | [optional] [readonly] **IsQuarantined** | Pointer to **bool** | | [optional] [readonly] @@ -89,6 +90,7 @@ Name | Type | Description | Notes **UploaderUrl** | Pointer to **string** | | [optional] [readonly] **Version** | Pointer to **NullableString** | The raw version for this package. | [optional] [readonly] **VersionOrig** | Pointer to **string** | | [optional] [readonly] +**VulnerabilityCounts** | Pointer to [**NullableWebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] **VulnerabilityScanResultsUrl** | Pointer to **string** | | [optional] [readonly] ## Methods @@ -895,6 +897,31 @@ SetIsHidden sets IsHidden field to given value. HasIsHidden returns a boolean if a field has been set. +### GetIsMalwareDetected + +`func (o *CocoapodsPackageUpload) GetIsMalwareDetected() bool` + +GetIsMalwareDetected returns the IsMalwareDetected field if non-nil, zero value otherwise. + +### GetIsMalwareDetectedOk + +`func (o *CocoapodsPackageUpload) GetIsMalwareDetectedOk() (*bool, bool)` + +GetIsMalwareDetectedOk returns a tuple with the IsMalwareDetected field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIsMalwareDetected + +`func (o *CocoapodsPackageUpload) SetIsMalwareDetected(v bool)` + +SetIsMalwareDetected sets IsMalwareDetected field to given value. + +### HasIsMalwareDetected + +`func (o *CocoapodsPackageUpload) HasIsMalwareDetected() bool` + +HasIsMalwareDetected returns a boolean if a field has been set. + ### GetIsMoveable `func (o *CocoapodsPackageUpload) GetIsMoveable() bool` @@ -2435,6 +2462,41 @@ SetVersionOrig sets VersionOrig field to given value. HasVersionOrig returns a boolean if a field has been set. +### GetVulnerabilityCounts + +`func (o *CocoapodsPackageUpload) GetVulnerabilityCounts() WebOSVSeverityCounts` + +GetVulnerabilityCounts returns the VulnerabilityCounts field if non-nil, zero value otherwise. + +### GetVulnerabilityCountsOk + +`func (o *CocoapodsPackageUpload) GetVulnerabilityCountsOk() (*WebOSVSeverityCounts, bool)` + +GetVulnerabilityCountsOk returns a tuple with the VulnerabilityCounts field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetVulnerabilityCounts + +`func (o *CocoapodsPackageUpload) SetVulnerabilityCounts(v WebOSVSeverityCounts)` + +SetVulnerabilityCounts sets VulnerabilityCounts field to given value. + +### HasVulnerabilityCounts + +`func (o *CocoapodsPackageUpload) HasVulnerabilityCounts() bool` + +HasVulnerabilityCounts returns a boolean if a field has been set. + +### SetVulnerabilityCountsNil + +`func (o *CocoapodsPackageUpload) SetVulnerabilityCountsNil(b bool)` + + SetVulnerabilityCountsNil sets the value for VulnerabilityCounts to be an explicit nil + +### UnsetVulnerabilityCounts +`func (o *CocoapodsPackageUpload) UnsetVulnerabilityCounts()` + +UnsetVulnerabilityCounts ensures that no value is present for VulnerabilityCounts, not even an explicit nil ### GetVulnerabilityScanResultsUrl `func (o *CocoapodsPackageUpload) GetVulnerabilityScanResultsUrl() string` diff --git a/docs/CocoapodsPackageUploadRequest.md b/docs/CocoapodsPackageUploadRequest.md index 113e8d1c..e6c54590 100644 --- a/docs/CocoapodsPackageUploadRequest.md +++ b/docs/CocoapodsPackageUploadRequest.md @@ -4,9 +4,11 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**IsMalwareDetected** | Pointer to **bool** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] [readonly] **PackageFile** | **string** | The primary file for the package. | **Republish** | Pointer to **bool** | If true, the uploaded package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate. | [optional] **Tags** | Pointer to **NullableString** | A comma-separated values list of tags to add to the package. | [optional] +**VulnerabilityCounts** | Pointer to [**NullableWebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] ## Methods @@ -27,6 +29,31 @@ NewCocoapodsPackageUploadRequestWithDefaults instantiates a new CocoapodsPackage This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set +### GetIsMalwareDetected + +`func (o *CocoapodsPackageUploadRequest) GetIsMalwareDetected() bool` + +GetIsMalwareDetected returns the IsMalwareDetected field if non-nil, zero value otherwise. + +### GetIsMalwareDetectedOk + +`func (o *CocoapodsPackageUploadRequest) GetIsMalwareDetectedOk() (*bool, bool)` + +GetIsMalwareDetectedOk returns a tuple with the IsMalwareDetected field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIsMalwareDetected + +`func (o *CocoapodsPackageUploadRequest) SetIsMalwareDetected(v bool)` + +SetIsMalwareDetected sets IsMalwareDetected field to given value. + +### HasIsMalwareDetected + +`func (o *CocoapodsPackageUploadRequest) HasIsMalwareDetected() bool` + +HasIsMalwareDetected returns a boolean if a field has been set. + ### GetPackageFile `func (o *CocoapodsPackageUploadRequest) GetPackageFile() string` @@ -107,6 +134,41 @@ HasTags returns a boolean if a field has been set. `func (o *CocoapodsPackageUploadRequest) UnsetTags()` UnsetTags ensures that no value is present for Tags, not even an explicit nil +### GetVulnerabilityCounts + +`func (o *CocoapodsPackageUploadRequest) GetVulnerabilityCounts() WebOSVSeverityCounts` + +GetVulnerabilityCounts returns the VulnerabilityCounts field if non-nil, zero value otherwise. + +### GetVulnerabilityCountsOk + +`func (o *CocoapodsPackageUploadRequest) GetVulnerabilityCountsOk() (*WebOSVSeverityCounts, bool)` + +GetVulnerabilityCountsOk returns a tuple with the VulnerabilityCounts field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetVulnerabilityCounts + +`func (o *CocoapodsPackageUploadRequest) SetVulnerabilityCounts(v WebOSVSeverityCounts)` + +SetVulnerabilityCounts sets VulnerabilityCounts field to given value. + +### HasVulnerabilityCounts + +`func (o *CocoapodsPackageUploadRequest) HasVulnerabilityCounts() bool` + +HasVulnerabilityCounts returns a boolean if a field has been set. + +### SetVulnerabilityCountsNil + +`func (o *CocoapodsPackageUploadRequest) SetVulnerabilityCountsNil(b bool)` + + SetVulnerabilityCountsNil sets the value for VulnerabilityCounts to be an explicit nil + +### UnsetVulnerabilityCounts +`func (o *CocoapodsPackageUploadRequest) UnsetVulnerabilityCounts()` + +UnsetVulnerabilityCounts ensures that no value is present for VulnerabilityCounts, 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/ComposerPackageUpload.md b/docs/ComposerPackageUpload.md index dce10fe2..1e9d9806 100644 --- a/docs/ComposerPackageUpload.md +++ b/docs/ComposerPackageUpload.md @@ -33,6 +33,7 @@ Name | Type | Description | Notes **IsDeleteable** | Pointer to **bool** | | [optional] [readonly] **IsDownloadable** | Pointer to **bool** | | [optional] [readonly] **IsHidden** | Pointer to **bool** | | [optional] [readonly] +**IsMalwareDetected** | Pointer to **bool** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] [readonly] **IsMoveable** | Pointer to **bool** | | [optional] [readonly] **IsQuarantinable** | Pointer to **bool** | | [optional] [readonly] **IsQuarantined** | Pointer to **bool** | | [optional] [readonly] @@ -89,6 +90,7 @@ Name | Type | Description | Notes **UploaderUrl** | Pointer to **string** | | [optional] [readonly] **Version** | Pointer to **NullableString** | The raw version for this package. | [optional] **VersionOrig** | Pointer to **string** | | [optional] [readonly] +**VulnerabilityCounts** | Pointer to [**NullableWebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] **VulnerabilityScanResultsUrl** | Pointer to **string** | | [optional] [readonly] ## Methods @@ -895,6 +897,31 @@ SetIsHidden sets IsHidden field to given value. HasIsHidden returns a boolean if a field has been set. +### GetIsMalwareDetected + +`func (o *ComposerPackageUpload) GetIsMalwareDetected() bool` + +GetIsMalwareDetected returns the IsMalwareDetected field if non-nil, zero value otherwise. + +### GetIsMalwareDetectedOk + +`func (o *ComposerPackageUpload) GetIsMalwareDetectedOk() (*bool, bool)` + +GetIsMalwareDetectedOk returns a tuple with the IsMalwareDetected field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIsMalwareDetected + +`func (o *ComposerPackageUpload) SetIsMalwareDetected(v bool)` + +SetIsMalwareDetected sets IsMalwareDetected field to given value. + +### HasIsMalwareDetected + +`func (o *ComposerPackageUpload) HasIsMalwareDetected() bool` + +HasIsMalwareDetected returns a boolean if a field has been set. + ### GetIsMoveable `func (o *ComposerPackageUpload) GetIsMoveable() bool` @@ -2435,6 +2462,41 @@ SetVersionOrig sets VersionOrig field to given value. HasVersionOrig returns a boolean if a field has been set. +### GetVulnerabilityCounts + +`func (o *ComposerPackageUpload) GetVulnerabilityCounts() WebOSVSeverityCounts` + +GetVulnerabilityCounts returns the VulnerabilityCounts field if non-nil, zero value otherwise. + +### GetVulnerabilityCountsOk + +`func (o *ComposerPackageUpload) GetVulnerabilityCountsOk() (*WebOSVSeverityCounts, bool)` + +GetVulnerabilityCountsOk returns a tuple with the VulnerabilityCounts field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetVulnerabilityCounts + +`func (o *ComposerPackageUpload) SetVulnerabilityCounts(v WebOSVSeverityCounts)` + +SetVulnerabilityCounts sets VulnerabilityCounts field to given value. + +### HasVulnerabilityCounts + +`func (o *ComposerPackageUpload) HasVulnerabilityCounts() bool` + +HasVulnerabilityCounts returns a boolean if a field has been set. + +### SetVulnerabilityCountsNil + +`func (o *ComposerPackageUpload) SetVulnerabilityCountsNil(b bool)` + + SetVulnerabilityCountsNil sets the value for VulnerabilityCounts to be an explicit nil + +### UnsetVulnerabilityCounts +`func (o *ComposerPackageUpload) UnsetVulnerabilityCounts()` + +UnsetVulnerabilityCounts ensures that no value is present for VulnerabilityCounts, not even an explicit nil ### GetVulnerabilityScanResultsUrl `func (o *ComposerPackageUpload) GetVulnerabilityScanResultsUrl() string` diff --git a/docs/ComposerPackageUploadRequest.md b/docs/ComposerPackageUploadRequest.md index 11ad6986..dbce1b9e 100644 --- a/docs/ComposerPackageUploadRequest.md +++ b/docs/ComposerPackageUploadRequest.md @@ -4,10 +4,12 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**IsMalwareDetected** | Pointer to **bool** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] [readonly] **PackageFile** | **string** | The primary file for the package. | **Republish** | Pointer to **bool** | If true, the uploaded package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate. | [optional] **Tags** | Pointer to **NullableString** | A comma-separated values list of tags to add to the package. | [optional] **Version** | Pointer to **NullableString** | The raw version for this package. | [optional] +**VulnerabilityCounts** | Pointer to [**NullableWebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] ## Methods @@ -28,6 +30,31 @@ NewComposerPackageUploadRequestWithDefaults instantiates a new ComposerPackageUp This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set +### GetIsMalwareDetected + +`func (o *ComposerPackageUploadRequest) GetIsMalwareDetected() bool` + +GetIsMalwareDetected returns the IsMalwareDetected field if non-nil, zero value otherwise. + +### GetIsMalwareDetectedOk + +`func (o *ComposerPackageUploadRequest) GetIsMalwareDetectedOk() (*bool, bool)` + +GetIsMalwareDetectedOk returns a tuple with the IsMalwareDetected field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIsMalwareDetected + +`func (o *ComposerPackageUploadRequest) SetIsMalwareDetected(v bool)` + +SetIsMalwareDetected sets IsMalwareDetected field to given value. + +### HasIsMalwareDetected + +`func (o *ComposerPackageUploadRequest) HasIsMalwareDetected() bool` + +HasIsMalwareDetected returns a boolean if a field has been set. + ### GetPackageFile `func (o *ComposerPackageUploadRequest) GetPackageFile() string` @@ -143,6 +170,41 @@ HasVersion returns a boolean if a field has been set. `func (o *ComposerPackageUploadRequest) UnsetVersion()` UnsetVersion ensures that no value is present for Version, not even an explicit nil +### GetVulnerabilityCounts + +`func (o *ComposerPackageUploadRequest) GetVulnerabilityCounts() WebOSVSeverityCounts` + +GetVulnerabilityCounts returns the VulnerabilityCounts field if non-nil, zero value otherwise. + +### GetVulnerabilityCountsOk + +`func (o *ComposerPackageUploadRequest) GetVulnerabilityCountsOk() (*WebOSVSeverityCounts, bool)` + +GetVulnerabilityCountsOk returns a tuple with the VulnerabilityCounts field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetVulnerabilityCounts + +`func (o *ComposerPackageUploadRequest) SetVulnerabilityCounts(v WebOSVSeverityCounts)` + +SetVulnerabilityCounts sets VulnerabilityCounts field to given value. + +### HasVulnerabilityCounts + +`func (o *ComposerPackageUploadRequest) HasVulnerabilityCounts() bool` + +HasVulnerabilityCounts returns a boolean if a field has been set. + +### SetVulnerabilityCountsNil + +`func (o *ComposerPackageUploadRequest) SetVulnerabilityCountsNil(b bool)` + + SetVulnerabilityCountsNil sets the value for VulnerabilityCounts to be an explicit nil + +### UnsetVulnerabilityCounts +`func (o *ComposerPackageUploadRequest) UnsetVulnerabilityCounts()` + +UnsetVulnerabilityCounts ensures that no value is present for VulnerabilityCounts, 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/ConanPackageUpload.md b/docs/ConanPackageUpload.md index f55ff0fe..bbb88d87 100644 --- a/docs/ConanPackageUpload.md +++ b/docs/ConanPackageUpload.md @@ -35,6 +35,7 @@ Name | Type | Description | Notes **IsDeleteable** | Pointer to **bool** | | [optional] [readonly] **IsDownloadable** | Pointer to **bool** | | [optional] [readonly] **IsHidden** | Pointer to **bool** | | [optional] [readonly] +**IsMalwareDetected** | Pointer to **bool** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] [readonly] **IsMoveable** | Pointer to **bool** | | [optional] [readonly] **IsQuarantinable** | Pointer to **bool** | | [optional] [readonly] **IsQuarantined** | Pointer to **bool** | | [optional] [readonly] @@ -91,6 +92,7 @@ Name | Type | Description | Notes **UploaderUrl** | Pointer to **string** | | [optional] [readonly] **Version** | Pointer to **NullableString** | The raw version for this package. | [optional] **VersionOrig** | Pointer to **string** | | [optional] [readonly] +**VulnerabilityCounts** | Pointer to [**NullableWebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] **VulnerabilityScanResultsUrl** | Pointer to **string** | | [optional] [readonly] ## Methods @@ -967,6 +969,31 @@ SetIsHidden sets IsHidden field to given value. HasIsHidden returns a boolean if a field has been set. +### GetIsMalwareDetected + +`func (o *ConanPackageUpload) GetIsMalwareDetected() bool` + +GetIsMalwareDetected returns the IsMalwareDetected field if non-nil, zero value otherwise. + +### GetIsMalwareDetectedOk + +`func (o *ConanPackageUpload) GetIsMalwareDetectedOk() (*bool, bool)` + +GetIsMalwareDetectedOk returns a tuple with the IsMalwareDetected field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIsMalwareDetected + +`func (o *ConanPackageUpload) SetIsMalwareDetected(v bool)` + +SetIsMalwareDetected sets IsMalwareDetected field to given value. + +### HasIsMalwareDetected + +`func (o *ConanPackageUpload) HasIsMalwareDetected() bool` + +HasIsMalwareDetected returns a boolean if a field has been set. + ### GetIsMoveable `func (o *ConanPackageUpload) GetIsMoveable() bool` @@ -2507,6 +2534,41 @@ SetVersionOrig sets VersionOrig field to given value. HasVersionOrig returns a boolean if a field has been set. +### GetVulnerabilityCounts + +`func (o *ConanPackageUpload) GetVulnerabilityCounts() WebOSVSeverityCounts` + +GetVulnerabilityCounts returns the VulnerabilityCounts field if non-nil, zero value otherwise. + +### GetVulnerabilityCountsOk + +`func (o *ConanPackageUpload) GetVulnerabilityCountsOk() (*WebOSVSeverityCounts, bool)` + +GetVulnerabilityCountsOk returns a tuple with the VulnerabilityCounts field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetVulnerabilityCounts + +`func (o *ConanPackageUpload) SetVulnerabilityCounts(v WebOSVSeverityCounts)` + +SetVulnerabilityCounts sets VulnerabilityCounts field to given value. + +### HasVulnerabilityCounts + +`func (o *ConanPackageUpload) HasVulnerabilityCounts() bool` + +HasVulnerabilityCounts returns a boolean if a field has been set. + +### SetVulnerabilityCountsNil + +`func (o *ConanPackageUpload) SetVulnerabilityCountsNil(b bool)` + + SetVulnerabilityCountsNil sets the value for VulnerabilityCounts to be an explicit nil + +### UnsetVulnerabilityCounts +`func (o *ConanPackageUpload) UnsetVulnerabilityCounts()` + +UnsetVulnerabilityCounts ensures that no value is present for VulnerabilityCounts, not even an explicit nil ### GetVulnerabilityScanResultsUrl `func (o *ConanPackageUpload) GetVulnerabilityScanResultsUrl() string` diff --git a/docs/ConanPackageUploadRequest.md b/docs/ConanPackageUploadRequest.md index 24d697df..72f7b610 100644 --- a/docs/ConanPackageUploadRequest.md +++ b/docs/ConanPackageUploadRequest.md @@ -7,6 +7,7 @@ Name | Type | Description | Notes **ConanChannel** | Pointer to **NullableString** | Conan channel. | [optional] **ConanPrefix** | Pointer to **NullableString** | Conan prefix (User). | [optional] **InfoFile** | **string** | The info file is an python file containing the package metadata. | +**IsMalwareDetected** | Pointer to **bool** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] [readonly] **ManifestFile** | **string** | The info file is an python file containing the package metadata. | **MetadataFile** | **string** | The conan file is an python file containing the package metadata. | **Name** | Pointer to **NullableString** | The name of this package. | [optional] @@ -14,6 +15,7 @@ Name | Type | Description | Notes **Republish** | Pointer to **bool** | If true, the uploaded package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate. | [optional] **Tags** | Pointer to **NullableString** | A comma-separated values list of tags to add to the package. | [optional] **Version** | Pointer to **NullableString** | The raw version for this package. | [optional] +**VulnerabilityCounts** | Pointer to [**NullableWebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] ## Methods @@ -124,6 +126,31 @@ and a boolean to check if the value has been set. SetInfoFile sets InfoFile field to given value. +### GetIsMalwareDetected + +`func (o *ConanPackageUploadRequest) GetIsMalwareDetected() bool` + +GetIsMalwareDetected returns the IsMalwareDetected field if non-nil, zero value otherwise. + +### GetIsMalwareDetectedOk + +`func (o *ConanPackageUploadRequest) GetIsMalwareDetectedOk() (*bool, bool)` + +GetIsMalwareDetectedOk returns a tuple with the IsMalwareDetected field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIsMalwareDetected + +`func (o *ConanPackageUploadRequest) SetIsMalwareDetected(v bool)` + +SetIsMalwareDetected sets IsMalwareDetected field to given value. + +### HasIsMalwareDetected + +`func (o *ConanPackageUploadRequest) HasIsMalwareDetected() bool` + +HasIsMalwareDetected returns a boolean if a field has been set. + ### GetManifestFile `func (o *ConanPackageUploadRequest) GetManifestFile() string` @@ -314,6 +341,41 @@ HasVersion returns a boolean if a field has been set. `func (o *ConanPackageUploadRequest) UnsetVersion()` UnsetVersion ensures that no value is present for Version, not even an explicit nil +### GetVulnerabilityCounts + +`func (o *ConanPackageUploadRequest) GetVulnerabilityCounts() WebOSVSeverityCounts` + +GetVulnerabilityCounts returns the VulnerabilityCounts field if non-nil, zero value otherwise. + +### GetVulnerabilityCountsOk + +`func (o *ConanPackageUploadRequest) GetVulnerabilityCountsOk() (*WebOSVSeverityCounts, bool)` + +GetVulnerabilityCountsOk returns a tuple with the VulnerabilityCounts field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetVulnerabilityCounts + +`func (o *ConanPackageUploadRequest) SetVulnerabilityCounts(v WebOSVSeverityCounts)` + +SetVulnerabilityCounts sets VulnerabilityCounts field to given value. + +### HasVulnerabilityCounts + +`func (o *ConanPackageUploadRequest) HasVulnerabilityCounts() bool` + +HasVulnerabilityCounts returns a boolean if a field has been set. + +### SetVulnerabilityCountsNil + +`func (o *ConanPackageUploadRequest) SetVulnerabilityCountsNil(b bool)` + + SetVulnerabilityCountsNil sets the value for VulnerabilityCounts to be an explicit nil + +### UnsetVulnerabilityCounts +`func (o *ConanPackageUploadRequest) UnsetVulnerabilityCounts()` + +UnsetVulnerabilityCounts ensures that no value is present for VulnerabilityCounts, 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/CondaPackageUpload.md b/docs/CondaPackageUpload.md index 6b8b93a6..23ee7153 100644 --- a/docs/CondaPackageUpload.md +++ b/docs/CondaPackageUpload.md @@ -33,6 +33,7 @@ Name | Type | Description | Notes **IsDeleteable** | Pointer to **bool** | | [optional] [readonly] **IsDownloadable** | Pointer to **bool** | | [optional] [readonly] **IsHidden** | Pointer to **bool** | | [optional] [readonly] +**IsMalwareDetected** | Pointer to **bool** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] [readonly] **IsMoveable** | Pointer to **bool** | | [optional] [readonly] **IsQuarantinable** | Pointer to **bool** | | [optional] [readonly] **IsQuarantined** | Pointer to **bool** | | [optional] [readonly] @@ -89,6 +90,7 @@ Name | Type | Description | Notes **UploaderUrl** | Pointer to **string** | | [optional] [readonly] **Version** | Pointer to **NullableString** | The raw version for this package. | [optional] [readonly] **VersionOrig** | Pointer to **string** | | [optional] [readonly] +**VulnerabilityCounts** | Pointer to [**NullableWebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] **VulnerabilityScanResultsUrl** | Pointer to **string** | | [optional] [readonly] ## Methods @@ -895,6 +897,31 @@ SetIsHidden sets IsHidden field to given value. HasIsHidden returns a boolean if a field has been set. +### GetIsMalwareDetected + +`func (o *CondaPackageUpload) GetIsMalwareDetected() bool` + +GetIsMalwareDetected returns the IsMalwareDetected field if non-nil, zero value otherwise. + +### GetIsMalwareDetectedOk + +`func (o *CondaPackageUpload) GetIsMalwareDetectedOk() (*bool, bool)` + +GetIsMalwareDetectedOk returns a tuple with the IsMalwareDetected field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIsMalwareDetected + +`func (o *CondaPackageUpload) SetIsMalwareDetected(v bool)` + +SetIsMalwareDetected sets IsMalwareDetected field to given value. + +### HasIsMalwareDetected + +`func (o *CondaPackageUpload) HasIsMalwareDetected() bool` + +HasIsMalwareDetected returns a boolean if a field has been set. + ### GetIsMoveable `func (o *CondaPackageUpload) GetIsMoveable() bool` @@ -2435,6 +2462,41 @@ SetVersionOrig sets VersionOrig field to given value. HasVersionOrig returns a boolean if a field has been set. +### GetVulnerabilityCounts + +`func (o *CondaPackageUpload) GetVulnerabilityCounts() WebOSVSeverityCounts` + +GetVulnerabilityCounts returns the VulnerabilityCounts field if non-nil, zero value otherwise. + +### GetVulnerabilityCountsOk + +`func (o *CondaPackageUpload) GetVulnerabilityCountsOk() (*WebOSVSeverityCounts, bool)` + +GetVulnerabilityCountsOk returns a tuple with the VulnerabilityCounts field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetVulnerabilityCounts + +`func (o *CondaPackageUpload) SetVulnerabilityCounts(v WebOSVSeverityCounts)` + +SetVulnerabilityCounts sets VulnerabilityCounts field to given value. + +### HasVulnerabilityCounts + +`func (o *CondaPackageUpload) HasVulnerabilityCounts() bool` + +HasVulnerabilityCounts returns a boolean if a field has been set. + +### SetVulnerabilityCountsNil + +`func (o *CondaPackageUpload) SetVulnerabilityCountsNil(b bool)` + + SetVulnerabilityCountsNil sets the value for VulnerabilityCounts to be an explicit nil + +### UnsetVulnerabilityCounts +`func (o *CondaPackageUpload) UnsetVulnerabilityCounts()` + +UnsetVulnerabilityCounts ensures that no value is present for VulnerabilityCounts, not even an explicit nil ### GetVulnerabilityScanResultsUrl `func (o *CondaPackageUpload) GetVulnerabilityScanResultsUrl() string` diff --git a/docs/CondaPackageUploadRequest.md b/docs/CondaPackageUploadRequest.md index ea420841..e71b3a2f 100644 --- a/docs/CondaPackageUploadRequest.md +++ b/docs/CondaPackageUploadRequest.md @@ -4,9 +4,11 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**IsMalwareDetected** | Pointer to **bool** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] [readonly] **PackageFile** | **string** | The primary file for the package. | **Republish** | Pointer to **bool** | If true, the uploaded package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate. | [optional] **Tags** | Pointer to **NullableString** | A comma-separated values list of tags to add to the package. | [optional] +**VulnerabilityCounts** | Pointer to [**NullableWebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] ## Methods @@ -27,6 +29,31 @@ NewCondaPackageUploadRequestWithDefaults instantiates a new CondaPackageUploadRe This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set +### GetIsMalwareDetected + +`func (o *CondaPackageUploadRequest) GetIsMalwareDetected() bool` + +GetIsMalwareDetected returns the IsMalwareDetected field if non-nil, zero value otherwise. + +### GetIsMalwareDetectedOk + +`func (o *CondaPackageUploadRequest) GetIsMalwareDetectedOk() (*bool, bool)` + +GetIsMalwareDetectedOk returns a tuple with the IsMalwareDetected field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIsMalwareDetected + +`func (o *CondaPackageUploadRequest) SetIsMalwareDetected(v bool)` + +SetIsMalwareDetected sets IsMalwareDetected field to given value. + +### HasIsMalwareDetected + +`func (o *CondaPackageUploadRequest) HasIsMalwareDetected() bool` + +HasIsMalwareDetected returns a boolean if a field has been set. + ### GetPackageFile `func (o *CondaPackageUploadRequest) GetPackageFile() string` @@ -107,6 +134,41 @@ HasTags returns a boolean if a field has been set. `func (o *CondaPackageUploadRequest) UnsetTags()` UnsetTags ensures that no value is present for Tags, not even an explicit nil +### GetVulnerabilityCounts + +`func (o *CondaPackageUploadRequest) GetVulnerabilityCounts() WebOSVSeverityCounts` + +GetVulnerabilityCounts returns the VulnerabilityCounts field if non-nil, zero value otherwise. + +### GetVulnerabilityCountsOk + +`func (o *CondaPackageUploadRequest) GetVulnerabilityCountsOk() (*WebOSVSeverityCounts, bool)` + +GetVulnerabilityCountsOk returns a tuple with the VulnerabilityCounts field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetVulnerabilityCounts + +`func (o *CondaPackageUploadRequest) SetVulnerabilityCounts(v WebOSVSeverityCounts)` + +SetVulnerabilityCounts sets VulnerabilityCounts field to given value. + +### HasVulnerabilityCounts + +`func (o *CondaPackageUploadRequest) HasVulnerabilityCounts() bool` + +HasVulnerabilityCounts returns a boolean if a field has been set. + +### SetVulnerabilityCountsNil + +`func (o *CondaPackageUploadRequest) SetVulnerabilityCountsNil(b bool)` + + SetVulnerabilityCountsNil sets the value for VulnerabilityCounts to be an explicit nil + +### UnsetVulnerabilityCounts +`func (o *CondaPackageUploadRequest) UnsetVulnerabilityCounts()` + +UnsetVulnerabilityCounts ensures that no value is present for VulnerabilityCounts, 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/CranPackageUpload.md b/docs/CranPackageUpload.md index f4661ec9..832d55e7 100644 --- a/docs/CranPackageUpload.md +++ b/docs/CranPackageUpload.md @@ -33,6 +33,7 @@ Name | Type | Description | Notes **IsDeleteable** | Pointer to **bool** | | [optional] [readonly] **IsDownloadable** | Pointer to **bool** | | [optional] [readonly] **IsHidden** | Pointer to **bool** | | [optional] [readonly] +**IsMalwareDetected** | Pointer to **bool** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] [readonly] **IsMoveable** | Pointer to **bool** | | [optional] [readonly] **IsQuarantinable** | Pointer to **bool** | | [optional] [readonly] **IsQuarantined** | Pointer to **bool** | | [optional] [readonly] @@ -90,6 +91,7 @@ Name | Type | Description | Notes **UploaderUrl** | Pointer to **string** | | [optional] [readonly] **Version** | Pointer to **NullableString** | The raw version for this package. | [optional] [readonly] **VersionOrig** | Pointer to **string** | | [optional] [readonly] +**VulnerabilityCounts** | Pointer to [**NullableWebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] **VulnerabilityScanResultsUrl** | Pointer to **string** | | [optional] [readonly] ## Methods @@ -896,6 +898,31 @@ SetIsHidden sets IsHidden field to given value. HasIsHidden returns a boolean if a field has been set. +### GetIsMalwareDetected + +`func (o *CranPackageUpload) GetIsMalwareDetected() bool` + +GetIsMalwareDetected returns the IsMalwareDetected field if non-nil, zero value otherwise. + +### GetIsMalwareDetectedOk + +`func (o *CranPackageUpload) GetIsMalwareDetectedOk() (*bool, bool)` + +GetIsMalwareDetectedOk returns a tuple with the IsMalwareDetected field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIsMalwareDetected + +`func (o *CranPackageUpload) SetIsMalwareDetected(v bool)` + +SetIsMalwareDetected sets IsMalwareDetected field to given value. + +### HasIsMalwareDetected + +`func (o *CranPackageUpload) HasIsMalwareDetected() bool` + +HasIsMalwareDetected returns a boolean if a field has been set. + ### GetIsMoveable `func (o *CranPackageUpload) GetIsMoveable() bool` @@ -2471,6 +2498,41 @@ SetVersionOrig sets VersionOrig field to given value. HasVersionOrig returns a boolean if a field has been set. +### GetVulnerabilityCounts + +`func (o *CranPackageUpload) GetVulnerabilityCounts() WebOSVSeverityCounts` + +GetVulnerabilityCounts returns the VulnerabilityCounts field if non-nil, zero value otherwise. + +### GetVulnerabilityCountsOk + +`func (o *CranPackageUpload) GetVulnerabilityCountsOk() (*WebOSVSeverityCounts, bool)` + +GetVulnerabilityCountsOk returns a tuple with the VulnerabilityCounts field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetVulnerabilityCounts + +`func (o *CranPackageUpload) SetVulnerabilityCounts(v WebOSVSeverityCounts)` + +SetVulnerabilityCounts sets VulnerabilityCounts field to given value. + +### HasVulnerabilityCounts + +`func (o *CranPackageUpload) HasVulnerabilityCounts() bool` + +HasVulnerabilityCounts returns a boolean if a field has been set. + +### SetVulnerabilityCountsNil + +`func (o *CranPackageUpload) SetVulnerabilityCountsNil(b bool)` + + SetVulnerabilityCountsNil sets the value for VulnerabilityCounts to be an explicit nil + +### UnsetVulnerabilityCounts +`func (o *CranPackageUpload) UnsetVulnerabilityCounts()` + +UnsetVulnerabilityCounts ensures that no value is present for VulnerabilityCounts, not even an explicit nil ### GetVulnerabilityScanResultsUrl `func (o *CranPackageUpload) GetVulnerabilityScanResultsUrl() string` diff --git a/docs/CranPackageUploadRequest.md b/docs/CranPackageUploadRequest.md index b38658b2..c2691f2b 100644 --- a/docs/CranPackageUploadRequest.md +++ b/docs/CranPackageUploadRequest.md @@ -5,10 +5,12 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Architecture** | Pointer to **string** | Binary package uploads for macOS should specify the architecture they were built for. | [optional] +**IsMalwareDetected** | Pointer to **bool** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] [readonly] **PackageFile** | **string** | The primary file for the package. | **RVersion** | Pointer to **NullableString** | Binary package uploads should specify the version of R they were built for. | [optional] **Republish** | Pointer to **bool** | If true, the uploaded package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate. | [optional] **Tags** | Pointer to **NullableString** | A comma-separated values list of tags to add to the package. | [optional] +**VulnerabilityCounts** | Pointer to [**NullableWebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] ## Methods @@ -54,6 +56,31 @@ SetArchitecture sets Architecture field to given value. HasArchitecture returns a boolean if a field has been set. +### GetIsMalwareDetected + +`func (o *CranPackageUploadRequest) GetIsMalwareDetected() bool` + +GetIsMalwareDetected returns the IsMalwareDetected field if non-nil, zero value otherwise. + +### GetIsMalwareDetectedOk + +`func (o *CranPackageUploadRequest) GetIsMalwareDetectedOk() (*bool, bool)` + +GetIsMalwareDetectedOk returns a tuple with the IsMalwareDetected field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIsMalwareDetected + +`func (o *CranPackageUploadRequest) SetIsMalwareDetected(v bool)` + +SetIsMalwareDetected sets IsMalwareDetected field to given value. + +### HasIsMalwareDetected + +`func (o *CranPackageUploadRequest) HasIsMalwareDetected() bool` + +HasIsMalwareDetected returns a boolean if a field has been set. + ### GetPackageFile `func (o *CranPackageUploadRequest) GetPackageFile() string` @@ -169,6 +196,41 @@ HasTags returns a boolean if a field has been set. `func (o *CranPackageUploadRequest) UnsetTags()` UnsetTags ensures that no value is present for Tags, not even an explicit nil +### GetVulnerabilityCounts + +`func (o *CranPackageUploadRequest) GetVulnerabilityCounts() WebOSVSeverityCounts` + +GetVulnerabilityCounts returns the VulnerabilityCounts field if non-nil, zero value otherwise. + +### GetVulnerabilityCountsOk + +`func (o *CranPackageUploadRequest) GetVulnerabilityCountsOk() (*WebOSVSeverityCounts, bool)` + +GetVulnerabilityCountsOk returns a tuple with the VulnerabilityCounts field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetVulnerabilityCounts + +`func (o *CranPackageUploadRequest) SetVulnerabilityCounts(v WebOSVSeverityCounts)` + +SetVulnerabilityCounts sets VulnerabilityCounts field to given value. + +### HasVulnerabilityCounts + +`func (o *CranPackageUploadRequest) HasVulnerabilityCounts() bool` + +HasVulnerabilityCounts returns a boolean if a field has been set. + +### SetVulnerabilityCountsNil + +`func (o *CranPackageUploadRequest) SetVulnerabilityCountsNil(b bool)` + + SetVulnerabilityCountsNil sets the value for VulnerabilityCounts to be an explicit nil + +### UnsetVulnerabilityCounts +`func (o *CranPackageUploadRequest) UnsetVulnerabilityCounts()` + +UnsetVulnerabilityCounts ensures that no value is present for VulnerabilityCounts, 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/DartPackageUpload.md b/docs/DartPackageUpload.md index cdca1c82..9de9df65 100644 --- a/docs/DartPackageUpload.md +++ b/docs/DartPackageUpload.md @@ -33,6 +33,7 @@ Name | Type | Description | Notes **IsDeleteable** | Pointer to **bool** | | [optional] [readonly] **IsDownloadable** | Pointer to **bool** | | [optional] [readonly] **IsHidden** | Pointer to **bool** | | [optional] [readonly] +**IsMalwareDetected** | Pointer to **bool** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] [readonly] **IsMoveable** | Pointer to **bool** | | [optional] [readonly] **IsQuarantinable** | Pointer to **bool** | | [optional] [readonly] **IsQuarantined** | Pointer to **bool** | | [optional] [readonly] @@ -89,6 +90,7 @@ Name | Type | Description | Notes **UploaderUrl** | Pointer to **string** | | [optional] [readonly] **Version** | Pointer to **NullableString** | The raw version for this package. | [optional] [readonly] **VersionOrig** | Pointer to **string** | | [optional] [readonly] +**VulnerabilityCounts** | Pointer to [**NullableWebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] **VulnerabilityScanResultsUrl** | Pointer to **string** | | [optional] [readonly] ## Methods @@ -895,6 +897,31 @@ SetIsHidden sets IsHidden field to given value. HasIsHidden returns a boolean if a field has been set. +### GetIsMalwareDetected + +`func (o *DartPackageUpload) GetIsMalwareDetected() bool` + +GetIsMalwareDetected returns the IsMalwareDetected field if non-nil, zero value otherwise. + +### GetIsMalwareDetectedOk + +`func (o *DartPackageUpload) GetIsMalwareDetectedOk() (*bool, bool)` + +GetIsMalwareDetectedOk returns a tuple with the IsMalwareDetected field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIsMalwareDetected + +`func (o *DartPackageUpload) SetIsMalwareDetected(v bool)` + +SetIsMalwareDetected sets IsMalwareDetected field to given value. + +### HasIsMalwareDetected + +`func (o *DartPackageUpload) HasIsMalwareDetected() bool` + +HasIsMalwareDetected returns a boolean if a field has been set. + ### GetIsMoveable `func (o *DartPackageUpload) GetIsMoveable() bool` @@ -2435,6 +2462,41 @@ SetVersionOrig sets VersionOrig field to given value. HasVersionOrig returns a boolean if a field has been set. +### GetVulnerabilityCounts + +`func (o *DartPackageUpload) GetVulnerabilityCounts() WebOSVSeverityCounts` + +GetVulnerabilityCounts returns the VulnerabilityCounts field if non-nil, zero value otherwise. + +### GetVulnerabilityCountsOk + +`func (o *DartPackageUpload) GetVulnerabilityCountsOk() (*WebOSVSeverityCounts, bool)` + +GetVulnerabilityCountsOk returns a tuple with the VulnerabilityCounts field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetVulnerabilityCounts + +`func (o *DartPackageUpload) SetVulnerabilityCounts(v WebOSVSeverityCounts)` + +SetVulnerabilityCounts sets VulnerabilityCounts field to given value. + +### HasVulnerabilityCounts + +`func (o *DartPackageUpload) HasVulnerabilityCounts() bool` + +HasVulnerabilityCounts returns a boolean if a field has been set. + +### SetVulnerabilityCountsNil + +`func (o *DartPackageUpload) SetVulnerabilityCountsNil(b bool)` + + SetVulnerabilityCountsNil sets the value for VulnerabilityCounts to be an explicit nil + +### UnsetVulnerabilityCounts +`func (o *DartPackageUpload) UnsetVulnerabilityCounts()` + +UnsetVulnerabilityCounts ensures that no value is present for VulnerabilityCounts, not even an explicit nil ### GetVulnerabilityScanResultsUrl `func (o *DartPackageUpload) GetVulnerabilityScanResultsUrl() string` diff --git a/docs/DartPackageUploadRequest.md b/docs/DartPackageUploadRequest.md index 68a87227..c5d09253 100644 --- a/docs/DartPackageUploadRequest.md +++ b/docs/DartPackageUploadRequest.md @@ -4,9 +4,11 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**IsMalwareDetected** | Pointer to **bool** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] [readonly] **PackageFile** | **string** | The primary file for the package. | **Republish** | Pointer to **bool** | If true, the uploaded package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate. | [optional] **Tags** | Pointer to **NullableString** | A comma-separated values list of tags to add to the package. | [optional] +**VulnerabilityCounts** | Pointer to [**NullableWebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] ## Methods @@ -27,6 +29,31 @@ NewDartPackageUploadRequestWithDefaults instantiates a new DartPackageUploadRequ This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set +### GetIsMalwareDetected + +`func (o *DartPackageUploadRequest) GetIsMalwareDetected() bool` + +GetIsMalwareDetected returns the IsMalwareDetected field if non-nil, zero value otherwise. + +### GetIsMalwareDetectedOk + +`func (o *DartPackageUploadRequest) GetIsMalwareDetectedOk() (*bool, bool)` + +GetIsMalwareDetectedOk returns a tuple with the IsMalwareDetected field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIsMalwareDetected + +`func (o *DartPackageUploadRequest) SetIsMalwareDetected(v bool)` + +SetIsMalwareDetected sets IsMalwareDetected field to given value. + +### HasIsMalwareDetected + +`func (o *DartPackageUploadRequest) HasIsMalwareDetected() bool` + +HasIsMalwareDetected returns a boolean if a field has been set. + ### GetPackageFile `func (o *DartPackageUploadRequest) GetPackageFile() string` @@ -107,6 +134,41 @@ HasTags returns a boolean if a field has been set. `func (o *DartPackageUploadRequest) UnsetTags()` UnsetTags ensures that no value is present for Tags, not even an explicit nil +### GetVulnerabilityCounts + +`func (o *DartPackageUploadRequest) GetVulnerabilityCounts() WebOSVSeverityCounts` + +GetVulnerabilityCounts returns the VulnerabilityCounts field if non-nil, zero value otherwise. + +### GetVulnerabilityCountsOk + +`func (o *DartPackageUploadRequest) GetVulnerabilityCountsOk() (*WebOSVSeverityCounts, bool)` + +GetVulnerabilityCountsOk returns a tuple with the VulnerabilityCounts field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetVulnerabilityCounts + +`func (o *DartPackageUploadRequest) SetVulnerabilityCounts(v WebOSVSeverityCounts)` + +SetVulnerabilityCounts sets VulnerabilityCounts field to given value. + +### HasVulnerabilityCounts + +`func (o *DartPackageUploadRequest) HasVulnerabilityCounts() bool` + +HasVulnerabilityCounts returns a boolean if a field has been set. + +### SetVulnerabilityCountsNil + +`func (o *DartPackageUploadRequest) SetVulnerabilityCountsNil(b bool)` + + SetVulnerabilityCountsNil sets the value for VulnerabilityCounts to be an explicit nil + +### UnsetVulnerabilityCounts +`func (o *DartPackageUploadRequest) UnsetVulnerabilityCounts()` + +UnsetVulnerabilityCounts ensures that no value is present for VulnerabilityCounts, 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/DebPackageUpload.md b/docs/DebPackageUpload.md index 56b69f79..2ddfc65c 100644 --- a/docs/DebPackageUpload.md +++ b/docs/DebPackageUpload.md @@ -33,6 +33,7 @@ Name | Type | Description | Notes **IsDeleteable** | Pointer to **bool** | | [optional] [readonly] **IsDownloadable** | Pointer to **bool** | | [optional] [readonly] **IsHidden** | Pointer to **bool** | | [optional] [readonly] +**IsMalwareDetected** | Pointer to **bool** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] [readonly] **IsMoveable** | Pointer to **bool** | | [optional] [readonly] **IsQuarantinable** | Pointer to **bool** | | [optional] [readonly] **IsQuarantined** | Pointer to **bool** | | [optional] [readonly] @@ -89,6 +90,7 @@ Name | Type | Description | Notes **UploaderUrl** | Pointer to **string** | | [optional] [readonly] **Version** | Pointer to **NullableString** | The raw version for this package. | [optional] [readonly] **VersionOrig** | Pointer to **string** | | [optional] [readonly] +**VulnerabilityCounts** | Pointer to [**NullableWebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] **VulnerabilityScanResultsUrl** | Pointer to **string** | | [optional] [readonly] ## Methods @@ -895,6 +897,31 @@ SetIsHidden sets IsHidden field to given value. HasIsHidden returns a boolean if a field has been set. +### GetIsMalwareDetected + +`func (o *DebPackageUpload) GetIsMalwareDetected() bool` + +GetIsMalwareDetected returns the IsMalwareDetected field if non-nil, zero value otherwise. + +### GetIsMalwareDetectedOk + +`func (o *DebPackageUpload) GetIsMalwareDetectedOk() (*bool, bool)` + +GetIsMalwareDetectedOk returns a tuple with the IsMalwareDetected field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIsMalwareDetected + +`func (o *DebPackageUpload) SetIsMalwareDetected(v bool)` + +SetIsMalwareDetected sets IsMalwareDetected field to given value. + +### HasIsMalwareDetected + +`func (o *DebPackageUpload) HasIsMalwareDetected() bool` + +HasIsMalwareDetected returns a boolean if a field has been set. + ### GetIsMoveable `func (o *DebPackageUpload) GetIsMoveable() bool` @@ -2435,6 +2462,41 @@ SetVersionOrig sets VersionOrig field to given value. HasVersionOrig returns a boolean if a field has been set. +### GetVulnerabilityCounts + +`func (o *DebPackageUpload) GetVulnerabilityCounts() WebOSVSeverityCounts` + +GetVulnerabilityCounts returns the VulnerabilityCounts field if non-nil, zero value otherwise. + +### GetVulnerabilityCountsOk + +`func (o *DebPackageUpload) GetVulnerabilityCountsOk() (*WebOSVSeverityCounts, bool)` + +GetVulnerabilityCountsOk returns a tuple with the VulnerabilityCounts field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetVulnerabilityCounts + +`func (o *DebPackageUpload) SetVulnerabilityCounts(v WebOSVSeverityCounts)` + +SetVulnerabilityCounts sets VulnerabilityCounts field to given value. + +### HasVulnerabilityCounts + +`func (o *DebPackageUpload) HasVulnerabilityCounts() bool` + +HasVulnerabilityCounts returns a boolean if a field has been set. + +### SetVulnerabilityCountsNil + +`func (o *DebPackageUpload) SetVulnerabilityCountsNil(b bool)` + + SetVulnerabilityCountsNil sets the value for VulnerabilityCounts to be an explicit nil + +### UnsetVulnerabilityCounts +`func (o *DebPackageUpload) UnsetVulnerabilityCounts()` + +UnsetVulnerabilityCounts ensures that no value is present for VulnerabilityCounts, not even an explicit nil ### GetVulnerabilityScanResultsUrl `func (o *DebPackageUpload) GetVulnerabilityScanResultsUrl() string` diff --git a/docs/DebPackageUploadRequest.md b/docs/DebPackageUploadRequest.md index 8d06fed5..8f3e9cd5 100644 --- a/docs/DebPackageUploadRequest.md +++ b/docs/DebPackageUploadRequest.md @@ -7,10 +7,12 @@ Name | Type | Description | Notes **ChangesFile** | Pointer to **NullableString** | The changes archive containing the changes made to the source and debian packaging files | [optional] **Component** | Pointer to **string** | The component (channel) for the package (e.g. 'main', 'unstable', etc.) | [optional] [default to "main"] **Distribution** | **string** | The distribution to store the package for. | +**IsMalwareDetected** | Pointer to **bool** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] [readonly] **PackageFile** | **string** | The primary file for the package. | **Republish** | Pointer to **bool** | If true, the uploaded package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate. | [optional] **SourcesFile** | Pointer to **NullableString** | The sources archive containing the source code for the binary | [optional] **Tags** | Pointer to **NullableString** | A comma-separated values list of tags to add to the package. | [optional] +**VulnerabilityCounts** | Pointer to [**NullableWebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] ## Methods @@ -111,6 +113,31 @@ and a boolean to check if the value has been set. SetDistribution sets Distribution field to given value. +### GetIsMalwareDetected + +`func (o *DebPackageUploadRequest) GetIsMalwareDetected() bool` + +GetIsMalwareDetected returns the IsMalwareDetected field if non-nil, zero value otherwise. + +### GetIsMalwareDetectedOk + +`func (o *DebPackageUploadRequest) GetIsMalwareDetectedOk() (*bool, bool)` + +GetIsMalwareDetectedOk returns a tuple with the IsMalwareDetected field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIsMalwareDetected + +`func (o *DebPackageUploadRequest) SetIsMalwareDetected(v bool)` + +SetIsMalwareDetected sets IsMalwareDetected field to given value. + +### HasIsMalwareDetected + +`func (o *DebPackageUploadRequest) HasIsMalwareDetected() bool` + +HasIsMalwareDetected returns a boolean if a field has been set. + ### GetPackageFile `func (o *DebPackageUploadRequest) GetPackageFile() string` @@ -226,6 +253,41 @@ HasTags returns a boolean if a field has been set. `func (o *DebPackageUploadRequest) UnsetTags()` UnsetTags ensures that no value is present for Tags, not even an explicit nil +### GetVulnerabilityCounts + +`func (o *DebPackageUploadRequest) GetVulnerabilityCounts() WebOSVSeverityCounts` + +GetVulnerabilityCounts returns the VulnerabilityCounts field if non-nil, zero value otherwise. + +### GetVulnerabilityCountsOk + +`func (o *DebPackageUploadRequest) GetVulnerabilityCountsOk() (*WebOSVSeverityCounts, bool)` + +GetVulnerabilityCountsOk returns a tuple with the VulnerabilityCounts field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetVulnerabilityCounts + +`func (o *DebPackageUploadRequest) SetVulnerabilityCounts(v WebOSVSeverityCounts)` + +SetVulnerabilityCounts sets VulnerabilityCounts field to given value. + +### HasVulnerabilityCounts + +`func (o *DebPackageUploadRequest) HasVulnerabilityCounts() bool` + +HasVulnerabilityCounts returns a boolean if a field has been set. + +### SetVulnerabilityCountsNil + +`func (o *DebPackageUploadRequest) SetVulnerabilityCountsNil(b bool)` + + SetVulnerabilityCountsNil sets the value for VulnerabilityCounts to be an explicit nil + +### UnsetVulnerabilityCounts +`func (o *DebPackageUploadRequest) UnsetVulnerabilityCounts()` + +UnsetVulnerabilityCounts ensures that no value is present for VulnerabilityCounts, 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/DockerPackageUpload.md b/docs/DockerPackageUpload.md index dc4b5501..9bfe4d2b 100644 --- a/docs/DockerPackageUpload.md +++ b/docs/DockerPackageUpload.md @@ -33,6 +33,7 @@ Name | Type | Description | Notes **IsDeleteable** | Pointer to **bool** | | [optional] [readonly] **IsDownloadable** | Pointer to **bool** | | [optional] [readonly] **IsHidden** | Pointer to **bool** | | [optional] [readonly] +**IsMalwareDetected** | Pointer to **bool** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] [readonly] **IsMoveable** | Pointer to **bool** | | [optional] [readonly] **IsQuarantinable** | Pointer to **bool** | | [optional] [readonly] **IsQuarantined** | Pointer to **bool** | | [optional] [readonly] @@ -89,6 +90,7 @@ Name | Type | Description | Notes **UploaderUrl** | Pointer to **string** | | [optional] [readonly] **Version** | Pointer to **NullableString** | The raw version for this package. | [optional] [readonly] **VersionOrig** | Pointer to **string** | | [optional] [readonly] +**VulnerabilityCounts** | Pointer to [**NullableWebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] **VulnerabilityScanResultsUrl** | Pointer to **string** | | [optional] [readonly] ## Methods @@ -895,6 +897,31 @@ SetIsHidden sets IsHidden field to given value. HasIsHidden returns a boolean if a field has been set. +### GetIsMalwareDetected + +`func (o *DockerPackageUpload) GetIsMalwareDetected() bool` + +GetIsMalwareDetected returns the IsMalwareDetected field if non-nil, zero value otherwise. + +### GetIsMalwareDetectedOk + +`func (o *DockerPackageUpload) GetIsMalwareDetectedOk() (*bool, bool)` + +GetIsMalwareDetectedOk returns a tuple with the IsMalwareDetected field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIsMalwareDetected + +`func (o *DockerPackageUpload) SetIsMalwareDetected(v bool)` + +SetIsMalwareDetected sets IsMalwareDetected field to given value. + +### HasIsMalwareDetected + +`func (o *DockerPackageUpload) HasIsMalwareDetected() bool` + +HasIsMalwareDetected returns a boolean if a field has been set. + ### GetIsMoveable `func (o *DockerPackageUpload) GetIsMoveable() bool` @@ -2435,6 +2462,41 @@ SetVersionOrig sets VersionOrig field to given value. HasVersionOrig returns a boolean if a field has been set. +### GetVulnerabilityCounts + +`func (o *DockerPackageUpload) GetVulnerabilityCounts() WebOSVSeverityCounts` + +GetVulnerabilityCounts returns the VulnerabilityCounts field if non-nil, zero value otherwise. + +### GetVulnerabilityCountsOk + +`func (o *DockerPackageUpload) GetVulnerabilityCountsOk() (*WebOSVSeverityCounts, bool)` + +GetVulnerabilityCountsOk returns a tuple with the VulnerabilityCounts field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetVulnerabilityCounts + +`func (o *DockerPackageUpload) SetVulnerabilityCounts(v WebOSVSeverityCounts)` + +SetVulnerabilityCounts sets VulnerabilityCounts field to given value. + +### HasVulnerabilityCounts + +`func (o *DockerPackageUpload) HasVulnerabilityCounts() bool` + +HasVulnerabilityCounts returns a boolean if a field has been set. + +### SetVulnerabilityCountsNil + +`func (o *DockerPackageUpload) SetVulnerabilityCountsNil(b bool)` + + SetVulnerabilityCountsNil sets the value for VulnerabilityCounts to be an explicit nil + +### UnsetVulnerabilityCounts +`func (o *DockerPackageUpload) UnsetVulnerabilityCounts()` + +UnsetVulnerabilityCounts ensures that no value is present for VulnerabilityCounts, not even an explicit nil ### GetVulnerabilityScanResultsUrl `func (o *DockerPackageUpload) GetVulnerabilityScanResultsUrl() string` diff --git a/docs/DockerPackageUploadRequest.md b/docs/DockerPackageUploadRequest.md index 3c01c199..09d7b4d2 100644 --- a/docs/DockerPackageUploadRequest.md +++ b/docs/DockerPackageUploadRequest.md @@ -4,9 +4,11 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**IsMalwareDetected** | Pointer to **bool** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] [readonly] **PackageFile** | **string** | The primary file for the package. | **Republish** | Pointer to **bool** | If true, the uploaded package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate. | [optional] **Tags** | Pointer to **NullableString** | A comma-separated values list of tags to add to the package. | [optional] +**VulnerabilityCounts** | Pointer to [**NullableWebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] ## Methods @@ -27,6 +29,31 @@ NewDockerPackageUploadRequestWithDefaults instantiates a new DockerPackageUpload This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set +### GetIsMalwareDetected + +`func (o *DockerPackageUploadRequest) GetIsMalwareDetected() bool` + +GetIsMalwareDetected returns the IsMalwareDetected field if non-nil, zero value otherwise. + +### GetIsMalwareDetectedOk + +`func (o *DockerPackageUploadRequest) GetIsMalwareDetectedOk() (*bool, bool)` + +GetIsMalwareDetectedOk returns a tuple with the IsMalwareDetected field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIsMalwareDetected + +`func (o *DockerPackageUploadRequest) SetIsMalwareDetected(v bool)` + +SetIsMalwareDetected sets IsMalwareDetected field to given value. + +### HasIsMalwareDetected + +`func (o *DockerPackageUploadRequest) HasIsMalwareDetected() bool` + +HasIsMalwareDetected returns a boolean if a field has been set. + ### GetPackageFile `func (o *DockerPackageUploadRequest) GetPackageFile() string` @@ -107,6 +134,41 @@ HasTags returns a boolean if a field has been set. `func (o *DockerPackageUploadRequest) UnsetTags()` UnsetTags ensures that no value is present for Tags, not even an explicit nil +### GetVulnerabilityCounts + +`func (o *DockerPackageUploadRequest) GetVulnerabilityCounts() WebOSVSeverityCounts` + +GetVulnerabilityCounts returns the VulnerabilityCounts field if non-nil, zero value otherwise. + +### GetVulnerabilityCountsOk + +`func (o *DockerPackageUploadRequest) GetVulnerabilityCountsOk() (*WebOSVSeverityCounts, bool)` + +GetVulnerabilityCountsOk returns a tuple with the VulnerabilityCounts field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetVulnerabilityCounts + +`func (o *DockerPackageUploadRequest) SetVulnerabilityCounts(v WebOSVSeverityCounts)` + +SetVulnerabilityCounts sets VulnerabilityCounts field to given value. + +### HasVulnerabilityCounts + +`func (o *DockerPackageUploadRequest) HasVulnerabilityCounts() bool` + +HasVulnerabilityCounts returns a boolean if a field has been set. + +### SetVulnerabilityCountsNil + +`func (o *DockerPackageUploadRequest) SetVulnerabilityCountsNil(b bool)` + + SetVulnerabilityCountsNil sets the value for VulnerabilityCounts to be an explicit nil + +### UnsetVulnerabilityCounts +`func (o *DockerPackageUploadRequest) UnsetVulnerabilityCounts()` + +UnsetVulnerabilityCounts ensures that no value is present for VulnerabilityCounts, 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/GenericPackageUpload.md b/docs/GenericPackageUpload.md index e11ede36..b491b2e3 100644 --- a/docs/GenericPackageUpload.md +++ b/docs/GenericPackageUpload.md @@ -33,6 +33,7 @@ Name | Type | Description | Notes **IsDeleteable** | Pointer to **bool** | | [optional] [readonly] **IsDownloadable** | Pointer to **bool** | | [optional] [readonly] **IsHidden** | Pointer to **bool** | | [optional] [readonly] +**IsMalwareDetected** | Pointer to **bool** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] [readonly] **IsMoveable** | Pointer to **bool** | | [optional] [readonly] **IsQuarantinable** | Pointer to **bool** | | [optional] [readonly] **IsQuarantined** | Pointer to **bool** | | [optional] [readonly] @@ -89,6 +90,7 @@ Name | Type | Description | Notes **UploaderUrl** | Pointer to **string** | | [optional] [readonly] **Version** | Pointer to **NullableString** | The raw version for this package. | [optional] **VersionOrig** | Pointer to **string** | | [optional] [readonly] +**VulnerabilityCounts** | Pointer to [**NullableWebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] **VulnerabilityScanResultsUrl** | Pointer to **string** | | [optional] [readonly] ## Methods @@ -895,6 +897,31 @@ SetIsHidden sets IsHidden field to given value. HasIsHidden returns a boolean if a field has been set. +### GetIsMalwareDetected + +`func (o *GenericPackageUpload) GetIsMalwareDetected() bool` + +GetIsMalwareDetected returns the IsMalwareDetected field if non-nil, zero value otherwise. + +### GetIsMalwareDetectedOk + +`func (o *GenericPackageUpload) GetIsMalwareDetectedOk() (*bool, bool)` + +GetIsMalwareDetectedOk returns a tuple with the IsMalwareDetected field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIsMalwareDetected + +`func (o *GenericPackageUpload) SetIsMalwareDetected(v bool)` + +SetIsMalwareDetected sets IsMalwareDetected field to given value. + +### HasIsMalwareDetected + +`func (o *GenericPackageUpload) HasIsMalwareDetected() bool` + +HasIsMalwareDetected returns a boolean if a field has been set. + ### GetIsMoveable `func (o *GenericPackageUpload) GetIsMoveable() bool` @@ -2435,6 +2462,41 @@ SetVersionOrig sets VersionOrig field to given value. HasVersionOrig returns a boolean if a field has been set. +### GetVulnerabilityCounts + +`func (o *GenericPackageUpload) GetVulnerabilityCounts() WebOSVSeverityCounts` + +GetVulnerabilityCounts returns the VulnerabilityCounts field if non-nil, zero value otherwise. + +### GetVulnerabilityCountsOk + +`func (o *GenericPackageUpload) GetVulnerabilityCountsOk() (*WebOSVSeverityCounts, bool)` + +GetVulnerabilityCountsOk returns a tuple with the VulnerabilityCounts field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetVulnerabilityCounts + +`func (o *GenericPackageUpload) SetVulnerabilityCounts(v WebOSVSeverityCounts)` + +SetVulnerabilityCounts sets VulnerabilityCounts field to given value. + +### HasVulnerabilityCounts + +`func (o *GenericPackageUpload) HasVulnerabilityCounts() bool` + +HasVulnerabilityCounts returns a boolean if a field has been set. + +### SetVulnerabilityCountsNil + +`func (o *GenericPackageUpload) SetVulnerabilityCountsNil(b bool)` + + SetVulnerabilityCountsNil sets the value for VulnerabilityCounts to be an explicit nil + +### UnsetVulnerabilityCounts +`func (o *GenericPackageUpload) UnsetVulnerabilityCounts()` + +UnsetVulnerabilityCounts ensures that no value is present for VulnerabilityCounts, not even an explicit nil ### GetVulnerabilityScanResultsUrl `func (o *GenericPackageUpload) GetVulnerabilityScanResultsUrl() string` diff --git a/docs/GenericPackageUploadRequest.md b/docs/GenericPackageUploadRequest.md index a94a9458..b2d8cbb5 100644 --- a/docs/GenericPackageUploadRequest.md +++ b/docs/GenericPackageUploadRequest.md @@ -5,11 +5,13 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Filepath** | **string** | The full filepath of the package including filename. | +**IsMalwareDetected** | Pointer to **bool** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] [readonly] **Name** | Pointer to **NullableString** | The name of this package. | [optional] **PackageFile** | **string** | The primary file for the package. | **Republish** | Pointer to **bool** | If true, the uploaded package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate. | [optional] **Tags** | Pointer to **NullableString** | A comma-separated values list of tags to add to the package. | [optional] **Version** | Pointer to **NullableString** | The raw version for this package. | [optional] +**VulnerabilityCounts** | Pointer to [**NullableWebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] ## Methods @@ -50,6 +52,31 @@ and a boolean to check if the value has been set. SetFilepath sets Filepath field to given value. +### GetIsMalwareDetected + +`func (o *GenericPackageUploadRequest) GetIsMalwareDetected() bool` + +GetIsMalwareDetected returns the IsMalwareDetected field if non-nil, zero value otherwise. + +### GetIsMalwareDetectedOk + +`func (o *GenericPackageUploadRequest) GetIsMalwareDetectedOk() (*bool, bool)` + +GetIsMalwareDetectedOk returns a tuple with the IsMalwareDetected field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIsMalwareDetected + +`func (o *GenericPackageUploadRequest) SetIsMalwareDetected(v bool)` + +SetIsMalwareDetected sets IsMalwareDetected field to given value. + +### HasIsMalwareDetected + +`func (o *GenericPackageUploadRequest) HasIsMalwareDetected() bool` + +HasIsMalwareDetected returns a boolean if a field has been set. + ### GetName `func (o *GenericPackageUploadRequest) GetName() string` @@ -200,6 +227,41 @@ HasVersion returns a boolean if a field has been set. `func (o *GenericPackageUploadRequest) UnsetVersion()` UnsetVersion ensures that no value is present for Version, not even an explicit nil +### GetVulnerabilityCounts + +`func (o *GenericPackageUploadRequest) GetVulnerabilityCounts() WebOSVSeverityCounts` + +GetVulnerabilityCounts returns the VulnerabilityCounts field if non-nil, zero value otherwise. + +### GetVulnerabilityCountsOk + +`func (o *GenericPackageUploadRequest) GetVulnerabilityCountsOk() (*WebOSVSeverityCounts, bool)` + +GetVulnerabilityCountsOk returns a tuple with the VulnerabilityCounts field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetVulnerabilityCounts + +`func (o *GenericPackageUploadRequest) SetVulnerabilityCounts(v WebOSVSeverityCounts)` + +SetVulnerabilityCounts sets VulnerabilityCounts field to given value. + +### HasVulnerabilityCounts + +`func (o *GenericPackageUploadRequest) HasVulnerabilityCounts() bool` + +HasVulnerabilityCounts returns a boolean if a field has been set. + +### SetVulnerabilityCountsNil + +`func (o *GenericPackageUploadRequest) SetVulnerabilityCountsNil(b bool)` + + SetVulnerabilityCountsNil sets the value for VulnerabilityCounts to be an explicit nil + +### UnsetVulnerabilityCounts +`func (o *GenericPackageUploadRequest) UnsetVulnerabilityCounts()` + +UnsetVulnerabilityCounts ensures that no value is present for VulnerabilityCounts, 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/GoPackageUpload.md b/docs/GoPackageUpload.md index bebe5df2..05aa7186 100644 --- a/docs/GoPackageUpload.md +++ b/docs/GoPackageUpload.md @@ -33,6 +33,7 @@ Name | Type | Description | Notes **IsDeleteable** | Pointer to **bool** | | [optional] [readonly] **IsDownloadable** | Pointer to **bool** | | [optional] [readonly] **IsHidden** | Pointer to **bool** | | [optional] [readonly] +**IsMalwareDetected** | Pointer to **bool** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] [readonly] **IsMoveable** | Pointer to **bool** | | [optional] [readonly] **IsQuarantinable** | Pointer to **bool** | | [optional] [readonly] **IsQuarantined** | Pointer to **bool** | | [optional] [readonly] @@ -89,6 +90,7 @@ Name | Type | Description | Notes **UploaderUrl** | Pointer to **string** | | [optional] [readonly] **Version** | Pointer to **NullableString** | The raw version for this package. | [optional] [readonly] **VersionOrig** | Pointer to **string** | | [optional] [readonly] +**VulnerabilityCounts** | Pointer to [**NullableWebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] **VulnerabilityScanResultsUrl** | Pointer to **string** | | [optional] [readonly] ## Methods @@ -895,6 +897,31 @@ SetIsHidden sets IsHidden field to given value. HasIsHidden returns a boolean if a field has been set. +### GetIsMalwareDetected + +`func (o *GoPackageUpload) GetIsMalwareDetected() bool` + +GetIsMalwareDetected returns the IsMalwareDetected field if non-nil, zero value otherwise. + +### GetIsMalwareDetectedOk + +`func (o *GoPackageUpload) GetIsMalwareDetectedOk() (*bool, bool)` + +GetIsMalwareDetectedOk returns a tuple with the IsMalwareDetected field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIsMalwareDetected + +`func (o *GoPackageUpload) SetIsMalwareDetected(v bool)` + +SetIsMalwareDetected sets IsMalwareDetected field to given value. + +### HasIsMalwareDetected + +`func (o *GoPackageUpload) HasIsMalwareDetected() bool` + +HasIsMalwareDetected returns a boolean if a field has been set. + ### GetIsMoveable `func (o *GoPackageUpload) GetIsMoveable() bool` @@ -2435,6 +2462,41 @@ SetVersionOrig sets VersionOrig field to given value. HasVersionOrig returns a boolean if a field has been set. +### GetVulnerabilityCounts + +`func (o *GoPackageUpload) GetVulnerabilityCounts() WebOSVSeverityCounts` + +GetVulnerabilityCounts returns the VulnerabilityCounts field if non-nil, zero value otherwise. + +### GetVulnerabilityCountsOk + +`func (o *GoPackageUpload) GetVulnerabilityCountsOk() (*WebOSVSeverityCounts, bool)` + +GetVulnerabilityCountsOk returns a tuple with the VulnerabilityCounts field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetVulnerabilityCounts + +`func (o *GoPackageUpload) SetVulnerabilityCounts(v WebOSVSeverityCounts)` + +SetVulnerabilityCounts sets VulnerabilityCounts field to given value. + +### HasVulnerabilityCounts + +`func (o *GoPackageUpload) HasVulnerabilityCounts() bool` + +HasVulnerabilityCounts returns a boolean if a field has been set. + +### SetVulnerabilityCountsNil + +`func (o *GoPackageUpload) SetVulnerabilityCountsNil(b bool)` + + SetVulnerabilityCountsNil sets the value for VulnerabilityCounts to be an explicit nil + +### UnsetVulnerabilityCounts +`func (o *GoPackageUpload) UnsetVulnerabilityCounts()` + +UnsetVulnerabilityCounts ensures that no value is present for VulnerabilityCounts, not even an explicit nil ### GetVulnerabilityScanResultsUrl `func (o *GoPackageUpload) GetVulnerabilityScanResultsUrl() string` diff --git a/docs/GoPackageUploadRequest.md b/docs/GoPackageUploadRequest.md index 16fb097e..0cd52f11 100644 --- a/docs/GoPackageUploadRequest.md +++ b/docs/GoPackageUploadRequest.md @@ -4,9 +4,11 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**IsMalwareDetected** | Pointer to **bool** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] [readonly] **PackageFile** | **string** | The primary file for the package. | **Republish** | Pointer to **bool** | If true, the uploaded package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate. | [optional] **Tags** | Pointer to **NullableString** | A comma-separated values list of tags to add to the package. | [optional] +**VulnerabilityCounts** | Pointer to [**NullableWebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] ## Methods @@ -27,6 +29,31 @@ NewGoPackageUploadRequestWithDefaults instantiates a new GoPackageUploadRequest This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set +### GetIsMalwareDetected + +`func (o *GoPackageUploadRequest) GetIsMalwareDetected() bool` + +GetIsMalwareDetected returns the IsMalwareDetected field if non-nil, zero value otherwise. + +### GetIsMalwareDetectedOk + +`func (o *GoPackageUploadRequest) GetIsMalwareDetectedOk() (*bool, bool)` + +GetIsMalwareDetectedOk returns a tuple with the IsMalwareDetected field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIsMalwareDetected + +`func (o *GoPackageUploadRequest) SetIsMalwareDetected(v bool)` + +SetIsMalwareDetected sets IsMalwareDetected field to given value. + +### HasIsMalwareDetected + +`func (o *GoPackageUploadRequest) HasIsMalwareDetected() bool` + +HasIsMalwareDetected returns a boolean if a field has been set. + ### GetPackageFile `func (o *GoPackageUploadRequest) GetPackageFile() string` @@ -107,6 +134,41 @@ HasTags returns a boolean if a field has been set. `func (o *GoPackageUploadRequest) UnsetTags()` UnsetTags ensures that no value is present for Tags, not even an explicit nil +### GetVulnerabilityCounts + +`func (o *GoPackageUploadRequest) GetVulnerabilityCounts() WebOSVSeverityCounts` + +GetVulnerabilityCounts returns the VulnerabilityCounts field if non-nil, zero value otherwise. + +### GetVulnerabilityCountsOk + +`func (o *GoPackageUploadRequest) GetVulnerabilityCountsOk() (*WebOSVSeverityCounts, bool)` + +GetVulnerabilityCountsOk returns a tuple with the VulnerabilityCounts field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetVulnerabilityCounts + +`func (o *GoPackageUploadRequest) SetVulnerabilityCounts(v WebOSVSeverityCounts)` + +SetVulnerabilityCounts sets VulnerabilityCounts field to given value. + +### HasVulnerabilityCounts + +`func (o *GoPackageUploadRequest) HasVulnerabilityCounts() bool` + +HasVulnerabilityCounts returns a boolean if a field has been set. + +### SetVulnerabilityCountsNil + +`func (o *GoPackageUploadRequest) SetVulnerabilityCountsNil(b bool)` + + SetVulnerabilityCountsNil sets the value for VulnerabilityCounts to be an explicit nil + +### UnsetVulnerabilityCounts +`func (o *GoPackageUploadRequest) UnsetVulnerabilityCounts()` + +UnsetVulnerabilityCounts ensures that no value is present for VulnerabilityCounts, 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/HelmPackageUpload.md b/docs/HelmPackageUpload.md index 3d4fee35..cccb73f5 100644 --- a/docs/HelmPackageUpload.md +++ b/docs/HelmPackageUpload.md @@ -33,6 +33,7 @@ Name | Type | Description | Notes **IsDeleteable** | Pointer to **bool** | | [optional] [readonly] **IsDownloadable** | Pointer to **bool** | | [optional] [readonly] **IsHidden** | Pointer to **bool** | | [optional] [readonly] +**IsMalwareDetected** | Pointer to **bool** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] [readonly] **IsMoveable** | Pointer to **bool** | | [optional] [readonly] **IsQuarantinable** | Pointer to **bool** | | [optional] [readonly] **IsQuarantined** | Pointer to **bool** | | [optional] [readonly] @@ -89,6 +90,7 @@ Name | Type | Description | Notes **UploaderUrl** | Pointer to **string** | | [optional] [readonly] **Version** | Pointer to **NullableString** | The raw version for this package. | [optional] [readonly] **VersionOrig** | Pointer to **string** | | [optional] [readonly] +**VulnerabilityCounts** | Pointer to [**NullableWebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] **VulnerabilityScanResultsUrl** | Pointer to **string** | | [optional] [readonly] ## Methods @@ -895,6 +897,31 @@ SetIsHidden sets IsHidden field to given value. HasIsHidden returns a boolean if a field has been set. +### GetIsMalwareDetected + +`func (o *HelmPackageUpload) GetIsMalwareDetected() bool` + +GetIsMalwareDetected returns the IsMalwareDetected field if non-nil, zero value otherwise. + +### GetIsMalwareDetectedOk + +`func (o *HelmPackageUpload) GetIsMalwareDetectedOk() (*bool, bool)` + +GetIsMalwareDetectedOk returns a tuple with the IsMalwareDetected field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIsMalwareDetected + +`func (o *HelmPackageUpload) SetIsMalwareDetected(v bool)` + +SetIsMalwareDetected sets IsMalwareDetected field to given value. + +### HasIsMalwareDetected + +`func (o *HelmPackageUpload) HasIsMalwareDetected() bool` + +HasIsMalwareDetected returns a boolean if a field has been set. + ### GetIsMoveable `func (o *HelmPackageUpload) GetIsMoveable() bool` @@ -2435,6 +2462,41 @@ SetVersionOrig sets VersionOrig field to given value. HasVersionOrig returns a boolean if a field has been set. +### GetVulnerabilityCounts + +`func (o *HelmPackageUpload) GetVulnerabilityCounts() WebOSVSeverityCounts` + +GetVulnerabilityCounts returns the VulnerabilityCounts field if non-nil, zero value otherwise. + +### GetVulnerabilityCountsOk + +`func (o *HelmPackageUpload) GetVulnerabilityCountsOk() (*WebOSVSeverityCounts, bool)` + +GetVulnerabilityCountsOk returns a tuple with the VulnerabilityCounts field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetVulnerabilityCounts + +`func (o *HelmPackageUpload) SetVulnerabilityCounts(v WebOSVSeverityCounts)` + +SetVulnerabilityCounts sets VulnerabilityCounts field to given value. + +### HasVulnerabilityCounts + +`func (o *HelmPackageUpload) HasVulnerabilityCounts() bool` + +HasVulnerabilityCounts returns a boolean if a field has been set. + +### SetVulnerabilityCountsNil + +`func (o *HelmPackageUpload) SetVulnerabilityCountsNil(b bool)` + + SetVulnerabilityCountsNil sets the value for VulnerabilityCounts to be an explicit nil + +### UnsetVulnerabilityCounts +`func (o *HelmPackageUpload) UnsetVulnerabilityCounts()` + +UnsetVulnerabilityCounts ensures that no value is present for VulnerabilityCounts, not even an explicit nil ### GetVulnerabilityScanResultsUrl `func (o *HelmPackageUpload) GetVulnerabilityScanResultsUrl() string` diff --git a/docs/HelmPackageUploadRequest.md b/docs/HelmPackageUploadRequest.md index f2dc6da0..505a02ed 100644 --- a/docs/HelmPackageUploadRequest.md +++ b/docs/HelmPackageUploadRequest.md @@ -4,10 +4,12 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**IsMalwareDetected** | Pointer to **bool** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] [readonly] **PackageFile** | **string** | The primary file for the package. | **ProvenanceFile** | Pointer to **NullableString** | The provenance file containing the signature for the chart. If one is not provided, it will be generated automatically. | [optional] **Republish** | Pointer to **bool** | If true, the uploaded package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate. | [optional] **Tags** | Pointer to **NullableString** | A comma-separated values list of tags to add to the package. | [optional] +**VulnerabilityCounts** | Pointer to [**NullableWebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] ## Methods @@ -28,6 +30,31 @@ NewHelmPackageUploadRequestWithDefaults instantiates a new HelmPackageUploadRequ This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set +### GetIsMalwareDetected + +`func (o *HelmPackageUploadRequest) GetIsMalwareDetected() bool` + +GetIsMalwareDetected returns the IsMalwareDetected field if non-nil, zero value otherwise. + +### GetIsMalwareDetectedOk + +`func (o *HelmPackageUploadRequest) GetIsMalwareDetectedOk() (*bool, bool)` + +GetIsMalwareDetectedOk returns a tuple with the IsMalwareDetected field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIsMalwareDetected + +`func (o *HelmPackageUploadRequest) SetIsMalwareDetected(v bool)` + +SetIsMalwareDetected sets IsMalwareDetected field to given value. + +### HasIsMalwareDetected + +`func (o *HelmPackageUploadRequest) HasIsMalwareDetected() bool` + +HasIsMalwareDetected returns a boolean if a field has been set. + ### GetPackageFile `func (o *HelmPackageUploadRequest) GetPackageFile() string` @@ -143,6 +170,41 @@ HasTags returns a boolean if a field has been set. `func (o *HelmPackageUploadRequest) UnsetTags()` UnsetTags ensures that no value is present for Tags, not even an explicit nil +### GetVulnerabilityCounts + +`func (o *HelmPackageUploadRequest) GetVulnerabilityCounts() WebOSVSeverityCounts` + +GetVulnerabilityCounts returns the VulnerabilityCounts field if non-nil, zero value otherwise. + +### GetVulnerabilityCountsOk + +`func (o *HelmPackageUploadRequest) GetVulnerabilityCountsOk() (*WebOSVSeverityCounts, bool)` + +GetVulnerabilityCountsOk returns a tuple with the VulnerabilityCounts field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetVulnerabilityCounts + +`func (o *HelmPackageUploadRequest) SetVulnerabilityCounts(v WebOSVSeverityCounts)` + +SetVulnerabilityCounts sets VulnerabilityCounts field to given value. + +### HasVulnerabilityCounts + +`func (o *HelmPackageUploadRequest) HasVulnerabilityCounts() bool` + +HasVulnerabilityCounts returns a boolean if a field has been set. + +### SetVulnerabilityCountsNil + +`func (o *HelmPackageUploadRequest) SetVulnerabilityCountsNil(b bool)` + + SetVulnerabilityCountsNil sets the value for VulnerabilityCounts to be an explicit nil + +### UnsetVulnerabilityCounts +`func (o *HelmPackageUploadRequest) UnsetVulnerabilityCounts()` + +UnsetVulnerabilityCounts ensures that no value is present for VulnerabilityCounts, 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/HexPackageUpload.md b/docs/HexPackageUpload.md index 4a844218..ccab51cd 100644 --- a/docs/HexPackageUpload.md +++ b/docs/HexPackageUpload.md @@ -33,6 +33,7 @@ Name | Type | Description | Notes **IsDeleteable** | Pointer to **bool** | | [optional] [readonly] **IsDownloadable** | Pointer to **bool** | | [optional] [readonly] **IsHidden** | Pointer to **bool** | | [optional] [readonly] +**IsMalwareDetected** | Pointer to **bool** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] [readonly] **IsMoveable** | Pointer to **bool** | | [optional] [readonly] **IsQuarantinable** | Pointer to **bool** | | [optional] [readonly] **IsQuarantined** | Pointer to **bool** | | [optional] [readonly] @@ -89,6 +90,7 @@ Name | Type | Description | Notes **UploaderUrl** | Pointer to **string** | | [optional] [readonly] **Version** | Pointer to **NullableString** | The raw version for this package. | [optional] [readonly] **VersionOrig** | Pointer to **string** | | [optional] [readonly] +**VulnerabilityCounts** | Pointer to [**NullableWebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] **VulnerabilityScanResultsUrl** | Pointer to **string** | | [optional] [readonly] ## Methods @@ -895,6 +897,31 @@ SetIsHidden sets IsHidden field to given value. HasIsHidden returns a boolean if a field has been set. +### GetIsMalwareDetected + +`func (o *HexPackageUpload) GetIsMalwareDetected() bool` + +GetIsMalwareDetected returns the IsMalwareDetected field if non-nil, zero value otherwise. + +### GetIsMalwareDetectedOk + +`func (o *HexPackageUpload) GetIsMalwareDetectedOk() (*bool, bool)` + +GetIsMalwareDetectedOk returns a tuple with the IsMalwareDetected field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIsMalwareDetected + +`func (o *HexPackageUpload) SetIsMalwareDetected(v bool)` + +SetIsMalwareDetected sets IsMalwareDetected field to given value. + +### HasIsMalwareDetected + +`func (o *HexPackageUpload) HasIsMalwareDetected() bool` + +HasIsMalwareDetected returns a boolean if a field has been set. + ### GetIsMoveable `func (o *HexPackageUpload) GetIsMoveable() bool` @@ -2435,6 +2462,41 @@ SetVersionOrig sets VersionOrig field to given value. HasVersionOrig returns a boolean if a field has been set. +### GetVulnerabilityCounts + +`func (o *HexPackageUpload) GetVulnerabilityCounts() WebOSVSeverityCounts` + +GetVulnerabilityCounts returns the VulnerabilityCounts field if non-nil, zero value otherwise. + +### GetVulnerabilityCountsOk + +`func (o *HexPackageUpload) GetVulnerabilityCountsOk() (*WebOSVSeverityCounts, bool)` + +GetVulnerabilityCountsOk returns a tuple with the VulnerabilityCounts field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetVulnerabilityCounts + +`func (o *HexPackageUpload) SetVulnerabilityCounts(v WebOSVSeverityCounts)` + +SetVulnerabilityCounts sets VulnerabilityCounts field to given value. + +### HasVulnerabilityCounts + +`func (o *HexPackageUpload) HasVulnerabilityCounts() bool` + +HasVulnerabilityCounts returns a boolean if a field has been set. + +### SetVulnerabilityCountsNil + +`func (o *HexPackageUpload) SetVulnerabilityCountsNil(b bool)` + + SetVulnerabilityCountsNil sets the value for VulnerabilityCounts to be an explicit nil + +### UnsetVulnerabilityCounts +`func (o *HexPackageUpload) UnsetVulnerabilityCounts()` + +UnsetVulnerabilityCounts ensures that no value is present for VulnerabilityCounts, not even an explicit nil ### GetVulnerabilityScanResultsUrl `func (o *HexPackageUpload) GetVulnerabilityScanResultsUrl() string` diff --git a/docs/HexPackageUploadRequest.md b/docs/HexPackageUploadRequest.md index 678bfed7..74dbf6ef 100644 --- a/docs/HexPackageUploadRequest.md +++ b/docs/HexPackageUploadRequest.md @@ -4,9 +4,11 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**IsMalwareDetected** | Pointer to **bool** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] [readonly] **PackageFile** | **string** | The primary file for the package. | **Republish** | Pointer to **bool** | If true, the uploaded package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate. | [optional] **Tags** | Pointer to **NullableString** | A comma-separated values list of tags to add to the package. | [optional] +**VulnerabilityCounts** | Pointer to [**NullableWebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] ## Methods @@ -27,6 +29,31 @@ NewHexPackageUploadRequestWithDefaults instantiates a new HexPackageUploadReques This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set +### GetIsMalwareDetected + +`func (o *HexPackageUploadRequest) GetIsMalwareDetected() bool` + +GetIsMalwareDetected returns the IsMalwareDetected field if non-nil, zero value otherwise. + +### GetIsMalwareDetectedOk + +`func (o *HexPackageUploadRequest) GetIsMalwareDetectedOk() (*bool, bool)` + +GetIsMalwareDetectedOk returns a tuple with the IsMalwareDetected field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIsMalwareDetected + +`func (o *HexPackageUploadRequest) SetIsMalwareDetected(v bool)` + +SetIsMalwareDetected sets IsMalwareDetected field to given value. + +### HasIsMalwareDetected + +`func (o *HexPackageUploadRequest) HasIsMalwareDetected() bool` + +HasIsMalwareDetected returns a boolean if a field has been set. + ### GetPackageFile `func (o *HexPackageUploadRequest) GetPackageFile() string` @@ -107,6 +134,41 @@ HasTags returns a boolean if a field has been set. `func (o *HexPackageUploadRequest) UnsetTags()` UnsetTags ensures that no value is present for Tags, not even an explicit nil +### GetVulnerabilityCounts + +`func (o *HexPackageUploadRequest) GetVulnerabilityCounts() WebOSVSeverityCounts` + +GetVulnerabilityCounts returns the VulnerabilityCounts field if non-nil, zero value otherwise. + +### GetVulnerabilityCountsOk + +`func (o *HexPackageUploadRequest) GetVulnerabilityCountsOk() (*WebOSVSeverityCounts, bool)` + +GetVulnerabilityCountsOk returns a tuple with the VulnerabilityCounts field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetVulnerabilityCounts + +`func (o *HexPackageUploadRequest) SetVulnerabilityCounts(v WebOSVSeverityCounts)` + +SetVulnerabilityCounts sets VulnerabilityCounts field to given value. + +### HasVulnerabilityCounts + +`func (o *HexPackageUploadRequest) HasVulnerabilityCounts() bool` + +HasVulnerabilityCounts returns a boolean if a field has been set. + +### SetVulnerabilityCountsNil + +`func (o *HexPackageUploadRequest) SetVulnerabilityCountsNil(b bool)` + + SetVulnerabilityCountsNil sets the value for VulnerabilityCounts to be an explicit nil + +### UnsetVulnerabilityCounts +`func (o *HexPackageUploadRequest) UnsetVulnerabilityCounts()` + +UnsetVulnerabilityCounts ensures that no value is present for VulnerabilityCounts, 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/HuggingfacePackageUpload.md b/docs/HuggingfacePackageUpload.md index b78a7c25..da3b7120 100644 --- a/docs/HuggingfacePackageUpload.md +++ b/docs/HuggingfacePackageUpload.md @@ -33,6 +33,7 @@ Name | Type | Description | Notes **IsDeleteable** | Pointer to **bool** | | [optional] [readonly] **IsDownloadable** | Pointer to **bool** | | [optional] [readonly] **IsHidden** | Pointer to **bool** | | [optional] [readonly] +**IsMalwareDetected** | Pointer to **bool** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] [readonly] **IsMoveable** | Pointer to **bool** | | [optional] [readonly] **IsQuarantinable** | Pointer to **bool** | | [optional] [readonly] **IsQuarantined** | Pointer to **bool** | | [optional] [readonly] @@ -89,6 +90,7 @@ Name | Type | Description | Notes **UploaderUrl** | Pointer to **string** | | [optional] [readonly] **Version** | Pointer to **NullableString** | The raw version for this package. | [optional] [readonly] **VersionOrig** | Pointer to **string** | | [optional] [readonly] +**VulnerabilityCounts** | Pointer to [**NullableWebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] **VulnerabilityScanResultsUrl** | Pointer to **string** | | [optional] [readonly] ## Methods @@ -895,6 +897,31 @@ SetIsHidden sets IsHidden field to given value. HasIsHidden returns a boolean if a field has been set. +### GetIsMalwareDetected + +`func (o *HuggingfacePackageUpload) GetIsMalwareDetected() bool` + +GetIsMalwareDetected returns the IsMalwareDetected field if non-nil, zero value otherwise. + +### GetIsMalwareDetectedOk + +`func (o *HuggingfacePackageUpload) GetIsMalwareDetectedOk() (*bool, bool)` + +GetIsMalwareDetectedOk returns a tuple with the IsMalwareDetected field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIsMalwareDetected + +`func (o *HuggingfacePackageUpload) SetIsMalwareDetected(v bool)` + +SetIsMalwareDetected sets IsMalwareDetected field to given value. + +### HasIsMalwareDetected + +`func (o *HuggingfacePackageUpload) HasIsMalwareDetected() bool` + +HasIsMalwareDetected returns a boolean if a field has been set. + ### GetIsMoveable `func (o *HuggingfacePackageUpload) GetIsMoveable() bool` @@ -2435,6 +2462,41 @@ SetVersionOrig sets VersionOrig field to given value. HasVersionOrig returns a boolean if a field has been set. +### GetVulnerabilityCounts + +`func (o *HuggingfacePackageUpload) GetVulnerabilityCounts() WebOSVSeverityCounts` + +GetVulnerabilityCounts returns the VulnerabilityCounts field if non-nil, zero value otherwise. + +### GetVulnerabilityCountsOk + +`func (o *HuggingfacePackageUpload) GetVulnerabilityCountsOk() (*WebOSVSeverityCounts, bool)` + +GetVulnerabilityCountsOk returns a tuple with the VulnerabilityCounts field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetVulnerabilityCounts + +`func (o *HuggingfacePackageUpload) SetVulnerabilityCounts(v WebOSVSeverityCounts)` + +SetVulnerabilityCounts sets VulnerabilityCounts field to given value. + +### HasVulnerabilityCounts + +`func (o *HuggingfacePackageUpload) HasVulnerabilityCounts() bool` + +HasVulnerabilityCounts returns a boolean if a field has been set. + +### SetVulnerabilityCountsNil + +`func (o *HuggingfacePackageUpload) SetVulnerabilityCountsNil(b bool)` + + SetVulnerabilityCountsNil sets the value for VulnerabilityCounts to be an explicit nil + +### UnsetVulnerabilityCounts +`func (o *HuggingfacePackageUpload) UnsetVulnerabilityCounts()` + +UnsetVulnerabilityCounts ensures that no value is present for VulnerabilityCounts, not even an explicit nil ### GetVulnerabilityScanResultsUrl `func (o *HuggingfacePackageUpload) GetVulnerabilityScanResultsUrl() string` diff --git a/docs/HuggingfacePackageUploadRequest.md b/docs/HuggingfacePackageUploadRequest.md index 81bef714..381b7fd7 100644 --- a/docs/HuggingfacePackageUploadRequest.md +++ b/docs/HuggingfacePackageUploadRequest.md @@ -4,9 +4,11 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**IsMalwareDetected** | Pointer to **bool** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] [readonly] **PackageFile** | **string** | The primary file for the package. | **Republish** | Pointer to **bool** | If true, the uploaded package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate. | [optional] **Tags** | Pointer to **NullableString** | A comma-separated values list of tags to add to the package. | [optional] +**VulnerabilityCounts** | Pointer to [**NullableWebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] ## Methods @@ -27,6 +29,31 @@ NewHuggingfacePackageUploadRequestWithDefaults instantiates a new HuggingfacePac This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set +### GetIsMalwareDetected + +`func (o *HuggingfacePackageUploadRequest) GetIsMalwareDetected() bool` + +GetIsMalwareDetected returns the IsMalwareDetected field if non-nil, zero value otherwise. + +### GetIsMalwareDetectedOk + +`func (o *HuggingfacePackageUploadRequest) GetIsMalwareDetectedOk() (*bool, bool)` + +GetIsMalwareDetectedOk returns a tuple with the IsMalwareDetected field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIsMalwareDetected + +`func (o *HuggingfacePackageUploadRequest) SetIsMalwareDetected(v bool)` + +SetIsMalwareDetected sets IsMalwareDetected field to given value. + +### HasIsMalwareDetected + +`func (o *HuggingfacePackageUploadRequest) HasIsMalwareDetected() bool` + +HasIsMalwareDetected returns a boolean if a field has been set. + ### GetPackageFile `func (o *HuggingfacePackageUploadRequest) GetPackageFile() string` @@ -107,6 +134,41 @@ HasTags returns a boolean if a field has been set. `func (o *HuggingfacePackageUploadRequest) UnsetTags()` UnsetTags ensures that no value is present for Tags, not even an explicit nil +### GetVulnerabilityCounts + +`func (o *HuggingfacePackageUploadRequest) GetVulnerabilityCounts() WebOSVSeverityCounts` + +GetVulnerabilityCounts returns the VulnerabilityCounts field if non-nil, zero value otherwise. + +### GetVulnerabilityCountsOk + +`func (o *HuggingfacePackageUploadRequest) GetVulnerabilityCountsOk() (*WebOSVSeverityCounts, bool)` + +GetVulnerabilityCountsOk returns a tuple with the VulnerabilityCounts field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetVulnerabilityCounts + +`func (o *HuggingfacePackageUploadRequest) SetVulnerabilityCounts(v WebOSVSeverityCounts)` + +SetVulnerabilityCounts sets VulnerabilityCounts field to given value. + +### HasVulnerabilityCounts + +`func (o *HuggingfacePackageUploadRequest) HasVulnerabilityCounts() bool` + +HasVulnerabilityCounts returns a boolean if a field has been set. + +### SetVulnerabilityCountsNil + +`func (o *HuggingfacePackageUploadRequest) SetVulnerabilityCountsNil(b bool)` + + SetVulnerabilityCountsNil sets the value for VulnerabilityCounts to be an explicit nil + +### UnsetVulnerabilityCounts +`func (o *HuggingfacePackageUploadRequest) UnsetVulnerabilityCounts()` + +UnsetVulnerabilityCounts ensures that no value is present for VulnerabilityCounts, 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/LuarocksPackageUpload.md b/docs/LuarocksPackageUpload.md index 2c70a954..0b5c8e0a 100644 --- a/docs/LuarocksPackageUpload.md +++ b/docs/LuarocksPackageUpload.md @@ -33,6 +33,7 @@ Name | Type | Description | Notes **IsDeleteable** | Pointer to **bool** | | [optional] [readonly] **IsDownloadable** | Pointer to **bool** | | [optional] [readonly] **IsHidden** | Pointer to **bool** | | [optional] [readonly] +**IsMalwareDetected** | Pointer to **bool** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] [readonly] **IsMoveable** | Pointer to **bool** | | [optional] [readonly] **IsQuarantinable** | Pointer to **bool** | | [optional] [readonly] **IsQuarantined** | Pointer to **bool** | | [optional] [readonly] @@ -89,6 +90,7 @@ Name | Type | Description | Notes **UploaderUrl** | Pointer to **string** | | [optional] [readonly] **Version** | Pointer to **NullableString** | The raw version for this package. | [optional] [readonly] **VersionOrig** | Pointer to **string** | | [optional] [readonly] +**VulnerabilityCounts** | Pointer to [**NullableWebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] **VulnerabilityScanResultsUrl** | Pointer to **string** | | [optional] [readonly] ## Methods @@ -895,6 +897,31 @@ SetIsHidden sets IsHidden field to given value. HasIsHidden returns a boolean if a field has been set. +### GetIsMalwareDetected + +`func (o *LuarocksPackageUpload) GetIsMalwareDetected() bool` + +GetIsMalwareDetected returns the IsMalwareDetected field if non-nil, zero value otherwise. + +### GetIsMalwareDetectedOk + +`func (o *LuarocksPackageUpload) GetIsMalwareDetectedOk() (*bool, bool)` + +GetIsMalwareDetectedOk returns a tuple with the IsMalwareDetected field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIsMalwareDetected + +`func (o *LuarocksPackageUpload) SetIsMalwareDetected(v bool)` + +SetIsMalwareDetected sets IsMalwareDetected field to given value. + +### HasIsMalwareDetected + +`func (o *LuarocksPackageUpload) HasIsMalwareDetected() bool` + +HasIsMalwareDetected returns a boolean if a field has been set. + ### GetIsMoveable `func (o *LuarocksPackageUpload) GetIsMoveable() bool` @@ -2435,6 +2462,41 @@ SetVersionOrig sets VersionOrig field to given value. HasVersionOrig returns a boolean if a field has been set. +### GetVulnerabilityCounts + +`func (o *LuarocksPackageUpload) GetVulnerabilityCounts() WebOSVSeverityCounts` + +GetVulnerabilityCounts returns the VulnerabilityCounts field if non-nil, zero value otherwise. + +### GetVulnerabilityCountsOk + +`func (o *LuarocksPackageUpload) GetVulnerabilityCountsOk() (*WebOSVSeverityCounts, bool)` + +GetVulnerabilityCountsOk returns a tuple with the VulnerabilityCounts field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetVulnerabilityCounts + +`func (o *LuarocksPackageUpload) SetVulnerabilityCounts(v WebOSVSeverityCounts)` + +SetVulnerabilityCounts sets VulnerabilityCounts field to given value. + +### HasVulnerabilityCounts + +`func (o *LuarocksPackageUpload) HasVulnerabilityCounts() bool` + +HasVulnerabilityCounts returns a boolean if a field has been set. + +### SetVulnerabilityCountsNil + +`func (o *LuarocksPackageUpload) SetVulnerabilityCountsNil(b bool)` + + SetVulnerabilityCountsNil sets the value for VulnerabilityCounts to be an explicit nil + +### UnsetVulnerabilityCounts +`func (o *LuarocksPackageUpload) UnsetVulnerabilityCounts()` + +UnsetVulnerabilityCounts ensures that no value is present for VulnerabilityCounts, not even an explicit nil ### GetVulnerabilityScanResultsUrl `func (o *LuarocksPackageUpload) GetVulnerabilityScanResultsUrl() string` diff --git a/docs/LuarocksPackageUploadRequest.md b/docs/LuarocksPackageUploadRequest.md index 537ea03e..448ab09b 100644 --- a/docs/LuarocksPackageUploadRequest.md +++ b/docs/LuarocksPackageUploadRequest.md @@ -4,9 +4,11 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**IsMalwareDetected** | Pointer to **bool** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] [readonly] **PackageFile** | **string** | The primary file for the package. | **Republish** | Pointer to **bool** | If true, the uploaded package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate. | [optional] **Tags** | Pointer to **NullableString** | A comma-separated values list of tags to add to the package. | [optional] +**VulnerabilityCounts** | Pointer to [**NullableWebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] ## Methods @@ -27,6 +29,31 @@ NewLuarocksPackageUploadRequestWithDefaults instantiates a new LuarocksPackageUp This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set +### GetIsMalwareDetected + +`func (o *LuarocksPackageUploadRequest) GetIsMalwareDetected() bool` + +GetIsMalwareDetected returns the IsMalwareDetected field if non-nil, zero value otherwise. + +### GetIsMalwareDetectedOk + +`func (o *LuarocksPackageUploadRequest) GetIsMalwareDetectedOk() (*bool, bool)` + +GetIsMalwareDetectedOk returns a tuple with the IsMalwareDetected field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIsMalwareDetected + +`func (o *LuarocksPackageUploadRequest) SetIsMalwareDetected(v bool)` + +SetIsMalwareDetected sets IsMalwareDetected field to given value. + +### HasIsMalwareDetected + +`func (o *LuarocksPackageUploadRequest) HasIsMalwareDetected() bool` + +HasIsMalwareDetected returns a boolean if a field has been set. + ### GetPackageFile `func (o *LuarocksPackageUploadRequest) GetPackageFile() string` @@ -107,6 +134,41 @@ HasTags returns a boolean if a field has been set. `func (o *LuarocksPackageUploadRequest) UnsetTags()` UnsetTags ensures that no value is present for Tags, not even an explicit nil +### GetVulnerabilityCounts + +`func (o *LuarocksPackageUploadRequest) GetVulnerabilityCounts() WebOSVSeverityCounts` + +GetVulnerabilityCounts returns the VulnerabilityCounts field if non-nil, zero value otherwise. + +### GetVulnerabilityCountsOk + +`func (o *LuarocksPackageUploadRequest) GetVulnerabilityCountsOk() (*WebOSVSeverityCounts, bool)` + +GetVulnerabilityCountsOk returns a tuple with the VulnerabilityCounts field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetVulnerabilityCounts + +`func (o *LuarocksPackageUploadRequest) SetVulnerabilityCounts(v WebOSVSeverityCounts)` + +SetVulnerabilityCounts sets VulnerabilityCounts field to given value. + +### HasVulnerabilityCounts + +`func (o *LuarocksPackageUploadRequest) HasVulnerabilityCounts() bool` + +HasVulnerabilityCounts returns a boolean if a field has been set. + +### SetVulnerabilityCountsNil + +`func (o *LuarocksPackageUploadRequest) SetVulnerabilityCountsNil(b bool)` + + SetVulnerabilityCountsNil sets the value for VulnerabilityCounts to be an explicit nil + +### UnsetVulnerabilityCounts +`func (o *LuarocksPackageUploadRequest) UnsetVulnerabilityCounts()` + +UnsetVulnerabilityCounts ensures that no value is present for VulnerabilityCounts, 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/MavenPackageUpload.md b/docs/MavenPackageUpload.md index 78646ee9..23465458 100644 --- a/docs/MavenPackageUpload.md +++ b/docs/MavenPackageUpload.md @@ -35,6 +35,7 @@ Name | Type | Description | Notes **IsDeleteable** | Pointer to **bool** | | [optional] [readonly] **IsDownloadable** | Pointer to **bool** | | [optional] [readonly] **IsHidden** | Pointer to **bool** | | [optional] [readonly] +**IsMalwareDetected** | Pointer to **bool** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] [readonly] **IsMoveable** | Pointer to **bool** | | [optional] [readonly] **IsQuarantinable** | Pointer to **bool** | | [optional] [readonly] **IsQuarantined** | Pointer to **bool** | | [optional] [readonly] @@ -94,6 +95,7 @@ Name | Type | Description | Notes **UploaderUrl** | Pointer to **string** | | [optional] [readonly] **Version** | Pointer to **NullableString** | The raw version for this package. | [optional] **VersionOrig** | Pointer to **string** | | [optional] [readonly] +**VulnerabilityCounts** | Pointer to [**NullableWebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] **VulnerabilityScanResultsUrl** | Pointer to **string** | | [optional] [readonly] ## Methods @@ -970,6 +972,31 @@ SetIsHidden sets IsHidden field to given value. HasIsHidden returns a boolean if a field has been set. +### GetIsMalwareDetected + +`func (o *MavenPackageUpload) GetIsMalwareDetected() bool` + +GetIsMalwareDetected returns the IsMalwareDetected field if non-nil, zero value otherwise. + +### GetIsMalwareDetectedOk + +`func (o *MavenPackageUpload) GetIsMalwareDetectedOk() (*bool, bool)` + +GetIsMalwareDetectedOk returns a tuple with the IsMalwareDetected field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIsMalwareDetected + +`func (o *MavenPackageUpload) SetIsMalwareDetected(v bool)` + +SetIsMalwareDetected sets IsMalwareDetected field to given value. + +### HasIsMalwareDetected + +`func (o *MavenPackageUpload) HasIsMalwareDetected() bool` + +HasIsMalwareDetected returns a boolean if a field has been set. + ### GetIsMoveable `func (o *MavenPackageUpload) GetIsMoveable() bool` @@ -2615,6 +2642,41 @@ SetVersionOrig sets VersionOrig field to given value. HasVersionOrig returns a boolean if a field has been set. +### GetVulnerabilityCounts + +`func (o *MavenPackageUpload) GetVulnerabilityCounts() WebOSVSeverityCounts` + +GetVulnerabilityCounts returns the VulnerabilityCounts field if non-nil, zero value otherwise. + +### GetVulnerabilityCountsOk + +`func (o *MavenPackageUpload) GetVulnerabilityCountsOk() (*WebOSVSeverityCounts, bool)` + +GetVulnerabilityCountsOk returns a tuple with the VulnerabilityCounts field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetVulnerabilityCounts + +`func (o *MavenPackageUpload) SetVulnerabilityCounts(v WebOSVSeverityCounts)` + +SetVulnerabilityCounts sets VulnerabilityCounts field to given value. + +### HasVulnerabilityCounts + +`func (o *MavenPackageUpload) HasVulnerabilityCounts() bool` + +HasVulnerabilityCounts returns a boolean if a field has been set. + +### SetVulnerabilityCountsNil + +`func (o *MavenPackageUpload) SetVulnerabilityCountsNil(b bool)` + + SetVulnerabilityCountsNil sets the value for VulnerabilityCounts to be an explicit nil + +### UnsetVulnerabilityCounts +`func (o *MavenPackageUpload) UnsetVulnerabilityCounts()` + +UnsetVulnerabilityCounts ensures that no value is present for VulnerabilityCounts, not even an explicit nil ### GetVulnerabilityScanResultsUrl `func (o *MavenPackageUpload) GetVulnerabilityScanResultsUrl() string` diff --git a/docs/MavenPackageUploadRequest.md b/docs/MavenPackageUploadRequest.md index 6f475bda..015527c8 100644 --- a/docs/MavenPackageUploadRequest.md +++ b/docs/MavenPackageUploadRequest.md @@ -7,6 +7,7 @@ Name | Type | Description | Notes **ArtifactId** | Pointer to **NullableString** | The ID of the artifact. | [optional] **ExtraFiles** | Pointer to **[]string** | Extra files to include in the package. This can be a single file or multiple files. | [optional] **GroupId** | Pointer to **NullableString** | Artifact's group ID. | [optional] +**IsMalwareDetected** | Pointer to **bool** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] [readonly] **IvyFile** | Pointer to **NullableString** | The ivy file is an XML file describing the dependencies of the project. | [optional] **JavadocFile** | Pointer to **NullableString** | Adds bundled Java documentation to the Maven package | [optional] **PackageFile** | **string** | The primary file for the package. | @@ -19,6 +20,7 @@ Name | Type | Description | Notes **Tags** | Pointer to **NullableString** | A comma-separated values list of tags to add to the package. | [optional] **TestsFile** | Pointer to **NullableString** | Adds bundled Java tests to the Maven package. | [optional] **Version** | Pointer to **NullableString** | The raw version for this package. | [optional] +**VulnerabilityCounts** | Pointer to [**NullableWebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] ## Methods @@ -144,6 +146,31 @@ HasGroupId returns a boolean if a field has been set. `func (o *MavenPackageUploadRequest) UnsetGroupId()` UnsetGroupId ensures that no value is present for GroupId, not even an explicit nil +### GetIsMalwareDetected + +`func (o *MavenPackageUploadRequest) GetIsMalwareDetected() bool` + +GetIsMalwareDetected returns the IsMalwareDetected field if non-nil, zero value otherwise. + +### GetIsMalwareDetectedOk + +`func (o *MavenPackageUploadRequest) GetIsMalwareDetectedOk() (*bool, bool)` + +GetIsMalwareDetectedOk returns a tuple with the IsMalwareDetected field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIsMalwareDetected + +`func (o *MavenPackageUploadRequest) SetIsMalwareDetected(v bool)` + +SetIsMalwareDetected sets IsMalwareDetected field to given value. + +### HasIsMalwareDetected + +`func (o *MavenPackageUploadRequest) HasIsMalwareDetected() bool` + +HasIsMalwareDetected returns a boolean if a field has been set. + ### GetIvyFile `func (o *MavenPackageUploadRequest) GetIvyFile() string` @@ -539,6 +566,41 @@ HasVersion returns a boolean if a field has been set. `func (o *MavenPackageUploadRequest) UnsetVersion()` UnsetVersion ensures that no value is present for Version, not even an explicit nil +### GetVulnerabilityCounts + +`func (o *MavenPackageUploadRequest) GetVulnerabilityCounts() WebOSVSeverityCounts` + +GetVulnerabilityCounts returns the VulnerabilityCounts field if non-nil, zero value otherwise. + +### GetVulnerabilityCountsOk + +`func (o *MavenPackageUploadRequest) GetVulnerabilityCountsOk() (*WebOSVSeverityCounts, bool)` + +GetVulnerabilityCountsOk returns a tuple with the VulnerabilityCounts field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetVulnerabilityCounts + +`func (o *MavenPackageUploadRequest) SetVulnerabilityCounts(v WebOSVSeverityCounts)` + +SetVulnerabilityCounts sets VulnerabilityCounts field to given value. + +### HasVulnerabilityCounts + +`func (o *MavenPackageUploadRequest) HasVulnerabilityCounts() bool` + +HasVulnerabilityCounts returns a boolean if a field has been set. + +### SetVulnerabilityCountsNil + +`func (o *MavenPackageUploadRequest) SetVulnerabilityCountsNil(b bool)` + + SetVulnerabilityCountsNil sets the value for VulnerabilityCounts to be an explicit nil + +### UnsetVulnerabilityCounts +`func (o *MavenPackageUploadRequest) UnsetVulnerabilityCounts()` + +UnsetVulnerabilityCounts ensures that no value is present for VulnerabilityCounts, 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/McpPackageUpload.md b/docs/McpPackageUpload.md index 45538161..50b591d8 100644 --- a/docs/McpPackageUpload.md +++ b/docs/McpPackageUpload.md @@ -33,6 +33,7 @@ Name | Type | Description | Notes **IsDeleteable** | Pointer to **bool** | | [optional] [readonly] **IsDownloadable** | Pointer to **bool** | | [optional] [readonly] **IsHidden** | Pointer to **bool** | | [optional] [readonly] +**IsMalwareDetected** | Pointer to **bool** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] [readonly] **IsMoveable** | Pointer to **bool** | | [optional] [readonly] **IsQuarantinable** | Pointer to **bool** | | [optional] [readonly] **IsQuarantined** | Pointer to **bool** | | [optional] [readonly] @@ -89,6 +90,7 @@ Name | Type | Description | Notes **UploaderUrl** | Pointer to **string** | | [optional] [readonly] **Version** | Pointer to **NullableString** | The raw version for this package. | [optional] **VersionOrig** | Pointer to **string** | | [optional] [readonly] +**VulnerabilityCounts** | Pointer to [**NullableWebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] **VulnerabilityScanResultsUrl** | Pointer to **string** | | [optional] [readonly] ## Methods @@ -895,6 +897,31 @@ SetIsHidden sets IsHidden field to given value. HasIsHidden returns a boolean if a field has been set. +### GetIsMalwareDetected + +`func (o *McpPackageUpload) GetIsMalwareDetected() bool` + +GetIsMalwareDetected returns the IsMalwareDetected field if non-nil, zero value otherwise. + +### GetIsMalwareDetectedOk + +`func (o *McpPackageUpload) GetIsMalwareDetectedOk() (*bool, bool)` + +GetIsMalwareDetectedOk returns a tuple with the IsMalwareDetected field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIsMalwareDetected + +`func (o *McpPackageUpload) SetIsMalwareDetected(v bool)` + +SetIsMalwareDetected sets IsMalwareDetected field to given value. + +### HasIsMalwareDetected + +`func (o *McpPackageUpload) HasIsMalwareDetected() bool` + +HasIsMalwareDetected returns a boolean if a field has been set. + ### GetIsMoveable `func (o *McpPackageUpload) GetIsMoveable() bool` @@ -2435,6 +2462,41 @@ SetVersionOrig sets VersionOrig field to given value. HasVersionOrig returns a boolean if a field has been set. +### GetVulnerabilityCounts + +`func (o *McpPackageUpload) GetVulnerabilityCounts() WebOSVSeverityCounts` + +GetVulnerabilityCounts returns the VulnerabilityCounts field if non-nil, zero value otherwise. + +### GetVulnerabilityCountsOk + +`func (o *McpPackageUpload) GetVulnerabilityCountsOk() (*WebOSVSeverityCounts, bool)` + +GetVulnerabilityCountsOk returns a tuple with the VulnerabilityCounts field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetVulnerabilityCounts + +`func (o *McpPackageUpload) SetVulnerabilityCounts(v WebOSVSeverityCounts)` + +SetVulnerabilityCounts sets VulnerabilityCounts field to given value. + +### HasVulnerabilityCounts + +`func (o *McpPackageUpload) HasVulnerabilityCounts() bool` + +HasVulnerabilityCounts returns a boolean if a field has been set. + +### SetVulnerabilityCountsNil + +`func (o *McpPackageUpload) SetVulnerabilityCountsNil(b bool)` + + SetVulnerabilityCountsNil sets the value for VulnerabilityCounts to be an explicit nil + +### UnsetVulnerabilityCounts +`func (o *McpPackageUpload) UnsetVulnerabilityCounts()` + +UnsetVulnerabilityCounts ensures that no value is present for VulnerabilityCounts, not even an explicit nil ### GetVulnerabilityScanResultsUrl `func (o *McpPackageUpload) GetVulnerabilityScanResultsUrl() string` diff --git a/docs/McpPackageUploadRequest.md b/docs/McpPackageUploadRequest.md index e74d688c..19a3f432 100644 --- a/docs/McpPackageUploadRequest.md +++ b/docs/McpPackageUploadRequest.md @@ -4,10 +4,12 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**IsMalwareDetected** | Pointer to **bool** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] [readonly] **PackageFile** | **string** | The primary file for the package. | **Republish** | Pointer to **bool** | If true, the uploaded package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate. | [optional] **Tags** | Pointer to **NullableString** | A comma-separated values list of tags to add to the package. | [optional] **Version** | Pointer to **NullableString** | The raw version for this package. | [optional] +**VulnerabilityCounts** | Pointer to [**NullableWebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] ## Methods @@ -28,6 +30,31 @@ NewMcpPackageUploadRequestWithDefaults instantiates a new McpPackageUploadReques This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set +### GetIsMalwareDetected + +`func (o *McpPackageUploadRequest) GetIsMalwareDetected() bool` + +GetIsMalwareDetected returns the IsMalwareDetected field if non-nil, zero value otherwise. + +### GetIsMalwareDetectedOk + +`func (o *McpPackageUploadRequest) GetIsMalwareDetectedOk() (*bool, bool)` + +GetIsMalwareDetectedOk returns a tuple with the IsMalwareDetected field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIsMalwareDetected + +`func (o *McpPackageUploadRequest) SetIsMalwareDetected(v bool)` + +SetIsMalwareDetected sets IsMalwareDetected field to given value. + +### HasIsMalwareDetected + +`func (o *McpPackageUploadRequest) HasIsMalwareDetected() bool` + +HasIsMalwareDetected returns a boolean if a field has been set. + ### GetPackageFile `func (o *McpPackageUploadRequest) GetPackageFile() string` @@ -143,6 +170,41 @@ HasVersion returns a boolean if a field has been set. `func (o *McpPackageUploadRequest) UnsetVersion()` UnsetVersion ensures that no value is present for Version, not even an explicit nil +### GetVulnerabilityCounts + +`func (o *McpPackageUploadRequest) GetVulnerabilityCounts() WebOSVSeverityCounts` + +GetVulnerabilityCounts returns the VulnerabilityCounts field if non-nil, zero value otherwise. + +### GetVulnerabilityCountsOk + +`func (o *McpPackageUploadRequest) GetVulnerabilityCountsOk() (*WebOSVSeverityCounts, bool)` + +GetVulnerabilityCountsOk returns a tuple with the VulnerabilityCounts field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetVulnerabilityCounts + +`func (o *McpPackageUploadRequest) SetVulnerabilityCounts(v WebOSVSeverityCounts)` + +SetVulnerabilityCounts sets VulnerabilityCounts field to given value. + +### HasVulnerabilityCounts + +`func (o *McpPackageUploadRequest) HasVulnerabilityCounts() bool` + +HasVulnerabilityCounts returns a boolean if a field has been set. + +### SetVulnerabilityCountsNil + +`func (o *McpPackageUploadRequest) SetVulnerabilityCountsNil(b bool)` + + SetVulnerabilityCountsNil sets the value for VulnerabilityCounts to be an explicit nil + +### UnsetVulnerabilityCounts +`func (o *McpPackageUploadRequest) UnsetVulnerabilityCounts()` + +UnsetVulnerabilityCounts ensures that no value is present for VulnerabilityCounts, 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/NpmPackageUpload.md b/docs/NpmPackageUpload.md index fd18f2c1..f9a24aef 100644 --- a/docs/NpmPackageUpload.md +++ b/docs/NpmPackageUpload.md @@ -33,6 +33,7 @@ Name | Type | Description | Notes **IsDeleteable** | Pointer to **bool** | | [optional] [readonly] **IsDownloadable** | Pointer to **bool** | | [optional] [readonly] **IsHidden** | Pointer to **bool** | | [optional] [readonly] +**IsMalwareDetected** | Pointer to **bool** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] [readonly] **IsMoveable** | Pointer to **bool** | | [optional] [readonly] **IsQuarantinable** | Pointer to **bool** | | [optional] [readonly] **IsQuarantined** | Pointer to **bool** | | [optional] [readonly] @@ -89,6 +90,7 @@ Name | Type | Description | Notes **UploaderUrl** | Pointer to **string** | | [optional] [readonly] **Version** | Pointer to **NullableString** | The raw version for this package. | [optional] [readonly] **VersionOrig** | Pointer to **string** | | [optional] [readonly] +**VulnerabilityCounts** | Pointer to [**NullableWebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] **VulnerabilityScanResultsUrl** | Pointer to **string** | | [optional] [readonly] ## Methods @@ -895,6 +897,31 @@ SetIsHidden sets IsHidden field to given value. HasIsHidden returns a boolean if a field has been set. +### GetIsMalwareDetected + +`func (o *NpmPackageUpload) GetIsMalwareDetected() bool` + +GetIsMalwareDetected returns the IsMalwareDetected field if non-nil, zero value otherwise. + +### GetIsMalwareDetectedOk + +`func (o *NpmPackageUpload) GetIsMalwareDetectedOk() (*bool, bool)` + +GetIsMalwareDetectedOk returns a tuple with the IsMalwareDetected field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIsMalwareDetected + +`func (o *NpmPackageUpload) SetIsMalwareDetected(v bool)` + +SetIsMalwareDetected sets IsMalwareDetected field to given value. + +### HasIsMalwareDetected + +`func (o *NpmPackageUpload) HasIsMalwareDetected() bool` + +HasIsMalwareDetected returns a boolean if a field has been set. + ### GetIsMoveable `func (o *NpmPackageUpload) GetIsMoveable() bool` @@ -2435,6 +2462,41 @@ SetVersionOrig sets VersionOrig field to given value. HasVersionOrig returns a boolean if a field has been set. +### GetVulnerabilityCounts + +`func (o *NpmPackageUpload) GetVulnerabilityCounts() WebOSVSeverityCounts` + +GetVulnerabilityCounts returns the VulnerabilityCounts field if non-nil, zero value otherwise. + +### GetVulnerabilityCountsOk + +`func (o *NpmPackageUpload) GetVulnerabilityCountsOk() (*WebOSVSeverityCounts, bool)` + +GetVulnerabilityCountsOk returns a tuple with the VulnerabilityCounts field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetVulnerabilityCounts + +`func (o *NpmPackageUpload) SetVulnerabilityCounts(v WebOSVSeverityCounts)` + +SetVulnerabilityCounts sets VulnerabilityCounts field to given value. + +### HasVulnerabilityCounts + +`func (o *NpmPackageUpload) HasVulnerabilityCounts() bool` + +HasVulnerabilityCounts returns a boolean if a field has been set. + +### SetVulnerabilityCountsNil + +`func (o *NpmPackageUpload) SetVulnerabilityCountsNil(b bool)` + + SetVulnerabilityCountsNil sets the value for VulnerabilityCounts to be an explicit nil + +### UnsetVulnerabilityCounts +`func (o *NpmPackageUpload) UnsetVulnerabilityCounts()` + +UnsetVulnerabilityCounts ensures that no value is present for VulnerabilityCounts, not even an explicit nil ### GetVulnerabilityScanResultsUrl `func (o *NpmPackageUpload) GetVulnerabilityScanResultsUrl() string` diff --git a/docs/NpmPackageUploadRequest.md b/docs/NpmPackageUploadRequest.md index 976d08bf..8e21c5e2 100644 --- a/docs/NpmPackageUploadRequest.md +++ b/docs/NpmPackageUploadRequest.md @@ -4,10 +4,12 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**IsMalwareDetected** | Pointer to **bool** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] [readonly] **NpmDistTag** | Pointer to **NullableString** | The default npm dist-tag for this package/version - This will replace any other package/version if they are using the same tag. | [optional] [default to "latest"] **PackageFile** | **string** | The primary file for the package. | **Republish** | Pointer to **bool** | If true, the uploaded package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate. | [optional] **Tags** | Pointer to **NullableString** | A comma-separated values list of tags to add to the package. | [optional] +**VulnerabilityCounts** | Pointer to [**NullableWebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] ## Methods @@ -28,6 +30,31 @@ NewNpmPackageUploadRequestWithDefaults instantiates a new NpmPackageUploadReques This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set +### GetIsMalwareDetected + +`func (o *NpmPackageUploadRequest) GetIsMalwareDetected() bool` + +GetIsMalwareDetected returns the IsMalwareDetected field if non-nil, zero value otherwise. + +### GetIsMalwareDetectedOk + +`func (o *NpmPackageUploadRequest) GetIsMalwareDetectedOk() (*bool, bool)` + +GetIsMalwareDetectedOk returns a tuple with the IsMalwareDetected field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIsMalwareDetected + +`func (o *NpmPackageUploadRequest) SetIsMalwareDetected(v bool)` + +SetIsMalwareDetected sets IsMalwareDetected field to given value. + +### HasIsMalwareDetected + +`func (o *NpmPackageUploadRequest) HasIsMalwareDetected() bool` + +HasIsMalwareDetected returns a boolean if a field has been set. + ### GetNpmDistTag `func (o *NpmPackageUploadRequest) GetNpmDistTag() string` @@ -143,6 +170,41 @@ HasTags returns a boolean if a field has been set. `func (o *NpmPackageUploadRequest) UnsetTags()` UnsetTags ensures that no value is present for Tags, not even an explicit nil +### GetVulnerabilityCounts + +`func (o *NpmPackageUploadRequest) GetVulnerabilityCounts() WebOSVSeverityCounts` + +GetVulnerabilityCounts returns the VulnerabilityCounts field if non-nil, zero value otherwise. + +### GetVulnerabilityCountsOk + +`func (o *NpmPackageUploadRequest) GetVulnerabilityCountsOk() (*WebOSVSeverityCounts, bool)` + +GetVulnerabilityCountsOk returns a tuple with the VulnerabilityCounts field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetVulnerabilityCounts + +`func (o *NpmPackageUploadRequest) SetVulnerabilityCounts(v WebOSVSeverityCounts)` + +SetVulnerabilityCounts sets VulnerabilityCounts field to given value. + +### HasVulnerabilityCounts + +`func (o *NpmPackageUploadRequest) HasVulnerabilityCounts() bool` + +HasVulnerabilityCounts returns a boolean if a field has been set. + +### SetVulnerabilityCountsNil + +`func (o *NpmPackageUploadRequest) SetVulnerabilityCountsNil(b bool)` + + SetVulnerabilityCountsNil sets the value for VulnerabilityCounts to be an explicit nil + +### UnsetVulnerabilityCounts +`func (o *NpmPackageUploadRequest) UnsetVulnerabilityCounts()` + +UnsetVulnerabilityCounts ensures that no value is present for VulnerabilityCounts, 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/NugetPackageUpload.md b/docs/NugetPackageUpload.md index b2da5029..4079f0c6 100644 --- a/docs/NugetPackageUpload.md +++ b/docs/NugetPackageUpload.md @@ -33,6 +33,7 @@ Name | Type | Description | Notes **IsDeleteable** | Pointer to **bool** | | [optional] [readonly] **IsDownloadable** | Pointer to **bool** | | [optional] [readonly] **IsHidden** | Pointer to **bool** | | [optional] [readonly] +**IsMalwareDetected** | Pointer to **bool** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] [readonly] **IsMoveable** | Pointer to **bool** | | [optional] [readonly] **IsQuarantinable** | Pointer to **bool** | | [optional] [readonly] **IsQuarantined** | Pointer to **bool** | | [optional] [readonly] @@ -89,6 +90,7 @@ Name | Type | Description | Notes **UploaderUrl** | Pointer to **string** | | [optional] [readonly] **Version** | Pointer to **NullableString** | The raw version for this package. | [optional] [readonly] **VersionOrig** | Pointer to **string** | | [optional] [readonly] +**VulnerabilityCounts** | Pointer to [**NullableWebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] **VulnerabilityScanResultsUrl** | Pointer to **string** | | [optional] [readonly] ## Methods @@ -895,6 +897,31 @@ SetIsHidden sets IsHidden field to given value. HasIsHidden returns a boolean if a field has been set. +### GetIsMalwareDetected + +`func (o *NugetPackageUpload) GetIsMalwareDetected() bool` + +GetIsMalwareDetected returns the IsMalwareDetected field if non-nil, zero value otherwise. + +### GetIsMalwareDetectedOk + +`func (o *NugetPackageUpload) GetIsMalwareDetectedOk() (*bool, bool)` + +GetIsMalwareDetectedOk returns a tuple with the IsMalwareDetected field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIsMalwareDetected + +`func (o *NugetPackageUpload) SetIsMalwareDetected(v bool)` + +SetIsMalwareDetected sets IsMalwareDetected field to given value. + +### HasIsMalwareDetected + +`func (o *NugetPackageUpload) HasIsMalwareDetected() bool` + +HasIsMalwareDetected returns a boolean if a field has been set. + ### GetIsMoveable `func (o *NugetPackageUpload) GetIsMoveable() bool` @@ -2435,6 +2462,41 @@ SetVersionOrig sets VersionOrig field to given value. HasVersionOrig returns a boolean if a field has been set. +### GetVulnerabilityCounts + +`func (o *NugetPackageUpload) GetVulnerabilityCounts() WebOSVSeverityCounts` + +GetVulnerabilityCounts returns the VulnerabilityCounts field if non-nil, zero value otherwise. + +### GetVulnerabilityCountsOk + +`func (o *NugetPackageUpload) GetVulnerabilityCountsOk() (*WebOSVSeverityCounts, bool)` + +GetVulnerabilityCountsOk returns a tuple with the VulnerabilityCounts field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetVulnerabilityCounts + +`func (o *NugetPackageUpload) SetVulnerabilityCounts(v WebOSVSeverityCounts)` + +SetVulnerabilityCounts sets VulnerabilityCounts field to given value. + +### HasVulnerabilityCounts + +`func (o *NugetPackageUpload) HasVulnerabilityCounts() bool` + +HasVulnerabilityCounts returns a boolean if a field has been set. + +### SetVulnerabilityCountsNil + +`func (o *NugetPackageUpload) SetVulnerabilityCountsNil(b bool)` + + SetVulnerabilityCountsNil sets the value for VulnerabilityCounts to be an explicit nil + +### UnsetVulnerabilityCounts +`func (o *NugetPackageUpload) UnsetVulnerabilityCounts()` + +UnsetVulnerabilityCounts ensures that no value is present for VulnerabilityCounts, not even an explicit nil ### GetVulnerabilityScanResultsUrl `func (o *NugetPackageUpload) GetVulnerabilityScanResultsUrl() string` diff --git a/docs/NugetPackageUploadRequest.md b/docs/NugetPackageUploadRequest.md index 3a4b757c..886a7405 100644 --- a/docs/NugetPackageUploadRequest.md +++ b/docs/NugetPackageUploadRequest.md @@ -4,10 +4,12 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**IsMalwareDetected** | Pointer to **bool** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] [readonly] **PackageFile** | **string** | The primary file for the package. | **Republish** | Pointer to **bool** | If true, the uploaded package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate. | [optional] **SymbolsFile** | Pointer to **NullableString** | Uploads a symbols file as a separate package | [optional] **Tags** | Pointer to **NullableString** | A comma-separated values list of tags to add to the package. | [optional] +**VulnerabilityCounts** | Pointer to [**NullableWebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] ## Methods @@ -28,6 +30,31 @@ NewNugetPackageUploadRequestWithDefaults instantiates a new NugetPackageUploadRe This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set +### GetIsMalwareDetected + +`func (o *NugetPackageUploadRequest) GetIsMalwareDetected() bool` + +GetIsMalwareDetected returns the IsMalwareDetected field if non-nil, zero value otherwise. + +### GetIsMalwareDetectedOk + +`func (o *NugetPackageUploadRequest) GetIsMalwareDetectedOk() (*bool, bool)` + +GetIsMalwareDetectedOk returns a tuple with the IsMalwareDetected field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIsMalwareDetected + +`func (o *NugetPackageUploadRequest) SetIsMalwareDetected(v bool)` + +SetIsMalwareDetected sets IsMalwareDetected field to given value. + +### HasIsMalwareDetected + +`func (o *NugetPackageUploadRequest) HasIsMalwareDetected() bool` + +HasIsMalwareDetected returns a boolean if a field has been set. + ### GetPackageFile `func (o *NugetPackageUploadRequest) GetPackageFile() string` @@ -143,6 +170,41 @@ HasTags returns a boolean if a field has been set. `func (o *NugetPackageUploadRequest) UnsetTags()` UnsetTags ensures that no value is present for Tags, not even an explicit nil +### GetVulnerabilityCounts + +`func (o *NugetPackageUploadRequest) GetVulnerabilityCounts() WebOSVSeverityCounts` + +GetVulnerabilityCounts returns the VulnerabilityCounts field if non-nil, zero value otherwise. + +### GetVulnerabilityCountsOk + +`func (o *NugetPackageUploadRequest) GetVulnerabilityCountsOk() (*WebOSVSeverityCounts, bool)` + +GetVulnerabilityCountsOk returns a tuple with the VulnerabilityCounts field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetVulnerabilityCounts + +`func (o *NugetPackageUploadRequest) SetVulnerabilityCounts(v WebOSVSeverityCounts)` + +SetVulnerabilityCounts sets VulnerabilityCounts field to given value. + +### HasVulnerabilityCounts + +`func (o *NugetPackageUploadRequest) HasVulnerabilityCounts() bool` + +HasVulnerabilityCounts returns a boolean if a field has been set. + +### SetVulnerabilityCountsNil + +`func (o *NugetPackageUploadRequest) SetVulnerabilityCountsNil(b bool)` + + SetVulnerabilityCountsNil sets the value for VulnerabilityCounts to be an explicit nil + +### UnsetVulnerabilityCounts +`func (o *NugetPackageUploadRequest) UnsetVulnerabilityCounts()` + +UnsetVulnerabilityCounts ensures that no value is present for VulnerabilityCounts, 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/P2PackageUpload.md b/docs/P2PackageUpload.md index 469bd75b..0e647a78 100644 --- a/docs/P2PackageUpload.md +++ b/docs/P2PackageUpload.md @@ -33,6 +33,7 @@ Name | Type | Description | Notes **IsDeleteable** | Pointer to **bool** | | [optional] [readonly] **IsDownloadable** | Pointer to **bool** | | [optional] [readonly] **IsHidden** | Pointer to **bool** | | [optional] [readonly] +**IsMalwareDetected** | Pointer to **bool** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] [readonly] **IsMoveable** | Pointer to **bool** | | [optional] [readonly] **IsQuarantinable** | Pointer to **bool** | | [optional] [readonly] **IsQuarantined** | Pointer to **bool** | | [optional] [readonly] @@ -89,6 +90,7 @@ Name | Type | Description | Notes **UploaderUrl** | Pointer to **string** | | [optional] [readonly] **Version** | Pointer to **NullableString** | The raw version for this package. | [optional] [readonly] **VersionOrig** | Pointer to **string** | | [optional] [readonly] +**VulnerabilityCounts** | Pointer to [**NullableWebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] **VulnerabilityScanResultsUrl** | Pointer to **string** | | [optional] [readonly] ## Methods @@ -895,6 +897,31 @@ SetIsHidden sets IsHidden field to given value. HasIsHidden returns a boolean if a field has been set. +### GetIsMalwareDetected + +`func (o *P2PackageUpload) GetIsMalwareDetected() bool` + +GetIsMalwareDetected returns the IsMalwareDetected field if non-nil, zero value otherwise. + +### GetIsMalwareDetectedOk + +`func (o *P2PackageUpload) GetIsMalwareDetectedOk() (*bool, bool)` + +GetIsMalwareDetectedOk returns a tuple with the IsMalwareDetected field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIsMalwareDetected + +`func (o *P2PackageUpload) SetIsMalwareDetected(v bool)` + +SetIsMalwareDetected sets IsMalwareDetected field to given value. + +### HasIsMalwareDetected + +`func (o *P2PackageUpload) HasIsMalwareDetected() bool` + +HasIsMalwareDetected returns a boolean if a field has been set. + ### GetIsMoveable `func (o *P2PackageUpload) GetIsMoveable() bool` @@ -2435,6 +2462,41 @@ SetVersionOrig sets VersionOrig field to given value. HasVersionOrig returns a boolean if a field has been set. +### GetVulnerabilityCounts + +`func (o *P2PackageUpload) GetVulnerabilityCounts() WebOSVSeverityCounts` + +GetVulnerabilityCounts returns the VulnerabilityCounts field if non-nil, zero value otherwise. + +### GetVulnerabilityCountsOk + +`func (o *P2PackageUpload) GetVulnerabilityCountsOk() (*WebOSVSeverityCounts, bool)` + +GetVulnerabilityCountsOk returns a tuple with the VulnerabilityCounts field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetVulnerabilityCounts + +`func (o *P2PackageUpload) SetVulnerabilityCounts(v WebOSVSeverityCounts)` + +SetVulnerabilityCounts sets VulnerabilityCounts field to given value. + +### HasVulnerabilityCounts + +`func (o *P2PackageUpload) HasVulnerabilityCounts() bool` + +HasVulnerabilityCounts returns a boolean if a field has been set. + +### SetVulnerabilityCountsNil + +`func (o *P2PackageUpload) SetVulnerabilityCountsNil(b bool)` + + SetVulnerabilityCountsNil sets the value for VulnerabilityCounts to be an explicit nil + +### UnsetVulnerabilityCounts +`func (o *P2PackageUpload) UnsetVulnerabilityCounts()` + +UnsetVulnerabilityCounts ensures that no value is present for VulnerabilityCounts, not even an explicit nil ### GetVulnerabilityScanResultsUrl `func (o *P2PackageUpload) GetVulnerabilityScanResultsUrl() string` diff --git a/docs/P2PackageUploadRequest.md b/docs/P2PackageUploadRequest.md index bfab5428..b5195b61 100644 --- a/docs/P2PackageUploadRequest.md +++ b/docs/P2PackageUploadRequest.md @@ -4,9 +4,11 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**IsMalwareDetected** | Pointer to **bool** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] [readonly] **PackageFile** | **string** | The primary file for the package. | **Republish** | Pointer to **bool** | If true, the uploaded package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate. | [optional] **Tags** | Pointer to **NullableString** | A comma-separated values list of tags to add to the package. | [optional] +**VulnerabilityCounts** | Pointer to [**NullableWebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] ## Methods @@ -27,6 +29,31 @@ NewP2PackageUploadRequestWithDefaults instantiates a new P2PackageUploadRequest This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set +### GetIsMalwareDetected + +`func (o *P2PackageUploadRequest) GetIsMalwareDetected() bool` + +GetIsMalwareDetected returns the IsMalwareDetected field if non-nil, zero value otherwise. + +### GetIsMalwareDetectedOk + +`func (o *P2PackageUploadRequest) GetIsMalwareDetectedOk() (*bool, bool)` + +GetIsMalwareDetectedOk returns a tuple with the IsMalwareDetected field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIsMalwareDetected + +`func (o *P2PackageUploadRequest) SetIsMalwareDetected(v bool)` + +SetIsMalwareDetected sets IsMalwareDetected field to given value. + +### HasIsMalwareDetected + +`func (o *P2PackageUploadRequest) HasIsMalwareDetected() bool` + +HasIsMalwareDetected returns a boolean if a field has been set. + ### GetPackageFile `func (o *P2PackageUploadRequest) GetPackageFile() string` @@ -107,6 +134,41 @@ HasTags returns a boolean if a field has been set. `func (o *P2PackageUploadRequest) UnsetTags()` UnsetTags ensures that no value is present for Tags, not even an explicit nil +### GetVulnerabilityCounts + +`func (o *P2PackageUploadRequest) GetVulnerabilityCounts() WebOSVSeverityCounts` + +GetVulnerabilityCounts returns the VulnerabilityCounts field if non-nil, zero value otherwise. + +### GetVulnerabilityCountsOk + +`func (o *P2PackageUploadRequest) GetVulnerabilityCountsOk() (*WebOSVSeverityCounts, bool)` + +GetVulnerabilityCountsOk returns a tuple with the VulnerabilityCounts field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetVulnerabilityCounts + +`func (o *P2PackageUploadRequest) SetVulnerabilityCounts(v WebOSVSeverityCounts)` + +SetVulnerabilityCounts sets VulnerabilityCounts field to given value. + +### HasVulnerabilityCounts + +`func (o *P2PackageUploadRequest) HasVulnerabilityCounts() bool` + +HasVulnerabilityCounts returns a boolean if a field has been set. + +### SetVulnerabilityCountsNil + +`func (o *P2PackageUploadRequest) SetVulnerabilityCountsNil(b bool)` + + SetVulnerabilityCountsNil sets the value for VulnerabilityCounts to be an explicit nil + +### UnsetVulnerabilityCounts +`func (o *P2PackageUploadRequest) UnsetVulnerabilityCounts()` + +UnsetVulnerabilityCounts ensures that no value is present for VulnerabilityCounts, 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/Package.md b/docs/Package.md index 50ca70c4..28c83360 100644 --- a/docs/Package.md +++ b/docs/Package.md @@ -34,6 +34,7 @@ Name | Type | Description | Notes **IsDeleteable** | Pointer to **bool** | | [optional] [readonly] **IsDownloadable** | Pointer to **bool** | | [optional] [readonly] **IsHidden** | Pointer to **bool** | | [optional] [readonly] +**IsMalwareDetected** | Pointer to **bool** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] [readonly] **IsMoveable** | Pointer to **bool** | | [optional] [readonly] **IsQuarantinable** | Pointer to **bool** | | [optional] [readonly] **IsQuarantined** | Pointer to **bool** | | [optional] [readonly] @@ -91,6 +92,7 @@ Name | Type | Description | Notes **UploaderUrl** | Pointer to **string** | | [optional] [readonly] **Version** | Pointer to **NullableString** | The raw version for this package. | [optional] [readonly] **VersionOrig** | Pointer to **string** | | [optional] [readonly] +**VulnerabilityCounts** | Pointer to [**NullableWebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] **VulnerabilityScanResultsUrl** | Pointer to **string** | | [optional] [readonly] ## Methods @@ -932,6 +934,31 @@ SetIsHidden sets IsHidden field to given value. HasIsHidden returns a boolean if a field has been set. +### GetIsMalwareDetected + +`func (o *Package) GetIsMalwareDetected() bool` + +GetIsMalwareDetected returns the IsMalwareDetected field if non-nil, zero value otherwise. + +### GetIsMalwareDetectedOk + +`func (o *Package) GetIsMalwareDetectedOk() (*bool, bool)` + +GetIsMalwareDetectedOk returns a tuple with the IsMalwareDetected field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIsMalwareDetected + +`func (o *Package) SetIsMalwareDetected(v bool)` + +SetIsMalwareDetected sets IsMalwareDetected field to given value. + +### HasIsMalwareDetected + +`func (o *Package) HasIsMalwareDetected() bool` + +HasIsMalwareDetected returns a boolean if a field has been set. + ### GetIsMoveable `func (o *Package) GetIsMoveable() bool` @@ -2497,6 +2524,41 @@ SetVersionOrig sets VersionOrig field to given value. HasVersionOrig returns a boolean if a field has been set. +### GetVulnerabilityCounts + +`func (o *Package) GetVulnerabilityCounts() WebOSVSeverityCounts` + +GetVulnerabilityCounts returns the VulnerabilityCounts field if non-nil, zero value otherwise. + +### GetVulnerabilityCountsOk + +`func (o *Package) GetVulnerabilityCountsOk() (*WebOSVSeverityCounts, bool)` + +GetVulnerabilityCountsOk returns a tuple with the VulnerabilityCounts field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetVulnerabilityCounts + +`func (o *Package) SetVulnerabilityCounts(v WebOSVSeverityCounts)` + +SetVulnerabilityCounts sets VulnerabilityCounts field to given value. + +### HasVulnerabilityCounts + +`func (o *Package) HasVulnerabilityCounts() bool` + +HasVulnerabilityCounts returns a boolean if a field has been set. + +### SetVulnerabilityCountsNil + +`func (o *Package) SetVulnerabilityCountsNil(b bool)` + + SetVulnerabilityCountsNil sets the value for VulnerabilityCounts to be an explicit nil + +### UnsetVulnerabilityCounts +`func (o *Package) UnsetVulnerabilityCounts()` + +UnsetVulnerabilityCounts ensures that no value is present for VulnerabilityCounts, not even an explicit nil ### GetVulnerabilityScanResultsUrl `func (o *Package) GetVulnerabilityScanResultsUrl() string` diff --git a/docs/PackageCopy.md b/docs/PackageCopy.md index 7b54a287..5771d529 100644 --- a/docs/PackageCopy.md +++ b/docs/PackageCopy.md @@ -34,6 +34,7 @@ Name | Type | Description | Notes **IsDeleteable** | Pointer to **bool** | | [optional] [readonly] **IsDownloadable** | Pointer to **bool** | | [optional] [readonly] **IsHidden** | Pointer to **bool** | | [optional] [readonly] +**IsMalwareDetected** | Pointer to **bool** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] [readonly] **IsMoveable** | Pointer to **bool** | | [optional] [readonly] **IsQuarantinable** | Pointer to **bool** | | [optional] [readonly] **IsQuarantined** | Pointer to **bool** | | [optional] [readonly] @@ -91,6 +92,7 @@ Name | Type | Description | Notes **UploaderUrl** | Pointer to **string** | | [optional] [readonly] **Version** | Pointer to **NullableString** | The raw version for this package. | [optional] [readonly] **VersionOrig** | Pointer to **string** | | [optional] [readonly] +**VulnerabilityCounts** | Pointer to [**NullableWebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] **VulnerabilityScanResultsUrl** | Pointer to **string** | | [optional] [readonly] ## Methods @@ -932,6 +934,31 @@ SetIsHidden sets IsHidden field to given value. HasIsHidden returns a boolean if a field has been set. +### GetIsMalwareDetected + +`func (o *PackageCopy) GetIsMalwareDetected() bool` + +GetIsMalwareDetected returns the IsMalwareDetected field if non-nil, zero value otherwise. + +### GetIsMalwareDetectedOk + +`func (o *PackageCopy) GetIsMalwareDetectedOk() (*bool, bool)` + +GetIsMalwareDetectedOk returns a tuple with the IsMalwareDetected field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIsMalwareDetected + +`func (o *PackageCopy) SetIsMalwareDetected(v bool)` + +SetIsMalwareDetected sets IsMalwareDetected field to given value. + +### HasIsMalwareDetected + +`func (o *PackageCopy) HasIsMalwareDetected() bool` + +HasIsMalwareDetected returns a boolean if a field has been set. + ### GetIsMoveable `func (o *PackageCopy) GetIsMoveable() bool` @@ -2497,6 +2524,41 @@ SetVersionOrig sets VersionOrig field to given value. HasVersionOrig returns a boolean if a field has been set. +### GetVulnerabilityCounts + +`func (o *PackageCopy) GetVulnerabilityCounts() WebOSVSeverityCounts` + +GetVulnerabilityCounts returns the VulnerabilityCounts field if non-nil, zero value otherwise. + +### GetVulnerabilityCountsOk + +`func (o *PackageCopy) GetVulnerabilityCountsOk() (*WebOSVSeverityCounts, bool)` + +GetVulnerabilityCountsOk returns a tuple with the VulnerabilityCounts field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetVulnerabilityCounts + +`func (o *PackageCopy) SetVulnerabilityCounts(v WebOSVSeverityCounts)` + +SetVulnerabilityCounts sets VulnerabilityCounts field to given value. + +### HasVulnerabilityCounts + +`func (o *PackageCopy) HasVulnerabilityCounts() bool` + +HasVulnerabilityCounts returns a boolean if a field has been set. + +### SetVulnerabilityCountsNil + +`func (o *PackageCopy) SetVulnerabilityCountsNil(b bool)` + + SetVulnerabilityCountsNil sets the value for VulnerabilityCounts to be an explicit nil + +### UnsetVulnerabilityCounts +`func (o *PackageCopy) UnsetVulnerabilityCounts()` + +UnsetVulnerabilityCounts ensures that no value is present for VulnerabilityCounts, not even an explicit nil ### GetVulnerabilityScanResultsUrl `func (o *PackageCopy) GetVulnerabilityScanResultsUrl() string` diff --git a/docs/PackageCopyRequest.md b/docs/PackageCopyRequest.md index a9b407c7..a9475f57 100644 --- a/docs/PackageCopyRequest.md +++ b/docs/PackageCopyRequest.md @@ -5,7 +5,9 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Destination** | **string** | The name of the destination repository without the namespace. | +**IsMalwareDetected** | Pointer to **bool** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] [readonly] **Republish** | Pointer to **bool** | If true, the package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate. | [optional] +**VulnerabilityCounts** | Pointer to [**NullableWebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] ## Methods @@ -46,6 +48,31 @@ and a boolean to check if the value has been set. SetDestination sets Destination field to given value. +### GetIsMalwareDetected + +`func (o *PackageCopyRequest) GetIsMalwareDetected() bool` + +GetIsMalwareDetected returns the IsMalwareDetected field if non-nil, zero value otherwise. + +### GetIsMalwareDetectedOk + +`func (o *PackageCopyRequest) GetIsMalwareDetectedOk() (*bool, bool)` + +GetIsMalwareDetectedOk returns a tuple with the IsMalwareDetected field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIsMalwareDetected + +`func (o *PackageCopyRequest) SetIsMalwareDetected(v bool)` + +SetIsMalwareDetected sets IsMalwareDetected field to given value. + +### HasIsMalwareDetected + +`func (o *PackageCopyRequest) HasIsMalwareDetected() bool` + +HasIsMalwareDetected returns a boolean if a field has been set. + ### GetRepublish `func (o *PackageCopyRequest) GetRepublish() bool` @@ -71,6 +98,41 @@ SetRepublish sets Republish field to given value. HasRepublish returns a boolean if a field has been set. +### GetVulnerabilityCounts + +`func (o *PackageCopyRequest) GetVulnerabilityCounts() WebOSVSeverityCounts` + +GetVulnerabilityCounts returns the VulnerabilityCounts field if non-nil, zero value otherwise. + +### GetVulnerabilityCountsOk + +`func (o *PackageCopyRequest) GetVulnerabilityCountsOk() (*WebOSVSeverityCounts, bool)` + +GetVulnerabilityCountsOk returns a tuple with the VulnerabilityCounts field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetVulnerabilityCounts + +`func (o *PackageCopyRequest) SetVulnerabilityCounts(v WebOSVSeverityCounts)` + +SetVulnerabilityCounts sets VulnerabilityCounts field to given value. + +### HasVulnerabilityCounts + +`func (o *PackageCopyRequest) HasVulnerabilityCounts() bool` + +HasVulnerabilityCounts returns a boolean if a field has been set. + +### SetVulnerabilityCountsNil + +`func (o *PackageCopyRequest) SetVulnerabilityCountsNil(b bool)` + + SetVulnerabilityCountsNil sets the value for VulnerabilityCounts to be an explicit nil + +### UnsetVulnerabilityCounts +`func (o *PackageCopyRequest) UnsetVulnerabilityCounts()` + +UnsetVulnerabilityCounts ensures that no value is present for VulnerabilityCounts, 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/PackageDetail.md b/docs/PackageDetail.md new file mode 100644 index 00000000..3a1a965a --- /dev/null +++ b/docs/PackageDetail.md @@ -0,0 +1,2616 @@ +# PackageDetail + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Architectures** | Pointer to [**[]Architecture**](Architecture.md) | | [optional] [readonly] +**CdnUrl** | Pointer to **NullableString** | | [optional] [readonly] +**ChecksumMd5** | Pointer to **string** | | [optional] [readonly] +**ChecksumSha1** | Pointer to **string** | | [optional] [readonly] +**ChecksumSha256** | Pointer to **string** | | [optional] [readonly] +**ChecksumSha512** | Pointer to **string** | | [optional] [readonly] +**DependenciesChecksumMd5** | Pointer to **NullableString** | A checksum of all of the package's dependencies. | [optional] [readonly] +**DependenciesUrl** | Pointer to **string** | | [optional] [readonly] +**Description** | Pointer to **NullableString** | A textual description of this package. | [optional] [readonly] +**DisplayName** | Pointer to **string** | | [optional] [readonly] +**Distro** | Pointer to [**NullableDistribution**](Distribution.md) | | [optional] +**DistroVersion** | Pointer to [**DistributionVersion**](DistributionVersion.md) | | [optional] +**Downloads** | Pointer to **int64** | | [optional] [readonly] +**Epoch** | Pointer to **NullableInt64** | The epoch of the package version (if any). | [optional] [readonly] +**Extension** | Pointer to **string** | | [optional] [readonly] +**Filename** | Pointer to **string** | | [optional] [readonly] +**Filepath** | Pointer to **NullableString** | Full path to the file, including filename e.g. bin/utils/tool.tar.gz | [optional] [readonly] +**Files** | Pointer to [**[]PackageFile**](PackageFile.md) | | [optional] [readonly] +**Format** | Pointer to **string** | | [optional] [readonly] +**FormatUrl** | Pointer to **string** | | [optional] [readonly] +**FreeableStorage** | Pointer to **int64** | Amount of storage that will be freed if this package is deleted | [optional] [readonly] +**FullyQualifiedName** | Pointer to **NullableString** | | [optional] [readonly] +**HasDependencies** | Pointer to **bool** | Whether the package has any dependencies (top-level or from its SBOM). | [optional] [readonly] +**IdentifierPerm** | Pointer to **string** | Unique and permanent identifier for the package. | [optional] [readonly] +**Identifiers** | Pointer to **map[string]string** | Return a map of identifier field names and their values. | [optional] [readonly] +**Indexed** | Pointer to **bool** | | [optional] [readonly] +**IsCancellable** | Pointer to **bool** | | [optional] [readonly] +**IsCopyable** | Pointer to **bool** | | [optional] [readonly] +**IsDeleteable** | Pointer to **bool** | | [optional] [readonly] +**IsDownloadable** | Pointer to **bool** | | [optional] [readonly] +**IsHidden** | Pointer to **bool** | | [optional] [readonly] +**IsMalwareDetected** | Pointer to **bool** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] [readonly] +**IsMoveable** | Pointer to **bool** | | [optional] [readonly] +**IsQuarantinable** | Pointer to **bool** | | [optional] [readonly] +**IsQuarantined** | Pointer to **bool** | | [optional] [readonly] +**IsResyncable** | Pointer to **bool** | | [optional] [readonly] +**IsSecurityScannable** | Pointer to **bool** | | [optional] [readonly] +**IsSyncAwaiting** | Pointer to **bool** | | [optional] [readonly] +**IsSyncCompleted** | Pointer to **bool** | | [optional] [readonly] +**IsSyncFailed** | Pointer to **bool** | | [optional] [readonly] +**IsSyncInFlight** | Pointer to **bool** | | [optional] [readonly] +**IsSyncInProgress** | Pointer to **bool** | | [optional] [readonly] +**License** | Pointer to **NullableString** | The license of this package. | [optional] [readonly] +**Name** | Pointer to **NullableString** | The name of this package. | [optional] [readonly] +**Namespace** | Pointer to **string** | | [optional] [readonly] +**NamespaceUrl** | Pointer to **string** | | [optional] [readonly] +**NumFiles** | Pointer to **int64** | | [optional] [readonly] +**OriginRepository** | Pointer to **string** | | [optional] [readonly] +**OriginRepositoryUrl** | Pointer to **string** | | [optional] [readonly] +**OsiApproved** | Pointer to **bool** | Whether the package's SPDX license is OSI-approved. | [optional] [readonly] +**PackageType** | Pointer to **int64** | The type of package contents. | [optional] [readonly] +**PolicyViolated** | Pointer to **bool** | Whether or not the package has violated any policy. | [optional] [readonly] +**RawLicense** | Pointer to **NullableString** | The raw license string. | [optional] [readonly] +**Release** | Pointer to **NullableString** | The release of the package version (if any). | [optional] [readonly] +**Repository** | Pointer to **string** | | [optional] [readonly] +**RepositoryUrl** | Pointer to **string** | | [optional] [readonly] +**SecurityScanCompletedAt** | Pointer to **NullableTime** | The datetime the security scanning was completed. | [optional] [readonly] +**SecurityScanStartedAt** | Pointer to **NullableTime** | The datetime the security scanning was started. | [optional] [readonly] +**SecurityScanStatus** | Pointer to **NullableString** | | [optional] [readonly] [default to "Awaiting Security Scan"] +**SecurityScanStatusUpdatedAt** | Pointer to **NullableTime** | The datetime the security scanning status was updated. | [optional] [readonly] +**SelfHtmlUrl** | Pointer to **string** | | [optional] [readonly] +**SelfUrl** | Pointer to **string** | | [optional] [readonly] +**SelfWebappUrl** | Pointer to **string** | | [optional] [readonly] +**SignatureUrl** | Pointer to **NullableString** | | [optional] [readonly] +**Size** | Pointer to **int64** | The calculated size of the package. | [optional] [readonly] +**Slug** | Pointer to **string** | The public unique identifier for the package. | [optional] [readonly] +**SlugPerm** | Pointer to **string** | | [optional] [readonly] +**SpdxLicense** | Pointer to **NullableString** | The SPDX license identifier for this package. | [optional] [readonly] +**Stage** | Pointer to **int64** | The synchronisation (in progress) stage of the package. | [optional] [readonly] +**StageStr** | Pointer to **string** | | [optional] [readonly] +**StageUpdatedAt** | Pointer to **time.Time** | The datetime the package stage was updated at. | [optional] [readonly] +**Status** | Pointer to **int64** | The synchronisation status of the package. | [optional] [readonly] +**StatusReason** | Pointer to **NullableString** | A textual description for the synchronous status reason (if any | [optional] [readonly] +**StatusStr** | Pointer to **string** | | [optional] [readonly] +**StatusUpdatedAt** | Pointer to **time.Time** | The datetime the package status was updated at. | [optional] [readonly] +**StatusUrl** | Pointer to **string** | | [optional] [readonly] +**Subtype** | Pointer to **string** | | [optional] [readonly] +**Summary** | Pointer to **NullableString** | A one-liner synopsis of this package. | [optional] [readonly] +**SyncFinishedAt** | Pointer to **NullableTime** | The datetime the package sync was finished at. | [optional] [readonly] +**SyncProgress** | Pointer to **int64** | Synchronisation progress (from 0-100) | [optional] [readonly] +**Tags** | Pointer to **map[string]interface{}** | All tags on the package, grouped by tag type. This includes immutable tags, but doesn't distinguish them from mutable. To see which tags are immutable specifically, see the tags_immutable field. | [optional] +**TagsAutomatic** | Pointer to **map[string]interface{}** | All tags on the package, grouped by tag type. This includes immutable tags, but doesn't distinguish them from mutable. To see which tags are immutable specifically, see the tags_immutable field. | [optional] +**TagsImmutable** | Pointer to **map[string]interface{}** | All tags on the package, grouped by tag type. This includes immutable tags, but doesn't distinguish them from mutable. To see which tags are immutable specifically, see the tags_immutable field. | [optional] +**TypeDisplay** | Pointer to **string** | | [optional] [readonly] +**UploadedAt** | Pointer to **time.Time** | The date this package was uploaded. | [optional] [readonly] +**Uploader** | Pointer to **string** | | [optional] [readonly] +**UploaderUrl** | Pointer to **string** | | [optional] [readonly] +**Version** | Pointer to **NullableString** | The raw version for this package. | [optional] [readonly] +**VersionOrig** | Pointer to **string** | | [optional] [readonly] +**VulnerabilityCounts** | Pointer to [**NullableWebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] +**VulnerabilityScanResultsUrl** | Pointer to **string** | | [optional] [readonly] + +## Methods + +### NewPackageDetail + +`func NewPackageDetail() *PackageDetail` + +NewPackageDetail instantiates a new PackageDetail object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewPackageDetailWithDefaults + +`func NewPackageDetailWithDefaults() *PackageDetail` + +NewPackageDetailWithDefaults instantiates a new PackageDetail object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetArchitectures + +`func (o *PackageDetail) GetArchitectures() []Architecture` + +GetArchitectures returns the Architectures field if non-nil, zero value otherwise. + +### GetArchitecturesOk + +`func (o *PackageDetail) GetArchitecturesOk() (*[]Architecture, bool)` + +GetArchitecturesOk returns a tuple with the Architectures field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetArchitectures + +`func (o *PackageDetail) SetArchitectures(v []Architecture)` + +SetArchitectures sets Architectures field to given value. + +### HasArchitectures + +`func (o *PackageDetail) HasArchitectures() bool` + +HasArchitectures returns a boolean if a field has been set. + +### GetCdnUrl + +`func (o *PackageDetail) GetCdnUrl() string` + +GetCdnUrl returns the CdnUrl field if non-nil, zero value otherwise. + +### GetCdnUrlOk + +`func (o *PackageDetail) GetCdnUrlOk() (*string, bool)` + +GetCdnUrlOk returns a tuple with the CdnUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCdnUrl + +`func (o *PackageDetail) SetCdnUrl(v string)` + +SetCdnUrl sets CdnUrl field to given value. + +### HasCdnUrl + +`func (o *PackageDetail) HasCdnUrl() bool` + +HasCdnUrl returns a boolean if a field has been set. + +### SetCdnUrlNil + +`func (o *PackageDetail) SetCdnUrlNil(b bool)` + + SetCdnUrlNil sets the value for CdnUrl to be an explicit nil + +### UnsetCdnUrl +`func (o *PackageDetail) UnsetCdnUrl()` + +UnsetCdnUrl ensures that no value is present for CdnUrl, not even an explicit nil +### GetChecksumMd5 + +`func (o *PackageDetail) GetChecksumMd5() string` + +GetChecksumMd5 returns the ChecksumMd5 field if non-nil, zero value otherwise. + +### GetChecksumMd5Ok + +`func (o *PackageDetail) GetChecksumMd5Ok() (*string, bool)` + +GetChecksumMd5Ok returns a tuple with the ChecksumMd5 field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetChecksumMd5 + +`func (o *PackageDetail) SetChecksumMd5(v string)` + +SetChecksumMd5 sets ChecksumMd5 field to given value. + +### HasChecksumMd5 + +`func (o *PackageDetail) HasChecksumMd5() bool` + +HasChecksumMd5 returns a boolean if a field has been set. + +### GetChecksumSha1 + +`func (o *PackageDetail) GetChecksumSha1() string` + +GetChecksumSha1 returns the ChecksumSha1 field if non-nil, zero value otherwise. + +### GetChecksumSha1Ok + +`func (o *PackageDetail) GetChecksumSha1Ok() (*string, bool)` + +GetChecksumSha1Ok returns a tuple with the ChecksumSha1 field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetChecksumSha1 + +`func (o *PackageDetail) SetChecksumSha1(v string)` + +SetChecksumSha1 sets ChecksumSha1 field to given value. + +### HasChecksumSha1 + +`func (o *PackageDetail) HasChecksumSha1() bool` + +HasChecksumSha1 returns a boolean if a field has been set. + +### GetChecksumSha256 + +`func (o *PackageDetail) GetChecksumSha256() string` + +GetChecksumSha256 returns the ChecksumSha256 field if non-nil, zero value otherwise. + +### GetChecksumSha256Ok + +`func (o *PackageDetail) GetChecksumSha256Ok() (*string, bool)` + +GetChecksumSha256Ok returns a tuple with the ChecksumSha256 field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetChecksumSha256 + +`func (o *PackageDetail) SetChecksumSha256(v string)` + +SetChecksumSha256 sets ChecksumSha256 field to given value. + +### HasChecksumSha256 + +`func (o *PackageDetail) HasChecksumSha256() bool` + +HasChecksumSha256 returns a boolean if a field has been set. + +### GetChecksumSha512 + +`func (o *PackageDetail) GetChecksumSha512() string` + +GetChecksumSha512 returns the ChecksumSha512 field if non-nil, zero value otherwise. + +### GetChecksumSha512Ok + +`func (o *PackageDetail) GetChecksumSha512Ok() (*string, bool)` + +GetChecksumSha512Ok returns a tuple with the ChecksumSha512 field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetChecksumSha512 + +`func (o *PackageDetail) SetChecksumSha512(v string)` + +SetChecksumSha512 sets ChecksumSha512 field to given value. + +### HasChecksumSha512 + +`func (o *PackageDetail) HasChecksumSha512() bool` + +HasChecksumSha512 returns a boolean if a field has been set. + +### GetDependenciesChecksumMd5 + +`func (o *PackageDetail) GetDependenciesChecksumMd5() string` + +GetDependenciesChecksumMd5 returns the DependenciesChecksumMd5 field if non-nil, zero value otherwise. + +### GetDependenciesChecksumMd5Ok + +`func (o *PackageDetail) GetDependenciesChecksumMd5Ok() (*string, bool)` + +GetDependenciesChecksumMd5Ok returns a tuple with the DependenciesChecksumMd5 field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDependenciesChecksumMd5 + +`func (o *PackageDetail) SetDependenciesChecksumMd5(v string)` + +SetDependenciesChecksumMd5 sets DependenciesChecksumMd5 field to given value. + +### HasDependenciesChecksumMd5 + +`func (o *PackageDetail) HasDependenciesChecksumMd5() bool` + +HasDependenciesChecksumMd5 returns a boolean if a field has been set. + +### SetDependenciesChecksumMd5Nil + +`func (o *PackageDetail) SetDependenciesChecksumMd5Nil(b bool)` + + SetDependenciesChecksumMd5Nil sets the value for DependenciesChecksumMd5 to be an explicit nil + +### UnsetDependenciesChecksumMd5 +`func (o *PackageDetail) UnsetDependenciesChecksumMd5()` + +UnsetDependenciesChecksumMd5 ensures that no value is present for DependenciesChecksumMd5, not even an explicit nil +### GetDependenciesUrl + +`func (o *PackageDetail) GetDependenciesUrl() string` + +GetDependenciesUrl returns the DependenciesUrl field if non-nil, zero value otherwise. + +### GetDependenciesUrlOk + +`func (o *PackageDetail) GetDependenciesUrlOk() (*string, bool)` + +GetDependenciesUrlOk returns a tuple with the DependenciesUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDependenciesUrl + +`func (o *PackageDetail) SetDependenciesUrl(v string)` + +SetDependenciesUrl sets DependenciesUrl field to given value. + +### HasDependenciesUrl + +`func (o *PackageDetail) HasDependenciesUrl() bool` + +HasDependenciesUrl returns a boolean if a field has been set. + +### GetDescription + +`func (o *PackageDetail) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *PackageDetail) GetDescriptionOk() (*string, bool)` + +GetDescriptionOk returns a tuple with the Description field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDescription + +`func (o *PackageDetail) SetDescription(v string)` + +SetDescription sets Description field to given value. + +### HasDescription + +`func (o *PackageDetail) HasDescription() bool` + +HasDescription returns a boolean if a field has been set. + +### SetDescriptionNil + +`func (o *PackageDetail) SetDescriptionNil(b bool)` + + SetDescriptionNil sets the value for Description to be an explicit nil + +### UnsetDescription +`func (o *PackageDetail) UnsetDescription()` + +UnsetDescription ensures that no value is present for Description, not even an explicit nil +### GetDisplayName + +`func (o *PackageDetail) GetDisplayName() string` + +GetDisplayName returns the DisplayName field if non-nil, zero value otherwise. + +### GetDisplayNameOk + +`func (o *PackageDetail) GetDisplayNameOk() (*string, bool)` + +GetDisplayNameOk returns a tuple with the DisplayName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayName + +`func (o *PackageDetail) SetDisplayName(v string)` + +SetDisplayName sets DisplayName field to given value. + +### HasDisplayName + +`func (o *PackageDetail) HasDisplayName() bool` + +HasDisplayName returns a boolean if a field has been set. + +### GetDistro + +`func (o *PackageDetail) GetDistro() Distribution` + +GetDistro returns the Distro field if non-nil, zero value otherwise. + +### GetDistroOk + +`func (o *PackageDetail) GetDistroOk() (*Distribution, bool)` + +GetDistroOk returns a tuple with the Distro field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDistro + +`func (o *PackageDetail) SetDistro(v Distribution)` + +SetDistro sets Distro field to given value. + +### HasDistro + +`func (o *PackageDetail) HasDistro() bool` + +HasDistro returns a boolean if a field has been set. + +### SetDistroNil + +`func (o *PackageDetail) SetDistroNil(b bool)` + + SetDistroNil sets the value for Distro to be an explicit nil + +### UnsetDistro +`func (o *PackageDetail) UnsetDistro()` + +UnsetDistro ensures that no value is present for Distro, not even an explicit nil +### GetDistroVersion + +`func (o *PackageDetail) GetDistroVersion() DistributionVersion` + +GetDistroVersion returns the DistroVersion field if non-nil, zero value otherwise. + +### GetDistroVersionOk + +`func (o *PackageDetail) GetDistroVersionOk() (*DistributionVersion, bool)` + +GetDistroVersionOk returns a tuple with the DistroVersion field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDistroVersion + +`func (o *PackageDetail) SetDistroVersion(v DistributionVersion)` + +SetDistroVersion sets DistroVersion field to given value. + +### HasDistroVersion + +`func (o *PackageDetail) HasDistroVersion() bool` + +HasDistroVersion returns a boolean if a field has been set. + +### GetDownloads + +`func (o *PackageDetail) GetDownloads() int64` + +GetDownloads returns the Downloads field if non-nil, zero value otherwise. + +### GetDownloadsOk + +`func (o *PackageDetail) GetDownloadsOk() (*int64, bool)` + +GetDownloadsOk returns a tuple with the Downloads field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDownloads + +`func (o *PackageDetail) SetDownloads(v int64)` + +SetDownloads sets Downloads field to given value. + +### HasDownloads + +`func (o *PackageDetail) HasDownloads() bool` + +HasDownloads returns a boolean if a field has been set. + +### GetEpoch + +`func (o *PackageDetail) GetEpoch() int64` + +GetEpoch returns the Epoch field if non-nil, zero value otherwise. + +### GetEpochOk + +`func (o *PackageDetail) GetEpochOk() (*int64, bool)` + +GetEpochOk returns a tuple with the Epoch field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEpoch + +`func (o *PackageDetail) SetEpoch(v int64)` + +SetEpoch sets Epoch field to given value. + +### HasEpoch + +`func (o *PackageDetail) HasEpoch() bool` + +HasEpoch returns a boolean if a field has been set. + +### SetEpochNil + +`func (o *PackageDetail) SetEpochNil(b bool)` + + SetEpochNil sets the value for Epoch to be an explicit nil + +### UnsetEpoch +`func (o *PackageDetail) UnsetEpoch()` + +UnsetEpoch ensures that no value is present for Epoch, not even an explicit nil +### GetExtension + +`func (o *PackageDetail) GetExtension() string` + +GetExtension returns the Extension field if non-nil, zero value otherwise. + +### GetExtensionOk + +`func (o *PackageDetail) GetExtensionOk() (*string, bool)` + +GetExtensionOk returns a tuple with the Extension field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetExtension + +`func (o *PackageDetail) SetExtension(v string)` + +SetExtension sets Extension field to given value. + +### HasExtension + +`func (o *PackageDetail) HasExtension() bool` + +HasExtension returns a boolean if a field has been set. + +### GetFilename + +`func (o *PackageDetail) GetFilename() string` + +GetFilename returns the Filename field if non-nil, zero value otherwise. + +### GetFilenameOk + +`func (o *PackageDetail) GetFilenameOk() (*string, bool)` + +GetFilenameOk returns a tuple with the Filename field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetFilename + +`func (o *PackageDetail) SetFilename(v string)` + +SetFilename sets Filename field to given value. + +### HasFilename + +`func (o *PackageDetail) HasFilename() bool` + +HasFilename returns a boolean if a field has been set. + +### GetFilepath + +`func (o *PackageDetail) GetFilepath() string` + +GetFilepath returns the Filepath field if non-nil, zero value otherwise. + +### GetFilepathOk + +`func (o *PackageDetail) GetFilepathOk() (*string, bool)` + +GetFilepathOk returns a tuple with the Filepath field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetFilepath + +`func (o *PackageDetail) SetFilepath(v string)` + +SetFilepath sets Filepath field to given value. + +### HasFilepath + +`func (o *PackageDetail) HasFilepath() bool` + +HasFilepath returns a boolean if a field has been set. + +### SetFilepathNil + +`func (o *PackageDetail) SetFilepathNil(b bool)` + + SetFilepathNil sets the value for Filepath to be an explicit nil + +### UnsetFilepath +`func (o *PackageDetail) UnsetFilepath()` + +UnsetFilepath ensures that no value is present for Filepath, not even an explicit nil +### GetFiles + +`func (o *PackageDetail) GetFiles() []PackageFile` + +GetFiles returns the Files field if non-nil, zero value otherwise. + +### GetFilesOk + +`func (o *PackageDetail) GetFilesOk() (*[]PackageFile, bool)` + +GetFilesOk returns a tuple with the Files field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetFiles + +`func (o *PackageDetail) SetFiles(v []PackageFile)` + +SetFiles sets Files field to given value. + +### HasFiles + +`func (o *PackageDetail) HasFiles() bool` + +HasFiles returns a boolean if a field has been set. + +### GetFormat + +`func (o *PackageDetail) GetFormat() string` + +GetFormat returns the Format field if non-nil, zero value otherwise. + +### GetFormatOk + +`func (o *PackageDetail) GetFormatOk() (*string, bool)` + +GetFormatOk returns a tuple with the Format field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetFormat + +`func (o *PackageDetail) SetFormat(v string)` + +SetFormat sets Format field to given value. + +### HasFormat + +`func (o *PackageDetail) HasFormat() bool` + +HasFormat returns a boolean if a field has been set. + +### GetFormatUrl + +`func (o *PackageDetail) GetFormatUrl() string` + +GetFormatUrl returns the FormatUrl field if non-nil, zero value otherwise. + +### GetFormatUrlOk + +`func (o *PackageDetail) GetFormatUrlOk() (*string, bool)` + +GetFormatUrlOk returns a tuple with the FormatUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetFormatUrl + +`func (o *PackageDetail) SetFormatUrl(v string)` + +SetFormatUrl sets FormatUrl field to given value. + +### HasFormatUrl + +`func (o *PackageDetail) HasFormatUrl() bool` + +HasFormatUrl returns a boolean if a field has been set. + +### GetFreeableStorage + +`func (o *PackageDetail) GetFreeableStorage() int64` + +GetFreeableStorage returns the FreeableStorage field if non-nil, zero value otherwise. + +### GetFreeableStorageOk + +`func (o *PackageDetail) GetFreeableStorageOk() (*int64, bool)` + +GetFreeableStorageOk returns a tuple with the FreeableStorage field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetFreeableStorage + +`func (o *PackageDetail) SetFreeableStorage(v int64)` + +SetFreeableStorage sets FreeableStorage field to given value. + +### HasFreeableStorage + +`func (o *PackageDetail) HasFreeableStorage() bool` + +HasFreeableStorage returns a boolean if a field has been set. + +### GetFullyQualifiedName + +`func (o *PackageDetail) GetFullyQualifiedName() string` + +GetFullyQualifiedName returns the FullyQualifiedName field if non-nil, zero value otherwise. + +### GetFullyQualifiedNameOk + +`func (o *PackageDetail) GetFullyQualifiedNameOk() (*string, bool)` + +GetFullyQualifiedNameOk returns a tuple with the FullyQualifiedName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetFullyQualifiedName + +`func (o *PackageDetail) SetFullyQualifiedName(v string)` + +SetFullyQualifiedName sets FullyQualifiedName field to given value. + +### HasFullyQualifiedName + +`func (o *PackageDetail) HasFullyQualifiedName() bool` + +HasFullyQualifiedName returns a boolean if a field has been set. + +### SetFullyQualifiedNameNil + +`func (o *PackageDetail) SetFullyQualifiedNameNil(b bool)` + + SetFullyQualifiedNameNil sets the value for FullyQualifiedName to be an explicit nil + +### UnsetFullyQualifiedName +`func (o *PackageDetail) UnsetFullyQualifiedName()` + +UnsetFullyQualifiedName ensures that no value is present for FullyQualifiedName, not even an explicit nil +### GetHasDependencies + +`func (o *PackageDetail) GetHasDependencies() bool` + +GetHasDependencies returns the HasDependencies field if non-nil, zero value otherwise. + +### GetHasDependenciesOk + +`func (o *PackageDetail) GetHasDependenciesOk() (*bool, bool)` + +GetHasDependenciesOk returns a tuple with the HasDependencies field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetHasDependencies + +`func (o *PackageDetail) SetHasDependencies(v bool)` + +SetHasDependencies sets HasDependencies field to given value. + +### HasHasDependencies + +`func (o *PackageDetail) HasHasDependencies() bool` + +HasHasDependencies returns a boolean if a field has been set. + +### GetIdentifierPerm + +`func (o *PackageDetail) GetIdentifierPerm() string` + +GetIdentifierPerm returns the IdentifierPerm field if non-nil, zero value otherwise. + +### GetIdentifierPermOk + +`func (o *PackageDetail) GetIdentifierPermOk() (*string, bool)` + +GetIdentifierPermOk returns a tuple with the IdentifierPerm field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIdentifierPerm + +`func (o *PackageDetail) SetIdentifierPerm(v string)` + +SetIdentifierPerm sets IdentifierPerm field to given value. + +### HasIdentifierPerm + +`func (o *PackageDetail) HasIdentifierPerm() bool` + +HasIdentifierPerm returns a boolean if a field has been set. + +### GetIdentifiers + +`func (o *PackageDetail) GetIdentifiers() map[string]string` + +GetIdentifiers returns the Identifiers field if non-nil, zero value otherwise. + +### GetIdentifiersOk + +`func (o *PackageDetail) GetIdentifiersOk() (*map[string]string, bool)` + +GetIdentifiersOk returns a tuple with the Identifiers field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIdentifiers + +`func (o *PackageDetail) SetIdentifiers(v map[string]string)` + +SetIdentifiers sets Identifiers field to given value. + +### HasIdentifiers + +`func (o *PackageDetail) HasIdentifiers() bool` + +HasIdentifiers returns a boolean if a field has been set. + +### GetIndexed + +`func (o *PackageDetail) GetIndexed() bool` + +GetIndexed returns the Indexed field if non-nil, zero value otherwise. + +### GetIndexedOk + +`func (o *PackageDetail) GetIndexedOk() (*bool, bool)` + +GetIndexedOk returns a tuple with the Indexed field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIndexed + +`func (o *PackageDetail) SetIndexed(v bool)` + +SetIndexed sets Indexed field to given value. + +### HasIndexed + +`func (o *PackageDetail) HasIndexed() bool` + +HasIndexed returns a boolean if a field has been set. + +### GetIsCancellable + +`func (o *PackageDetail) GetIsCancellable() bool` + +GetIsCancellable returns the IsCancellable field if non-nil, zero value otherwise. + +### GetIsCancellableOk + +`func (o *PackageDetail) GetIsCancellableOk() (*bool, bool)` + +GetIsCancellableOk returns a tuple with the IsCancellable field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIsCancellable + +`func (o *PackageDetail) SetIsCancellable(v bool)` + +SetIsCancellable sets IsCancellable field to given value. + +### HasIsCancellable + +`func (o *PackageDetail) HasIsCancellable() bool` + +HasIsCancellable returns a boolean if a field has been set. + +### GetIsCopyable + +`func (o *PackageDetail) GetIsCopyable() bool` + +GetIsCopyable returns the IsCopyable field if non-nil, zero value otherwise. + +### GetIsCopyableOk + +`func (o *PackageDetail) GetIsCopyableOk() (*bool, bool)` + +GetIsCopyableOk returns a tuple with the IsCopyable field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIsCopyable + +`func (o *PackageDetail) SetIsCopyable(v bool)` + +SetIsCopyable sets IsCopyable field to given value. + +### HasIsCopyable + +`func (o *PackageDetail) HasIsCopyable() bool` + +HasIsCopyable returns a boolean if a field has been set. + +### GetIsDeleteable + +`func (o *PackageDetail) GetIsDeleteable() bool` + +GetIsDeleteable returns the IsDeleteable field if non-nil, zero value otherwise. + +### GetIsDeleteableOk + +`func (o *PackageDetail) GetIsDeleteableOk() (*bool, bool)` + +GetIsDeleteableOk returns a tuple with the IsDeleteable field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIsDeleteable + +`func (o *PackageDetail) SetIsDeleteable(v bool)` + +SetIsDeleteable sets IsDeleteable field to given value. + +### HasIsDeleteable + +`func (o *PackageDetail) HasIsDeleteable() bool` + +HasIsDeleteable returns a boolean if a field has been set. + +### GetIsDownloadable + +`func (o *PackageDetail) GetIsDownloadable() bool` + +GetIsDownloadable returns the IsDownloadable field if non-nil, zero value otherwise. + +### GetIsDownloadableOk + +`func (o *PackageDetail) GetIsDownloadableOk() (*bool, bool)` + +GetIsDownloadableOk returns a tuple with the IsDownloadable field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIsDownloadable + +`func (o *PackageDetail) SetIsDownloadable(v bool)` + +SetIsDownloadable sets IsDownloadable field to given value. + +### HasIsDownloadable + +`func (o *PackageDetail) HasIsDownloadable() bool` + +HasIsDownloadable returns a boolean if a field has been set. + +### GetIsHidden + +`func (o *PackageDetail) GetIsHidden() bool` + +GetIsHidden returns the IsHidden field if non-nil, zero value otherwise. + +### GetIsHiddenOk + +`func (o *PackageDetail) GetIsHiddenOk() (*bool, bool)` + +GetIsHiddenOk returns a tuple with the IsHidden field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIsHidden + +`func (o *PackageDetail) SetIsHidden(v bool)` + +SetIsHidden sets IsHidden field to given value. + +### HasIsHidden + +`func (o *PackageDetail) HasIsHidden() bool` + +HasIsHidden returns a boolean if a field has been set. + +### GetIsMalwareDetected + +`func (o *PackageDetail) GetIsMalwareDetected() bool` + +GetIsMalwareDetected returns the IsMalwareDetected field if non-nil, zero value otherwise. + +### GetIsMalwareDetectedOk + +`func (o *PackageDetail) GetIsMalwareDetectedOk() (*bool, bool)` + +GetIsMalwareDetectedOk returns a tuple with the IsMalwareDetected field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIsMalwareDetected + +`func (o *PackageDetail) SetIsMalwareDetected(v bool)` + +SetIsMalwareDetected sets IsMalwareDetected field to given value. + +### HasIsMalwareDetected + +`func (o *PackageDetail) HasIsMalwareDetected() bool` + +HasIsMalwareDetected returns a boolean if a field has been set. + +### GetIsMoveable + +`func (o *PackageDetail) GetIsMoveable() bool` + +GetIsMoveable returns the IsMoveable field if non-nil, zero value otherwise. + +### GetIsMoveableOk + +`func (o *PackageDetail) GetIsMoveableOk() (*bool, bool)` + +GetIsMoveableOk returns a tuple with the IsMoveable field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIsMoveable + +`func (o *PackageDetail) SetIsMoveable(v bool)` + +SetIsMoveable sets IsMoveable field to given value. + +### HasIsMoveable + +`func (o *PackageDetail) HasIsMoveable() bool` + +HasIsMoveable returns a boolean if a field has been set. + +### GetIsQuarantinable + +`func (o *PackageDetail) GetIsQuarantinable() bool` + +GetIsQuarantinable returns the IsQuarantinable field if non-nil, zero value otherwise. + +### GetIsQuarantinableOk + +`func (o *PackageDetail) GetIsQuarantinableOk() (*bool, bool)` + +GetIsQuarantinableOk returns a tuple with the IsQuarantinable field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIsQuarantinable + +`func (o *PackageDetail) SetIsQuarantinable(v bool)` + +SetIsQuarantinable sets IsQuarantinable field to given value. + +### HasIsQuarantinable + +`func (o *PackageDetail) HasIsQuarantinable() bool` + +HasIsQuarantinable returns a boolean if a field has been set. + +### GetIsQuarantined + +`func (o *PackageDetail) GetIsQuarantined() bool` + +GetIsQuarantined returns the IsQuarantined field if non-nil, zero value otherwise. + +### GetIsQuarantinedOk + +`func (o *PackageDetail) GetIsQuarantinedOk() (*bool, bool)` + +GetIsQuarantinedOk returns a tuple with the IsQuarantined field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIsQuarantined + +`func (o *PackageDetail) SetIsQuarantined(v bool)` + +SetIsQuarantined sets IsQuarantined field to given value. + +### HasIsQuarantined + +`func (o *PackageDetail) HasIsQuarantined() bool` + +HasIsQuarantined returns a boolean if a field has been set. + +### GetIsResyncable + +`func (o *PackageDetail) GetIsResyncable() bool` + +GetIsResyncable returns the IsResyncable field if non-nil, zero value otherwise. + +### GetIsResyncableOk + +`func (o *PackageDetail) GetIsResyncableOk() (*bool, bool)` + +GetIsResyncableOk returns a tuple with the IsResyncable field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIsResyncable + +`func (o *PackageDetail) SetIsResyncable(v bool)` + +SetIsResyncable sets IsResyncable field to given value. + +### HasIsResyncable + +`func (o *PackageDetail) HasIsResyncable() bool` + +HasIsResyncable returns a boolean if a field has been set. + +### GetIsSecurityScannable + +`func (o *PackageDetail) GetIsSecurityScannable() bool` + +GetIsSecurityScannable returns the IsSecurityScannable field if non-nil, zero value otherwise. + +### GetIsSecurityScannableOk + +`func (o *PackageDetail) GetIsSecurityScannableOk() (*bool, bool)` + +GetIsSecurityScannableOk returns a tuple with the IsSecurityScannable field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIsSecurityScannable + +`func (o *PackageDetail) SetIsSecurityScannable(v bool)` + +SetIsSecurityScannable sets IsSecurityScannable field to given value. + +### HasIsSecurityScannable + +`func (o *PackageDetail) HasIsSecurityScannable() bool` + +HasIsSecurityScannable returns a boolean if a field has been set. + +### GetIsSyncAwaiting + +`func (o *PackageDetail) GetIsSyncAwaiting() bool` + +GetIsSyncAwaiting returns the IsSyncAwaiting field if non-nil, zero value otherwise. + +### GetIsSyncAwaitingOk + +`func (o *PackageDetail) GetIsSyncAwaitingOk() (*bool, bool)` + +GetIsSyncAwaitingOk returns a tuple with the IsSyncAwaiting field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIsSyncAwaiting + +`func (o *PackageDetail) SetIsSyncAwaiting(v bool)` + +SetIsSyncAwaiting sets IsSyncAwaiting field to given value. + +### HasIsSyncAwaiting + +`func (o *PackageDetail) HasIsSyncAwaiting() bool` + +HasIsSyncAwaiting returns a boolean if a field has been set. + +### GetIsSyncCompleted + +`func (o *PackageDetail) GetIsSyncCompleted() bool` + +GetIsSyncCompleted returns the IsSyncCompleted field if non-nil, zero value otherwise. + +### GetIsSyncCompletedOk + +`func (o *PackageDetail) GetIsSyncCompletedOk() (*bool, bool)` + +GetIsSyncCompletedOk returns a tuple with the IsSyncCompleted field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIsSyncCompleted + +`func (o *PackageDetail) SetIsSyncCompleted(v bool)` + +SetIsSyncCompleted sets IsSyncCompleted field to given value. + +### HasIsSyncCompleted + +`func (o *PackageDetail) HasIsSyncCompleted() bool` + +HasIsSyncCompleted returns a boolean if a field has been set. + +### GetIsSyncFailed + +`func (o *PackageDetail) GetIsSyncFailed() bool` + +GetIsSyncFailed returns the IsSyncFailed field if non-nil, zero value otherwise. + +### GetIsSyncFailedOk + +`func (o *PackageDetail) GetIsSyncFailedOk() (*bool, bool)` + +GetIsSyncFailedOk returns a tuple with the IsSyncFailed field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIsSyncFailed + +`func (o *PackageDetail) SetIsSyncFailed(v bool)` + +SetIsSyncFailed sets IsSyncFailed field to given value. + +### HasIsSyncFailed + +`func (o *PackageDetail) HasIsSyncFailed() bool` + +HasIsSyncFailed returns a boolean if a field has been set. + +### GetIsSyncInFlight + +`func (o *PackageDetail) GetIsSyncInFlight() bool` + +GetIsSyncInFlight returns the IsSyncInFlight field if non-nil, zero value otherwise. + +### GetIsSyncInFlightOk + +`func (o *PackageDetail) GetIsSyncInFlightOk() (*bool, bool)` + +GetIsSyncInFlightOk returns a tuple with the IsSyncInFlight field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIsSyncInFlight + +`func (o *PackageDetail) SetIsSyncInFlight(v bool)` + +SetIsSyncInFlight sets IsSyncInFlight field to given value. + +### HasIsSyncInFlight + +`func (o *PackageDetail) HasIsSyncInFlight() bool` + +HasIsSyncInFlight returns a boolean if a field has been set. + +### GetIsSyncInProgress + +`func (o *PackageDetail) GetIsSyncInProgress() bool` + +GetIsSyncInProgress returns the IsSyncInProgress field if non-nil, zero value otherwise. + +### GetIsSyncInProgressOk + +`func (o *PackageDetail) GetIsSyncInProgressOk() (*bool, bool)` + +GetIsSyncInProgressOk returns a tuple with the IsSyncInProgress field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIsSyncInProgress + +`func (o *PackageDetail) SetIsSyncInProgress(v bool)` + +SetIsSyncInProgress sets IsSyncInProgress field to given value. + +### HasIsSyncInProgress + +`func (o *PackageDetail) HasIsSyncInProgress() bool` + +HasIsSyncInProgress returns a boolean if a field has been set. + +### GetLicense + +`func (o *PackageDetail) GetLicense() string` + +GetLicense returns the License field if non-nil, zero value otherwise. + +### GetLicenseOk + +`func (o *PackageDetail) GetLicenseOk() (*string, bool)` + +GetLicenseOk returns a tuple with the License field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLicense + +`func (o *PackageDetail) SetLicense(v string)` + +SetLicense sets License field to given value. + +### HasLicense + +`func (o *PackageDetail) HasLicense() bool` + +HasLicense returns a boolean if a field has been set. + +### SetLicenseNil + +`func (o *PackageDetail) SetLicenseNil(b bool)` + + SetLicenseNil sets the value for License to be an explicit nil + +### UnsetLicense +`func (o *PackageDetail) UnsetLicense()` + +UnsetLicense ensures that no value is present for License, not even an explicit nil +### GetName + +`func (o *PackageDetail) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *PackageDetail) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *PackageDetail) SetName(v string)` + +SetName sets Name field to given value. + +### HasName + +`func (o *PackageDetail) HasName() bool` + +HasName returns a boolean if a field has been set. + +### SetNameNil + +`func (o *PackageDetail) SetNameNil(b bool)` + + SetNameNil sets the value for Name to be an explicit nil + +### UnsetName +`func (o *PackageDetail) UnsetName()` + +UnsetName ensures that no value is present for Name, not even an explicit nil +### GetNamespace + +`func (o *PackageDetail) GetNamespace() string` + +GetNamespace returns the Namespace field if non-nil, zero value otherwise. + +### GetNamespaceOk + +`func (o *PackageDetail) GetNamespaceOk() (*string, bool)` + +GetNamespaceOk returns a tuple with the Namespace field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetNamespace + +`func (o *PackageDetail) SetNamespace(v string)` + +SetNamespace sets Namespace field to given value. + +### HasNamespace + +`func (o *PackageDetail) HasNamespace() bool` + +HasNamespace returns a boolean if a field has been set. + +### GetNamespaceUrl + +`func (o *PackageDetail) GetNamespaceUrl() string` + +GetNamespaceUrl returns the NamespaceUrl field if non-nil, zero value otherwise. + +### GetNamespaceUrlOk + +`func (o *PackageDetail) GetNamespaceUrlOk() (*string, bool)` + +GetNamespaceUrlOk returns a tuple with the NamespaceUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetNamespaceUrl + +`func (o *PackageDetail) SetNamespaceUrl(v string)` + +SetNamespaceUrl sets NamespaceUrl field to given value. + +### HasNamespaceUrl + +`func (o *PackageDetail) HasNamespaceUrl() bool` + +HasNamespaceUrl returns a boolean if a field has been set. + +### GetNumFiles + +`func (o *PackageDetail) GetNumFiles() int64` + +GetNumFiles returns the NumFiles field if non-nil, zero value otherwise. + +### GetNumFilesOk + +`func (o *PackageDetail) GetNumFilesOk() (*int64, bool)` + +GetNumFilesOk returns a tuple with the NumFiles field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetNumFiles + +`func (o *PackageDetail) SetNumFiles(v int64)` + +SetNumFiles sets NumFiles field to given value. + +### HasNumFiles + +`func (o *PackageDetail) HasNumFiles() bool` + +HasNumFiles returns a boolean if a field has been set. + +### GetOriginRepository + +`func (o *PackageDetail) GetOriginRepository() string` + +GetOriginRepository returns the OriginRepository field if non-nil, zero value otherwise. + +### GetOriginRepositoryOk + +`func (o *PackageDetail) GetOriginRepositoryOk() (*string, bool)` + +GetOriginRepositoryOk returns a tuple with the OriginRepository field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOriginRepository + +`func (o *PackageDetail) SetOriginRepository(v string)` + +SetOriginRepository sets OriginRepository field to given value. + +### HasOriginRepository + +`func (o *PackageDetail) HasOriginRepository() bool` + +HasOriginRepository returns a boolean if a field has been set. + +### GetOriginRepositoryUrl + +`func (o *PackageDetail) GetOriginRepositoryUrl() string` + +GetOriginRepositoryUrl returns the OriginRepositoryUrl field if non-nil, zero value otherwise. + +### GetOriginRepositoryUrlOk + +`func (o *PackageDetail) GetOriginRepositoryUrlOk() (*string, bool)` + +GetOriginRepositoryUrlOk returns a tuple with the OriginRepositoryUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOriginRepositoryUrl + +`func (o *PackageDetail) SetOriginRepositoryUrl(v string)` + +SetOriginRepositoryUrl sets OriginRepositoryUrl field to given value. + +### HasOriginRepositoryUrl + +`func (o *PackageDetail) HasOriginRepositoryUrl() bool` + +HasOriginRepositoryUrl returns a boolean if a field has been set. + +### GetOsiApproved + +`func (o *PackageDetail) GetOsiApproved() bool` + +GetOsiApproved returns the OsiApproved field if non-nil, zero value otherwise. + +### GetOsiApprovedOk + +`func (o *PackageDetail) GetOsiApprovedOk() (*bool, bool)` + +GetOsiApprovedOk returns a tuple with the OsiApproved field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOsiApproved + +`func (o *PackageDetail) SetOsiApproved(v bool)` + +SetOsiApproved sets OsiApproved field to given value. + +### HasOsiApproved + +`func (o *PackageDetail) HasOsiApproved() bool` + +HasOsiApproved returns a boolean if a field has been set. + +### GetPackageType + +`func (o *PackageDetail) GetPackageType() int64` + +GetPackageType returns the PackageType field if non-nil, zero value otherwise. + +### GetPackageTypeOk + +`func (o *PackageDetail) GetPackageTypeOk() (*int64, bool)` + +GetPackageTypeOk returns a tuple with the PackageType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPackageType + +`func (o *PackageDetail) SetPackageType(v int64)` + +SetPackageType sets PackageType field to given value. + +### HasPackageType + +`func (o *PackageDetail) HasPackageType() bool` + +HasPackageType returns a boolean if a field has been set. + +### GetPolicyViolated + +`func (o *PackageDetail) GetPolicyViolated() bool` + +GetPolicyViolated returns the PolicyViolated field if non-nil, zero value otherwise. + +### GetPolicyViolatedOk + +`func (o *PackageDetail) GetPolicyViolatedOk() (*bool, bool)` + +GetPolicyViolatedOk returns a tuple with the PolicyViolated field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPolicyViolated + +`func (o *PackageDetail) SetPolicyViolated(v bool)` + +SetPolicyViolated sets PolicyViolated field to given value. + +### HasPolicyViolated + +`func (o *PackageDetail) HasPolicyViolated() bool` + +HasPolicyViolated returns a boolean if a field has been set. + +### GetRawLicense + +`func (o *PackageDetail) GetRawLicense() string` + +GetRawLicense returns the RawLicense field if non-nil, zero value otherwise. + +### GetRawLicenseOk + +`func (o *PackageDetail) GetRawLicenseOk() (*string, bool)` + +GetRawLicenseOk returns a tuple with the RawLicense field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRawLicense + +`func (o *PackageDetail) SetRawLicense(v string)` + +SetRawLicense sets RawLicense field to given value. + +### HasRawLicense + +`func (o *PackageDetail) HasRawLicense() bool` + +HasRawLicense returns a boolean if a field has been set. + +### SetRawLicenseNil + +`func (o *PackageDetail) SetRawLicenseNil(b bool)` + + SetRawLicenseNil sets the value for RawLicense to be an explicit nil + +### UnsetRawLicense +`func (o *PackageDetail) UnsetRawLicense()` + +UnsetRawLicense ensures that no value is present for RawLicense, not even an explicit nil +### GetRelease + +`func (o *PackageDetail) GetRelease() string` + +GetRelease returns the Release field if non-nil, zero value otherwise. + +### GetReleaseOk + +`func (o *PackageDetail) GetReleaseOk() (*string, bool)` + +GetReleaseOk returns a tuple with the Release field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRelease + +`func (o *PackageDetail) SetRelease(v string)` + +SetRelease sets Release field to given value. + +### HasRelease + +`func (o *PackageDetail) HasRelease() bool` + +HasRelease returns a boolean if a field has been set. + +### SetReleaseNil + +`func (o *PackageDetail) SetReleaseNil(b bool)` + + SetReleaseNil sets the value for Release to be an explicit nil + +### UnsetRelease +`func (o *PackageDetail) UnsetRelease()` + +UnsetRelease ensures that no value is present for Release, not even an explicit nil +### GetRepository + +`func (o *PackageDetail) GetRepository() string` + +GetRepository returns the Repository field if non-nil, zero value otherwise. + +### GetRepositoryOk + +`func (o *PackageDetail) GetRepositoryOk() (*string, bool)` + +GetRepositoryOk returns a tuple with the Repository field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRepository + +`func (o *PackageDetail) SetRepository(v string)` + +SetRepository sets Repository field to given value. + +### HasRepository + +`func (o *PackageDetail) HasRepository() bool` + +HasRepository returns a boolean if a field has been set. + +### GetRepositoryUrl + +`func (o *PackageDetail) GetRepositoryUrl() string` + +GetRepositoryUrl returns the RepositoryUrl field if non-nil, zero value otherwise. + +### GetRepositoryUrlOk + +`func (o *PackageDetail) GetRepositoryUrlOk() (*string, bool)` + +GetRepositoryUrlOk returns a tuple with the RepositoryUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRepositoryUrl + +`func (o *PackageDetail) SetRepositoryUrl(v string)` + +SetRepositoryUrl sets RepositoryUrl field to given value. + +### HasRepositoryUrl + +`func (o *PackageDetail) HasRepositoryUrl() bool` + +HasRepositoryUrl returns a boolean if a field has been set. + +### GetSecurityScanCompletedAt + +`func (o *PackageDetail) GetSecurityScanCompletedAt() time.Time` + +GetSecurityScanCompletedAt returns the SecurityScanCompletedAt field if non-nil, zero value otherwise. + +### GetSecurityScanCompletedAtOk + +`func (o *PackageDetail) GetSecurityScanCompletedAtOk() (*time.Time, bool)` + +GetSecurityScanCompletedAtOk returns a tuple with the SecurityScanCompletedAt field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSecurityScanCompletedAt + +`func (o *PackageDetail) SetSecurityScanCompletedAt(v time.Time)` + +SetSecurityScanCompletedAt sets SecurityScanCompletedAt field to given value. + +### HasSecurityScanCompletedAt + +`func (o *PackageDetail) HasSecurityScanCompletedAt() bool` + +HasSecurityScanCompletedAt returns a boolean if a field has been set. + +### SetSecurityScanCompletedAtNil + +`func (o *PackageDetail) SetSecurityScanCompletedAtNil(b bool)` + + SetSecurityScanCompletedAtNil sets the value for SecurityScanCompletedAt to be an explicit nil + +### UnsetSecurityScanCompletedAt +`func (o *PackageDetail) UnsetSecurityScanCompletedAt()` + +UnsetSecurityScanCompletedAt ensures that no value is present for SecurityScanCompletedAt, not even an explicit nil +### GetSecurityScanStartedAt + +`func (o *PackageDetail) GetSecurityScanStartedAt() time.Time` + +GetSecurityScanStartedAt returns the SecurityScanStartedAt field if non-nil, zero value otherwise. + +### GetSecurityScanStartedAtOk + +`func (o *PackageDetail) GetSecurityScanStartedAtOk() (*time.Time, bool)` + +GetSecurityScanStartedAtOk returns a tuple with the SecurityScanStartedAt field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSecurityScanStartedAt + +`func (o *PackageDetail) SetSecurityScanStartedAt(v time.Time)` + +SetSecurityScanStartedAt sets SecurityScanStartedAt field to given value. + +### HasSecurityScanStartedAt + +`func (o *PackageDetail) HasSecurityScanStartedAt() bool` + +HasSecurityScanStartedAt returns a boolean if a field has been set. + +### SetSecurityScanStartedAtNil + +`func (o *PackageDetail) SetSecurityScanStartedAtNil(b bool)` + + SetSecurityScanStartedAtNil sets the value for SecurityScanStartedAt to be an explicit nil + +### UnsetSecurityScanStartedAt +`func (o *PackageDetail) UnsetSecurityScanStartedAt()` + +UnsetSecurityScanStartedAt ensures that no value is present for SecurityScanStartedAt, not even an explicit nil +### GetSecurityScanStatus + +`func (o *PackageDetail) GetSecurityScanStatus() string` + +GetSecurityScanStatus returns the SecurityScanStatus field if non-nil, zero value otherwise. + +### GetSecurityScanStatusOk + +`func (o *PackageDetail) GetSecurityScanStatusOk() (*string, bool)` + +GetSecurityScanStatusOk returns a tuple with the SecurityScanStatus field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSecurityScanStatus + +`func (o *PackageDetail) SetSecurityScanStatus(v string)` + +SetSecurityScanStatus sets SecurityScanStatus field to given value. + +### HasSecurityScanStatus + +`func (o *PackageDetail) HasSecurityScanStatus() bool` + +HasSecurityScanStatus returns a boolean if a field has been set. + +### SetSecurityScanStatusNil + +`func (o *PackageDetail) SetSecurityScanStatusNil(b bool)` + + SetSecurityScanStatusNil sets the value for SecurityScanStatus to be an explicit nil + +### UnsetSecurityScanStatus +`func (o *PackageDetail) UnsetSecurityScanStatus()` + +UnsetSecurityScanStatus ensures that no value is present for SecurityScanStatus, not even an explicit nil +### GetSecurityScanStatusUpdatedAt + +`func (o *PackageDetail) GetSecurityScanStatusUpdatedAt() time.Time` + +GetSecurityScanStatusUpdatedAt returns the SecurityScanStatusUpdatedAt field if non-nil, zero value otherwise. + +### GetSecurityScanStatusUpdatedAtOk + +`func (o *PackageDetail) GetSecurityScanStatusUpdatedAtOk() (*time.Time, bool)` + +GetSecurityScanStatusUpdatedAtOk returns a tuple with the SecurityScanStatusUpdatedAt field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSecurityScanStatusUpdatedAt + +`func (o *PackageDetail) SetSecurityScanStatusUpdatedAt(v time.Time)` + +SetSecurityScanStatusUpdatedAt sets SecurityScanStatusUpdatedAt field to given value. + +### HasSecurityScanStatusUpdatedAt + +`func (o *PackageDetail) HasSecurityScanStatusUpdatedAt() bool` + +HasSecurityScanStatusUpdatedAt returns a boolean if a field has been set. + +### SetSecurityScanStatusUpdatedAtNil + +`func (o *PackageDetail) SetSecurityScanStatusUpdatedAtNil(b bool)` + + SetSecurityScanStatusUpdatedAtNil sets the value for SecurityScanStatusUpdatedAt to be an explicit nil + +### UnsetSecurityScanStatusUpdatedAt +`func (o *PackageDetail) UnsetSecurityScanStatusUpdatedAt()` + +UnsetSecurityScanStatusUpdatedAt ensures that no value is present for SecurityScanStatusUpdatedAt, not even an explicit nil +### GetSelfHtmlUrl + +`func (o *PackageDetail) GetSelfHtmlUrl() string` + +GetSelfHtmlUrl returns the SelfHtmlUrl field if non-nil, zero value otherwise. + +### GetSelfHtmlUrlOk + +`func (o *PackageDetail) GetSelfHtmlUrlOk() (*string, bool)` + +GetSelfHtmlUrlOk returns a tuple with the SelfHtmlUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSelfHtmlUrl + +`func (o *PackageDetail) SetSelfHtmlUrl(v string)` + +SetSelfHtmlUrl sets SelfHtmlUrl field to given value. + +### HasSelfHtmlUrl + +`func (o *PackageDetail) HasSelfHtmlUrl() bool` + +HasSelfHtmlUrl returns a boolean if a field has been set. + +### GetSelfUrl + +`func (o *PackageDetail) GetSelfUrl() string` + +GetSelfUrl returns the SelfUrl field if non-nil, zero value otherwise. + +### GetSelfUrlOk + +`func (o *PackageDetail) GetSelfUrlOk() (*string, bool)` + +GetSelfUrlOk returns a tuple with the SelfUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSelfUrl + +`func (o *PackageDetail) SetSelfUrl(v string)` + +SetSelfUrl sets SelfUrl field to given value. + +### HasSelfUrl + +`func (o *PackageDetail) HasSelfUrl() bool` + +HasSelfUrl returns a boolean if a field has been set. + +### GetSelfWebappUrl + +`func (o *PackageDetail) GetSelfWebappUrl() string` + +GetSelfWebappUrl returns the SelfWebappUrl field if non-nil, zero value otherwise. + +### GetSelfWebappUrlOk + +`func (o *PackageDetail) GetSelfWebappUrlOk() (*string, bool)` + +GetSelfWebappUrlOk returns a tuple with the SelfWebappUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSelfWebappUrl + +`func (o *PackageDetail) SetSelfWebappUrl(v string)` + +SetSelfWebappUrl sets SelfWebappUrl field to given value. + +### HasSelfWebappUrl + +`func (o *PackageDetail) HasSelfWebappUrl() bool` + +HasSelfWebappUrl returns a boolean if a field has been set. + +### GetSignatureUrl + +`func (o *PackageDetail) GetSignatureUrl() string` + +GetSignatureUrl returns the SignatureUrl field if non-nil, zero value otherwise. + +### GetSignatureUrlOk + +`func (o *PackageDetail) GetSignatureUrlOk() (*string, bool)` + +GetSignatureUrlOk returns a tuple with the SignatureUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSignatureUrl + +`func (o *PackageDetail) SetSignatureUrl(v string)` + +SetSignatureUrl sets SignatureUrl field to given value. + +### HasSignatureUrl + +`func (o *PackageDetail) HasSignatureUrl() bool` + +HasSignatureUrl returns a boolean if a field has been set. + +### SetSignatureUrlNil + +`func (o *PackageDetail) SetSignatureUrlNil(b bool)` + + SetSignatureUrlNil sets the value for SignatureUrl to be an explicit nil + +### UnsetSignatureUrl +`func (o *PackageDetail) UnsetSignatureUrl()` + +UnsetSignatureUrl ensures that no value is present for SignatureUrl, not even an explicit nil +### GetSize + +`func (o *PackageDetail) GetSize() int64` + +GetSize returns the Size field if non-nil, zero value otherwise. + +### GetSizeOk + +`func (o *PackageDetail) GetSizeOk() (*int64, bool)` + +GetSizeOk returns a tuple with the Size field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSize + +`func (o *PackageDetail) SetSize(v int64)` + +SetSize sets Size field to given value. + +### HasSize + +`func (o *PackageDetail) HasSize() bool` + +HasSize returns a boolean if a field has been set. + +### GetSlug + +`func (o *PackageDetail) GetSlug() string` + +GetSlug returns the Slug field if non-nil, zero value otherwise. + +### GetSlugOk + +`func (o *PackageDetail) GetSlugOk() (*string, bool)` + +GetSlugOk returns a tuple with the Slug field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSlug + +`func (o *PackageDetail) SetSlug(v string)` + +SetSlug sets Slug field to given value. + +### HasSlug + +`func (o *PackageDetail) HasSlug() bool` + +HasSlug returns a boolean if a field has been set. + +### GetSlugPerm + +`func (o *PackageDetail) GetSlugPerm() string` + +GetSlugPerm returns the SlugPerm field if non-nil, zero value otherwise. + +### GetSlugPermOk + +`func (o *PackageDetail) GetSlugPermOk() (*string, bool)` + +GetSlugPermOk returns a tuple with the SlugPerm field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSlugPerm + +`func (o *PackageDetail) SetSlugPerm(v string)` + +SetSlugPerm sets SlugPerm field to given value. + +### HasSlugPerm + +`func (o *PackageDetail) HasSlugPerm() bool` + +HasSlugPerm returns a boolean if a field has been set. + +### GetSpdxLicense + +`func (o *PackageDetail) GetSpdxLicense() string` + +GetSpdxLicense returns the SpdxLicense field if non-nil, zero value otherwise. + +### GetSpdxLicenseOk + +`func (o *PackageDetail) GetSpdxLicenseOk() (*string, bool)` + +GetSpdxLicenseOk returns a tuple with the SpdxLicense field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSpdxLicense + +`func (o *PackageDetail) SetSpdxLicense(v string)` + +SetSpdxLicense sets SpdxLicense field to given value. + +### HasSpdxLicense + +`func (o *PackageDetail) HasSpdxLicense() bool` + +HasSpdxLicense returns a boolean if a field has been set. + +### SetSpdxLicenseNil + +`func (o *PackageDetail) SetSpdxLicenseNil(b bool)` + + SetSpdxLicenseNil sets the value for SpdxLicense to be an explicit nil + +### UnsetSpdxLicense +`func (o *PackageDetail) UnsetSpdxLicense()` + +UnsetSpdxLicense ensures that no value is present for SpdxLicense, not even an explicit nil +### GetStage + +`func (o *PackageDetail) GetStage() int64` + +GetStage returns the Stage field if non-nil, zero value otherwise. + +### GetStageOk + +`func (o *PackageDetail) GetStageOk() (*int64, bool)` + +GetStageOk returns a tuple with the Stage field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStage + +`func (o *PackageDetail) SetStage(v int64)` + +SetStage sets Stage field to given value. + +### HasStage + +`func (o *PackageDetail) HasStage() bool` + +HasStage returns a boolean if a field has been set. + +### GetStageStr + +`func (o *PackageDetail) GetStageStr() string` + +GetStageStr returns the StageStr field if non-nil, zero value otherwise. + +### GetStageStrOk + +`func (o *PackageDetail) GetStageStrOk() (*string, bool)` + +GetStageStrOk returns a tuple with the StageStr field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStageStr + +`func (o *PackageDetail) SetStageStr(v string)` + +SetStageStr sets StageStr field to given value. + +### HasStageStr + +`func (o *PackageDetail) HasStageStr() bool` + +HasStageStr returns a boolean if a field has been set. + +### GetStageUpdatedAt + +`func (o *PackageDetail) GetStageUpdatedAt() time.Time` + +GetStageUpdatedAt returns the StageUpdatedAt field if non-nil, zero value otherwise. + +### GetStageUpdatedAtOk + +`func (o *PackageDetail) GetStageUpdatedAtOk() (*time.Time, bool)` + +GetStageUpdatedAtOk returns a tuple with the StageUpdatedAt field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStageUpdatedAt + +`func (o *PackageDetail) SetStageUpdatedAt(v time.Time)` + +SetStageUpdatedAt sets StageUpdatedAt field to given value. + +### HasStageUpdatedAt + +`func (o *PackageDetail) HasStageUpdatedAt() bool` + +HasStageUpdatedAt returns a boolean if a field has been set. + +### GetStatus + +`func (o *PackageDetail) GetStatus() int64` + +GetStatus returns the Status field if non-nil, zero value otherwise. + +### GetStatusOk + +`func (o *PackageDetail) GetStatusOk() (*int64, bool)` + +GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStatus + +`func (o *PackageDetail) SetStatus(v int64)` + +SetStatus sets Status field to given value. + +### HasStatus + +`func (o *PackageDetail) HasStatus() bool` + +HasStatus returns a boolean if a field has been set. + +### GetStatusReason + +`func (o *PackageDetail) GetStatusReason() string` + +GetStatusReason returns the StatusReason field if non-nil, zero value otherwise. + +### GetStatusReasonOk + +`func (o *PackageDetail) GetStatusReasonOk() (*string, bool)` + +GetStatusReasonOk returns a tuple with the StatusReason field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStatusReason + +`func (o *PackageDetail) SetStatusReason(v string)` + +SetStatusReason sets StatusReason field to given value. + +### HasStatusReason + +`func (o *PackageDetail) HasStatusReason() bool` + +HasStatusReason returns a boolean if a field has been set. + +### SetStatusReasonNil + +`func (o *PackageDetail) SetStatusReasonNil(b bool)` + + SetStatusReasonNil sets the value for StatusReason to be an explicit nil + +### UnsetStatusReason +`func (o *PackageDetail) UnsetStatusReason()` + +UnsetStatusReason ensures that no value is present for StatusReason, not even an explicit nil +### GetStatusStr + +`func (o *PackageDetail) GetStatusStr() string` + +GetStatusStr returns the StatusStr field if non-nil, zero value otherwise. + +### GetStatusStrOk + +`func (o *PackageDetail) GetStatusStrOk() (*string, bool)` + +GetStatusStrOk returns a tuple with the StatusStr field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStatusStr + +`func (o *PackageDetail) SetStatusStr(v string)` + +SetStatusStr sets StatusStr field to given value. + +### HasStatusStr + +`func (o *PackageDetail) HasStatusStr() bool` + +HasStatusStr returns a boolean if a field has been set. + +### GetStatusUpdatedAt + +`func (o *PackageDetail) GetStatusUpdatedAt() time.Time` + +GetStatusUpdatedAt returns the StatusUpdatedAt field if non-nil, zero value otherwise. + +### GetStatusUpdatedAtOk + +`func (o *PackageDetail) GetStatusUpdatedAtOk() (*time.Time, bool)` + +GetStatusUpdatedAtOk returns a tuple with the StatusUpdatedAt field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStatusUpdatedAt + +`func (o *PackageDetail) SetStatusUpdatedAt(v time.Time)` + +SetStatusUpdatedAt sets StatusUpdatedAt field to given value. + +### HasStatusUpdatedAt + +`func (o *PackageDetail) HasStatusUpdatedAt() bool` + +HasStatusUpdatedAt returns a boolean if a field has been set. + +### GetStatusUrl + +`func (o *PackageDetail) GetStatusUrl() string` + +GetStatusUrl returns the StatusUrl field if non-nil, zero value otherwise. + +### GetStatusUrlOk + +`func (o *PackageDetail) GetStatusUrlOk() (*string, bool)` + +GetStatusUrlOk returns a tuple with the StatusUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStatusUrl + +`func (o *PackageDetail) SetStatusUrl(v string)` + +SetStatusUrl sets StatusUrl field to given value. + +### HasStatusUrl + +`func (o *PackageDetail) HasStatusUrl() bool` + +HasStatusUrl returns a boolean if a field has been set. + +### GetSubtype + +`func (o *PackageDetail) GetSubtype() string` + +GetSubtype returns the Subtype field if non-nil, zero value otherwise. + +### GetSubtypeOk + +`func (o *PackageDetail) GetSubtypeOk() (*string, bool)` + +GetSubtypeOk returns a tuple with the Subtype field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSubtype + +`func (o *PackageDetail) SetSubtype(v string)` + +SetSubtype sets Subtype field to given value. + +### HasSubtype + +`func (o *PackageDetail) HasSubtype() bool` + +HasSubtype returns a boolean if a field has been set. + +### GetSummary + +`func (o *PackageDetail) GetSummary() string` + +GetSummary returns the Summary field if non-nil, zero value otherwise. + +### GetSummaryOk + +`func (o *PackageDetail) GetSummaryOk() (*string, bool)` + +GetSummaryOk returns a tuple with the Summary field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSummary + +`func (o *PackageDetail) SetSummary(v string)` + +SetSummary sets Summary field to given value. + +### HasSummary + +`func (o *PackageDetail) HasSummary() bool` + +HasSummary returns a boolean if a field has been set. + +### SetSummaryNil + +`func (o *PackageDetail) SetSummaryNil(b bool)` + + SetSummaryNil sets the value for Summary to be an explicit nil + +### UnsetSummary +`func (o *PackageDetail) UnsetSummary()` + +UnsetSummary ensures that no value is present for Summary, not even an explicit nil +### GetSyncFinishedAt + +`func (o *PackageDetail) GetSyncFinishedAt() time.Time` + +GetSyncFinishedAt returns the SyncFinishedAt field if non-nil, zero value otherwise. + +### GetSyncFinishedAtOk + +`func (o *PackageDetail) GetSyncFinishedAtOk() (*time.Time, bool)` + +GetSyncFinishedAtOk returns a tuple with the SyncFinishedAt field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSyncFinishedAt + +`func (o *PackageDetail) SetSyncFinishedAt(v time.Time)` + +SetSyncFinishedAt sets SyncFinishedAt field to given value. + +### HasSyncFinishedAt + +`func (o *PackageDetail) HasSyncFinishedAt() bool` + +HasSyncFinishedAt returns a boolean if a field has been set. + +### SetSyncFinishedAtNil + +`func (o *PackageDetail) SetSyncFinishedAtNil(b bool)` + + SetSyncFinishedAtNil sets the value for SyncFinishedAt to be an explicit nil + +### UnsetSyncFinishedAt +`func (o *PackageDetail) UnsetSyncFinishedAt()` + +UnsetSyncFinishedAt ensures that no value is present for SyncFinishedAt, not even an explicit nil +### GetSyncProgress + +`func (o *PackageDetail) GetSyncProgress() int64` + +GetSyncProgress returns the SyncProgress field if non-nil, zero value otherwise. + +### GetSyncProgressOk + +`func (o *PackageDetail) GetSyncProgressOk() (*int64, bool)` + +GetSyncProgressOk returns a tuple with the SyncProgress field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSyncProgress + +`func (o *PackageDetail) SetSyncProgress(v int64)` + +SetSyncProgress sets SyncProgress field to given value. + +### HasSyncProgress + +`func (o *PackageDetail) HasSyncProgress() bool` + +HasSyncProgress returns a boolean if a field has been set. + +### GetTags + +`func (o *PackageDetail) GetTags() map[string]interface{}` + +GetTags returns the Tags field if non-nil, zero value otherwise. + +### GetTagsOk + +`func (o *PackageDetail) GetTagsOk() (*map[string]interface{}, bool)` + +GetTagsOk returns a tuple with the Tags field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTags + +`func (o *PackageDetail) SetTags(v map[string]interface{})` + +SetTags sets Tags field to given value. + +### HasTags + +`func (o *PackageDetail) HasTags() bool` + +HasTags returns a boolean if a field has been set. + +### GetTagsAutomatic + +`func (o *PackageDetail) GetTagsAutomatic() map[string]interface{}` + +GetTagsAutomatic returns the TagsAutomatic field if non-nil, zero value otherwise. + +### GetTagsAutomaticOk + +`func (o *PackageDetail) GetTagsAutomaticOk() (*map[string]interface{}, bool)` + +GetTagsAutomaticOk returns a tuple with the TagsAutomatic field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTagsAutomatic + +`func (o *PackageDetail) SetTagsAutomatic(v map[string]interface{})` + +SetTagsAutomatic sets TagsAutomatic field to given value. + +### HasTagsAutomatic + +`func (o *PackageDetail) HasTagsAutomatic() bool` + +HasTagsAutomatic returns a boolean if a field has been set. + +### GetTagsImmutable + +`func (o *PackageDetail) GetTagsImmutable() map[string]interface{}` + +GetTagsImmutable returns the TagsImmutable field if non-nil, zero value otherwise. + +### GetTagsImmutableOk + +`func (o *PackageDetail) GetTagsImmutableOk() (*map[string]interface{}, bool)` + +GetTagsImmutableOk returns a tuple with the TagsImmutable field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTagsImmutable + +`func (o *PackageDetail) SetTagsImmutable(v map[string]interface{})` + +SetTagsImmutable sets TagsImmutable field to given value. + +### HasTagsImmutable + +`func (o *PackageDetail) HasTagsImmutable() bool` + +HasTagsImmutable returns a boolean if a field has been set. + +### GetTypeDisplay + +`func (o *PackageDetail) GetTypeDisplay() string` + +GetTypeDisplay returns the TypeDisplay field if non-nil, zero value otherwise. + +### GetTypeDisplayOk + +`func (o *PackageDetail) GetTypeDisplayOk() (*string, bool)` + +GetTypeDisplayOk returns a tuple with the TypeDisplay field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTypeDisplay + +`func (o *PackageDetail) SetTypeDisplay(v string)` + +SetTypeDisplay sets TypeDisplay field to given value. + +### HasTypeDisplay + +`func (o *PackageDetail) HasTypeDisplay() bool` + +HasTypeDisplay returns a boolean if a field has been set. + +### GetUploadedAt + +`func (o *PackageDetail) GetUploadedAt() time.Time` + +GetUploadedAt returns the UploadedAt field if non-nil, zero value otherwise. + +### GetUploadedAtOk + +`func (o *PackageDetail) GetUploadedAtOk() (*time.Time, bool)` + +GetUploadedAtOk returns a tuple with the UploadedAt field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUploadedAt + +`func (o *PackageDetail) SetUploadedAt(v time.Time)` + +SetUploadedAt sets UploadedAt field to given value. + +### HasUploadedAt + +`func (o *PackageDetail) HasUploadedAt() bool` + +HasUploadedAt returns a boolean if a field has been set. + +### GetUploader + +`func (o *PackageDetail) GetUploader() string` + +GetUploader returns the Uploader field if non-nil, zero value otherwise. + +### GetUploaderOk + +`func (o *PackageDetail) GetUploaderOk() (*string, bool)` + +GetUploaderOk returns a tuple with the Uploader field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUploader + +`func (o *PackageDetail) SetUploader(v string)` + +SetUploader sets Uploader field to given value. + +### HasUploader + +`func (o *PackageDetail) HasUploader() bool` + +HasUploader returns a boolean if a field has been set. + +### GetUploaderUrl + +`func (o *PackageDetail) GetUploaderUrl() string` + +GetUploaderUrl returns the UploaderUrl field if non-nil, zero value otherwise. + +### GetUploaderUrlOk + +`func (o *PackageDetail) GetUploaderUrlOk() (*string, bool)` + +GetUploaderUrlOk returns a tuple with the UploaderUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUploaderUrl + +`func (o *PackageDetail) SetUploaderUrl(v string)` + +SetUploaderUrl sets UploaderUrl field to given value. + +### HasUploaderUrl + +`func (o *PackageDetail) HasUploaderUrl() bool` + +HasUploaderUrl returns a boolean if a field has been set. + +### GetVersion + +`func (o *PackageDetail) GetVersion() string` + +GetVersion returns the Version field if non-nil, zero value otherwise. + +### GetVersionOk + +`func (o *PackageDetail) GetVersionOk() (*string, bool)` + +GetVersionOk returns a tuple with the Version field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetVersion + +`func (o *PackageDetail) SetVersion(v string)` + +SetVersion sets Version field to given value. + +### HasVersion + +`func (o *PackageDetail) HasVersion() bool` + +HasVersion returns a boolean if a field has been set. + +### SetVersionNil + +`func (o *PackageDetail) SetVersionNil(b bool)` + + SetVersionNil sets the value for Version to be an explicit nil + +### UnsetVersion +`func (o *PackageDetail) UnsetVersion()` + +UnsetVersion ensures that no value is present for Version, not even an explicit nil +### GetVersionOrig + +`func (o *PackageDetail) GetVersionOrig() string` + +GetVersionOrig returns the VersionOrig field if non-nil, zero value otherwise. + +### GetVersionOrigOk + +`func (o *PackageDetail) GetVersionOrigOk() (*string, bool)` + +GetVersionOrigOk returns a tuple with the VersionOrig field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetVersionOrig + +`func (o *PackageDetail) SetVersionOrig(v string)` + +SetVersionOrig sets VersionOrig field to given value. + +### HasVersionOrig + +`func (o *PackageDetail) HasVersionOrig() bool` + +HasVersionOrig returns a boolean if a field has been set. + +### GetVulnerabilityCounts + +`func (o *PackageDetail) GetVulnerabilityCounts() WebOSVSeverityCounts` + +GetVulnerabilityCounts returns the VulnerabilityCounts field if non-nil, zero value otherwise. + +### GetVulnerabilityCountsOk + +`func (o *PackageDetail) GetVulnerabilityCountsOk() (*WebOSVSeverityCounts, bool)` + +GetVulnerabilityCountsOk returns a tuple with the VulnerabilityCounts field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetVulnerabilityCounts + +`func (o *PackageDetail) SetVulnerabilityCounts(v WebOSVSeverityCounts)` + +SetVulnerabilityCounts sets VulnerabilityCounts field to given value. + +### HasVulnerabilityCounts + +`func (o *PackageDetail) HasVulnerabilityCounts() bool` + +HasVulnerabilityCounts returns a boolean if a field has been set. + +### SetVulnerabilityCountsNil + +`func (o *PackageDetail) SetVulnerabilityCountsNil(b bool)` + + SetVulnerabilityCountsNil sets the value for VulnerabilityCounts to be an explicit nil + +### UnsetVulnerabilityCounts +`func (o *PackageDetail) UnsetVulnerabilityCounts()` + +UnsetVulnerabilityCounts ensures that no value is present for VulnerabilityCounts, not even an explicit nil +### GetVulnerabilityScanResultsUrl + +`func (o *PackageDetail) GetVulnerabilityScanResultsUrl() string` + +GetVulnerabilityScanResultsUrl returns the VulnerabilityScanResultsUrl field if non-nil, zero value otherwise. + +### GetVulnerabilityScanResultsUrlOk + +`func (o *PackageDetail) GetVulnerabilityScanResultsUrlOk() (*string, bool)` + +GetVulnerabilityScanResultsUrlOk returns a tuple with the VulnerabilityScanResultsUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetVulnerabilityScanResultsUrl + +`func (o *PackageDetail) SetVulnerabilityScanResultsUrl(v string)` + +SetVulnerabilityScanResultsUrl sets VulnerabilityScanResultsUrl field to given value. + +### HasVulnerabilityScanResultsUrl + +`func (o *PackageDetail) HasVulnerabilityScanResultsUrl() bool` + +HasVulnerabilityScanResultsUrl returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/PackageLicense.md b/docs/PackageLicense.md index 38e6733f..e30a562a 100644 --- a/docs/PackageLicense.md +++ b/docs/PackageLicense.md @@ -4,10 +4,12 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**IsMalwareDetected** | Pointer to **bool** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] [readonly] **LicenseNotes** | Pointer to **NullableString** | | [optional] **LicenseOverride** | Pointer to **NullableString** | | [optional] [default to "None"] **LicenseUrl** | Pointer to **NullableString** | | [optional] **SpdxLicense** | **string** | | +**VulnerabilityCounts** | Pointer to [**NullableWebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] ## Methods @@ -28,6 +30,31 @@ NewPackageLicenseWithDefaults instantiates a new PackageLicense object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set +### GetIsMalwareDetected + +`func (o *PackageLicense) GetIsMalwareDetected() bool` + +GetIsMalwareDetected returns the IsMalwareDetected field if non-nil, zero value otherwise. + +### GetIsMalwareDetectedOk + +`func (o *PackageLicense) GetIsMalwareDetectedOk() (*bool, bool)` + +GetIsMalwareDetectedOk returns a tuple with the IsMalwareDetected field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIsMalwareDetected + +`func (o *PackageLicense) SetIsMalwareDetected(v bool)` + +SetIsMalwareDetected sets IsMalwareDetected field to given value. + +### HasIsMalwareDetected + +`func (o *PackageLicense) HasIsMalwareDetected() bool` + +HasIsMalwareDetected returns a boolean if a field has been set. + ### GetLicenseNotes `func (o *PackageLicense) GetLicenseNotes() string` @@ -153,6 +180,41 @@ and a boolean to check if the value has been set. SetSpdxLicense sets SpdxLicense field to given value. +### GetVulnerabilityCounts + +`func (o *PackageLicense) GetVulnerabilityCounts() WebOSVSeverityCounts` + +GetVulnerabilityCounts returns the VulnerabilityCounts field if non-nil, zero value otherwise. + +### GetVulnerabilityCountsOk + +`func (o *PackageLicense) GetVulnerabilityCountsOk() (*WebOSVSeverityCounts, bool)` + +GetVulnerabilityCountsOk returns a tuple with the VulnerabilityCounts field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetVulnerabilityCounts + +`func (o *PackageLicense) SetVulnerabilityCounts(v WebOSVSeverityCounts)` + +SetVulnerabilityCounts sets VulnerabilityCounts field to given value. + +### HasVulnerabilityCounts + +`func (o *PackageLicense) HasVulnerabilityCounts() bool` + +HasVulnerabilityCounts returns a boolean if a field has been set. + +### SetVulnerabilityCountsNil + +`func (o *PackageLicense) SetVulnerabilityCountsNil(b bool)` + + SetVulnerabilityCountsNil sets the value for VulnerabilityCounts to be an explicit nil + +### UnsetVulnerabilityCounts +`func (o *PackageLicense) UnsetVulnerabilityCounts()` + +UnsetVulnerabilityCounts ensures that no value is present for VulnerabilityCounts, 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/PackageLicenseRequestPatch.md b/docs/PackageLicenseRequestPatch.md index 3d12b624..83ba9281 100644 --- a/docs/PackageLicenseRequestPatch.md +++ b/docs/PackageLicenseRequestPatch.md @@ -5,16 +5,18 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Action** | Pointer to **NullableString** | | [optional] [default to "Update"] +**IsMalwareDetected** | Pointer to **bool** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] [readonly] **LicenseNotes** | Pointer to **NullableString** | | [optional] **LicenseOverride** | Pointer to **NullableString** | | [optional] [default to "None"] **LicenseUrl** | Pointer to **NullableString** | | [optional] -**SpdxLicense** | Pointer to **string** | | [optional] +**SpdxLicense** | **string** | | +**VulnerabilityCounts** | Pointer to [**NullableWebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] ## Methods ### NewPackageLicenseRequestPatch -`func NewPackageLicenseRequestPatch() *PackageLicenseRequestPatch` +`func NewPackageLicenseRequestPatch(spdxLicense string, ) *PackageLicenseRequestPatch` NewPackageLicenseRequestPatch instantiates a new PackageLicenseRequestPatch object This constructor will assign default values to properties that have it defined, @@ -64,6 +66,31 @@ HasAction returns a boolean if a field has been set. `func (o *PackageLicenseRequestPatch) UnsetAction()` UnsetAction ensures that no value is present for Action, not even an explicit nil +### GetIsMalwareDetected + +`func (o *PackageLicenseRequestPatch) GetIsMalwareDetected() bool` + +GetIsMalwareDetected returns the IsMalwareDetected field if non-nil, zero value otherwise. + +### GetIsMalwareDetectedOk + +`func (o *PackageLicenseRequestPatch) GetIsMalwareDetectedOk() (*bool, bool)` + +GetIsMalwareDetectedOk returns a tuple with the IsMalwareDetected field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIsMalwareDetected + +`func (o *PackageLicenseRequestPatch) SetIsMalwareDetected(v bool)` + +SetIsMalwareDetected sets IsMalwareDetected field to given value. + +### HasIsMalwareDetected + +`func (o *PackageLicenseRequestPatch) HasIsMalwareDetected() bool` + +HasIsMalwareDetected returns a boolean if a field has been set. + ### GetLicenseNotes `func (o *PackageLicenseRequestPatch) GetLicenseNotes() string` @@ -188,12 +215,42 @@ and a boolean to check if the value has been set. SetSpdxLicense sets SpdxLicense field to given value. -### HasSpdxLicense -`func (o *PackageLicenseRequestPatch) HasSpdxLicense() bool` +### GetVulnerabilityCounts + +`func (o *PackageLicenseRequestPatch) GetVulnerabilityCounts() WebOSVSeverityCounts` + +GetVulnerabilityCounts returns the VulnerabilityCounts field if non-nil, zero value otherwise. + +### GetVulnerabilityCountsOk + +`func (o *PackageLicenseRequestPatch) GetVulnerabilityCountsOk() (*WebOSVSeverityCounts, bool)` + +GetVulnerabilityCountsOk returns a tuple with the VulnerabilityCounts field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetVulnerabilityCounts + +`func (o *PackageLicenseRequestPatch) SetVulnerabilityCounts(v WebOSVSeverityCounts)` + +SetVulnerabilityCounts sets VulnerabilityCounts field to given value. + +### HasVulnerabilityCounts + +`func (o *PackageLicenseRequestPatch) HasVulnerabilityCounts() bool` + +HasVulnerabilityCounts returns a boolean if a field has been set. + +### SetVulnerabilityCountsNil + +`func (o *PackageLicenseRequestPatch) SetVulnerabilityCountsNil(b bool)` + + SetVulnerabilityCountsNil sets the value for VulnerabilityCounts to be an explicit nil -HasSpdxLicense returns a boolean if a field has been set. +### UnsetVulnerabilityCounts +`func (o *PackageLicenseRequestPatch) UnsetVulnerabilityCounts()` +UnsetVulnerabilityCounts ensures that no value is present for VulnerabilityCounts, 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/PackageMove.md b/docs/PackageMove.md index a3152904..e1dae4eb 100644 --- a/docs/PackageMove.md +++ b/docs/PackageMove.md @@ -34,6 +34,7 @@ Name | Type | Description | Notes **IsDeleteable** | Pointer to **bool** | | [optional] [readonly] **IsDownloadable** | Pointer to **bool** | | [optional] [readonly] **IsHidden** | Pointer to **bool** | | [optional] [readonly] +**IsMalwareDetected** | Pointer to **bool** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] [readonly] **IsMoveable** | Pointer to **bool** | | [optional] [readonly] **IsQuarantinable** | Pointer to **bool** | | [optional] [readonly] **IsQuarantined** | Pointer to **bool** | | [optional] [readonly] @@ -91,6 +92,7 @@ Name | Type | Description | Notes **UploaderUrl** | Pointer to **string** | | [optional] [readonly] **Version** | Pointer to **NullableString** | The raw version for this package. | [optional] [readonly] **VersionOrig** | Pointer to **string** | | [optional] [readonly] +**VulnerabilityCounts** | Pointer to [**NullableWebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] **VulnerabilityScanResultsUrl** | Pointer to **string** | | [optional] [readonly] ## Methods @@ -932,6 +934,31 @@ SetIsHidden sets IsHidden field to given value. HasIsHidden returns a boolean if a field has been set. +### GetIsMalwareDetected + +`func (o *PackageMove) GetIsMalwareDetected() bool` + +GetIsMalwareDetected returns the IsMalwareDetected field if non-nil, zero value otherwise. + +### GetIsMalwareDetectedOk + +`func (o *PackageMove) GetIsMalwareDetectedOk() (*bool, bool)` + +GetIsMalwareDetectedOk returns a tuple with the IsMalwareDetected field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIsMalwareDetected + +`func (o *PackageMove) SetIsMalwareDetected(v bool)` + +SetIsMalwareDetected sets IsMalwareDetected field to given value. + +### HasIsMalwareDetected + +`func (o *PackageMove) HasIsMalwareDetected() bool` + +HasIsMalwareDetected returns a boolean if a field has been set. + ### GetIsMoveable `func (o *PackageMove) GetIsMoveable() bool` @@ -2497,6 +2524,41 @@ SetVersionOrig sets VersionOrig field to given value. HasVersionOrig returns a boolean if a field has been set. +### GetVulnerabilityCounts + +`func (o *PackageMove) GetVulnerabilityCounts() WebOSVSeverityCounts` + +GetVulnerabilityCounts returns the VulnerabilityCounts field if non-nil, zero value otherwise. + +### GetVulnerabilityCountsOk + +`func (o *PackageMove) GetVulnerabilityCountsOk() (*WebOSVSeverityCounts, bool)` + +GetVulnerabilityCountsOk returns a tuple with the VulnerabilityCounts field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetVulnerabilityCounts + +`func (o *PackageMove) SetVulnerabilityCounts(v WebOSVSeverityCounts)` + +SetVulnerabilityCounts sets VulnerabilityCounts field to given value. + +### HasVulnerabilityCounts + +`func (o *PackageMove) HasVulnerabilityCounts() bool` + +HasVulnerabilityCounts returns a boolean if a field has been set. + +### SetVulnerabilityCountsNil + +`func (o *PackageMove) SetVulnerabilityCountsNil(b bool)` + + SetVulnerabilityCountsNil sets the value for VulnerabilityCounts to be an explicit nil + +### UnsetVulnerabilityCounts +`func (o *PackageMove) UnsetVulnerabilityCounts()` + +UnsetVulnerabilityCounts ensures that no value is present for VulnerabilityCounts, not even an explicit nil ### GetVulnerabilityScanResultsUrl `func (o *PackageMove) GetVulnerabilityScanResultsUrl() string` diff --git a/docs/PackageMoveRequest.md b/docs/PackageMoveRequest.md index aa2ee4d2..51581c83 100644 --- a/docs/PackageMoveRequest.md +++ b/docs/PackageMoveRequest.md @@ -5,6 +5,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Destination** | **string** | The name of the destination repository without the namespace. | +**IsMalwareDetected** | Pointer to **bool** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] [readonly] +**VulnerabilityCounts** | Pointer to [**NullableWebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] ## Methods @@ -45,6 +47,66 @@ and a boolean to check if the value has been set. SetDestination sets Destination field to given value. +### GetIsMalwareDetected + +`func (o *PackageMoveRequest) GetIsMalwareDetected() bool` + +GetIsMalwareDetected returns the IsMalwareDetected field if non-nil, zero value otherwise. + +### GetIsMalwareDetectedOk + +`func (o *PackageMoveRequest) GetIsMalwareDetectedOk() (*bool, bool)` + +GetIsMalwareDetectedOk returns a tuple with the IsMalwareDetected field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIsMalwareDetected + +`func (o *PackageMoveRequest) SetIsMalwareDetected(v bool)` + +SetIsMalwareDetected sets IsMalwareDetected field to given value. + +### HasIsMalwareDetected + +`func (o *PackageMoveRequest) HasIsMalwareDetected() bool` + +HasIsMalwareDetected returns a boolean if a field has been set. + +### GetVulnerabilityCounts + +`func (o *PackageMoveRequest) GetVulnerabilityCounts() WebOSVSeverityCounts` + +GetVulnerabilityCounts returns the VulnerabilityCounts field if non-nil, zero value otherwise. + +### GetVulnerabilityCountsOk + +`func (o *PackageMoveRequest) GetVulnerabilityCountsOk() (*WebOSVSeverityCounts, bool)` + +GetVulnerabilityCountsOk returns a tuple with the VulnerabilityCounts field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetVulnerabilityCounts + +`func (o *PackageMoveRequest) SetVulnerabilityCounts(v WebOSVSeverityCounts)` + +SetVulnerabilityCounts sets VulnerabilityCounts field to given value. + +### HasVulnerabilityCounts + +`func (o *PackageMoveRequest) HasVulnerabilityCounts() bool` + +HasVulnerabilityCounts returns a boolean if a field has been set. + +### SetVulnerabilityCountsNil + +`func (o *PackageMoveRequest) SetVulnerabilityCountsNil(b bool)` + + SetVulnerabilityCountsNil sets the value for VulnerabilityCounts to be an explicit nil + +### UnsetVulnerabilityCounts +`func (o *PackageMoveRequest) UnsetVulnerabilityCounts()` + +UnsetVulnerabilityCounts ensures that no value is present for VulnerabilityCounts, 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/PackageQuarantine.md b/docs/PackageQuarantine.md index 41118621..5ddfb443 100644 --- a/docs/PackageQuarantine.md +++ b/docs/PackageQuarantine.md @@ -34,6 +34,7 @@ Name | Type | Description | Notes **IsDeleteable** | Pointer to **bool** | | [optional] [readonly] **IsDownloadable** | Pointer to **bool** | | [optional] [readonly] **IsHidden** | Pointer to **bool** | | [optional] [readonly] +**IsMalwareDetected** | Pointer to **bool** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] [readonly] **IsMoveable** | Pointer to **bool** | | [optional] [readonly] **IsQuarantinable** | Pointer to **bool** | | [optional] [readonly] **IsQuarantined** | Pointer to **bool** | | [optional] [readonly] @@ -90,6 +91,7 @@ Name | Type | Description | Notes **UploaderUrl** | Pointer to **string** | | [optional] [readonly] **Version** | Pointer to **NullableString** | The raw version for this package. | [optional] [readonly] **VersionOrig** | Pointer to **string** | | [optional] [readonly] +**VulnerabilityCounts** | Pointer to [**NullableWebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] **VulnerabilityScanResultsUrl** | Pointer to **string** | | [optional] [readonly] ## Methods @@ -931,6 +933,31 @@ SetIsHidden sets IsHidden field to given value. HasIsHidden returns a boolean if a field has been set. +### GetIsMalwareDetected + +`func (o *PackageQuarantine) GetIsMalwareDetected() bool` + +GetIsMalwareDetected returns the IsMalwareDetected field if non-nil, zero value otherwise. + +### GetIsMalwareDetectedOk + +`func (o *PackageQuarantine) GetIsMalwareDetectedOk() (*bool, bool)` + +GetIsMalwareDetectedOk returns a tuple with the IsMalwareDetected field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIsMalwareDetected + +`func (o *PackageQuarantine) SetIsMalwareDetected(v bool)` + +SetIsMalwareDetected sets IsMalwareDetected field to given value. + +### HasIsMalwareDetected + +`func (o *PackageQuarantine) HasIsMalwareDetected() bool` + +HasIsMalwareDetected returns a boolean if a field has been set. + ### GetIsMoveable `func (o *PackageQuarantine) GetIsMoveable() bool` @@ -2461,6 +2488,41 @@ SetVersionOrig sets VersionOrig field to given value. HasVersionOrig returns a boolean if a field has been set. +### GetVulnerabilityCounts + +`func (o *PackageQuarantine) GetVulnerabilityCounts() WebOSVSeverityCounts` + +GetVulnerabilityCounts returns the VulnerabilityCounts field if non-nil, zero value otherwise. + +### GetVulnerabilityCountsOk + +`func (o *PackageQuarantine) GetVulnerabilityCountsOk() (*WebOSVSeverityCounts, bool)` + +GetVulnerabilityCountsOk returns a tuple with the VulnerabilityCounts field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetVulnerabilityCounts + +`func (o *PackageQuarantine) SetVulnerabilityCounts(v WebOSVSeverityCounts)` + +SetVulnerabilityCounts sets VulnerabilityCounts field to given value. + +### HasVulnerabilityCounts + +`func (o *PackageQuarantine) HasVulnerabilityCounts() bool` + +HasVulnerabilityCounts returns a boolean if a field has been set. + +### SetVulnerabilityCountsNil + +`func (o *PackageQuarantine) SetVulnerabilityCountsNil(b bool)` + + SetVulnerabilityCountsNil sets the value for VulnerabilityCounts to be an explicit nil + +### UnsetVulnerabilityCounts +`func (o *PackageQuarantine) UnsetVulnerabilityCounts()` + +UnsetVulnerabilityCounts ensures that no value is present for VulnerabilityCounts, not even an explicit nil ### GetVulnerabilityScanResultsUrl `func (o *PackageQuarantine) GetVulnerabilityScanResultsUrl() string` diff --git a/docs/PackageQuarantineRequest.md b/docs/PackageQuarantineRequest.md index 368109fa..04a42658 100644 --- a/docs/PackageQuarantineRequest.md +++ b/docs/PackageQuarantineRequest.md @@ -4,8 +4,10 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**IsMalwareDetected** | Pointer to **bool** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] [readonly] **Release** | Pointer to **bool** | If true, the package is released from quarantine. | [optional] **Restore** | Pointer to **bool** | If true, the package is released from quarantine. Note: This field is deprecated, please use 'release' instead. | [optional] +**VulnerabilityCounts** | Pointer to [**NullableWebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] ## Methods @@ -26,6 +28,31 @@ NewPackageQuarantineRequestWithDefaults instantiates a new PackageQuarantineRequ This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set +### GetIsMalwareDetected + +`func (o *PackageQuarantineRequest) GetIsMalwareDetected() bool` + +GetIsMalwareDetected returns the IsMalwareDetected field if non-nil, zero value otherwise. + +### GetIsMalwareDetectedOk + +`func (o *PackageQuarantineRequest) GetIsMalwareDetectedOk() (*bool, bool)` + +GetIsMalwareDetectedOk returns a tuple with the IsMalwareDetected field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIsMalwareDetected + +`func (o *PackageQuarantineRequest) SetIsMalwareDetected(v bool)` + +SetIsMalwareDetected sets IsMalwareDetected field to given value. + +### HasIsMalwareDetected + +`func (o *PackageQuarantineRequest) HasIsMalwareDetected() bool` + +HasIsMalwareDetected returns a boolean if a field has been set. + ### GetRelease `func (o *PackageQuarantineRequest) GetRelease() bool` @@ -76,6 +103,41 @@ SetRestore sets Restore field to given value. HasRestore returns a boolean if a field has been set. +### GetVulnerabilityCounts + +`func (o *PackageQuarantineRequest) GetVulnerabilityCounts() WebOSVSeverityCounts` + +GetVulnerabilityCounts returns the VulnerabilityCounts field if non-nil, zero value otherwise. + +### GetVulnerabilityCountsOk + +`func (o *PackageQuarantineRequest) GetVulnerabilityCountsOk() (*WebOSVSeverityCounts, bool)` + +GetVulnerabilityCountsOk returns a tuple with the VulnerabilityCounts field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetVulnerabilityCounts + +`func (o *PackageQuarantineRequest) SetVulnerabilityCounts(v WebOSVSeverityCounts)` + +SetVulnerabilityCounts sets VulnerabilityCounts field to given value. + +### HasVulnerabilityCounts + +`func (o *PackageQuarantineRequest) HasVulnerabilityCounts() bool` + +HasVulnerabilityCounts returns a boolean if a field has been set. + +### SetVulnerabilityCountsNil + +`func (o *PackageQuarantineRequest) SetVulnerabilityCountsNil(b bool)` + + SetVulnerabilityCountsNil sets the value for VulnerabilityCounts to be an explicit nil + +### UnsetVulnerabilityCounts +`func (o *PackageQuarantineRequest) UnsetVulnerabilityCounts()` + +UnsetVulnerabilityCounts ensures that no value is present for VulnerabilityCounts, 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/PackageResync.md b/docs/PackageResync.md index 71123d58..dfede944 100644 --- a/docs/PackageResync.md +++ b/docs/PackageResync.md @@ -34,6 +34,7 @@ Name | Type | Description | Notes **IsDeleteable** | Pointer to **bool** | | [optional] [readonly] **IsDownloadable** | Pointer to **bool** | | [optional] [readonly] **IsHidden** | Pointer to **bool** | | [optional] [readonly] +**IsMalwareDetected** | Pointer to **bool** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] [readonly] **IsMoveable** | Pointer to **bool** | | [optional] [readonly] **IsQuarantinable** | Pointer to **bool** | | [optional] [readonly] **IsQuarantined** | Pointer to **bool** | | [optional] [readonly] @@ -91,6 +92,7 @@ Name | Type | Description | Notes **UploaderUrl** | Pointer to **string** | | [optional] [readonly] **Version** | Pointer to **NullableString** | The raw version for this package. | [optional] [readonly] **VersionOrig** | Pointer to **string** | | [optional] [readonly] +**VulnerabilityCounts** | Pointer to [**NullableWebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] **VulnerabilityScanResultsUrl** | Pointer to **string** | | [optional] [readonly] ## Methods @@ -932,6 +934,31 @@ SetIsHidden sets IsHidden field to given value. HasIsHidden returns a boolean if a field has been set. +### GetIsMalwareDetected + +`func (o *PackageResync) GetIsMalwareDetected() bool` + +GetIsMalwareDetected returns the IsMalwareDetected field if non-nil, zero value otherwise. + +### GetIsMalwareDetectedOk + +`func (o *PackageResync) GetIsMalwareDetectedOk() (*bool, bool)` + +GetIsMalwareDetectedOk returns a tuple with the IsMalwareDetected field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIsMalwareDetected + +`func (o *PackageResync) SetIsMalwareDetected(v bool)` + +SetIsMalwareDetected sets IsMalwareDetected field to given value. + +### HasIsMalwareDetected + +`func (o *PackageResync) HasIsMalwareDetected() bool` + +HasIsMalwareDetected returns a boolean if a field has been set. + ### GetIsMoveable `func (o *PackageResync) GetIsMoveable() bool` @@ -2497,6 +2524,41 @@ SetVersionOrig sets VersionOrig field to given value. HasVersionOrig returns a boolean if a field has been set. +### GetVulnerabilityCounts + +`func (o *PackageResync) GetVulnerabilityCounts() WebOSVSeverityCounts` + +GetVulnerabilityCounts returns the VulnerabilityCounts field if non-nil, zero value otherwise. + +### GetVulnerabilityCountsOk + +`func (o *PackageResync) GetVulnerabilityCountsOk() (*WebOSVSeverityCounts, bool)` + +GetVulnerabilityCountsOk returns a tuple with the VulnerabilityCounts field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetVulnerabilityCounts + +`func (o *PackageResync) SetVulnerabilityCounts(v WebOSVSeverityCounts)` + +SetVulnerabilityCounts sets VulnerabilityCounts field to given value. + +### HasVulnerabilityCounts + +`func (o *PackageResync) HasVulnerabilityCounts() bool` + +HasVulnerabilityCounts returns a boolean if a field has been set. + +### SetVulnerabilityCountsNil + +`func (o *PackageResync) SetVulnerabilityCountsNil(b bool)` + + SetVulnerabilityCountsNil sets the value for VulnerabilityCounts to be an explicit nil + +### UnsetVulnerabilityCounts +`func (o *PackageResync) UnsetVulnerabilityCounts()` + +UnsetVulnerabilityCounts ensures that no value is present for VulnerabilityCounts, not even an explicit nil ### GetVulnerabilityScanResultsUrl `func (o *PackageResync) GetVulnerabilityScanResultsUrl() string` diff --git a/docs/PackageTag.md b/docs/PackageTag.md index 915124ad..902e3a27 100644 --- a/docs/PackageTag.md +++ b/docs/PackageTag.md @@ -35,6 +35,7 @@ Name | Type | Description | Notes **IsDownloadable** | Pointer to **bool** | | [optional] [readonly] **IsHidden** | Pointer to **bool** | | [optional] [readonly] **IsImmutable** | Pointer to **bool** | If true, created tags will be immutable. An immutable flag is a tag that cannot be removed from a package. | [optional] [default to false] +**IsMalwareDetected** | Pointer to **bool** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] [readonly] **IsMoveable** | Pointer to **bool** | | [optional] [readonly] **IsQuarantinable** | Pointer to **bool** | | [optional] [readonly] **IsQuarantined** | Pointer to **bool** | | [optional] [readonly] @@ -91,6 +92,7 @@ Name | Type | Description | Notes **UploaderUrl** | Pointer to **string** | | [optional] [readonly] **Version** | Pointer to **NullableString** | The raw version for this package. | [optional] [readonly] **VersionOrig** | Pointer to **string** | | [optional] [readonly] +**VulnerabilityCounts** | Pointer to [**NullableWebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] **VulnerabilityScanResultsUrl** | Pointer to **string** | | [optional] [readonly] ## Methods @@ -957,6 +959,31 @@ SetIsImmutable sets IsImmutable field to given value. HasIsImmutable returns a boolean if a field has been set. +### GetIsMalwareDetected + +`func (o *PackageTag) GetIsMalwareDetected() bool` + +GetIsMalwareDetected returns the IsMalwareDetected field if non-nil, zero value otherwise. + +### GetIsMalwareDetectedOk + +`func (o *PackageTag) GetIsMalwareDetectedOk() (*bool, bool)` + +GetIsMalwareDetectedOk returns a tuple with the IsMalwareDetected field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIsMalwareDetected + +`func (o *PackageTag) SetIsMalwareDetected(v bool)` + +SetIsMalwareDetected sets IsMalwareDetected field to given value. + +### HasIsMalwareDetected + +`func (o *PackageTag) HasIsMalwareDetected() bool` + +HasIsMalwareDetected returns a boolean if a field has been set. + ### GetIsMoveable `func (o *PackageTag) GetIsMoveable() bool` @@ -2497,6 +2524,41 @@ SetVersionOrig sets VersionOrig field to given value. HasVersionOrig returns a boolean if a field has been set. +### GetVulnerabilityCounts + +`func (o *PackageTag) GetVulnerabilityCounts() WebOSVSeverityCounts` + +GetVulnerabilityCounts returns the VulnerabilityCounts field if non-nil, zero value otherwise. + +### GetVulnerabilityCountsOk + +`func (o *PackageTag) GetVulnerabilityCountsOk() (*WebOSVSeverityCounts, bool)` + +GetVulnerabilityCountsOk returns a tuple with the VulnerabilityCounts field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetVulnerabilityCounts + +`func (o *PackageTag) SetVulnerabilityCounts(v WebOSVSeverityCounts)` + +SetVulnerabilityCounts sets VulnerabilityCounts field to given value. + +### HasVulnerabilityCounts + +`func (o *PackageTag) HasVulnerabilityCounts() bool` + +HasVulnerabilityCounts returns a boolean if a field has been set. + +### SetVulnerabilityCountsNil + +`func (o *PackageTag) SetVulnerabilityCountsNil(b bool)` + + SetVulnerabilityCountsNil sets the value for VulnerabilityCounts to be an explicit nil + +### UnsetVulnerabilityCounts +`func (o *PackageTag) UnsetVulnerabilityCounts()` + +UnsetVulnerabilityCounts ensures that no value is present for VulnerabilityCounts, not even an explicit nil ### GetVulnerabilityScanResultsUrl `func (o *PackageTag) GetVulnerabilityScanResultsUrl() string` diff --git a/docs/PackageTagRequest.md b/docs/PackageTagRequest.md index 58f41b99..7568ec1e 100644 --- a/docs/PackageTagRequest.md +++ b/docs/PackageTagRequest.md @@ -6,7 +6,9 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Action** | Pointer to **NullableString** | | [optional] [default to "Add"] **IsImmutable** | Pointer to **bool** | If true, created tags will be immutable. An immutable flag is a tag that cannot be removed from a package. | [optional] [default to false] +**IsMalwareDetected** | Pointer to **bool** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] [readonly] **Tags** | Pointer to **[]string** | A list of tags to apply the action to. Not required for clears. | [optional] +**VulnerabilityCounts** | Pointer to [**NullableWebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] ## Methods @@ -87,6 +89,31 @@ SetIsImmutable sets IsImmutable field to given value. HasIsImmutable returns a boolean if a field has been set. +### GetIsMalwareDetected + +`func (o *PackageTagRequest) GetIsMalwareDetected() bool` + +GetIsMalwareDetected returns the IsMalwareDetected field if non-nil, zero value otherwise. + +### GetIsMalwareDetectedOk + +`func (o *PackageTagRequest) GetIsMalwareDetectedOk() (*bool, bool)` + +GetIsMalwareDetectedOk returns a tuple with the IsMalwareDetected field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIsMalwareDetected + +`func (o *PackageTagRequest) SetIsMalwareDetected(v bool)` + +SetIsMalwareDetected sets IsMalwareDetected field to given value. + +### HasIsMalwareDetected + +`func (o *PackageTagRequest) HasIsMalwareDetected() bool` + +HasIsMalwareDetected returns a boolean if a field has been set. + ### GetTags `func (o *PackageTagRequest) GetTags() []string` @@ -122,6 +149,41 @@ HasTags returns a boolean if a field has been set. `func (o *PackageTagRequest) UnsetTags()` UnsetTags ensures that no value is present for Tags, not even an explicit nil +### GetVulnerabilityCounts + +`func (o *PackageTagRequest) GetVulnerabilityCounts() WebOSVSeverityCounts` + +GetVulnerabilityCounts returns the VulnerabilityCounts field if non-nil, zero value otherwise. + +### GetVulnerabilityCountsOk + +`func (o *PackageTagRequest) GetVulnerabilityCountsOk() (*WebOSVSeverityCounts, bool)` + +GetVulnerabilityCountsOk returns a tuple with the VulnerabilityCounts field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetVulnerabilityCounts + +`func (o *PackageTagRequest) SetVulnerabilityCounts(v WebOSVSeverityCounts)` + +SetVulnerabilityCounts sets VulnerabilityCounts field to given value. + +### HasVulnerabilityCounts + +`func (o *PackageTagRequest) HasVulnerabilityCounts() bool` + +HasVulnerabilityCounts returns a boolean if a field has been set. + +### SetVulnerabilityCountsNil + +`func (o *PackageTagRequest) SetVulnerabilityCountsNil(b bool)` + + SetVulnerabilityCountsNil sets the value for VulnerabilityCounts to be an explicit nil + +### UnsetVulnerabilityCounts +`func (o *PackageTagRequest) UnsetVulnerabilityCounts()` + +UnsetVulnerabilityCounts ensures that no value is present for VulnerabilityCounts, 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/PackageVulnerability.md b/docs/PackageVulnerability.md index d9d5a615..6738e186 100644 --- a/docs/PackageVulnerability.md +++ b/docs/PackageVulnerability.md @@ -5,9 +5,11 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Identifier** | **string** | | +**IsMalwareDetected** | Pointer to **bool** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] [readonly] **Name** | Pointer to **NullableString** | The name of this package. | [optional] [readonly] **Url** | Pointer to **NullableString** | | [optional] [readonly] **Version** | Pointer to **NullableString** | The raw version for this package. | [optional] [readonly] +**VulnerabilityCounts** | Pointer to [**NullableWebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] ## Methods @@ -48,6 +50,31 @@ and a boolean to check if the value has been set. SetIdentifier sets Identifier field to given value. +### GetIsMalwareDetected + +`func (o *PackageVulnerability) GetIsMalwareDetected() bool` + +GetIsMalwareDetected returns the IsMalwareDetected field if non-nil, zero value otherwise. + +### GetIsMalwareDetectedOk + +`func (o *PackageVulnerability) GetIsMalwareDetectedOk() (*bool, bool)` + +GetIsMalwareDetectedOk returns a tuple with the IsMalwareDetected field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIsMalwareDetected + +`func (o *PackageVulnerability) SetIsMalwareDetected(v bool)` + +SetIsMalwareDetected sets IsMalwareDetected field to given value. + +### HasIsMalwareDetected + +`func (o *PackageVulnerability) HasIsMalwareDetected() bool` + +HasIsMalwareDetected returns a boolean if a field has been set. + ### GetName `func (o *PackageVulnerability) GetName() string` @@ -153,6 +180,41 @@ HasVersion returns a boolean if a field has been set. `func (o *PackageVulnerability) UnsetVersion()` UnsetVersion ensures that no value is present for Version, not even an explicit nil +### GetVulnerabilityCounts + +`func (o *PackageVulnerability) GetVulnerabilityCounts() WebOSVSeverityCounts` + +GetVulnerabilityCounts returns the VulnerabilityCounts field if non-nil, zero value otherwise. + +### GetVulnerabilityCountsOk + +`func (o *PackageVulnerability) GetVulnerabilityCountsOk() (*WebOSVSeverityCounts, bool)` + +GetVulnerabilityCountsOk returns a tuple with the VulnerabilityCounts field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetVulnerabilityCounts + +`func (o *PackageVulnerability) SetVulnerabilityCounts(v WebOSVSeverityCounts)` + +SetVulnerabilityCounts sets VulnerabilityCounts field to given value. + +### HasVulnerabilityCounts + +`func (o *PackageVulnerability) HasVulnerabilityCounts() bool` + +HasVulnerabilityCounts returns a boolean if a field has been set. + +### SetVulnerabilityCountsNil + +`func (o *PackageVulnerability) SetVulnerabilityCountsNil(b bool)` + + SetVulnerabilityCountsNil sets the value for VulnerabilityCounts to be an explicit nil + +### UnsetVulnerabilityCounts +`func (o *PackageVulnerability) UnsetVulnerabilityCounts()` + +UnsetVulnerabilityCounts ensures that no value is present for VulnerabilityCounts, 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/PackagesApi.md b/docs/PackagesApi.md index 9a3d09e4..4dc67537 100644 --- a/docs/PackagesApi.md +++ b/docs/PackagesApi.md @@ -636,7 +636,7 @@ Name | Type | Description | Notes ## PackagesRead -> Package PackagesRead(ctx, owner, repo, identifier).IncludeConnectedRepositories(includeConnectedRepositories).Execute() +> PackageDetail PackagesRead(ctx, owner, repo, identifier).IncludeConnectedRepositories(includeConnectedRepositories).Execute() Get a specific package in a repository. @@ -667,7 +667,7 @@ func main() { fmt.Fprintf(os.Stderr, "Error when calling `PackagesApi.PackagesRead``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } - // response from `PackagesRead`: Package + // response from `PackagesRead`: PackageDetail fmt.Fprintf(os.Stdout, "Response from `PackagesApi.PackagesRead`: %v\n", resp) } ``` @@ -696,7 +696,7 @@ Name | Type | Description | Notes ### Return type -[**Package**](Package.md) +[**PackageDetail**](PackageDetail.md) ### Authorization @@ -1044,7 +1044,7 @@ func main() { owner := "owner_example" // string | repo := "repo_example" // string | identifier := "identifier_example" // string | - data := *openapiclient.NewPackageLicenseRequestPatch() // PackageLicenseRequestPatch | (optional) + data := *openapiclient.NewPackageLicenseRequestPatch("SpdxLicense_example") // PackageLicenseRequestPatch | (optional) configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) diff --git a/docs/PythonPackageUpload.md b/docs/PythonPackageUpload.md index 47de5481..1b32e2d0 100644 --- a/docs/PythonPackageUpload.md +++ b/docs/PythonPackageUpload.md @@ -33,6 +33,7 @@ Name | Type | Description | Notes **IsDeleteable** | Pointer to **bool** | | [optional] [readonly] **IsDownloadable** | Pointer to **bool** | | [optional] [readonly] **IsHidden** | Pointer to **bool** | | [optional] [readonly] +**IsMalwareDetected** | Pointer to **bool** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] [readonly] **IsMoveable** | Pointer to **bool** | | [optional] [readonly] **IsQuarantinable** | Pointer to **bool** | | [optional] [readonly] **IsQuarantined** | Pointer to **bool** | | [optional] [readonly] @@ -89,6 +90,7 @@ Name | Type | Description | Notes **UploaderUrl** | Pointer to **string** | | [optional] [readonly] **Version** | Pointer to **NullableString** | The raw version for this package. | [optional] [readonly] **VersionOrig** | Pointer to **string** | | [optional] [readonly] +**VulnerabilityCounts** | Pointer to [**NullableWebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] **VulnerabilityScanResultsUrl** | Pointer to **string** | | [optional] [readonly] ## Methods @@ -895,6 +897,31 @@ SetIsHidden sets IsHidden field to given value. HasIsHidden returns a boolean if a field has been set. +### GetIsMalwareDetected + +`func (o *PythonPackageUpload) GetIsMalwareDetected() bool` + +GetIsMalwareDetected returns the IsMalwareDetected field if non-nil, zero value otherwise. + +### GetIsMalwareDetectedOk + +`func (o *PythonPackageUpload) GetIsMalwareDetectedOk() (*bool, bool)` + +GetIsMalwareDetectedOk returns a tuple with the IsMalwareDetected field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIsMalwareDetected + +`func (o *PythonPackageUpload) SetIsMalwareDetected(v bool)` + +SetIsMalwareDetected sets IsMalwareDetected field to given value. + +### HasIsMalwareDetected + +`func (o *PythonPackageUpload) HasIsMalwareDetected() bool` + +HasIsMalwareDetected returns a boolean if a field has been set. + ### GetIsMoveable `func (o *PythonPackageUpload) GetIsMoveable() bool` @@ -2435,6 +2462,41 @@ SetVersionOrig sets VersionOrig field to given value. HasVersionOrig returns a boolean if a field has been set. +### GetVulnerabilityCounts + +`func (o *PythonPackageUpload) GetVulnerabilityCounts() WebOSVSeverityCounts` + +GetVulnerabilityCounts returns the VulnerabilityCounts field if non-nil, zero value otherwise. + +### GetVulnerabilityCountsOk + +`func (o *PythonPackageUpload) GetVulnerabilityCountsOk() (*WebOSVSeverityCounts, bool)` + +GetVulnerabilityCountsOk returns a tuple with the VulnerabilityCounts field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetVulnerabilityCounts + +`func (o *PythonPackageUpload) SetVulnerabilityCounts(v WebOSVSeverityCounts)` + +SetVulnerabilityCounts sets VulnerabilityCounts field to given value. + +### HasVulnerabilityCounts + +`func (o *PythonPackageUpload) HasVulnerabilityCounts() bool` + +HasVulnerabilityCounts returns a boolean if a field has been set. + +### SetVulnerabilityCountsNil + +`func (o *PythonPackageUpload) SetVulnerabilityCountsNil(b bool)` + + SetVulnerabilityCountsNil sets the value for VulnerabilityCounts to be an explicit nil + +### UnsetVulnerabilityCounts +`func (o *PythonPackageUpload) UnsetVulnerabilityCounts()` + +UnsetVulnerabilityCounts ensures that no value is present for VulnerabilityCounts, not even an explicit nil ### GetVulnerabilityScanResultsUrl `func (o *PythonPackageUpload) GetVulnerabilityScanResultsUrl() string` diff --git a/docs/PythonPackageUploadRequest.md b/docs/PythonPackageUploadRequest.md index 3ef67bfe..23223acf 100644 --- a/docs/PythonPackageUploadRequest.md +++ b/docs/PythonPackageUploadRequest.md @@ -4,9 +4,11 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**IsMalwareDetected** | Pointer to **bool** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] [readonly] **PackageFile** | **string** | The primary file for the package. | **Republish** | Pointer to **bool** | If true, the uploaded package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate. | [optional] **Tags** | Pointer to **NullableString** | A comma-separated values list of tags to add to the package. | [optional] +**VulnerabilityCounts** | Pointer to [**NullableWebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] ## Methods @@ -27,6 +29,31 @@ NewPythonPackageUploadRequestWithDefaults instantiates a new PythonPackageUpload This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set +### GetIsMalwareDetected + +`func (o *PythonPackageUploadRequest) GetIsMalwareDetected() bool` + +GetIsMalwareDetected returns the IsMalwareDetected field if non-nil, zero value otherwise. + +### GetIsMalwareDetectedOk + +`func (o *PythonPackageUploadRequest) GetIsMalwareDetectedOk() (*bool, bool)` + +GetIsMalwareDetectedOk returns a tuple with the IsMalwareDetected field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIsMalwareDetected + +`func (o *PythonPackageUploadRequest) SetIsMalwareDetected(v bool)` + +SetIsMalwareDetected sets IsMalwareDetected field to given value. + +### HasIsMalwareDetected + +`func (o *PythonPackageUploadRequest) HasIsMalwareDetected() bool` + +HasIsMalwareDetected returns a boolean if a field has been set. + ### GetPackageFile `func (o *PythonPackageUploadRequest) GetPackageFile() string` @@ -107,6 +134,41 @@ HasTags returns a boolean if a field has been set. `func (o *PythonPackageUploadRequest) UnsetTags()` UnsetTags ensures that no value is present for Tags, not even an explicit nil +### GetVulnerabilityCounts + +`func (o *PythonPackageUploadRequest) GetVulnerabilityCounts() WebOSVSeverityCounts` + +GetVulnerabilityCounts returns the VulnerabilityCounts field if non-nil, zero value otherwise. + +### GetVulnerabilityCountsOk + +`func (o *PythonPackageUploadRequest) GetVulnerabilityCountsOk() (*WebOSVSeverityCounts, bool)` + +GetVulnerabilityCountsOk returns a tuple with the VulnerabilityCounts field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetVulnerabilityCounts + +`func (o *PythonPackageUploadRequest) SetVulnerabilityCounts(v WebOSVSeverityCounts)` + +SetVulnerabilityCounts sets VulnerabilityCounts field to given value. + +### HasVulnerabilityCounts + +`func (o *PythonPackageUploadRequest) HasVulnerabilityCounts() bool` + +HasVulnerabilityCounts returns a boolean if a field has been set. + +### SetVulnerabilityCountsNil + +`func (o *PythonPackageUploadRequest) SetVulnerabilityCountsNil(b bool)` + + SetVulnerabilityCountsNil sets the value for VulnerabilityCounts to be an explicit nil + +### UnsetVulnerabilityCounts +`func (o *PythonPackageUploadRequest) UnsetVulnerabilityCounts()` + +UnsetVulnerabilityCounts ensures that no value is present for VulnerabilityCounts, 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/RawPackageUpload.md b/docs/RawPackageUpload.md index 8d2f812f..204a7b1a 100644 --- a/docs/RawPackageUpload.md +++ b/docs/RawPackageUpload.md @@ -33,6 +33,7 @@ Name | Type | Description | Notes **IsDeleteable** | Pointer to **bool** | | [optional] [readonly] **IsDownloadable** | Pointer to **bool** | | [optional] [readonly] **IsHidden** | Pointer to **bool** | | [optional] [readonly] +**IsMalwareDetected** | Pointer to **bool** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] [readonly] **IsMoveable** | Pointer to **bool** | | [optional] [readonly] **IsQuarantinable** | Pointer to **bool** | | [optional] [readonly] **IsQuarantined** | Pointer to **bool** | | [optional] [readonly] @@ -89,6 +90,7 @@ Name | Type | Description | Notes **UploaderUrl** | Pointer to **string** | | [optional] [readonly] **Version** | Pointer to **NullableString** | The raw version for this package. | [optional] **VersionOrig** | Pointer to **string** | | [optional] [readonly] +**VulnerabilityCounts** | Pointer to [**NullableWebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] **VulnerabilityScanResultsUrl** | Pointer to **string** | | [optional] [readonly] ## Methods @@ -895,6 +897,31 @@ SetIsHidden sets IsHidden field to given value. HasIsHidden returns a boolean if a field has been set. +### GetIsMalwareDetected + +`func (o *RawPackageUpload) GetIsMalwareDetected() bool` + +GetIsMalwareDetected returns the IsMalwareDetected field if non-nil, zero value otherwise. + +### GetIsMalwareDetectedOk + +`func (o *RawPackageUpload) GetIsMalwareDetectedOk() (*bool, bool)` + +GetIsMalwareDetectedOk returns a tuple with the IsMalwareDetected field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIsMalwareDetected + +`func (o *RawPackageUpload) SetIsMalwareDetected(v bool)` + +SetIsMalwareDetected sets IsMalwareDetected field to given value. + +### HasIsMalwareDetected + +`func (o *RawPackageUpload) HasIsMalwareDetected() bool` + +HasIsMalwareDetected returns a boolean if a field has been set. + ### GetIsMoveable `func (o *RawPackageUpload) GetIsMoveable() bool` @@ -2435,6 +2462,41 @@ SetVersionOrig sets VersionOrig field to given value. HasVersionOrig returns a boolean if a field has been set. +### GetVulnerabilityCounts + +`func (o *RawPackageUpload) GetVulnerabilityCounts() WebOSVSeverityCounts` + +GetVulnerabilityCounts returns the VulnerabilityCounts field if non-nil, zero value otherwise. + +### GetVulnerabilityCountsOk + +`func (o *RawPackageUpload) GetVulnerabilityCountsOk() (*WebOSVSeverityCounts, bool)` + +GetVulnerabilityCountsOk returns a tuple with the VulnerabilityCounts field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetVulnerabilityCounts + +`func (o *RawPackageUpload) SetVulnerabilityCounts(v WebOSVSeverityCounts)` + +SetVulnerabilityCounts sets VulnerabilityCounts field to given value. + +### HasVulnerabilityCounts + +`func (o *RawPackageUpload) HasVulnerabilityCounts() bool` + +HasVulnerabilityCounts returns a boolean if a field has been set. + +### SetVulnerabilityCountsNil + +`func (o *RawPackageUpload) SetVulnerabilityCountsNil(b bool)` + + SetVulnerabilityCountsNil sets the value for VulnerabilityCounts to be an explicit nil + +### UnsetVulnerabilityCounts +`func (o *RawPackageUpload) UnsetVulnerabilityCounts()` + +UnsetVulnerabilityCounts ensures that no value is present for VulnerabilityCounts, not even an explicit nil ### GetVulnerabilityScanResultsUrl `func (o *RawPackageUpload) GetVulnerabilityScanResultsUrl() string` diff --git a/docs/RawPackageUploadRequest.md b/docs/RawPackageUploadRequest.md index 4a28c847..1e7aec28 100644 --- a/docs/RawPackageUploadRequest.md +++ b/docs/RawPackageUploadRequest.md @@ -6,12 +6,14 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **ContentType** | Pointer to **NullableString** | A custom content/media (also known as MIME) type to be sent when downloading this file. By default Cloudsmith will attempt to detect the type, but if you need to override it, you can specify it here. | [optional] **Description** | Pointer to **NullableString** | A textual description of this package. | [optional] +**IsMalwareDetected** | Pointer to **bool** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] [readonly] **Name** | Pointer to **NullableString** | The name of this package. | [optional] **PackageFile** | **string** | The primary file for the package. | **Republish** | Pointer to **bool** | If true, the uploaded package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate. | [optional] **Summary** | Pointer to **NullableString** | A one-liner synopsis of this package. | [optional] **Tags** | Pointer to **NullableString** | A comma-separated values list of tags to add to the package. | [optional] **Version** | Pointer to **NullableString** | The raw version for this package. | [optional] +**VulnerabilityCounts** | Pointer to [**NullableWebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] ## Methods @@ -102,6 +104,31 @@ HasDescription returns a boolean if a field has been set. `func (o *RawPackageUploadRequest) UnsetDescription()` UnsetDescription ensures that no value is present for Description, not even an explicit nil +### GetIsMalwareDetected + +`func (o *RawPackageUploadRequest) GetIsMalwareDetected() bool` + +GetIsMalwareDetected returns the IsMalwareDetected field if non-nil, zero value otherwise. + +### GetIsMalwareDetectedOk + +`func (o *RawPackageUploadRequest) GetIsMalwareDetectedOk() (*bool, bool)` + +GetIsMalwareDetectedOk returns a tuple with the IsMalwareDetected field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIsMalwareDetected + +`func (o *RawPackageUploadRequest) SetIsMalwareDetected(v bool)` + +SetIsMalwareDetected sets IsMalwareDetected field to given value. + +### HasIsMalwareDetected + +`func (o *RawPackageUploadRequest) HasIsMalwareDetected() bool` + +HasIsMalwareDetected returns a boolean if a field has been set. + ### GetName `func (o *RawPackageUploadRequest) GetName() string` @@ -287,6 +314,41 @@ HasVersion returns a boolean if a field has been set. `func (o *RawPackageUploadRequest) UnsetVersion()` UnsetVersion ensures that no value is present for Version, not even an explicit nil +### GetVulnerabilityCounts + +`func (o *RawPackageUploadRequest) GetVulnerabilityCounts() WebOSVSeverityCounts` + +GetVulnerabilityCounts returns the VulnerabilityCounts field if non-nil, zero value otherwise. + +### GetVulnerabilityCountsOk + +`func (o *RawPackageUploadRequest) GetVulnerabilityCountsOk() (*WebOSVSeverityCounts, bool)` + +GetVulnerabilityCountsOk returns a tuple with the VulnerabilityCounts field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetVulnerabilityCounts + +`func (o *RawPackageUploadRequest) SetVulnerabilityCounts(v WebOSVSeverityCounts)` + +SetVulnerabilityCounts sets VulnerabilityCounts field to given value. + +### HasVulnerabilityCounts + +`func (o *RawPackageUploadRequest) HasVulnerabilityCounts() bool` + +HasVulnerabilityCounts returns a boolean if a field has been set. + +### SetVulnerabilityCountsNil + +`func (o *RawPackageUploadRequest) SetVulnerabilityCountsNil(b bool)` + + SetVulnerabilityCountsNil sets the value for VulnerabilityCounts to be an explicit nil + +### UnsetVulnerabilityCounts +`func (o *RawPackageUploadRequest) UnsetVulnerabilityCounts()` + +UnsetVulnerabilityCounts ensures that no value is present for VulnerabilityCounts, 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/RecycleBinPackage.md b/docs/RecycleBinPackage.md index 48849fd9..e003da57 100644 --- a/docs/RecycleBinPackage.md +++ b/docs/RecycleBinPackage.md @@ -12,6 +12,7 @@ Name | Type | Description | Notes **Identifiers** | Pointer to **map[string]string** | | [optional] [readonly] **InvokedRetentionRule** | Pointer to **map[string]string** | Information about the retention rule that triggered deletion (if any). | [optional] [readonly] **IsDeleteable** | Pointer to **bool** | | [optional] [readonly] +**IsMalwareDetected** | Pointer to **bool** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] [readonly] **IsQuarantined** | Pointer to **bool** | | [optional] [readonly] **IsRestorable** | Pointer to **bool** | | [optional] [readonly] **Name** | Pointer to **NullableString** | The name of this package. | [optional] [readonly] @@ -28,6 +29,7 @@ Name | Type | Description | Notes **UploadedAt** | Pointer to **time.Time** | The date this package was uploaded. | [optional] [readonly] **Uploader** | Pointer to **string** | | [optional] [readonly] **Version** | Pointer to **NullableString** | The raw version for this package. | [optional] [readonly] +**VulnerabilityCounts** | Pointer to [**NullableWebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] ## Methods @@ -278,6 +280,31 @@ SetIsDeleteable sets IsDeleteable field to given value. HasIsDeleteable returns a boolean if a field has been set. +### GetIsMalwareDetected + +`func (o *RecycleBinPackage) GetIsMalwareDetected() bool` + +GetIsMalwareDetected returns the IsMalwareDetected field if non-nil, zero value otherwise. + +### GetIsMalwareDetectedOk + +`func (o *RecycleBinPackage) GetIsMalwareDetectedOk() (*bool, bool)` + +GetIsMalwareDetectedOk returns a tuple with the IsMalwareDetected field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIsMalwareDetected + +`func (o *RecycleBinPackage) SetIsMalwareDetected(v bool)` + +SetIsMalwareDetected sets IsMalwareDetected field to given value. + +### HasIsMalwareDetected + +`func (o *RecycleBinPackage) HasIsMalwareDetected() bool` + +HasIsMalwareDetected returns a boolean if a field has been set. + ### GetIsQuarantined `func (o *RecycleBinPackage) GetIsQuarantined() bool` @@ -718,6 +745,41 @@ HasVersion returns a boolean if a field has been set. `func (o *RecycleBinPackage) UnsetVersion()` UnsetVersion ensures that no value is present for Version, not even an explicit nil +### GetVulnerabilityCounts + +`func (o *RecycleBinPackage) GetVulnerabilityCounts() WebOSVSeverityCounts` + +GetVulnerabilityCounts returns the VulnerabilityCounts field if non-nil, zero value otherwise. + +### GetVulnerabilityCountsOk + +`func (o *RecycleBinPackage) GetVulnerabilityCountsOk() (*WebOSVSeverityCounts, bool)` + +GetVulnerabilityCountsOk returns a tuple with the VulnerabilityCounts field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetVulnerabilityCounts + +`func (o *RecycleBinPackage) SetVulnerabilityCounts(v WebOSVSeverityCounts)` + +SetVulnerabilityCounts sets VulnerabilityCounts field to given value. + +### HasVulnerabilityCounts + +`func (o *RecycleBinPackage) HasVulnerabilityCounts() bool` + +HasVulnerabilityCounts returns a boolean if a field has been set. + +### SetVulnerabilityCountsNil + +`func (o *RecycleBinPackage) SetVulnerabilityCountsNil(b bool)` + + SetVulnerabilityCountsNil sets the value for VulnerabilityCounts to be an explicit nil + +### UnsetVulnerabilityCounts +`func (o *RecycleBinPackage) UnsetVulnerabilityCounts()` + +UnsetVulnerabilityCounts ensures that no value is present for VulnerabilityCounts, 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/RpmPackageUpload.md b/docs/RpmPackageUpload.md index 4d748d78..847f28d3 100644 --- a/docs/RpmPackageUpload.md +++ b/docs/RpmPackageUpload.md @@ -33,6 +33,7 @@ Name | Type | Description | Notes **IsDeleteable** | Pointer to **bool** | | [optional] [readonly] **IsDownloadable** | Pointer to **bool** | | [optional] [readonly] **IsHidden** | Pointer to **bool** | | [optional] [readonly] +**IsMalwareDetected** | Pointer to **bool** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] [readonly] **IsMoveable** | Pointer to **bool** | | [optional] [readonly] **IsQuarantinable** | Pointer to **bool** | | [optional] [readonly] **IsQuarantined** | Pointer to **bool** | | [optional] [readonly] @@ -89,6 +90,7 @@ Name | Type | Description | Notes **UploaderUrl** | Pointer to **string** | | [optional] [readonly] **Version** | Pointer to **NullableString** | The raw version for this package. | [optional] [readonly] **VersionOrig** | Pointer to **string** | | [optional] [readonly] +**VulnerabilityCounts** | Pointer to [**NullableWebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] **VulnerabilityScanResultsUrl** | Pointer to **string** | | [optional] [readonly] ## Methods @@ -895,6 +897,31 @@ SetIsHidden sets IsHidden field to given value. HasIsHidden returns a boolean if a field has been set. +### GetIsMalwareDetected + +`func (o *RpmPackageUpload) GetIsMalwareDetected() bool` + +GetIsMalwareDetected returns the IsMalwareDetected field if non-nil, zero value otherwise. + +### GetIsMalwareDetectedOk + +`func (o *RpmPackageUpload) GetIsMalwareDetectedOk() (*bool, bool)` + +GetIsMalwareDetectedOk returns a tuple with the IsMalwareDetected field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIsMalwareDetected + +`func (o *RpmPackageUpload) SetIsMalwareDetected(v bool)` + +SetIsMalwareDetected sets IsMalwareDetected field to given value. + +### HasIsMalwareDetected + +`func (o *RpmPackageUpload) HasIsMalwareDetected() bool` + +HasIsMalwareDetected returns a boolean if a field has been set. + ### GetIsMoveable `func (o *RpmPackageUpload) GetIsMoveable() bool` @@ -2435,6 +2462,41 @@ SetVersionOrig sets VersionOrig field to given value. HasVersionOrig returns a boolean if a field has been set. +### GetVulnerabilityCounts + +`func (o *RpmPackageUpload) GetVulnerabilityCounts() WebOSVSeverityCounts` + +GetVulnerabilityCounts returns the VulnerabilityCounts field if non-nil, zero value otherwise. + +### GetVulnerabilityCountsOk + +`func (o *RpmPackageUpload) GetVulnerabilityCountsOk() (*WebOSVSeverityCounts, bool)` + +GetVulnerabilityCountsOk returns a tuple with the VulnerabilityCounts field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetVulnerabilityCounts + +`func (o *RpmPackageUpload) SetVulnerabilityCounts(v WebOSVSeverityCounts)` + +SetVulnerabilityCounts sets VulnerabilityCounts field to given value. + +### HasVulnerabilityCounts + +`func (o *RpmPackageUpload) HasVulnerabilityCounts() bool` + +HasVulnerabilityCounts returns a boolean if a field has been set. + +### SetVulnerabilityCountsNil + +`func (o *RpmPackageUpload) SetVulnerabilityCountsNil(b bool)` + + SetVulnerabilityCountsNil sets the value for VulnerabilityCounts to be an explicit nil + +### UnsetVulnerabilityCounts +`func (o *RpmPackageUpload) UnsetVulnerabilityCounts()` + +UnsetVulnerabilityCounts ensures that no value is present for VulnerabilityCounts, not even an explicit nil ### GetVulnerabilityScanResultsUrl `func (o *RpmPackageUpload) GetVulnerabilityScanResultsUrl() string` diff --git a/docs/RpmPackageUploadRequest.md b/docs/RpmPackageUploadRequest.md index c8289881..a97ff1b7 100644 --- a/docs/RpmPackageUploadRequest.md +++ b/docs/RpmPackageUploadRequest.md @@ -5,9 +5,11 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Distribution** | **string** | The distribution to store the package for. | +**IsMalwareDetected** | Pointer to **bool** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] [readonly] **PackageFile** | **string** | The primary file for the package. | **Republish** | Pointer to **bool** | If true, the uploaded package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate. | [optional] **Tags** | Pointer to **NullableString** | A comma-separated values list of tags to add to the package. | [optional] +**VulnerabilityCounts** | Pointer to [**NullableWebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] ## Methods @@ -48,6 +50,31 @@ and a boolean to check if the value has been set. SetDistribution sets Distribution field to given value. +### GetIsMalwareDetected + +`func (o *RpmPackageUploadRequest) GetIsMalwareDetected() bool` + +GetIsMalwareDetected returns the IsMalwareDetected field if non-nil, zero value otherwise. + +### GetIsMalwareDetectedOk + +`func (o *RpmPackageUploadRequest) GetIsMalwareDetectedOk() (*bool, bool)` + +GetIsMalwareDetectedOk returns a tuple with the IsMalwareDetected field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIsMalwareDetected + +`func (o *RpmPackageUploadRequest) SetIsMalwareDetected(v bool)` + +SetIsMalwareDetected sets IsMalwareDetected field to given value. + +### HasIsMalwareDetected + +`func (o *RpmPackageUploadRequest) HasIsMalwareDetected() bool` + +HasIsMalwareDetected returns a boolean if a field has been set. + ### GetPackageFile `func (o *RpmPackageUploadRequest) GetPackageFile() string` @@ -128,6 +155,41 @@ HasTags returns a boolean if a field has been set. `func (o *RpmPackageUploadRequest) UnsetTags()` UnsetTags ensures that no value is present for Tags, not even an explicit nil +### GetVulnerabilityCounts + +`func (o *RpmPackageUploadRequest) GetVulnerabilityCounts() WebOSVSeverityCounts` + +GetVulnerabilityCounts returns the VulnerabilityCounts field if non-nil, zero value otherwise. + +### GetVulnerabilityCountsOk + +`func (o *RpmPackageUploadRequest) GetVulnerabilityCountsOk() (*WebOSVSeverityCounts, bool)` + +GetVulnerabilityCountsOk returns a tuple with the VulnerabilityCounts field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetVulnerabilityCounts + +`func (o *RpmPackageUploadRequest) SetVulnerabilityCounts(v WebOSVSeverityCounts)` + +SetVulnerabilityCounts sets VulnerabilityCounts field to given value. + +### HasVulnerabilityCounts + +`func (o *RpmPackageUploadRequest) HasVulnerabilityCounts() bool` + +HasVulnerabilityCounts returns a boolean if a field has been set. + +### SetVulnerabilityCountsNil + +`func (o *RpmPackageUploadRequest) SetVulnerabilityCountsNil(b bool)` + + SetVulnerabilityCountsNil sets the value for VulnerabilityCounts to be an explicit nil + +### UnsetVulnerabilityCounts +`func (o *RpmPackageUploadRequest) UnsetVulnerabilityCounts()` + +UnsetVulnerabilityCounts ensures that no value is present for VulnerabilityCounts, 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/RubyPackageUpload.md b/docs/RubyPackageUpload.md index 1ab76e3b..d9ab8bd7 100644 --- a/docs/RubyPackageUpload.md +++ b/docs/RubyPackageUpload.md @@ -33,6 +33,7 @@ Name | Type | Description | Notes **IsDeleteable** | Pointer to **bool** | | [optional] [readonly] **IsDownloadable** | Pointer to **bool** | | [optional] [readonly] **IsHidden** | Pointer to **bool** | | [optional] [readonly] +**IsMalwareDetected** | Pointer to **bool** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] [readonly] **IsMoveable** | Pointer to **bool** | | [optional] [readonly] **IsQuarantinable** | Pointer to **bool** | | [optional] [readonly] **IsQuarantined** | Pointer to **bool** | | [optional] [readonly] @@ -89,6 +90,7 @@ Name | Type | Description | Notes **UploaderUrl** | Pointer to **string** | | [optional] [readonly] **Version** | Pointer to **NullableString** | The raw version for this package. | [optional] [readonly] **VersionOrig** | Pointer to **string** | | [optional] [readonly] +**VulnerabilityCounts** | Pointer to [**NullableWebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] **VulnerabilityScanResultsUrl** | Pointer to **string** | | [optional] [readonly] ## Methods @@ -895,6 +897,31 @@ SetIsHidden sets IsHidden field to given value. HasIsHidden returns a boolean if a field has been set. +### GetIsMalwareDetected + +`func (o *RubyPackageUpload) GetIsMalwareDetected() bool` + +GetIsMalwareDetected returns the IsMalwareDetected field if non-nil, zero value otherwise. + +### GetIsMalwareDetectedOk + +`func (o *RubyPackageUpload) GetIsMalwareDetectedOk() (*bool, bool)` + +GetIsMalwareDetectedOk returns a tuple with the IsMalwareDetected field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIsMalwareDetected + +`func (o *RubyPackageUpload) SetIsMalwareDetected(v bool)` + +SetIsMalwareDetected sets IsMalwareDetected field to given value. + +### HasIsMalwareDetected + +`func (o *RubyPackageUpload) HasIsMalwareDetected() bool` + +HasIsMalwareDetected returns a boolean if a field has been set. + ### GetIsMoveable `func (o *RubyPackageUpload) GetIsMoveable() bool` @@ -2435,6 +2462,41 @@ SetVersionOrig sets VersionOrig field to given value. HasVersionOrig returns a boolean if a field has been set. +### GetVulnerabilityCounts + +`func (o *RubyPackageUpload) GetVulnerabilityCounts() WebOSVSeverityCounts` + +GetVulnerabilityCounts returns the VulnerabilityCounts field if non-nil, zero value otherwise. + +### GetVulnerabilityCountsOk + +`func (o *RubyPackageUpload) GetVulnerabilityCountsOk() (*WebOSVSeverityCounts, bool)` + +GetVulnerabilityCountsOk returns a tuple with the VulnerabilityCounts field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetVulnerabilityCounts + +`func (o *RubyPackageUpload) SetVulnerabilityCounts(v WebOSVSeverityCounts)` + +SetVulnerabilityCounts sets VulnerabilityCounts field to given value. + +### HasVulnerabilityCounts + +`func (o *RubyPackageUpload) HasVulnerabilityCounts() bool` + +HasVulnerabilityCounts returns a boolean if a field has been set. + +### SetVulnerabilityCountsNil + +`func (o *RubyPackageUpload) SetVulnerabilityCountsNil(b bool)` + + SetVulnerabilityCountsNil sets the value for VulnerabilityCounts to be an explicit nil + +### UnsetVulnerabilityCounts +`func (o *RubyPackageUpload) UnsetVulnerabilityCounts()` + +UnsetVulnerabilityCounts ensures that no value is present for VulnerabilityCounts, not even an explicit nil ### GetVulnerabilityScanResultsUrl `func (o *RubyPackageUpload) GetVulnerabilityScanResultsUrl() string` diff --git a/docs/RubyPackageUploadRequest.md b/docs/RubyPackageUploadRequest.md index ebbc046d..40ac7365 100644 --- a/docs/RubyPackageUploadRequest.md +++ b/docs/RubyPackageUploadRequest.md @@ -4,9 +4,11 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**IsMalwareDetected** | Pointer to **bool** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] [readonly] **PackageFile** | **string** | The primary file for the package. | **Republish** | Pointer to **bool** | If true, the uploaded package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate. | [optional] **Tags** | Pointer to **NullableString** | A comma-separated values list of tags to add to the package. | [optional] +**VulnerabilityCounts** | Pointer to [**NullableWebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] ## Methods @@ -27,6 +29,31 @@ NewRubyPackageUploadRequestWithDefaults instantiates a new RubyPackageUploadRequ This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set +### GetIsMalwareDetected + +`func (o *RubyPackageUploadRequest) GetIsMalwareDetected() bool` + +GetIsMalwareDetected returns the IsMalwareDetected field if non-nil, zero value otherwise. + +### GetIsMalwareDetectedOk + +`func (o *RubyPackageUploadRequest) GetIsMalwareDetectedOk() (*bool, bool)` + +GetIsMalwareDetectedOk returns a tuple with the IsMalwareDetected field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIsMalwareDetected + +`func (o *RubyPackageUploadRequest) SetIsMalwareDetected(v bool)` + +SetIsMalwareDetected sets IsMalwareDetected field to given value. + +### HasIsMalwareDetected + +`func (o *RubyPackageUploadRequest) HasIsMalwareDetected() bool` + +HasIsMalwareDetected returns a boolean if a field has been set. + ### GetPackageFile `func (o *RubyPackageUploadRequest) GetPackageFile() string` @@ -107,6 +134,41 @@ HasTags returns a boolean if a field has been set. `func (o *RubyPackageUploadRequest) UnsetTags()` UnsetTags ensures that no value is present for Tags, not even an explicit nil +### GetVulnerabilityCounts + +`func (o *RubyPackageUploadRequest) GetVulnerabilityCounts() WebOSVSeverityCounts` + +GetVulnerabilityCounts returns the VulnerabilityCounts field if non-nil, zero value otherwise. + +### GetVulnerabilityCountsOk + +`func (o *RubyPackageUploadRequest) GetVulnerabilityCountsOk() (*WebOSVSeverityCounts, bool)` + +GetVulnerabilityCountsOk returns a tuple with the VulnerabilityCounts field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetVulnerabilityCounts + +`func (o *RubyPackageUploadRequest) SetVulnerabilityCounts(v WebOSVSeverityCounts)` + +SetVulnerabilityCounts sets VulnerabilityCounts field to given value. + +### HasVulnerabilityCounts + +`func (o *RubyPackageUploadRequest) HasVulnerabilityCounts() bool` + +HasVulnerabilityCounts returns a boolean if a field has been set. + +### SetVulnerabilityCountsNil + +`func (o *RubyPackageUploadRequest) SetVulnerabilityCountsNil(b bool)` + + SetVulnerabilityCountsNil sets the value for VulnerabilityCounts to be an explicit nil + +### UnsetVulnerabilityCounts +`func (o *RubyPackageUploadRequest) UnsetVulnerabilityCounts()` + +UnsetVulnerabilityCounts ensures that no value is present for VulnerabilityCounts, 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/SwiftPackageUpload.md b/docs/SwiftPackageUpload.md index d2ba76e4..59030eeb 100644 --- a/docs/SwiftPackageUpload.md +++ b/docs/SwiftPackageUpload.md @@ -35,6 +35,7 @@ Name | Type | Description | Notes **IsDeleteable** | Pointer to **bool** | | [optional] [readonly] **IsDownloadable** | Pointer to **bool** | | [optional] [readonly] **IsHidden** | Pointer to **bool** | | [optional] [readonly] +**IsMalwareDetected** | Pointer to **bool** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] [readonly] **IsMoveable** | Pointer to **bool** | | [optional] [readonly] **IsQuarantinable** | Pointer to **bool** | | [optional] [readonly] **IsQuarantined** | Pointer to **bool** | | [optional] [readonly] @@ -94,6 +95,7 @@ Name | Type | Description | Notes **UploaderUrl** | Pointer to **string** | | [optional] [readonly] **Version** | **string** | The raw version for this package. | **VersionOrig** | Pointer to **string** | | [optional] [readonly] +**VulnerabilityCounts** | Pointer to [**NullableWebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] **VulnerabilityScanResultsUrl** | Pointer to **string** | | [optional] [readonly] ## Methods @@ -950,6 +952,31 @@ SetIsHidden sets IsHidden field to given value. HasIsHidden returns a boolean if a field has been set. +### GetIsMalwareDetected + +`func (o *SwiftPackageUpload) GetIsMalwareDetected() bool` + +GetIsMalwareDetected returns the IsMalwareDetected field if non-nil, zero value otherwise. + +### GetIsMalwareDetectedOk + +`func (o *SwiftPackageUpload) GetIsMalwareDetectedOk() (*bool, bool)` + +GetIsMalwareDetectedOk returns a tuple with the IsMalwareDetected field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIsMalwareDetected + +`func (o *SwiftPackageUpload) SetIsMalwareDetected(v bool)` + +SetIsMalwareDetected sets IsMalwareDetected field to given value. + +### HasIsMalwareDetected + +`func (o *SwiftPackageUpload) HasIsMalwareDetected() bool` + +HasIsMalwareDetected returns a boolean if a field has been set. + ### GetIsMoveable `func (o *SwiftPackageUpload) GetIsMoveable() bool` @@ -2540,6 +2567,41 @@ SetVersionOrig sets VersionOrig field to given value. HasVersionOrig returns a boolean if a field has been set. +### GetVulnerabilityCounts + +`func (o *SwiftPackageUpload) GetVulnerabilityCounts() WebOSVSeverityCounts` + +GetVulnerabilityCounts returns the VulnerabilityCounts field if non-nil, zero value otherwise. + +### GetVulnerabilityCountsOk + +`func (o *SwiftPackageUpload) GetVulnerabilityCountsOk() (*WebOSVSeverityCounts, bool)` + +GetVulnerabilityCountsOk returns a tuple with the VulnerabilityCounts field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetVulnerabilityCounts + +`func (o *SwiftPackageUpload) SetVulnerabilityCounts(v WebOSVSeverityCounts)` + +SetVulnerabilityCounts sets VulnerabilityCounts field to given value. + +### HasVulnerabilityCounts + +`func (o *SwiftPackageUpload) HasVulnerabilityCounts() bool` + +HasVulnerabilityCounts returns a boolean if a field has been set. + +### SetVulnerabilityCountsNil + +`func (o *SwiftPackageUpload) SetVulnerabilityCountsNil(b bool)` + + SetVulnerabilityCountsNil sets the value for VulnerabilityCounts to be an explicit nil + +### UnsetVulnerabilityCounts +`func (o *SwiftPackageUpload) UnsetVulnerabilityCounts()` + +UnsetVulnerabilityCounts ensures that no value is present for VulnerabilityCounts, not even an explicit nil ### GetVulnerabilityScanResultsUrl `func (o *SwiftPackageUpload) GetVulnerabilityScanResultsUrl() string` diff --git a/docs/SwiftPackageUploadRequest.md b/docs/SwiftPackageUploadRequest.md index 5d22ae83..4f8cfc4b 100644 --- a/docs/SwiftPackageUploadRequest.md +++ b/docs/SwiftPackageUploadRequest.md @@ -6,6 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **AuthorName** | Pointer to **string** | The name of the author of the package. | [optional] **AuthorOrg** | Pointer to **string** | The organization of the author. | [optional] +**IsMalwareDetected** | Pointer to **bool** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] [readonly] **LicenseUrl** | Pointer to **NullableString** | The license URL of this package. | [optional] **Name** | **string** | The name of this package. | **PackageFile** | **string** | The primary file for the package. | @@ -15,6 +16,7 @@ Name | Type | Description | Notes **Scope** | **string** | A scope provides a namespace for related packages within the package registry. | **Tags** | Pointer to **NullableString** | A comma-separated values list of tags to add to the package. | [optional] **Version** | **string** | The raw version for this package. | +**VulnerabilityCounts** | Pointer to [**NullableWebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] ## Methods @@ -85,6 +87,31 @@ SetAuthorOrg sets AuthorOrg field to given value. HasAuthorOrg returns a boolean if a field has been set. +### GetIsMalwareDetected + +`func (o *SwiftPackageUploadRequest) GetIsMalwareDetected() bool` + +GetIsMalwareDetected returns the IsMalwareDetected field if non-nil, zero value otherwise. + +### GetIsMalwareDetectedOk + +`func (o *SwiftPackageUploadRequest) GetIsMalwareDetectedOk() (*bool, bool)` + +GetIsMalwareDetectedOk returns a tuple with the IsMalwareDetected field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIsMalwareDetected + +`func (o *SwiftPackageUploadRequest) SetIsMalwareDetected(v bool)` + +SetIsMalwareDetected sets IsMalwareDetected field to given value. + +### HasIsMalwareDetected + +`func (o *SwiftPackageUploadRequest) HasIsMalwareDetected() bool` + +HasIsMalwareDetected returns a boolean if a field has been set. + ### GetLicenseUrl `func (o *SwiftPackageUploadRequest) GetLicenseUrl() string` @@ -310,6 +337,41 @@ and a boolean to check if the value has been set. SetVersion sets Version field to given value. +### GetVulnerabilityCounts + +`func (o *SwiftPackageUploadRequest) GetVulnerabilityCounts() WebOSVSeverityCounts` + +GetVulnerabilityCounts returns the VulnerabilityCounts field if non-nil, zero value otherwise. + +### GetVulnerabilityCountsOk + +`func (o *SwiftPackageUploadRequest) GetVulnerabilityCountsOk() (*WebOSVSeverityCounts, bool)` + +GetVulnerabilityCountsOk returns a tuple with the VulnerabilityCounts field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetVulnerabilityCounts + +`func (o *SwiftPackageUploadRequest) SetVulnerabilityCounts(v WebOSVSeverityCounts)` + +SetVulnerabilityCounts sets VulnerabilityCounts field to given value. + +### HasVulnerabilityCounts + +`func (o *SwiftPackageUploadRequest) HasVulnerabilityCounts() bool` + +HasVulnerabilityCounts returns a boolean if a field has been set. + +### SetVulnerabilityCountsNil + +`func (o *SwiftPackageUploadRequest) SetVulnerabilityCountsNil(b bool)` + + SetVulnerabilityCountsNil sets the value for VulnerabilityCounts to be an explicit nil + +### UnsetVulnerabilityCounts +`func (o *SwiftPackageUploadRequest) UnsetVulnerabilityCounts()` + +UnsetVulnerabilityCounts ensures that no value is present for VulnerabilityCounts, 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/TerraformPackageUpload.md b/docs/TerraformPackageUpload.md index ea005ce6..406770bd 100644 --- a/docs/TerraformPackageUpload.md +++ b/docs/TerraformPackageUpload.md @@ -33,6 +33,7 @@ Name | Type | Description | Notes **IsDeleteable** | Pointer to **bool** | | [optional] [readonly] **IsDownloadable** | Pointer to **bool** | | [optional] [readonly] **IsHidden** | Pointer to **bool** | | [optional] [readonly] +**IsMalwareDetected** | Pointer to **bool** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] [readonly] **IsMoveable** | Pointer to **bool** | | [optional] [readonly] **IsQuarantinable** | Pointer to **bool** | | [optional] [readonly] **IsQuarantined** | Pointer to **bool** | | [optional] [readonly] @@ -89,6 +90,7 @@ Name | Type | Description | Notes **UploaderUrl** | Pointer to **string** | | [optional] [readonly] **Version** | Pointer to **NullableString** | The raw version for this package. | [optional] [readonly] **VersionOrig** | Pointer to **string** | | [optional] [readonly] +**VulnerabilityCounts** | Pointer to [**NullableWebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] **VulnerabilityScanResultsUrl** | Pointer to **string** | | [optional] [readonly] ## Methods @@ -895,6 +897,31 @@ SetIsHidden sets IsHidden field to given value. HasIsHidden returns a boolean if a field has been set. +### GetIsMalwareDetected + +`func (o *TerraformPackageUpload) GetIsMalwareDetected() bool` + +GetIsMalwareDetected returns the IsMalwareDetected field if non-nil, zero value otherwise. + +### GetIsMalwareDetectedOk + +`func (o *TerraformPackageUpload) GetIsMalwareDetectedOk() (*bool, bool)` + +GetIsMalwareDetectedOk returns a tuple with the IsMalwareDetected field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIsMalwareDetected + +`func (o *TerraformPackageUpload) SetIsMalwareDetected(v bool)` + +SetIsMalwareDetected sets IsMalwareDetected field to given value. + +### HasIsMalwareDetected + +`func (o *TerraformPackageUpload) HasIsMalwareDetected() bool` + +HasIsMalwareDetected returns a boolean if a field has been set. + ### GetIsMoveable `func (o *TerraformPackageUpload) GetIsMoveable() bool` @@ -2435,6 +2462,41 @@ SetVersionOrig sets VersionOrig field to given value. HasVersionOrig returns a boolean if a field has been set. +### GetVulnerabilityCounts + +`func (o *TerraformPackageUpload) GetVulnerabilityCounts() WebOSVSeverityCounts` + +GetVulnerabilityCounts returns the VulnerabilityCounts field if non-nil, zero value otherwise. + +### GetVulnerabilityCountsOk + +`func (o *TerraformPackageUpload) GetVulnerabilityCountsOk() (*WebOSVSeverityCounts, bool)` + +GetVulnerabilityCountsOk returns a tuple with the VulnerabilityCounts field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetVulnerabilityCounts + +`func (o *TerraformPackageUpload) SetVulnerabilityCounts(v WebOSVSeverityCounts)` + +SetVulnerabilityCounts sets VulnerabilityCounts field to given value. + +### HasVulnerabilityCounts + +`func (o *TerraformPackageUpload) HasVulnerabilityCounts() bool` + +HasVulnerabilityCounts returns a boolean if a field has been set. + +### SetVulnerabilityCountsNil + +`func (o *TerraformPackageUpload) SetVulnerabilityCountsNil(b bool)` + + SetVulnerabilityCountsNil sets the value for VulnerabilityCounts to be an explicit nil + +### UnsetVulnerabilityCounts +`func (o *TerraformPackageUpload) UnsetVulnerabilityCounts()` + +UnsetVulnerabilityCounts ensures that no value is present for VulnerabilityCounts, not even an explicit nil ### GetVulnerabilityScanResultsUrl `func (o *TerraformPackageUpload) GetVulnerabilityScanResultsUrl() string` diff --git a/docs/TerraformPackageUploadRequest.md b/docs/TerraformPackageUploadRequest.md index c9df61c3..6c1fa089 100644 --- a/docs/TerraformPackageUploadRequest.md +++ b/docs/TerraformPackageUploadRequest.md @@ -4,9 +4,11 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**IsMalwareDetected** | Pointer to **bool** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] [readonly] **PackageFile** | **string** | The primary file for the package. | **Republish** | Pointer to **bool** | If true, the uploaded package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate. | [optional] **Tags** | Pointer to **NullableString** | A comma-separated values list of tags to add to the package. | [optional] +**VulnerabilityCounts** | Pointer to [**NullableWebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] ## Methods @@ -27,6 +29,31 @@ NewTerraformPackageUploadRequestWithDefaults instantiates a new TerraformPackage This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set +### GetIsMalwareDetected + +`func (o *TerraformPackageUploadRequest) GetIsMalwareDetected() bool` + +GetIsMalwareDetected returns the IsMalwareDetected field if non-nil, zero value otherwise. + +### GetIsMalwareDetectedOk + +`func (o *TerraformPackageUploadRequest) GetIsMalwareDetectedOk() (*bool, bool)` + +GetIsMalwareDetectedOk returns a tuple with the IsMalwareDetected field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIsMalwareDetected + +`func (o *TerraformPackageUploadRequest) SetIsMalwareDetected(v bool)` + +SetIsMalwareDetected sets IsMalwareDetected field to given value. + +### HasIsMalwareDetected + +`func (o *TerraformPackageUploadRequest) HasIsMalwareDetected() bool` + +HasIsMalwareDetected returns a boolean if a field has been set. + ### GetPackageFile `func (o *TerraformPackageUploadRequest) GetPackageFile() string` @@ -107,6 +134,41 @@ HasTags returns a boolean if a field has been set. `func (o *TerraformPackageUploadRequest) UnsetTags()` UnsetTags ensures that no value is present for Tags, not even an explicit nil +### GetVulnerabilityCounts + +`func (o *TerraformPackageUploadRequest) GetVulnerabilityCounts() WebOSVSeverityCounts` + +GetVulnerabilityCounts returns the VulnerabilityCounts field if non-nil, zero value otherwise. + +### GetVulnerabilityCountsOk + +`func (o *TerraformPackageUploadRequest) GetVulnerabilityCountsOk() (*WebOSVSeverityCounts, bool)` + +GetVulnerabilityCountsOk returns a tuple with the VulnerabilityCounts field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetVulnerabilityCounts + +`func (o *TerraformPackageUploadRequest) SetVulnerabilityCounts(v WebOSVSeverityCounts)` + +SetVulnerabilityCounts sets VulnerabilityCounts field to given value. + +### HasVulnerabilityCounts + +`func (o *TerraformPackageUploadRequest) HasVulnerabilityCounts() bool` + +HasVulnerabilityCounts returns a boolean if a field has been set. + +### SetVulnerabilityCountsNil + +`func (o *TerraformPackageUploadRequest) SetVulnerabilityCountsNil(b bool)` + + SetVulnerabilityCountsNil sets the value for VulnerabilityCounts to be an explicit nil + +### UnsetVulnerabilityCounts +`func (o *TerraformPackageUploadRequest) UnsetVulnerabilityCounts()` + +UnsetVulnerabilityCounts ensures that no value is present for VulnerabilityCounts, 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/VagrantPackageUpload.md b/docs/VagrantPackageUpload.md index 3b502f03..1ade3d38 100644 --- a/docs/VagrantPackageUpload.md +++ b/docs/VagrantPackageUpload.md @@ -33,6 +33,7 @@ Name | Type | Description | Notes **IsDeleteable** | Pointer to **bool** | | [optional] [readonly] **IsDownloadable** | Pointer to **bool** | | [optional] [readonly] **IsHidden** | Pointer to **bool** | | [optional] [readonly] +**IsMalwareDetected** | Pointer to **bool** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] [readonly] **IsMoveable** | Pointer to **bool** | | [optional] [readonly] **IsQuarantinable** | Pointer to **bool** | | [optional] [readonly] **IsQuarantined** | Pointer to **bool** | | [optional] [readonly] @@ -90,6 +91,7 @@ Name | Type | Description | Notes **UploaderUrl** | Pointer to **string** | | [optional] [readonly] **Version** | **string** | The raw version for this package. | **VersionOrig** | Pointer to **string** | | [optional] [readonly] +**VulnerabilityCounts** | Pointer to [**NullableWebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] **VulnerabilityScanResultsUrl** | Pointer to **string** | | [optional] [readonly] ## Methods @@ -896,6 +898,31 @@ SetIsHidden sets IsHidden field to given value. HasIsHidden returns a boolean if a field has been set. +### GetIsMalwareDetected + +`func (o *VagrantPackageUpload) GetIsMalwareDetected() bool` + +GetIsMalwareDetected returns the IsMalwareDetected field if non-nil, zero value otherwise. + +### GetIsMalwareDetectedOk + +`func (o *VagrantPackageUpload) GetIsMalwareDetectedOk() (*bool, bool)` + +GetIsMalwareDetectedOk returns a tuple with the IsMalwareDetected field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIsMalwareDetected + +`func (o *VagrantPackageUpload) SetIsMalwareDetected(v bool)` + +SetIsMalwareDetected sets IsMalwareDetected field to given value. + +### HasIsMalwareDetected + +`func (o *VagrantPackageUpload) HasIsMalwareDetected() bool` + +HasIsMalwareDetected returns a boolean if a field has been set. + ### GetIsMoveable `func (o *VagrantPackageUpload) GetIsMoveable() bool` @@ -2426,6 +2453,41 @@ SetVersionOrig sets VersionOrig field to given value. HasVersionOrig returns a boolean if a field has been set. +### GetVulnerabilityCounts + +`func (o *VagrantPackageUpload) GetVulnerabilityCounts() WebOSVSeverityCounts` + +GetVulnerabilityCounts returns the VulnerabilityCounts field if non-nil, zero value otherwise. + +### GetVulnerabilityCountsOk + +`func (o *VagrantPackageUpload) GetVulnerabilityCountsOk() (*WebOSVSeverityCounts, bool)` + +GetVulnerabilityCountsOk returns a tuple with the VulnerabilityCounts field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetVulnerabilityCounts + +`func (o *VagrantPackageUpload) SetVulnerabilityCounts(v WebOSVSeverityCounts)` + +SetVulnerabilityCounts sets VulnerabilityCounts field to given value. + +### HasVulnerabilityCounts + +`func (o *VagrantPackageUpload) HasVulnerabilityCounts() bool` + +HasVulnerabilityCounts returns a boolean if a field has been set. + +### SetVulnerabilityCountsNil + +`func (o *VagrantPackageUpload) SetVulnerabilityCountsNil(b bool)` + + SetVulnerabilityCountsNil sets the value for VulnerabilityCounts to be an explicit nil + +### UnsetVulnerabilityCounts +`func (o *VagrantPackageUpload) UnsetVulnerabilityCounts()` + +UnsetVulnerabilityCounts ensures that no value is present for VulnerabilityCounts, not even an explicit nil ### GetVulnerabilityScanResultsUrl `func (o *VagrantPackageUpload) GetVulnerabilityScanResultsUrl() string` diff --git a/docs/VagrantPackageUploadRequest.md b/docs/VagrantPackageUploadRequest.md index bc287ba8..28431620 100644 --- a/docs/VagrantPackageUploadRequest.md +++ b/docs/VagrantPackageUploadRequest.md @@ -4,12 +4,14 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**IsMalwareDetected** | Pointer to **bool** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] [readonly] **Name** | **string** | The name of this package. | **PackageFile** | **string** | The primary file for the package. | **Provider** | **string** | The virtual machine provider for the box. | **Republish** | Pointer to **bool** | If true, the uploaded package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate. | [optional] **Tags** | Pointer to **NullableString** | A comma-separated values list of tags to add to the package. | [optional] **Version** | **string** | The raw version for this package. | +**VulnerabilityCounts** | Pointer to [**NullableWebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] ## Methods @@ -30,6 +32,31 @@ NewVagrantPackageUploadRequestWithDefaults instantiates a new VagrantPackageUplo This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set +### GetIsMalwareDetected + +`func (o *VagrantPackageUploadRequest) GetIsMalwareDetected() bool` + +GetIsMalwareDetected returns the IsMalwareDetected field if non-nil, zero value otherwise. + +### GetIsMalwareDetectedOk + +`func (o *VagrantPackageUploadRequest) GetIsMalwareDetectedOk() (*bool, bool)` + +GetIsMalwareDetectedOk returns a tuple with the IsMalwareDetected field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIsMalwareDetected + +`func (o *VagrantPackageUploadRequest) SetIsMalwareDetected(v bool)` + +SetIsMalwareDetected sets IsMalwareDetected field to given value. + +### HasIsMalwareDetected + +`func (o *VagrantPackageUploadRequest) HasIsMalwareDetected() bool` + +HasIsMalwareDetected returns a boolean if a field has been set. + ### GetName `func (o *VagrantPackageUploadRequest) GetName() string` @@ -170,6 +197,41 @@ and a boolean to check if the value has been set. SetVersion sets Version field to given value. +### GetVulnerabilityCounts + +`func (o *VagrantPackageUploadRequest) GetVulnerabilityCounts() WebOSVSeverityCounts` + +GetVulnerabilityCounts returns the VulnerabilityCounts field if non-nil, zero value otherwise. + +### GetVulnerabilityCountsOk + +`func (o *VagrantPackageUploadRequest) GetVulnerabilityCountsOk() (*WebOSVSeverityCounts, bool)` + +GetVulnerabilityCountsOk returns a tuple with the VulnerabilityCounts field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetVulnerabilityCounts + +`func (o *VagrantPackageUploadRequest) SetVulnerabilityCounts(v WebOSVSeverityCounts)` + +SetVulnerabilityCounts sets VulnerabilityCounts field to given value. + +### HasVulnerabilityCounts + +`func (o *VagrantPackageUploadRequest) HasVulnerabilityCounts() bool` + +HasVulnerabilityCounts returns a boolean if a field has been set. + +### SetVulnerabilityCountsNil + +`func (o *VagrantPackageUploadRequest) SetVulnerabilityCountsNil(b bool)` + + SetVulnerabilityCountsNil sets the value for VulnerabilityCounts to be an explicit nil + +### UnsetVulnerabilityCounts +`func (o *VagrantPackageUploadRequest) UnsetVulnerabilityCounts()` + +UnsetVulnerabilityCounts ensures that no value is present for VulnerabilityCounts, 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/VsxPackageUpload.md b/docs/VsxPackageUpload.md index 8543f6f8..b57a1220 100644 --- a/docs/VsxPackageUpload.md +++ b/docs/VsxPackageUpload.md @@ -33,6 +33,7 @@ Name | Type | Description | Notes **IsDeleteable** | Pointer to **bool** | | [optional] [readonly] **IsDownloadable** | Pointer to **bool** | | [optional] [readonly] **IsHidden** | Pointer to **bool** | | [optional] [readonly] +**IsMalwareDetected** | Pointer to **bool** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] [readonly] **IsMoveable** | Pointer to **bool** | | [optional] [readonly] **IsQuarantinable** | Pointer to **bool** | | [optional] [readonly] **IsQuarantined** | Pointer to **bool** | | [optional] [readonly] @@ -89,6 +90,7 @@ Name | Type | Description | Notes **UploaderUrl** | Pointer to **string** | | [optional] [readonly] **Version** | Pointer to **NullableString** | The raw version for this package. | [optional] [readonly] **VersionOrig** | Pointer to **string** | | [optional] [readonly] +**VulnerabilityCounts** | Pointer to [**NullableWebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] **VulnerabilityScanResultsUrl** | Pointer to **string** | | [optional] [readonly] ## Methods @@ -895,6 +897,31 @@ SetIsHidden sets IsHidden field to given value. HasIsHidden returns a boolean if a field has been set. +### GetIsMalwareDetected + +`func (o *VsxPackageUpload) GetIsMalwareDetected() bool` + +GetIsMalwareDetected returns the IsMalwareDetected field if non-nil, zero value otherwise. + +### GetIsMalwareDetectedOk + +`func (o *VsxPackageUpload) GetIsMalwareDetectedOk() (*bool, bool)` + +GetIsMalwareDetectedOk returns a tuple with the IsMalwareDetected field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIsMalwareDetected + +`func (o *VsxPackageUpload) SetIsMalwareDetected(v bool)` + +SetIsMalwareDetected sets IsMalwareDetected field to given value. + +### HasIsMalwareDetected + +`func (o *VsxPackageUpload) HasIsMalwareDetected() bool` + +HasIsMalwareDetected returns a boolean if a field has been set. + ### GetIsMoveable `func (o *VsxPackageUpload) GetIsMoveable() bool` @@ -2435,6 +2462,41 @@ SetVersionOrig sets VersionOrig field to given value. HasVersionOrig returns a boolean if a field has been set. +### GetVulnerabilityCounts + +`func (o *VsxPackageUpload) GetVulnerabilityCounts() WebOSVSeverityCounts` + +GetVulnerabilityCounts returns the VulnerabilityCounts field if non-nil, zero value otherwise. + +### GetVulnerabilityCountsOk + +`func (o *VsxPackageUpload) GetVulnerabilityCountsOk() (*WebOSVSeverityCounts, bool)` + +GetVulnerabilityCountsOk returns a tuple with the VulnerabilityCounts field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetVulnerabilityCounts + +`func (o *VsxPackageUpload) SetVulnerabilityCounts(v WebOSVSeverityCounts)` + +SetVulnerabilityCounts sets VulnerabilityCounts field to given value. + +### HasVulnerabilityCounts + +`func (o *VsxPackageUpload) HasVulnerabilityCounts() bool` + +HasVulnerabilityCounts returns a boolean if a field has been set. + +### SetVulnerabilityCountsNil + +`func (o *VsxPackageUpload) SetVulnerabilityCountsNil(b bool)` + + SetVulnerabilityCountsNil sets the value for VulnerabilityCounts to be an explicit nil + +### UnsetVulnerabilityCounts +`func (o *VsxPackageUpload) UnsetVulnerabilityCounts()` + +UnsetVulnerabilityCounts ensures that no value is present for VulnerabilityCounts, not even an explicit nil ### GetVulnerabilityScanResultsUrl `func (o *VsxPackageUpload) GetVulnerabilityScanResultsUrl() string` diff --git a/docs/VsxPackageUploadRequest.md b/docs/VsxPackageUploadRequest.md index 6667d553..b5dd5ee9 100644 --- a/docs/VsxPackageUploadRequest.md +++ b/docs/VsxPackageUploadRequest.md @@ -4,9 +4,11 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**IsMalwareDetected** | Pointer to **bool** | Whether the package has been detected as containing malware. Requires Ultra plan. | [optional] [readonly] **PackageFile** | **string** | The primary file for the package. | **Republish** | Pointer to **bool** | If true, the uploaded package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate. | [optional] **Tags** | Pointer to **NullableString** | A comma-separated values list of tags to add to the package. | [optional] +**VulnerabilityCounts** | Pointer to [**NullableWebOSVSeverityCounts**](WebOSVSeverityCounts.md) | | [optional] ## Methods @@ -27,6 +29,31 @@ NewVsxPackageUploadRequestWithDefaults instantiates a new VsxPackageUploadReques This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set +### GetIsMalwareDetected + +`func (o *VsxPackageUploadRequest) GetIsMalwareDetected() bool` + +GetIsMalwareDetected returns the IsMalwareDetected field if non-nil, zero value otherwise. + +### GetIsMalwareDetectedOk + +`func (o *VsxPackageUploadRequest) GetIsMalwareDetectedOk() (*bool, bool)` + +GetIsMalwareDetectedOk returns a tuple with the IsMalwareDetected field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIsMalwareDetected + +`func (o *VsxPackageUploadRequest) SetIsMalwareDetected(v bool)` + +SetIsMalwareDetected sets IsMalwareDetected field to given value. + +### HasIsMalwareDetected + +`func (o *VsxPackageUploadRequest) HasIsMalwareDetected() bool` + +HasIsMalwareDetected returns a boolean if a field has been set. + ### GetPackageFile `func (o *VsxPackageUploadRequest) GetPackageFile() string` @@ -107,6 +134,41 @@ HasTags returns a boolean if a field has been set. `func (o *VsxPackageUploadRequest) UnsetTags()` UnsetTags ensures that no value is present for Tags, not even an explicit nil +### GetVulnerabilityCounts + +`func (o *VsxPackageUploadRequest) GetVulnerabilityCounts() WebOSVSeverityCounts` + +GetVulnerabilityCounts returns the VulnerabilityCounts field if non-nil, zero value otherwise. + +### GetVulnerabilityCountsOk + +`func (o *VsxPackageUploadRequest) GetVulnerabilityCountsOk() (*WebOSVSeverityCounts, bool)` + +GetVulnerabilityCountsOk returns a tuple with the VulnerabilityCounts field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetVulnerabilityCounts + +`func (o *VsxPackageUploadRequest) SetVulnerabilityCounts(v WebOSVSeverityCounts)` + +SetVulnerabilityCounts sets VulnerabilityCounts field to given value. + +### HasVulnerabilityCounts + +`func (o *VsxPackageUploadRequest) HasVulnerabilityCounts() bool` + +HasVulnerabilityCounts returns a boolean if a field has been set. + +### SetVulnerabilityCountsNil + +`func (o *VsxPackageUploadRequest) SetVulnerabilityCountsNil(b bool)` + + SetVulnerabilityCountsNil sets the value for VulnerabilityCounts to be an explicit nil + +### UnsetVulnerabilityCounts +`func (o *VsxPackageUploadRequest) UnsetVulnerabilityCounts()` + +UnsetVulnerabilityCounts ensures that no value is present for VulnerabilityCounts, 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/WebOSVSeverityCounts.md b/docs/WebOSVSeverityCounts.md new file mode 100644 index 00000000..16b46c0a --- /dev/null +++ b/docs/WebOSVSeverityCounts.md @@ -0,0 +1,212 @@ +# WebOSVSeverityCounts + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Critical** | Pointer to **int64** | | [optional] [readonly] +**High** | Pointer to **int64** | | [optional] [readonly] +**Low** | Pointer to **int64** | | [optional] [readonly] +**Malware** | Pointer to **int64** | | [optional] [readonly] +**Medium** | Pointer to **int64** | | [optional] [readonly] +**Total** | Pointer to **int64** | | [optional] [readonly] +**Unknown** | Pointer to **int64** | | [optional] [readonly] + +## Methods + +### NewWebOSVSeverityCounts + +`func NewWebOSVSeverityCounts() *WebOSVSeverityCounts` + +NewWebOSVSeverityCounts instantiates a new WebOSVSeverityCounts object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewWebOSVSeverityCountsWithDefaults + +`func NewWebOSVSeverityCountsWithDefaults() *WebOSVSeverityCounts` + +NewWebOSVSeverityCountsWithDefaults instantiates a new WebOSVSeverityCounts object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetCritical + +`func (o *WebOSVSeverityCounts) GetCritical() int64` + +GetCritical returns the Critical field if non-nil, zero value otherwise. + +### GetCriticalOk + +`func (o *WebOSVSeverityCounts) GetCriticalOk() (*int64, bool)` + +GetCriticalOk returns a tuple with the Critical field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCritical + +`func (o *WebOSVSeverityCounts) SetCritical(v int64)` + +SetCritical sets Critical field to given value. + +### HasCritical + +`func (o *WebOSVSeverityCounts) HasCritical() bool` + +HasCritical returns a boolean if a field has been set. + +### GetHigh + +`func (o *WebOSVSeverityCounts) GetHigh() int64` + +GetHigh returns the High field if non-nil, zero value otherwise. + +### GetHighOk + +`func (o *WebOSVSeverityCounts) GetHighOk() (*int64, bool)` + +GetHighOk returns a tuple with the High field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetHigh + +`func (o *WebOSVSeverityCounts) SetHigh(v int64)` + +SetHigh sets High field to given value. + +### HasHigh + +`func (o *WebOSVSeverityCounts) HasHigh() bool` + +HasHigh returns a boolean if a field has been set. + +### GetLow + +`func (o *WebOSVSeverityCounts) GetLow() int64` + +GetLow returns the Low field if non-nil, zero value otherwise. + +### GetLowOk + +`func (o *WebOSVSeverityCounts) GetLowOk() (*int64, bool)` + +GetLowOk returns a tuple with the Low field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLow + +`func (o *WebOSVSeverityCounts) SetLow(v int64)` + +SetLow sets Low field to given value. + +### HasLow + +`func (o *WebOSVSeverityCounts) HasLow() bool` + +HasLow returns a boolean if a field has been set. + +### GetMalware + +`func (o *WebOSVSeverityCounts) GetMalware() int64` + +GetMalware returns the Malware field if non-nil, zero value otherwise. + +### GetMalwareOk + +`func (o *WebOSVSeverityCounts) GetMalwareOk() (*int64, bool)` + +GetMalwareOk returns a tuple with the Malware field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMalware + +`func (o *WebOSVSeverityCounts) SetMalware(v int64)` + +SetMalware sets Malware field to given value. + +### HasMalware + +`func (o *WebOSVSeverityCounts) HasMalware() bool` + +HasMalware returns a boolean if a field has been set. + +### GetMedium + +`func (o *WebOSVSeverityCounts) GetMedium() int64` + +GetMedium returns the Medium field if non-nil, zero value otherwise. + +### GetMediumOk + +`func (o *WebOSVSeverityCounts) GetMediumOk() (*int64, bool)` + +GetMediumOk returns a tuple with the Medium field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMedium + +`func (o *WebOSVSeverityCounts) SetMedium(v int64)` + +SetMedium sets Medium field to given value. + +### HasMedium + +`func (o *WebOSVSeverityCounts) HasMedium() bool` + +HasMedium returns a boolean if a field has been set. + +### GetTotal + +`func (o *WebOSVSeverityCounts) GetTotal() int64` + +GetTotal returns the Total field if non-nil, zero value otherwise. + +### GetTotalOk + +`func (o *WebOSVSeverityCounts) GetTotalOk() (*int64, bool)` + +GetTotalOk returns a tuple with the Total field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTotal + +`func (o *WebOSVSeverityCounts) SetTotal(v int64)` + +SetTotal sets Total field to given value. + +### HasTotal + +`func (o *WebOSVSeverityCounts) HasTotal() bool` + +HasTotal returns a boolean if a field has been set. + +### GetUnknown + +`func (o *WebOSVSeverityCounts) GetUnknown() int64` + +GetUnknown returns the Unknown field if non-nil, zero value otherwise. + +### GetUnknownOk + +`func (o *WebOSVSeverityCounts) GetUnknownOk() (*int64, bool)` + +GetUnknownOk returns a tuple with the Unknown field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUnknown + +`func (o *WebOSVSeverityCounts) SetUnknown(v int64)` + +SetUnknown sets Unknown field to given value. + +### HasUnknown + +`func (o *WebOSVSeverityCounts) HasUnknown() bool` + +HasUnknown returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/model_allocated_limit.go b/model_allocated_limit.go index 5219ebd2..c360596a 100644 --- a/model_allocated_limit.go +++ b/model_allocated_limit.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1288.1 +API version: 1.1341.7 Contact: support@cloudsmith.io */ diff --git a/model_allocated_limit_raw.go b/model_allocated_limit_raw.go index 76bb176f..2f888abf 100644 --- a/model_allocated_limit_raw.go +++ b/model_allocated_limit_raw.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1288.1 +API version: 1.1341.7 Contact: support@cloudsmith.io */ diff --git a/model_alpine_package_upload.go b/model_alpine_package_upload.go index 76027b47..7cd1d8b1 100644 --- a/model_alpine_package_upload.go +++ b/model_alpine_package_upload.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1288.1 +API version: 1.1341.7 Contact: support@cloudsmith.io */ @@ -49,23 +49,25 @@ type AlpinePackageUpload struct { // Unique and permanent identifier for the package. IdentifierPerm *string `json:"identifier_perm,omitempty"` // Return a map of identifier field names and their values. - Identifiers *map[string]string `json:"identifiers,omitempty"` - Indexed *bool `json:"indexed,omitempty"` - IsCancellable *bool `json:"is_cancellable,omitempty"` - IsCopyable *bool `json:"is_copyable,omitempty"` - IsDeleteable *bool `json:"is_deleteable,omitempty"` - IsDownloadable *bool `json:"is_downloadable,omitempty"` - IsHidden *bool `json:"is_hidden,omitempty"` - IsMoveable *bool `json:"is_moveable,omitempty"` - IsQuarantinable *bool `json:"is_quarantinable,omitempty"` - IsQuarantined *bool `json:"is_quarantined,omitempty"` - IsResyncable *bool `json:"is_resyncable,omitempty"` - IsSecurityScannable *bool `json:"is_security_scannable,omitempty"` - IsSyncAwaiting *bool `json:"is_sync_awaiting,omitempty"` - IsSyncCompleted *bool `json:"is_sync_completed,omitempty"` - IsSyncFailed *bool `json:"is_sync_failed,omitempty"` - IsSyncInFlight *bool `json:"is_sync_in_flight,omitempty"` - IsSyncInProgress *bool `json:"is_sync_in_progress,omitempty"` + Identifiers *map[string]string `json:"identifiers,omitempty"` + Indexed *bool `json:"indexed,omitempty"` + IsCancellable *bool `json:"is_cancellable,omitempty"` + IsCopyable *bool `json:"is_copyable,omitempty"` + IsDeleteable *bool `json:"is_deleteable,omitempty"` + IsDownloadable *bool `json:"is_downloadable,omitempty"` + IsHidden *bool `json:"is_hidden,omitempty"` + // Whether the package has been detected as containing malware. Requires Ultra plan. + IsMalwareDetected *bool `json:"is_malware_detected,omitempty"` + IsMoveable *bool `json:"is_moveable,omitempty"` + IsQuarantinable *bool `json:"is_quarantinable,omitempty"` + IsQuarantined *bool `json:"is_quarantined,omitempty"` + IsResyncable *bool `json:"is_resyncable,omitempty"` + IsSecurityScannable *bool `json:"is_security_scannable,omitempty"` + IsSyncAwaiting *bool `json:"is_sync_awaiting,omitempty"` + IsSyncCompleted *bool `json:"is_sync_completed,omitempty"` + IsSyncFailed *bool `json:"is_sync_failed,omitempty"` + IsSyncInFlight *bool `json:"is_sync_in_flight,omitempty"` + IsSyncInProgress *bool `json:"is_sync_in_progress,omitempty"` // The license of this package. License NullableString `json:"license,omitempty"` // The name of this package. @@ -135,9 +137,10 @@ type AlpinePackageUpload struct { Uploader *string `json:"uploader,omitempty"` UploaderUrl *string `json:"uploader_url,omitempty"` // The raw version for this package. - Version NullableString `json:"version,omitempty"` - VersionOrig *string `json:"version_orig,omitempty"` - VulnerabilityScanResultsUrl *string `json:"vulnerability_scan_results_url,omitempty"` + Version NullableString `json:"version,omitempty"` + VersionOrig *string `json:"version_orig,omitempty"` + VulnerabilityCounts NullableWebOSVSeverityCounts `json:"vulnerability_counts,omitempty"` + VulnerabilityScanResultsUrl *string `json:"vulnerability_scan_results_url,omitempty"` AdditionalProperties map[string]interface{} } @@ -1154,6 +1157,38 @@ func (o *AlpinePackageUpload) SetIsHidden(v bool) { o.IsHidden = &v } +// GetIsMalwareDetected returns the IsMalwareDetected field value if set, zero value otherwise. +func (o *AlpinePackageUpload) GetIsMalwareDetected() bool { + if o == nil || IsNil(o.IsMalwareDetected) { + var ret bool + return ret + } + return *o.IsMalwareDetected +} + +// GetIsMalwareDetectedOk returns a tuple with the IsMalwareDetected field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AlpinePackageUpload) GetIsMalwareDetectedOk() (*bool, bool) { + if o == nil || IsNil(o.IsMalwareDetected) { + return nil, false + } + return o.IsMalwareDetected, true +} + +// HasIsMalwareDetected returns a boolean if a field has been set. +func (o *AlpinePackageUpload) HasIsMalwareDetected() bool { + if o != nil && !IsNil(o.IsMalwareDetected) { + return true + } + + return false +} + +// SetIsMalwareDetected gets a reference to the given bool and assigns it to the IsMalwareDetected field. +func (o *AlpinePackageUpload) SetIsMalwareDetected(v bool) { + o.IsMalwareDetected = &v +} + // GetIsMoveable returns the IsMoveable field value if set, zero value otherwise. func (o *AlpinePackageUpload) GetIsMoveable() bool { if o == nil || IsNil(o.IsMoveable) { @@ -3100,6 +3135,49 @@ func (o *AlpinePackageUpload) SetVersionOrig(v string) { o.VersionOrig = &v } +// GetVulnerabilityCounts returns the VulnerabilityCounts field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *AlpinePackageUpload) GetVulnerabilityCounts() WebOSVSeverityCounts { + if o == nil || IsNil(o.VulnerabilityCounts.Get()) { + var ret WebOSVSeverityCounts + return ret + } + return *o.VulnerabilityCounts.Get() +} + +// GetVulnerabilityCountsOk returns a tuple with the VulnerabilityCounts 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 *AlpinePackageUpload) GetVulnerabilityCountsOk() (*WebOSVSeverityCounts, bool) { + if o == nil { + return nil, false + } + return o.VulnerabilityCounts.Get(), o.VulnerabilityCounts.IsSet() +} + +// HasVulnerabilityCounts returns a boolean if a field has been set. +func (o *AlpinePackageUpload) HasVulnerabilityCounts() bool { + if o != nil && o.VulnerabilityCounts.IsSet() { + return true + } + + return false +} + +// SetVulnerabilityCounts gets a reference to the given NullableWebOSVSeverityCounts and assigns it to the VulnerabilityCounts field. +func (o *AlpinePackageUpload) SetVulnerabilityCounts(v WebOSVSeverityCounts) { + o.VulnerabilityCounts.Set(&v) +} + +// SetVulnerabilityCountsNil sets the value for VulnerabilityCounts to be an explicit nil +func (o *AlpinePackageUpload) SetVulnerabilityCountsNil() { + o.VulnerabilityCounts.Set(nil) +} + +// UnsetVulnerabilityCounts ensures that no value is present for VulnerabilityCounts, not even an explicit nil +func (o *AlpinePackageUpload) UnsetVulnerabilityCounts() { + o.VulnerabilityCounts.Unset() +} + // GetVulnerabilityScanResultsUrl returns the VulnerabilityScanResultsUrl field value if set, zero value otherwise. func (o *AlpinePackageUpload) GetVulnerabilityScanResultsUrl() string { if o == nil || IsNil(o.VulnerabilityScanResultsUrl) { @@ -3229,6 +3307,9 @@ func (o AlpinePackageUpload) ToMap() (map[string]interface{}, error) { if !IsNil(o.IsHidden) { toSerialize["is_hidden"] = o.IsHidden } + if !IsNil(o.IsMalwareDetected) { + toSerialize["is_malware_detected"] = o.IsMalwareDetected + } if !IsNil(o.IsMoveable) { toSerialize["is_moveable"] = o.IsMoveable } @@ -3397,6 +3478,9 @@ func (o AlpinePackageUpload) ToMap() (map[string]interface{}, error) { if !IsNil(o.VersionOrig) { toSerialize["version_orig"] = o.VersionOrig } + if o.VulnerabilityCounts.IsSet() { + toSerialize["vulnerability_counts"] = o.VulnerabilityCounts.Get() + } if !IsNil(o.VulnerabilityScanResultsUrl) { toSerialize["vulnerability_scan_results_url"] = o.VulnerabilityScanResultsUrl } @@ -3451,6 +3535,7 @@ func (o *AlpinePackageUpload) UnmarshalJSON(data []byte) (err error) { delete(additionalProperties, "is_deleteable") delete(additionalProperties, "is_downloadable") delete(additionalProperties, "is_hidden") + delete(additionalProperties, "is_malware_detected") delete(additionalProperties, "is_moveable") delete(additionalProperties, "is_quarantinable") delete(additionalProperties, "is_quarantined") @@ -3507,6 +3592,7 @@ func (o *AlpinePackageUpload) UnmarshalJSON(data []byte) (err error) { delete(additionalProperties, "uploader_url") delete(additionalProperties, "version") delete(additionalProperties, "version_orig") + delete(additionalProperties, "vulnerability_counts") delete(additionalProperties, "vulnerability_scan_results_url") o.AdditionalProperties = additionalProperties } diff --git a/model_alpine_package_upload_request.go b/model_alpine_package_upload_request.go index 0ca77669..84fc6243 100644 --- a/model_alpine_package_upload_request.go +++ b/model_alpine_package_upload_request.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1288.1 +API version: 1.1341.7 Contact: support@cloudsmith.io */ @@ -23,12 +23,15 @@ var _ MappedNullable = &AlpinePackageUploadRequest{} type AlpinePackageUploadRequest struct { // The distribution to store the package for. Distribution string `json:"distribution"` + // Whether the package has been detected as containing malware. Requires Ultra plan. + IsMalwareDetected *bool `json:"is_malware_detected,omitempty"` // The primary file for the package. PackageFile string `json:"package_file"` // If true, the uploaded package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate. Republish *bool `json:"republish,omitempty"` // A comma-separated values list of tags to add to the package. - Tags NullableString `json:"tags,omitempty"` + Tags NullableString `json:"tags,omitempty"` + VulnerabilityCounts NullableWebOSVSeverityCounts `json:"vulnerability_counts,omitempty"` AdditionalProperties map[string]interface{} } @@ -77,6 +80,38 @@ func (o *AlpinePackageUploadRequest) SetDistribution(v string) { o.Distribution = v } +// GetIsMalwareDetected returns the IsMalwareDetected field value if set, zero value otherwise. +func (o *AlpinePackageUploadRequest) GetIsMalwareDetected() bool { + if o == nil || IsNil(o.IsMalwareDetected) { + var ret bool + return ret + } + return *o.IsMalwareDetected +} + +// GetIsMalwareDetectedOk returns a tuple with the IsMalwareDetected field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AlpinePackageUploadRequest) GetIsMalwareDetectedOk() (*bool, bool) { + if o == nil || IsNil(o.IsMalwareDetected) { + return nil, false + } + return o.IsMalwareDetected, true +} + +// HasIsMalwareDetected returns a boolean if a field has been set. +func (o *AlpinePackageUploadRequest) HasIsMalwareDetected() bool { + if o != nil && !IsNil(o.IsMalwareDetected) { + return true + } + + return false +} + +// SetIsMalwareDetected gets a reference to the given bool and assigns it to the IsMalwareDetected field. +func (o *AlpinePackageUploadRequest) SetIsMalwareDetected(v bool) { + o.IsMalwareDetected = &v +} + // GetPackageFile returns the PackageFile field value func (o *AlpinePackageUploadRequest) GetPackageFile() string { if o == nil { @@ -176,6 +211,49 @@ func (o *AlpinePackageUploadRequest) UnsetTags() { o.Tags.Unset() } +// GetVulnerabilityCounts returns the VulnerabilityCounts field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *AlpinePackageUploadRequest) GetVulnerabilityCounts() WebOSVSeverityCounts { + if o == nil || IsNil(o.VulnerabilityCounts.Get()) { + var ret WebOSVSeverityCounts + return ret + } + return *o.VulnerabilityCounts.Get() +} + +// GetVulnerabilityCountsOk returns a tuple with the VulnerabilityCounts 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 *AlpinePackageUploadRequest) GetVulnerabilityCountsOk() (*WebOSVSeverityCounts, bool) { + if o == nil { + return nil, false + } + return o.VulnerabilityCounts.Get(), o.VulnerabilityCounts.IsSet() +} + +// HasVulnerabilityCounts returns a boolean if a field has been set. +func (o *AlpinePackageUploadRequest) HasVulnerabilityCounts() bool { + if o != nil && o.VulnerabilityCounts.IsSet() { + return true + } + + return false +} + +// SetVulnerabilityCounts gets a reference to the given NullableWebOSVSeverityCounts and assigns it to the VulnerabilityCounts field. +func (o *AlpinePackageUploadRequest) SetVulnerabilityCounts(v WebOSVSeverityCounts) { + o.VulnerabilityCounts.Set(&v) +} + +// SetVulnerabilityCountsNil sets the value for VulnerabilityCounts to be an explicit nil +func (o *AlpinePackageUploadRequest) SetVulnerabilityCountsNil() { + o.VulnerabilityCounts.Set(nil) +} + +// UnsetVulnerabilityCounts ensures that no value is present for VulnerabilityCounts, not even an explicit nil +func (o *AlpinePackageUploadRequest) UnsetVulnerabilityCounts() { + o.VulnerabilityCounts.Unset() +} + func (o AlpinePackageUploadRequest) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { @@ -187,6 +265,9 @@ func (o AlpinePackageUploadRequest) MarshalJSON() ([]byte, error) { func (o AlpinePackageUploadRequest) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["distribution"] = o.Distribution + if !IsNil(o.IsMalwareDetected) { + toSerialize["is_malware_detected"] = o.IsMalwareDetected + } toSerialize["package_file"] = o.PackageFile if !IsNil(o.Republish) { toSerialize["republish"] = o.Republish @@ -194,6 +275,9 @@ func (o AlpinePackageUploadRequest) ToMap() (map[string]interface{}, error) { if o.Tags.IsSet() { toSerialize["tags"] = o.Tags.Get() } + if o.VulnerabilityCounts.IsSet() { + toSerialize["vulnerability_counts"] = o.VulnerabilityCounts.Get() + } for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -239,9 +323,11 @@ func (o *AlpinePackageUploadRequest) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "distribution") + delete(additionalProperties, "is_malware_detected") delete(additionalProperties, "package_file") delete(additionalProperties, "republish") delete(additionalProperties, "tags") + delete(additionalProperties, "vulnerability_counts") o.AdditionalProperties = additionalProperties } diff --git a/model_alpine_upstream.go b/model_alpine_upstream.go index 93bb9e57..4b654303 100644 --- a/model_alpine_upstream.go +++ b/model_alpine_upstream.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1288.1 +API version: 1.1341.7 Contact: support@cloudsmith.io */ diff --git a/model_alpine_upstream_request.go b/model_alpine_upstream_request.go index b5c0adaf..3e9f2081 100644 --- a/model_alpine_upstream_request.go +++ b/model_alpine_upstream_request.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1288.1 +API version: 1.1341.7 Contact: support@cloudsmith.io */ diff --git a/model_alpine_upstream_request_patch.go b/model_alpine_upstream_request_patch.go index 9f9007c9..d229e792 100644 --- a/model_alpine_upstream_request_patch.go +++ b/model_alpine_upstream_request_patch.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1288.1 +API version: 1.1341.7 Contact: support@cloudsmith.io */ diff --git a/model_architecture.go b/model_architecture.go index f3efd71b..1096f793 100644 --- a/model_architecture.go +++ b/model_architecture.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1288.1 +API version: 1.1341.7 Contact: support@cloudsmith.io */ diff --git a/model_broadcast_token.go b/model_broadcast_token.go index bf25b259..bd3903ed 100644 --- a/model_broadcast_token.go +++ b/model_broadcast_token.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1288.1 +API version: 1.1341.7 Contact: support@cloudsmith.io */ diff --git a/model_broadcast_token_input.go b/model_broadcast_token_input.go index 0ef9c778..ffd1747d 100644 --- a/model_broadcast_token_input.go +++ b/model_broadcast_token_input.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1288.1 +API version: 1.1341.7 Contact: support@cloudsmith.io */ diff --git a/model_cargo_package_upload.go b/model_cargo_package_upload.go index d00defab..8d85ee7f 100644 --- a/model_cargo_package_upload.go +++ b/model_cargo_package_upload.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1288.1 +API version: 1.1341.7 Contact: support@cloudsmith.io */ @@ -49,23 +49,25 @@ type CargoPackageUpload struct { // Unique and permanent identifier for the package. IdentifierPerm *string `json:"identifier_perm,omitempty"` // Return a map of identifier field names and their values. - Identifiers *map[string]string `json:"identifiers,omitempty"` - Indexed *bool `json:"indexed,omitempty"` - IsCancellable *bool `json:"is_cancellable,omitempty"` - IsCopyable *bool `json:"is_copyable,omitempty"` - IsDeleteable *bool `json:"is_deleteable,omitempty"` - IsDownloadable *bool `json:"is_downloadable,omitempty"` - IsHidden *bool `json:"is_hidden,omitempty"` - IsMoveable *bool `json:"is_moveable,omitempty"` - IsQuarantinable *bool `json:"is_quarantinable,omitempty"` - IsQuarantined *bool `json:"is_quarantined,omitempty"` - IsResyncable *bool `json:"is_resyncable,omitempty"` - IsSecurityScannable *bool `json:"is_security_scannable,omitempty"` - IsSyncAwaiting *bool `json:"is_sync_awaiting,omitempty"` - IsSyncCompleted *bool `json:"is_sync_completed,omitempty"` - IsSyncFailed *bool `json:"is_sync_failed,omitempty"` - IsSyncInFlight *bool `json:"is_sync_in_flight,omitempty"` - IsSyncInProgress *bool `json:"is_sync_in_progress,omitempty"` + Identifiers *map[string]string `json:"identifiers,omitempty"` + Indexed *bool `json:"indexed,omitempty"` + IsCancellable *bool `json:"is_cancellable,omitempty"` + IsCopyable *bool `json:"is_copyable,omitempty"` + IsDeleteable *bool `json:"is_deleteable,omitempty"` + IsDownloadable *bool `json:"is_downloadable,omitempty"` + IsHidden *bool `json:"is_hidden,omitempty"` + // Whether the package has been detected as containing malware. Requires Ultra plan. + IsMalwareDetected *bool `json:"is_malware_detected,omitempty"` + IsMoveable *bool `json:"is_moveable,omitempty"` + IsQuarantinable *bool `json:"is_quarantinable,omitempty"` + IsQuarantined *bool `json:"is_quarantined,omitempty"` + IsResyncable *bool `json:"is_resyncable,omitempty"` + IsSecurityScannable *bool `json:"is_security_scannable,omitempty"` + IsSyncAwaiting *bool `json:"is_sync_awaiting,omitempty"` + IsSyncCompleted *bool `json:"is_sync_completed,omitempty"` + IsSyncFailed *bool `json:"is_sync_failed,omitempty"` + IsSyncInFlight *bool `json:"is_sync_in_flight,omitempty"` + IsSyncInProgress *bool `json:"is_sync_in_progress,omitempty"` // The license of this package. License NullableString `json:"license,omitempty"` // The name of this package. @@ -135,9 +137,10 @@ type CargoPackageUpload struct { Uploader *string `json:"uploader,omitempty"` UploaderUrl *string `json:"uploader_url,omitempty"` // The raw version for this package. - Version NullableString `json:"version,omitempty"` - VersionOrig *string `json:"version_orig,omitempty"` - VulnerabilityScanResultsUrl *string `json:"vulnerability_scan_results_url,omitempty"` + Version NullableString `json:"version,omitempty"` + VersionOrig *string `json:"version_orig,omitempty"` + VulnerabilityCounts NullableWebOSVSeverityCounts `json:"vulnerability_counts,omitempty"` + VulnerabilityScanResultsUrl *string `json:"vulnerability_scan_results_url,omitempty"` AdditionalProperties map[string]interface{} } @@ -1154,6 +1157,38 @@ func (o *CargoPackageUpload) SetIsHidden(v bool) { o.IsHidden = &v } +// GetIsMalwareDetected returns the IsMalwareDetected field value if set, zero value otherwise. +func (o *CargoPackageUpload) GetIsMalwareDetected() bool { + if o == nil || IsNil(o.IsMalwareDetected) { + var ret bool + return ret + } + return *o.IsMalwareDetected +} + +// GetIsMalwareDetectedOk returns a tuple with the IsMalwareDetected field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CargoPackageUpload) GetIsMalwareDetectedOk() (*bool, bool) { + if o == nil || IsNil(o.IsMalwareDetected) { + return nil, false + } + return o.IsMalwareDetected, true +} + +// HasIsMalwareDetected returns a boolean if a field has been set. +func (o *CargoPackageUpload) HasIsMalwareDetected() bool { + if o != nil && !IsNil(o.IsMalwareDetected) { + return true + } + + return false +} + +// SetIsMalwareDetected gets a reference to the given bool and assigns it to the IsMalwareDetected field. +func (o *CargoPackageUpload) SetIsMalwareDetected(v bool) { + o.IsMalwareDetected = &v +} + // GetIsMoveable returns the IsMoveable field value if set, zero value otherwise. func (o *CargoPackageUpload) GetIsMoveable() bool { if o == nil || IsNil(o.IsMoveable) { @@ -3100,6 +3135,49 @@ func (o *CargoPackageUpload) SetVersionOrig(v string) { o.VersionOrig = &v } +// GetVulnerabilityCounts returns the VulnerabilityCounts field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CargoPackageUpload) GetVulnerabilityCounts() WebOSVSeverityCounts { + if o == nil || IsNil(o.VulnerabilityCounts.Get()) { + var ret WebOSVSeverityCounts + return ret + } + return *o.VulnerabilityCounts.Get() +} + +// GetVulnerabilityCountsOk returns a tuple with the VulnerabilityCounts 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 *CargoPackageUpload) GetVulnerabilityCountsOk() (*WebOSVSeverityCounts, bool) { + if o == nil { + return nil, false + } + return o.VulnerabilityCounts.Get(), o.VulnerabilityCounts.IsSet() +} + +// HasVulnerabilityCounts returns a boolean if a field has been set. +func (o *CargoPackageUpload) HasVulnerabilityCounts() bool { + if o != nil && o.VulnerabilityCounts.IsSet() { + return true + } + + return false +} + +// SetVulnerabilityCounts gets a reference to the given NullableWebOSVSeverityCounts and assigns it to the VulnerabilityCounts field. +func (o *CargoPackageUpload) SetVulnerabilityCounts(v WebOSVSeverityCounts) { + o.VulnerabilityCounts.Set(&v) +} + +// SetVulnerabilityCountsNil sets the value for VulnerabilityCounts to be an explicit nil +func (o *CargoPackageUpload) SetVulnerabilityCountsNil() { + o.VulnerabilityCounts.Set(nil) +} + +// UnsetVulnerabilityCounts ensures that no value is present for VulnerabilityCounts, not even an explicit nil +func (o *CargoPackageUpload) UnsetVulnerabilityCounts() { + o.VulnerabilityCounts.Unset() +} + // GetVulnerabilityScanResultsUrl returns the VulnerabilityScanResultsUrl field value if set, zero value otherwise. func (o *CargoPackageUpload) GetVulnerabilityScanResultsUrl() string { if o == nil || IsNil(o.VulnerabilityScanResultsUrl) { @@ -3229,6 +3307,9 @@ func (o CargoPackageUpload) ToMap() (map[string]interface{}, error) { if !IsNil(o.IsHidden) { toSerialize["is_hidden"] = o.IsHidden } + if !IsNil(o.IsMalwareDetected) { + toSerialize["is_malware_detected"] = o.IsMalwareDetected + } if !IsNil(o.IsMoveable) { toSerialize["is_moveable"] = o.IsMoveable } @@ -3397,6 +3478,9 @@ func (o CargoPackageUpload) ToMap() (map[string]interface{}, error) { if !IsNil(o.VersionOrig) { toSerialize["version_orig"] = o.VersionOrig } + if o.VulnerabilityCounts.IsSet() { + toSerialize["vulnerability_counts"] = o.VulnerabilityCounts.Get() + } if !IsNil(o.VulnerabilityScanResultsUrl) { toSerialize["vulnerability_scan_results_url"] = o.VulnerabilityScanResultsUrl } @@ -3451,6 +3535,7 @@ func (o *CargoPackageUpload) UnmarshalJSON(data []byte) (err error) { delete(additionalProperties, "is_deleteable") delete(additionalProperties, "is_downloadable") delete(additionalProperties, "is_hidden") + delete(additionalProperties, "is_malware_detected") delete(additionalProperties, "is_moveable") delete(additionalProperties, "is_quarantinable") delete(additionalProperties, "is_quarantined") @@ -3507,6 +3592,7 @@ func (o *CargoPackageUpload) UnmarshalJSON(data []byte) (err error) { delete(additionalProperties, "uploader_url") delete(additionalProperties, "version") delete(additionalProperties, "version_orig") + delete(additionalProperties, "vulnerability_counts") delete(additionalProperties, "vulnerability_scan_results_url") o.AdditionalProperties = additionalProperties } diff --git a/model_cargo_package_upload_request.go b/model_cargo_package_upload_request.go index d3283307..083d8a9c 100644 --- a/model_cargo_package_upload_request.go +++ b/model_cargo_package_upload_request.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1288.1 +API version: 1.1341.7 Contact: support@cloudsmith.io */ @@ -21,12 +21,15 @@ var _ MappedNullable = &CargoPackageUploadRequest{} // CargoPackageUploadRequest struct for CargoPackageUploadRequest type CargoPackageUploadRequest struct { + // Whether the package has been detected as containing malware. Requires Ultra plan. + IsMalwareDetected *bool `json:"is_malware_detected,omitempty"` // The primary file for the package. PackageFile string `json:"package_file"` // If true, the uploaded package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate. Republish *bool `json:"republish,omitempty"` // A comma-separated values list of tags to add to the package. - Tags NullableString `json:"tags,omitempty"` + Tags NullableString `json:"tags,omitempty"` + VulnerabilityCounts NullableWebOSVSeverityCounts `json:"vulnerability_counts,omitempty"` AdditionalProperties map[string]interface{} } @@ -50,6 +53,38 @@ func NewCargoPackageUploadRequestWithDefaults() *CargoPackageUploadRequest { return &this } +// GetIsMalwareDetected returns the IsMalwareDetected field value if set, zero value otherwise. +func (o *CargoPackageUploadRequest) GetIsMalwareDetected() bool { + if o == nil || IsNil(o.IsMalwareDetected) { + var ret bool + return ret + } + return *o.IsMalwareDetected +} + +// GetIsMalwareDetectedOk returns a tuple with the IsMalwareDetected field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CargoPackageUploadRequest) GetIsMalwareDetectedOk() (*bool, bool) { + if o == nil || IsNil(o.IsMalwareDetected) { + return nil, false + } + return o.IsMalwareDetected, true +} + +// HasIsMalwareDetected returns a boolean if a field has been set. +func (o *CargoPackageUploadRequest) HasIsMalwareDetected() bool { + if o != nil && !IsNil(o.IsMalwareDetected) { + return true + } + + return false +} + +// SetIsMalwareDetected gets a reference to the given bool and assigns it to the IsMalwareDetected field. +func (o *CargoPackageUploadRequest) SetIsMalwareDetected(v bool) { + o.IsMalwareDetected = &v +} + // GetPackageFile returns the PackageFile field value func (o *CargoPackageUploadRequest) GetPackageFile() string { if o == nil { @@ -149,6 +184,49 @@ func (o *CargoPackageUploadRequest) UnsetTags() { o.Tags.Unset() } +// GetVulnerabilityCounts returns the VulnerabilityCounts field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CargoPackageUploadRequest) GetVulnerabilityCounts() WebOSVSeverityCounts { + if o == nil || IsNil(o.VulnerabilityCounts.Get()) { + var ret WebOSVSeverityCounts + return ret + } + return *o.VulnerabilityCounts.Get() +} + +// GetVulnerabilityCountsOk returns a tuple with the VulnerabilityCounts 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 *CargoPackageUploadRequest) GetVulnerabilityCountsOk() (*WebOSVSeverityCounts, bool) { + if o == nil { + return nil, false + } + return o.VulnerabilityCounts.Get(), o.VulnerabilityCounts.IsSet() +} + +// HasVulnerabilityCounts returns a boolean if a field has been set. +func (o *CargoPackageUploadRequest) HasVulnerabilityCounts() bool { + if o != nil && o.VulnerabilityCounts.IsSet() { + return true + } + + return false +} + +// SetVulnerabilityCounts gets a reference to the given NullableWebOSVSeverityCounts and assigns it to the VulnerabilityCounts field. +func (o *CargoPackageUploadRequest) SetVulnerabilityCounts(v WebOSVSeverityCounts) { + o.VulnerabilityCounts.Set(&v) +} + +// SetVulnerabilityCountsNil sets the value for VulnerabilityCounts to be an explicit nil +func (o *CargoPackageUploadRequest) SetVulnerabilityCountsNil() { + o.VulnerabilityCounts.Set(nil) +} + +// UnsetVulnerabilityCounts ensures that no value is present for VulnerabilityCounts, not even an explicit nil +func (o *CargoPackageUploadRequest) UnsetVulnerabilityCounts() { + o.VulnerabilityCounts.Unset() +} + func (o CargoPackageUploadRequest) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { @@ -159,6 +237,9 @@ func (o CargoPackageUploadRequest) MarshalJSON() ([]byte, error) { func (o CargoPackageUploadRequest) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} + if !IsNil(o.IsMalwareDetected) { + toSerialize["is_malware_detected"] = o.IsMalwareDetected + } toSerialize["package_file"] = o.PackageFile if !IsNil(o.Republish) { toSerialize["republish"] = o.Republish @@ -166,6 +247,9 @@ func (o CargoPackageUploadRequest) ToMap() (map[string]interface{}, error) { if o.Tags.IsSet() { toSerialize["tags"] = o.Tags.Get() } + if o.VulnerabilityCounts.IsSet() { + toSerialize["vulnerability_counts"] = o.VulnerabilityCounts.Get() + } for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -209,9 +293,11 @@ func (o *CargoPackageUploadRequest) UnmarshalJSON(data []byte) (err error) { additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "is_malware_detected") delete(additionalProperties, "package_file") delete(additionalProperties, "republish") delete(additionalProperties, "tags") + delete(additionalProperties, "vulnerability_counts") o.AdditionalProperties = additionalProperties } diff --git a/model_cargo_upstream.go b/model_cargo_upstream.go index caa91400..c3328383 100644 --- a/model_cargo_upstream.go +++ b/model_cargo_upstream.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1288.1 +API version: 1.1341.7 Contact: support@cloudsmith.io */ diff --git a/model_cargo_upstream_request.go b/model_cargo_upstream_request.go index c498396f..399e99ae 100644 --- a/model_cargo_upstream_request.go +++ b/model_cargo_upstream_request.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1288.1 +API version: 1.1341.7 Contact: support@cloudsmith.io */ diff --git a/model_cargo_upstream_request_patch.go b/model_cargo_upstream_request_patch.go index 4f173508..9e06f329 100644 --- a/model_cargo_upstream_request_patch.go +++ b/model_cargo_upstream_request_patch.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1288.1 +API version: 1.1341.7 Contact: support@cloudsmith.io */ diff --git a/model_cocoapods_package_upload.go b/model_cocoapods_package_upload.go index 3e696661..42781931 100644 --- a/model_cocoapods_package_upload.go +++ b/model_cocoapods_package_upload.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1288.1 +API version: 1.1341.7 Contact: support@cloudsmith.io */ @@ -49,23 +49,25 @@ type CocoapodsPackageUpload struct { // Unique and permanent identifier for the package. IdentifierPerm *string `json:"identifier_perm,omitempty"` // Return a map of identifier field names and their values. - Identifiers *map[string]string `json:"identifiers,omitempty"` - Indexed *bool `json:"indexed,omitempty"` - IsCancellable *bool `json:"is_cancellable,omitempty"` - IsCopyable *bool `json:"is_copyable,omitempty"` - IsDeleteable *bool `json:"is_deleteable,omitempty"` - IsDownloadable *bool `json:"is_downloadable,omitempty"` - IsHidden *bool `json:"is_hidden,omitempty"` - IsMoveable *bool `json:"is_moveable,omitempty"` - IsQuarantinable *bool `json:"is_quarantinable,omitempty"` - IsQuarantined *bool `json:"is_quarantined,omitempty"` - IsResyncable *bool `json:"is_resyncable,omitempty"` - IsSecurityScannable *bool `json:"is_security_scannable,omitempty"` - IsSyncAwaiting *bool `json:"is_sync_awaiting,omitempty"` - IsSyncCompleted *bool `json:"is_sync_completed,omitempty"` - IsSyncFailed *bool `json:"is_sync_failed,omitempty"` - IsSyncInFlight *bool `json:"is_sync_in_flight,omitempty"` - IsSyncInProgress *bool `json:"is_sync_in_progress,omitempty"` + Identifiers *map[string]string `json:"identifiers,omitempty"` + Indexed *bool `json:"indexed,omitempty"` + IsCancellable *bool `json:"is_cancellable,omitempty"` + IsCopyable *bool `json:"is_copyable,omitempty"` + IsDeleteable *bool `json:"is_deleteable,omitempty"` + IsDownloadable *bool `json:"is_downloadable,omitempty"` + IsHidden *bool `json:"is_hidden,omitempty"` + // Whether the package has been detected as containing malware. Requires Ultra plan. + IsMalwareDetected *bool `json:"is_malware_detected,omitempty"` + IsMoveable *bool `json:"is_moveable,omitempty"` + IsQuarantinable *bool `json:"is_quarantinable,omitempty"` + IsQuarantined *bool `json:"is_quarantined,omitempty"` + IsResyncable *bool `json:"is_resyncable,omitempty"` + IsSecurityScannable *bool `json:"is_security_scannable,omitempty"` + IsSyncAwaiting *bool `json:"is_sync_awaiting,omitempty"` + IsSyncCompleted *bool `json:"is_sync_completed,omitempty"` + IsSyncFailed *bool `json:"is_sync_failed,omitempty"` + IsSyncInFlight *bool `json:"is_sync_in_flight,omitempty"` + IsSyncInProgress *bool `json:"is_sync_in_progress,omitempty"` // The license of this package. License NullableString `json:"license,omitempty"` // The name of this package. @@ -135,9 +137,10 @@ type CocoapodsPackageUpload struct { Uploader *string `json:"uploader,omitempty"` UploaderUrl *string `json:"uploader_url,omitempty"` // The raw version for this package. - Version NullableString `json:"version,omitempty"` - VersionOrig *string `json:"version_orig,omitempty"` - VulnerabilityScanResultsUrl *string `json:"vulnerability_scan_results_url,omitempty"` + Version NullableString `json:"version,omitempty"` + VersionOrig *string `json:"version_orig,omitempty"` + VulnerabilityCounts NullableWebOSVSeverityCounts `json:"vulnerability_counts,omitempty"` + VulnerabilityScanResultsUrl *string `json:"vulnerability_scan_results_url,omitempty"` AdditionalProperties map[string]interface{} } @@ -1154,6 +1157,38 @@ func (o *CocoapodsPackageUpload) SetIsHidden(v bool) { o.IsHidden = &v } +// GetIsMalwareDetected returns the IsMalwareDetected field value if set, zero value otherwise. +func (o *CocoapodsPackageUpload) GetIsMalwareDetected() bool { + if o == nil || IsNil(o.IsMalwareDetected) { + var ret bool + return ret + } + return *o.IsMalwareDetected +} + +// GetIsMalwareDetectedOk returns a tuple with the IsMalwareDetected field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CocoapodsPackageUpload) GetIsMalwareDetectedOk() (*bool, bool) { + if o == nil || IsNil(o.IsMalwareDetected) { + return nil, false + } + return o.IsMalwareDetected, true +} + +// HasIsMalwareDetected returns a boolean if a field has been set. +func (o *CocoapodsPackageUpload) HasIsMalwareDetected() bool { + if o != nil && !IsNil(o.IsMalwareDetected) { + return true + } + + return false +} + +// SetIsMalwareDetected gets a reference to the given bool and assigns it to the IsMalwareDetected field. +func (o *CocoapodsPackageUpload) SetIsMalwareDetected(v bool) { + o.IsMalwareDetected = &v +} + // GetIsMoveable returns the IsMoveable field value if set, zero value otherwise. func (o *CocoapodsPackageUpload) GetIsMoveable() bool { if o == nil || IsNil(o.IsMoveable) { @@ -3100,6 +3135,49 @@ func (o *CocoapodsPackageUpload) SetVersionOrig(v string) { o.VersionOrig = &v } +// GetVulnerabilityCounts returns the VulnerabilityCounts field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CocoapodsPackageUpload) GetVulnerabilityCounts() WebOSVSeverityCounts { + if o == nil || IsNil(o.VulnerabilityCounts.Get()) { + var ret WebOSVSeverityCounts + return ret + } + return *o.VulnerabilityCounts.Get() +} + +// GetVulnerabilityCountsOk returns a tuple with the VulnerabilityCounts 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 *CocoapodsPackageUpload) GetVulnerabilityCountsOk() (*WebOSVSeverityCounts, bool) { + if o == nil { + return nil, false + } + return o.VulnerabilityCounts.Get(), o.VulnerabilityCounts.IsSet() +} + +// HasVulnerabilityCounts returns a boolean if a field has been set. +func (o *CocoapodsPackageUpload) HasVulnerabilityCounts() bool { + if o != nil && o.VulnerabilityCounts.IsSet() { + return true + } + + return false +} + +// SetVulnerabilityCounts gets a reference to the given NullableWebOSVSeverityCounts and assigns it to the VulnerabilityCounts field. +func (o *CocoapodsPackageUpload) SetVulnerabilityCounts(v WebOSVSeverityCounts) { + o.VulnerabilityCounts.Set(&v) +} + +// SetVulnerabilityCountsNil sets the value for VulnerabilityCounts to be an explicit nil +func (o *CocoapodsPackageUpload) SetVulnerabilityCountsNil() { + o.VulnerabilityCounts.Set(nil) +} + +// UnsetVulnerabilityCounts ensures that no value is present for VulnerabilityCounts, not even an explicit nil +func (o *CocoapodsPackageUpload) UnsetVulnerabilityCounts() { + o.VulnerabilityCounts.Unset() +} + // GetVulnerabilityScanResultsUrl returns the VulnerabilityScanResultsUrl field value if set, zero value otherwise. func (o *CocoapodsPackageUpload) GetVulnerabilityScanResultsUrl() string { if o == nil || IsNil(o.VulnerabilityScanResultsUrl) { @@ -3229,6 +3307,9 @@ func (o CocoapodsPackageUpload) ToMap() (map[string]interface{}, error) { if !IsNil(o.IsHidden) { toSerialize["is_hidden"] = o.IsHidden } + if !IsNil(o.IsMalwareDetected) { + toSerialize["is_malware_detected"] = o.IsMalwareDetected + } if !IsNil(o.IsMoveable) { toSerialize["is_moveable"] = o.IsMoveable } @@ -3397,6 +3478,9 @@ func (o CocoapodsPackageUpload) ToMap() (map[string]interface{}, error) { if !IsNil(o.VersionOrig) { toSerialize["version_orig"] = o.VersionOrig } + if o.VulnerabilityCounts.IsSet() { + toSerialize["vulnerability_counts"] = o.VulnerabilityCounts.Get() + } if !IsNil(o.VulnerabilityScanResultsUrl) { toSerialize["vulnerability_scan_results_url"] = o.VulnerabilityScanResultsUrl } @@ -3451,6 +3535,7 @@ func (o *CocoapodsPackageUpload) UnmarshalJSON(data []byte) (err error) { delete(additionalProperties, "is_deleteable") delete(additionalProperties, "is_downloadable") delete(additionalProperties, "is_hidden") + delete(additionalProperties, "is_malware_detected") delete(additionalProperties, "is_moveable") delete(additionalProperties, "is_quarantinable") delete(additionalProperties, "is_quarantined") @@ -3507,6 +3592,7 @@ func (o *CocoapodsPackageUpload) UnmarshalJSON(data []byte) (err error) { delete(additionalProperties, "uploader_url") delete(additionalProperties, "version") delete(additionalProperties, "version_orig") + delete(additionalProperties, "vulnerability_counts") delete(additionalProperties, "vulnerability_scan_results_url") o.AdditionalProperties = additionalProperties } diff --git a/model_cocoapods_package_upload_request.go b/model_cocoapods_package_upload_request.go index adae0be5..23b2e4a2 100644 --- a/model_cocoapods_package_upload_request.go +++ b/model_cocoapods_package_upload_request.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1288.1 +API version: 1.1341.7 Contact: support@cloudsmith.io */ @@ -21,12 +21,15 @@ var _ MappedNullable = &CocoapodsPackageUploadRequest{} // CocoapodsPackageUploadRequest struct for CocoapodsPackageUploadRequest type CocoapodsPackageUploadRequest struct { + // Whether the package has been detected as containing malware. Requires Ultra plan. + IsMalwareDetected *bool `json:"is_malware_detected,omitempty"` // The primary file for the package. PackageFile string `json:"package_file"` // If true, the uploaded package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate. Republish *bool `json:"republish,omitempty"` // A comma-separated values list of tags to add to the package. - Tags NullableString `json:"tags,omitempty"` + Tags NullableString `json:"tags,omitempty"` + VulnerabilityCounts NullableWebOSVSeverityCounts `json:"vulnerability_counts,omitempty"` AdditionalProperties map[string]interface{} } @@ -50,6 +53,38 @@ func NewCocoapodsPackageUploadRequestWithDefaults() *CocoapodsPackageUploadReque return &this } +// GetIsMalwareDetected returns the IsMalwareDetected field value if set, zero value otherwise. +func (o *CocoapodsPackageUploadRequest) GetIsMalwareDetected() bool { + if o == nil || IsNil(o.IsMalwareDetected) { + var ret bool + return ret + } + return *o.IsMalwareDetected +} + +// GetIsMalwareDetectedOk returns a tuple with the IsMalwareDetected field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CocoapodsPackageUploadRequest) GetIsMalwareDetectedOk() (*bool, bool) { + if o == nil || IsNil(o.IsMalwareDetected) { + return nil, false + } + return o.IsMalwareDetected, true +} + +// HasIsMalwareDetected returns a boolean if a field has been set. +func (o *CocoapodsPackageUploadRequest) HasIsMalwareDetected() bool { + if o != nil && !IsNil(o.IsMalwareDetected) { + return true + } + + return false +} + +// SetIsMalwareDetected gets a reference to the given bool and assigns it to the IsMalwareDetected field. +func (o *CocoapodsPackageUploadRequest) SetIsMalwareDetected(v bool) { + o.IsMalwareDetected = &v +} + // GetPackageFile returns the PackageFile field value func (o *CocoapodsPackageUploadRequest) GetPackageFile() string { if o == nil { @@ -149,6 +184,49 @@ func (o *CocoapodsPackageUploadRequest) UnsetTags() { o.Tags.Unset() } +// GetVulnerabilityCounts returns the VulnerabilityCounts field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CocoapodsPackageUploadRequest) GetVulnerabilityCounts() WebOSVSeverityCounts { + if o == nil || IsNil(o.VulnerabilityCounts.Get()) { + var ret WebOSVSeverityCounts + return ret + } + return *o.VulnerabilityCounts.Get() +} + +// GetVulnerabilityCountsOk returns a tuple with the VulnerabilityCounts 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 *CocoapodsPackageUploadRequest) GetVulnerabilityCountsOk() (*WebOSVSeverityCounts, bool) { + if o == nil { + return nil, false + } + return o.VulnerabilityCounts.Get(), o.VulnerabilityCounts.IsSet() +} + +// HasVulnerabilityCounts returns a boolean if a field has been set. +func (o *CocoapodsPackageUploadRequest) HasVulnerabilityCounts() bool { + if o != nil && o.VulnerabilityCounts.IsSet() { + return true + } + + return false +} + +// SetVulnerabilityCounts gets a reference to the given NullableWebOSVSeverityCounts and assigns it to the VulnerabilityCounts field. +func (o *CocoapodsPackageUploadRequest) SetVulnerabilityCounts(v WebOSVSeverityCounts) { + o.VulnerabilityCounts.Set(&v) +} + +// SetVulnerabilityCountsNil sets the value for VulnerabilityCounts to be an explicit nil +func (o *CocoapodsPackageUploadRequest) SetVulnerabilityCountsNil() { + o.VulnerabilityCounts.Set(nil) +} + +// UnsetVulnerabilityCounts ensures that no value is present for VulnerabilityCounts, not even an explicit nil +func (o *CocoapodsPackageUploadRequest) UnsetVulnerabilityCounts() { + o.VulnerabilityCounts.Unset() +} + func (o CocoapodsPackageUploadRequest) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { @@ -159,6 +237,9 @@ func (o CocoapodsPackageUploadRequest) MarshalJSON() ([]byte, error) { func (o CocoapodsPackageUploadRequest) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} + if !IsNil(o.IsMalwareDetected) { + toSerialize["is_malware_detected"] = o.IsMalwareDetected + } toSerialize["package_file"] = o.PackageFile if !IsNil(o.Republish) { toSerialize["republish"] = o.Republish @@ -166,6 +247,9 @@ func (o CocoapodsPackageUploadRequest) ToMap() (map[string]interface{}, error) { if o.Tags.IsSet() { toSerialize["tags"] = o.Tags.Get() } + if o.VulnerabilityCounts.IsSet() { + toSerialize["vulnerability_counts"] = o.VulnerabilityCounts.Get() + } for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -209,9 +293,11 @@ func (o *CocoapodsPackageUploadRequest) UnmarshalJSON(data []byte) (err error) { additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "is_malware_detected") delete(additionalProperties, "package_file") delete(additionalProperties, "republish") delete(additionalProperties, "tags") + delete(additionalProperties, "vulnerability_counts") o.AdditionalProperties = additionalProperties } diff --git a/model_common_bandwidth_metrics.go b/model_common_bandwidth_metrics.go index be3dd233..70ce53f4 100644 --- a/model_common_bandwidth_metrics.go +++ b/model_common_bandwidth_metrics.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1288.1 +API version: 1.1341.7 Contact: support@cloudsmith.io */ diff --git a/model_common_bandwidth_metrics_value.go b/model_common_bandwidth_metrics_value.go index 3932ccc9..da545c2f 100644 --- a/model_common_bandwidth_metrics_value.go +++ b/model_common_bandwidth_metrics_value.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1288.1 +API version: 1.1341.7 Contact: support@cloudsmith.io */ diff --git a/model_common_downloads_metrics.go b/model_common_downloads_metrics.go index 4939669e..a2c91844 100644 --- a/model_common_downloads_metrics.go +++ b/model_common_downloads_metrics.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1288.1 +API version: 1.1341.7 Contact: support@cloudsmith.io */ diff --git a/model_common_downloads_metrics_value.go b/model_common_downloads_metrics_value.go index b9c7fbbf..0daa1632 100644 --- a/model_common_downloads_metrics_value.go +++ b/model_common_downloads_metrics_value.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1288.1 +API version: 1.1341.7 Contact: support@cloudsmith.io */ diff --git a/model_common_metrics.go b/model_common_metrics.go index 6f9da7b3..89614a15 100644 --- a/model_common_metrics.go +++ b/model_common_metrics.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1288.1 +API version: 1.1341.7 Contact: support@cloudsmith.io */ diff --git a/model_composer_package_upload.go b/model_composer_package_upload.go index 17b87fbf..90117b44 100644 --- a/model_composer_package_upload.go +++ b/model_composer_package_upload.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1288.1 +API version: 1.1341.7 Contact: support@cloudsmith.io */ @@ -49,23 +49,25 @@ type ComposerPackageUpload struct { // Unique and permanent identifier for the package. IdentifierPerm *string `json:"identifier_perm,omitempty"` // Return a map of identifier field names and their values. - Identifiers *map[string]string `json:"identifiers,omitempty"` - Indexed *bool `json:"indexed,omitempty"` - IsCancellable *bool `json:"is_cancellable,omitempty"` - IsCopyable *bool `json:"is_copyable,omitempty"` - IsDeleteable *bool `json:"is_deleteable,omitempty"` - IsDownloadable *bool `json:"is_downloadable,omitempty"` - IsHidden *bool `json:"is_hidden,omitempty"` - IsMoveable *bool `json:"is_moveable,omitempty"` - IsQuarantinable *bool `json:"is_quarantinable,omitempty"` - IsQuarantined *bool `json:"is_quarantined,omitempty"` - IsResyncable *bool `json:"is_resyncable,omitempty"` - IsSecurityScannable *bool `json:"is_security_scannable,omitempty"` - IsSyncAwaiting *bool `json:"is_sync_awaiting,omitempty"` - IsSyncCompleted *bool `json:"is_sync_completed,omitempty"` - IsSyncFailed *bool `json:"is_sync_failed,omitempty"` - IsSyncInFlight *bool `json:"is_sync_in_flight,omitempty"` - IsSyncInProgress *bool `json:"is_sync_in_progress,omitempty"` + Identifiers *map[string]string `json:"identifiers,omitempty"` + Indexed *bool `json:"indexed,omitempty"` + IsCancellable *bool `json:"is_cancellable,omitempty"` + IsCopyable *bool `json:"is_copyable,omitempty"` + IsDeleteable *bool `json:"is_deleteable,omitempty"` + IsDownloadable *bool `json:"is_downloadable,omitempty"` + IsHidden *bool `json:"is_hidden,omitempty"` + // Whether the package has been detected as containing malware. Requires Ultra plan. + IsMalwareDetected *bool `json:"is_malware_detected,omitempty"` + IsMoveable *bool `json:"is_moveable,omitempty"` + IsQuarantinable *bool `json:"is_quarantinable,omitempty"` + IsQuarantined *bool `json:"is_quarantined,omitempty"` + IsResyncable *bool `json:"is_resyncable,omitempty"` + IsSecurityScannable *bool `json:"is_security_scannable,omitempty"` + IsSyncAwaiting *bool `json:"is_sync_awaiting,omitempty"` + IsSyncCompleted *bool `json:"is_sync_completed,omitempty"` + IsSyncFailed *bool `json:"is_sync_failed,omitempty"` + IsSyncInFlight *bool `json:"is_sync_in_flight,omitempty"` + IsSyncInProgress *bool `json:"is_sync_in_progress,omitempty"` // The license of this package. License NullableString `json:"license,omitempty"` // The name of this package. @@ -135,9 +137,10 @@ type ComposerPackageUpload struct { Uploader *string `json:"uploader,omitempty"` UploaderUrl *string `json:"uploader_url,omitempty"` // The raw version for this package. - Version NullableString `json:"version,omitempty"` - VersionOrig *string `json:"version_orig,omitempty"` - VulnerabilityScanResultsUrl *string `json:"vulnerability_scan_results_url,omitempty"` + Version NullableString `json:"version,omitempty"` + VersionOrig *string `json:"version_orig,omitempty"` + VulnerabilityCounts NullableWebOSVSeverityCounts `json:"vulnerability_counts,omitempty"` + VulnerabilityScanResultsUrl *string `json:"vulnerability_scan_results_url,omitempty"` AdditionalProperties map[string]interface{} } @@ -1154,6 +1157,38 @@ func (o *ComposerPackageUpload) SetIsHidden(v bool) { o.IsHidden = &v } +// GetIsMalwareDetected returns the IsMalwareDetected field value if set, zero value otherwise. +func (o *ComposerPackageUpload) GetIsMalwareDetected() bool { + if o == nil || IsNil(o.IsMalwareDetected) { + var ret bool + return ret + } + return *o.IsMalwareDetected +} + +// GetIsMalwareDetectedOk returns a tuple with the IsMalwareDetected field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComposerPackageUpload) GetIsMalwareDetectedOk() (*bool, bool) { + if o == nil || IsNil(o.IsMalwareDetected) { + return nil, false + } + return o.IsMalwareDetected, true +} + +// HasIsMalwareDetected returns a boolean if a field has been set. +func (o *ComposerPackageUpload) HasIsMalwareDetected() bool { + if o != nil && !IsNil(o.IsMalwareDetected) { + return true + } + + return false +} + +// SetIsMalwareDetected gets a reference to the given bool and assigns it to the IsMalwareDetected field. +func (o *ComposerPackageUpload) SetIsMalwareDetected(v bool) { + o.IsMalwareDetected = &v +} + // GetIsMoveable returns the IsMoveable field value if set, zero value otherwise. func (o *ComposerPackageUpload) GetIsMoveable() bool { if o == nil || IsNil(o.IsMoveable) { @@ -3100,6 +3135,49 @@ func (o *ComposerPackageUpload) SetVersionOrig(v string) { o.VersionOrig = &v } +// GetVulnerabilityCounts returns the VulnerabilityCounts field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *ComposerPackageUpload) GetVulnerabilityCounts() WebOSVSeverityCounts { + if o == nil || IsNil(o.VulnerabilityCounts.Get()) { + var ret WebOSVSeverityCounts + return ret + } + return *o.VulnerabilityCounts.Get() +} + +// GetVulnerabilityCountsOk returns a tuple with the VulnerabilityCounts 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 *ComposerPackageUpload) GetVulnerabilityCountsOk() (*WebOSVSeverityCounts, bool) { + if o == nil { + return nil, false + } + return o.VulnerabilityCounts.Get(), o.VulnerabilityCounts.IsSet() +} + +// HasVulnerabilityCounts returns a boolean if a field has been set. +func (o *ComposerPackageUpload) HasVulnerabilityCounts() bool { + if o != nil && o.VulnerabilityCounts.IsSet() { + return true + } + + return false +} + +// SetVulnerabilityCounts gets a reference to the given NullableWebOSVSeverityCounts and assigns it to the VulnerabilityCounts field. +func (o *ComposerPackageUpload) SetVulnerabilityCounts(v WebOSVSeverityCounts) { + o.VulnerabilityCounts.Set(&v) +} + +// SetVulnerabilityCountsNil sets the value for VulnerabilityCounts to be an explicit nil +func (o *ComposerPackageUpload) SetVulnerabilityCountsNil() { + o.VulnerabilityCounts.Set(nil) +} + +// UnsetVulnerabilityCounts ensures that no value is present for VulnerabilityCounts, not even an explicit nil +func (o *ComposerPackageUpload) UnsetVulnerabilityCounts() { + o.VulnerabilityCounts.Unset() +} + // GetVulnerabilityScanResultsUrl returns the VulnerabilityScanResultsUrl field value if set, zero value otherwise. func (o *ComposerPackageUpload) GetVulnerabilityScanResultsUrl() string { if o == nil || IsNil(o.VulnerabilityScanResultsUrl) { @@ -3229,6 +3307,9 @@ func (o ComposerPackageUpload) ToMap() (map[string]interface{}, error) { if !IsNil(o.IsHidden) { toSerialize["is_hidden"] = o.IsHidden } + if !IsNil(o.IsMalwareDetected) { + toSerialize["is_malware_detected"] = o.IsMalwareDetected + } if !IsNil(o.IsMoveable) { toSerialize["is_moveable"] = o.IsMoveable } @@ -3397,6 +3478,9 @@ func (o ComposerPackageUpload) ToMap() (map[string]interface{}, error) { if !IsNil(o.VersionOrig) { toSerialize["version_orig"] = o.VersionOrig } + if o.VulnerabilityCounts.IsSet() { + toSerialize["vulnerability_counts"] = o.VulnerabilityCounts.Get() + } if !IsNil(o.VulnerabilityScanResultsUrl) { toSerialize["vulnerability_scan_results_url"] = o.VulnerabilityScanResultsUrl } @@ -3451,6 +3535,7 @@ func (o *ComposerPackageUpload) UnmarshalJSON(data []byte) (err error) { delete(additionalProperties, "is_deleteable") delete(additionalProperties, "is_downloadable") delete(additionalProperties, "is_hidden") + delete(additionalProperties, "is_malware_detected") delete(additionalProperties, "is_moveable") delete(additionalProperties, "is_quarantinable") delete(additionalProperties, "is_quarantined") @@ -3507,6 +3592,7 @@ func (o *ComposerPackageUpload) UnmarshalJSON(data []byte) (err error) { delete(additionalProperties, "uploader_url") delete(additionalProperties, "version") delete(additionalProperties, "version_orig") + delete(additionalProperties, "vulnerability_counts") delete(additionalProperties, "vulnerability_scan_results_url") o.AdditionalProperties = additionalProperties } diff --git a/model_composer_package_upload_request.go b/model_composer_package_upload_request.go index 3a16fef0..52c9883f 100644 --- a/model_composer_package_upload_request.go +++ b/model_composer_package_upload_request.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1288.1 +API version: 1.1341.7 Contact: support@cloudsmith.io */ @@ -21,6 +21,8 @@ var _ MappedNullable = &ComposerPackageUploadRequest{} // ComposerPackageUploadRequest struct for ComposerPackageUploadRequest type ComposerPackageUploadRequest struct { + // Whether the package has been detected as containing malware. Requires Ultra plan. + IsMalwareDetected *bool `json:"is_malware_detected,omitempty"` // The primary file for the package. PackageFile string `json:"package_file"` // If true, the uploaded package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate. @@ -28,7 +30,8 @@ type ComposerPackageUploadRequest struct { // A comma-separated values list of tags to add to the package. Tags NullableString `json:"tags,omitempty"` // The raw version for this package. - Version NullableString `json:"version,omitempty"` + Version NullableString `json:"version,omitempty"` + VulnerabilityCounts NullableWebOSVSeverityCounts `json:"vulnerability_counts,omitempty"` AdditionalProperties map[string]interface{} } @@ -52,6 +55,38 @@ func NewComposerPackageUploadRequestWithDefaults() *ComposerPackageUploadRequest return &this } +// GetIsMalwareDetected returns the IsMalwareDetected field value if set, zero value otherwise. +func (o *ComposerPackageUploadRequest) GetIsMalwareDetected() bool { + if o == nil || IsNil(o.IsMalwareDetected) { + var ret bool + return ret + } + return *o.IsMalwareDetected +} + +// GetIsMalwareDetectedOk returns a tuple with the IsMalwareDetected field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ComposerPackageUploadRequest) GetIsMalwareDetectedOk() (*bool, bool) { + if o == nil || IsNil(o.IsMalwareDetected) { + return nil, false + } + return o.IsMalwareDetected, true +} + +// HasIsMalwareDetected returns a boolean if a field has been set. +func (o *ComposerPackageUploadRequest) HasIsMalwareDetected() bool { + if o != nil && !IsNil(o.IsMalwareDetected) { + return true + } + + return false +} + +// SetIsMalwareDetected gets a reference to the given bool and assigns it to the IsMalwareDetected field. +func (o *ComposerPackageUploadRequest) SetIsMalwareDetected(v bool) { + o.IsMalwareDetected = &v +} + // GetPackageFile returns the PackageFile field value func (o *ComposerPackageUploadRequest) GetPackageFile() string { if o == nil { @@ -194,6 +229,49 @@ func (o *ComposerPackageUploadRequest) UnsetVersion() { o.Version.Unset() } +// GetVulnerabilityCounts returns the VulnerabilityCounts field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *ComposerPackageUploadRequest) GetVulnerabilityCounts() WebOSVSeverityCounts { + if o == nil || IsNil(o.VulnerabilityCounts.Get()) { + var ret WebOSVSeverityCounts + return ret + } + return *o.VulnerabilityCounts.Get() +} + +// GetVulnerabilityCountsOk returns a tuple with the VulnerabilityCounts 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 *ComposerPackageUploadRequest) GetVulnerabilityCountsOk() (*WebOSVSeverityCounts, bool) { + if o == nil { + return nil, false + } + return o.VulnerabilityCounts.Get(), o.VulnerabilityCounts.IsSet() +} + +// HasVulnerabilityCounts returns a boolean if a field has been set. +func (o *ComposerPackageUploadRequest) HasVulnerabilityCounts() bool { + if o != nil && o.VulnerabilityCounts.IsSet() { + return true + } + + return false +} + +// SetVulnerabilityCounts gets a reference to the given NullableWebOSVSeverityCounts and assigns it to the VulnerabilityCounts field. +func (o *ComposerPackageUploadRequest) SetVulnerabilityCounts(v WebOSVSeverityCounts) { + o.VulnerabilityCounts.Set(&v) +} + +// SetVulnerabilityCountsNil sets the value for VulnerabilityCounts to be an explicit nil +func (o *ComposerPackageUploadRequest) SetVulnerabilityCountsNil() { + o.VulnerabilityCounts.Set(nil) +} + +// UnsetVulnerabilityCounts ensures that no value is present for VulnerabilityCounts, not even an explicit nil +func (o *ComposerPackageUploadRequest) UnsetVulnerabilityCounts() { + o.VulnerabilityCounts.Unset() +} + func (o ComposerPackageUploadRequest) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { @@ -204,6 +282,9 @@ func (o ComposerPackageUploadRequest) MarshalJSON() ([]byte, error) { func (o ComposerPackageUploadRequest) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} + if !IsNil(o.IsMalwareDetected) { + toSerialize["is_malware_detected"] = o.IsMalwareDetected + } toSerialize["package_file"] = o.PackageFile if !IsNil(o.Republish) { toSerialize["republish"] = o.Republish @@ -214,6 +295,9 @@ func (o ComposerPackageUploadRequest) ToMap() (map[string]interface{}, error) { if o.Version.IsSet() { toSerialize["version"] = o.Version.Get() } + if o.VulnerabilityCounts.IsSet() { + toSerialize["vulnerability_counts"] = o.VulnerabilityCounts.Get() + } for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -257,10 +341,12 @@ func (o *ComposerPackageUploadRequest) UnmarshalJSON(data []byte) (err error) { additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "is_malware_detected") delete(additionalProperties, "package_file") delete(additionalProperties, "republish") delete(additionalProperties, "tags") delete(additionalProperties, "version") + delete(additionalProperties, "vulnerability_counts") o.AdditionalProperties = additionalProperties } diff --git a/model_composer_upstream.go b/model_composer_upstream.go index 38da9847..a6a850bc 100644 --- a/model_composer_upstream.go +++ b/model_composer_upstream.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1288.1 +API version: 1.1341.7 Contact: support@cloudsmith.io */ diff --git a/model_composer_upstream_request.go b/model_composer_upstream_request.go index 87f70a0b..72c32310 100644 --- a/model_composer_upstream_request.go +++ b/model_composer_upstream_request.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1288.1 +API version: 1.1341.7 Contact: support@cloudsmith.io */ diff --git a/model_composer_upstream_request_patch.go b/model_composer_upstream_request_patch.go index 057e0716..0d5ea709 100644 --- a/model_composer_upstream_request_patch.go +++ b/model_composer_upstream_request_patch.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1288.1 +API version: 1.1341.7 Contact: support@cloudsmith.io */ diff --git a/model_conan_package_upload.go b/model_conan_package_upload.go index 0ad6904b..bb12c1d3 100644 --- a/model_conan_package_upload.go +++ b/model_conan_package_upload.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1288.1 +API version: 1.1341.7 Contact: support@cloudsmith.io */ @@ -53,23 +53,25 @@ type ConanPackageUpload struct { // Unique and permanent identifier for the package. IdentifierPerm *string `json:"identifier_perm,omitempty"` // Return a map of identifier field names and their values. - Identifiers *map[string]string `json:"identifiers,omitempty"` - Indexed *bool `json:"indexed,omitempty"` - IsCancellable *bool `json:"is_cancellable,omitempty"` - IsCopyable *bool `json:"is_copyable,omitempty"` - IsDeleteable *bool `json:"is_deleteable,omitempty"` - IsDownloadable *bool `json:"is_downloadable,omitempty"` - IsHidden *bool `json:"is_hidden,omitempty"` - IsMoveable *bool `json:"is_moveable,omitempty"` - IsQuarantinable *bool `json:"is_quarantinable,omitempty"` - IsQuarantined *bool `json:"is_quarantined,omitempty"` - IsResyncable *bool `json:"is_resyncable,omitempty"` - IsSecurityScannable *bool `json:"is_security_scannable,omitempty"` - IsSyncAwaiting *bool `json:"is_sync_awaiting,omitempty"` - IsSyncCompleted *bool `json:"is_sync_completed,omitempty"` - IsSyncFailed *bool `json:"is_sync_failed,omitempty"` - IsSyncInFlight *bool `json:"is_sync_in_flight,omitempty"` - IsSyncInProgress *bool `json:"is_sync_in_progress,omitempty"` + Identifiers *map[string]string `json:"identifiers,omitempty"` + Indexed *bool `json:"indexed,omitempty"` + IsCancellable *bool `json:"is_cancellable,omitempty"` + IsCopyable *bool `json:"is_copyable,omitempty"` + IsDeleteable *bool `json:"is_deleteable,omitempty"` + IsDownloadable *bool `json:"is_downloadable,omitempty"` + IsHidden *bool `json:"is_hidden,omitempty"` + // Whether the package has been detected as containing malware. Requires Ultra plan. + IsMalwareDetected *bool `json:"is_malware_detected,omitempty"` + IsMoveable *bool `json:"is_moveable,omitempty"` + IsQuarantinable *bool `json:"is_quarantinable,omitempty"` + IsQuarantined *bool `json:"is_quarantined,omitempty"` + IsResyncable *bool `json:"is_resyncable,omitempty"` + IsSecurityScannable *bool `json:"is_security_scannable,omitempty"` + IsSyncAwaiting *bool `json:"is_sync_awaiting,omitempty"` + IsSyncCompleted *bool `json:"is_sync_completed,omitempty"` + IsSyncFailed *bool `json:"is_sync_failed,omitempty"` + IsSyncInFlight *bool `json:"is_sync_in_flight,omitempty"` + IsSyncInProgress *bool `json:"is_sync_in_progress,omitempty"` // The license of this package. License NullableString `json:"license,omitempty"` // The name of this package. @@ -139,9 +141,10 @@ type ConanPackageUpload struct { Uploader *string `json:"uploader,omitempty"` UploaderUrl *string `json:"uploader_url,omitempty"` // The raw version for this package. - Version NullableString `json:"version,omitempty"` - VersionOrig *string `json:"version_orig,omitempty"` - VulnerabilityScanResultsUrl *string `json:"vulnerability_scan_results_url,omitempty"` + Version NullableString `json:"version,omitempty"` + VersionOrig *string `json:"version_orig,omitempty"` + VulnerabilityCounts NullableWebOSVSeverityCounts `json:"vulnerability_counts,omitempty"` + VulnerabilityScanResultsUrl *string `json:"vulnerability_scan_results_url,omitempty"` AdditionalProperties map[string]interface{} } @@ -1244,6 +1247,38 @@ func (o *ConanPackageUpload) SetIsHidden(v bool) { o.IsHidden = &v } +// GetIsMalwareDetected returns the IsMalwareDetected field value if set, zero value otherwise. +func (o *ConanPackageUpload) GetIsMalwareDetected() bool { + if o == nil || IsNil(o.IsMalwareDetected) { + var ret bool + return ret + } + return *o.IsMalwareDetected +} + +// GetIsMalwareDetectedOk returns a tuple with the IsMalwareDetected field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ConanPackageUpload) GetIsMalwareDetectedOk() (*bool, bool) { + if o == nil || IsNil(o.IsMalwareDetected) { + return nil, false + } + return o.IsMalwareDetected, true +} + +// HasIsMalwareDetected returns a boolean if a field has been set. +func (o *ConanPackageUpload) HasIsMalwareDetected() bool { + if o != nil && !IsNil(o.IsMalwareDetected) { + return true + } + + return false +} + +// SetIsMalwareDetected gets a reference to the given bool and assigns it to the IsMalwareDetected field. +func (o *ConanPackageUpload) SetIsMalwareDetected(v bool) { + o.IsMalwareDetected = &v +} + // GetIsMoveable returns the IsMoveable field value if set, zero value otherwise. func (o *ConanPackageUpload) GetIsMoveable() bool { if o == nil || IsNil(o.IsMoveable) { @@ -3190,6 +3225,49 @@ func (o *ConanPackageUpload) SetVersionOrig(v string) { o.VersionOrig = &v } +// GetVulnerabilityCounts returns the VulnerabilityCounts field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *ConanPackageUpload) GetVulnerabilityCounts() WebOSVSeverityCounts { + if o == nil || IsNil(o.VulnerabilityCounts.Get()) { + var ret WebOSVSeverityCounts + return ret + } + return *o.VulnerabilityCounts.Get() +} + +// GetVulnerabilityCountsOk returns a tuple with the VulnerabilityCounts 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 *ConanPackageUpload) GetVulnerabilityCountsOk() (*WebOSVSeverityCounts, bool) { + if o == nil { + return nil, false + } + return o.VulnerabilityCounts.Get(), o.VulnerabilityCounts.IsSet() +} + +// HasVulnerabilityCounts returns a boolean if a field has been set. +func (o *ConanPackageUpload) HasVulnerabilityCounts() bool { + if o != nil && o.VulnerabilityCounts.IsSet() { + return true + } + + return false +} + +// SetVulnerabilityCounts gets a reference to the given NullableWebOSVSeverityCounts and assigns it to the VulnerabilityCounts field. +func (o *ConanPackageUpload) SetVulnerabilityCounts(v WebOSVSeverityCounts) { + o.VulnerabilityCounts.Set(&v) +} + +// SetVulnerabilityCountsNil sets the value for VulnerabilityCounts to be an explicit nil +func (o *ConanPackageUpload) SetVulnerabilityCountsNil() { + o.VulnerabilityCounts.Set(nil) +} + +// UnsetVulnerabilityCounts ensures that no value is present for VulnerabilityCounts, not even an explicit nil +func (o *ConanPackageUpload) UnsetVulnerabilityCounts() { + o.VulnerabilityCounts.Unset() +} + // GetVulnerabilityScanResultsUrl returns the VulnerabilityScanResultsUrl field value if set, zero value otherwise. func (o *ConanPackageUpload) GetVulnerabilityScanResultsUrl() string { if o == nil || IsNil(o.VulnerabilityScanResultsUrl) { @@ -3325,6 +3403,9 @@ func (o ConanPackageUpload) ToMap() (map[string]interface{}, error) { if !IsNil(o.IsHidden) { toSerialize["is_hidden"] = o.IsHidden } + if !IsNil(o.IsMalwareDetected) { + toSerialize["is_malware_detected"] = o.IsMalwareDetected + } if !IsNil(o.IsMoveable) { toSerialize["is_moveable"] = o.IsMoveable } @@ -3493,6 +3574,9 @@ func (o ConanPackageUpload) ToMap() (map[string]interface{}, error) { if !IsNil(o.VersionOrig) { toSerialize["version_orig"] = o.VersionOrig } + if o.VulnerabilityCounts.IsSet() { + toSerialize["vulnerability_counts"] = o.VulnerabilityCounts.Get() + } if !IsNil(o.VulnerabilityScanResultsUrl) { toSerialize["vulnerability_scan_results_url"] = o.VulnerabilityScanResultsUrl } @@ -3549,6 +3633,7 @@ func (o *ConanPackageUpload) UnmarshalJSON(data []byte) (err error) { delete(additionalProperties, "is_deleteable") delete(additionalProperties, "is_downloadable") delete(additionalProperties, "is_hidden") + delete(additionalProperties, "is_malware_detected") delete(additionalProperties, "is_moveable") delete(additionalProperties, "is_quarantinable") delete(additionalProperties, "is_quarantined") @@ -3605,6 +3690,7 @@ func (o *ConanPackageUpload) UnmarshalJSON(data []byte) (err error) { delete(additionalProperties, "uploader_url") delete(additionalProperties, "version") delete(additionalProperties, "version_orig") + delete(additionalProperties, "vulnerability_counts") delete(additionalProperties, "vulnerability_scan_results_url") o.AdditionalProperties = additionalProperties } diff --git a/model_conan_package_upload_request.go b/model_conan_package_upload_request.go index 90bc0645..1651ba5f 100644 --- a/model_conan_package_upload_request.go +++ b/model_conan_package_upload_request.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1288.1 +API version: 1.1341.7 Contact: support@cloudsmith.io */ @@ -27,6 +27,8 @@ type ConanPackageUploadRequest struct { ConanPrefix NullableString `json:"conan_prefix,omitempty"` // The info file is an python file containing the package metadata. InfoFile string `json:"info_file"` + // Whether the package has been detected as containing malware. Requires Ultra plan. + IsMalwareDetected *bool `json:"is_malware_detected,omitempty"` // The info file is an python file containing the package metadata. ManifestFile string `json:"manifest_file"` // The conan file is an python file containing the package metadata. @@ -40,7 +42,8 @@ type ConanPackageUploadRequest struct { // A comma-separated values list of tags to add to the package. Tags NullableString `json:"tags,omitempty"` // The raw version for this package. - Version NullableString `json:"version,omitempty"` + Version NullableString `json:"version,omitempty"` + VulnerabilityCounts NullableWebOSVSeverityCounts `json:"vulnerability_counts,omitempty"` AdditionalProperties map[string]interface{} } @@ -177,6 +180,38 @@ func (o *ConanPackageUploadRequest) SetInfoFile(v string) { o.InfoFile = v } +// GetIsMalwareDetected returns the IsMalwareDetected field value if set, zero value otherwise. +func (o *ConanPackageUploadRequest) GetIsMalwareDetected() bool { + if o == nil || IsNil(o.IsMalwareDetected) { + var ret bool + return ret + } + return *o.IsMalwareDetected +} + +// GetIsMalwareDetectedOk returns a tuple with the IsMalwareDetected field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ConanPackageUploadRequest) GetIsMalwareDetectedOk() (*bool, bool) { + if o == nil || IsNil(o.IsMalwareDetected) { + return nil, false + } + return o.IsMalwareDetected, true +} + +// HasIsMalwareDetected returns a boolean if a field has been set. +func (o *ConanPackageUploadRequest) HasIsMalwareDetected() bool { + if o != nil && !IsNil(o.IsMalwareDetected) { + return true + } + + return false +} + +// SetIsMalwareDetected gets a reference to the given bool and assigns it to the IsMalwareDetected field. +func (o *ConanPackageUploadRequest) SetIsMalwareDetected(v bool) { + o.IsMalwareDetected = &v +} + // GetManifestFile returns the ManifestFile field value func (o *ConanPackageUploadRequest) GetManifestFile() string { if o == nil { @@ -410,6 +445,49 @@ func (o *ConanPackageUploadRequest) UnsetVersion() { o.Version.Unset() } +// GetVulnerabilityCounts returns the VulnerabilityCounts field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *ConanPackageUploadRequest) GetVulnerabilityCounts() WebOSVSeverityCounts { + if o == nil || IsNil(o.VulnerabilityCounts.Get()) { + var ret WebOSVSeverityCounts + return ret + } + return *o.VulnerabilityCounts.Get() +} + +// GetVulnerabilityCountsOk returns a tuple with the VulnerabilityCounts 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 *ConanPackageUploadRequest) GetVulnerabilityCountsOk() (*WebOSVSeverityCounts, bool) { + if o == nil { + return nil, false + } + return o.VulnerabilityCounts.Get(), o.VulnerabilityCounts.IsSet() +} + +// HasVulnerabilityCounts returns a boolean if a field has been set. +func (o *ConanPackageUploadRequest) HasVulnerabilityCounts() bool { + if o != nil && o.VulnerabilityCounts.IsSet() { + return true + } + + return false +} + +// SetVulnerabilityCounts gets a reference to the given NullableWebOSVSeverityCounts and assigns it to the VulnerabilityCounts field. +func (o *ConanPackageUploadRequest) SetVulnerabilityCounts(v WebOSVSeverityCounts) { + o.VulnerabilityCounts.Set(&v) +} + +// SetVulnerabilityCountsNil sets the value for VulnerabilityCounts to be an explicit nil +func (o *ConanPackageUploadRequest) SetVulnerabilityCountsNil() { + o.VulnerabilityCounts.Set(nil) +} + +// UnsetVulnerabilityCounts ensures that no value is present for VulnerabilityCounts, not even an explicit nil +func (o *ConanPackageUploadRequest) UnsetVulnerabilityCounts() { + o.VulnerabilityCounts.Unset() +} + func (o ConanPackageUploadRequest) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { @@ -427,6 +505,9 @@ func (o ConanPackageUploadRequest) ToMap() (map[string]interface{}, error) { toSerialize["conan_prefix"] = o.ConanPrefix.Get() } toSerialize["info_file"] = o.InfoFile + if !IsNil(o.IsMalwareDetected) { + toSerialize["is_malware_detected"] = o.IsMalwareDetected + } toSerialize["manifest_file"] = o.ManifestFile toSerialize["metadata_file"] = o.MetadataFile if o.Name.IsSet() { @@ -442,6 +523,9 @@ func (o ConanPackageUploadRequest) ToMap() (map[string]interface{}, error) { if o.Version.IsSet() { toSerialize["version"] = o.Version.Get() } + if o.VulnerabilityCounts.IsSet() { + toSerialize["vulnerability_counts"] = o.VulnerabilityCounts.Get() + } for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -491,6 +575,7 @@ func (o *ConanPackageUploadRequest) UnmarshalJSON(data []byte) (err error) { delete(additionalProperties, "conan_channel") delete(additionalProperties, "conan_prefix") delete(additionalProperties, "info_file") + delete(additionalProperties, "is_malware_detected") delete(additionalProperties, "manifest_file") delete(additionalProperties, "metadata_file") delete(additionalProperties, "name") @@ -498,6 +583,7 @@ func (o *ConanPackageUploadRequest) UnmarshalJSON(data []byte) (err error) { delete(additionalProperties, "republish") delete(additionalProperties, "tags") delete(additionalProperties, "version") + delete(additionalProperties, "vulnerability_counts") o.AdditionalProperties = additionalProperties } diff --git a/model_conda_package_upload.go b/model_conda_package_upload.go index 3a416942..a2bd8d94 100644 --- a/model_conda_package_upload.go +++ b/model_conda_package_upload.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1288.1 +API version: 1.1341.7 Contact: support@cloudsmith.io */ @@ -49,23 +49,25 @@ type CondaPackageUpload struct { // Unique and permanent identifier for the package. IdentifierPerm *string `json:"identifier_perm,omitempty"` // Return a map of identifier field names and their values. - Identifiers *map[string]string `json:"identifiers,omitempty"` - Indexed *bool `json:"indexed,omitempty"` - IsCancellable *bool `json:"is_cancellable,omitempty"` - IsCopyable *bool `json:"is_copyable,omitempty"` - IsDeleteable *bool `json:"is_deleteable,omitempty"` - IsDownloadable *bool `json:"is_downloadable,omitempty"` - IsHidden *bool `json:"is_hidden,omitempty"` - IsMoveable *bool `json:"is_moveable,omitempty"` - IsQuarantinable *bool `json:"is_quarantinable,omitempty"` - IsQuarantined *bool `json:"is_quarantined,omitempty"` - IsResyncable *bool `json:"is_resyncable,omitempty"` - IsSecurityScannable *bool `json:"is_security_scannable,omitempty"` - IsSyncAwaiting *bool `json:"is_sync_awaiting,omitempty"` - IsSyncCompleted *bool `json:"is_sync_completed,omitempty"` - IsSyncFailed *bool `json:"is_sync_failed,omitempty"` - IsSyncInFlight *bool `json:"is_sync_in_flight,omitempty"` - IsSyncInProgress *bool `json:"is_sync_in_progress,omitempty"` + Identifiers *map[string]string `json:"identifiers,omitempty"` + Indexed *bool `json:"indexed,omitempty"` + IsCancellable *bool `json:"is_cancellable,omitempty"` + IsCopyable *bool `json:"is_copyable,omitempty"` + IsDeleteable *bool `json:"is_deleteable,omitempty"` + IsDownloadable *bool `json:"is_downloadable,omitempty"` + IsHidden *bool `json:"is_hidden,omitempty"` + // Whether the package has been detected as containing malware. Requires Ultra plan. + IsMalwareDetected *bool `json:"is_malware_detected,omitempty"` + IsMoveable *bool `json:"is_moveable,omitempty"` + IsQuarantinable *bool `json:"is_quarantinable,omitempty"` + IsQuarantined *bool `json:"is_quarantined,omitempty"` + IsResyncable *bool `json:"is_resyncable,omitempty"` + IsSecurityScannable *bool `json:"is_security_scannable,omitempty"` + IsSyncAwaiting *bool `json:"is_sync_awaiting,omitempty"` + IsSyncCompleted *bool `json:"is_sync_completed,omitempty"` + IsSyncFailed *bool `json:"is_sync_failed,omitempty"` + IsSyncInFlight *bool `json:"is_sync_in_flight,omitempty"` + IsSyncInProgress *bool `json:"is_sync_in_progress,omitempty"` // The license of this package. License NullableString `json:"license,omitempty"` // The name of this package. @@ -135,9 +137,10 @@ type CondaPackageUpload struct { Uploader *string `json:"uploader,omitempty"` UploaderUrl *string `json:"uploader_url,omitempty"` // The raw version for this package. - Version NullableString `json:"version,omitempty"` - VersionOrig *string `json:"version_orig,omitempty"` - VulnerabilityScanResultsUrl *string `json:"vulnerability_scan_results_url,omitempty"` + Version NullableString `json:"version,omitempty"` + VersionOrig *string `json:"version_orig,omitempty"` + VulnerabilityCounts NullableWebOSVSeverityCounts `json:"vulnerability_counts,omitempty"` + VulnerabilityScanResultsUrl *string `json:"vulnerability_scan_results_url,omitempty"` AdditionalProperties map[string]interface{} } @@ -1154,6 +1157,38 @@ func (o *CondaPackageUpload) SetIsHidden(v bool) { o.IsHidden = &v } +// GetIsMalwareDetected returns the IsMalwareDetected field value if set, zero value otherwise. +func (o *CondaPackageUpload) GetIsMalwareDetected() bool { + if o == nil || IsNil(o.IsMalwareDetected) { + var ret bool + return ret + } + return *o.IsMalwareDetected +} + +// GetIsMalwareDetectedOk returns a tuple with the IsMalwareDetected field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CondaPackageUpload) GetIsMalwareDetectedOk() (*bool, bool) { + if o == nil || IsNil(o.IsMalwareDetected) { + return nil, false + } + return o.IsMalwareDetected, true +} + +// HasIsMalwareDetected returns a boolean if a field has been set. +func (o *CondaPackageUpload) HasIsMalwareDetected() bool { + if o != nil && !IsNil(o.IsMalwareDetected) { + return true + } + + return false +} + +// SetIsMalwareDetected gets a reference to the given bool and assigns it to the IsMalwareDetected field. +func (o *CondaPackageUpload) SetIsMalwareDetected(v bool) { + o.IsMalwareDetected = &v +} + // GetIsMoveable returns the IsMoveable field value if set, zero value otherwise. func (o *CondaPackageUpload) GetIsMoveable() bool { if o == nil || IsNil(o.IsMoveable) { @@ -3100,6 +3135,49 @@ func (o *CondaPackageUpload) SetVersionOrig(v string) { o.VersionOrig = &v } +// GetVulnerabilityCounts returns the VulnerabilityCounts field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CondaPackageUpload) GetVulnerabilityCounts() WebOSVSeverityCounts { + if o == nil || IsNil(o.VulnerabilityCounts.Get()) { + var ret WebOSVSeverityCounts + return ret + } + return *o.VulnerabilityCounts.Get() +} + +// GetVulnerabilityCountsOk returns a tuple with the VulnerabilityCounts 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 *CondaPackageUpload) GetVulnerabilityCountsOk() (*WebOSVSeverityCounts, bool) { + if o == nil { + return nil, false + } + return o.VulnerabilityCounts.Get(), o.VulnerabilityCounts.IsSet() +} + +// HasVulnerabilityCounts returns a boolean if a field has been set. +func (o *CondaPackageUpload) HasVulnerabilityCounts() bool { + if o != nil && o.VulnerabilityCounts.IsSet() { + return true + } + + return false +} + +// SetVulnerabilityCounts gets a reference to the given NullableWebOSVSeverityCounts and assigns it to the VulnerabilityCounts field. +func (o *CondaPackageUpload) SetVulnerabilityCounts(v WebOSVSeverityCounts) { + o.VulnerabilityCounts.Set(&v) +} + +// SetVulnerabilityCountsNil sets the value for VulnerabilityCounts to be an explicit nil +func (o *CondaPackageUpload) SetVulnerabilityCountsNil() { + o.VulnerabilityCounts.Set(nil) +} + +// UnsetVulnerabilityCounts ensures that no value is present for VulnerabilityCounts, not even an explicit nil +func (o *CondaPackageUpload) UnsetVulnerabilityCounts() { + o.VulnerabilityCounts.Unset() +} + // GetVulnerabilityScanResultsUrl returns the VulnerabilityScanResultsUrl field value if set, zero value otherwise. func (o *CondaPackageUpload) GetVulnerabilityScanResultsUrl() string { if o == nil || IsNil(o.VulnerabilityScanResultsUrl) { @@ -3229,6 +3307,9 @@ func (o CondaPackageUpload) ToMap() (map[string]interface{}, error) { if !IsNil(o.IsHidden) { toSerialize["is_hidden"] = o.IsHidden } + if !IsNil(o.IsMalwareDetected) { + toSerialize["is_malware_detected"] = o.IsMalwareDetected + } if !IsNil(o.IsMoveable) { toSerialize["is_moveable"] = o.IsMoveable } @@ -3397,6 +3478,9 @@ func (o CondaPackageUpload) ToMap() (map[string]interface{}, error) { if !IsNil(o.VersionOrig) { toSerialize["version_orig"] = o.VersionOrig } + if o.VulnerabilityCounts.IsSet() { + toSerialize["vulnerability_counts"] = o.VulnerabilityCounts.Get() + } if !IsNil(o.VulnerabilityScanResultsUrl) { toSerialize["vulnerability_scan_results_url"] = o.VulnerabilityScanResultsUrl } @@ -3451,6 +3535,7 @@ func (o *CondaPackageUpload) UnmarshalJSON(data []byte) (err error) { delete(additionalProperties, "is_deleteable") delete(additionalProperties, "is_downloadable") delete(additionalProperties, "is_hidden") + delete(additionalProperties, "is_malware_detected") delete(additionalProperties, "is_moveable") delete(additionalProperties, "is_quarantinable") delete(additionalProperties, "is_quarantined") @@ -3507,6 +3592,7 @@ func (o *CondaPackageUpload) UnmarshalJSON(data []byte) (err error) { delete(additionalProperties, "uploader_url") delete(additionalProperties, "version") delete(additionalProperties, "version_orig") + delete(additionalProperties, "vulnerability_counts") delete(additionalProperties, "vulnerability_scan_results_url") o.AdditionalProperties = additionalProperties } diff --git a/model_conda_package_upload_request.go b/model_conda_package_upload_request.go index 26577314..e1acc554 100644 --- a/model_conda_package_upload_request.go +++ b/model_conda_package_upload_request.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1288.1 +API version: 1.1341.7 Contact: support@cloudsmith.io */ @@ -21,12 +21,15 @@ var _ MappedNullable = &CondaPackageUploadRequest{} // CondaPackageUploadRequest struct for CondaPackageUploadRequest type CondaPackageUploadRequest struct { + // Whether the package has been detected as containing malware. Requires Ultra plan. + IsMalwareDetected *bool `json:"is_malware_detected,omitempty"` // The primary file for the package. PackageFile string `json:"package_file"` // If true, the uploaded package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate. Republish *bool `json:"republish,omitempty"` // A comma-separated values list of tags to add to the package. - Tags NullableString `json:"tags,omitempty"` + Tags NullableString `json:"tags,omitempty"` + VulnerabilityCounts NullableWebOSVSeverityCounts `json:"vulnerability_counts,omitempty"` AdditionalProperties map[string]interface{} } @@ -50,6 +53,38 @@ func NewCondaPackageUploadRequestWithDefaults() *CondaPackageUploadRequest { return &this } +// GetIsMalwareDetected returns the IsMalwareDetected field value if set, zero value otherwise. +func (o *CondaPackageUploadRequest) GetIsMalwareDetected() bool { + if o == nil || IsNil(o.IsMalwareDetected) { + var ret bool + return ret + } + return *o.IsMalwareDetected +} + +// GetIsMalwareDetectedOk returns a tuple with the IsMalwareDetected field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CondaPackageUploadRequest) GetIsMalwareDetectedOk() (*bool, bool) { + if o == nil || IsNil(o.IsMalwareDetected) { + return nil, false + } + return o.IsMalwareDetected, true +} + +// HasIsMalwareDetected returns a boolean if a field has been set. +func (o *CondaPackageUploadRequest) HasIsMalwareDetected() bool { + if o != nil && !IsNil(o.IsMalwareDetected) { + return true + } + + return false +} + +// SetIsMalwareDetected gets a reference to the given bool and assigns it to the IsMalwareDetected field. +func (o *CondaPackageUploadRequest) SetIsMalwareDetected(v bool) { + o.IsMalwareDetected = &v +} + // GetPackageFile returns the PackageFile field value func (o *CondaPackageUploadRequest) GetPackageFile() string { if o == nil { @@ -149,6 +184,49 @@ func (o *CondaPackageUploadRequest) UnsetTags() { o.Tags.Unset() } +// GetVulnerabilityCounts returns the VulnerabilityCounts field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CondaPackageUploadRequest) GetVulnerabilityCounts() WebOSVSeverityCounts { + if o == nil || IsNil(o.VulnerabilityCounts.Get()) { + var ret WebOSVSeverityCounts + return ret + } + return *o.VulnerabilityCounts.Get() +} + +// GetVulnerabilityCountsOk returns a tuple with the VulnerabilityCounts 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 *CondaPackageUploadRequest) GetVulnerabilityCountsOk() (*WebOSVSeverityCounts, bool) { + if o == nil { + return nil, false + } + return o.VulnerabilityCounts.Get(), o.VulnerabilityCounts.IsSet() +} + +// HasVulnerabilityCounts returns a boolean if a field has been set. +func (o *CondaPackageUploadRequest) HasVulnerabilityCounts() bool { + if o != nil && o.VulnerabilityCounts.IsSet() { + return true + } + + return false +} + +// SetVulnerabilityCounts gets a reference to the given NullableWebOSVSeverityCounts and assigns it to the VulnerabilityCounts field. +func (o *CondaPackageUploadRequest) SetVulnerabilityCounts(v WebOSVSeverityCounts) { + o.VulnerabilityCounts.Set(&v) +} + +// SetVulnerabilityCountsNil sets the value for VulnerabilityCounts to be an explicit nil +func (o *CondaPackageUploadRequest) SetVulnerabilityCountsNil() { + o.VulnerabilityCounts.Set(nil) +} + +// UnsetVulnerabilityCounts ensures that no value is present for VulnerabilityCounts, not even an explicit nil +func (o *CondaPackageUploadRequest) UnsetVulnerabilityCounts() { + o.VulnerabilityCounts.Unset() +} + func (o CondaPackageUploadRequest) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { @@ -159,6 +237,9 @@ func (o CondaPackageUploadRequest) MarshalJSON() ([]byte, error) { func (o CondaPackageUploadRequest) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} + if !IsNil(o.IsMalwareDetected) { + toSerialize["is_malware_detected"] = o.IsMalwareDetected + } toSerialize["package_file"] = o.PackageFile if !IsNil(o.Republish) { toSerialize["republish"] = o.Republish @@ -166,6 +247,9 @@ func (o CondaPackageUploadRequest) ToMap() (map[string]interface{}, error) { if o.Tags.IsSet() { toSerialize["tags"] = o.Tags.Get() } + if o.VulnerabilityCounts.IsSet() { + toSerialize["vulnerability_counts"] = o.VulnerabilityCounts.Get() + } for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -209,9 +293,11 @@ func (o *CondaPackageUploadRequest) UnmarshalJSON(data []byte) (err error) { additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "is_malware_detected") delete(additionalProperties, "package_file") delete(additionalProperties, "republish") delete(additionalProperties, "tags") + delete(additionalProperties, "vulnerability_counts") o.AdditionalProperties = additionalProperties } diff --git a/model_conda_upstream.go b/model_conda_upstream.go index 0c7971cf..b96a059a 100644 --- a/model_conda_upstream.go +++ b/model_conda_upstream.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1288.1 +API version: 1.1341.7 Contact: support@cloudsmith.io */ diff --git a/model_conda_upstream_request.go b/model_conda_upstream_request.go index f9f25ee6..2648ddf1 100644 --- a/model_conda_upstream_request.go +++ b/model_conda_upstream_request.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1288.1 +API version: 1.1341.7 Contact: support@cloudsmith.io */ diff --git a/model_conda_upstream_request_patch.go b/model_conda_upstream_request_patch.go index aa33b45d..c91f9c92 100644 --- a/model_conda_upstream_request_patch.go +++ b/model_conda_upstream_request_patch.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1288.1 +API version: 1.1341.7 Contact: support@cloudsmith.io */ diff --git a/model_connected_repository.go b/model_connected_repository.go index d42a8d25..6fc924c2 100644 --- a/model_connected_repository.go +++ b/model_connected_repository.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1288.1 +API version: 1.1341.7 Contact: support@cloudsmith.io */ diff --git a/model_connected_repository_request.go b/model_connected_repository_request.go index cb678a7c..e5461459 100644 --- a/model_connected_repository_request.go +++ b/model_connected_repository_request.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1288.1 +API version: 1.1341.7 Contact: support@cloudsmith.io */ diff --git a/model_connected_repository_request_patch.go b/model_connected_repository_request_patch.go index a1172aa6..94576245 100644 --- a/model_connected_repository_request_patch.go +++ b/model_connected_repository_request_patch.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1288.1 +API version: 1.1341.7 Contact: support@cloudsmith.io */ diff --git a/model_cran_package_upload.go b/model_cran_package_upload.go index 25c14aa3..8374d1c6 100644 --- a/model_cran_package_upload.go +++ b/model_cran_package_upload.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1288.1 +API version: 1.1341.7 Contact: support@cloudsmith.io */ @@ -49,23 +49,25 @@ type CranPackageUpload struct { // Unique and permanent identifier for the package. IdentifierPerm *string `json:"identifier_perm,omitempty"` // Return a map of identifier field names and their values. - Identifiers *map[string]string `json:"identifiers,omitempty"` - Indexed *bool `json:"indexed,omitempty"` - IsCancellable *bool `json:"is_cancellable,omitempty"` - IsCopyable *bool `json:"is_copyable,omitempty"` - IsDeleteable *bool `json:"is_deleteable,omitempty"` - IsDownloadable *bool `json:"is_downloadable,omitempty"` - IsHidden *bool `json:"is_hidden,omitempty"` - IsMoveable *bool `json:"is_moveable,omitempty"` - IsQuarantinable *bool `json:"is_quarantinable,omitempty"` - IsQuarantined *bool `json:"is_quarantined,omitempty"` - IsResyncable *bool `json:"is_resyncable,omitempty"` - IsSecurityScannable *bool `json:"is_security_scannable,omitempty"` - IsSyncAwaiting *bool `json:"is_sync_awaiting,omitempty"` - IsSyncCompleted *bool `json:"is_sync_completed,omitempty"` - IsSyncFailed *bool `json:"is_sync_failed,omitempty"` - IsSyncInFlight *bool `json:"is_sync_in_flight,omitempty"` - IsSyncInProgress *bool `json:"is_sync_in_progress,omitempty"` + Identifiers *map[string]string `json:"identifiers,omitempty"` + Indexed *bool `json:"indexed,omitempty"` + IsCancellable *bool `json:"is_cancellable,omitempty"` + IsCopyable *bool `json:"is_copyable,omitempty"` + IsDeleteable *bool `json:"is_deleteable,omitempty"` + IsDownloadable *bool `json:"is_downloadable,omitempty"` + IsHidden *bool `json:"is_hidden,omitempty"` + // Whether the package has been detected as containing malware. Requires Ultra plan. + IsMalwareDetected *bool `json:"is_malware_detected,omitempty"` + IsMoveable *bool `json:"is_moveable,omitempty"` + IsQuarantinable *bool `json:"is_quarantinable,omitempty"` + IsQuarantined *bool `json:"is_quarantined,omitempty"` + IsResyncable *bool `json:"is_resyncable,omitempty"` + IsSecurityScannable *bool `json:"is_security_scannable,omitempty"` + IsSyncAwaiting *bool `json:"is_sync_awaiting,omitempty"` + IsSyncCompleted *bool `json:"is_sync_completed,omitempty"` + IsSyncFailed *bool `json:"is_sync_failed,omitempty"` + IsSyncInFlight *bool `json:"is_sync_in_flight,omitempty"` + IsSyncInProgress *bool `json:"is_sync_in_progress,omitempty"` // The license of this package. License NullableString `json:"license,omitempty"` // The name of this package. @@ -137,9 +139,10 @@ type CranPackageUpload struct { Uploader *string `json:"uploader,omitempty"` UploaderUrl *string `json:"uploader_url,omitempty"` // The raw version for this package. - Version NullableString `json:"version,omitempty"` - VersionOrig *string `json:"version_orig,omitempty"` - VulnerabilityScanResultsUrl *string `json:"vulnerability_scan_results_url,omitempty"` + Version NullableString `json:"version,omitempty"` + VersionOrig *string `json:"version_orig,omitempty"` + VulnerabilityCounts NullableWebOSVSeverityCounts `json:"vulnerability_counts,omitempty"` + VulnerabilityScanResultsUrl *string `json:"vulnerability_scan_results_url,omitempty"` AdditionalProperties map[string]interface{} } @@ -1156,6 +1159,38 @@ func (o *CranPackageUpload) SetIsHidden(v bool) { o.IsHidden = &v } +// GetIsMalwareDetected returns the IsMalwareDetected field value if set, zero value otherwise. +func (o *CranPackageUpload) GetIsMalwareDetected() bool { + if o == nil || IsNil(o.IsMalwareDetected) { + var ret bool + return ret + } + return *o.IsMalwareDetected +} + +// GetIsMalwareDetectedOk returns a tuple with the IsMalwareDetected field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CranPackageUpload) GetIsMalwareDetectedOk() (*bool, bool) { + if o == nil || IsNil(o.IsMalwareDetected) { + return nil, false + } + return o.IsMalwareDetected, true +} + +// HasIsMalwareDetected returns a boolean if a field has been set. +func (o *CranPackageUpload) HasIsMalwareDetected() bool { + if o != nil && !IsNil(o.IsMalwareDetected) { + return true + } + + return false +} + +// SetIsMalwareDetected gets a reference to the given bool and assigns it to the IsMalwareDetected field. +func (o *CranPackageUpload) SetIsMalwareDetected(v bool) { + o.IsMalwareDetected = &v +} + // GetIsMoveable returns the IsMoveable field value if set, zero value otherwise. func (o *CranPackageUpload) GetIsMoveable() bool { if o == nil || IsNil(o.IsMoveable) { @@ -3145,6 +3180,49 @@ func (o *CranPackageUpload) SetVersionOrig(v string) { o.VersionOrig = &v } +// GetVulnerabilityCounts returns the VulnerabilityCounts field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CranPackageUpload) GetVulnerabilityCounts() WebOSVSeverityCounts { + if o == nil || IsNil(o.VulnerabilityCounts.Get()) { + var ret WebOSVSeverityCounts + return ret + } + return *o.VulnerabilityCounts.Get() +} + +// GetVulnerabilityCountsOk returns a tuple with the VulnerabilityCounts 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 *CranPackageUpload) GetVulnerabilityCountsOk() (*WebOSVSeverityCounts, bool) { + if o == nil { + return nil, false + } + return o.VulnerabilityCounts.Get(), o.VulnerabilityCounts.IsSet() +} + +// HasVulnerabilityCounts returns a boolean if a field has been set. +func (o *CranPackageUpload) HasVulnerabilityCounts() bool { + if o != nil && o.VulnerabilityCounts.IsSet() { + return true + } + + return false +} + +// SetVulnerabilityCounts gets a reference to the given NullableWebOSVSeverityCounts and assigns it to the VulnerabilityCounts field. +func (o *CranPackageUpload) SetVulnerabilityCounts(v WebOSVSeverityCounts) { + o.VulnerabilityCounts.Set(&v) +} + +// SetVulnerabilityCountsNil sets the value for VulnerabilityCounts to be an explicit nil +func (o *CranPackageUpload) SetVulnerabilityCountsNil() { + o.VulnerabilityCounts.Set(nil) +} + +// UnsetVulnerabilityCounts ensures that no value is present for VulnerabilityCounts, not even an explicit nil +func (o *CranPackageUpload) UnsetVulnerabilityCounts() { + o.VulnerabilityCounts.Unset() +} + // GetVulnerabilityScanResultsUrl returns the VulnerabilityScanResultsUrl field value if set, zero value otherwise. func (o *CranPackageUpload) GetVulnerabilityScanResultsUrl() string { if o == nil || IsNil(o.VulnerabilityScanResultsUrl) { @@ -3274,6 +3352,9 @@ func (o CranPackageUpload) ToMap() (map[string]interface{}, error) { if !IsNil(o.IsHidden) { toSerialize["is_hidden"] = o.IsHidden } + if !IsNil(o.IsMalwareDetected) { + toSerialize["is_malware_detected"] = o.IsMalwareDetected + } if !IsNil(o.IsMoveable) { toSerialize["is_moveable"] = o.IsMoveable } @@ -3445,6 +3526,9 @@ func (o CranPackageUpload) ToMap() (map[string]interface{}, error) { if !IsNil(o.VersionOrig) { toSerialize["version_orig"] = o.VersionOrig } + if o.VulnerabilityCounts.IsSet() { + toSerialize["vulnerability_counts"] = o.VulnerabilityCounts.Get() + } if !IsNil(o.VulnerabilityScanResultsUrl) { toSerialize["vulnerability_scan_results_url"] = o.VulnerabilityScanResultsUrl } @@ -3499,6 +3583,7 @@ func (o *CranPackageUpload) UnmarshalJSON(data []byte) (err error) { delete(additionalProperties, "is_deleteable") delete(additionalProperties, "is_downloadable") delete(additionalProperties, "is_hidden") + delete(additionalProperties, "is_malware_detected") delete(additionalProperties, "is_moveable") delete(additionalProperties, "is_quarantinable") delete(additionalProperties, "is_quarantined") @@ -3556,6 +3641,7 @@ func (o *CranPackageUpload) UnmarshalJSON(data []byte) (err error) { delete(additionalProperties, "uploader_url") delete(additionalProperties, "version") delete(additionalProperties, "version_orig") + delete(additionalProperties, "vulnerability_counts") delete(additionalProperties, "vulnerability_scan_results_url") o.AdditionalProperties = additionalProperties } diff --git a/model_cran_package_upload_request.go b/model_cran_package_upload_request.go index 766eb182..d098d9fe 100644 --- a/model_cran_package_upload_request.go +++ b/model_cran_package_upload_request.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1288.1 +API version: 1.1341.7 Contact: support@cloudsmith.io */ @@ -23,6 +23,8 @@ var _ MappedNullable = &CranPackageUploadRequest{} type CranPackageUploadRequest struct { // Binary package uploads for macOS should specify the architecture they were built for. Architecture *string `json:"architecture,omitempty"` + // Whether the package has been detected as containing malware. Requires Ultra plan. + IsMalwareDetected *bool `json:"is_malware_detected,omitempty"` // The primary file for the package. PackageFile string `json:"package_file"` // Binary package uploads should specify the version of R they were built for. @@ -30,7 +32,8 @@ type CranPackageUploadRequest struct { // If true, the uploaded package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate. Republish *bool `json:"republish,omitempty"` // A comma-separated values list of tags to add to the package. - Tags NullableString `json:"tags,omitempty"` + Tags NullableString `json:"tags,omitempty"` + VulnerabilityCounts NullableWebOSVSeverityCounts `json:"vulnerability_counts,omitempty"` AdditionalProperties map[string]interface{} } @@ -86,6 +89,38 @@ func (o *CranPackageUploadRequest) SetArchitecture(v string) { o.Architecture = &v } +// GetIsMalwareDetected returns the IsMalwareDetected field value if set, zero value otherwise. +func (o *CranPackageUploadRequest) GetIsMalwareDetected() bool { + if o == nil || IsNil(o.IsMalwareDetected) { + var ret bool + return ret + } + return *o.IsMalwareDetected +} + +// GetIsMalwareDetectedOk returns a tuple with the IsMalwareDetected field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CranPackageUploadRequest) GetIsMalwareDetectedOk() (*bool, bool) { + if o == nil || IsNil(o.IsMalwareDetected) { + return nil, false + } + return o.IsMalwareDetected, true +} + +// HasIsMalwareDetected returns a boolean if a field has been set. +func (o *CranPackageUploadRequest) HasIsMalwareDetected() bool { + if o != nil && !IsNil(o.IsMalwareDetected) { + return true + } + + return false +} + +// SetIsMalwareDetected gets a reference to the given bool and assigns it to the IsMalwareDetected field. +func (o *CranPackageUploadRequest) SetIsMalwareDetected(v bool) { + o.IsMalwareDetected = &v +} + // GetPackageFile returns the PackageFile field value func (o *CranPackageUploadRequest) GetPackageFile() string { if o == nil { @@ -228,6 +263,49 @@ func (o *CranPackageUploadRequest) UnsetTags() { o.Tags.Unset() } +// GetVulnerabilityCounts returns the VulnerabilityCounts field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CranPackageUploadRequest) GetVulnerabilityCounts() WebOSVSeverityCounts { + if o == nil || IsNil(o.VulnerabilityCounts.Get()) { + var ret WebOSVSeverityCounts + return ret + } + return *o.VulnerabilityCounts.Get() +} + +// GetVulnerabilityCountsOk returns a tuple with the VulnerabilityCounts 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 *CranPackageUploadRequest) GetVulnerabilityCountsOk() (*WebOSVSeverityCounts, bool) { + if o == nil { + return nil, false + } + return o.VulnerabilityCounts.Get(), o.VulnerabilityCounts.IsSet() +} + +// HasVulnerabilityCounts returns a boolean if a field has been set. +func (o *CranPackageUploadRequest) HasVulnerabilityCounts() bool { + if o != nil && o.VulnerabilityCounts.IsSet() { + return true + } + + return false +} + +// SetVulnerabilityCounts gets a reference to the given NullableWebOSVSeverityCounts and assigns it to the VulnerabilityCounts field. +func (o *CranPackageUploadRequest) SetVulnerabilityCounts(v WebOSVSeverityCounts) { + o.VulnerabilityCounts.Set(&v) +} + +// SetVulnerabilityCountsNil sets the value for VulnerabilityCounts to be an explicit nil +func (o *CranPackageUploadRequest) SetVulnerabilityCountsNil() { + o.VulnerabilityCounts.Set(nil) +} + +// UnsetVulnerabilityCounts ensures that no value is present for VulnerabilityCounts, not even an explicit nil +func (o *CranPackageUploadRequest) UnsetVulnerabilityCounts() { + o.VulnerabilityCounts.Unset() +} + func (o CranPackageUploadRequest) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { @@ -241,6 +319,9 @@ func (o CranPackageUploadRequest) ToMap() (map[string]interface{}, error) { if !IsNil(o.Architecture) { toSerialize["architecture"] = o.Architecture } + if !IsNil(o.IsMalwareDetected) { + toSerialize["is_malware_detected"] = o.IsMalwareDetected + } toSerialize["package_file"] = o.PackageFile if o.RVersion.IsSet() { toSerialize["r_version"] = o.RVersion.Get() @@ -251,6 +332,9 @@ func (o CranPackageUploadRequest) ToMap() (map[string]interface{}, error) { if o.Tags.IsSet() { toSerialize["tags"] = o.Tags.Get() } + if o.VulnerabilityCounts.IsSet() { + toSerialize["vulnerability_counts"] = o.VulnerabilityCounts.Get() + } for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -295,10 +379,12 @@ func (o *CranPackageUploadRequest) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "architecture") + delete(additionalProperties, "is_malware_detected") delete(additionalProperties, "package_file") delete(additionalProperties, "r_version") delete(additionalProperties, "republish") delete(additionalProperties, "tags") + delete(additionalProperties, "vulnerability_counts") o.AdditionalProperties = additionalProperties } diff --git a/model_cran_upstream.go b/model_cran_upstream.go index 787b1129..7b374750 100644 --- a/model_cran_upstream.go +++ b/model_cran_upstream.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1288.1 +API version: 1.1341.7 Contact: support@cloudsmith.io */ diff --git a/model_cran_upstream_request.go b/model_cran_upstream_request.go index ebac82d0..0c6fb15f 100644 --- a/model_cran_upstream_request.go +++ b/model_cran_upstream_request.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1288.1 +API version: 1.1341.7 Contact: support@cloudsmith.io */ diff --git a/model_cran_upstream_request_patch.go b/model_cran_upstream_request_patch.go index 266ebe0f..75995435 100644 --- a/model_cran_upstream_request_patch.go +++ b/model_cran_upstream_request_patch.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1288.1 +API version: 1.1341.7 Contact: support@cloudsmith.io */ diff --git a/model_dart_package_upload.go b/model_dart_package_upload.go index cca8d06d..744a8c8f 100644 --- a/model_dart_package_upload.go +++ b/model_dart_package_upload.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1288.1 +API version: 1.1341.7 Contact: support@cloudsmith.io */ @@ -49,23 +49,25 @@ type DartPackageUpload struct { // Unique and permanent identifier for the package. IdentifierPerm *string `json:"identifier_perm,omitempty"` // Return a map of identifier field names and their values. - Identifiers *map[string]string `json:"identifiers,omitempty"` - Indexed *bool `json:"indexed,omitempty"` - IsCancellable *bool `json:"is_cancellable,omitempty"` - IsCopyable *bool `json:"is_copyable,omitempty"` - IsDeleteable *bool `json:"is_deleteable,omitempty"` - IsDownloadable *bool `json:"is_downloadable,omitempty"` - IsHidden *bool `json:"is_hidden,omitempty"` - IsMoveable *bool `json:"is_moveable,omitempty"` - IsQuarantinable *bool `json:"is_quarantinable,omitempty"` - IsQuarantined *bool `json:"is_quarantined,omitempty"` - IsResyncable *bool `json:"is_resyncable,omitempty"` - IsSecurityScannable *bool `json:"is_security_scannable,omitempty"` - IsSyncAwaiting *bool `json:"is_sync_awaiting,omitempty"` - IsSyncCompleted *bool `json:"is_sync_completed,omitempty"` - IsSyncFailed *bool `json:"is_sync_failed,omitempty"` - IsSyncInFlight *bool `json:"is_sync_in_flight,omitempty"` - IsSyncInProgress *bool `json:"is_sync_in_progress,omitempty"` + Identifiers *map[string]string `json:"identifiers,omitempty"` + Indexed *bool `json:"indexed,omitempty"` + IsCancellable *bool `json:"is_cancellable,omitempty"` + IsCopyable *bool `json:"is_copyable,omitempty"` + IsDeleteable *bool `json:"is_deleteable,omitempty"` + IsDownloadable *bool `json:"is_downloadable,omitempty"` + IsHidden *bool `json:"is_hidden,omitempty"` + // Whether the package has been detected as containing malware. Requires Ultra plan. + IsMalwareDetected *bool `json:"is_malware_detected,omitempty"` + IsMoveable *bool `json:"is_moveable,omitempty"` + IsQuarantinable *bool `json:"is_quarantinable,omitempty"` + IsQuarantined *bool `json:"is_quarantined,omitempty"` + IsResyncable *bool `json:"is_resyncable,omitempty"` + IsSecurityScannable *bool `json:"is_security_scannable,omitempty"` + IsSyncAwaiting *bool `json:"is_sync_awaiting,omitempty"` + IsSyncCompleted *bool `json:"is_sync_completed,omitempty"` + IsSyncFailed *bool `json:"is_sync_failed,omitempty"` + IsSyncInFlight *bool `json:"is_sync_in_flight,omitempty"` + IsSyncInProgress *bool `json:"is_sync_in_progress,omitempty"` // The license of this package. License NullableString `json:"license,omitempty"` // The name of this package. @@ -135,9 +137,10 @@ type DartPackageUpload struct { Uploader *string `json:"uploader,omitempty"` UploaderUrl *string `json:"uploader_url,omitempty"` // The raw version for this package. - Version NullableString `json:"version,omitempty"` - VersionOrig *string `json:"version_orig,omitempty"` - VulnerabilityScanResultsUrl *string `json:"vulnerability_scan_results_url,omitempty"` + Version NullableString `json:"version,omitempty"` + VersionOrig *string `json:"version_orig,omitempty"` + VulnerabilityCounts NullableWebOSVSeverityCounts `json:"vulnerability_counts,omitempty"` + VulnerabilityScanResultsUrl *string `json:"vulnerability_scan_results_url,omitempty"` AdditionalProperties map[string]interface{} } @@ -1154,6 +1157,38 @@ func (o *DartPackageUpload) SetIsHidden(v bool) { o.IsHidden = &v } +// GetIsMalwareDetected returns the IsMalwareDetected field value if set, zero value otherwise. +func (o *DartPackageUpload) GetIsMalwareDetected() bool { + if o == nil || IsNil(o.IsMalwareDetected) { + var ret bool + return ret + } + return *o.IsMalwareDetected +} + +// GetIsMalwareDetectedOk returns a tuple with the IsMalwareDetected field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DartPackageUpload) GetIsMalwareDetectedOk() (*bool, bool) { + if o == nil || IsNil(o.IsMalwareDetected) { + return nil, false + } + return o.IsMalwareDetected, true +} + +// HasIsMalwareDetected returns a boolean if a field has been set. +func (o *DartPackageUpload) HasIsMalwareDetected() bool { + if o != nil && !IsNil(o.IsMalwareDetected) { + return true + } + + return false +} + +// SetIsMalwareDetected gets a reference to the given bool and assigns it to the IsMalwareDetected field. +func (o *DartPackageUpload) SetIsMalwareDetected(v bool) { + o.IsMalwareDetected = &v +} + // GetIsMoveable returns the IsMoveable field value if set, zero value otherwise. func (o *DartPackageUpload) GetIsMoveable() bool { if o == nil || IsNil(o.IsMoveable) { @@ -3100,6 +3135,49 @@ func (o *DartPackageUpload) SetVersionOrig(v string) { o.VersionOrig = &v } +// GetVulnerabilityCounts returns the VulnerabilityCounts field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *DartPackageUpload) GetVulnerabilityCounts() WebOSVSeverityCounts { + if o == nil || IsNil(o.VulnerabilityCounts.Get()) { + var ret WebOSVSeverityCounts + return ret + } + return *o.VulnerabilityCounts.Get() +} + +// GetVulnerabilityCountsOk returns a tuple with the VulnerabilityCounts 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 *DartPackageUpload) GetVulnerabilityCountsOk() (*WebOSVSeverityCounts, bool) { + if o == nil { + return nil, false + } + return o.VulnerabilityCounts.Get(), o.VulnerabilityCounts.IsSet() +} + +// HasVulnerabilityCounts returns a boolean if a field has been set. +func (o *DartPackageUpload) HasVulnerabilityCounts() bool { + if o != nil && o.VulnerabilityCounts.IsSet() { + return true + } + + return false +} + +// SetVulnerabilityCounts gets a reference to the given NullableWebOSVSeverityCounts and assigns it to the VulnerabilityCounts field. +func (o *DartPackageUpload) SetVulnerabilityCounts(v WebOSVSeverityCounts) { + o.VulnerabilityCounts.Set(&v) +} + +// SetVulnerabilityCountsNil sets the value for VulnerabilityCounts to be an explicit nil +func (o *DartPackageUpload) SetVulnerabilityCountsNil() { + o.VulnerabilityCounts.Set(nil) +} + +// UnsetVulnerabilityCounts ensures that no value is present for VulnerabilityCounts, not even an explicit nil +func (o *DartPackageUpload) UnsetVulnerabilityCounts() { + o.VulnerabilityCounts.Unset() +} + // GetVulnerabilityScanResultsUrl returns the VulnerabilityScanResultsUrl field value if set, zero value otherwise. func (o *DartPackageUpload) GetVulnerabilityScanResultsUrl() string { if o == nil || IsNil(o.VulnerabilityScanResultsUrl) { @@ -3229,6 +3307,9 @@ func (o DartPackageUpload) ToMap() (map[string]interface{}, error) { if !IsNil(o.IsHidden) { toSerialize["is_hidden"] = o.IsHidden } + if !IsNil(o.IsMalwareDetected) { + toSerialize["is_malware_detected"] = o.IsMalwareDetected + } if !IsNil(o.IsMoveable) { toSerialize["is_moveable"] = o.IsMoveable } @@ -3397,6 +3478,9 @@ func (o DartPackageUpload) ToMap() (map[string]interface{}, error) { if !IsNil(o.VersionOrig) { toSerialize["version_orig"] = o.VersionOrig } + if o.VulnerabilityCounts.IsSet() { + toSerialize["vulnerability_counts"] = o.VulnerabilityCounts.Get() + } if !IsNil(o.VulnerabilityScanResultsUrl) { toSerialize["vulnerability_scan_results_url"] = o.VulnerabilityScanResultsUrl } @@ -3451,6 +3535,7 @@ func (o *DartPackageUpload) UnmarshalJSON(data []byte) (err error) { delete(additionalProperties, "is_deleteable") delete(additionalProperties, "is_downloadable") delete(additionalProperties, "is_hidden") + delete(additionalProperties, "is_malware_detected") delete(additionalProperties, "is_moveable") delete(additionalProperties, "is_quarantinable") delete(additionalProperties, "is_quarantined") @@ -3507,6 +3592,7 @@ func (o *DartPackageUpload) UnmarshalJSON(data []byte) (err error) { delete(additionalProperties, "uploader_url") delete(additionalProperties, "version") delete(additionalProperties, "version_orig") + delete(additionalProperties, "vulnerability_counts") delete(additionalProperties, "vulnerability_scan_results_url") o.AdditionalProperties = additionalProperties } diff --git a/model_dart_package_upload_request.go b/model_dart_package_upload_request.go index bb9588a5..a122b90a 100644 --- a/model_dart_package_upload_request.go +++ b/model_dart_package_upload_request.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1288.1 +API version: 1.1341.7 Contact: support@cloudsmith.io */ @@ -21,12 +21,15 @@ var _ MappedNullable = &DartPackageUploadRequest{} // DartPackageUploadRequest struct for DartPackageUploadRequest type DartPackageUploadRequest struct { + // Whether the package has been detected as containing malware. Requires Ultra plan. + IsMalwareDetected *bool `json:"is_malware_detected,omitempty"` // The primary file for the package. PackageFile string `json:"package_file"` // If true, the uploaded package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate. Republish *bool `json:"republish,omitempty"` // A comma-separated values list of tags to add to the package. - Tags NullableString `json:"tags,omitempty"` + Tags NullableString `json:"tags,omitempty"` + VulnerabilityCounts NullableWebOSVSeverityCounts `json:"vulnerability_counts,omitempty"` AdditionalProperties map[string]interface{} } @@ -50,6 +53,38 @@ func NewDartPackageUploadRequestWithDefaults() *DartPackageUploadRequest { return &this } +// GetIsMalwareDetected returns the IsMalwareDetected field value if set, zero value otherwise. +func (o *DartPackageUploadRequest) GetIsMalwareDetected() bool { + if o == nil || IsNil(o.IsMalwareDetected) { + var ret bool + return ret + } + return *o.IsMalwareDetected +} + +// GetIsMalwareDetectedOk returns a tuple with the IsMalwareDetected field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DartPackageUploadRequest) GetIsMalwareDetectedOk() (*bool, bool) { + if o == nil || IsNil(o.IsMalwareDetected) { + return nil, false + } + return o.IsMalwareDetected, true +} + +// HasIsMalwareDetected returns a boolean if a field has been set. +func (o *DartPackageUploadRequest) HasIsMalwareDetected() bool { + if o != nil && !IsNil(o.IsMalwareDetected) { + return true + } + + return false +} + +// SetIsMalwareDetected gets a reference to the given bool and assigns it to the IsMalwareDetected field. +func (o *DartPackageUploadRequest) SetIsMalwareDetected(v bool) { + o.IsMalwareDetected = &v +} + // GetPackageFile returns the PackageFile field value func (o *DartPackageUploadRequest) GetPackageFile() string { if o == nil { @@ -149,6 +184,49 @@ func (o *DartPackageUploadRequest) UnsetTags() { o.Tags.Unset() } +// GetVulnerabilityCounts returns the VulnerabilityCounts field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *DartPackageUploadRequest) GetVulnerabilityCounts() WebOSVSeverityCounts { + if o == nil || IsNil(o.VulnerabilityCounts.Get()) { + var ret WebOSVSeverityCounts + return ret + } + return *o.VulnerabilityCounts.Get() +} + +// GetVulnerabilityCountsOk returns a tuple with the VulnerabilityCounts 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 *DartPackageUploadRequest) GetVulnerabilityCountsOk() (*WebOSVSeverityCounts, bool) { + if o == nil { + return nil, false + } + return o.VulnerabilityCounts.Get(), o.VulnerabilityCounts.IsSet() +} + +// HasVulnerabilityCounts returns a boolean if a field has been set. +func (o *DartPackageUploadRequest) HasVulnerabilityCounts() bool { + if o != nil && o.VulnerabilityCounts.IsSet() { + return true + } + + return false +} + +// SetVulnerabilityCounts gets a reference to the given NullableWebOSVSeverityCounts and assigns it to the VulnerabilityCounts field. +func (o *DartPackageUploadRequest) SetVulnerabilityCounts(v WebOSVSeverityCounts) { + o.VulnerabilityCounts.Set(&v) +} + +// SetVulnerabilityCountsNil sets the value for VulnerabilityCounts to be an explicit nil +func (o *DartPackageUploadRequest) SetVulnerabilityCountsNil() { + o.VulnerabilityCounts.Set(nil) +} + +// UnsetVulnerabilityCounts ensures that no value is present for VulnerabilityCounts, not even an explicit nil +func (o *DartPackageUploadRequest) UnsetVulnerabilityCounts() { + o.VulnerabilityCounts.Unset() +} + func (o DartPackageUploadRequest) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { @@ -159,6 +237,9 @@ func (o DartPackageUploadRequest) MarshalJSON() ([]byte, error) { func (o DartPackageUploadRequest) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} + if !IsNil(o.IsMalwareDetected) { + toSerialize["is_malware_detected"] = o.IsMalwareDetected + } toSerialize["package_file"] = o.PackageFile if !IsNil(o.Republish) { toSerialize["republish"] = o.Republish @@ -166,6 +247,9 @@ func (o DartPackageUploadRequest) ToMap() (map[string]interface{}, error) { if o.Tags.IsSet() { toSerialize["tags"] = o.Tags.Get() } + if o.VulnerabilityCounts.IsSet() { + toSerialize["vulnerability_counts"] = o.VulnerabilityCounts.Get() + } for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -209,9 +293,11 @@ func (o *DartPackageUploadRequest) UnmarshalJSON(data []byte) (err error) { additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "is_malware_detected") delete(additionalProperties, "package_file") delete(additionalProperties, "republish") delete(additionalProperties, "tags") + delete(additionalProperties, "vulnerability_counts") o.AdditionalProperties = additionalProperties } diff --git a/model_dart_upstream.go b/model_dart_upstream.go index de588dfe..83869cf8 100644 --- a/model_dart_upstream.go +++ b/model_dart_upstream.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1288.1 +API version: 1.1341.7 Contact: support@cloudsmith.io */ diff --git a/model_dart_upstream_request.go b/model_dart_upstream_request.go index b5db4876..1141b363 100644 --- a/model_dart_upstream_request.go +++ b/model_dart_upstream_request.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1288.1 +API version: 1.1341.7 Contact: support@cloudsmith.io */ diff --git a/model_dart_upstream_request_patch.go b/model_dart_upstream_request_patch.go index d30848bd..149736b3 100644 --- a/model_dart_upstream_request_patch.go +++ b/model_dart_upstream_request_patch.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1288.1 +API version: 1.1341.7 Contact: support@cloudsmith.io */ diff --git a/model_deb_package_upload.go b/model_deb_package_upload.go index b3eac440..09dedb39 100644 --- a/model_deb_package_upload.go +++ b/model_deb_package_upload.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1288.1 +API version: 1.1341.7 Contact: support@cloudsmith.io */ @@ -49,23 +49,25 @@ type DebPackageUpload struct { // Unique and permanent identifier for the package. IdentifierPerm *string `json:"identifier_perm,omitempty"` // Return a map of identifier field names and their values. - Identifiers *map[string]string `json:"identifiers,omitempty"` - Indexed *bool `json:"indexed,omitempty"` - IsCancellable *bool `json:"is_cancellable,omitempty"` - IsCopyable *bool `json:"is_copyable,omitempty"` - IsDeleteable *bool `json:"is_deleteable,omitempty"` - IsDownloadable *bool `json:"is_downloadable,omitempty"` - IsHidden *bool `json:"is_hidden,omitempty"` - IsMoveable *bool `json:"is_moveable,omitempty"` - IsQuarantinable *bool `json:"is_quarantinable,omitempty"` - IsQuarantined *bool `json:"is_quarantined,omitempty"` - IsResyncable *bool `json:"is_resyncable,omitempty"` - IsSecurityScannable *bool `json:"is_security_scannable,omitempty"` - IsSyncAwaiting *bool `json:"is_sync_awaiting,omitempty"` - IsSyncCompleted *bool `json:"is_sync_completed,omitempty"` - IsSyncFailed *bool `json:"is_sync_failed,omitempty"` - IsSyncInFlight *bool `json:"is_sync_in_flight,omitempty"` - IsSyncInProgress *bool `json:"is_sync_in_progress,omitempty"` + Identifiers *map[string]string `json:"identifiers,omitempty"` + Indexed *bool `json:"indexed,omitempty"` + IsCancellable *bool `json:"is_cancellable,omitempty"` + IsCopyable *bool `json:"is_copyable,omitempty"` + IsDeleteable *bool `json:"is_deleteable,omitempty"` + IsDownloadable *bool `json:"is_downloadable,omitempty"` + IsHidden *bool `json:"is_hidden,omitempty"` + // Whether the package has been detected as containing malware. Requires Ultra plan. + IsMalwareDetected *bool `json:"is_malware_detected,omitempty"` + IsMoveable *bool `json:"is_moveable,omitempty"` + IsQuarantinable *bool `json:"is_quarantinable,omitempty"` + IsQuarantined *bool `json:"is_quarantined,omitempty"` + IsResyncable *bool `json:"is_resyncable,omitempty"` + IsSecurityScannable *bool `json:"is_security_scannable,omitempty"` + IsSyncAwaiting *bool `json:"is_sync_awaiting,omitempty"` + IsSyncCompleted *bool `json:"is_sync_completed,omitempty"` + IsSyncFailed *bool `json:"is_sync_failed,omitempty"` + IsSyncInFlight *bool `json:"is_sync_in_flight,omitempty"` + IsSyncInProgress *bool `json:"is_sync_in_progress,omitempty"` // The license of this package. License NullableString `json:"license,omitempty"` // The name of this package. @@ -135,9 +137,10 @@ type DebPackageUpload struct { Uploader *string `json:"uploader,omitempty"` UploaderUrl *string `json:"uploader_url,omitempty"` // The raw version for this package. - Version NullableString `json:"version,omitempty"` - VersionOrig *string `json:"version_orig,omitempty"` - VulnerabilityScanResultsUrl *string `json:"vulnerability_scan_results_url,omitempty"` + Version NullableString `json:"version,omitempty"` + VersionOrig *string `json:"version_orig,omitempty"` + VulnerabilityCounts NullableWebOSVSeverityCounts `json:"vulnerability_counts,omitempty"` + VulnerabilityScanResultsUrl *string `json:"vulnerability_scan_results_url,omitempty"` AdditionalProperties map[string]interface{} } @@ -1154,6 +1157,38 @@ func (o *DebPackageUpload) SetIsHidden(v bool) { o.IsHidden = &v } +// GetIsMalwareDetected returns the IsMalwareDetected field value if set, zero value otherwise. +func (o *DebPackageUpload) GetIsMalwareDetected() bool { + if o == nil || IsNil(o.IsMalwareDetected) { + var ret bool + return ret + } + return *o.IsMalwareDetected +} + +// GetIsMalwareDetectedOk returns a tuple with the IsMalwareDetected field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DebPackageUpload) GetIsMalwareDetectedOk() (*bool, bool) { + if o == nil || IsNil(o.IsMalwareDetected) { + return nil, false + } + return o.IsMalwareDetected, true +} + +// HasIsMalwareDetected returns a boolean if a field has been set. +func (o *DebPackageUpload) HasIsMalwareDetected() bool { + if o != nil && !IsNil(o.IsMalwareDetected) { + return true + } + + return false +} + +// SetIsMalwareDetected gets a reference to the given bool and assigns it to the IsMalwareDetected field. +func (o *DebPackageUpload) SetIsMalwareDetected(v bool) { + o.IsMalwareDetected = &v +} + // GetIsMoveable returns the IsMoveable field value if set, zero value otherwise. func (o *DebPackageUpload) GetIsMoveable() bool { if o == nil || IsNil(o.IsMoveable) { @@ -3100,6 +3135,49 @@ func (o *DebPackageUpload) SetVersionOrig(v string) { o.VersionOrig = &v } +// GetVulnerabilityCounts returns the VulnerabilityCounts field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *DebPackageUpload) GetVulnerabilityCounts() WebOSVSeverityCounts { + if o == nil || IsNil(o.VulnerabilityCounts.Get()) { + var ret WebOSVSeverityCounts + return ret + } + return *o.VulnerabilityCounts.Get() +} + +// GetVulnerabilityCountsOk returns a tuple with the VulnerabilityCounts 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 *DebPackageUpload) GetVulnerabilityCountsOk() (*WebOSVSeverityCounts, bool) { + if o == nil { + return nil, false + } + return o.VulnerabilityCounts.Get(), o.VulnerabilityCounts.IsSet() +} + +// HasVulnerabilityCounts returns a boolean if a field has been set. +func (o *DebPackageUpload) HasVulnerabilityCounts() bool { + if o != nil && o.VulnerabilityCounts.IsSet() { + return true + } + + return false +} + +// SetVulnerabilityCounts gets a reference to the given NullableWebOSVSeverityCounts and assigns it to the VulnerabilityCounts field. +func (o *DebPackageUpload) SetVulnerabilityCounts(v WebOSVSeverityCounts) { + o.VulnerabilityCounts.Set(&v) +} + +// SetVulnerabilityCountsNil sets the value for VulnerabilityCounts to be an explicit nil +func (o *DebPackageUpload) SetVulnerabilityCountsNil() { + o.VulnerabilityCounts.Set(nil) +} + +// UnsetVulnerabilityCounts ensures that no value is present for VulnerabilityCounts, not even an explicit nil +func (o *DebPackageUpload) UnsetVulnerabilityCounts() { + o.VulnerabilityCounts.Unset() +} + // GetVulnerabilityScanResultsUrl returns the VulnerabilityScanResultsUrl field value if set, zero value otherwise. func (o *DebPackageUpload) GetVulnerabilityScanResultsUrl() string { if o == nil || IsNil(o.VulnerabilityScanResultsUrl) { @@ -3229,6 +3307,9 @@ func (o DebPackageUpload) ToMap() (map[string]interface{}, error) { if !IsNil(o.IsHidden) { toSerialize["is_hidden"] = o.IsHidden } + if !IsNil(o.IsMalwareDetected) { + toSerialize["is_malware_detected"] = o.IsMalwareDetected + } if !IsNil(o.IsMoveable) { toSerialize["is_moveable"] = o.IsMoveable } @@ -3397,6 +3478,9 @@ func (o DebPackageUpload) ToMap() (map[string]interface{}, error) { if !IsNil(o.VersionOrig) { toSerialize["version_orig"] = o.VersionOrig } + if o.VulnerabilityCounts.IsSet() { + toSerialize["vulnerability_counts"] = o.VulnerabilityCounts.Get() + } if !IsNil(o.VulnerabilityScanResultsUrl) { toSerialize["vulnerability_scan_results_url"] = o.VulnerabilityScanResultsUrl } @@ -3451,6 +3535,7 @@ func (o *DebPackageUpload) UnmarshalJSON(data []byte) (err error) { delete(additionalProperties, "is_deleteable") delete(additionalProperties, "is_downloadable") delete(additionalProperties, "is_hidden") + delete(additionalProperties, "is_malware_detected") delete(additionalProperties, "is_moveable") delete(additionalProperties, "is_quarantinable") delete(additionalProperties, "is_quarantined") @@ -3507,6 +3592,7 @@ func (o *DebPackageUpload) UnmarshalJSON(data []byte) (err error) { delete(additionalProperties, "uploader_url") delete(additionalProperties, "version") delete(additionalProperties, "version_orig") + delete(additionalProperties, "vulnerability_counts") delete(additionalProperties, "vulnerability_scan_results_url") o.AdditionalProperties = additionalProperties } diff --git a/model_deb_package_upload_request.go b/model_deb_package_upload_request.go index 3ac1c92e..cff9e4c9 100644 --- a/model_deb_package_upload_request.go +++ b/model_deb_package_upload_request.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1288.1 +API version: 1.1341.7 Contact: support@cloudsmith.io */ @@ -27,6 +27,8 @@ type DebPackageUploadRequest struct { Component *string `json:"component,omitempty" validate:"regexp=^[-_.\\\\w]+$"` // The distribution to store the package for. Distribution string `json:"distribution"` + // Whether the package has been detected as containing malware. Requires Ultra plan. + IsMalwareDetected *bool `json:"is_malware_detected,omitempty"` // The primary file for the package. PackageFile string `json:"package_file"` // If true, the uploaded package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate. @@ -34,7 +36,8 @@ type DebPackageUploadRequest struct { // The sources archive containing the source code for the binary SourcesFile NullableString `json:"sources_file,omitempty"` // A comma-separated values list of tags to add to the package. - Tags NullableString `json:"tags,omitempty"` + Tags NullableString `json:"tags,omitempty"` + VulnerabilityCounts NullableWebOSVSeverityCounts `json:"vulnerability_counts,omitempty"` AdditionalProperties map[string]interface{} } @@ -162,6 +165,38 @@ func (o *DebPackageUploadRequest) SetDistribution(v string) { o.Distribution = v } +// GetIsMalwareDetected returns the IsMalwareDetected field value if set, zero value otherwise. +func (o *DebPackageUploadRequest) GetIsMalwareDetected() bool { + if o == nil || IsNil(o.IsMalwareDetected) { + var ret bool + return ret + } + return *o.IsMalwareDetected +} + +// GetIsMalwareDetectedOk returns a tuple with the IsMalwareDetected field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DebPackageUploadRequest) GetIsMalwareDetectedOk() (*bool, bool) { + if o == nil || IsNil(o.IsMalwareDetected) { + return nil, false + } + return o.IsMalwareDetected, true +} + +// HasIsMalwareDetected returns a boolean if a field has been set. +func (o *DebPackageUploadRequest) HasIsMalwareDetected() bool { + if o != nil && !IsNil(o.IsMalwareDetected) { + return true + } + + return false +} + +// SetIsMalwareDetected gets a reference to the given bool and assigns it to the IsMalwareDetected field. +func (o *DebPackageUploadRequest) SetIsMalwareDetected(v bool) { + o.IsMalwareDetected = &v +} + // GetPackageFile returns the PackageFile field value func (o *DebPackageUploadRequest) GetPackageFile() string { if o == nil { @@ -304,6 +339,49 @@ func (o *DebPackageUploadRequest) UnsetTags() { o.Tags.Unset() } +// GetVulnerabilityCounts returns the VulnerabilityCounts field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *DebPackageUploadRequest) GetVulnerabilityCounts() WebOSVSeverityCounts { + if o == nil || IsNil(o.VulnerabilityCounts.Get()) { + var ret WebOSVSeverityCounts + return ret + } + return *o.VulnerabilityCounts.Get() +} + +// GetVulnerabilityCountsOk returns a tuple with the VulnerabilityCounts 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 *DebPackageUploadRequest) GetVulnerabilityCountsOk() (*WebOSVSeverityCounts, bool) { + if o == nil { + return nil, false + } + return o.VulnerabilityCounts.Get(), o.VulnerabilityCounts.IsSet() +} + +// HasVulnerabilityCounts returns a boolean if a field has been set. +func (o *DebPackageUploadRequest) HasVulnerabilityCounts() bool { + if o != nil && o.VulnerabilityCounts.IsSet() { + return true + } + + return false +} + +// SetVulnerabilityCounts gets a reference to the given NullableWebOSVSeverityCounts and assigns it to the VulnerabilityCounts field. +func (o *DebPackageUploadRequest) SetVulnerabilityCounts(v WebOSVSeverityCounts) { + o.VulnerabilityCounts.Set(&v) +} + +// SetVulnerabilityCountsNil sets the value for VulnerabilityCounts to be an explicit nil +func (o *DebPackageUploadRequest) SetVulnerabilityCountsNil() { + o.VulnerabilityCounts.Set(nil) +} + +// UnsetVulnerabilityCounts ensures that no value is present for VulnerabilityCounts, not even an explicit nil +func (o *DebPackageUploadRequest) UnsetVulnerabilityCounts() { + o.VulnerabilityCounts.Unset() +} + func (o DebPackageUploadRequest) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { @@ -321,6 +399,9 @@ func (o DebPackageUploadRequest) ToMap() (map[string]interface{}, error) { toSerialize["component"] = o.Component } toSerialize["distribution"] = o.Distribution + if !IsNil(o.IsMalwareDetected) { + toSerialize["is_malware_detected"] = o.IsMalwareDetected + } toSerialize["package_file"] = o.PackageFile if !IsNil(o.Republish) { toSerialize["republish"] = o.Republish @@ -331,6 +412,9 @@ func (o DebPackageUploadRequest) ToMap() (map[string]interface{}, error) { if o.Tags.IsSet() { toSerialize["tags"] = o.Tags.Get() } + if o.VulnerabilityCounts.IsSet() { + toSerialize["vulnerability_counts"] = o.VulnerabilityCounts.Get() + } for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -378,10 +462,12 @@ func (o *DebPackageUploadRequest) UnmarshalJSON(data []byte) (err error) { delete(additionalProperties, "changes_file") delete(additionalProperties, "component") delete(additionalProperties, "distribution") + delete(additionalProperties, "is_malware_detected") delete(additionalProperties, "package_file") delete(additionalProperties, "republish") delete(additionalProperties, "sources_file") delete(additionalProperties, "tags") + delete(additionalProperties, "vulnerability_counts") o.AdditionalProperties = additionalProperties } diff --git a/model_deb_upstream.go b/model_deb_upstream.go index 2e4712e7..76a5922f 100644 --- a/model_deb_upstream.go +++ b/model_deb_upstream.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1288.1 +API version: 1.1341.7 Contact: support@cloudsmith.io */ diff --git a/model_deb_upstream_request.go b/model_deb_upstream_request.go index 2f0e3d7b..6b6b082d 100644 --- a/model_deb_upstream_request.go +++ b/model_deb_upstream_request.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1288.1 +API version: 1.1341.7 Contact: support@cloudsmith.io */ diff --git a/model_deb_upstream_request_patch.go b/model_deb_upstream_request_patch.go index 71cad343..e5993095 100644 --- a/model_deb_upstream_request_patch.go +++ b/model_deb_upstream_request_patch.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1288.1 +API version: 1.1341.7 Contact: support@cloudsmith.io */ diff --git a/model_distribution.go b/model_distribution.go index b5e08a83..ba0fc6f2 100644 --- a/model_distribution.go +++ b/model_distribution.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1288.1 +API version: 1.1341.7 Contact: support@cloudsmith.io */ diff --git a/model_distribution_full.go b/model_distribution_full.go index e74e18a0..a1c86fef 100644 --- a/model_distribution_full.go +++ b/model_distribution_full.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1288.1 +API version: 1.1341.7 Contact: support@cloudsmith.io */ diff --git a/model_distribution_version.go b/model_distribution_version.go index ceb389c0..5474d26d 100644 --- a/model_distribution_version.go +++ b/model_distribution_version.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1288.1 +API version: 1.1341.7 Contact: support@cloudsmith.io */ diff --git a/model_docker_package_upload.go b/model_docker_package_upload.go index 3835f0ac..9a5e5d94 100644 --- a/model_docker_package_upload.go +++ b/model_docker_package_upload.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1288.1 +API version: 1.1341.7 Contact: support@cloudsmith.io */ @@ -49,23 +49,25 @@ type DockerPackageUpload struct { // Unique and permanent identifier for the package. IdentifierPerm *string `json:"identifier_perm,omitempty"` // Return a map of identifier field names and their values. - Identifiers *map[string]string `json:"identifiers,omitempty"` - Indexed *bool `json:"indexed,omitempty"` - IsCancellable *bool `json:"is_cancellable,omitempty"` - IsCopyable *bool `json:"is_copyable,omitempty"` - IsDeleteable *bool `json:"is_deleteable,omitempty"` - IsDownloadable *bool `json:"is_downloadable,omitempty"` - IsHidden *bool `json:"is_hidden,omitempty"` - IsMoveable *bool `json:"is_moveable,omitempty"` - IsQuarantinable *bool `json:"is_quarantinable,omitempty"` - IsQuarantined *bool `json:"is_quarantined,omitempty"` - IsResyncable *bool `json:"is_resyncable,omitempty"` - IsSecurityScannable *bool `json:"is_security_scannable,omitempty"` - IsSyncAwaiting *bool `json:"is_sync_awaiting,omitempty"` - IsSyncCompleted *bool `json:"is_sync_completed,omitempty"` - IsSyncFailed *bool `json:"is_sync_failed,omitempty"` - IsSyncInFlight *bool `json:"is_sync_in_flight,omitempty"` - IsSyncInProgress *bool `json:"is_sync_in_progress,omitempty"` + Identifiers *map[string]string `json:"identifiers,omitempty"` + Indexed *bool `json:"indexed,omitempty"` + IsCancellable *bool `json:"is_cancellable,omitempty"` + IsCopyable *bool `json:"is_copyable,omitempty"` + IsDeleteable *bool `json:"is_deleteable,omitempty"` + IsDownloadable *bool `json:"is_downloadable,omitempty"` + IsHidden *bool `json:"is_hidden,omitempty"` + // Whether the package has been detected as containing malware. Requires Ultra plan. + IsMalwareDetected *bool `json:"is_malware_detected,omitempty"` + IsMoveable *bool `json:"is_moveable,omitempty"` + IsQuarantinable *bool `json:"is_quarantinable,omitempty"` + IsQuarantined *bool `json:"is_quarantined,omitempty"` + IsResyncable *bool `json:"is_resyncable,omitempty"` + IsSecurityScannable *bool `json:"is_security_scannable,omitempty"` + IsSyncAwaiting *bool `json:"is_sync_awaiting,omitempty"` + IsSyncCompleted *bool `json:"is_sync_completed,omitempty"` + IsSyncFailed *bool `json:"is_sync_failed,omitempty"` + IsSyncInFlight *bool `json:"is_sync_in_flight,omitempty"` + IsSyncInProgress *bool `json:"is_sync_in_progress,omitempty"` // The license of this package. License NullableString `json:"license,omitempty"` // The name of this package. @@ -135,9 +137,10 @@ type DockerPackageUpload struct { Uploader *string `json:"uploader,omitempty"` UploaderUrl *string `json:"uploader_url,omitempty"` // The raw version for this package. - Version NullableString `json:"version,omitempty"` - VersionOrig *string `json:"version_orig,omitempty"` - VulnerabilityScanResultsUrl *string `json:"vulnerability_scan_results_url,omitempty"` + Version NullableString `json:"version,omitempty"` + VersionOrig *string `json:"version_orig,omitempty"` + VulnerabilityCounts NullableWebOSVSeverityCounts `json:"vulnerability_counts,omitempty"` + VulnerabilityScanResultsUrl *string `json:"vulnerability_scan_results_url,omitempty"` AdditionalProperties map[string]interface{} } @@ -1154,6 +1157,38 @@ func (o *DockerPackageUpload) SetIsHidden(v bool) { o.IsHidden = &v } +// GetIsMalwareDetected returns the IsMalwareDetected field value if set, zero value otherwise. +func (o *DockerPackageUpload) GetIsMalwareDetected() bool { + if o == nil || IsNil(o.IsMalwareDetected) { + var ret bool + return ret + } + return *o.IsMalwareDetected +} + +// GetIsMalwareDetectedOk returns a tuple with the IsMalwareDetected field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DockerPackageUpload) GetIsMalwareDetectedOk() (*bool, bool) { + if o == nil || IsNil(o.IsMalwareDetected) { + return nil, false + } + return o.IsMalwareDetected, true +} + +// HasIsMalwareDetected returns a boolean if a field has been set. +func (o *DockerPackageUpload) HasIsMalwareDetected() bool { + if o != nil && !IsNil(o.IsMalwareDetected) { + return true + } + + return false +} + +// SetIsMalwareDetected gets a reference to the given bool and assigns it to the IsMalwareDetected field. +func (o *DockerPackageUpload) SetIsMalwareDetected(v bool) { + o.IsMalwareDetected = &v +} + // GetIsMoveable returns the IsMoveable field value if set, zero value otherwise. func (o *DockerPackageUpload) GetIsMoveable() bool { if o == nil || IsNil(o.IsMoveable) { @@ -3100,6 +3135,49 @@ func (o *DockerPackageUpload) SetVersionOrig(v string) { o.VersionOrig = &v } +// GetVulnerabilityCounts returns the VulnerabilityCounts field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *DockerPackageUpload) GetVulnerabilityCounts() WebOSVSeverityCounts { + if o == nil || IsNil(o.VulnerabilityCounts.Get()) { + var ret WebOSVSeverityCounts + return ret + } + return *o.VulnerabilityCounts.Get() +} + +// GetVulnerabilityCountsOk returns a tuple with the VulnerabilityCounts 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 *DockerPackageUpload) GetVulnerabilityCountsOk() (*WebOSVSeverityCounts, bool) { + if o == nil { + return nil, false + } + return o.VulnerabilityCounts.Get(), o.VulnerabilityCounts.IsSet() +} + +// HasVulnerabilityCounts returns a boolean if a field has been set. +func (o *DockerPackageUpload) HasVulnerabilityCounts() bool { + if o != nil && o.VulnerabilityCounts.IsSet() { + return true + } + + return false +} + +// SetVulnerabilityCounts gets a reference to the given NullableWebOSVSeverityCounts and assigns it to the VulnerabilityCounts field. +func (o *DockerPackageUpload) SetVulnerabilityCounts(v WebOSVSeverityCounts) { + o.VulnerabilityCounts.Set(&v) +} + +// SetVulnerabilityCountsNil sets the value for VulnerabilityCounts to be an explicit nil +func (o *DockerPackageUpload) SetVulnerabilityCountsNil() { + o.VulnerabilityCounts.Set(nil) +} + +// UnsetVulnerabilityCounts ensures that no value is present for VulnerabilityCounts, not even an explicit nil +func (o *DockerPackageUpload) UnsetVulnerabilityCounts() { + o.VulnerabilityCounts.Unset() +} + // GetVulnerabilityScanResultsUrl returns the VulnerabilityScanResultsUrl field value if set, zero value otherwise. func (o *DockerPackageUpload) GetVulnerabilityScanResultsUrl() string { if o == nil || IsNil(o.VulnerabilityScanResultsUrl) { @@ -3229,6 +3307,9 @@ func (o DockerPackageUpload) ToMap() (map[string]interface{}, error) { if !IsNil(o.IsHidden) { toSerialize["is_hidden"] = o.IsHidden } + if !IsNil(o.IsMalwareDetected) { + toSerialize["is_malware_detected"] = o.IsMalwareDetected + } if !IsNil(o.IsMoveable) { toSerialize["is_moveable"] = o.IsMoveable } @@ -3397,6 +3478,9 @@ func (o DockerPackageUpload) ToMap() (map[string]interface{}, error) { if !IsNil(o.VersionOrig) { toSerialize["version_orig"] = o.VersionOrig } + if o.VulnerabilityCounts.IsSet() { + toSerialize["vulnerability_counts"] = o.VulnerabilityCounts.Get() + } if !IsNil(o.VulnerabilityScanResultsUrl) { toSerialize["vulnerability_scan_results_url"] = o.VulnerabilityScanResultsUrl } @@ -3451,6 +3535,7 @@ func (o *DockerPackageUpload) UnmarshalJSON(data []byte) (err error) { delete(additionalProperties, "is_deleteable") delete(additionalProperties, "is_downloadable") delete(additionalProperties, "is_hidden") + delete(additionalProperties, "is_malware_detected") delete(additionalProperties, "is_moveable") delete(additionalProperties, "is_quarantinable") delete(additionalProperties, "is_quarantined") @@ -3507,6 +3592,7 @@ func (o *DockerPackageUpload) UnmarshalJSON(data []byte) (err error) { delete(additionalProperties, "uploader_url") delete(additionalProperties, "version") delete(additionalProperties, "version_orig") + delete(additionalProperties, "vulnerability_counts") delete(additionalProperties, "vulnerability_scan_results_url") o.AdditionalProperties = additionalProperties } diff --git a/model_docker_package_upload_request.go b/model_docker_package_upload_request.go index 21e5f8b1..31f4c6f5 100644 --- a/model_docker_package_upload_request.go +++ b/model_docker_package_upload_request.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1288.1 +API version: 1.1341.7 Contact: support@cloudsmith.io */ @@ -21,12 +21,15 @@ var _ MappedNullable = &DockerPackageUploadRequest{} // DockerPackageUploadRequest struct for DockerPackageUploadRequest type DockerPackageUploadRequest struct { + // Whether the package has been detected as containing malware. Requires Ultra plan. + IsMalwareDetected *bool `json:"is_malware_detected,omitempty"` // The primary file for the package. PackageFile string `json:"package_file"` // If true, the uploaded package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate. Republish *bool `json:"republish,omitempty"` // A comma-separated values list of tags to add to the package. - Tags NullableString `json:"tags,omitempty"` + Tags NullableString `json:"tags,omitempty"` + VulnerabilityCounts NullableWebOSVSeverityCounts `json:"vulnerability_counts,omitempty"` AdditionalProperties map[string]interface{} } @@ -50,6 +53,38 @@ func NewDockerPackageUploadRequestWithDefaults() *DockerPackageUploadRequest { return &this } +// GetIsMalwareDetected returns the IsMalwareDetected field value if set, zero value otherwise. +func (o *DockerPackageUploadRequest) GetIsMalwareDetected() bool { + if o == nil || IsNil(o.IsMalwareDetected) { + var ret bool + return ret + } + return *o.IsMalwareDetected +} + +// GetIsMalwareDetectedOk returns a tuple with the IsMalwareDetected field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DockerPackageUploadRequest) GetIsMalwareDetectedOk() (*bool, bool) { + if o == nil || IsNil(o.IsMalwareDetected) { + return nil, false + } + return o.IsMalwareDetected, true +} + +// HasIsMalwareDetected returns a boolean if a field has been set. +func (o *DockerPackageUploadRequest) HasIsMalwareDetected() bool { + if o != nil && !IsNil(o.IsMalwareDetected) { + return true + } + + return false +} + +// SetIsMalwareDetected gets a reference to the given bool and assigns it to the IsMalwareDetected field. +func (o *DockerPackageUploadRequest) SetIsMalwareDetected(v bool) { + o.IsMalwareDetected = &v +} + // GetPackageFile returns the PackageFile field value func (o *DockerPackageUploadRequest) GetPackageFile() string { if o == nil { @@ -149,6 +184,49 @@ func (o *DockerPackageUploadRequest) UnsetTags() { o.Tags.Unset() } +// GetVulnerabilityCounts returns the VulnerabilityCounts field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *DockerPackageUploadRequest) GetVulnerabilityCounts() WebOSVSeverityCounts { + if o == nil || IsNil(o.VulnerabilityCounts.Get()) { + var ret WebOSVSeverityCounts + return ret + } + return *o.VulnerabilityCounts.Get() +} + +// GetVulnerabilityCountsOk returns a tuple with the VulnerabilityCounts 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 *DockerPackageUploadRequest) GetVulnerabilityCountsOk() (*WebOSVSeverityCounts, bool) { + if o == nil { + return nil, false + } + return o.VulnerabilityCounts.Get(), o.VulnerabilityCounts.IsSet() +} + +// HasVulnerabilityCounts returns a boolean if a field has been set. +func (o *DockerPackageUploadRequest) HasVulnerabilityCounts() bool { + if o != nil && o.VulnerabilityCounts.IsSet() { + return true + } + + return false +} + +// SetVulnerabilityCounts gets a reference to the given NullableWebOSVSeverityCounts and assigns it to the VulnerabilityCounts field. +func (o *DockerPackageUploadRequest) SetVulnerabilityCounts(v WebOSVSeverityCounts) { + o.VulnerabilityCounts.Set(&v) +} + +// SetVulnerabilityCountsNil sets the value for VulnerabilityCounts to be an explicit nil +func (o *DockerPackageUploadRequest) SetVulnerabilityCountsNil() { + o.VulnerabilityCounts.Set(nil) +} + +// UnsetVulnerabilityCounts ensures that no value is present for VulnerabilityCounts, not even an explicit nil +func (o *DockerPackageUploadRequest) UnsetVulnerabilityCounts() { + o.VulnerabilityCounts.Unset() +} + func (o DockerPackageUploadRequest) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { @@ -159,6 +237,9 @@ func (o DockerPackageUploadRequest) MarshalJSON() ([]byte, error) { func (o DockerPackageUploadRequest) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} + if !IsNil(o.IsMalwareDetected) { + toSerialize["is_malware_detected"] = o.IsMalwareDetected + } toSerialize["package_file"] = o.PackageFile if !IsNil(o.Republish) { toSerialize["republish"] = o.Republish @@ -166,6 +247,9 @@ func (o DockerPackageUploadRequest) ToMap() (map[string]interface{}, error) { if o.Tags.IsSet() { toSerialize["tags"] = o.Tags.Get() } + if o.VulnerabilityCounts.IsSet() { + toSerialize["vulnerability_counts"] = o.VulnerabilityCounts.Get() + } for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -209,9 +293,11 @@ func (o *DockerPackageUploadRequest) UnmarshalJSON(data []byte) (err error) { additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "is_malware_detected") delete(additionalProperties, "package_file") delete(additionalProperties, "republish") delete(additionalProperties, "tags") + delete(additionalProperties, "vulnerability_counts") o.AdditionalProperties = additionalProperties } diff --git a/model_docker_upstream.go b/model_docker_upstream.go index d0433a98..e860f89c 100644 --- a/model_docker_upstream.go +++ b/model_docker_upstream.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1288.1 +API version: 1.1341.7 Contact: support@cloudsmith.io */ diff --git a/model_docker_upstream_request.go b/model_docker_upstream_request.go index 5a6f9ceb..6e37df9d 100644 --- a/model_docker_upstream_request.go +++ b/model_docker_upstream_request.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1288.1 +API version: 1.1341.7 Contact: support@cloudsmith.io */ diff --git a/model_docker_upstream_request_patch.go b/model_docker_upstream_request_patch.go index 02210a95..4fad5d69 100644 --- a/model_docker_upstream_request_patch.go +++ b/model_docker_upstream_request_patch.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1288.1 +API version: 1.1341.7 Contact: support@cloudsmith.io */ diff --git a/model_dynamic_mapping.go b/model_dynamic_mapping.go index 3864b444..7b60224a 100644 --- a/model_dynamic_mapping.go +++ b/model_dynamic_mapping.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1288.1 +API version: 1.1341.7 Contact: support@cloudsmith.io */ diff --git a/model_entitlement_usage_metrics.go b/model_entitlement_usage_metrics.go index 73cdf216..00597940 100644 --- a/model_entitlement_usage_metrics.go +++ b/model_entitlement_usage_metrics.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1288.1 +API version: 1.1341.7 Contact: support@cloudsmith.io */ diff --git a/model_error_detail.go b/model_error_detail.go index 932b9c44..f709337a 100644 --- a/model_error_detail.go +++ b/model_error_detail.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1288.1 +API version: 1.1341.7 Contact: support@cloudsmith.io */ diff --git a/model_eula.go b/model_eula.go index 3dacfb45..41863bba 100644 --- a/model_eula.go +++ b/model_eula.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1288.1 +API version: 1.1341.7 Contact: support@cloudsmith.io */ diff --git a/model_format.go b/model_format.go index 1f280c61..d3081d9f 100644 --- a/model_format.go +++ b/model_format.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1288.1 +API version: 1.1341.7 Contact: support@cloudsmith.io */ diff --git a/model_format_support.go b/model_format_support.go index 97de905f..85185d77 100644 --- a/model_format_support.go +++ b/model_format_support.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1288.1 +API version: 1.1341.7 Contact: support@cloudsmith.io */ diff --git a/model_format_support_upstream.go b/model_format_support_upstream.go index dbee5ed5..5ad30997 100644 --- a/model_format_support_upstream.go +++ b/model_format_support_upstream.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1288.1 +API version: 1.1341.7 Contact: support@cloudsmith.io */ diff --git a/model_generic_package_upload.go b/model_generic_package_upload.go index 5952acdf..4edf7ade 100644 --- a/model_generic_package_upload.go +++ b/model_generic_package_upload.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1288.1 +API version: 1.1341.7 Contact: support@cloudsmith.io */ @@ -49,23 +49,25 @@ type GenericPackageUpload struct { // Unique and permanent identifier for the package. IdentifierPerm *string `json:"identifier_perm,omitempty"` // Return a map of identifier field names and their values. - Identifiers *map[string]string `json:"identifiers,omitempty"` - Indexed *bool `json:"indexed,omitempty"` - IsCancellable *bool `json:"is_cancellable,omitempty"` - IsCopyable *bool `json:"is_copyable,omitempty"` - IsDeleteable *bool `json:"is_deleteable,omitempty"` - IsDownloadable *bool `json:"is_downloadable,omitempty"` - IsHidden *bool `json:"is_hidden,omitempty"` - IsMoveable *bool `json:"is_moveable,omitempty"` - IsQuarantinable *bool `json:"is_quarantinable,omitempty"` - IsQuarantined *bool `json:"is_quarantined,omitempty"` - IsResyncable *bool `json:"is_resyncable,omitempty"` - IsSecurityScannable *bool `json:"is_security_scannable,omitempty"` - IsSyncAwaiting *bool `json:"is_sync_awaiting,omitempty"` - IsSyncCompleted *bool `json:"is_sync_completed,omitempty"` - IsSyncFailed *bool `json:"is_sync_failed,omitempty"` - IsSyncInFlight *bool `json:"is_sync_in_flight,omitempty"` - IsSyncInProgress *bool `json:"is_sync_in_progress,omitempty"` + Identifiers *map[string]string `json:"identifiers,omitempty"` + Indexed *bool `json:"indexed,omitempty"` + IsCancellable *bool `json:"is_cancellable,omitempty"` + IsCopyable *bool `json:"is_copyable,omitempty"` + IsDeleteable *bool `json:"is_deleteable,omitempty"` + IsDownloadable *bool `json:"is_downloadable,omitempty"` + IsHidden *bool `json:"is_hidden,omitempty"` + // Whether the package has been detected as containing malware. Requires Ultra plan. + IsMalwareDetected *bool `json:"is_malware_detected,omitempty"` + IsMoveable *bool `json:"is_moveable,omitempty"` + IsQuarantinable *bool `json:"is_quarantinable,omitempty"` + IsQuarantined *bool `json:"is_quarantined,omitempty"` + IsResyncable *bool `json:"is_resyncable,omitempty"` + IsSecurityScannable *bool `json:"is_security_scannable,omitempty"` + IsSyncAwaiting *bool `json:"is_sync_awaiting,omitempty"` + IsSyncCompleted *bool `json:"is_sync_completed,omitempty"` + IsSyncFailed *bool `json:"is_sync_failed,omitempty"` + IsSyncInFlight *bool `json:"is_sync_in_flight,omitempty"` + IsSyncInProgress *bool `json:"is_sync_in_progress,omitempty"` // The license of this package. License NullableString `json:"license,omitempty"` // The name of this package. @@ -135,9 +137,10 @@ type GenericPackageUpload struct { Uploader *string `json:"uploader,omitempty"` UploaderUrl *string `json:"uploader_url,omitempty"` // The raw version for this package. - Version NullableString `json:"version,omitempty"` - VersionOrig *string `json:"version_orig,omitempty"` - VulnerabilityScanResultsUrl *string `json:"vulnerability_scan_results_url,omitempty"` + Version NullableString `json:"version,omitempty"` + VersionOrig *string `json:"version_orig,omitempty"` + VulnerabilityCounts NullableWebOSVSeverityCounts `json:"vulnerability_counts,omitempty"` + VulnerabilityScanResultsUrl *string `json:"vulnerability_scan_results_url,omitempty"` AdditionalProperties map[string]interface{} } @@ -1154,6 +1157,38 @@ func (o *GenericPackageUpload) SetIsHidden(v bool) { o.IsHidden = &v } +// GetIsMalwareDetected returns the IsMalwareDetected field value if set, zero value otherwise. +func (o *GenericPackageUpload) GetIsMalwareDetected() bool { + if o == nil || IsNil(o.IsMalwareDetected) { + var ret bool + return ret + } + return *o.IsMalwareDetected +} + +// GetIsMalwareDetectedOk returns a tuple with the IsMalwareDetected field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GenericPackageUpload) GetIsMalwareDetectedOk() (*bool, bool) { + if o == nil || IsNil(o.IsMalwareDetected) { + return nil, false + } + return o.IsMalwareDetected, true +} + +// HasIsMalwareDetected returns a boolean if a field has been set. +func (o *GenericPackageUpload) HasIsMalwareDetected() bool { + if o != nil && !IsNil(o.IsMalwareDetected) { + return true + } + + return false +} + +// SetIsMalwareDetected gets a reference to the given bool and assigns it to the IsMalwareDetected field. +func (o *GenericPackageUpload) SetIsMalwareDetected(v bool) { + o.IsMalwareDetected = &v +} + // GetIsMoveable returns the IsMoveable field value if set, zero value otherwise. func (o *GenericPackageUpload) GetIsMoveable() bool { if o == nil || IsNil(o.IsMoveable) { @@ -3100,6 +3135,49 @@ func (o *GenericPackageUpload) SetVersionOrig(v string) { o.VersionOrig = &v } +// GetVulnerabilityCounts returns the VulnerabilityCounts field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *GenericPackageUpload) GetVulnerabilityCounts() WebOSVSeverityCounts { + if o == nil || IsNil(o.VulnerabilityCounts.Get()) { + var ret WebOSVSeverityCounts + return ret + } + return *o.VulnerabilityCounts.Get() +} + +// GetVulnerabilityCountsOk returns a tuple with the VulnerabilityCounts 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 *GenericPackageUpload) GetVulnerabilityCountsOk() (*WebOSVSeverityCounts, bool) { + if o == nil { + return nil, false + } + return o.VulnerabilityCounts.Get(), o.VulnerabilityCounts.IsSet() +} + +// HasVulnerabilityCounts returns a boolean if a field has been set. +func (o *GenericPackageUpload) HasVulnerabilityCounts() bool { + if o != nil && o.VulnerabilityCounts.IsSet() { + return true + } + + return false +} + +// SetVulnerabilityCounts gets a reference to the given NullableWebOSVSeverityCounts and assigns it to the VulnerabilityCounts field. +func (o *GenericPackageUpload) SetVulnerabilityCounts(v WebOSVSeverityCounts) { + o.VulnerabilityCounts.Set(&v) +} + +// SetVulnerabilityCountsNil sets the value for VulnerabilityCounts to be an explicit nil +func (o *GenericPackageUpload) SetVulnerabilityCountsNil() { + o.VulnerabilityCounts.Set(nil) +} + +// UnsetVulnerabilityCounts ensures that no value is present for VulnerabilityCounts, not even an explicit nil +func (o *GenericPackageUpload) UnsetVulnerabilityCounts() { + o.VulnerabilityCounts.Unset() +} + // GetVulnerabilityScanResultsUrl returns the VulnerabilityScanResultsUrl field value if set, zero value otherwise. func (o *GenericPackageUpload) GetVulnerabilityScanResultsUrl() string { if o == nil || IsNil(o.VulnerabilityScanResultsUrl) { @@ -3229,6 +3307,9 @@ func (o GenericPackageUpload) ToMap() (map[string]interface{}, error) { if !IsNil(o.IsHidden) { toSerialize["is_hidden"] = o.IsHidden } + if !IsNil(o.IsMalwareDetected) { + toSerialize["is_malware_detected"] = o.IsMalwareDetected + } if !IsNil(o.IsMoveable) { toSerialize["is_moveable"] = o.IsMoveable } @@ -3397,6 +3478,9 @@ func (o GenericPackageUpload) ToMap() (map[string]interface{}, error) { if !IsNil(o.VersionOrig) { toSerialize["version_orig"] = o.VersionOrig } + if o.VulnerabilityCounts.IsSet() { + toSerialize["vulnerability_counts"] = o.VulnerabilityCounts.Get() + } if !IsNil(o.VulnerabilityScanResultsUrl) { toSerialize["vulnerability_scan_results_url"] = o.VulnerabilityScanResultsUrl } @@ -3451,6 +3535,7 @@ func (o *GenericPackageUpload) UnmarshalJSON(data []byte) (err error) { delete(additionalProperties, "is_deleteable") delete(additionalProperties, "is_downloadable") delete(additionalProperties, "is_hidden") + delete(additionalProperties, "is_malware_detected") delete(additionalProperties, "is_moveable") delete(additionalProperties, "is_quarantinable") delete(additionalProperties, "is_quarantined") @@ -3507,6 +3592,7 @@ func (o *GenericPackageUpload) UnmarshalJSON(data []byte) (err error) { delete(additionalProperties, "uploader_url") delete(additionalProperties, "version") delete(additionalProperties, "version_orig") + delete(additionalProperties, "vulnerability_counts") delete(additionalProperties, "vulnerability_scan_results_url") o.AdditionalProperties = additionalProperties } diff --git a/model_generic_package_upload_request.go b/model_generic_package_upload_request.go index 57d3dc66..c49d075e 100644 --- a/model_generic_package_upload_request.go +++ b/model_generic_package_upload_request.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1288.1 +API version: 1.1341.7 Contact: support@cloudsmith.io */ @@ -23,6 +23,8 @@ var _ MappedNullable = &GenericPackageUploadRequest{} type GenericPackageUploadRequest struct { // The full filepath of the package including filename. Filepath string `json:"filepath"` + // Whether the package has been detected as containing malware. Requires Ultra plan. + IsMalwareDetected *bool `json:"is_malware_detected,omitempty"` // The name of this package. Name NullableString `json:"name,omitempty"` // The primary file for the package. @@ -32,7 +34,8 @@ type GenericPackageUploadRequest struct { // A comma-separated values list of tags to add to the package. Tags NullableString `json:"tags,omitempty"` // The raw version for this package. - Version NullableString `json:"version,omitempty"` + Version NullableString `json:"version,omitempty"` + VulnerabilityCounts NullableWebOSVSeverityCounts `json:"vulnerability_counts,omitempty"` AdditionalProperties map[string]interface{} } @@ -81,6 +84,38 @@ func (o *GenericPackageUploadRequest) SetFilepath(v string) { o.Filepath = v } +// GetIsMalwareDetected returns the IsMalwareDetected field value if set, zero value otherwise. +func (o *GenericPackageUploadRequest) GetIsMalwareDetected() bool { + if o == nil || IsNil(o.IsMalwareDetected) { + var ret bool + return ret + } + return *o.IsMalwareDetected +} + +// GetIsMalwareDetectedOk returns a tuple with the IsMalwareDetected field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GenericPackageUploadRequest) GetIsMalwareDetectedOk() (*bool, bool) { + if o == nil || IsNil(o.IsMalwareDetected) { + return nil, false + } + return o.IsMalwareDetected, true +} + +// HasIsMalwareDetected returns a boolean if a field has been set. +func (o *GenericPackageUploadRequest) HasIsMalwareDetected() bool { + if o != nil && !IsNil(o.IsMalwareDetected) { + return true + } + + return false +} + +// SetIsMalwareDetected gets a reference to the given bool and assigns it to the IsMalwareDetected field. +func (o *GenericPackageUploadRequest) SetIsMalwareDetected(v bool) { + o.IsMalwareDetected = &v +} + // GetName returns the Name field value if set, zero value otherwise (both if not set or set to explicit null). func (o *GenericPackageUploadRequest) GetName() string { if o == nil || IsNil(o.Name.Get()) { @@ -266,6 +301,49 @@ func (o *GenericPackageUploadRequest) UnsetVersion() { o.Version.Unset() } +// GetVulnerabilityCounts returns the VulnerabilityCounts field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *GenericPackageUploadRequest) GetVulnerabilityCounts() WebOSVSeverityCounts { + if o == nil || IsNil(o.VulnerabilityCounts.Get()) { + var ret WebOSVSeverityCounts + return ret + } + return *o.VulnerabilityCounts.Get() +} + +// GetVulnerabilityCountsOk returns a tuple with the VulnerabilityCounts 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 *GenericPackageUploadRequest) GetVulnerabilityCountsOk() (*WebOSVSeverityCounts, bool) { + if o == nil { + return nil, false + } + return o.VulnerabilityCounts.Get(), o.VulnerabilityCounts.IsSet() +} + +// HasVulnerabilityCounts returns a boolean if a field has been set. +func (o *GenericPackageUploadRequest) HasVulnerabilityCounts() bool { + if o != nil && o.VulnerabilityCounts.IsSet() { + return true + } + + return false +} + +// SetVulnerabilityCounts gets a reference to the given NullableWebOSVSeverityCounts and assigns it to the VulnerabilityCounts field. +func (o *GenericPackageUploadRequest) SetVulnerabilityCounts(v WebOSVSeverityCounts) { + o.VulnerabilityCounts.Set(&v) +} + +// SetVulnerabilityCountsNil sets the value for VulnerabilityCounts to be an explicit nil +func (o *GenericPackageUploadRequest) SetVulnerabilityCountsNil() { + o.VulnerabilityCounts.Set(nil) +} + +// UnsetVulnerabilityCounts ensures that no value is present for VulnerabilityCounts, not even an explicit nil +func (o *GenericPackageUploadRequest) UnsetVulnerabilityCounts() { + o.VulnerabilityCounts.Unset() +} + func (o GenericPackageUploadRequest) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { @@ -277,6 +355,9 @@ func (o GenericPackageUploadRequest) MarshalJSON() ([]byte, error) { func (o GenericPackageUploadRequest) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["filepath"] = o.Filepath + if !IsNil(o.IsMalwareDetected) { + toSerialize["is_malware_detected"] = o.IsMalwareDetected + } if o.Name.IsSet() { toSerialize["name"] = o.Name.Get() } @@ -290,6 +371,9 @@ func (o GenericPackageUploadRequest) ToMap() (map[string]interface{}, error) { if o.Version.IsSet() { toSerialize["version"] = o.Version.Get() } + if o.VulnerabilityCounts.IsSet() { + toSerialize["vulnerability_counts"] = o.VulnerabilityCounts.Get() + } for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -335,11 +419,13 @@ func (o *GenericPackageUploadRequest) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "filepath") + delete(additionalProperties, "is_malware_detected") delete(additionalProperties, "name") delete(additionalProperties, "package_file") delete(additionalProperties, "republish") delete(additionalProperties, "tags") delete(additionalProperties, "version") + delete(additionalProperties, "vulnerability_counts") o.AdditionalProperties = additionalProperties } diff --git a/model_generic_upstream.go b/model_generic_upstream.go index 74336247..c46a39f4 100644 --- a/model_generic_upstream.go +++ b/model_generic_upstream.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1288.1 +API version: 1.1341.7 Contact: support@cloudsmith.io */ diff --git a/model_generic_upstream_request.go b/model_generic_upstream_request.go index 8bd07d90..0c8dce04 100644 --- a/model_generic_upstream_request.go +++ b/model_generic_upstream_request.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1288.1 +API version: 1.1341.7 Contact: support@cloudsmith.io */ diff --git a/model_generic_upstream_request_patch.go b/model_generic_upstream_request_patch.go index 91b751c3..f89ecf4a 100644 --- a/model_generic_upstream_request_patch.go +++ b/model_generic_upstream_request_patch.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1288.1 +API version: 1.1341.7 Contact: support@cloudsmith.io */ diff --git a/model_geo_ip_location.go b/model_geo_ip_location.go index af1b4465..1de20348 100644 --- a/model_geo_ip_location.go +++ b/model_geo_ip_location.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1288.1 +API version: 1.1341.7 Contact: support@cloudsmith.io */ diff --git a/model_go_package_upload.go b/model_go_package_upload.go index 0d382644..75a8c8c7 100644 --- a/model_go_package_upload.go +++ b/model_go_package_upload.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1288.1 +API version: 1.1341.7 Contact: support@cloudsmith.io */ @@ -49,23 +49,25 @@ type GoPackageUpload struct { // Unique and permanent identifier for the package. IdentifierPerm *string `json:"identifier_perm,omitempty"` // Return a map of identifier field names and their values. - Identifiers *map[string]string `json:"identifiers,omitempty"` - Indexed *bool `json:"indexed,omitempty"` - IsCancellable *bool `json:"is_cancellable,omitempty"` - IsCopyable *bool `json:"is_copyable,omitempty"` - IsDeleteable *bool `json:"is_deleteable,omitempty"` - IsDownloadable *bool `json:"is_downloadable,omitempty"` - IsHidden *bool `json:"is_hidden,omitempty"` - IsMoveable *bool `json:"is_moveable,omitempty"` - IsQuarantinable *bool `json:"is_quarantinable,omitempty"` - IsQuarantined *bool `json:"is_quarantined,omitempty"` - IsResyncable *bool `json:"is_resyncable,omitempty"` - IsSecurityScannable *bool `json:"is_security_scannable,omitempty"` - IsSyncAwaiting *bool `json:"is_sync_awaiting,omitempty"` - IsSyncCompleted *bool `json:"is_sync_completed,omitempty"` - IsSyncFailed *bool `json:"is_sync_failed,omitempty"` - IsSyncInFlight *bool `json:"is_sync_in_flight,omitempty"` - IsSyncInProgress *bool `json:"is_sync_in_progress,omitempty"` + Identifiers *map[string]string `json:"identifiers,omitempty"` + Indexed *bool `json:"indexed,omitempty"` + IsCancellable *bool `json:"is_cancellable,omitempty"` + IsCopyable *bool `json:"is_copyable,omitempty"` + IsDeleteable *bool `json:"is_deleteable,omitempty"` + IsDownloadable *bool `json:"is_downloadable,omitempty"` + IsHidden *bool `json:"is_hidden,omitempty"` + // Whether the package has been detected as containing malware. Requires Ultra plan. + IsMalwareDetected *bool `json:"is_malware_detected,omitempty"` + IsMoveable *bool `json:"is_moveable,omitempty"` + IsQuarantinable *bool `json:"is_quarantinable,omitempty"` + IsQuarantined *bool `json:"is_quarantined,omitempty"` + IsResyncable *bool `json:"is_resyncable,omitempty"` + IsSecurityScannable *bool `json:"is_security_scannable,omitempty"` + IsSyncAwaiting *bool `json:"is_sync_awaiting,omitempty"` + IsSyncCompleted *bool `json:"is_sync_completed,omitempty"` + IsSyncFailed *bool `json:"is_sync_failed,omitempty"` + IsSyncInFlight *bool `json:"is_sync_in_flight,omitempty"` + IsSyncInProgress *bool `json:"is_sync_in_progress,omitempty"` // The license of this package. License NullableString `json:"license,omitempty"` // The name of this package. @@ -135,9 +137,10 @@ type GoPackageUpload struct { Uploader *string `json:"uploader,omitempty"` UploaderUrl *string `json:"uploader_url,omitempty"` // The raw version for this package. - Version NullableString `json:"version,omitempty"` - VersionOrig *string `json:"version_orig,omitempty"` - VulnerabilityScanResultsUrl *string `json:"vulnerability_scan_results_url,omitempty"` + Version NullableString `json:"version,omitempty"` + VersionOrig *string `json:"version_orig,omitempty"` + VulnerabilityCounts NullableWebOSVSeverityCounts `json:"vulnerability_counts,omitempty"` + VulnerabilityScanResultsUrl *string `json:"vulnerability_scan_results_url,omitempty"` AdditionalProperties map[string]interface{} } @@ -1154,6 +1157,38 @@ func (o *GoPackageUpload) SetIsHidden(v bool) { o.IsHidden = &v } +// GetIsMalwareDetected returns the IsMalwareDetected field value if set, zero value otherwise. +func (o *GoPackageUpload) GetIsMalwareDetected() bool { + if o == nil || IsNil(o.IsMalwareDetected) { + var ret bool + return ret + } + return *o.IsMalwareDetected +} + +// GetIsMalwareDetectedOk returns a tuple with the IsMalwareDetected field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GoPackageUpload) GetIsMalwareDetectedOk() (*bool, bool) { + if o == nil || IsNil(o.IsMalwareDetected) { + return nil, false + } + return o.IsMalwareDetected, true +} + +// HasIsMalwareDetected returns a boolean if a field has been set. +func (o *GoPackageUpload) HasIsMalwareDetected() bool { + if o != nil && !IsNil(o.IsMalwareDetected) { + return true + } + + return false +} + +// SetIsMalwareDetected gets a reference to the given bool and assigns it to the IsMalwareDetected field. +func (o *GoPackageUpload) SetIsMalwareDetected(v bool) { + o.IsMalwareDetected = &v +} + // GetIsMoveable returns the IsMoveable field value if set, zero value otherwise. func (o *GoPackageUpload) GetIsMoveable() bool { if o == nil || IsNil(o.IsMoveable) { @@ -3100,6 +3135,49 @@ func (o *GoPackageUpload) SetVersionOrig(v string) { o.VersionOrig = &v } +// GetVulnerabilityCounts returns the VulnerabilityCounts field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *GoPackageUpload) GetVulnerabilityCounts() WebOSVSeverityCounts { + if o == nil || IsNil(o.VulnerabilityCounts.Get()) { + var ret WebOSVSeverityCounts + return ret + } + return *o.VulnerabilityCounts.Get() +} + +// GetVulnerabilityCountsOk returns a tuple with the VulnerabilityCounts 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 *GoPackageUpload) GetVulnerabilityCountsOk() (*WebOSVSeverityCounts, bool) { + if o == nil { + return nil, false + } + return o.VulnerabilityCounts.Get(), o.VulnerabilityCounts.IsSet() +} + +// HasVulnerabilityCounts returns a boolean if a field has been set. +func (o *GoPackageUpload) HasVulnerabilityCounts() bool { + if o != nil && o.VulnerabilityCounts.IsSet() { + return true + } + + return false +} + +// SetVulnerabilityCounts gets a reference to the given NullableWebOSVSeverityCounts and assigns it to the VulnerabilityCounts field. +func (o *GoPackageUpload) SetVulnerabilityCounts(v WebOSVSeverityCounts) { + o.VulnerabilityCounts.Set(&v) +} + +// SetVulnerabilityCountsNil sets the value for VulnerabilityCounts to be an explicit nil +func (o *GoPackageUpload) SetVulnerabilityCountsNil() { + o.VulnerabilityCounts.Set(nil) +} + +// UnsetVulnerabilityCounts ensures that no value is present for VulnerabilityCounts, not even an explicit nil +func (o *GoPackageUpload) UnsetVulnerabilityCounts() { + o.VulnerabilityCounts.Unset() +} + // GetVulnerabilityScanResultsUrl returns the VulnerabilityScanResultsUrl field value if set, zero value otherwise. func (o *GoPackageUpload) GetVulnerabilityScanResultsUrl() string { if o == nil || IsNil(o.VulnerabilityScanResultsUrl) { @@ -3229,6 +3307,9 @@ func (o GoPackageUpload) ToMap() (map[string]interface{}, error) { if !IsNil(o.IsHidden) { toSerialize["is_hidden"] = o.IsHidden } + if !IsNil(o.IsMalwareDetected) { + toSerialize["is_malware_detected"] = o.IsMalwareDetected + } if !IsNil(o.IsMoveable) { toSerialize["is_moveable"] = o.IsMoveable } @@ -3397,6 +3478,9 @@ func (o GoPackageUpload) ToMap() (map[string]interface{}, error) { if !IsNil(o.VersionOrig) { toSerialize["version_orig"] = o.VersionOrig } + if o.VulnerabilityCounts.IsSet() { + toSerialize["vulnerability_counts"] = o.VulnerabilityCounts.Get() + } if !IsNil(o.VulnerabilityScanResultsUrl) { toSerialize["vulnerability_scan_results_url"] = o.VulnerabilityScanResultsUrl } @@ -3451,6 +3535,7 @@ func (o *GoPackageUpload) UnmarshalJSON(data []byte) (err error) { delete(additionalProperties, "is_deleteable") delete(additionalProperties, "is_downloadable") delete(additionalProperties, "is_hidden") + delete(additionalProperties, "is_malware_detected") delete(additionalProperties, "is_moveable") delete(additionalProperties, "is_quarantinable") delete(additionalProperties, "is_quarantined") @@ -3507,6 +3592,7 @@ func (o *GoPackageUpload) UnmarshalJSON(data []byte) (err error) { delete(additionalProperties, "uploader_url") delete(additionalProperties, "version") delete(additionalProperties, "version_orig") + delete(additionalProperties, "vulnerability_counts") delete(additionalProperties, "vulnerability_scan_results_url") o.AdditionalProperties = additionalProperties } diff --git a/model_go_package_upload_request.go b/model_go_package_upload_request.go index 7b2625df..ac79faab 100644 --- a/model_go_package_upload_request.go +++ b/model_go_package_upload_request.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1288.1 +API version: 1.1341.7 Contact: support@cloudsmith.io */ @@ -21,12 +21,15 @@ var _ MappedNullable = &GoPackageUploadRequest{} // GoPackageUploadRequest struct for GoPackageUploadRequest type GoPackageUploadRequest struct { + // Whether the package has been detected as containing malware. Requires Ultra plan. + IsMalwareDetected *bool `json:"is_malware_detected,omitempty"` // The primary file for the package. PackageFile string `json:"package_file"` // If true, the uploaded package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate. Republish *bool `json:"republish,omitempty"` // A comma-separated values list of tags to add to the package. - Tags NullableString `json:"tags,omitempty"` + Tags NullableString `json:"tags,omitempty"` + VulnerabilityCounts NullableWebOSVSeverityCounts `json:"vulnerability_counts,omitempty"` AdditionalProperties map[string]interface{} } @@ -50,6 +53,38 @@ func NewGoPackageUploadRequestWithDefaults() *GoPackageUploadRequest { return &this } +// GetIsMalwareDetected returns the IsMalwareDetected field value if set, zero value otherwise. +func (o *GoPackageUploadRequest) GetIsMalwareDetected() bool { + if o == nil || IsNil(o.IsMalwareDetected) { + var ret bool + return ret + } + return *o.IsMalwareDetected +} + +// GetIsMalwareDetectedOk returns a tuple with the IsMalwareDetected field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *GoPackageUploadRequest) GetIsMalwareDetectedOk() (*bool, bool) { + if o == nil || IsNil(o.IsMalwareDetected) { + return nil, false + } + return o.IsMalwareDetected, true +} + +// HasIsMalwareDetected returns a boolean if a field has been set. +func (o *GoPackageUploadRequest) HasIsMalwareDetected() bool { + if o != nil && !IsNil(o.IsMalwareDetected) { + return true + } + + return false +} + +// SetIsMalwareDetected gets a reference to the given bool and assigns it to the IsMalwareDetected field. +func (o *GoPackageUploadRequest) SetIsMalwareDetected(v bool) { + o.IsMalwareDetected = &v +} + // GetPackageFile returns the PackageFile field value func (o *GoPackageUploadRequest) GetPackageFile() string { if o == nil { @@ -149,6 +184,49 @@ func (o *GoPackageUploadRequest) UnsetTags() { o.Tags.Unset() } +// GetVulnerabilityCounts returns the VulnerabilityCounts field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *GoPackageUploadRequest) GetVulnerabilityCounts() WebOSVSeverityCounts { + if o == nil || IsNil(o.VulnerabilityCounts.Get()) { + var ret WebOSVSeverityCounts + return ret + } + return *o.VulnerabilityCounts.Get() +} + +// GetVulnerabilityCountsOk returns a tuple with the VulnerabilityCounts 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 *GoPackageUploadRequest) GetVulnerabilityCountsOk() (*WebOSVSeverityCounts, bool) { + if o == nil { + return nil, false + } + return o.VulnerabilityCounts.Get(), o.VulnerabilityCounts.IsSet() +} + +// HasVulnerabilityCounts returns a boolean if a field has been set. +func (o *GoPackageUploadRequest) HasVulnerabilityCounts() bool { + if o != nil && o.VulnerabilityCounts.IsSet() { + return true + } + + return false +} + +// SetVulnerabilityCounts gets a reference to the given NullableWebOSVSeverityCounts and assigns it to the VulnerabilityCounts field. +func (o *GoPackageUploadRequest) SetVulnerabilityCounts(v WebOSVSeverityCounts) { + o.VulnerabilityCounts.Set(&v) +} + +// SetVulnerabilityCountsNil sets the value for VulnerabilityCounts to be an explicit nil +func (o *GoPackageUploadRequest) SetVulnerabilityCountsNil() { + o.VulnerabilityCounts.Set(nil) +} + +// UnsetVulnerabilityCounts ensures that no value is present for VulnerabilityCounts, not even an explicit nil +func (o *GoPackageUploadRequest) UnsetVulnerabilityCounts() { + o.VulnerabilityCounts.Unset() +} + func (o GoPackageUploadRequest) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { @@ -159,6 +237,9 @@ func (o GoPackageUploadRequest) MarshalJSON() ([]byte, error) { func (o GoPackageUploadRequest) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} + if !IsNil(o.IsMalwareDetected) { + toSerialize["is_malware_detected"] = o.IsMalwareDetected + } toSerialize["package_file"] = o.PackageFile if !IsNil(o.Republish) { toSerialize["republish"] = o.Republish @@ -166,6 +247,9 @@ func (o GoPackageUploadRequest) ToMap() (map[string]interface{}, error) { if o.Tags.IsSet() { toSerialize["tags"] = o.Tags.Get() } + if o.VulnerabilityCounts.IsSet() { + toSerialize["vulnerability_counts"] = o.VulnerabilityCounts.Get() + } for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -209,9 +293,11 @@ func (o *GoPackageUploadRequest) UnmarshalJSON(data []byte) (err error) { additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "is_malware_detected") delete(additionalProperties, "package_file") delete(additionalProperties, "republish") delete(additionalProperties, "tags") + delete(additionalProperties, "vulnerability_counts") o.AdditionalProperties = additionalProperties } diff --git a/model_go_upstream.go b/model_go_upstream.go index 7344efdc..eb209fd4 100644 --- a/model_go_upstream.go +++ b/model_go_upstream.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1288.1 +API version: 1.1341.7 Contact: support@cloudsmith.io */ diff --git a/model_go_upstream_request.go b/model_go_upstream_request.go index 9463bd08..81a5512f 100644 --- a/model_go_upstream_request.go +++ b/model_go_upstream_request.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1288.1 +API version: 1.1341.7 Contact: support@cloudsmith.io */ diff --git a/model_go_upstream_request_patch.go b/model_go_upstream_request_patch.go index 697a09cc..0ffd6ff5 100644 --- a/model_go_upstream_request_patch.go +++ b/model_go_upstream_request_patch.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1288.1 +API version: 1.1341.7 Contact: support@cloudsmith.io */ diff --git a/model_helm_package_upload.go b/model_helm_package_upload.go index bbe4826e..e09344bb 100644 --- a/model_helm_package_upload.go +++ b/model_helm_package_upload.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1288.1 +API version: 1.1341.7 Contact: support@cloudsmith.io */ @@ -49,23 +49,25 @@ type HelmPackageUpload struct { // Unique and permanent identifier for the package. IdentifierPerm *string `json:"identifier_perm,omitempty"` // Return a map of identifier field names and their values. - Identifiers *map[string]string `json:"identifiers,omitempty"` - Indexed *bool `json:"indexed,omitempty"` - IsCancellable *bool `json:"is_cancellable,omitempty"` - IsCopyable *bool `json:"is_copyable,omitempty"` - IsDeleteable *bool `json:"is_deleteable,omitempty"` - IsDownloadable *bool `json:"is_downloadable,omitempty"` - IsHidden *bool `json:"is_hidden,omitempty"` - IsMoveable *bool `json:"is_moveable,omitempty"` - IsQuarantinable *bool `json:"is_quarantinable,omitempty"` - IsQuarantined *bool `json:"is_quarantined,omitempty"` - IsResyncable *bool `json:"is_resyncable,omitempty"` - IsSecurityScannable *bool `json:"is_security_scannable,omitempty"` - IsSyncAwaiting *bool `json:"is_sync_awaiting,omitempty"` - IsSyncCompleted *bool `json:"is_sync_completed,omitempty"` - IsSyncFailed *bool `json:"is_sync_failed,omitempty"` - IsSyncInFlight *bool `json:"is_sync_in_flight,omitempty"` - IsSyncInProgress *bool `json:"is_sync_in_progress,omitempty"` + Identifiers *map[string]string `json:"identifiers,omitempty"` + Indexed *bool `json:"indexed,omitempty"` + IsCancellable *bool `json:"is_cancellable,omitempty"` + IsCopyable *bool `json:"is_copyable,omitempty"` + IsDeleteable *bool `json:"is_deleteable,omitempty"` + IsDownloadable *bool `json:"is_downloadable,omitempty"` + IsHidden *bool `json:"is_hidden,omitempty"` + // Whether the package has been detected as containing malware. Requires Ultra plan. + IsMalwareDetected *bool `json:"is_malware_detected,omitempty"` + IsMoveable *bool `json:"is_moveable,omitempty"` + IsQuarantinable *bool `json:"is_quarantinable,omitempty"` + IsQuarantined *bool `json:"is_quarantined,omitempty"` + IsResyncable *bool `json:"is_resyncable,omitempty"` + IsSecurityScannable *bool `json:"is_security_scannable,omitempty"` + IsSyncAwaiting *bool `json:"is_sync_awaiting,omitempty"` + IsSyncCompleted *bool `json:"is_sync_completed,omitempty"` + IsSyncFailed *bool `json:"is_sync_failed,omitempty"` + IsSyncInFlight *bool `json:"is_sync_in_flight,omitempty"` + IsSyncInProgress *bool `json:"is_sync_in_progress,omitempty"` // The license of this package. License NullableString `json:"license,omitempty"` // The name of this package. @@ -135,9 +137,10 @@ type HelmPackageUpload struct { Uploader *string `json:"uploader,omitempty"` UploaderUrl *string `json:"uploader_url,omitempty"` // The raw version for this package. - Version NullableString `json:"version,omitempty"` - VersionOrig *string `json:"version_orig,omitempty"` - VulnerabilityScanResultsUrl *string `json:"vulnerability_scan_results_url,omitempty"` + Version NullableString `json:"version,omitempty"` + VersionOrig *string `json:"version_orig,omitempty"` + VulnerabilityCounts NullableWebOSVSeverityCounts `json:"vulnerability_counts,omitempty"` + VulnerabilityScanResultsUrl *string `json:"vulnerability_scan_results_url,omitempty"` AdditionalProperties map[string]interface{} } @@ -1154,6 +1157,38 @@ func (o *HelmPackageUpload) SetIsHidden(v bool) { o.IsHidden = &v } +// GetIsMalwareDetected returns the IsMalwareDetected field value if set, zero value otherwise. +func (o *HelmPackageUpload) GetIsMalwareDetected() bool { + if o == nil || IsNil(o.IsMalwareDetected) { + var ret bool + return ret + } + return *o.IsMalwareDetected +} + +// GetIsMalwareDetectedOk returns a tuple with the IsMalwareDetected field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *HelmPackageUpload) GetIsMalwareDetectedOk() (*bool, bool) { + if o == nil || IsNil(o.IsMalwareDetected) { + return nil, false + } + return o.IsMalwareDetected, true +} + +// HasIsMalwareDetected returns a boolean if a field has been set. +func (o *HelmPackageUpload) HasIsMalwareDetected() bool { + if o != nil && !IsNil(o.IsMalwareDetected) { + return true + } + + return false +} + +// SetIsMalwareDetected gets a reference to the given bool and assigns it to the IsMalwareDetected field. +func (o *HelmPackageUpload) SetIsMalwareDetected(v bool) { + o.IsMalwareDetected = &v +} + // GetIsMoveable returns the IsMoveable field value if set, zero value otherwise. func (o *HelmPackageUpload) GetIsMoveable() bool { if o == nil || IsNil(o.IsMoveable) { @@ -3100,6 +3135,49 @@ func (o *HelmPackageUpload) SetVersionOrig(v string) { o.VersionOrig = &v } +// GetVulnerabilityCounts returns the VulnerabilityCounts field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *HelmPackageUpload) GetVulnerabilityCounts() WebOSVSeverityCounts { + if o == nil || IsNil(o.VulnerabilityCounts.Get()) { + var ret WebOSVSeverityCounts + return ret + } + return *o.VulnerabilityCounts.Get() +} + +// GetVulnerabilityCountsOk returns a tuple with the VulnerabilityCounts 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 *HelmPackageUpload) GetVulnerabilityCountsOk() (*WebOSVSeverityCounts, bool) { + if o == nil { + return nil, false + } + return o.VulnerabilityCounts.Get(), o.VulnerabilityCounts.IsSet() +} + +// HasVulnerabilityCounts returns a boolean if a field has been set. +func (o *HelmPackageUpload) HasVulnerabilityCounts() bool { + if o != nil && o.VulnerabilityCounts.IsSet() { + return true + } + + return false +} + +// SetVulnerabilityCounts gets a reference to the given NullableWebOSVSeverityCounts and assigns it to the VulnerabilityCounts field. +func (o *HelmPackageUpload) SetVulnerabilityCounts(v WebOSVSeverityCounts) { + o.VulnerabilityCounts.Set(&v) +} + +// SetVulnerabilityCountsNil sets the value for VulnerabilityCounts to be an explicit nil +func (o *HelmPackageUpload) SetVulnerabilityCountsNil() { + o.VulnerabilityCounts.Set(nil) +} + +// UnsetVulnerabilityCounts ensures that no value is present for VulnerabilityCounts, not even an explicit nil +func (o *HelmPackageUpload) UnsetVulnerabilityCounts() { + o.VulnerabilityCounts.Unset() +} + // GetVulnerabilityScanResultsUrl returns the VulnerabilityScanResultsUrl field value if set, zero value otherwise. func (o *HelmPackageUpload) GetVulnerabilityScanResultsUrl() string { if o == nil || IsNil(o.VulnerabilityScanResultsUrl) { @@ -3229,6 +3307,9 @@ func (o HelmPackageUpload) ToMap() (map[string]interface{}, error) { if !IsNil(o.IsHidden) { toSerialize["is_hidden"] = o.IsHidden } + if !IsNil(o.IsMalwareDetected) { + toSerialize["is_malware_detected"] = o.IsMalwareDetected + } if !IsNil(o.IsMoveable) { toSerialize["is_moveable"] = o.IsMoveable } @@ -3397,6 +3478,9 @@ func (o HelmPackageUpload) ToMap() (map[string]interface{}, error) { if !IsNil(o.VersionOrig) { toSerialize["version_orig"] = o.VersionOrig } + if o.VulnerabilityCounts.IsSet() { + toSerialize["vulnerability_counts"] = o.VulnerabilityCounts.Get() + } if !IsNil(o.VulnerabilityScanResultsUrl) { toSerialize["vulnerability_scan_results_url"] = o.VulnerabilityScanResultsUrl } @@ -3451,6 +3535,7 @@ func (o *HelmPackageUpload) UnmarshalJSON(data []byte) (err error) { delete(additionalProperties, "is_deleteable") delete(additionalProperties, "is_downloadable") delete(additionalProperties, "is_hidden") + delete(additionalProperties, "is_malware_detected") delete(additionalProperties, "is_moveable") delete(additionalProperties, "is_quarantinable") delete(additionalProperties, "is_quarantined") @@ -3507,6 +3592,7 @@ func (o *HelmPackageUpload) UnmarshalJSON(data []byte) (err error) { delete(additionalProperties, "uploader_url") delete(additionalProperties, "version") delete(additionalProperties, "version_orig") + delete(additionalProperties, "vulnerability_counts") delete(additionalProperties, "vulnerability_scan_results_url") o.AdditionalProperties = additionalProperties } diff --git a/model_helm_package_upload_request.go b/model_helm_package_upload_request.go index 61fba7e3..062d8bdf 100644 --- a/model_helm_package_upload_request.go +++ b/model_helm_package_upload_request.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1288.1 +API version: 1.1341.7 Contact: support@cloudsmith.io */ @@ -21,6 +21,8 @@ var _ MappedNullable = &HelmPackageUploadRequest{} // HelmPackageUploadRequest struct for HelmPackageUploadRequest type HelmPackageUploadRequest struct { + // Whether the package has been detected as containing malware. Requires Ultra plan. + IsMalwareDetected *bool `json:"is_malware_detected,omitempty"` // The primary file for the package. PackageFile string `json:"package_file"` // The provenance file containing the signature for the chart. If one is not provided, it will be generated automatically. @@ -28,7 +30,8 @@ type HelmPackageUploadRequest struct { // If true, the uploaded package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate. Republish *bool `json:"republish,omitempty"` // A comma-separated values list of tags to add to the package. - Tags NullableString `json:"tags,omitempty"` + Tags NullableString `json:"tags,omitempty"` + VulnerabilityCounts NullableWebOSVSeverityCounts `json:"vulnerability_counts,omitempty"` AdditionalProperties map[string]interface{} } @@ -52,6 +55,38 @@ func NewHelmPackageUploadRequestWithDefaults() *HelmPackageUploadRequest { return &this } +// GetIsMalwareDetected returns the IsMalwareDetected field value if set, zero value otherwise. +func (o *HelmPackageUploadRequest) GetIsMalwareDetected() bool { + if o == nil || IsNil(o.IsMalwareDetected) { + var ret bool + return ret + } + return *o.IsMalwareDetected +} + +// GetIsMalwareDetectedOk returns a tuple with the IsMalwareDetected field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *HelmPackageUploadRequest) GetIsMalwareDetectedOk() (*bool, bool) { + if o == nil || IsNil(o.IsMalwareDetected) { + return nil, false + } + return o.IsMalwareDetected, true +} + +// HasIsMalwareDetected returns a boolean if a field has been set. +func (o *HelmPackageUploadRequest) HasIsMalwareDetected() bool { + if o != nil && !IsNil(o.IsMalwareDetected) { + return true + } + + return false +} + +// SetIsMalwareDetected gets a reference to the given bool and assigns it to the IsMalwareDetected field. +func (o *HelmPackageUploadRequest) SetIsMalwareDetected(v bool) { + o.IsMalwareDetected = &v +} + // GetPackageFile returns the PackageFile field value func (o *HelmPackageUploadRequest) GetPackageFile() string { if o == nil { @@ -194,6 +229,49 @@ func (o *HelmPackageUploadRequest) UnsetTags() { o.Tags.Unset() } +// GetVulnerabilityCounts returns the VulnerabilityCounts field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *HelmPackageUploadRequest) GetVulnerabilityCounts() WebOSVSeverityCounts { + if o == nil || IsNil(o.VulnerabilityCounts.Get()) { + var ret WebOSVSeverityCounts + return ret + } + return *o.VulnerabilityCounts.Get() +} + +// GetVulnerabilityCountsOk returns a tuple with the VulnerabilityCounts 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 *HelmPackageUploadRequest) GetVulnerabilityCountsOk() (*WebOSVSeverityCounts, bool) { + if o == nil { + return nil, false + } + return o.VulnerabilityCounts.Get(), o.VulnerabilityCounts.IsSet() +} + +// HasVulnerabilityCounts returns a boolean if a field has been set. +func (o *HelmPackageUploadRequest) HasVulnerabilityCounts() bool { + if o != nil && o.VulnerabilityCounts.IsSet() { + return true + } + + return false +} + +// SetVulnerabilityCounts gets a reference to the given NullableWebOSVSeverityCounts and assigns it to the VulnerabilityCounts field. +func (o *HelmPackageUploadRequest) SetVulnerabilityCounts(v WebOSVSeverityCounts) { + o.VulnerabilityCounts.Set(&v) +} + +// SetVulnerabilityCountsNil sets the value for VulnerabilityCounts to be an explicit nil +func (o *HelmPackageUploadRequest) SetVulnerabilityCountsNil() { + o.VulnerabilityCounts.Set(nil) +} + +// UnsetVulnerabilityCounts ensures that no value is present for VulnerabilityCounts, not even an explicit nil +func (o *HelmPackageUploadRequest) UnsetVulnerabilityCounts() { + o.VulnerabilityCounts.Unset() +} + func (o HelmPackageUploadRequest) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { @@ -204,6 +282,9 @@ func (o HelmPackageUploadRequest) MarshalJSON() ([]byte, error) { func (o HelmPackageUploadRequest) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} + if !IsNil(o.IsMalwareDetected) { + toSerialize["is_malware_detected"] = o.IsMalwareDetected + } toSerialize["package_file"] = o.PackageFile if o.ProvenanceFile.IsSet() { toSerialize["provenance_file"] = o.ProvenanceFile.Get() @@ -214,6 +295,9 @@ func (o HelmPackageUploadRequest) ToMap() (map[string]interface{}, error) { if o.Tags.IsSet() { toSerialize["tags"] = o.Tags.Get() } + if o.VulnerabilityCounts.IsSet() { + toSerialize["vulnerability_counts"] = o.VulnerabilityCounts.Get() + } for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -257,10 +341,12 @@ func (o *HelmPackageUploadRequest) UnmarshalJSON(data []byte) (err error) { additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "is_malware_detected") delete(additionalProperties, "package_file") delete(additionalProperties, "provenance_file") delete(additionalProperties, "republish") delete(additionalProperties, "tags") + delete(additionalProperties, "vulnerability_counts") o.AdditionalProperties = additionalProperties } diff --git a/model_helm_upstream.go b/model_helm_upstream.go index 6f9b6865..8debf311 100644 --- a/model_helm_upstream.go +++ b/model_helm_upstream.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1288.1 +API version: 1.1341.7 Contact: support@cloudsmith.io */ diff --git a/model_helm_upstream_request.go b/model_helm_upstream_request.go index 7f94d785..9b5231e3 100644 --- a/model_helm_upstream_request.go +++ b/model_helm_upstream_request.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1288.1 +API version: 1.1341.7 Contact: support@cloudsmith.io */ diff --git a/model_helm_upstream_request_patch.go b/model_helm_upstream_request_patch.go index 1af18f40..16a957dc 100644 --- a/model_helm_upstream_request_patch.go +++ b/model_helm_upstream_request_patch.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1288.1 +API version: 1.1341.7 Contact: support@cloudsmith.io */ diff --git a/model_hex_package_upload.go b/model_hex_package_upload.go index 4c6d88e9..2ceecbc7 100644 --- a/model_hex_package_upload.go +++ b/model_hex_package_upload.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1288.1 +API version: 1.1341.7 Contact: support@cloudsmith.io */ @@ -49,23 +49,25 @@ type HexPackageUpload struct { // Unique and permanent identifier for the package. IdentifierPerm *string `json:"identifier_perm,omitempty"` // Return a map of identifier field names and their values. - Identifiers *map[string]string `json:"identifiers,omitempty"` - Indexed *bool `json:"indexed,omitempty"` - IsCancellable *bool `json:"is_cancellable,omitempty"` - IsCopyable *bool `json:"is_copyable,omitempty"` - IsDeleteable *bool `json:"is_deleteable,omitempty"` - IsDownloadable *bool `json:"is_downloadable,omitempty"` - IsHidden *bool `json:"is_hidden,omitempty"` - IsMoveable *bool `json:"is_moveable,omitempty"` - IsQuarantinable *bool `json:"is_quarantinable,omitempty"` - IsQuarantined *bool `json:"is_quarantined,omitempty"` - IsResyncable *bool `json:"is_resyncable,omitempty"` - IsSecurityScannable *bool `json:"is_security_scannable,omitempty"` - IsSyncAwaiting *bool `json:"is_sync_awaiting,omitempty"` - IsSyncCompleted *bool `json:"is_sync_completed,omitempty"` - IsSyncFailed *bool `json:"is_sync_failed,omitempty"` - IsSyncInFlight *bool `json:"is_sync_in_flight,omitempty"` - IsSyncInProgress *bool `json:"is_sync_in_progress,omitempty"` + Identifiers *map[string]string `json:"identifiers,omitempty"` + Indexed *bool `json:"indexed,omitempty"` + IsCancellable *bool `json:"is_cancellable,omitempty"` + IsCopyable *bool `json:"is_copyable,omitempty"` + IsDeleteable *bool `json:"is_deleteable,omitempty"` + IsDownloadable *bool `json:"is_downloadable,omitempty"` + IsHidden *bool `json:"is_hidden,omitempty"` + // Whether the package has been detected as containing malware. Requires Ultra plan. + IsMalwareDetected *bool `json:"is_malware_detected,omitempty"` + IsMoveable *bool `json:"is_moveable,omitempty"` + IsQuarantinable *bool `json:"is_quarantinable,omitempty"` + IsQuarantined *bool `json:"is_quarantined,omitempty"` + IsResyncable *bool `json:"is_resyncable,omitempty"` + IsSecurityScannable *bool `json:"is_security_scannable,omitempty"` + IsSyncAwaiting *bool `json:"is_sync_awaiting,omitempty"` + IsSyncCompleted *bool `json:"is_sync_completed,omitempty"` + IsSyncFailed *bool `json:"is_sync_failed,omitempty"` + IsSyncInFlight *bool `json:"is_sync_in_flight,omitempty"` + IsSyncInProgress *bool `json:"is_sync_in_progress,omitempty"` // The license of this package. License NullableString `json:"license,omitempty"` // The name of this package. @@ -135,9 +137,10 @@ type HexPackageUpload struct { Uploader *string `json:"uploader,omitempty"` UploaderUrl *string `json:"uploader_url,omitempty"` // The raw version for this package. - Version NullableString `json:"version,omitempty"` - VersionOrig *string `json:"version_orig,omitempty"` - VulnerabilityScanResultsUrl *string `json:"vulnerability_scan_results_url,omitempty"` + Version NullableString `json:"version,omitempty"` + VersionOrig *string `json:"version_orig,omitempty"` + VulnerabilityCounts NullableWebOSVSeverityCounts `json:"vulnerability_counts,omitempty"` + VulnerabilityScanResultsUrl *string `json:"vulnerability_scan_results_url,omitempty"` AdditionalProperties map[string]interface{} } @@ -1154,6 +1157,38 @@ func (o *HexPackageUpload) SetIsHidden(v bool) { o.IsHidden = &v } +// GetIsMalwareDetected returns the IsMalwareDetected field value if set, zero value otherwise. +func (o *HexPackageUpload) GetIsMalwareDetected() bool { + if o == nil || IsNil(o.IsMalwareDetected) { + var ret bool + return ret + } + return *o.IsMalwareDetected +} + +// GetIsMalwareDetectedOk returns a tuple with the IsMalwareDetected field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *HexPackageUpload) GetIsMalwareDetectedOk() (*bool, bool) { + if o == nil || IsNil(o.IsMalwareDetected) { + return nil, false + } + return o.IsMalwareDetected, true +} + +// HasIsMalwareDetected returns a boolean if a field has been set. +func (o *HexPackageUpload) HasIsMalwareDetected() bool { + if o != nil && !IsNil(o.IsMalwareDetected) { + return true + } + + return false +} + +// SetIsMalwareDetected gets a reference to the given bool and assigns it to the IsMalwareDetected field. +func (o *HexPackageUpload) SetIsMalwareDetected(v bool) { + o.IsMalwareDetected = &v +} + // GetIsMoveable returns the IsMoveable field value if set, zero value otherwise. func (o *HexPackageUpload) GetIsMoveable() bool { if o == nil || IsNil(o.IsMoveable) { @@ -3100,6 +3135,49 @@ func (o *HexPackageUpload) SetVersionOrig(v string) { o.VersionOrig = &v } +// GetVulnerabilityCounts returns the VulnerabilityCounts field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *HexPackageUpload) GetVulnerabilityCounts() WebOSVSeverityCounts { + if o == nil || IsNil(o.VulnerabilityCounts.Get()) { + var ret WebOSVSeverityCounts + return ret + } + return *o.VulnerabilityCounts.Get() +} + +// GetVulnerabilityCountsOk returns a tuple with the VulnerabilityCounts 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 *HexPackageUpload) GetVulnerabilityCountsOk() (*WebOSVSeverityCounts, bool) { + if o == nil { + return nil, false + } + return o.VulnerabilityCounts.Get(), o.VulnerabilityCounts.IsSet() +} + +// HasVulnerabilityCounts returns a boolean if a field has been set. +func (o *HexPackageUpload) HasVulnerabilityCounts() bool { + if o != nil && o.VulnerabilityCounts.IsSet() { + return true + } + + return false +} + +// SetVulnerabilityCounts gets a reference to the given NullableWebOSVSeverityCounts and assigns it to the VulnerabilityCounts field. +func (o *HexPackageUpload) SetVulnerabilityCounts(v WebOSVSeverityCounts) { + o.VulnerabilityCounts.Set(&v) +} + +// SetVulnerabilityCountsNil sets the value for VulnerabilityCounts to be an explicit nil +func (o *HexPackageUpload) SetVulnerabilityCountsNil() { + o.VulnerabilityCounts.Set(nil) +} + +// UnsetVulnerabilityCounts ensures that no value is present for VulnerabilityCounts, not even an explicit nil +func (o *HexPackageUpload) UnsetVulnerabilityCounts() { + o.VulnerabilityCounts.Unset() +} + // GetVulnerabilityScanResultsUrl returns the VulnerabilityScanResultsUrl field value if set, zero value otherwise. func (o *HexPackageUpload) GetVulnerabilityScanResultsUrl() string { if o == nil || IsNil(o.VulnerabilityScanResultsUrl) { @@ -3229,6 +3307,9 @@ func (o HexPackageUpload) ToMap() (map[string]interface{}, error) { if !IsNil(o.IsHidden) { toSerialize["is_hidden"] = o.IsHidden } + if !IsNil(o.IsMalwareDetected) { + toSerialize["is_malware_detected"] = o.IsMalwareDetected + } if !IsNil(o.IsMoveable) { toSerialize["is_moveable"] = o.IsMoveable } @@ -3397,6 +3478,9 @@ func (o HexPackageUpload) ToMap() (map[string]interface{}, error) { if !IsNil(o.VersionOrig) { toSerialize["version_orig"] = o.VersionOrig } + if o.VulnerabilityCounts.IsSet() { + toSerialize["vulnerability_counts"] = o.VulnerabilityCounts.Get() + } if !IsNil(o.VulnerabilityScanResultsUrl) { toSerialize["vulnerability_scan_results_url"] = o.VulnerabilityScanResultsUrl } @@ -3451,6 +3535,7 @@ func (o *HexPackageUpload) UnmarshalJSON(data []byte) (err error) { delete(additionalProperties, "is_deleteable") delete(additionalProperties, "is_downloadable") delete(additionalProperties, "is_hidden") + delete(additionalProperties, "is_malware_detected") delete(additionalProperties, "is_moveable") delete(additionalProperties, "is_quarantinable") delete(additionalProperties, "is_quarantined") @@ -3507,6 +3592,7 @@ func (o *HexPackageUpload) UnmarshalJSON(data []byte) (err error) { delete(additionalProperties, "uploader_url") delete(additionalProperties, "version") delete(additionalProperties, "version_orig") + delete(additionalProperties, "vulnerability_counts") delete(additionalProperties, "vulnerability_scan_results_url") o.AdditionalProperties = additionalProperties } diff --git a/model_hex_package_upload_request.go b/model_hex_package_upload_request.go index c13a3199..80698f36 100644 --- a/model_hex_package_upload_request.go +++ b/model_hex_package_upload_request.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1288.1 +API version: 1.1341.7 Contact: support@cloudsmith.io */ @@ -21,12 +21,15 @@ var _ MappedNullable = &HexPackageUploadRequest{} // HexPackageUploadRequest struct for HexPackageUploadRequest type HexPackageUploadRequest struct { + // Whether the package has been detected as containing malware. Requires Ultra plan. + IsMalwareDetected *bool `json:"is_malware_detected,omitempty"` // The primary file for the package. PackageFile string `json:"package_file"` // If true, the uploaded package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate. Republish *bool `json:"republish,omitempty"` // A comma-separated values list of tags to add to the package. - Tags NullableString `json:"tags,omitempty"` + Tags NullableString `json:"tags,omitempty"` + VulnerabilityCounts NullableWebOSVSeverityCounts `json:"vulnerability_counts,omitempty"` AdditionalProperties map[string]interface{} } @@ -50,6 +53,38 @@ func NewHexPackageUploadRequestWithDefaults() *HexPackageUploadRequest { return &this } +// GetIsMalwareDetected returns the IsMalwareDetected field value if set, zero value otherwise. +func (o *HexPackageUploadRequest) GetIsMalwareDetected() bool { + if o == nil || IsNil(o.IsMalwareDetected) { + var ret bool + return ret + } + return *o.IsMalwareDetected +} + +// GetIsMalwareDetectedOk returns a tuple with the IsMalwareDetected field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *HexPackageUploadRequest) GetIsMalwareDetectedOk() (*bool, bool) { + if o == nil || IsNil(o.IsMalwareDetected) { + return nil, false + } + return o.IsMalwareDetected, true +} + +// HasIsMalwareDetected returns a boolean if a field has been set. +func (o *HexPackageUploadRequest) HasIsMalwareDetected() bool { + if o != nil && !IsNil(o.IsMalwareDetected) { + return true + } + + return false +} + +// SetIsMalwareDetected gets a reference to the given bool and assigns it to the IsMalwareDetected field. +func (o *HexPackageUploadRequest) SetIsMalwareDetected(v bool) { + o.IsMalwareDetected = &v +} + // GetPackageFile returns the PackageFile field value func (o *HexPackageUploadRequest) GetPackageFile() string { if o == nil { @@ -149,6 +184,49 @@ func (o *HexPackageUploadRequest) UnsetTags() { o.Tags.Unset() } +// GetVulnerabilityCounts returns the VulnerabilityCounts field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *HexPackageUploadRequest) GetVulnerabilityCounts() WebOSVSeverityCounts { + if o == nil || IsNil(o.VulnerabilityCounts.Get()) { + var ret WebOSVSeverityCounts + return ret + } + return *o.VulnerabilityCounts.Get() +} + +// GetVulnerabilityCountsOk returns a tuple with the VulnerabilityCounts 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 *HexPackageUploadRequest) GetVulnerabilityCountsOk() (*WebOSVSeverityCounts, bool) { + if o == nil { + return nil, false + } + return o.VulnerabilityCounts.Get(), o.VulnerabilityCounts.IsSet() +} + +// HasVulnerabilityCounts returns a boolean if a field has been set. +func (o *HexPackageUploadRequest) HasVulnerabilityCounts() bool { + if o != nil && o.VulnerabilityCounts.IsSet() { + return true + } + + return false +} + +// SetVulnerabilityCounts gets a reference to the given NullableWebOSVSeverityCounts and assigns it to the VulnerabilityCounts field. +func (o *HexPackageUploadRequest) SetVulnerabilityCounts(v WebOSVSeverityCounts) { + o.VulnerabilityCounts.Set(&v) +} + +// SetVulnerabilityCountsNil sets the value for VulnerabilityCounts to be an explicit nil +func (o *HexPackageUploadRequest) SetVulnerabilityCountsNil() { + o.VulnerabilityCounts.Set(nil) +} + +// UnsetVulnerabilityCounts ensures that no value is present for VulnerabilityCounts, not even an explicit nil +func (o *HexPackageUploadRequest) UnsetVulnerabilityCounts() { + o.VulnerabilityCounts.Unset() +} + func (o HexPackageUploadRequest) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { @@ -159,6 +237,9 @@ func (o HexPackageUploadRequest) MarshalJSON() ([]byte, error) { func (o HexPackageUploadRequest) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} + if !IsNil(o.IsMalwareDetected) { + toSerialize["is_malware_detected"] = o.IsMalwareDetected + } toSerialize["package_file"] = o.PackageFile if !IsNil(o.Republish) { toSerialize["republish"] = o.Republish @@ -166,6 +247,9 @@ func (o HexPackageUploadRequest) ToMap() (map[string]interface{}, error) { if o.Tags.IsSet() { toSerialize["tags"] = o.Tags.Get() } + if o.VulnerabilityCounts.IsSet() { + toSerialize["vulnerability_counts"] = o.VulnerabilityCounts.Get() + } for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -209,9 +293,11 @@ func (o *HexPackageUploadRequest) UnmarshalJSON(data []byte) (err error) { additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "is_malware_detected") delete(additionalProperties, "package_file") delete(additionalProperties, "republish") delete(additionalProperties, "tags") + delete(additionalProperties, "vulnerability_counts") o.AdditionalProperties = additionalProperties } diff --git a/model_hex_upstream.go b/model_hex_upstream.go index e0ad8090..a3833676 100644 --- a/model_hex_upstream.go +++ b/model_hex_upstream.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1288.1 +API version: 1.1341.7 Contact: support@cloudsmith.io */ diff --git a/model_hex_upstream_request.go b/model_hex_upstream_request.go index c9539dcc..abe2506a 100644 --- a/model_hex_upstream_request.go +++ b/model_hex_upstream_request.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1288.1 +API version: 1.1341.7 Contact: support@cloudsmith.io */ diff --git a/model_hex_upstream_request_patch.go b/model_hex_upstream_request_patch.go index 3a262280..a196745c 100644 --- a/model_hex_upstream_request_patch.go +++ b/model_hex_upstream_request_patch.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1288.1 +API version: 1.1341.7 Contact: support@cloudsmith.io */ diff --git a/model_history.go b/model_history.go index d283c50c..c77b0c8c 100644 --- a/model_history.go +++ b/model_history.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1288.1 +API version: 1.1341.7 Contact: support@cloudsmith.io */ diff --git a/model_history_fieldset.go b/model_history_fieldset.go index d00be146..444131ed 100644 --- a/model_history_fieldset.go +++ b/model_history_fieldset.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1288.1 +API version: 1.1341.7 Contact: support@cloudsmith.io */ diff --git a/model_history_fieldset_raw.go b/model_history_fieldset_raw.go index 890bc6db..b2c68bdd 100644 --- a/model_history_fieldset_raw.go +++ b/model_history_fieldset_raw.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1288.1 +API version: 1.1341.7 Contact: support@cloudsmith.io */ diff --git a/model_huggingface_package_upload.go b/model_huggingface_package_upload.go index 414517cd..e9216d0c 100644 --- a/model_huggingface_package_upload.go +++ b/model_huggingface_package_upload.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1288.1 +API version: 1.1341.7 Contact: support@cloudsmith.io */ @@ -49,23 +49,25 @@ type HuggingfacePackageUpload struct { // Unique and permanent identifier for the package. IdentifierPerm *string `json:"identifier_perm,omitempty"` // Return a map of identifier field names and their values. - Identifiers *map[string]string `json:"identifiers,omitempty"` - Indexed *bool `json:"indexed,omitempty"` - IsCancellable *bool `json:"is_cancellable,omitempty"` - IsCopyable *bool `json:"is_copyable,omitempty"` - IsDeleteable *bool `json:"is_deleteable,omitempty"` - IsDownloadable *bool `json:"is_downloadable,omitempty"` - IsHidden *bool `json:"is_hidden,omitempty"` - IsMoveable *bool `json:"is_moveable,omitempty"` - IsQuarantinable *bool `json:"is_quarantinable,omitempty"` - IsQuarantined *bool `json:"is_quarantined,omitempty"` - IsResyncable *bool `json:"is_resyncable,omitempty"` - IsSecurityScannable *bool `json:"is_security_scannable,omitempty"` - IsSyncAwaiting *bool `json:"is_sync_awaiting,omitempty"` - IsSyncCompleted *bool `json:"is_sync_completed,omitempty"` - IsSyncFailed *bool `json:"is_sync_failed,omitempty"` - IsSyncInFlight *bool `json:"is_sync_in_flight,omitempty"` - IsSyncInProgress *bool `json:"is_sync_in_progress,omitempty"` + Identifiers *map[string]string `json:"identifiers,omitempty"` + Indexed *bool `json:"indexed,omitempty"` + IsCancellable *bool `json:"is_cancellable,omitempty"` + IsCopyable *bool `json:"is_copyable,omitempty"` + IsDeleteable *bool `json:"is_deleteable,omitempty"` + IsDownloadable *bool `json:"is_downloadable,omitempty"` + IsHidden *bool `json:"is_hidden,omitempty"` + // Whether the package has been detected as containing malware. Requires Ultra plan. + IsMalwareDetected *bool `json:"is_malware_detected,omitempty"` + IsMoveable *bool `json:"is_moveable,omitempty"` + IsQuarantinable *bool `json:"is_quarantinable,omitempty"` + IsQuarantined *bool `json:"is_quarantined,omitempty"` + IsResyncable *bool `json:"is_resyncable,omitempty"` + IsSecurityScannable *bool `json:"is_security_scannable,omitempty"` + IsSyncAwaiting *bool `json:"is_sync_awaiting,omitempty"` + IsSyncCompleted *bool `json:"is_sync_completed,omitempty"` + IsSyncFailed *bool `json:"is_sync_failed,omitempty"` + IsSyncInFlight *bool `json:"is_sync_in_flight,omitempty"` + IsSyncInProgress *bool `json:"is_sync_in_progress,omitempty"` // The license of this package. License NullableString `json:"license,omitempty"` // The name of this package. @@ -135,9 +137,10 @@ type HuggingfacePackageUpload struct { Uploader *string `json:"uploader,omitempty"` UploaderUrl *string `json:"uploader_url,omitempty"` // The raw version for this package. - Version NullableString `json:"version,omitempty"` - VersionOrig *string `json:"version_orig,omitempty"` - VulnerabilityScanResultsUrl *string `json:"vulnerability_scan_results_url,omitempty"` + Version NullableString `json:"version,omitempty"` + VersionOrig *string `json:"version_orig,omitempty"` + VulnerabilityCounts NullableWebOSVSeverityCounts `json:"vulnerability_counts,omitempty"` + VulnerabilityScanResultsUrl *string `json:"vulnerability_scan_results_url,omitempty"` AdditionalProperties map[string]interface{} } @@ -1154,6 +1157,38 @@ func (o *HuggingfacePackageUpload) SetIsHidden(v bool) { o.IsHidden = &v } +// GetIsMalwareDetected returns the IsMalwareDetected field value if set, zero value otherwise. +func (o *HuggingfacePackageUpload) GetIsMalwareDetected() bool { + if o == nil || IsNil(o.IsMalwareDetected) { + var ret bool + return ret + } + return *o.IsMalwareDetected +} + +// GetIsMalwareDetectedOk returns a tuple with the IsMalwareDetected field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *HuggingfacePackageUpload) GetIsMalwareDetectedOk() (*bool, bool) { + if o == nil || IsNil(o.IsMalwareDetected) { + return nil, false + } + return o.IsMalwareDetected, true +} + +// HasIsMalwareDetected returns a boolean if a field has been set. +func (o *HuggingfacePackageUpload) HasIsMalwareDetected() bool { + if o != nil && !IsNil(o.IsMalwareDetected) { + return true + } + + return false +} + +// SetIsMalwareDetected gets a reference to the given bool and assigns it to the IsMalwareDetected field. +func (o *HuggingfacePackageUpload) SetIsMalwareDetected(v bool) { + o.IsMalwareDetected = &v +} + // GetIsMoveable returns the IsMoveable field value if set, zero value otherwise. func (o *HuggingfacePackageUpload) GetIsMoveable() bool { if o == nil || IsNil(o.IsMoveable) { @@ -3100,6 +3135,49 @@ func (o *HuggingfacePackageUpload) SetVersionOrig(v string) { o.VersionOrig = &v } +// GetVulnerabilityCounts returns the VulnerabilityCounts field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *HuggingfacePackageUpload) GetVulnerabilityCounts() WebOSVSeverityCounts { + if o == nil || IsNil(o.VulnerabilityCounts.Get()) { + var ret WebOSVSeverityCounts + return ret + } + return *o.VulnerabilityCounts.Get() +} + +// GetVulnerabilityCountsOk returns a tuple with the VulnerabilityCounts 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 *HuggingfacePackageUpload) GetVulnerabilityCountsOk() (*WebOSVSeverityCounts, bool) { + if o == nil { + return nil, false + } + return o.VulnerabilityCounts.Get(), o.VulnerabilityCounts.IsSet() +} + +// HasVulnerabilityCounts returns a boolean if a field has been set. +func (o *HuggingfacePackageUpload) HasVulnerabilityCounts() bool { + if o != nil && o.VulnerabilityCounts.IsSet() { + return true + } + + return false +} + +// SetVulnerabilityCounts gets a reference to the given NullableWebOSVSeverityCounts and assigns it to the VulnerabilityCounts field. +func (o *HuggingfacePackageUpload) SetVulnerabilityCounts(v WebOSVSeverityCounts) { + o.VulnerabilityCounts.Set(&v) +} + +// SetVulnerabilityCountsNil sets the value for VulnerabilityCounts to be an explicit nil +func (o *HuggingfacePackageUpload) SetVulnerabilityCountsNil() { + o.VulnerabilityCounts.Set(nil) +} + +// UnsetVulnerabilityCounts ensures that no value is present for VulnerabilityCounts, not even an explicit nil +func (o *HuggingfacePackageUpload) UnsetVulnerabilityCounts() { + o.VulnerabilityCounts.Unset() +} + // GetVulnerabilityScanResultsUrl returns the VulnerabilityScanResultsUrl field value if set, zero value otherwise. func (o *HuggingfacePackageUpload) GetVulnerabilityScanResultsUrl() string { if o == nil || IsNil(o.VulnerabilityScanResultsUrl) { @@ -3229,6 +3307,9 @@ func (o HuggingfacePackageUpload) ToMap() (map[string]interface{}, error) { if !IsNil(o.IsHidden) { toSerialize["is_hidden"] = o.IsHidden } + if !IsNil(o.IsMalwareDetected) { + toSerialize["is_malware_detected"] = o.IsMalwareDetected + } if !IsNil(o.IsMoveable) { toSerialize["is_moveable"] = o.IsMoveable } @@ -3397,6 +3478,9 @@ func (o HuggingfacePackageUpload) ToMap() (map[string]interface{}, error) { if !IsNil(o.VersionOrig) { toSerialize["version_orig"] = o.VersionOrig } + if o.VulnerabilityCounts.IsSet() { + toSerialize["vulnerability_counts"] = o.VulnerabilityCounts.Get() + } if !IsNil(o.VulnerabilityScanResultsUrl) { toSerialize["vulnerability_scan_results_url"] = o.VulnerabilityScanResultsUrl } @@ -3451,6 +3535,7 @@ func (o *HuggingfacePackageUpload) UnmarshalJSON(data []byte) (err error) { delete(additionalProperties, "is_deleteable") delete(additionalProperties, "is_downloadable") delete(additionalProperties, "is_hidden") + delete(additionalProperties, "is_malware_detected") delete(additionalProperties, "is_moveable") delete(additionalProperties, "is_quarantinable") delete(additionalProperties, "is_quarantined") @@ -3507,6 +3592,7 @@ func (o *HuggingfacePackageUpload) UnmarshalJSON(data []byte) (err error) { delete(additionalProperties, "uploader_url") delete(additionalProperties, "version") delete(additionalProperties, "version_orig") + delete(additionalProperties, "vulnerability_counts") delete(additionalProperties, "vulnerability_scan_results_url") o.AdditionalProperties = additionalProperties } diff --git a/model_huggingface_package_upload_request.go b/model_huggingface_package_upload_request.go index 098747ea..8cb0235c 100644 --- a/model_huggingface_package_upload_request.go +++ b/model_huggingface_package_upload_request.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1288.1 +API version: 1.1341.7 Contact: support@cloudsmith.io */ @@ -21,12 +21,15 @@ var _ MappedNullable = &HuggingfacePackageUploadRequest{} // HuggingfacePackageUploadRequest struct for HuggingfacePackageUploadRequest type HuggingfacePackageUploadRequest struct { + // Whether the package has been detected as containing malware. Requires Ultra plan. + IsMalwareDetected *bool `json:"is_malware_detected,omitempty"` // The primary file for the package. PackageFile string `json:"package_file"` // If true, the uploaded package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate. Republish *bool `json:"republish,omitempty"` // A comma-separated values list of tags to add to the package. - Tags NullableString `json:"tags,omitempty"` + Tags NullableString `json:"tags,omitempty"` + VulnerabilityCounts NullableWebOSVSeverityCounts `json:"vulnerability_counts,omitempty"` AdditionalProperties map[string]interface{} } @@ -50,6 +53,38 @@ func NewHuggingfacePackageUploadRequestWithDefaults() *HuggingfacePackageUploadR return &this } +// GetIsMalwareDetected returns the IsMalwareDetected field value if set, zero value otherwise. +func (o *HuggingfacePackageUploadRequest) GetIsMalwareDetected() bool { + if o == nil || IsNil(o.IsMalwareDetected) { + var ret bool + return ret + } + return *o.IsMalwareDetected +} + +// GetIsMalwareDetectedOk returns a tuple with the IsMalwareDetected field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *HuggingfacePackageUploadRequest) GetIsMalwareDetectedOk() (*bool, bool) { + if o == nil || IsNil(o.IsMalwareDetected) { + return nil, false + } + return o.IsMalwareDetected, true +} + +// HasIsMalwareDetected returns a boolean if a field has been set. +func (o *HuggingfacePackageUploadRequest) HasIsMalwareDetected() bool { + if o != nil && !IsNil(o.IsMalwareDetected) { + return true + } + + return false +} + +// SetIsMalwareDetected gets a reference to the given bool and assigns it to the IsMalwareDetected field. +func (o *HuggingfacePackageUploadRequest) SetIsMalwareDetected(v bool) { + o.IsMalwareDetected = &v +} + // GetPackageFile returns the PackageFile field value func (o *HuggingfacePackageUploadRequest) GetPackageFile() string { if o == nil { @@ -149,6 +184,49 @@ func (o *HuggingfacePackageUploadRequest) UnsetTags() { o.Tags.Unset() } +// GetVulnerabilityCounts returns the VulnerabilityCounts field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *HuggingfacePackageUploadRequest) GetVulnerabilityCounts() WebOSVSeverityCounts { + if o == nil || IsNil(o.VulnerabilityCounts.Get()) { + var ret WebOSVSeverityCounts + return ret + } + return *o.VulnerabilityCounts.Get() +} + +// GetVulnerabilityCountsOk returns a tuple with the VulnerabilityCounts 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 *HuggingfacePackageUploadRequest) GetVulnerabilityCountsOk() (*WebOSVSeverityCounts, bool) { + if o == nil { + return nil, false + } + return o.VulnerabilityCounts.Get(), o.VulnerabilityCounts.IsSet() +} + +// HasVulnerabilityCounts returns a boolean if a field has been set. +func (o *HuggingfacePackageUploadRequest) HasVulnerabilityCounts() bool { + if o != nil && o.VulnerabilityCounts.IsSet() { + return true + } + + return false +} + +// SetVulnerabilityCounts gets a reference to the given NullableWebOSVSeverityCounts and assigns it to the VulnerabilityCounts field. +func (o *HuggingfacePackageUploadRequest) SetVulnerabilityCounts(v WebOSVSeverityCounts) { + o.VulnerabilityCounts.Set(&v) +} + +// SetVulnerabilityCountsNil sets the value for VulnerabilityCounts to be an explicit nil +func (o *HuggingfacePackageUploadRequest) SetVulnerabilityCountsNil() { + o.VulnerabilityCounts.Set(nil) +} + +// UnsetVulnerabilityCounts ensures that no value is present for VulnerabilityCounts, not even an explicit nil +func (o *HuggingfacePackageUploadRequest) UnsetVulnerabilityCounts() { + o.VulnerabilityCounts.Unset() +} + func (o HuggingfacePackageUploadRequest) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { @@ -159,6 +237,9 @@ func (o HuggingfacePackageUploadRequest) MarshalJSON() ([]byte, error) { func (o HuggingfacePackageUploadRequest) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} + if !IsNil(o.IsMalwareDetected) { + toSerialize["is_malware_detected"] = o.IsMalwareDetected + } toSerialize["package_file"] = o.PackageFile if !IsNil(o.Republish) { toSerialize["republish"] = o.Republish @@ -166,6 +247,9 @@ func (o HuggingfacePackageUploadRequest) ToMap() (map[string]interface{}, error) if o.Tags.IsSet() { toSerialize["tags"] = o.Tags.Get() } + if o.VulnerabilityCounts.IsSet() { + toSerialize["vulnerability_counts"] = o.VulnerabilityCounts.Get() + } for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -209,9 +293,11 @@ func (o *HuggingfacePackageUploadRequest) UnmarshalJSON(data []byte) (err error) additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "is_malware_detected") delete(additionalProperties, "package_file") delete(additionalProperties, "republish") delete(additionalProperties, "tags") + delete(additionalProperties, "vulnerability_counts") o.AdditionalProperties = additionalProperties } diff --git a/model_huggingface_upstream.go b/model_huggingface_upstream.go index ad86bf83..9b5aa52a 100644 --- a/model_huggingface_upstream.go +++ b/model_huggingface_upstream.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1288.1 +API version: 1.1341.7 Contact: support@cloudsmith.io */ diff --git a/model_huggingface_upstream_request.go b/model_huggingface_upstream_request.go index 596c7b42..015344ea 100644 --- a/model_huggingface_upstream_request.go +++ b/model_huggingface_upstream_request.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1288.1 +API version: 1.1341.7 Contact: support@cloudsmith.io */ diff --git a/model_huggingface_upstream_request_patch.go b/model_huggingface_upstream_request_patch.go index 5cad8ccc..aeeb21ea 100644 --- a/model_huggingface_upstream_request_patch.go +++ b/model_huggingface_upstream_request_patch.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1288.1 +API version: 1.1341.7 Contact: support@cloudsmith.io */ diff --git a/model_luarocks_package_upload.go b/model_luarocks_package_upload.go index c2601005..0b33114d 100644 --- a/model_luarocks_package_upload.go +++ b/model_luarocks_package_upload.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1288.1 +API version: 1.1341.7 Contact: support@cloudsmith.io */ @@ -49,23 +49,25 @@ type LuarocksPackageUpload struct { // Unique and permanent identifier for the package. IdentifierPerm *string `json:"identifier_perm,omitempty"` // Return a map of identifier field names and their values. - Identifiers *map[string]string `json:"identifiers,omitempty"` - Indexed *bool `json:"indexed,omitempty"` - IsCancellable *bool `json:"is_cancellable,omitempty"` - IsCopyable *bool `json:"is_copyable,omitempty"` - IsDeleteable *bool `json:"is_deleteable,omitempty"` - IsDownloadable *bool `json:"is_downloadable,omitempty"` - IsHidden *bool `json:"is_hidden,omitempty"` - IsMoveable *bool `json:"is_moveable,omitempty"` - IsQuarantinable *bool `json:"is_quarantinable,omitempty"` - IsQuarantined *bool `json:"is_quarantined,omitempty"` - IsResyncable *bool `json:"is_resyncable,omitempty"` - IsSecurityScannable *bool `json:"is_security_scannable,omitempty"` - IsSyncAwaiting *bool `json:"is_sync_awaiting,omitempty"` - IsSyncCompleted *bool `json:"is_sync_completed,omitempty"` - IsSyncFailed *bool `json:"is_sync_failed,omitempty"` - IsSyncInFlight *bool `json:"is_sync_in_flight,omitempty"` - IsSyncInProgress *bool `json:"is_sync_in_progress,omitempty"` + Identifiers *map[string]string `json:"identifiers,omitempty"` + Indexed *bool `json:"indexed,omitempty"` + IsCancellable *bool `json:"is_cancellable,omitempty"` + IsCopyable *bool `json:"is_copyable,omitempty"` + IsDeleteable *bool `json:"is_deleteable,omitempty"` + IsDownloadable *bool `json:"is_downloadable,omitempty"` + IsHidden *bool `json:"is_hidden,omitempty"` + // Whether the package has been detected as containing malware. Requires Ultra plan. + IsMalwareDetected *bool `json:"is_malware_detected,omitempty"` + IsMoveable *bool `json:"is_moveable,omitempty"` + IsQuarantinable *bool `json:"is_quarantinable,omitempty"` + IsQuarantined *bool `json:"is_quarantined,omitempty"` + IsResyncable *bool `json:"is_resyncable,omitempty"` + IsSecurityScannable *bool `json:"is_security_scannable,omitempty"` + IsSyncAwaiting *bool `json:"is_sync_awaiting,omitempty"` + IsSyncCompleted *bool `json:"is_sync_completed,omitempty"` + IsSyncFailed *bool `json:"is_sync_failed,omitempty"` + IsSyncInFlight *bool `json:"is_sync_in_flight,omitempty"` + IsSyncInProgress *bool `json:"is_sync_in_progress,omitempty"` // The license of this package. License NullableString `json:"license,omitempty"` // The name of this package. @@ -135,9 +137,10 @@ type LuarocksPackageUpload struct { Uploader *string `json:"uploader,omitempty"` UploaderUrl *string `json:"uploader_url,omitempty"` // The raw version for this package. - Version NullableString `json:"version,omitempty"` - VersionOrig *string `json:"version_orig,omitempty"` - VulnerabilityScanResultsUrl *string `json:"vulnerability_scan_results_url,omitempty"` + Version NullableString `json:"version,omitempty"` + VersionOrig *string `json:"version_orig,omitempty"` + VulnerabilityCounts NullableWebOSVSeverityCounts `json:"vulnerability_counts,omitempty"` + VulnerabilityScanResultsUrl *string `json:"vulnerability_scan_results_url,omitempty"` AdditionalProperties map[string]interface{} } @@ -1154,6 +1157,38 @@ func (o *LuarocksPackageUpload) SetIsHidden(v bool) { o.IsHidden = &v } +// GetIsMalwareDetected returns the IsMalwareDetected field value if set, zero value otherwise. +func (o *LuarocksPackageUpload) GetIsMalwareDetected() bool { + if o == nil || IsNil(o.IsMalwareDetected) { + var ret bool + return ret + } + return *o.IsMalwareDetected +} + +// GetIsMalwareDetectedOk returns a tuple with the IsMalwareDetected field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *LuarocksPackageUpload) GetIsMalwareDetectedOk() (*bool, bool) { + if o == nil || IsNil(o.IsMalwareDetected) { + return nil, false + } + return o.IsMalwareDetected, true +} + +// HasIsMalwareDetected returns a boolean if a field has been set. +func (o *LuarocksPackageUpload) HasIsMalwareDetected() bool { + if o != nil && !IsNil(o.IsMalwareDetected) { + return true + } + + return false +} + +// SetIsMalwareDetected gets a reference to the given bool and assigns it to the IsMalwareDetected field. +func (o *LuarocksPackageUpload) SetIsMalwareDetected(v bool) { + o.IsMalwareDetected = &v +} + // GetIsMoveable returns the IsMoveable field value if set, zero value otherwise. func (o *LuarocksPackageUpload) GetIsMoveable() bool { if o == nil || IsNil(o.IsMoveable) { @@ -3100,6 +3135,49 @@ func (o *LuarocksPackageUpload) SetVersionOrig(v string) { o.VersionOrig = &v } +// GetVulnerabilityCounts returns the VulnerabilityCounts field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *LuarocksPackageUpload) GetVulnerabilityCounts() WebOSVSeverityCounts { + if o == nil || IsNil(o.VulnerabilityCounts.Get()) { + var ret WebOSVSeverityCounts + return ret + } + return *o.VulnerabilityCounts.Get() +} + +// GetVulnerabilityCountsOk returns a tuple with the VulnerabilityCounts 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 *LuarocksPackageUpload) GetVulnerabilityCountsOk() (*WebOSVSeverityCounts, bool) { + if o == nil { + return nil, false + } + return o.VulnerabilityCounts.Get(), o.VulnerabilityCounts.IsSet() +} + +// HasVulnerabilityCounts returns a boolean if a field has been set. +func (o *LuarocksPackageUpload) HasVulnerabilityCounts() bool { + if o != nil && o.VulnerabilityCounts.IsSet() { + return true + } + + return false +} + +// SetVulnerabilityCounts gets a reference to the given NullableWebOSVSeverityCounts and assigns it to the VulnerabilityCounts field. +func (o *LuarocksPackageUpload) SetVulnerabilityCounts(v WebOSVSeverityCounts) { + o.VulnerabilityCounts.Set(&v) +} + +// SetVulnerabilityCountsNil sets the value for VulnerabilityCounts to be an explicit nil +func (o *LuarocksPackageUpload) SetVulnerabilityCountsNil() { + o.VulnerabilityCounts.Set(nil) +} + +// UnsetVulnerabilityCounts ensures that no value is present for VulnerabilityCounts, not even an explicit nil +func (o *LuarocksPackageUpload) UnsetVulnerabilityCounts() { + o.VulnerabilityCounts.Unset() +} + // GetVulnerabilityScanResultsUrl returns the VulnerabilityScanResultsUrl field value if set, zero value otherwise. func (o *LuarocksPackageUpload) GetVulnerabilityScanResultsUrl() string { if o == nil || IsNil(o.VulnerabilityScanResultsUrl) { @@ -3229,6 +3307,9 @@ func (o LuarocksPackageUpload) ToMap() (map[string]interface{}, error) { if !IsNil(o.IsHidden) { toSerialize["is_hidden"] = o.IsHidden } + if !IsNil(o.IsMalwareDetected) { + toSerialize["is_malware_detected"] = o.IsMalwareDetected + } if !IsNil(o.IsMoveable) { toSerialize["is_moveable"] = o.IsMoveable } @@ -3397,6 +3478,9 @@ func (o LuarocksPackageUpload) ToMap() (map[string]interface{}, error) { if !IsNil(o.VersionOrig) { toSerialize["version_orig"] = o.VersionOrig } + if o.VulnerabilityCounts.IsSet() { + toSerialize["vulnerability_counts"] = o.VulnerabilityCounts.Get() + } if !IsNil(o.VulnerabilityScanResultsUrl) { toSerialize["vulnerability_scan_results_url"] = o.VulnerabilityScanResultsUrl } @@ -3451,6 +3535,7 @@ func (o *LuarocksPackageUpload) UnmarshalJSON(data []byte) (err error) { delete(additionalProperties, "is_deleteable") delete(additionalProperties, "is_downloadable") delete(additionalProperties, "is_hidden") + delete(additionalProperties, "is_malware_detected") delete(additionalProperties, "is_moveable") delete(additionalProperties, "is_quarantinable") delete(additionalProperties, "is_quarantined") @@ -3507,6 +3592,7 @@ func (o *LuarocksPackageUpload) UnmarshalJSON(data []byte) (err error) { delete(additionalProperties, "uploader_url") delete(additionalProperties, "version") delete(additionalProperties, "version_orig") + delete(additionalProperties, "vulnerability_counts") delete(additionalProperties, "vulnerability_scan_results_url") o.AdditionalProperties = additionalProperties } diff --git a/model_luarocks_package_upload_request.go b/model_luarocks_package_upload_request.go index 52991b13..d2e9da9a 100644 --- a/model_luarocks_package_upload_request.go +++ b/model_luarocks_package_upload_request.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1288.1 +API version: 1.1341.7 Contact: support@cloudsmith.io */ @@ -21,12 +21,15 @@ var _ MappedNullable = &LuarocksPackageUploadRequest{} // LuarocksPackageUploadRequest struct for LuarocksPackageUploadRequest type LuarocksPackageUploadRequest struct { + // Whether the package has been detected as containing malware. Requires Ultra plan. + IsMalwareDetected *bool `json:"is_malware_detected,omitempty"` // The primary file for the package. PackageFile string `json:"package_file"` // If true, the uploaded package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate. Republish *bool `json:"republish,omitempty"` // A comma-separated values list of tags to add to the package. - Tags NullableString `json:"tags,omitempty"` + Tags NullableString `json:"tags,omitempty"` + VulnerabilityCounts NullableWebOSVSeverityCounts `json:"vulnerability_counts,omitempty"` AdditionalProperties map[string]interface{} } @@ -50,6 +53,38 @@ func NewLuarocksPackageUploadRequestWithDefaults() *LuarocksPackageUploadRequest return &this } +// GetIsMalwareDetected returns the IsMalwareDetected field value if set, zero value otherwise. +func (o *LuarocksPackageUploadRequest) GetIsMalwareDetected() bool { + if o == nil || IsNil(o.IsMalwareDetected) { + var ret bool + return ret + } + return *o.IsMalwareDetected +} + +// GetIsMalwareDetectedOk returns a tuple with the IsMalwareDetected field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *LuarocksPackageUploadRequest) GetIsMalwareDetectedOk() (*bool, bool) { + if o == nil || IsNil(o.IsMalwareDetected) { + return nil, false + } + return o.IsMalwareDetected, true +} + +// HasIsMalwareDetected returns a boolean if a field has been set. +func (o *LuarocksPackageUploadRequest) HasIsMalwareDetected() bool { + if o != nil && !IsNil(o.IsMalwareDetected) { + return true + } + + return false +} + +// SetIsMalwareDetected gets a reference to the given bool and assigns it to the IsMalwareDetected field. +func (o *LuarocksPackageUploadRequest) SetIsMalwareDetected(v bool) { + o.IsMalwareDetected = &v +} + // GetPackageFile returns the PackageFile field value func (o *LuarocksPackageUploadRequest) GetPackageFile() string { if o == nil { @@ -149,6 +184,49 @@ func (o *LuarocksPackageUploadRequest) UnsetTags() { o.Tags.Unset() } +// GetVulnerabilityCounts returns the VulnerabilityCounts field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *LuarocksPackageUploadRequest) GetVulnerabilityCounts() WebOSVSeverityCounts { + if o == nil || IsNil(o.VulnerabilityCounts.Get()) { + var ret WebOSVSeverityCounts + return ret + } + return *o.VulnerabilityCounts.Get() +} + +// GetVulnerabilityCountsOk returns a tuple with the VulnerabilityCounts 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 *LuarocksPackageUploadRequest) GetVulnerabilityCountsOk() (*WebOSVSeverityCounts, bool) { + if o == nil { + return nil, false + } + return o.VulnerabilityCounts.Get(), o.VulnerabilityCounts.IsSet() +} + +// HasVulnerabilityCounts returns a boolean if a field has been set. +func (o *LuarocksPackageUploadRequest) HasVulnerabilityCounts() bool { + if o != nil && o.VulnerabilityCounts.IsSet() { + return true + } + + return false +} + +// SetVulnerabilityCounts gets a reference to the given NullableWebOSVSeverityCounts and assigns it to the VulnerabilityCounts field. +func (o *LuarocksPackageUploadRequest) SetVulnerabilityCounts(v WebOSVSeverityCounts) { + o.VulnerabilityCounts.Set(&v) +} + +// SetVulnerabilityCountsNil sets the value for VulnerabilityCounts to be an explicit nil +func (o *LuarocksPackageUploadRequest) SetVulnerabilityCountsNil() { + o.VulnerabilityCounts.Set(nil) +} + +// UnsetVulnerabilityCounts ensures that no value is present for VulnerabilityCounts, not even an explicit nil +func (o *LuarocksPackageUploadRequest) UnsetVulnerabilityCounts() { + o.VulnerabilityCounts.Unset() +} + func (o LuarocksPackageUploadRequest) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { @@ -159,6 +237,9 @@ func (o LuarocksPackageUploadRequest) MarshalJSON() ([]byte, error) { func (o LuarocksPackageUploadRequest) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} + if !IsNil(o.IsMalwareDetected) { + toSerialize["is_malware_detected"] = o.IsMalwareDetected + } toSerialize["package_file"] = o.PackageFile if !IsNil(o.Republish) { toSerialize["republish"] = o.Republish @@ -166,6 +247,9 @@ func (o LuarocksPackageUploadRequest) ToMap() (map[string]interface{}, error) { if o.Tags.IsSet() { toSerialize["tags"] = o.Tags.Get() } + if o.VulnerabilityCounts.IsSet() { + toSerialize["vulnerability_counts"] = o.VulnerabilityCounts.Get() + } for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -209,9 +293,11 @@ func (o *LuarocksPackageUploadRequest) UnmarshalJSON(data []byte) (err error) { additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "is_malware_detected") delete(additionalProperties, "package_file") delete(additionalProperties, "republish") delete(additionalProperties, "tags") + delete(additionalProperties, "vulnerability_counts") o.AdditionalProperties = additionalProperties } diff --git a/model_maven_package_upload.go b/model_maven_package_upload.go index 808d4c20..e031dbde 100644 --- a/model_maven_package_upload.go +++ b/model_maven_package_upload.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1288.1 +API version: 1.1341.7 Contact: support@cloudsmith.io */ @@ -53,23 +53,25 @@ type MavenPackageUpload struct { // Unique and permanent identifier for the package. IdentifierPerm *string `json:"identifier_perm,omitempty"` // Return a map of identifier field names and their values. - Identifiers *map[string]string `json:"identifiers,omitempty"` - Indexed *bool `json:"indexed,omitempty"` - IsCancellable *bool `json:"is_cancellable,omitempty"` - IsCopyable *bool `json:"is_copyable,omitempty"` - IsDeleteable *bool `json:"is_deleteable,omitempty"` - IsDownloadable *bool `json:"is_downloadable,omitempty"` - IsHidden *bool `json:"is_hidden,omitempty"` - IsMoveable *bool `json:"is_moveable,omitempty"` - IsQuarantinable *bool `json:"is_quarantinable,omitempty"` - IsQuarantined *bool `json:"is_quarantined,omitempty"` - IsResyncable *bool `json:"is_resyncable,omitempty"` - IsSecurityScannable *bool `json:"is_security_scannable,omitempty"` - IsSyncAwaiting *bool `json:"is_sync_awaiting,omitempty"` - IsSyncCompleted *bool `json:"is_sync_completed,omitempty"` - IsSyncFailed *bool `json:"is_sync_failed,omitempty"` - IsSyncInFlight *bool `json:"is_sync_in_flight,omitempty"` - IsSyncInProgress *bool `json:"is_sync_in_progress,omitempty"` + Identifiers *map[string]string `json:"identifiers,omitempty"` + Indexed *bool `json:"indexed,omitempty"` + IsCancellable *bool `json:"is_cancellable,omitempty"` + IsCopyable *bool `json:"is_copyable,omitempty"` + IsDeleteable *bool `json:"is_deleteable,omitempty"` + IsDownloadable *bool `json:"is_downloadable,omitempty"` + IsHidden *bool `json:"is_hidden,omitempty"` + // Whether the package has been detected as containing malware. Requires Ultra plan. + IsMalwareDetected *bool `json:"is_malware_detected,omitempty"` + IsMoveable *bool `json:"is_moveable,omitempty"` + IsQuarantinable *bool `json:"is_quarantinable,omitempty"` + IsQuarantined *bool `json:"is_quarantined,omitempty"` + IsResyncable *bool `json:"is_resyncable,omitempty"` + IsSecurityScannable *bool `json:"is_security_scannable,omitempty"` + IsSyncAwaiting *bool `json:"is_sync_awaiting,omitempty"` + IsSyncCompleted *bool `json:"is_sync_completed,omitempty"` + IsSyncFailed *bool `json:"is_sync_failed,omitempty"` + IsSyncInFlight *bool `json:"is_sync_in_flight,omitempty"` + IsSyncInProgress *bool `json:"is_sync_in_progress,omitempty"` // The license of this package. License NullableString `json:"license,omitempty"` // The name of this package. @@ -143,9 +145,10 @@ type MavenPackageUpload struct { Uploader *string `json:"uploader,omitempty"` UploaderUrl *string `json:"uploader_url,omitempty"` // The raw version for this package. - Version NullableString `json:"version,omitempty"` - VersionOrig *string `json:"version_orig,omitempty"` - VulnerabilityScanResultsUrl *string `json:"vulnerability_scan_results_url,omitempty"` + Version NullableString `json:"version,omitempty"` + VersionOrig *string `json:"version_orig,omitempty"` + VulnerabilityCounts NullableWebOSVSeverityCounts `json:"vulnerability_counts,omitempty"` + VulnerabilityScanResultsUrl *string `json:"vulnerability_scan_results_url,omitempty"` AdditionalProperties map[string]interface{} } @@ -1248,6 +1251,38 @@ func (o *MavenPackageUpload) SetIsHidden(v bool) { o.IsHidden = &v } +// GetIsMalwareDetected returns the IsMalwareDetected field value if set, zero value otherwise. +func (o *MavenPackageUpload) GetIsMalwareDetected() bool { + if o == nil || IsNil(o.IsMalwareDetected) { + var ret bool + return ret + } + return *o.IsMalwareDetected +} + +// GetIsMalwareDetectedOk returns a tuple with the IsMalwareDetected field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *MavenPackageUpload) GetIsMalwareDetectedOk() (*bool, bool) { + if o == nil || IsNil(o.IsMalwareDetected) { + return nil, false + } + return o.IsMalwareDetected, true +} + +// HasIsMalwareDetected returns a boolean if a field has been set. +func (o *MavenPackageUpload) HasIsMalwareDetected() bool { + if o != nil && !IsNil(o.IsMalwareDetected) { + return true + } + + return false +} + +// SetIsMalwareDetected gets a reference to the given bool and assigns it to the IsMalwareDetected field. +func (o *MavenPackageUpload) SetIsMalwareDetected(v bool) { + o.IsMalwareDetected = &v +} + // GetIsMoveable returns the IsMoveable field value if set, zero value otherwise. func (o *MavenPackageUpload) GetIsMoveable() bool { if o == nil || IsNil(o.IsMoveable) { @@ -3323,6 +3358,49 @@ func (o *MavenPackageUpload) SetVersionOrig(v string) { o.VersionOrig = &v } +// GetVulnerabilityCounts returns the VulnerabilityCounts field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *MavenPackageUpload) GetVulnerabilityCounts() WebOSVSeverityCounts { + if o == nil || IsNil(o.VulnerabilityCounts.Get()) { + var ret WebOSVSeverityCounts + return ret + } + return *o.VulnerabilityCounts.Get() +} + +// GetVulnerabilityCountsOk returns a tuple with the VulnerabilityCounts 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 *MavenPackageUpload) GetVulnerabilityCountsOk() (*WebOSVSeverityCounts, bool) { + if o == nil { + return nil, false + } + return o.VulnerabilityCounts.Get(), o.VulnerabilityCounts.IsSet() +} + +// HasVulnerabilityCounts returns a boolean if a field has been set. +func (o *MavenPackageUpload) HasVulnerabilityCounts() bool { + if o != nil && o.VulnerabilityCounts.IsSet() { + return true + } + + return false +} + +// SetVulnerabilityCounts gets a reference to the given NullableWebOSVSeverityCounts and assigns it to the VulnerabilityCounts field. +func (o *MavenPackageUpload) SetVulnerabilityCounts(v WebOSVSeverityCounts) { + o.VulnerabilityCounts.Set(&v) +} + +// SetVulnerabilityCountsNil sets the value for VulnerabilityCounts to be an explicit nil +func (o *MavenPackageUpload) SetVulnerabilityCountsNil() { + o.VulnerabilityCounts.Set(nil) +} + +// UnsetVulnerabilityCounts ensures that no value is present for VulnerabilityCounts, not even an explicit nil +func (o *MavenPackageUpload) UnsetVulnerabilityCounts() { + o.VulnerabilityCounts.Unset() +} + // GetVulnerabilityScanResultsUrl returns the VulnerabilityScanResultsUrl field value if set, zero value otherwise. func (o *MavenPackageUpload) GetVulnerabilityScanResultsUrl() string { if o == nil || IsNil(o.VulnerabilityScanResultsUrl) { @@ -3458,6 +3536,9 @@ func (o MavenPackageUpload) ToMap() (map[string]interface{}, error) { if !IsNil(o.IsHidden) { toSerialize["is_hidden"] = o.IsHidden } + if !IsNil(o.IsMalwareDetected) { + toSerialize["is_malware_detected"] = o.IsMalwareDetected + } if !IsNil(o.IsMoveable) { toSerialize["is_moveable"] = o.IsMoveable } @@ -3635,6 +3716,9 @@ func (o MavenPackageUpload) ToMap() (map[string]interface{}, error) { if !IsNil(o.VersionOrig) { toSerialize["version_orig"] = o.VersionOrig } + if o.VulnerabilityCounts.IsSet() { + toSerialize["vulnerability_counts"] = o.VulnerabilityCounts.Get() + } if !IsNil(o.VulnerabilityScanResultsUrl) { toSerialize["vulnerability_scan_results_url"] = o.VulnerabilityScanResultsUrl } @@ -3691,6 +3775,7 @@ func (o *MavenPackageUpload) UnmarshalJSON(data []byte) (err error) { delete(additionalProperties, "is_deleteable") delete(additionalProperties, "is_downloadable") delete(additionalProperties, "is_hidden") + delete(additionalProperties, "is_malware_detected") delete(additionalProperties, "is_moveable") delete(additionalProperties, "is_quarantinable") delete(additionalProperties, "is_quarantined") @@ -3750,6 +3835,7 @@ func (o *MavenPackageUpload) UnmarshalJSON(data []byte) (err error) { delete(additionalProperties, "uploader_url") delete(additionalProperties, "version") delete(additionalProperties, "version_orig") + delete(additionalProperties, "vulnerability_counts") delete(additionalProperties, "vulnerability_scan_results_url") o.AdditionalProperties = additionalProperties } diff --git a/model_maven_package_upload_request.go b/model_maven_package_upload_request.go index 8dde3d47..8b03de86 100644 --- a/model_maven_package_upload_request.go +++ b/model_maven_package_upload_request.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1288.1 +API version: 1.1341.7 Contact: support@cloudsmith.io */ @@ -27,6 +27,8 @@ type MavenPackageUploadRequest struct { ExtraFiles []string `json:"extra_files,omitempty"` // Artifact's group ID. GroupId NullableString `json:"group_id,omitempty"` + // Whether the package has been detected as containing malware. Requires Ultra plan. + IsMalwareDetected *bool `json:"is_malware_detected,omitempty"` // The ivy file is an XML file describing the dependencies of the project. IvyFile NullableString `json:"ivy_file,omitempty"` // Adds bundled Java documentation to the Maven package @@ -48,7 +50,8 @@ type MavenPackageUploadRequest struct { // Adds bundled Java tests to the Maven package. TestsFile NullableString `json:"tests_file,omitempty"` // The raw version for this package. - Version NullableString `json:"version,omitempty"` + Version NullableString `json:"version,omitempty"` + VulnerabilityCounts NullableWebOSVSeverityCounts `json:"vulnerability_counts,omitempty"` AdditionalProperties map[string]interface{} } @@ -191,6 +194,38 @@ func (o *MavenPackageUploadRequest) UnsetGroupId() { o.GroupId.Unset() } +// GetIsMalwareDetected returns the IsMalwareDetected field value if set, zero value otherwise. +func (o *MavenPackageUploadRequest) GetIsMalwareDetected() bool { + if o == nil || IsNil(o.IsMalwareDetected) { + var ret bool + return ret + } + return *o.IsMalwareDetected +} + +// GetIsMalwareDetectedOk returns a tuple with the IsMalwareDetected field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *MavenPackageUploadRequest) GetIsMalwareDetectedOk() (*bool, bool) { + if o == nil || IsNil(o.IsMalwareDetected) { + return nil, false + } + return o.IsMalwareDetected, true +} + +// HasIsMalwareDetected returns a boolean if a field has been set. +func (o *MavenPackageUploadRequest) HasIsMalwareDetected() bool { + if o != nil && !IsNil(o.IsMalwareDetected) { + return true + } + + return false +} + +// SetIsMalwareDetected gets a reference to the given bool and assigns it to the IsMalwareDetected field. +func (o *MavenPackageUploadRequest) SetIsMalwareDetected(v bool) { + o.IsMalwareDetected = &v +} + // GetIvyFile returns the IvyFile field value if set, zero value otherwise (both if not set or set to explicit null). func (o *MavenPackageUploadRequest) GetIvyFile() string { if o == nil || IsNil(o.IvyFile.Get()) { @@ -677,6 +712,49 @@ func (o *MavenPackageUploadRequest) UnsetVersion() { o.Version.Unset() } +// GetVulnerabilityCounts returns the VulnerabilityCounts field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *MavenPackageUploadRequest) GetVulnerabilityCounts() WebOSVSeverityCounts { + if o == nil || IsNil(o.VulnerabilityCounts.Get()) { + var ret WebOSVSeverityCounts + return ret + } + return *o.VulnerabilityCounts.Get() +} + +// GetVulnerabilityCountsOk returns a tuple with the VulnerabilityCounts 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 *MavenPackageUploadRequest) GetVulnerabilityCountsOk() (*WebOSVSeverityCounts, bool) { + if o == nil { + return nil, false + } + return o.VulnerabilityCounts.Get(), o.VulnerabilityCounts.IsSet() +} + +// HasVulnerabilityCounts returns a boolean if a field has been set. +func (o *MavenPackageUploadRequest) HasVulnerabilityCounts() bool { + if o != nil && o.VulnerabilityCounts.IsSet() { + return true + } + + return false +} + +// SetVulnerabilityCounts gets a reference to the given NullableWebOSVSeverityCounts and assigns it to the VulnerabilityCounts field. +func (o *MavenPackageUploadRequest) SetVulnerabilityCounts(v WebOSVSeverityCounts) { + o.VulnerabilityCounts.Set(&v) +} + +// SetVulnerabilityCountsNil sets the value for VulnerabilityCounts to be an explicit nil +func (o *MavenPackageUploadRequest) SetVulnerabilityCountsNil() { + o.VulnerabilityCounts.Set(nil) +} + +// UnsetVulnerabilityCounts ensures that no value is present for VulnerabilityCounts, not even an explicit nil +func (o *MavenPackageUploadRequest) UnsetVulnerabilityCounts() { + o.VulnerabilityCounts.Unset() +} + func (o MavenPackageUploadRequest) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { @@ -696,6 +774,9 @@ func (o MavenPackageUploadRequest) ToMap() (map[string]interface{}, error) { if o.GroupId.IsSet() { toSerialize["group_id"] = o.GroupId.Get() } + if !IsNil(o.IsMalwareDetected) { + toSerialize["is_malware_detected"] = o.IsMalwareDetected + } if o.IvyFile.IsSet() { toSerialize["ivy_file"] = o.IvyFile.Get() } @@ -730,6 +811,9 @@ func (o MavenPackageUploadRequest) ToMap() (map[string]interface{}, error) { if o.Version.IsSet() { toSerialize["version"] = o.Version.Get() } + if o.VulnerabilityCounts.IsSet() { + toSerialize["vulnerability_counts"] = o.VulnerabilityCounts.Get() + } for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -776,6 +860,7 @@ func (o *MavenPackageUploadRequest) UnmarshalJSON(data []byte) (err error) { delete(additionalProperties, "artifact_id") delete(additionalProperties, "extra_files") delete(additionalProperties, "group_id") + delete(additionalProperties, "is_malware_detected") delete(additionalProperties, "ivy_file") delete(additionalProperties, "javadoc_file") delete(additionalProperties, "package_file") @@ -788,6 +873,7 @@ func (o *MavenPackageUploadRequest) UnmarshalJSON(data []byte) (err error) { delete(additionalProperties, "tags") delete(additionalProperties, "tests_file") delete(additionalProperties, "version") + delete(additionalProperties, "vulnerability_counts") o.AdditionalProperties = additionalProperties } diff --git a/model_maven_upstream.go b/model_maven_upstream.go index 9a52cec4..225daa6b 100644 --- a/model_maven_upstream.go +++ b/model_maven_upstream.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1288.1 +API version: 1.1341.7 Contact: support@cloudsmith.io */ diff --git a/model_maven_upstream_request.go b/model_maven_upstream_request.go index 7d2c7644..24fe7faa 100644 --- a/model_maven_upstream_request.go +++ b/model_maven_upstream_request.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1288.1 +API version: 1.1341.7 Contact: support@cloudsmith.io */ diff --git a/model_maven_upstream_request_patch.go b/model_maven_upstream_request_patch.go index 25645bcc..d0bcc035 100644 --- a/model_maven_upstream_request_patch.go +++ b/model_maven_upstream_request_patch.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1288.1 +API version: 1.1341.7 Contact: support@cloudsmith.io */ diff --git a/model_mcp_package_upload.go b/model_mcp_package_upload.go index c35773fe..c2d88a01 100644 --- a/model_mcp_package_upload.go +++ b/model_mcp_package_upload.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1288.1 +API version: 1.1341.7 Contact: support@cloudsmith.io */ @@ -49,23 +49,25 @@ type McpPackageUpload struct { // Unique and permanent identifier for the package. IdentifierPerm *string `json:"identifier_perm,omitempty"` // Return a map of identifier field names and their values. - Identifiers *map[string]string `json:"identifiers,omitempty"` - Indexed *bool `json:"indexed,omitempty"` - IsCancellable *bool `json:"is_cancellable,omitempty"` - IsCopyable *bool `json:"is_copyable,omitempty"` - IsDeleteable *bool `json:"is_deleteable,omitempty"` - IsDownloadable *bool `json:"is_downloadable,omitempty"` - IsHidden *bool `json:"is_hidden,omitempty"` - IsMoveable *bool `json:"is_moveable,omitempty"` - IsQuarantinable *bool `json:"is_quarantinable,omitempty"` - IsQuarantined *bool `json:"is_quarantined,omitempty"` - IsResyncable *bool `json:"is_resyncable,omitempty"` - IsSecurityScannable *bool `json:"is_security_scannable,omitempty"` - IsSyncAwaiting *bool `json:"is_sync_awaiting,omitempty"` - IsSyncCompleted *bool `json:"is_sync_completed,omitempty"` - IsSyncFailed *bool `json:"is_sync_failed,omitempty"` - IsSyncInFlight *bool `json:"is_sync_in_flight,omitempty"` - IsSyncInProgress *bool `json:"is_sync_in_progress,omitempty"` + Identifiers *map[string]string `json:"identifiers,omitempty"` + Indexed *bool `json:"indexed,omitempty"` + IsCancellable *bool `json:"is_cancellable,omitempty"` + IsCopyable *bool `json:"is_copyable,omitempty"` + IsDeleteable *bool `json:"is_deleteable,omitempty"` + IsDownloadable *bool `json:"is_downloadable,omitempty"` + IsHidden *bool `json:"is_hidden,omitempty"` + // Whether the package has been detected as containing malware. Requires Ultra plan. + IsMalwareDetected *bool `json:"is_malware_detected,omitempty"` + IsMoveable *bool `json:"is_moveable,omitempty"` + IsQuarantinable *bool `json:"is_quarantinable,omitempty"` + IsQuarantined *bool `json:"is_quarantined,omitempty"` + IsResyncable *bool `json:"is_resyncable,omitempty"` + IsSecurityScannable *bool `json:"is_security_scannable,omitempty"` + IsSyncAwaiting *bool `json:"is_sync_awaiting,omitempty"` + IsSyncCompleted *bool `json:"is_sync_completed,omitempty"` + IsSyncFailed *bool `json:"is_sync_failed,omitempty"` + IsSyncInFlight *bool `json:"is_sync_in_flight,omitempty"` + IsSyncInProgress *bool `json:"is_sync_in_progress,omitempty"` // The license of this package. License NullableString `json:"license,omitempty"` // The name of this package. @@ -135,9 +137,10 @@ type McpPackageUpload struct { Uploader *string `json:"uploader,omitempty"` UploaderUrl *string `json:"uploader_url,omitempty"` // The raw version for this package. - Version NullableString `json:"version,omitempty"` - VersionOrig *string `json:"version_orig,omitempty"` - VulnerabilityScanResultsUrl *string `json:"vulnerability_scan_results_url,omitempty"` + Version NullableString `json:"version,omitempty"` + VersionOrig *string `json:"version_orig,omitempty"` + VulnerabilityCounts NullableWebOSVSeverityCounts `json:"vulnerability_counts,omitempty"` + VulnerabilityScanResultsUrl *string `json:"vulnerability_scan_results_url,omitempty"` AdditionalProperties map[string]interface{} } @@ -1154,6 +1157,38 @@ func (o *McpPackageUpload) SetIsHidden(v bool) { o.IsHidden = &v } +// GetIsMalwareDetected returns the IsMalwareDetected field value if set, zero value otherwise. +func (o *McpPackageUpload) GetIsMalwareDetected() bool { + if o == nil || IsNil(o.IsMalwareDetected) { + var ret bool + return ret + } + return *o.IsMalwareDetected +} + +// GetIsMalwareDetectedOk returns a tuple with the IsMalwareDetected field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *McpPackageUpload) GetIsMalwareDetectedOk() (*bool, bool) { + if o == nil || IsNil(o.IsMalwareDetected) { + return nil, false + } + return o.IsMalwareDetected, true +} + +// HasIsMalwareDetected returns a boolean if a field has been set. +func (o *McpPackageUpload) HasIsMalwareDetected() bool { + if o != nil && !IsNil(o.IsMalwareDetected) { + return true + } + + return false +} + +// SetIsMalwareDetected gets a reference to the given bool and assigns it to the IsMalwareDetected field. +func (o *McpPackageUpload) SetIsMalwareDetected(v bool) { + o.IsMalwareDetected = &v +} + // GetIsMoveable returns the IsMoveable field value if set, zero value otherwise. func (o *McpPackageUpload) GetIsMoveable() bool { if o == nil || IsNil(o.IsMoveable) { @@ -3100,6 +3135,49 @@ func (o *McpPackageUpload) SetVersionOrig(v string) { o.VersionOrig = &v } +// GetVulnerabilityCounts returns the VulnerabilityCounts field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *McpPackageUpload) GetVulnerabilityCounts() WebOSVSeverityCounts { + if o == nil || IsNil(o.VulnerabilityCounts.Get()) { + var ret WebOSVSeverityCounts + return ret + } + return *o.VulnerabilityCounts.Get() +} + +// GetVulnerabilityCountsOk returns a tuple with the VulnerabilityCounts 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 *McpPackageUpload) GetVulnerabilityCountsOk() (*WebOSVSeverityCounts, bool) { + if o == nil { + return nil, false + } + return o.VulnerabilityCounts.Get(), o.VulnerabilityCounts.IsSet() +} + +// HasVulnerabilityCounts returns a boolean if a field has been set. +func (o *McpPackageUpload) HasVulnerabilityCounts() bool { + if o != nil && o.VulnerabilityCounts.IsSet() { + return true + } + + return false +} + +// SetVulnerabilityCounts gets a reference to the given NullableWebOSVSeverityCounts and assigns it to the VulnerabilityCounts field. +func (o *McpPackageUpload) SetVulnerabilityCounts(v WebOSVSeverityCounts) { + o.VulnerabilityCounts.Set(&v) +} + +// SetVulnerabilityCountsNil sets the value for VulnerabilityCounts to be an explicit nil +func (o *McpPackageUpload) SetVulnerabilityCountsNil() { + o.VulnerabilityCounts.Set(nil) +} + +// UnsetVulnerabilityCounts ensures that no value is present for VulnerabilityCounts, not even an explicit nil +func (o *McpPackageUpload) UnsetVulnerabilityCounts() { + o.VulnerabilityCounts.Unset() +} + // GetVulnerabilityScanResultsUrl returns the VulnerabilityScanResultsUrl field value if set, zero value otherwise. func (o *McpPackageUpload) GetVulnerabilityScanResultsUrl() string { if o == nil || IsNil(o.VulnerabilityScanResultsUrl) { @@ -3229,6 +3307,9 @@ func (o McpPackageUpload) ToMap() (map[string]interface{}, error) { if !IsNil(o.IsHidden) { toSerialize["is_hidden"] = o.IsHidden } + if !IsNil(o.IsMalwareDetected) { + toSerialize["is_malware_detected"] = o.IsMalwareDetected + } if !IsNil(o.IsMoveable) { toSerialize["is_moveable"] = o.IsMoveable } @@ -3397,6 +3478,9 @@ func (o McpPackageUpload) ToMap() (map[string]interface{}, error) { if !IsNil(o.VersionOrig) { toSerialize["version_orig"] = o.VersionOrig } + if o.VulnerabilityCounts.IsSet() { + toSerialize["vulnerability_counts"] = o.VulnerabilityCounts.Get() + } if !IsNil(o.VulnerabilityScanResultsUrl) { toSerialize["vulnerability_scan_results_url"] = o.VulnerabilityScanResultsUrl } @@ -3451,6 +3535,7 @@ func (o *McpPackageUpload) UnmarshalJSON(data []byte) (err error) { delete(additionalProperties, "is_deleteable") delete(additionalProperties, "is_downloadable") delete(additionalProperties, "is_hidden") + delete(additionalProperties, "is_malware_detected") delete(additionalProperties, "is_moveable") delete(additionalProperties, "is_quarantinable") delete(additionalProperties, "is_quarantined") @@ -3507,6 +3592,7 @@ func (o *McpPackageUpload) UnmarshalJSON(data []byte) (err error) { delete(additionalProperties, "uploader_url") delete(additionalProperties, "version") delete(additionalProperties, "version_orig") + delete(additionalProperties, "vulnerability_counts") delete(additionalProperties, "vulnerability_scan_results_url") o.AdditionalProperties = additionalProperties } diff --git a/model_mcp_package_upload_request.go b/model_mcp_package_upload_request.go index 6cdddcca..6b5f9059 100644 --- a/model_mcp_package_upload_request.go +++ b/model_mcp_package_upload_request.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1288.1 +API version: 1.1341.7 Contact: support@cloudsmith.io */ @@ -21,6 +21,8 @@ var _ MappedNullable = &McpPackageUploadRequest{} // McpPackageUploadRequest struct for McpPackageUploadRequest type McpPackageUploadRequest struct { + // Whether the package has been detected as containing malware. Requires Ultra plan. + IsMalwareDetected *bool `json:"is_malware_detected,omitempty"` // The primary file for the package. PackageFile string `json:"package_file"` // If true, the uploaded package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate. @@ -28,7 +30,8 @@ type McpPackageUploadRequest struct { // A comma-separated values list of tags to add to the package. Tags NullableString `json:"tags,omitempty"` // The raw version for this package. - Version NullableString `json:"version,omitempty"` + Version NullableString `json:"version,omitempty"` + VulnerabilityCounts NullableWebOSVSeverityCounts `json:"vulnerability_counts,omitempty"` AdditionalProperties map[string]interface{} } @@ -52,6 +55,38 @@ func NewMcpPackageUploadRequestWithDefaults() *McpPackageUploadRequest { return &this } +// GetIsMalwareDetected returns the IsMalwareDetected field value if set, zero value otherwise. +func (o *McpPackageUploadRequest) GetIsMalwareDetected() bool { + if o == nil || IsNil(o.IsMalwareDetected) { + var ret bool + return ret + } + return *o.IsMalwareDetected +} + +// GetIsMalwareDetectedOk returns a tuple with the IsMalwareDetected field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *McpPackageUploadRequest) GetIsMalwareDetectedOk() (*bool, bool) { + if o == nil || IsNil(o.IsMalwareDetected) { + return nil, false + } + return o.IsMalwareDetected, true +} + +// HasIsMalwareDetected returns a boolean if a field has been set. +func (o *McpPackageUploadRequest) HasIsMalwareDetected() bool { + if o != nil && !IsNil(o.IsMalwareDetected) { + return true + } + + return false +} + +// SetIsMalwareDetected gets a reference to the given bool and assigns it to the IsMalwareDetected field. +func (o *McpPackageUploadRequest) SetIsMalwareDetected(v bool) { + o.IsMalwareDetected = &v +} + // GetPackageFile returns the PackageFile field value func (o *McpPackageUploadRequest) GetPackageFile() string { if o == nil { @@ -194,6 +229,49 @@ func (o *McpPackageUploadRequest) UnsetVersion() { o.Version.Unset() } +// GetVulnerabilityCounts returns the VulnerabilityCounts field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *McpPackageUploadRequest) GetVulnerabilityCounts() WebOSVSeverityCounts { + if o == nil || IsNil(o.VulnerabilityCounts.Get()) { + var ret WebOSVSeverityCounts + return ret + } + return *o.VulnerabilityCounts.Get() +} + +// GetVulnerabilityCountsOk returns a tuple with the VulnerabilityCounts 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 *McpPackageUploadRequest) GetVulnerabilityCountsOk() (*WebOSVSeverityCounts, bool) { + if o == nil { + return nil, false + } + return o.VulnerabilityCounts.Get(), o.VulnerabilityCounts.IsSet() +} + +// HasVulnerabilityCounts returns a boolean if a field has been set. +func (o *McpPackageUploadRequest) HasVulnerabilityCounts() bool { + if o != nil && o.VulnerabilityCounts.IsSet() { + return true + } + + return false +} + +// SetVulnerabilityCounts gets a reference to the given NullableWebOSVSeverityCounts and assigns it to the VulnerabilityCounts field. +func (o *McpPackageUploadRequest) SetVulnerabilityCounts(v WebOSVSeverityCounts) { + o.VulnerabilityCounts.Set(&v) +} + +// SetVulnerabilityCountsNil sets the value for VulnerabilityCounts to be an explicit nil +func (o *McpPackageUploadRequest) SetVulnerabilityCountsNil() { + o.VulnerabilityCounts.Set(nil) +} + +// UnsetVulnerabilityCounts ensures that no value is present for VulnerabilityCounts, not even an explicit nil +func (o *McpPackageUploadRequest) UnsetVulnerabilityCounts() { + o.VulnerabilityCounts.Unset() +} + func (o McpPackageUploadRequest) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { @@ -204,6 +282,9 @@ func (o McpPackageUploadRequest) MarshalJSON() ([]byte, error) { func (o McpPackageUploadRequest) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} + if !IsNil(o.IsMalwareDetected) { + toSerialize["is_malware_detected"] = o.IsMalwareDetected + } toSerialize["package_file"] = o.PackageFile if !IsNil(o.Republish) { toSerialize["republish"] = o.Republish @@ -214,6 +295,9 @@ func (o McpPackageUploadRequest) ToMap() (map[string]interface{}, error) { if o.Version.IsSet() { toSerialize["version"] = o.Version.Get() } + if o.VulnerabilityCounts.IsSet() { + toSerialize["vulnerability_counts"] = o.VulnerabilityCounts.Get() + } for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -257,10 +341,12 @@ func (o *McpPackageUploadRequest) UnmarshalJSON(data []byte) (err error) { additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "is_malware_detected") delete(additionalProperties, "package_file") delete(additionalProperties, "republish") delete(additionalProperties, "tags") delete(additionalProperties, "version") + delete(additionalProperties, "vulnerability_counts") o.AdditionalProperties = additionalProperties } diff --git a/model_member_teams.go b/model_member_teams.go index 50669203..2bc0ed59 100644 --- a/model_member_teams.go +++ b/model_member_teams.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1288.1 +API version: 1.1341.7 Contact: support@cloudsmith.io */ diff --git a/model_namespace.go b/model_namespace.go index d505fbfa..7215fdf6 100644 --- a/model_namespace.go +++ b/model_namespace.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1288.1 +API version: 1.1341.7 Contact: support@cloudsmith.io */ diff --git a/model_namespace_audit_log.go b/model_namespace_audit_log.go index e155fa42..ec763d63 100644 --- a/model_namespace_audit_log.go +++ b/model_namespace_audit_log.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1288.1 +API version: 1.1341.7 Contact: support@cloudsmith.io */ diff --git a/model_nested_license_policy.go b/model_nested_license_policy.go index 0f9a2ffc..c335579b 100644 --- a/model_nested_license_policy.go +++ b/model_nested_license_policy.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1288.1 +API version: 1.1341.7 Contact: support@cloudsmith.io */ diff --git a/model_nested_vulnerability_policy.go b/model_nested_vulnerability_policy.go index 496f6a41..ff9ca5c6 100644 --- a/model_nested_vulnerability_policy.go +++ b/model_nested_vulnerability_policy.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1288.1 +API version: 1.1341.7 Contact: support@cloudsmith.io */ diff --git a/model_nested_vulnerability_scan_results.go b/model_nested_vulnerability_scan_results.go index 55f042ca..f896bde6 100644 --- a/model_nested_vulnerability_scan_results.go +++ b/model_nested_vulnerability_scan_results.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1288.1 +API version: 1.1341.7 Contact: support@cloudsmith.io */ diff --git a/model_npm_package_upload.go b/model_npm_package_upload.go index 22768953..7bcc86e6 100644 --- a/model_npm_package_upload.go +++ b/model_npm_package_upload.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1288.1 +API version: 1.1341.7 Contact: support@cloudsmith.io */ @@ -49,23 +49,25 @@ type NpmPackageUpload struct { // Unique and permanent identifier for the package. IdentifierPerm *string `json:"identifier_perm,omitempty"` // Return a map of identifier field names and their values. - Identifiers *map[string]string `json:"identifiers,omitempty"` - Indexed *bool `json:"indexed,omitempty"` - IsCancellable *bool `json:"is_cancellable,omitempty"` - IsCopyable *bool `json:"is_copyable,omitempty"` - IsDeleteable *bool `json:"is_deleteable,omitempty"` - IsDownloadable *bool `json:"is_downloadable,omitempty"` - IsHidden *bool `json:"is_hidden,omitempty"` - IsMoveable *bool `json:"is_moveable,omitempty"` - IsQuarantinable *bool `json:"is_quarantinable,omitempty"` - IsQuarantined *bool `json:"is_quarantined,omitempty"` - IsResyncable *bool `json:"is_resyncable,omitempty"` - IsSecurityScannable *bool `json:"is_security_scannable,omitempty"` - IsSyncAwaiting *bool `json:"is_sync_awaiting,omitempty"` - IsSyncCompleted *bool `json:"is_sync_completed,omitempty"` - IsSyncFailed *bool `json:"is_sync_failed,omitempty"` - IsSyncInFlight *bool `json:"is_sync_in_flight,omitempty"` - IsSyncInProgress *bool `json:"is_sync_in_progress,omitempty"` + Identifiers *map[string]string `json:"identifiers,omitempty"` + Indexed *bool `json:"indexed,omitempty"` + IsCancellable *bool `json:"is_cancellable,omitempty"` + IsCopyable *bool `json:"is_copyable,omitempty"` + IsDeleteable *bool `json:"is_deleteable,omitempty"` + IsDownloadable *bool `json:"is_downloadable,omitempty"` + IsHidden *bool `json:"is_hidden,omitempty"` + // Whether the package has been detected as containing malware. Requires Ultra plan. + IsMalwareDetected *bool `json:"is_malware_detected,omitempty"` + IsMoveable *bool `json:"is_moveable,omitempty"` + IsQuarantinable *bool `json:"is_quarantinable,omitempty"` + IsQuarantined *bool `json:"is_quarantined,omitempty"` + IsResyncable *bool `json:"is_resyncable,omitempty"` + IsSecurityScannable *bool `json:"is_security_scannable,omitempty"` + IsSyncAwaiting *bool `json:"is_sync_awaiting,omitempty"` + IsSyncCompleted *bool `json:"is_sync_completed,omitempty"` + IsSyncFailed *bool `json:"is_sync_failed,omitempty"` + IsSyncInFlight *bool `json:"is_sync_in_flight,omitempty"` + IsSyncInProgress *bool `json:"is_sync_in_progress,omitempty"` // The license of this package. License NullableString `json:"license,omitempty"` // The name of this package. @@ -135,9 +137,10 @@ type NpmPackageUpload struct { Uploader *string `json:"uploader,omitempty"` UploaderUrl *string `json:"uploader_url,omitempty"` // The raw version for this package. - Version NullableString `json:"version,omitempty"` - VersionOrig *string `json:"version_orig,omitempty"` - VulnerabilityScanResultsUrl *string `json:"vulnerability_scan_results_url,omitempty"` + Version NullableString `json:"version,omitempty"` + VersionOrig *string `json:"version_orig,omitempty"` + VulnerabilityCounts NullableWebOSVSeverityCounts `json:"vulnerability_counts,omitempty"` + VulnerabilityScanResultsUrl *string `json:"vulnerability_scan_results_url,omitempty"` AdditionalProperties map[string]interface{} } @@ -1154,6 +1157,38 @@ func (o *NpmPackageUpload) SetIsHidden(v bool) { o.IsHidden = &v } +// GetIsMalwareDetected returns the IsMalwareDetected field value if set, zero value otherwise. +func (o *NpmPackageUpload) GetIsMalwareDetected() bool { + if o == nil || IsNil(o.IsMalwareDetected) { + var ret bool + return ret + } + return *o.IsMalwareDetected +} + +// GetIsMalwareDetectedOk returns a tuple with the IsMalwareDetected field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *NpmPackageUpload) GetIsMalwareDetectedOk() (*bool, bool) { + if o == nil || IsNil(o.IsMalwareDetected) { + return nil, false + } + return o.IsMalwareDetected, true +} + +// HasIsMalwareDetected returns a boolean if a field has been set. +func (o *NpmPackageUpload) HasIsMalwareDetected() bool { + if o != nil && !IsNil(o.IsMalwareDetected) { + return true + } + + return false +} + +// SetIsMalwareDetected gets a reference to the given bool and assigns it to the IsMalwareDetected field. +func (o *NpmPackageUpload) SetIsMalwareDetected(v bool) { + o.IsMalwareDetected = &v +} + // GetIsMoveable returns the IsMoveable field value if set, zero value otherwise. func (o *NpmPackageUpload) GetIsMoveable() bool { if o == nil || IsNil(o.IsMoveable) { @@ -3100,6 +3135,49 @@ func (o *NpmPackageUpload) SetVersionOrig(v string) { o.VersionOrig = &v } +// GetVulnerabilityCounts returns the VulnerabilityCounts field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *NpmPackageUpload) GetVulnerabilityCounts() WebOSVSeverityCounts { + if o == nil || IsNil(o.VulnerabilityCounts.Get()) { + var ret WebOSVSeverityCounts + return ret + } + return *o.VulnerabilityCounts.Get() +} + +// GetVulnerabilityCountsOk returns a tuple with the VulnerabilityCounts 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 *NpmPackageUpload) GetVulnerabilityCountsOk() (*WebOSVSeverityCounts, bool) { + if o == nil { + return nil, false + } + return o.VulnerabilityCounts.Get(), o.VulnerabilityCounts.IsSet() +} + +// HasVulnerabilityCounts returns a boolean if a field has been set. +func (o *NpmPackageUpload) HasVulnerabilityCounts() bool { + if o != nil && o.VulnerabilityCounts.IsSet() { + return true + } + + return false +} + +// SetVulnerabilityCounts gets a reference to the given NullableWebOSVSeverityCounts and assigns it to the VulnerabilityCounts field. +func (o *NpmPackageUpload) SetVulnerabilityCounts(v WebOSVSeverityCounts) { + o.VulnerabilityCounts.Set(&v) +} + +// SetVulnerabilityCountsNil sets the value for VulnerabilityCounts to be an explicit nil +func (o *NpmPackageUpload) SetVulnerabilityCountsNil() { + o.VulnerabilityCounts.Set(nil) +} + +// UnsetVulnerabilityCounts ensures that no value is present for VulnerabilityCounts, not even an explicit nil +func (o *NpmPackageUpload) UnsetVulnerabilityCounts() { + o.VulnerabilityCounts.Unset() +} + // GetVulnerabilityScanResultsUrl returns the VulnerabilityScanResultsUrl field value if set, zero value otherwise. func (o *NpmPackageUpload) GetVulnerabilityScanResultsUrl() string { if o == nil || IsNil(o.VulnerabilityScanResultsUrl) { @@ -3229,6 +3307,9 @@ func (o NpmPackageUpload) ToMap() (map[string]interface{}, error) { if !IsNil(o.IsHidden) { toSerialize["is_hidden"] = o.IsHidden } + if !IsNil(o.IsMalwareDetected) { + toSerialize["is_malware_detected"] = o.IsMalwareDetected + } if !IsNil(o.IsMoveable) { toSerialize["is_moveable"] = o.IsMoveable } @@ -3397,6 +3478,9 @@ func (o NpmPackageUpload) ToMap() (map[string]interface{}, error) { if !IsNil(o.VersionOrig) { toSerialize["version_orig"] = o.VersionOrig } + if o.VulnerabilityCounts.IsSet() { + toSerialize["vulnerability_counts"] = o.VulnerabilityCounts.Get() + } if !IsNil(o.VulnerabilityScanResultsUrl) { toSerialize["vulnerability_scan_results_url"] = o.VulnerabilityScanResultsUrl } @@ -3451,6 +3535,7 @@ func (o *NpmPackageUpload) UnmarshalJSON(data []byte) (err error) { delete(additionalProperties, "is_deleteable") delete(additionalProperties, "is_downloadable") delete(additionalProperties, "is_hidden") + delete(additionalProperties, "is_malware_detected") delete(additionalProperties, "is_moveable") delete(additionalProperties, "is_quarantinable") delete(additionalProperties, "is_quarantined") @@ -3507,6 +3592,7 @@ func (o *NpmPackageUpload) UnmarshalJSON(data []byte) (err error) { delete(additionalProperties, "uploader_url") delete(additionalProperties, "version") delete(additionalProperties, "version_orig") + delete(additionalProperties, "vulnerability_counts") delete(additionalProperties, "vulnerability_scan_results_url") o.AdditionalProperties = additionalProperties } diff --git a/model_npm_package_upload_request.go b/model_npm_package_upload_request.go index 3cb64c7b..13a96d8e 100644 --- a/model_npm_package_upload_request.go +++ b/model_npm_package_upload_request.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1288.1 +API version: 1.1341.7 Contact: support@cloudsmith.io */ @@ -21,6 +21,8 @@ var _ MappedNullable = &NpmPackageUploadRequest{} // NpmPackageUploadRequest struct for NpmPackageUploadRequest type NpmPackageUploadRequest struct { + // Whether the package has been detected as containing malware. Requires Ultra plan. + IsMalwareDetected *bool `json:"is_malware_detected,omitempty"` // The default npm dist-tag for this package/version - This will replace any other package/version if they are using the same tag. NpmDistTag NullableString `json:"npm_dist_tag,omitempty"` // The primary file for the package. @@ -28,7 +30,8 @@ type NpmPackageUploadRequest struct { // If true, the uploaded package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate. Republish *bool `json:"republish,omitempty"` // A comma-separated values list of tags to add to the package. - Tags NullableString `json:"tags,omitempty"` + Tags NullableString `json:"tags,omitempty"` + VulnerabilityCounts NullableWebOSVSeverityCounts `json:"vulnerability_counts,omitempty"` AdditionalProperties map[string]interface{} } @@ -56,6 +59,38 @@ func NewNpmPackageUploadRequestWithDefaults() *NpmPackageUploadRequest { return &this } +// GetIsMalwareDetected returns the IsMalwareDetected field value if set, zero value otherwise. +func (o *NpmPackageUploadRequest) GetIsMalwareDetected() bool { + if o == nil || IsNil(o.IsMalwareDetected) { + var ret bool + return ret + } + return *o.IsMalwareDetected +} + +// GetIsMalwareDetectedOk returns a tuple with the IsMalwareDetected field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *NpmPackageUploadRequest) GetIsMalwareDetectedOk() (*bool, bool) { + if o == nil || IsNil(o.IsMalwareDetected) { + return nil, false + } + return o.IsMalwareDetected, true +} + +// HasIsMalwareDetected returns a boolean if a field has been set. +func (o *NpmPackageUploadRequest) HasIsMalwareDetected() bool { + if o != nil && !IsNil(o.IsMalwareDetected) { + return true + } + + return false +} + +// SetIsMalwareDetected gets a reference to the given bool and assigns it to the IsMalwareDetected field. +func (o *NpmPackageUploadRequest) SetIsMalwareDetected(v bool) { + o.IsMalwareDetected = &v +} + // GetNpmDistTag returns the NpmDistTag field value if set, zero value otherwise (both if not set or set to explicit null). func (o *NpmPackageUploadRequest) GetNpmDistTag() string { if o == nil || IsNil(o.NpmDistTag.Get()) { @@ -198,6 +233,49 @@ func (o *NpmPackageUploadRequest) UnsetTags() { o.Tags.Unset() } +// GetVulnerabilityCounts returns the VulnerabilityCounts field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *NpmPackageUploadRequest) GetVulnerabilityCounts() WebOSVSeverityCounts { + if o == nil || IsNil(o.VulnerabilityCounts.Get()) { + var ret WebOSVSeverityCounts + return ret + } + return *o.VulnerabilityCounts.Get() +} + +// GetVulnerabilityCountsOk returns a tuple with the VulnerabilityCounts 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 *NpmPackageUploadRequest) GetVulnerabilityCountsOk() (*WebOSVSeverityCounts, bool) { + if o == nil { + return nil, false + } + return o.VulnerabilityCounts.Get(), o.VulnerabilityCounts.IsSet() +} + +// HasVulnerabilityCounts returns a boolean if a field has been set. +func (o *NpmPackageUploadRequest) HasVulnerabilityCounts() bool { + if o != nil && o.VulnerabilityCounts.IsSet() { + return true + } + + return false +} + +// SetVulnerabilityCounts gets a reference to the given NullableWebOSVSeverityCounts and assigns it to the VulnerabilityCounts field. +func (o *NpmPackageUploadRequest) SetVulnerabilityCounts(v WebOSVSeverityCounts) { + o.VulnerabilityCounts.Set(&v) +} + +// SetVulnerabilityCountsNil sets the value for VulnerabilityCounts to be an explicit nil +func (o *NpmPackageUploadRequest) SetVulnerabilityCountsNil() { + o.VulnerabilityCounts.Set(nil) +} + +// UnsetVulnerabilityCounts ensures that no value is present for VulnerabilityCounts, not even an explicit nil +func (o *NpmPackageUploadRequest) UnsetVulnerabilityCounts() { + o.VulnerabilityCounts.Unset() +} + func (o NpmPackageUploadRequest) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { @@ -208,6 +286,9 @@ func (o NpmPackageUploadRequest) MarshalJSON() ([]byte, error) { func (o NpmPackageUploadRequest) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} + if !IsNil(o.IsMalwareDetected) { + toSerialize["is_malware_detected"] = o.IsMalwareDetected + } if o.NpmDistTag.IsSet() { toSerialize["npm_dist_tag"] = o.NpmDistTag.Get() } @@ -218,6 +299,9 @@ func (o NpmPackageUploadRequest) ToMap() (map[string]interface{}, error) { if o.Tags.IsSet() { toSerialize["tags"] = o.Tags.Get() } + if o.VulnerabilityCounts.IsSet() { + toSerialize["vulnerability_counts"] = o.VulnerabilityCounts.Get() + } for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -261,10 +345,12 @@ func (o *NpmPackageUploadRequest) UnmarshalJSON(data []byte) (err error) { additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "is_malware_detected") delete(additionalProperties, "npm_dist_tag") delete(additionalProperties, "package_file") delete(additionalProperties, "republish") delete(additionalProperties, "tags") + delete(additionalProperties, "vulnerability_counts") o.AdditionalProperties = additionalProperties } diff --git a/model_npm_upstream.go b/model_npm_upstream.go index d384e8e2..6792f7a9 100644 --- a/model_npm_upstream.go +++ b/model_npm_upstream.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1288.1 +API version: 1.1341.7 Contact: support@cloudsmith.io */ diff --git a/model_npm_upstream_request.go b/model_npm_upstream_request.go index 07f5d2ca..3c0f606d 100644 --- a/model_npm_upstream_request.go +++ b/model_npm_upstream_request.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1288.1 +API version: 1.1341.7 Contact: support@cloudsmith.io */ diff --git a/model_npm_upstream_request_patch.go b/model_npm_upstream_request_patch.go index 02a4a473..d2091cce 100644 --- a/model_npm_upstream_request_patch.go +++ b/model_npm_upstream_request_patch.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1288.1 +API version: 1.1341.7 Contact: support@cloudsmith.io */ diff --git a/model_nuget_package_upload.go b/model_nuget_package_upload.go index 705702b0..a7b456e4 100644 --- a/model_nuget_package_upload.go +++ b/model_nuget_package_upload.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1288.1 +API version: 1.1341.7 Contact: support@cloudsmith.io */ @@ -49,23 +49,25 @@ type NugetPackageUpload struct { // Unique and permanent identifier for the package. IdentifierPerm *string `json:"identifier_perm,omitempty"` // Return a map of identifier field names and their values. - Identifiers *map[string]string `json:"identifiers,omitempty"` - Indexed *bool `json:"indexed,omitempty"` - IsCancellable *bool `json:"is_cancellable,omitempty"` - IsCopyable *bool `json:"is_copyable,omitempty"` - IsDeleteable *bool `json:"is_deleteable,omitempty"` - IsDownloadable *bool `json:"is_downloadable,omitempty"` - IsHidden *bool `json:"is_hidden,omitempty"` - IsMoveable *bool `json:"is_moveable,omitempty"` - IsQuarantinable *bool `json:"is_quarantinable,omitempty"` - IsQuarantined *bool `json:"is_quarantined,omitempty"` - IsResyncable *bool `json:"is_resyncable,omitempty"` - IsSecurityScannable *bool `json:"is_security_scannable,omitempty"` - IsSyncAwaiting *bool `json:"is_sync_awaiting,omitempty"` - IsSyncCompleted *bool `json:"is_sync_completed,omitempty"` - IsSyncFailed *bool `json:"is_sync_failed,omitempty"` - IsSyncInFlight *bool `json:"is_sync_in_flight,omitempty"` - IsSyncInProgress *bool `json:"is_sync_in_progress,omitempty"` + Identifiers *map[string]string `json:"identifiers,omitempty"` + Indexed *bool `json:"indexed,omitempty"` + IsCancellable *bool `json:"is_cancellable,omitempty"` + IsCopyable *bool `json:"is_copyable,omitempty"` + IsDeleteable *bool `json:"is_deleteable,omitempty"` + IsDownloadable *bool `json:"is_downloadable,omitempty"` + IsHidden *bool `json:"is_hidden,omitempty"` + // Whether the package has been detected as containing malware. Requires Ultra plan. + IsMalwareDetected *bool `json:"is_malware_detected,omitempty"` + IsMoveable *bool `json:"is_moveable,omitempty"` + IsQuarantinable *bool `json:"is_quarantinable,omitempty"` + IsQuarantined *bool `json:"is_quarantined,omitempty"` + IsResyncable *bool `json:"is_resyncable,omitempty"` + IsSecurityScannable *bool `json:"is_security_scannable,omitempty"` + IsSyncAwaiting *bool `json:"is_sync_awaiting,omitempty"` + IsSyncCompleted *bool `json:"is_sync_completed,omitempty"` + IsSyncFailed *bool `json:"is_sync_failed,omitempty"` + IsSyncInFlight *bool `json:"is_sync_in_flight,omitempty"` + IsSyncInProgress *bool `json:"is_sync_in_progress,omitempty"` // The license of this package. License NullableString `json:"license,omitempty"` // The name of this package. @@ -135,9 +137,10 @@ type NugetPackageUpload struct { Uploader *string `json:"uploader,omitempty"` UploaderUrl *string `json:"uploader_url,omitempty"` // The raw version for this package. - Version NullableString `json:"version,omitempty"` - VersionOrig *string `json:"version_orig,omitempty"` - VulnerabilityScanResultsUrl *string `json:"vulnerability_scan_results_url,omitempty"` + Version NullableString `json:"version,omitempty"` + VersionOrig *string `json:"version_orig,omitempty"` + VulnerabilityCounts NullableWebOSVSeverityCounts `json:"vulnerability_counts,omitempty"` + VulnerabilityScanResultsUrl *string `json:"vulnerability_scan_results_url,omitempty"` AdditionalProperties map[string]interface{} } @@ -1154,6 +1157,38 @@ func (o *NugetPackageUpload) SetIsHidden(v bool) { o.IsHidden = &v } +// GetIsMalwareDetected returns the IsMalwareDetected field value if set, zero value otherwise. +func (o *NugetPackageUpload) GetIsMalwareDetected() bool { + if o == nil || IsNil(o.IsMalwareDetected) { + var ret bool + return ret + } + return *o.IsMalwareDetected +} + +// GetIsMalwareDetectedOk returns a tuple with the IsMalwareDetected field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *NugetPackageUpload) GetIsMalwareDetectedOk() (*bool, bool) { + if o == nil || IsNil(o.IsMalwareDetected) { + return nil, false + } + return o.IsMalwareDetected, true +} + +// HasIsMalwareDetected returns a boolean if a field has been set. +func (o *NugetPackageUpload) HasIsMalwareDetected() bool { + if o != nil && !IsNil(o.IsMalwareDetected) { + return true + } + + return false +} + +// SetIsMalwareDetected gets a reference to the given bool and assigns it to the IsMalwareDetected field. +func (o *NugetPackageUpload) SetIsMalwareDetected(v bool) { + o.IsMalwareDetected = &v +} + // GetIsMoveable returns the IsMoveable field value if set, zero value otherwise. func (o *NugetPackageUpload) GetIsMoveable() bool { if o == nil || IsNil(o.IsMoveable) { @@ -3100,6 +3135,49 @@ func (o *NugetPackageUpload) SetVersionOrig(v string) { o.VersionOrig = &v } +// GetVulnerabilityCounts returns the VulnerabilityCounts field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *NugetPackageUpload) GetVulnerabilityCounts() WebOSVSeverityCounts { + if o == nil || IsNil(o.VulnerabilityCounts.Get()) { + var ret WebOSVSeverityCounts + return ret + } + return *o.VulnerabilityCounts.Get() +} + +// GetVulnerabilityCountsOk returns a tuple with the VulnerabilityCounts 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 *NugetPackageUpload) GetVulnerabilityCountsOk() (*WebOSVSeverityCounts, bool) { + if o == nil { + return nil, false + } + return o.VulnerabilityCounts.Get(), o.VulnerabilityCounts.IsSet() +} + +// HasVulnerabilityCounts returns a boolean if a field has been set. +func (o *NugetPackageUpload) HasVulnerabilityCounts() bool { + if o != nil && o.VulnerabilityCounts.IsSet() { + return true + } + + return false +} + +// SetVulnerabilityCounts gets a reference to the given NullableWebOSVSeverityCounts and assigns it to the VulnerabilityCounts field. +func (o *NugetPackageUpload) SetVulnerabilityCounts(v WebOSVSeverityCounts) { + o.VulnerabilityCounts.Set(&v) +} + +// SetVulnerabilityCountsNil sets the value for VulnerabilityCounts to be an explicit nil +func (o *NugetPackageUpload) SetVulnerabilityCountsNil() { + o.VulnerabilityCounts.Set(nil) +} + +// UnsetVulnerabilityCounts ensures that no value is present for VulnerabilityCounts, not even an explicit nil +func (o *NugetPackageUpload) UnsetVulnerabilityCounts() { + o.VulnerabilityCounts.Unset() +} + // GetVulnerabilityScanResultsUrl returns the VulnerabilityScanResultsUrl field value if set, zero value otherwise. func (o *NugetPackageUpload) GetVulnerabilityScanResultsUrl() string { if o == nil || IsNil(o.VulnerabilityScanResultsUrl) { @@ -3229,6 +3307,9 @@ func (o NugetPackageUpload) ToMap() (map[string]interface{}, error) { if !IsNil(o.IsHidden) { toSerialize["is_hidden"] = o.IsHidden } + if !IsNil(o.IsMalwareDetected) { + toSerialize["is_malware_detected"] = o.IsMalwareDetected + } if !IsNil(o.IsMoveable) { toSerialize["is_moveable"] = o.IsMoveable } @@ -3397,6 +3478,9 @@ func (o NugetPackageUpload) ToMap() (map[string]interface{}, error) { if !IsNil(o.VersionOrig) { toSerialize["version_orig"] = o.VersionOrig } + if o.VulnerabilityCounts.IsSet() { + toSerialize["vulnerability_counts"] = o.VulnerabilityCounts.Get() + } if !IsNil(o.VulnerabilityScanResultsUrl) { toSerialize["vulnerability_scan_results_url"] = o.VulnerabilityScanResultsUrl } @@ -3451,6 +3535,7 @@ func (o *NugetPackageUpload) UnmarshalJSON(data []byte) (err error) { delete(additionalProperties, "is_deleteable") delete(additionalProperties, "is_downloadable") delete(additionalProperties, "is_hidden") + delete(additionalProperties, "is_malware_detected") delete(additionalProperties, "is_moveable") delete(additionalProperties, "is_quarantinable") delete(additionalProperties, "is_quarantined") @@ -3507,6 +3592,7 @@ func (o *NugetPackageUpload) UnmarshalJSON(data []byte) (err error) { delete(additionalProperties, "uploader_url") delete(additionalProperties, "version") delete(additionalProperties, "version_orig") + delete(additionalProperties, "vulnerability_counts") delete(additionalProperties, "vulnerability_scan_results_url") o.AdditionalProperties = additionalProperties } diff --git a/model_nuget_package_upload_request.go b/model_nuget_package_upload_request.go index 6d074082..2c09876e 100644 --- a/model_nuget_package_upload_request.go +++ b/model_nuget_package_upload_request.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1288.1 +API version: 1.1341.7 Contact: support@cloudsmith.io */ @@ -21,6 +21,8 @@ var _ MappedNullable = &NugetPackageUploadRequest{} // NugetPackageUploadRequest struct for NugetPackageUploadRequest type NugetPackageUploadRequest struct { + // Whether the package has been detected as containing malware. Requires Ultra plan. + IsMalwareDetected *bool `json:"is_malware_detected,omitempty"` // The primary file for the package. PackageFile string `json:"package_file"` // If true, the uploaded package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate. @@ -28,7 +30,8 @@ type NugetPackageUploadRequest struct { // Uploads a symbols file as a separate package SymbolsFile NullableString `json:"symbols_file,omitempty"` // A comma-separated values list of tags to add to the package. - Tags NullableString `json:"tags,omitempty"` + Tags NullableString `json:"tags,omitempty"` + VulnerabilityCounts NullableWebOSVSeverityCounts `json:"vulnerability_counts,omitempty"` AdditionalProperties map[string]interface{} } @@ -52,6 +55,38 @@ func NewNugetPackageUploadRequestWithDefaults() *NugetPackageUploadRequest { return &this } +// GetIsMalwareDetected returns the IsMalwareDetected field value if set, zero value otherwise. +func (o *NugetPackageUploadRequest) GetIsMalwareDetected() bool { + if o == nil || IsNil(o.IsMalwareDetected) { + var ret bool + return ret + } + return *o.IsMalwareDetected +} + +// GetIsMalwareDetectedOk returns a tuple with the IsMalwareDetected field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *NugetPackageUploadRequest) GetIsMalwareDetectedOk() (*bool, bool) { + if o == nil || IsNil(o.IsMalwareDetected) { + return nil, false + } + return o.IsMalwareDetected, true +} + +// HasIsMalwareDetected returns a boolean if a field has been set. +func (o *NugetPackageUploadRequest) HasIsMalwareDetected() bool { + if o != nil && !IsNil(o.IsMalwareDetected) { + return true + } + + return false +} + +// SetIsMalwareDetected gets a reference to the given bool and assigns it to the IsMalwareDetected field. +func (o *NugetPackageUploadRequest) SetIsMalwareDetected(v bool) { + o.IsMalwareDetected = &v +} + // GetPackageFile returns the PackageFile field value func (o *NugetPackageUploadRequest) GetPackageFile() string { if o == nil { @@ -194,6 +229,49 @@ func (o *NugetPackageUploadRequest) UnsetTags() { o.Tags.Unset() } +// GetVulnerabilityCounts returns the VulnerabilityCounts field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *NugetPackageUploadRequest) GetVulnerabilityCounts() WebOSVSeverityCounts { + if o == nil || IsNil(o.VulnerabilityCounts.Get()) { + var ret WebOSVSeverityCounts + return ret + } + return *o.VulnerabilityCounts.Get() +} + +// GetVulnerabilityCountsOk returns a tuple with the VulnerabilityCounts 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 *NugetPackageUploadRequest) GetVulnerabilityCountsOk() (*WebOSVSeverityCounts, bool) { + if o == nil { + return nil, false + } + return o.VulnerabilityCounts.Get(), o.VulnerabilityCounts.IsSet() +} + +// HasVulnerabilityCounts returns a boolean if a field has been set. +func (o *NugetPackageUploadRequest) HasVulnerabilityCounts() bool { + if o != nil && o.VulnerabilityCounts.IsSet() { + return true + } + + return false +} + +// SetVulnerabilityCounts gets a reference to the given NullableWebOSVSeverityCounts and assigns it to the VulnerabilityCounts field. +func (o *NugetPackageUploadRequest) SetVulnerabilityCounts(v WebOSVSeverityCounts) { + o.VulnerabilityCounts.Set(&v) +} + +// SetVulnerabilityCountsNil sets the value for VulnerabilityCounts to be an explicit nil +func (o *NugetPackageUploadRequest) SetVulnerabilityCountsNil() { + o.VulnerabilityCounts.Set(nil) +} + +// UnsetVulnerabilityCounts ensures that no value is present for VulnerabilityCounts, not even an explicit nil +func (o *NugetPackageUploadRequest) UnsetVulnerabilityCounts() { + o.VulnerabilityCounts.Unset() +} + func (o NugetPackageUploadRequest) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { @@ -204,6 +282,9 @@ func (o NugetPackageUploadRequest) MarshalJSON() ([]byte, error) { func (o NugetPackageUploadRequest) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} + if !IsNil(o.IsMalwareDetected) { + toSerialize["is_malware_detected"] = o.IsMalwareDetected + } toSerialize["package_file"] = o.PackageFile if !IsNil(o.Republish) { toSerialize["republish"] = o.Republish @@ -214,6 +295,9 @@ func (o NugetPackageUploadRequest) ToMap() (map[string]interface{}, error) { if o.Tags.IsSet() { toSerialize["tags"] = o.Tags.Get() } + if o.VulnerabilityCounts.IsSet() { + toSerialize["vulnerability_counts"] = o.VulnerabilityCounts.Get() + } for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -257,10 +341,12 @@ func (o *NugetPackageUploadRequest) UnmarshalJSON(data []byte) (err error) { additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "is_malware_detected") delete(additionalProperties, "package_file") delete(additionalProperties, "republish") delete(additionalProperties, "symbols_file") delete(additionalProperties, "tags") + delete(additionalProperties, "vulnerability_counts") o.AdditionalProperties = additionalProperties } diff --git a/model_nuget_upstream.go b/model_nuget_upstream.go index 167eb108..0ba8caa9 100644 --- a/model_nuget_upstream.go +++ b/model_nuget_upstream.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1288.1 +API version: 1.1341.7 Contact: support@cloudsmith.io */ diff --git a/model_nuget_upstream_request.go b/model_nuget_upstream_request.go index 22dbcdaf..c07d98ea 100644 --- a/model_nuget_upstream_request.go +++ b/model_nuget_upstream_request.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1288.1 +API version: 1.1341.7 Contact: support@cloudsmith.io */ diff --git a/model_nuget_upstream_request_patch.go b/model_nuget_upstream_request_patch.go index 21b8e474..c41d6e45 100644 --- a/model_nuget_upstream_request_patch.go +++ b/model_nuget_upstream_request_patch.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1288.1 +API version: 1.1341.7 Contact: support@cloudsmith.io */ diff --git a/model_organization.go b/model_organization.go index 81728735..a309a429 100644 --- a/model_organization.go +++ b/model_organization.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1288.1 +API version: 1.1341.7 Contact: support@cloudsmith.io */ diff --git a/model_organization_custom_domain_nested_repo.go b/model_organization_custom_domain_nested_repo.go index a41387af..b513e0e2 100644 --- a/model_organization_custom_domain_nested_repo.go +++ b/model_organization_custom_domain_nested_repo.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1288.1 +API version: 1.1341.7 Contact: support@cloudsmith.io */ diff --git a/model_organization_custom_domains.go b/model_organization_custom_domains.go index b53c7c70..841cbc79 100644 --- a/model_organization_custom_domains.go +++ b/model_organization_custom_domains.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1288.1 +API version: 1.1341.7 Contact: support@cloudsmith.io */ diff --git a/model_organization_group_sync.go b/model_organization_group_sync.go index 264319ae..f6faa61b 100644 --- a/model_organization_group_sync.go +++ b/model_organization_group_sync.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1288.1 +API version: 1.1341.7 Contact: support@cloudsmith.io */ diff --git a/model_organization_group_sync_request.go b/model_organization_group_sync_request.go index e88e286c..28f6e88f 100644 --- a/model_organization_group_sync_request.go +++ b/model_organization_group_sync_request.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1288.1 +API version: 1.1341.7 Contact: support@cloudsmith.io */ diff --git a/model_organization_group_sync_status.go b/model_organization_group_sync_status.go index 547b10c4..6d1f9407 100644 --- a/model_organization_group_sync_status.go +++ b/model_organization_group_sync_status.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1288.1 +API version: 1.1341.7 Contact: support@cloudsmith.io */ diff --git a/model_organization_invite.go b/model_organization_invite.go index 17bd902f..dcf1a778 100644 --- a/model_organization_invite.go +++ b/model_organization_invite.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1288.1 +API version: 1.1341.7 Contact: support@cloudsmith.io */ diff --git a/model_organization_invite_extend.go b/model_organization_invite_extend.go index 67887b46..9b169d25 100644 --- a/model_organization_invite_extend.go +++ b/model_organization_invite_extend.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1288.1 +API version: 1.1341.7 Contact: support@cloudsmith.io */ diff --git a/model_organization_invite_request.go b/model_organization_invite_request.go index 6fb5e3c4..9b8d17ce 100644 --- a/model_organization_invite_request.go +++ b/model_organization_invite_request.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1288.1 +API version: 1.1341.7 Contact: support@cloudsmith.io */ diff --git a/model_organization_invite_update.go b/model_organization_invite_update.go index 08ef9f85..3086a3e6 100644 --- a/model_organization_invite_update.go +++ b/model_organization_invite_update.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1288.1 +API version: 1.1341.7 Contact: support@cloudsmith.io */ diff --git a/model_organization_invite_update_request_patch.go b/model_organization_invite_update_request_patch.go index 4d02577f..613117e6 100644 --- a/model_organization_invite_update_request_patch.go +++ b/model_organization_invite_update_request_patch.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1288.1 +API version: 1.1341.7 Contact: support@cloudsmith.io */ diff --git a/model_organization_membership.go b/model_organization_membership.go index b292cc03..aa911164 100644 --- a/model_organization_membership.go +++ b/model_organization_membership.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1288.1 +API version: 1.1341.7 Contact: support@cloudsmith.io */ diff --git a/model_organization_membership_role_update.go b/model_organization_membership_role_update.go index 2c92cfdf..d2eb463e 100644 --- a/model_organization_membership_role_update.go +++ b/model_organization_membership_role_update.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1288.1 +API version: 1.1341.7 Contact: support@cloudsmith.io */ diff --git a/model_organization_membership_role_update_request_patch.go b/model_organization_membership_role_update_request_patch.go index 12fb27e4..4831403c 100644 --- a/model_organization_membership_role_update_request_patch.go +++ b/model_organization_membership_role_update_request_patch.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1288.1 +API version: 1.1341.7 Contact: support@cloudsmith.io */ diff --git a/model_organization_membership_visibility_update.go b/model_organization_membership_visibility_update.go index 0019ccae..53e559c5 100644 --- a/model_organization_membership_visibility_update.go +++ b/model_organization_membership_visibility_update.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1288.1 +API version: 1.1341.7 Contact: support@cloudsmith.io */ diff --git a/model_organization_membership_visibility_update_request_patch.go b/model_organization_membership_visibility_update_request_patch.go index 73fb6d80..11a87161 100644 --- a/model_organization_membership_visibility_update_request_patch.go +++ b/model_organization_membership_visibility_update_request_patch.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1288.1 +API version: 1.1341.7 Contact: support@cloudsmith.io */ diff --git a/model_organization_package_license_policy.go b/model_organization_package_license_policy.go index 1b0510d1..bd9a4961 100644 --- a/model_organization_package_license_policy.go +++ b/model_organization_package_license_policy.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1288.1 +API version: 1.1341.7 Contact: support@cloudsmith.io */ diff --git a/model_organization_package_license_policy_request.go b/model_organization_package_license_policy_request.go index 33780403..6c247856 100644 --- a/model_organization_package_license_policy_request.go +++ b/model_organization_package_license_policy_request.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1288.1 +API version: 1.1341.7 Contact: support@cloudsmith.io */ diff --git a/model_organization_package_license_policy_request_patch.go b/model_organization_package_license_policy_request_patch.go index cdd96a0f..19bf5fda 100644 --- a/model_organization_package_license_policy_request_patch.go +++ b/model_organization_package_license_policy_request_patch.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1288.1 +API version: 1.1341.7 Contact: support@cloudsmith.io */ diff --git a/model_organization_package_vulnerability_policy.go b/model_organization_package_vulnerability_policy.go index ac12364a..f4ce3d7c 100644 --- a/model_organization_package_vulnerability_policy.go +++ b/model_organization_package_vulnerability_policy.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1288.1 +API version: 1.1341.7 Contact: support@cloudsmith.io */ diff --git a/model_organization_package_vulnerability_policy_request.go b/model_organization_package_vulnerability_policy_request.go index a0e0308f..6dd9e98c 100644 --- a/model_organization_package_vulnerability_policy_request.go +++ b/model_organization_package_vulnerability_policy_request.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1288.1 +API version: 1.1341.7 Contact: support@cloudsmith.io */ diff --git a/model_organization_package_vulnerability_policy_request_patch.go b/model_organization_package_vulnerability_policy_request_patch.go index 0903b4c1..2a3a0f79 100644 --- a/model_organization_package_vulnerability_policy_request_patch.go +++ b/model_organization_package_vulnerability_policy_request_patch.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1288.1 +API version: 1.1341.7 Contact: support@cloudsmith.io */ diff --git a/model_organization_saml_auth.go b/model_organization_saml_auth.go index 28cf47d6..0aa6b4e4 100644 --- a/model_organization_saml_auth.go +++ b/model_organization_saml_auth.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1288.1 +API version: 1.1341.7 Contact: support@cloudsmith.io */ diff --git a/model_organization_saml_auth_request_patch.go b/model_organization_saml_auth_request_patch.go index 0ae52b7e..e8fbede3 100644 --- a/model_organization_saml_auth_request_patch.go +++ b/model_organization_saml_auth_request_patch.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1288.1 +API version: 1.1341.7 Contact: support@cloudsmith.io */ diff --git a/model_organization_team.go b/model_organization_team.go index 536478b6..4d002a3f 100644 --- a/model_organization_team.go +++ b/model_organization_team.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1288.1 +API version: 1.1341.7 Contact: support@cloudsmith.io */ diff --git a/model_organization_team_invite.go b/model_organization_team_invite.go index 70d49a4c..c3188698 100644 --- a/model_organization_team_invite.go +++ b/model_organization_team_invite.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1288.1 +API version: 1.1341.7 Contact: support@cloudsmith.io */ diff --git a/model_organization_team_members.go b/model_organization_team_members.go index 2658f56c..82941f24 100644 --- a/model_organization_team_members.go +++ b/model_organization_team_members.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1288.1 +API version: 1.1341.7 Contact: support@cloudsmith.io */ diff --git a/model_organization_team_request.go b/model_organization_team_request.go index da6a4418..94cf833c 100644 --- a/model_organization_team_request.go +++ b/model_organization_team_request.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1288.1 +API version: 1.1341.7 Contact: support@cloudsmith.io */ diff --git a/model_organization_team_request_patch.go b/model_organization_team_request_patch.go index 1d4b2038..1520651d 100644 --- a/model_organization_team_request_patch.go +++ b/model_organization_team_request_patch.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1288.1 +API version: 1.1341.7 Contact: support@cloudsmith.io */ diff --git a/model_organization_team_service_member.go b/model_organization_team_service_member.go index 215dbf6d..612906e6 100644 --- a/model_organization_team_service_member.go +++ b/model_organization_team_service_member.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1288.1 +API version: 1.1341.7 Contact: support@cloudsmith.io */ diff --git a/model_p2_package_upload.go b/model_p2_package_upload.go index a6c5dcd0..3e99d65b 100644 --- a/model_p2_package_upload.go +++ b/model_p2_package_upload.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1288.1 +API version: 1.1341.7 Contact: support@cloudsmith.io */ @@ -49,23 +49,25 @@ type P2PackageUpload struct { // Unique and permanent identifier for the package. IdentifierPerm *string `json:"identifier_perm,omitempty"` // Return a map of identifier field names and their values. - Identifiers *map[string]string `json:"identifiers,omitempty"` - Indexed *bool `json:"indexed,omitempty"` - IsCancellable *bool `json:"is_cancellable,omitempty"` - IsCopyable *bool `json:"is_copyable,omitempty"` - IsDeleteable *bool `json:"is_deleteable,omitempty"` - IsDownloadable *bool `json:"is_downloadable,omitempty"` - IsHidden *bool `json:"is_hidden,omitempty"` - IsMoveable *bool `json:"is_moveable,omitempty"` - IsQuarantinable *bool `json:"is_quarantinable,omitempty"` - IsQuarantined *bool `json:"is_quarantined,omitempty"` - IsResyncable *bool `json:"is_resyncable,omitempty"` - IsSecurityScannable *bool `json:"is_security_scannable,omitempty"` - IsSyncAwaiting *bool `json:"is_sync_awaiting,omitempty"` - IsSyncCompleted *bool `json:"is_sync_completed,omitempty"` - IsSyncFailed *bool `json:"is_sync_failed,omitempty"` - IsSyncInFlight *bool `json:"is_sync_in_flight,omitempty"` - IsSyncInProgress *bool `json:"is_sync_in_progress,omitempty"` + Identifiers *map[string]string `json:"identifiers,omitempty"` + Indexed *bool `json:"indexed,omitempty"` + IsCancellable *bool `json:"is_cancellable,omitempty"` + IsCopyable *bool `json:"is_copyable,omitempty"` + IsDeleteable *bool `json:"is_deleteable,omitempty"` + IsDownloadable *bool `json:"is_downloadable,omitempty"` + IsHidden *bool `json:"is_hidden,omitempty"` + // Whether the package has been detected as containing malware. Requires Ultra plan. + IsMalwareDetected *bool `json:"is_malware_detected,omitempty"` + IsMoveable *bool `json:"is_moveable,omitempty"` + IsQuarantinable *bool `json:"is_quarantinable,omitempty"` + IsQuarantined *bool `json:"is_quarantined,omitempty"` + IsResyncable *bool `json:"is_resyncable,omitempty"` + IsSecurityScannable *bool `json:"is_security_scannable,omitempty"` + IsSyncAwaiting *bool `json:"is_sync_awaiting,omitempty"` + IsSyncCompleted *bool `json:"is_sync_completed,omitempty"` + IsSyncFailed *bool `json:"is_sync_failed,omitempty"` + IsSyncInFlight *bool `json:"is_sync_in_flight,omitempty"` + IsSyncInProgress *bool `json:"is_sync_in_progress,omitempty"` // The license of this package. License NullableString `json:"license,omitempty"` // The name of this package. @@ -135,9 +137,10 @@ type P2PackageUpload struct { Uploader *string `json:"uploader,omitempty"` UploaderUrl *string `json:"uploader_url,omitempty"` // The raw version for this package. - Version NullableString `json:"version,omitempty"` - VersionOrig *string `json:"version_orig,omitempty"` - VulnerabilityScanResultsUrl *string `json:"vulnerability_scan_results_url,omitempty"` + Version NullableString `json:"version,omitempty"` + VersionOrig *string `json:"version_orig,omitempty"` + VulnerabilityCounts NullableWebOSVSeverityCounts `json:"vulnerability_counts,omitempty"` + VulnerabilityScanResultsUrl *string `json:"vulnerability_scan_results_url,omitempty"` AdditionalProperties map[string]interface{} } @@ -1154,6 +1157,38 @@ func (o *P2PackageUpload) SetIsHidden(v bool) { o.IsHidden = &v } +// GetIsMalwareDetected returns the IsMalwareDetected field value if set, zero value otherwise. +func (o *P2PackageUpload) GetIsMalwareDetected() bool { + if o == nil || IsNil(o.IsMalwareDetected) { + var ret bool + return ret + } + return *o.IsMalwareDetected +} + +// GetIsMalwareDetectedOk returns a tuple with the IsMalwareDetected field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *P2PackageUpload) GetIsMalwareDetectedOk() (*bool, bool) { + if o == nil || IsNil(o.IsMalwareDetected) { + return nil, false + } + return o.IsMalwareDetected, true +} + +// HasIsMalwareDetected returns a boolean if a field has been set. +func (o *P2PackageUpload) HasIsMalwareDetected() bool { + if o != nil && !IsNil(o.IsMalwareDetected) { + return true + } + + return false +} + +// SetIsMalwareDetected gets a reference to the given bool and assigns it to the IsMalwareDetected field. +func (o *P2PackageUpload) SetIsMalwareDetected(v bool) { + o.IsMalwareDetected = &v +} + // GetIsMoveable returns the IsMoveable field value if set, zero value otherwise. func (o *P2PackageUpload) GetIsMoveable() bool { if o == nil || IsNil(o.IsMoveable) { @@ -3100,6 +3135,49 @@ func (o *P2PackageUpload) SetVersionOrig(v string) { o.VersionOrig = &v } +// GetVulnerabilityCounts returns the VulnerabilityCounts field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *P2PackageUpload) GetVulnerabilityCounts() WebOSVSeverityCounts { + if o == nil || IsNil(o.VulnerabilityCounts.Get()) { + var ret WebOSVSeverityCounts + return ret + } + return *o.VulnerabilityCounts.Get() +} + +// GetVulnerabilityCountsOk returns a tuple with the VulnerabilityCounts 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 *P2PackageUpload) GetVulnerabilityCountsOk() (*WebOSVSeverityCounts, bool) { + if o == nil { + return nil, false + } + return o.VulnerabilityCounts.Get(), o.VulnerabilityCounts.IsSet() +} + +// HasVulnerabilityCounts returns a boolean if a field has been set. +func (o *P2PackageUpload) HasVulnerabilityCounts() bool { + if o != nil && o.VulnerabilityCounts.IsSet() { + return true + } + + return false +} + +// SetVulnerabilityCounts gets a reference to the given NullableWebOSVSeverityCounts and assigns it to the VulnerabilityCounts field. +func (o *P2PackageUpload) SetVulnerabilityCounts(v WebOSVSeverityCounts) { + o.VulnerabilityCounts.Set(&v) +} + +// SetVulnerabilityCountsNil sets the value for VulnerabilityCounts to be an explicit nil +func (o *P2PackageUpload) SetVulnerabilityCountsNil() { + o.VulnerabilityCounts.Set(nil) +} + +// UnsetVulnerabilityCounts ensures that no value is present for VulnerabilityCounts, not even an explicit nil +func (o *P2PackageUpload) UnsetVulnerabilityCounts() { + o.VulnerabilityCounts.Unset() +} + // GetVulnerabilityScanResultsUrl returns the VulnerabilityScanResultsUrl field value if set, zero value otherwise. func (o *P2PackageUpload) GetVulnerabilityScanResultsUrl() string { if o == nil || IsNil(o.VulnerabilityScanResultsUrl) { @@ -3229,6 +3307,9 @@ func (o P2PackageUpload) ToMap() (map[string]interface{}, error) { if !IsNil(o.IsHidden) { toSerialize["is_hidden"] = o.IsHidden } + if !IsNil(o.IsMalwareDetected) { + toSerialize["is_malware_detected"] = o.IsMalwareDetected + } if !IsNil(o.IsMoveable) { toSerialize["is_moveable"] = o.IsMoveable } @@ -3397,6 +3478,9 @@ func (o P2PackageUpload) ToMap() (map[string]interface{}, error) { if !IsNil(o.VersionOrig) { toSerialize["version_orig"] = o.VersionOrig } + if o.VulnerabilityCounts.IsSet() { + toSerialize["vulnerability_counts"] = o.VulnerabilityCounts.Get() + } if !IsNil(o.VulnerabilityScanResultsUrl) { toSerialize["vulnerability_scan_results_url"] = o.VulnerabilityScanResultsUrl } @@ -3451,6 +3535,7 @@ func (o *P2PackageUpload) UnmarshalJSON(data []byte) (err error) { delete(additionalProperties, "is_deleteable") delete(additionalProperties, "is_downloadable") delete(additionalProperties, "is_hidden") + delete(additionalProperties, "is_malware_detected") delete(additionalProperties, "is_moveable") delete(additionalProperties, "is_quarantinable") delete(additionalProperties, "is_quarantined") @@ -3507,6 +3592,7 @@ func (o *P2PackageUpload) UnmarshalJSON(data []byte) (err error) { delete(additionalProperties, "uploader_url") delete(additionalProperties, "version") delete(additionalProperties, "version_orig") + delete(additionalProperties, "vulnerability_counts") delete(additionalProperties, "vulnerability_scan_results_url") o.AdditionalProperties = additionalProperties } diff --git a/model_p2_package_upload_request.go b/model_p2_package_upload_request.go index d186d79a..621f1cee 100644 --- a/model_p2_package_upload_request.go +++ b/model_p2_package_upload_request.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1288.1 +API version: 1.1341.7 Contact: support@cloudsmith.io */ @@ -21,12 +21,15 @@ var _ MappedNullable = &P2PackageUploadRequest{} // P2PackageUploadRequest struct for P2PackageUploadRequest type P2PackageUploadRequest struct { + // Whether the package has been detected as containing malware. Requires Ultra plan. + IsMalwareDetected *bool `json:"is_malware_detected,omitempty"` // The primary file for the package. PackageFile string `json:"package_file"` // If true, the uploaded package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate. Republish *bool `json:"republish,omitempty"` // A comma-separated values list of tags to add to the package. - Tags NullableString `json:"tags,omitempty"` + Tags NullableString `json:"tags,omitempty"` + VulnerabilityCounts NullableWebOSVSeverityCounts `json:"vulnerability_counts,omitempty"` AdditionalProperties map[string]interface{} } @@ -50,6 +53,38 @@ func NewP2PackageUploadRequestWithDefaults() *P2PackageUploadRequest { return &this } +// GetIsMalwareDetected returns the IsMalwareDetected field value if set, zero value otherwise. +func (o *P2PackageUploadRequest) GetIsMalwareDetected() bool { + if o == nil || IsNil(o.IsMalwareDetected) { + var ret bool + return ret + } + return *o.IsMalwareDetected +} + +// GetIsMalwareDetectedOk returns a tuple with the IsMalwareDetected field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *P2PackageUploadRequest) GetIsMalwareDetectedOk() (*bool, bool) { + if o == nil || IsNil(o.IsMalwareDetected) { + return nil, false + } + return o.IsMalwareDetected, true +} + +// HasIsMalwareDetected returns a boolean if a field has been set. +func (o *P2PackageUploadRequest) HasIsMalwareDetected() bool { + if o != nil && !IsNil(o.IsMalwareDetected) { + return true + } + + return false +} + +// SetIsMalwareDetected gets a reference to the given bool and assigns it to the IsMalwareDetected field. +func (o *P2PackageUploadRequest) SetIsMalwareDetected(v bool) { + o.IsMalwareDetected = &v +} + // GetPackageFile returns the PackageFile field value func (o *P2PackageUploadRequest) GetPackageFile() string { if o == nil { @@ -149,6 +184,49 @@ func (o *P2PackageUploadRequest) UnsetTags() { o.Tags.Unset() } +// GetVulnerabilityCounts returns the VulnerabilityCounts field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *P2PackageUploadRequest) GetVulnerabilityCounts() WebOSVSeverityCounts { + if o == nil || IsNil(o.VulnerabilityCounts.Get()) { + var ret WebOSVSeverityCounts + return ret + } + return *o.VulnerabilityCounts.Get() +} + +// GetVulnerabilityCountsOk returns a tuple with the VulnerabilityCounts 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 *P2PackageUploadRequest) GetVulnerabilityCountsOk() (*WebOSVSeverityCounts, bool) { + if o == nil { + return nil, false + } + return o.VulnerabilityCounts.Get(), o.VulnerabilityCounts.IsSet() +} + +// HasVulnerabilityCounts returns a boolean if a field has been set. +func (o *P2PackageUploadRequest) HasVulnerabilityCounts() bool { + if o != nil && o.VulnerabilityCounts.IsSet() { + return true + } + + return false +} + +// SetVulnerabilityCounts gets a reference to the given NullableWebOSVSeverityCounts and assigns it to the VulnerabilityCounts field. +func (o *P2PackageUploadRequest) SetVulnerabilityCounts(v WebOSVSeverityCounts) { + o.VulnerabilityCounts.Set(&v) +} + +// SetVulnerabilityCountsNil sets the value for VulnerabilityCounts to be an explicit nil +func (o *P2PackageUploadRequest) SetVulnerabilityCountsNil() { + o.VulnerabilityCounts.Set(nil) +} + +// UnsetVulnerabilityCounts ensures that no value is present for VulnerabilityCounts, not even an explicit nil +func (o *P2PackageUploadRequest) UnsetVulnerabilityCounts() { + o.VulnerabilityCounts.Unset() +} + func (o P2PackageUploadRequest) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { @@ -159,6 +237,9 @@ func (o P2PackageUploadRequest) MarshalJSON() ([]byte, error) { func (o P2PackageUploadRequest) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} + if !IsNil(o.IsMalwareDetected) { + toSerialize["is_malware_detected"] = o.IsMalwareDetected + } toSerialize["package_file"] = o.PackageFile if !IsNil(o.Republish) { toSerialize["republish"] = o.Republish @@ -166,6 +247,9 @@ func (o P2PackageUploadRequest) ToMap() (map[string]interface{}, error) { if o.Tags.IsSet() { toSerialize["tags"] = o.Tags.Get() } + if o.VulnerabilityCounts.IsSet() { + toSerialize["vulnerability_counts"] = o.VulnerabilityCounts.Get() + } for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -209,9 +293,11 @@ func (o *P2PackageUploadRequest) UnmarshalJSON(data []byte) (err error) { additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "is_malware_detected") delete(additionalProperties, "package_file") delete(additionalProperties, "republish") delete(additionalProperties, "tags") + delete(additionalProperties, "vulnerability_counts") o.AdditionalProperties = additionalProperties } diff --git a/model_package.go b/model_package.go index 8fb52018..feaebf14 100644 --- a/model_package.go +++ b/model_package.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1288.1 +API version: 1.1341.7 Contact: support@cloudsmith.io */ @@ -51,23 +51,25 @@ type Package struct { // Unique and permanent identifier for the package. IdentifierPerm *string `json:"identifier_perm,omitempty"` // Return a map of identifier field names and their values. - Identifiers *map[string]string `json:"identifiers,omitempty"` - Indexed *bool `json:"indexed,omitempty"` - IsCancellable *bool `json:"is_cancellable,omitempty"` - IsCopyable *bool `json:"is_copyable,omitempty"` - IsDeleteable *bool `json:"is_deleteable,omitempty"` - IsDownloadable *bool `json:"is_downloadable,omitempty"` - IsHidden *bool `json:"is_hidden,omitempty"` - IsMoveable *bool `json:"is_moveable,omitempty"` - IsQuarantinable *bool `json:"is_quarantinable,omitempty"` - IsQuarantined *bool `json:"is_quarantined,omitempty"` - IsResyncable *bool `json:"is_resyncable,omitempty"` - IsSecurityScannable *bool `json:"is_security_scannable,omitempty"` - IsSyncAwaiting *bool `json:"is_sync_awaiting,omitempty"` - IsSyncCompleted *bool `json:"is_sync_completed,omitempty"` - IsSyncFailed *bool `json:"is_sync_failed,omitempty"` - IsSyncInFlight *bool `json:"is_sync_in_flight,omitempty"` - IsSyncInProgress *bool `json:"is_sync_in_progress,omitempty"` + Identifiers *map[string]string `json:"identifiers,omitempty"` + Indexed *bool `json:"indexed,omitempty"` + IsCancellable *bool `json:"is_cancellable,omitempty"` + IsCopyable *bool `json:"is_copyable,omitempty"` + IsDeleteable *bool `json:"is_deleteable,omitempty"` + IsDownloadable *bool `json:"is_downloadable,omitempty"` + IsHidden *bool `json:"is_hidden,omitempty"` + // Whether the package has been detected as containing malware. Requires Ultra plan. + IsMalwareDetected *bool `json:"is_malware_detected,omitempty"` + IsMoveable *bool `json:"is_moveable,omitempty"` + IsQuarantinable *bool `json:"is_quarantinable,omitempty"` + IsQuarantined *bool `json:"is_quarantined,omitempty"` + IsResyncable *bool `json:"is_resyncable,omitempty"` + IsSecurityScannable *bool `json:"is_security_scannable,omitempty"` + IsSyncAwaiting *bool `json:"is_sync_awaiting,omitempty"` + IsSyncCompleted *bool `json:"is_sync_completed,omitempty"` + IsSyncFailed *bool `json:"is_sync_failed,omitempty"` + IsSyncInFlight *bool `json:"is_sync_in_flight,omitempty"` + IsSyncInProgress *bool `json:"is_sync_in_progress,omitempty"` // The license of this package. License NullableString `json:"license,omitempty"` // The name of this package. @@ -139,9 +141,10 @@ type Package struct { Uploader *string `json:"uploader,omitempty"` UploaderUrl *string `json:"uploader_url,omitempty"` // The raw version for this package. - Version NullableString `json:"version,omitempty"` - VersionOrig *string `json:"version_orig,omitempty"` - VulnerabilityScanResultsUrl *string `json:"vulnerability_scan_results_url,omitempty"` + Version NullableString `json:"version,omitempty"` + VersionOrig *string `json:"version_orig,omitempty"` + VulnerabilityCounts NullableWebOSVSeverityCounts `json:"vulnerability_counts,omitempty"` + VulnerabilityScanResultsUrl *string `json:"vulnerability_scan_results_url,omitempty"` AdditionalProperties map[string]interface{} } @@ -1201,6 +1204,38 @@ func (o *Package) SetIsHidden(v bool) { o.IsHidden = &v } +// GetIsMalwareDetected returns the IsMalwareDetected field value if set, zero value otherwise. +func (o *Package) GetIsMalwareDetected() bool { + if o == nil || IsNil(o.IsMalwareDetected) { + var ret bool + return ret + } + return *o.IsMalwareDetected +} + +// GetIsMalwareDetectedOk returns a tuple with the IsMalwareDetected field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Package) GetIsMalwareDetectedOk() (*bool, bool) { + if o == nil || IsNil(o.IsMalwareDetected) { + return nil, false + } + return o.IsMalwareDetected, true +} + +// HasIsMalwareDetected returns a boolean if a field has been set. +func (o *Package) HasIsMalwareDetected() bool { + if o != nil && !IsNil(o.IsMalwareDetected) { + return true + } + + return false +} + +// SetIsMalwareDetected gets a reference to the given bool and assigns it to the IsMalwareDetected field. +func (o *Package) SetIsMalwareDetected(v bool) { + o.IsMalwareDetected = &v +} + // GetIsMoveable returns the IsMoveable field value if set, zero value otherwise. func (o *Package) GetIsMoveable() bool { if o == nil || IsNil(o.IsMoveable) { @@ -3179,6 +3214,49 @@ func (o *Package) SetVersionOrig(v string) { o.VersionOrig = &v } +// GetVulnerabilityCounts returns the VulnerabilityCounts field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *Package) GetVulnerabilityCounts() WebOSVSeverityCounts { + if o == nil || IsNil(o.VulnerabilityCounts.Get()) { + var ret WebOSVSeverityCounts + return ret + } + return *o.VulnerabilityCounts.Get() +} + +// GetVulnerabilityCountsOk returns a tuple with the VulnerabilityCounts 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 *Package) GetVulnerabilityCountsOk() (*WebOSVSeverityCounts, bool) { + if o == nil { + return nil, false + } + return o.VulnerabilityCounts.Get(), o.VulnerabilityCounts.IsSet() +} + +// HasVulnerabilityCounts returns a boolean if a field has been set. +func (o *Package) HasVulnerabilityCounts() bool { + if o != nil && o.VulnerabilityCounts.IsSet() { + return true + } + + return false +} + +// SetVulnerabilityCounts gets a reference to the given NullableWebOSVSeverityCounts and assigns it to the VulnerabilityCounts field. +func (o *Package) SetVulnerabilityCounts(v WebOSVSeverityCounts) { + o.VulnerabilityCounts.Set(&v) +} + +// SetVulnerabilityCountsNil sets the value for VulnerabilityCounts to be an explicit nil +func (o *Package) SetVulnerabilityCountsNil() { + o.VulnerabilityCounts.Set(nil) +} + +// UnsetVulnerabilityCounts ensures that no value is present for VulnerabilityCounts, not even an explicit nil +func (o *Package) UnsetVulnerabilityCounts() { + o.VulnerabilityCounts.Unset() +} + // GetVulnerabilityScanResultsUrl returns the VulnerabilityScanResultsUrl field value if set, zero value otherwise. func (o *Package) GetVulnerabilityScanResultsUrl() string { if o == nil || IsNil(o.VulnerabilityScanResultsUrl) { @@ -3311,6 +3389,9 @@ func (o Package) ToMap() (map[string]interface{}, error) { if !IsNil(o.IsHidden) { toSerialize["is_hidden"] = o.IsHidden } + if !IsNil(o.IsMalwareDetected) { + toSerialize["is_malware_detected"] = o.IsMalwareDetected + } if !IsNil(o.IsMoveable) { toSerialize["is_moveable"] = o.IsMoveable } @@ -3482,6 +3563,9 @@ func (o Package) ToMap() (map[string]interface{}, error) { if !IsNil(o.VersionOrig) { toSerialize["version_orig"] = o.VersionOrig } + if o.VulnerabilityCounts.IsSet() { + toSerialize["vulnerability_counts"] = o.VulnerabilityCounts.Get() + } if !IsNil(o.VulnerabilityScanResultsUrl) { toSerialize["vulnerability_scan_results_url"] = o.VulnerabilityScanResultsUrl } @@ -3537,6 +3621,7 @@ func (o *Package) UnmarshalJSON(data []byte) (err error) { delete(additionalProperties, "is_deleteable") delete(additionalProperties, "is_downloadable") delete(additionalProperties, "is_hidden") + delete(additionalProperties, "is_malware_detected") delete(additionalProperties, "is_moveable") delete(additionalProperties, "is_quarantinable") delete(additionalProperties, "is_quarantined") @@ -3594,6 +3679,7 @@ func (o *Package) UnmarshalJSON(data []byte) (err error) { delete(additionalProperties, "uploader_url") delete(additionalProperties, "version") delete(additionalProperties, "version_orig") + delete(additionalProperties, "vulnerability_counts") delete(additionalProperties, "vulnerability_scan_results_url") o.AdditionalProperties = additionalProperties } diff --git a/model_package_bulk_action.go b/model_package_bulk_action.go index 58452cce..ff5dd97b 100644 --- a/model_package_bulk_action.go +++ b/model_package_bulk_action.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1288.1 +API version: 1.1341.7 Contact: support@cloudsmith.io */ diff --git a/model_package_bulk_action_response.go b/model_package_bulk_action_response.go index 1e840c9b..6eb6931e 100644 --- a/model_package_bulk_action_response.go +++ b/model_package_bulk_action_response.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1288.1 +API version: 1.1341.7 Contact: support@cloudsmith.io */ diff --git a/model_package_copy.go b/model_package_copy.go index 9fe510f1..5078663e 100644 --- a/model_package_copy.go +++ b/model_package_copy.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1288.1 +API version: 1.1341.7 Contact: support@cloudsmith.io */ @@ -51,23 +51,25 @@ type PackageCopy struct { // Unique and permanent identifier for the package. IdentifierPerm *string `json:"identifier_perm,omitempty"` // Return a map of identifier field names and their values. - Identifiers *map[string]string `json:"identifiers,omitempty"` - Indexed *bool `json:"indexed,omitempty"` - IsCancellable *bool `json:"is_cancellable,omitempty"` - IsCopyable *bool `json:"is_copyable,omitempty"` - IsDeleteable *bool `json:"is_deleteable,omitempty"` - IsDownloadable *bool `json:"is_downloadable,omitempty"` - IsHidden *bool `json:"is_hidden,omitempty"` - IsMoveable *bool `json:"is_moveable,omitempty"` - IsQuarantinable *bool `json:"is_quarantinable,omitempty"` - IsQuarantined *bool `json:"is_quarantined,omitempty"` - IsResyncable *bool `json:"is_resyncable,omitempty"` - IsSecurityScannable *bool `json:"is_security_scannable,omitempty"` - IsSyncAwaiting *bool `json:"is_sync_awaiting,omitempty"` - IsSyncCompleted *bool `json:"is_sync_completed,omitempty"` - IsSyncFailed *bool `json:"is_sync_failed,omitempty"` - IsSyncInFlight *bool `json:"is_sync_in_flight,omitempty"` - IsSyncInProgress *bool `json:"is_sync_in_progress,omitempty"` + Identifiers *map[string]string `json:"identifiers,omitempty"` + Indexed *bool `json:"indexed,omitempty"` + IsCancellable *bool `json:"is_cancellable,omitempty"` + IsCopyable *bool `json:"is_copyable,omitempty"` + IsDeleteable *bool `json:"is_deleteable,omitempty"` + IsDownloadable *bool `json:"is_downloadable,omitempty"` + IsHidden *bool `json:"is_hidden,omitempty"` + // Whether the package has been detected as containing malware. Requires Ultra plan. + IsMalwareDetected *bool `json:"is_malware_detected,omitempty"` + IsMoveable *bool `json:"is_moveable,omitempty"` + IsQuarantinable *bool `json:"is_quarantinable,omitempty"` + IsQuarantined *bool `json:"is_quarantined,omitempty"` + IsResyncable *bool `json:"is_resyncable,omitempty"` + IsSecurityScannable *bool `json:"is_security_scannable,omitempty"` + IsSyncAwaiting *bool `json:"is_sync_awaiting,omitempty"` + IsSyncCompleted *bool `json:"is_sync_completed,omitempty"` + IsSyncFailed *bool `json:"is_sync_failed,omitempty"` + IsSyncInFlight *bool `json:"is_sync_in_flight,omitempty"` + IsSyncInProgress *bool `json:"is_sync_in_progress,omitempty"` // The license of this package. License NullableString `json:"license,omitempty"` // The name of this package. @@ -140,9 +142,10 @@ type PackageCopy struct { Uploader *string `json:"uploader,omitempty"` UploaderUrl *string `json:"uploader_url,omitempty"` // The raw version for this package. - Version NullableString `json:"version,omitempty"` - VersionOrig *string `json:"version_orig,omitempty"` - VulnerabilityScanResultsUrl *string `json:"vulnerability_scan_results_url,omitempty"` + Version NullableString `json:"version,omitempty"` + VersionOrig *string `json:"version_orig,omitempty"` + VulnerabilityCounts NullableWebOSVSeverityCounts `json:"vulnerability_counts,omitempty"` + VulnerabilityScanResultsUrl *string `json:"vulnerability_scan_results_url,omitempty"` AdditionalProperties map[string]interface{} } @@ -1202,6 +1205,38 @@ func (o *PackageCopy) SetIsHidden(v bool) { o.IsHidden = &v } +// GetIsMalwareDetected returns the IsMalwareDetected field value if set, zero value otherwise. +func (o *PackageCopy) GetIsMalwareDetected() bool { + if o == nil || IsNil(o.IsMalwareDetected) { + var ret bool + return ret + } + return *o.IsMalwareDetected +} + +// GetIsMalwareDetectedOk returns a tuple with the IsMalwareDetected field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PackageCopy) GetIsMalwareDetectedOk() (*bool, bool) { + if o == nil || IsNil(o.IsMalwareDetected) { + return nil, false + } + return o.IsMalwareDetected, true +} + +// HasIsMalwareDetected returns a boolean if a field has been set. +func (o *PackageCopy) HasIsMalwareDetected() bool { + if o != nil && !IsNil(o.IsMalwareDetected) { + return true + } + + return false +} + +// SetIsMalwareDetected gets a reference to the given bool and assigns it to the IsMalwareDetected field. +func (o *PackageCopy) SetIsMalwareDetected(v bool) { + o.IsMalwareDetected = &v +} + // GetIsMoveable returns the IsMoveable field value if set, zero value otherwise. func (o *PackageCopy) GetIsMoveable() bool { if o == nil || IsNil(o.IsMoveable) { @@ -3180,6 +3215,49 @@ func (o *PackageCopy) SetVersionOrig(v string) { o.VersionOrig = &v } +// GetVulnerabilityCounts returns the VulnerabilityCounts field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PackageCopy) GetVulnerabilityCounts() WebOSVSeverityCounts { + if o == nil || IsNil(o.VulnerabilityCounts.Get()) { + var ret WebOSVSeverityCounts + return ret + } + return *o.VulnerabilityCounts.Get() +} + +// GetVulnerabilityCountsOk returns a tuple with the VulnerabilityCounts 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 *PackageCopy) GetVulnerabilityCountsOk() (*WebOSVSeverityCounts, bool) { + if o == nil { + return nil, false + } + return o.VulnerabilityCounts.Get(), o.VulnerabilityCounts.IsSet() +} + +// HasVulnerabilityCounts returns a boolean if a field has been set. +func (o *PackageCopy) HasVulnerabilityCounts() bool { + if o != nil && o.VulnerabilityCounts.IsSet() { + return true + } + + return false +} + +// SetVulnerabilityCounts gets a reference to the given NullableWebOSVSeverityCounts and assigns it to the VulnerabilityCounts field. +func (o *PackageCopy) SetVulnerabilityCounts(v WebOSVSeverityCounts) { + o.VulnerabilityCounts.Set(&v) +} + +// SetVulnerabilityCountsNil sets the value for VulnerabilityCounts to be an explicit nil +func (o *PackageCopy) SetVulnerabilityCountsNil() { + o.VulnerabilityCounts.Set(nil) +} + +// UnsetVulnerabilityCounts ensures that no value is present for VulnerabilityCounts, not even an explicit nil +func (o *PackageCopy) UnsetVulnerabilityCounts() { + o.VulnerabilityCounts.Unset() +} + // GetVulnerabilityScanResultsUrl returns the VulnerabilityScanResultsUrl field value if set, zero value otherwise. func (o *PackageCopy) GetVulnerabilityScanResultsUrl() string { if o == nil || IsNil(o.VulnerabilityScanResultsUrl) { @@ -3312,6 +3390,9 @@ func (o PackageCopy) ToMap() (map[string]interface{}, error) { if !IsNil(o.IsHidden) { toSerialize["is_hidden"] = o.IsHidden } + if !IsNil(o.IsMalwareDetected) { + toSerialize["is_malware_detected"] = o.IsMalwareDetected + } if !IsNil(o.IsMoveable) { toSerialize["is_moveable"] = o.IsMoveable } @@ -3483,6 +3564,9 @@ func (o PackageCopy) ToMap() (map[string]interface{}, error) { if !IsNil(o.VersionOrig) { toSerialize["version_orig"] = o.VersionOrig } + if o.VulnerabilityCounts.IsSet() { + toSerialize["vulnerability_counts"] = o.VulnerabilityCounts.Get() + } if !IsNil(o.VulnerabilityScanResultsUrl) { toSerialize["vulnerability_scan_results_url"] = o.VulnerabilityScanResultsUrl } @@ -3538,6 +3622,7 @@ func (o *PackageCopy) UnmarshalJSON(data []byte) (err error) { delete(additionalProperties, "is_deleteable") delete(additionalProperties, "is_downloadable") delete(additionalProperties, "is_hidden") + delete(additionalProperties, "is_malware_detected") delete(additionalProperties, "is_moveable") delete(additionalProperties, "is_quarantinable") delete(additionalProperties, "is_quarantined") @@ -3595,6 +3680,7 @@ func (o *PackageCopy) UnmarshalJSON(data []byte) (err error) { delete(additionalProperties, "uploader_url") delete(additionalProperties, "version") delete(additionalProperties, "version_orig") + delete(additionalProperties, "vulnerability_counts") delete(additionalProperties, "vulnerability_scan_results_url") o.AdditionalProperties = additionalProperties } diff --git a/model_package_copy_request.go b/model_package_copy_request.go index e72ceb78..edac9507 100644 --- a/model_package_copy_request.go +++ b/model_package_copy_request.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1288.1 +API version: 1.1341.7 Contact: support@cloudsmith.io */ @@ -23,8 +23,11 @@ var _ MappedNullable = &PackageCopyRequest{} type PackageCopyRequest struct { // The name of the destination repository without the namespace. Destination string `json:"destination"` + // Whether the package has been detected as containing malware. Requires Ultra plan. + IsMalwareDetected *bool `json:"is_malware_detected,omitempty"` // If true, the package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate. - Republish *bool `json:"republish,omitempty"` + Republish *bool `json:"republish,omitempty"` + VulnerabilityCounts NullableWebOSVSeverityCounts `json:"vulnerability_counts,omitempty"` AdditionalProperties map[string]interface{} } @@ -72,6 +75,38 @@ func (o *PackageCopyRequest) SetDestination(v string) { o.Destination = v } +// GetIsMalwareDetected returns the IsMalwareDetected field value if set, zero value otherwise. +func (o *PackageCopyRequest) GetIsMalwareDetected() bool { + if o == nil || IsNil(o.IsMalwareDetected) { + var ret bool + return ret + } + return *o.IsMalwareDetected +} + +// GetIsMalwareDetectedOk returns a tuple with the IsMalwareDetected field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PackageCopyRequest) GetIsMalwareDetectedOk() (*bool, bool) { + if o == nil || IsNil(o.IsMalwareDetected) { + return nil, false + } + return o.IsMalwareDetected, true +} + +// HasIsMalwareDetected returns a boolean if a field has been set. +func (o *PackageCopyRequest) HasIsMalwareDetected() bool { + if o != nil && !IsNil(o.IsMalwareDetected) { + return true + } + + return false +} + +// SetIsMalwareDetected gets a reference to the given bool and assigns it to the IsMalwareDetected field. +func (o *PackageCopyRequest) SetIsMalwareDetected(v bool) { + o.IsMalwareDetected = &v +} + // GetRepublish returns the Republish field value if set, zero value otherwise. func (o *PackageCopyRequest) GetRepublish() bool { if o == nil || IsNil(o.Republish) { @@ -104,6 +139,49 @@ func (o *PackageCopyRequest) SetRepublish(v bool) { o.Republish = &v } +// GetVulnerabilityCounts returns the VulnerabilityCounts field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PackageCopyRequest) GetVulnerabilityCounts() WebOSVSeverityCounts { + if o == nil || IsNil(o.VulnerabilityCounts.Get()) { + var ret WebOSVSeverityCounts + return ret + } + return *o.VulnerabilityCounts.Get() +} + +// GetVulnerabilityCountsOk returns a tuple with the VulnerabilityCounts 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 *PackageCopyRequest) GetVulnerabilityCountsOk() (*WebOSVSeverityCounts, bool) { + if o == nil { + return nil, false + } + return o.VulnerabilityCounts.Get(), o.VulnerabilityCounts.IsSet() +} + +// HasVulnerabilityCounts returns a boolean if a field has been set. +func (o *PackageCopyRequest) HasVulnerabilityCounts() bool { + if o != nil && o.VulnerabilityCounts.IsSet() { + return true + } + + return false +} + +// SetVulnerabilityCounts gets a reference to the given NullableWebOSVSeverityCounts and assigns it to the VulnerabilityCounts field. +func (o *PackageCopyRequest) SetVulnerabilityCounts(v WebOSVSeverityCounts) { + o.VulnerabilityCounts.Set(&v) +} + +// SetVulnerabilityCountsNil sets the value for VulnerabilityCounts to be an explicit nil +func (o *PackageCopyRequest) SetVulnerabilityCountsNil() { + o.VulnerabilityCounts.Set(nil) +} + +// UnsetVulnerabilityCounts ensures that no value is present for VulnerabilityCounts, not even an explicit nil +func (o *PackageCopyRequest) UnsetVulnerabilityCounts() { + o.VulnerabilityCounts.Unset() +} + func (o PackageCopyRequest) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { @@ -115,9 +193,15 @@ func (o PackageCopyRequest) MarshalJSON() ([]byte, error) { func (o PackageCopyRequest) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["destination"] = o.Destination + if !IsNil(o.IsMalwareDetected) { + toSerialize["is_malware_detected"] = o.IsMalwareDetected + } if !IsNil(o.Republish) { toSerialize["republish"] = o.Republish } + if o.VulnerabilityCounts.IsSet() { + toSerialize["vulnerability_counts"] = o.VulnerabilityCounts.Get() + } for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -162,7 +246,9 @@ func (o *PackageCopyRequest) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "destination") + delete(additionalProperties, "is_malware_detected") delete(additionalProperties, "republish") + delete(additionalProperties, "vulnerability_counts") o.AdditionalProperties = additionalProperties } diff --git a/model_package_deny_policy.go b/model_package_deny_policy.go index 85d00449..eef23cc2 100644 --- a/model_package_deny_policy.go +++ b/model_package_deny_policy.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1288.1 +API version: 1.1341.7 Contact: support@cloudsmith.io */ diff --git a/model_package_deny_policy_request.go b/model_package_deny_policy_request.go index 5b01b4c0..15afe040 100644 --- a/model_package_deny_policy_request.go +++ b/model_package_deny_policy_request.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1288.1 +API version: 1.1341.7 Contact: support@cloudsmith.io */ diff --git a/model_package_deny_policy_request_patch.go b/model_package_deny_policy_request_patch.go index 2e2af1ea..46413a76 100644 --- a/model_package_deny_policy_request_patch.go +++ b/model_package_deny_policy_request_patch.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1288.1 +API version: 1.1341.7 Contact: support@cloudsmith.io */ diff --git a/model_package_dependencies.go b/model_package_dependencies.go index 09772950..5e91cf16 100644 --- a/model_package_dependencies.go +++ b/model_package_dependencies.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1288.1 +API version: 1.1341.7 Contact: support@cloudsmith.io */ diff --git a/model_package_dependency.go b/model_package_dependency.go index 90422c4d..b0611c2f 100644 --- a/model_package_dependency.go +++ b/model_package_dependency.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1288.1 +API version: 1.1341.7 Contact: support@cloudsmith.io */ diff --git a/model_package_detail.go b/model_package_detail.go new file mode 100644 index 00000000..4e5577eb --- /dev/null +++ b/model_package_detail.go @@ -0,0 +1,3762 @@ +/* +Cloudsmith API (v1) + +The API to the Cloudsmith Service + +API version: 1.1341.7 +Contact: support@cloudsmith.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package cloudsmith + +import ( + "encoding/json" + "time" +) + +// checks if the PackageDetail type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &PackageDetail{} + +// PackageDetail struct for PackageDetail +type PackageDetail struct { + Architectures []Architecture `json:"architectures,omitempty"` + CdnUrl NullableString `json:"cdn_url,omitempty"` + ChecksumMd5 *string `json:"checksum_md5,omitempty"` + ChecksumSha1 *string `json:"checksum_sha1,omitempty"` + ChecksumSha256 *string `json:"checksum_sha256,omitempty"` + ChecksumSha512 *string `json:"checksum_sha512,omitempty"` + // A checksum of all of the package's dependencies. + DependenciesChecksumMd5 NullableString `json:"dependencies_checksum_md5,omitempty"` + DependenciesUrl *string `json:"dependencies_url,omitempty"` + // A textual description of this package. + Description NullableString `json:"description,omitempty"` + DisplayName *string `json:"display_name,omitempty"` + Distro NullableDistribution `json:"distro,omitempty"` + DistroVersion *DistributionVersion `json:"distro_version,omitempty"` + Downloads *int64 `json:"downloads,omitempty"` + // The epoch of the package version (if any). + Epoch NullableInt64 `json:"epoch,omitempty"` + Extension *string `json:"extension,omitempty"` + Filename *string `json:"filename,omitempty"` + // Full path to the file, including filename e.g. bin/utils/tool.tar.gz + Filepath NullableString `json:"filepath,omitempty"` + Files []PackageFile `json:"files,omitempty"` + Format *string `json:"format,omitempty"` + FormatUrl *string `json:"format_url,omitempty"` + // Amount of storage that will be freed if this package is deleted + FreeableStorage *int64 `json:"freeable_storage,omitempty"` + FullyQualifiedName NullableString `json:"fully_qualified_name,omitempty"` + // Whether the package has any dependencies (top-level or from its SBOM). + HasDependencies *bool `json:"has_dependencies,omitempty"` + // Unique and permanent identifier for the package. + IdentifierPerm *string `json:"identifier_perm,omitempty"` + // Return a map of identifier field names and their values. + Identifiers *map[string]string `json:"identifiers,omitempty"` + Indexed *bool `json:"indexed,omitempty"` + IsCancellable *bool `json:"is_cancellable,omitempty"` + IsCopyable *bool `json:"is_copyable,omitempty"` + IsDeleteable *bool `json:"is_deleteable,omitempty"` + IsDownloadable *bool `json:"is_downloadable,omitempty"` + IsHidden *bool `json:"is_hidden,omitempty"` + // Whether the package has been detected as containing malware. Requires Ultra plan. + IsMalwareDetected *bool `json:"is_malware_detected,omitempty"` + IsMoveable *bool `json:"is_moveable,omitempty"` + IsQuarantinable *bool `json:"is_quarantinable,omitempty"` + IsQuarantined *bool `json:"is_quarantined,omitempty"` + IsResyncable *bool `json:"is_resyncable,omitempty"` + IsSecurityScannable *bool `json:"is_security_scannable,omitempty"` + IsSyncAwaiting *bool `json:"is_sync_awaiting,omitempty"` + IsSyncCompleted *bool `json:"is_sync_completed,omitempty"` + IsSyncFailed *bool `json:"is_sync_failed,omitempty"` + IsSyncInFlight *bool `json:"is_sync_in_flight,omitempty"` + IsSyncInProgress *bool `json:"is_sync_in_progress,omitempty"` + // The license of this package. + License NullableString `json:"license,omitempty"` + // The name of this package. + Name NullableString `json:"name,omitempty"` + Namespace *string `json:"namespace,omitempty"` + NamespaceUrl *string `json:"namespace_url,omitempty"` + NumFiles *int64 `json:"num_files,omitempty"` + OriginRepository *string `json:"origin_repository,omitempty"` + OriginRepositoryUrl *string `json:"origin_repository_url,omitempty"` + // Whether the package's SPDX license is OSI-approved. + OsiApproved *bool `json:"osi_approved,omitempty"` + // The type of package contents. + PackageType *int64 `json:"package_type,omitempty"` + // Whether or not the package has violated any policy. + PolicyViolated *bool `json:"policy_violated,omitempty"` + // The raw license string. + RawLicense NullableString `json:"raw_license,omitempty"` + // The release of the package version (if any). + Release NullableString `json:"release,omitempty"` + Repository *string `json:"repository,omitempty"` + RepositoryUrl *string `json:"repository_url,omitempty"` + // The datetime the security scanning was completed. + SecurityScanCompletedAt NullableTime `json:"security_scan_completed_at,omitempty"` + // The datetime the security scanning was started. + SecurityScanStartedAt NullableTime `json:"security_scan_started_at,omitempty"` + SecurityScanStatus NullableString `json:"security_scan_status,omitempty"` + // The datetime the security scanning status was updated. + SecurityScanStatusUpdatedAt NullableTime `json:"security_scan_status_updated_at,omitempty"` + SelfHtmlUrl *string `json:"self_html_url,omitempty"` + SelfUrl *string `json:"self_url,omitempty"` + SelfWebappUrl *string `json:"self_webapp_url,omitempty"` + SignatureUrl NullableString `json:"signature_url,omitempty"` + // The calculated size of the package. + Size *int64 `json:"size,omitempty"` + // The public unique identifier for the package. + Slug *string `json:"slug,omitempty" validate:"regexp=^[-a-zA-Z0-9_]+$"` + SlugPerm *string `json:"slug_perm,omitempty" validate:"regexp=^[-a-zA-Z0-9_]+$"` + // The SPDX license identifier for this package. + SpdxLicense NullableString `json:"spdx_license,omitempty"` + // The synchronisation (in progress) stage of the package. + Stage *int64 `json:"stage,omitempty"` + StageStr *string `json:"stage_str,omitempty"` + // The datetime the package stage was updated at. + StageUpdatedAt *time.Time `json:"stage_updated_at,omitempty"` + // The synchronisation status of the package. + Status *int64 `json:"status,omitempty"` + // A textual description for the synchronous status reason (if any + StatusReason NullableString `json:"status_reason,omitempty"` + StatusStr *string `json:"status_str,omitempty"` + // The datetime the package status was updated at. + StatusUpdatedAt *time.Time `json:"status_updated_at,omitempty"` + StatusUrl *string `json:"status_url,omitempty"` + Subtype *string `json:"subtype,omitempty"` + // A one-liner synopsis of this package. + Summary NullableString `json:"summary,omitempty"` + // The datetime the package sync was finished at. + SyncFinishedAt NullableTime `json:"sync_finished_at,omitempty"` + // Synchronisation progress (from 0-100) + SyncProgress *int64 `json:"sync_progress,omitempty"` + // All tags on the package, grouped by tag type. This includes immutable tags, but doesn't distinguish them from mutable. To see which tags are immutable specifically, see the tags_immutable field. + Tags map[string]interface{} `json:"tags,omitempty"` + // All tags on the package, grouped by tag type. This includes immutable tags, but doesn't distinguish them from mutable. To see which tags are immutable specifically, see the tags_immutable field. + TagsAutomatic map[string]interface{} `json:"tags_automatic,omitempty"` + // All tags on the package, grouped by tag type. This includes immutable tags, but doesn't distinguish them from mutable. To see which tags are immutable specifically, see the tags_immutable field. + TagsImmutable map[string]interface{} `json:"tags_immutable,omitempty"` + TypeDisplay *string `json:"type_display,omitempty"` + // The date this package was uploaded. + UploadedAt *time.Time `json:"uploaded_at,omitempty"` + Uploader *string `json:"uploader,omitempty"` + UploaderUrl *string `json:"uploader_url,omitempty"` + // The raw version for this package. + Version NullableString `json:"version,omitempty"` + VersionOrig *string `json:"version_orig,omitempty"` + VulnerabilityCounts NullableWebOSVSeverityCounts `json:"vulnerability_counts,omitempty"` + VulnerabilityScanResultsUrl *string `json:"vulnerability_scan_results_url,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _PackageDetail PackageDetail + +// NewPackageDetail instantiates a new PackageDetail object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewPackageDetail() *PackageDetail { + this := PackageDetail{} + return &this +} + +// NewPackageDetailWithDefaults instantiates a new PackageDetail object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewPackageDetailWithDefaults() *PackageDetail { + this := PackageDetail{} + return &this +} + +// GetArchitectures returns the Architectures field value if set, zero value otherwise. +func (o *PackageDetail) GetArchitectures() []Architecture { + if o == nil || IsNil(o.Architectures) { + var ret []Architecture + return ret + } + return o.Architectures +} + +// GetArchitecturesOk returns a tuple with the Architectures field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PackageDetail) GetArchitecturesOk() ([]Architecture, bool) { + if o == nil || IsNil(o.Architectures) { + return nil, false + } + return o.Architectures, true +} + +// HasArchitectures returns a boolean if a field has been set. +func (o *PackageDetail) HasArchitectures() bool { + if o != nil && !IsNil(o.Architectures) { + return true + } + + return false +} + +// SetArchitectures gets a reference to the given []Architecture and assigns it to the Architectures field. +func (o *PackageDetail) SetArchitectures(v []Architecture) { + o.Architectures = v +} + +// GetCdnUrl returns the CdnUrl field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PackageDetail) GetCdnUrl() string { + if o == nil || IsNil(o.CdnUrl.Get()) { + var ret string + return ret + } + return *o.CdnUrl.Get() +} + +// GetCdnUrlOk returns a tuple with the CdnUrl 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 *PackageDetail) GetCdnUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.CdnUrl.Get(), o.CdnUrl.IsSet() +} + +// HasCdnUrl returns a boolean if a field has been set. +func (o *PackageDetail) HasCdnUrl() bool { + if o != nil && o.CdnUrl.IsSet() { + return true + } + + return false +} + +// SetCdnUrl gets a reference to the given NullableString and assigns it to the CdnUrl field. +func (o *PackageDetail) SetCdnUrl(v string) { + o.CdnUrl.Set(&v) +} + +// SetCdnUrlNil sets the value for CdnUrl to be an explicit nil +func (o *PackageDetail) SetCdnUrlNil() { + o.CdnUrl.Set(nil) +} + +// UnsetCdnUrl ensures that no value is present for CdnUrl, not even an explicit nil +func (o *PackageDetail) UnsetCdnUrl() { + o.CdnUrl.Unset() +} + +// GetChecksumMd5 returns the ChecksumMd5 field value if set, zero value otherwise. +func (o *PackageDetail) GetChecksumMd5() string { + if o == nil || IsNil(o.ChecksumMd5) { + var ret string + return ret + } + return *o.ChecksumMd5 +} + +// GetChecksumMd5Ok returns a tuple with the ChecksumMd5 field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PackageDetail) GetChecksumMd5Ok() (*string, bool) { + if o == nil || IsNil(o.ChecksumMd5) { + return nil, false + } + return o.ChecksumMd5, true +} + +// HasChecksumMd5 returns a boolean if a field has been set. +func (o *PackageDetail) HasChecksumMd5() bool { + if o != nil && !IsNil(o.ChecksumMd5) { + return true + } + + return false +} + +// SetChecksumMd5 gets a reference to the given string and assigns it to the ChecksumMd5 field. +func (o *PackageDetail) SetChecksumMd5(v string) { + o.ChecksumMd5 = &v +} + +// GetChecksumSha1 returns the ChecksumSha1 field value if set, zero value otherwise. +func (o *PackageDetail) GetChecksumSha1() string { + if o == nil || IsNil(o.ChecksumSha1) { + var ret string + return ret + } + return *o.ChecksumSha1 +} + +// GetChecksumSha1Ok returns a tuple with the ChecksumSha1 field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PackageDetail) GetChecksumSha1Ok() (*string, bool) { + if o == nil || IsNil(o.ChecksumSha1) { + return nil, false + } + return o.ChecksumSha1, true +} + +// HasChecksumSha1 returns a boolean if a field has been set. +func (o *PackageDetail) HasChecksumSha1() bool { + if o != nil && !IsNil(o.ChecksumSha1) { + return true + } + + return false +} + +// SetChecksumSha1 gets a reference to the given string and assigns it to the ChecksumSha1 field. +func (o *PackageDetail) SetChecksumSha1(v string) { + o.ChecksumSha1 = &v +} + +// GetChecksumSha256 returns the ChecksumSha256 field value if set, zero value otherwise. +func (o *PackageDetail) GetChecksumSha256() string { + if o == nil || IsNil(o.ChecksumSha256) { + var ret string + return ret + } + return *o.ChecksumSha256 +} + +// GetChecksumSha256Ok returns a tuple with the ChecksumSha256 field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PackageDetail) GetChecksumSha256Ok() (*string, bool) { + if o == nil || IsNil(o.ChecksumSha256) { + return nil, false + } + return o.ChecksumSha256, true +} + +// HasChecksumSha256 returns a boolean if a field has been set. +func (o *PackageDetail) HasChecksumSha256() bool { + if o != nil && !IsNil(o.ChecksumSha256) { + return true + } + + return false +} + +// SetChecksumSha256 gets a reference to the given string and assigns it to the ChecksumSha256 field. +func (o *PackageDetail) SetChecksumSha256(v string) { + o.ChecksumSha256 = &v +} + +// GetChecksumSha512 returns the ChecksumSha512 field value if set, zero value otherwise. +func (o *PackageDetail) GetChecksumSha512() string { + if o == nil || IsNil(o.ChecksumSha512) { + var ret string + return ret + } + return *o.ChecksumSha512 +} + +// GetChecksumSha512Ok returns a tuple with the ChecksumSha512 field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PackageDetail) GetChecksumSha512Ok() (*string, bool) { + if o == nil || IsNil(o.ChecksumSha512) { + return nil, false + } + return o.ChecksumSha512, true +} + +// HasChecksumSha512 returns a boolean if a field has been set. +func (o *PackageDetail) HasChecksumSha512() bool { + if o != nil && !IsNil(o.ChecksumSha512) { + return true + } + + return false +} + +// SetChecksumSha512 gets a reference to the given string and assigns it to the ChecksumSha512 field. +func (o *PackageDetail) SetChecksumSha512(v string) { + o.ChecksumSha512 = &v +} + +// GetDependenciesChecksumMd5 returns the DependenciesChecksumMd5 field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PackageDetail) GetDependenciesChecksumMd5() string { + if o == nil || IsNil(o.DependenciesChecksumMd5.Get()) { + var ret string + return ret + } + return *o.DependenciesChecksumMd5.Get() +} + +// GetDependenciesChecksumMd5Ok returns a tuple with the DependenciesChecksumMd5 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 *PackageDetail) GetDependenciesChecksumMd5Ok() (*string, bool) { + if o == nil { + return nil, false + } + return o.DependenciesChecksumMd5.Get(), o.DependenciesChecksumMd5.IsSet() +} + +// HasDependenciesChecksumMd5 returns a boolean if a field has been set. +func (o *PackageDetail) HasDependenciesChecksumMd5() bool { + if o != nil && o.DependenciesChecksumMd5.IsSet() { + return true + } + + return false +} + +// SetDependenciesChecksumMd5 gets a reference to the given NullableString and assigns it to the DependenciesChecksumMd5 field. +func (o *PackageDetail) SetDependenciesChecksumMd5(v string) { + o.DependenciesChecksumMd5.Set(&v) +} + +// SetDependenciesChecksumMd5Nil sets the value for DependenciesChecksumMd5 to be an explicit nil +func (o *PackageDetail) SetDependenciesChecksumMd5Nil() { + o.DependenciesChecksumMd5.Set(nil) +} + +// UnsetDependenciesChecksumMd5 ensures that no value is present for DependenciesChecksumMd5, not even an explicit nil +func (o *PackageDetail) UnsetDependenciesChecksumMd5() { + o.DependenciesChecksumMd5.Unset() +} + +// GetDependenciesUrl returns the DependenciesUrl field value if set, zero value otherwise. +func (o *PackageDetail) GetDependenciesUrl() string { + if o == nil || IsNil(o.DependenciesUrl) { + var ret string + return ret + } + return *o.DependenciesUrl +} + +// GetDependenciesUrlOk returns a tuple with the DependenciesUrl field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PackageDetail) GetDependenciesUrlOk() (*string, bool) { + if o == nil || IsNil(o.DependenciesUrl) { + return nil, false + } + return o.DependenciesUrl, true +} + +// HasDependenciesUrl returns a boolean if a field has been set. +func (o *PackageDetail) HasDependenciesUrl() bool { + if o != nil && !IsNil(o.DependenciesUrl) { + return true + } + + return false +} + +// SetDependenciesUrl gets a reference to the given string and assigns it to the DependenciesUrl field. +func (o *PackageDetail) SetDependenciesUrl(v string) { + o.DependenciesUrl = &v +} + +// GetDescription returns the Description field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PackageDetail) GetDescription() string { + if o == nil || IsNil(o.Description.Get()) { + var ret string + return ret + } + return *o.Description.Get() +} + +// GetDescriptionOk returns a tuple with the Description 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 *PackageDetail) GetDescriptionOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Description.Get(), o.Description.IsSet() +} + +// HasDescription returns a boolean if a field has been set. +func (o *PackageDetail) HasDescription() bool { + if o != nil && o.Description.IsSet() { + return true + } + + return false +} + +// SetDescription gets a reference to the given NullableString and assigns it to the Description field. +func (o *PackageDetail) SetDescription(v string) { + o.Description.Set(&v) +} + +// SetDescriptionNil sets the value for Description to be an explicit nil +func (o *PackageDetail) SetDescriptionNil() { + o.Description.Set(nil) +} + +// UnsetDescription ensures that no value is present for Description, not even an explicit nil +func (o *PackageDetail) UnsetDescription() { + o.Description.Unset() +} + +// GetDisplayName returns the DisplayName field value if set, zero value otherwise. +func (o *PackageDetail) GetDisplayName() string { + if o == nil || IsNil(o.DisplayName) { + var ret string + return ret + } + return *o.DisplayName +} + +// GetDisplayNameOk returns a tuple with the DisplayName field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PackageDetail) GetDisplayNameOk() (*string, bool) { + if o == nil || IsNil(o.DisplayName) { + return nil, false + } + return o.DisplayName, true +} + +// HasDisplayName returns a boolean if a field has been set. +func (o *PackageDetail) HasDisplayName() bool { + if o != nil && !IsNil(o.DisplayName) { + return true + } + + return false +} + +// SetDisplayName gets a reference to the given string and assigns it to the DisplayName field. +func (o *PackageDetail) SetDisplayName(v string) { + o.DisplayName = &v +} + +// GetDistro returns the Distro field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PackageDetail) GetDistro() Distribution { + if o == nil || IsNil(o.Distro.Get()) { + var ret Distribution + return ret + } + return *o.Distro.Get() +} + +// GetDistroOk returns a tuple with the Distro 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 *PackageDetail) GetDistroOk() (*Distribution, bool) { + if o == nil { + return nil, false + } + return o.Distro.Get(), o.Distro.IsSet() +} + +// HasDistro returns a boolean if a field has been set. +func (o *PackageDetail) HasDistro() bool { + if o != nil && o.Distro.IsSet() { + return true + } + + return false +} + +// SetDistro gets a reference to the given NullableDistribution and assigns it to the Distro field. +func (o *PackageDetail) SetDistro(v Distribution) { + o.Distro.Set(&v) +} + +// SetDistroNil sets the value for Distro to be an explicit nil +func (o *PackageDetail) SetDistroNil() { + o.Distro.Set(nil) +} + +// UnsetDistro ensures that no value is present for Distro, not even an explicit nil +func (o *PackageDetail) UnsetDistro() { + o.Distro.Unset() +} + +// GetDistroVersion returns the DistroVersion field value if set, zero value otherwise. +func (o *PackageDetail) GetDistroVersion() DistributionVersion { + if o == nil || IsNil(o.DistroVersion) { + var ret DistributionVersion + return ret + } + return *o.DistroVersion +} + +// GetDistroVersionOk returns a tuple with the DistroVersion field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PackageDetail) GetDistroVersionOk() (*DistributionVersion, bool) { + if o == nil || IsNil(o.DistroVersion) { + return nil, false + } + return o.DistroVersion, true +} + +// HasDistroVersion returns a boolean if a field has been set. +func (o *PackageDetail) HasDistroVersion() bool { + if o != nil && !IsNil(o.DistroVersion) { + return true + } + + return false +} + +// SetDistroVersion gets a reference to the given DistributionVersion and assigns it to the DistroVersion field. +func (o *PackageDetail) SetDistroVersion(v DistributionVersion) { + o.DistroVersion = &v +} + +// GetDownloads returns the Downloads field value if set, zero value otherwise. +func (o *PackageDetail) GetDownloads() int64 { + if o == nil || IsNil(o.Downloads) { + var ret int64 + return ret + } + return *o.Downloads +} + +// GetDownloadsOk returns a tuple with the Downloads field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PackageDetail) GetDownloadsOk() (*int64, bool) { + if o == nil || IsNil(o.Downloads) { + return nil, false + } + return o.Downloads, true +} + +// HasDownloads returns a boolean if a field has been set. +func (o *PackageDetail) HasDownloads() bool { + if o != nil && !IsNil(o.Downloads) { + return true + } + + return false +} + +// SetDownloads gets a reference to the given int64 and assigns it to the Downloads field. +func (o *PackageDetail) SetDownloads(v int64) { + o.Downloads = &v +} + +// GetEpoch returns the Epoch field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PackageDetail) GetEpoch() int64 { + if o == nil || IsNil(o.Epoch.Get()) { + var ret int64 + return ret + } + return *o.Epoch.Get() +} + +// GetEpochOk returns a tuple with the Epoch 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 *PackageDetail) GetEpochOk() (*int64, bool) { + if o == nil { + return nil, false + } + return o.Epoch.Get(), o.Epoch.IsSet() +} + +// HasEpoch returns a boolean if a field has been set. +func (o *PackageDetail) HasEpoch() bool { + if o != nil && o.Epoch.IsSet() { + return true + } + + return false +} + +// SetEpoch gets a reference to the given NullableInt64 and assigns it to the Epoch field. +func (o *PackageDetail) SetEpoch(v int64) { + o.Epoch.Set(&v) +} + +// SetEpochNil sets the value for Epoch to be an explicit nil +func (o *PackageDetail) SetEpochNil() { + o.Epoch.Set(nil) +} + +// UnsetEpoch ensures that no value is present for Epoch, not even an explicit nil +func (o *PackageDetail) UnsetEpoch() { + o.Epoch.Unset() +} + +// GetExtension returns the Extension field value if set, zero value otherwise. +func (o *PackageDetail) GetExtension() string { + if o == nil || IsNil(o.Extension) { + var ret string + return ret + } + return *o.Extension +} + +// GetExtensionOk returns a tuple with the Extension field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PackageDetail) GetExtensionOk() (*string, bool) { + if o == nil || IsNil(o.Extension) { + return nil, false + } + return o.Extension, true +} + +// HasExtension returns a boolean if a field has been set. +func (o *PackageDetail) HasExtension() bool { + if o != nil && !IsNil(o.Extension) { + return true + } + + return false +} + +// SetExtension gets a reference to the given string and assigns it to the Extension field. +func (o *PackageDetail) SetExtension(v string) { + o.Extension = &v +} + +// GetFilename returns the Filename field value if set, zero value otherwise. +func (o *PackageDetail) GetFilename() string { + if o == nil || IsNil(o.Filename) { + var ret string + return ret + } + return *o.Filename +} + +// GetFilenameOk returns a tuple with the Filename field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PackageDetail) GetFilenameOk() (*string, bool) { + if o == nil || IsNil(o.Filename) { + return nil, false + } + return o.Filename, true +} + +// HasFilename returns a boolean if a field has been set. +func (o *PackageDetail) HasFilename() bool { + if o != nil && !IsNil(o.Filename) { + return true + } + + return false +} + +// SetFilename gets a reference to the given string and assigns it to the Filename field. +func (o *PackageDetail) SetFilename(v string) { + o.Filename = &v +} + +// GetFilepath returns the Filepath field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PackageDetail) GetFilepath() string { + if o == nil || IsNil(o.Filepath.Get()) { + var ret string + return ret + } + return *o.Filepath.Get() +} + +// GetFilepathOk returns a tuple with the Filepath 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 *PackageDetail) GetFilepathOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Filepath.Get(), o.Filepath.IsSet() +} + +// HasFilepath returns a boolean if a field has been set. +func (o *PackageDetail) HasFilepath() bool { + if o != nil && o.Filepath.IsSet() { + return true + } + + return false +} + +// SetFilepath gets a reference to the given NullableString and assigns it to the Filepath field. +func (o *PackageDetail) SetFilepath(v string) { + o.Filepath.Set(&v) +} + +// SetFilepathNil sets the value for Filepath to be an explicit nil +func (o *PackageDetail) SetFilepathNil() { + o.Filepath.Set(nil) +} + +// UnsetFilepath ensures that no value is present for Filepath, not even an explicit nil +func (o *PackageDetail) UnsetFilepath() { + o.Filepath.Unset() +} + +// GetFiles returns the Files field value if set, zero value otherwise. +func (o *PackageDetail) GetFiles() []PackageFile { + if o == nil || IsNil(o.Files) { + var ret []PackageFile + return ret + } + return o.Files +} + +// GetFilesOk returns a tuple with the Files field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PackageDetail) GetFilesOk() ([]PackageFile, bool) { + if o == nil || IsNil(o.Files) { + return nil, false + } + return o.Files, true +} + +// HasFiles returns a boolean if a field has been set. +func (o *PackageDetail) HasFiles() bool { + if o != nil && !IsNil(o.Files) { + return true + } + + return false +} + +// SetFiles gets a reference to the given []PackageFile and assigns it to the Files field. +func (o *PackageDetail) SetFiles(v []PackageFile) { + o.Files = v +} + +// GetFormat returns the Format field value if set, zero value otherwise. +func (o *PackageDetail) GetFormat() string { + if o == nil || IsNil(o.Format) { + var ret string + return ret + } + return *o.Format +} + +// GetFormatOk returns a tuple with the Format field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PackageDetail) GetFormatOk() (*string, bool) { + if o == nil || IsNil(o.Format) { + return nil, false + } + return o.Format, true +} + +// HasFormat returns a boolean if a field has been set. +func (o *PackageDetail) HasFormat() bool { + if o != nil && !IsNil(o.Format) { + return true + } + + return false +} + +// SetFormat gets a reference to the given string and assigns it to the Format field. +func (o *PackageDetail) SetFormat(v string) { + o.Format = &v +} + +// GetFormatUrl returns the FormatUrl field value if set, zero value otherwise. +func (o *PackageDetail) GetFormatUrl() string { + if o == nil || IsNil(o.FormatUrl) { + var ret string + return ret + } + return *o.FormatUrl +} + +// GetFormatUrlOk returns a tuple with the FormatUrl field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PackageDetail) GetFormatUrlOk() (*string, bool) { + if o == nil || IsNil(o.FormatUrl) { + return nil, false + } + return o.FormatUrl, true +} + +// HasFormatUrl returns a boolean if a field has been set. +func (o *PackageDetail) HasFormatUrl() bool { + if o != nil && !IsNil(o.FormatUrl) { + return true + } + + return false +} + +// SetFormatUrl gets a reference to the given string and assigns it to the FormatUrl field. +func (o *PackageDetail) SetFormatUrl(v string) { + o.FormatUrl = &v +} + +// GetFreeableStorage returns the FreeableStorage field value if set, zero value otherwise. +func (o *PackageDetail) GetFreeableStorage() int64 { + if o == nil || IsNil(o.FreeableStorage) { + var ret int64 + return ret + } + return *o.FreeableStorage +} + +// GetFreeableStorageOk returns a tuple with the FreeableStorage field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PackageDetail) GetFreeableStorageOk() (*int64, bool) { + if o == nil || IsNil(o.FreeableStorage) { + return nil, false + } + return o.FreeableStorage, true +} + +// HasFreeableStorage returns a boolean if a field has been set. +func (o *PackageDetail) HasFreeableStorage() bool { + if o != nil && !IsNil(o.FreeableStorage) { + return true + } + + return false +} + +// SetFreeableStorage gets a reference to the given int64 and assigns it to the FreeableStorage field. +func (o *PackageDetail) SetFreeableStorage(v int64) { + o.FreeableStorage = &v +} + +// GetFullyQualifiedName returns the FullyQualifiedName field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PackageDetail) GetFullyQualifiedName() string { + if o == nil || IsNil(o.FullyQualifiedName.Get()) { + var ret string + return ret + } + return *o.FullyQualifiedName.Get() +} + +// GetFullyQualifiedNameOk returns a tuple with the FullyQualifiedName 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 *PackageDetail) GetFullyQualifiedNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.FullyQualifiedName.Get(), o.FullyQualifiedName.IsSet() +} + +// HasFullyQualifiedName returns a boolean if a field has been set. +func (o *PackageDetail) HasFullyQualifiedName() bool { + if o != nil && o.FullyQualifiedName.IsSet() { + return true + } + + return false +} + +// SetFullyQualifiedName gets a reference to the given NullableString and assigns it to the FullyQualifiedName field. +func (o *PackageDetail) SetFullyQualifiedName(v string) { + o.FullyQualifiedName.Set(&v) +} + +// SetFullyQualifiedNameNil sets the value for FullyQualifiedName to be an explicit nil +func (o *PackageDetail) SetFullyQualifiedNameNil() { + o.FullyQualifiedName.Set(nil) +} + +// UnsetFullyQualifiedName ensures that no value is present for FullyQualifiedName, not even an explicit nil +func (o *PackageDetail) UnsetFullyQualifiedName() { + o.FullyQualifiedName.Unset() +} + +// GetHasDependencies returns the HasDependencies field value if set, zero value otherwise. +func (o *PackageDetail) GetHasDependencies() bool { + if o == nil || IsNil(o.HasDependencies) { + var ret bool + return ret + } + return *o.HasDependencies +} + +// GetHasDependenciesOk returns a tuple with the HasDependencies field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PackageDetail) GetHasDependenciesOk() (*bool, bool) { + if o == nil || IsNil(o.HasDependencies) { + return nil, false + } + return o.HasDependencies, true +} + +// HasHasDependencies returns a boolean if a field has been set. +func (o *PackageDetail) HasHasDependencies() bool { + if o != nil && !IsNil(o.HasDependencies) { + return true + } + + return false +} + +// SetHasDependencies gets a reference to the given bool and assigns it to the HasDependencies field. +func (o *PackageDetail) SetHasDependencies(v bool) { + o.HasDependencies = &v +} + +// GetIdentifierPerm returns the IdentifierPerm field value if set, zero value otherwise. +func (o *PackageDetail) GetIdentifierPerm() string { + if o == nil || IsNil(o.IdentifierPerm) { + var ret string + return ret + } + return *o.IdentifierPerm +} + +// GetIdentifierPermOk returns a tuple with the IdentifierPerm field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PackageDetail) GetIdentifierPermOk() (*string, bool) { + if o == nil || IsNil(o.IdentifierPerm) { + return nil, false + } + return o.IdentifierPerm, true +} + +// HasIdentifierPerm returns a boolean if a field has been set. +func (o *PackageDetail) HasIdentifierPerm() bool { + if o != nil && !IsNil(o.IdentifierPerm) { + return true + } + + return false +} + +// SetIdentifierPerm gets a reference to the given string and assigns it to the IdentifierPerm field. +func (o *PackageDetail) SetIdentifierPerm(v string) { + o.IdentifierPerm = &v +} + +// GetIdentifiers returns the Identifiers field value if set, zero value otherwise. +func (o *PackageDetail) GetIdentifiers() map[string]string { + if o == nil || IsNil(o.Identifiers) { + var ret map[string]string + return ret + } + return *o.Identifiers +} + +// GetIdentifiersOk returns a tuple with the Identifiers field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PackageDetail) GetIdentifiersOk() (*map[string]string, bool) { + if o == nil || IsNil(o.Identifiers) { + return nil, false + } + return o.Identifiers, true +} + +// HasIdentifiers returns a boolean if a field has been set. +func (o *PackageDetail) HasIdentifiers() bool { + if o != nil && !IsNil(o.Identifiers) { + return true + } + + return false +} + +// SetIdentifiers gets a reference to the given map[string]string and assigns it to the Identifiers field. +func (o *PackageDetail) SetIdentifiers(v map[string]string) { + o.Identifiers = &v +} + +// GetIndexed returns the Indexed field value if set, zero value otherwise. +func (o *PackageDetail) GetIndexed() bool { + if o == nil || IsNil(o.Indexed) { + var ret bool + return ret + } + return *o.Indexed +} + +// GetIndexedOk returns a tuple with the Indexed field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PackageDetail) GetIndexedOk() (*bool, bool) { + if o == nil || IsNil(o.Indexed) { + return nil, false + } + return o.Indexed, true +} + +// HasIndexed returns a boolean if a field has been set. +func (o *PackageDetail) HasIndexed() bool { + if o != nil && !IsNil(o.Indexed) { + return true + } + + return false +} + +// SetIndexed gets a reference to the given bool and assigns it to the Indexed field. +func (o *PackageDetail) SetIndexed(v bool) { + o.Indexed = &v +} + +// GetIsCancellable returns the IsCancellable field value if set, zero value otherwise. +func (o *PackageDetail) GetIsCancellable() bool { + if o == nil || IsNil(o.IsCancellable) { + var ret bool + return ret + } + return *o.IsCancellable +} + +// GetIsCancellableOk returns a tuple with the IsCancellable field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PackageDetail) GetIsCancellableOk() (*bool, bool) { + if o == nil || IsNil(o.IsCancellable) { + return nil, false + } + return o.IsCancellable, true +} + +// HasIsCancellable returns a boolean if a field has been set. +func (o *PackageDetail) HasIsCancellable() bool { + if o != nil && !IsNil(o.IsCancellable) { + return true + } + + return false +} + +// SetIsCancellable gets a reference to the given bool and assigns it to the IsCancellable field. +func (o *PackageDetail) SetIsCancellable(v bool) { + o.IsCancellable = &v +} + +// GetIsCopyable returns the IsCopyable field value if set, zero value otherwise. +func (o *PackageDetail) GetIsCopyable() bool { + if o == nil || IsNil(o.IsCopyable) { + var ret bool + return ret + } + return *o.IsCopyable +} + +// GetIsCopyableOk returns a tuple with the IsCopyable field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PackageDetail) GetIsCopyableOk() (*bool, bool) { + if o == nil || IsNil(o.IsCopyable) { + return nil, false + } + return o.IsCopyable, true +} + +// HasIsCopyable returns a boolean if a field has been set. +func (o *PackageDetail) HasIsCopyable() bool { + if o != nil && !IsNil(o.IsCopyable) { + return true + } + + return false +} + +// SetIsCopyable gets a reference to the given bool and assigns it to the IsCopyable field. +func (o *PackageDetail) SetIsCopyable(v bool) { + o.IsCopyable = &v +} + +// GetIsDeleteable returns the IsDeleteable field value if set, zero value otherwise. +func (o *PackageDetail) GetIsDeleteable() bool { + if o == nil || IsNil(o.IsDeleteable) { + var ret bool + return ret + } + return *o.IsDeleteable +} + +// GetIsDeleteableOk returns a tuple with the IsDeleteable field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PackageDetail) GetIsDeleteableOk() (*bool, bool) { + if o == nil || IsNil(o.IsDeleteable) { + return nil, false + } + return o.IsDeleteable, true +} + +// HasIsDeleteable returns a boolean if a field has been set. +func (o *PackageDetail) HasIsDeleteable() bool { + if o != nil && !IsNil(o.IsDeleteable) { + return true + } + + return false +} + +// SetIsDeleteable gets a reference to the given bool and assigns it to the IsDeleteable field. +func (o *PackageDetail) SetIsDeleteable(v bool) { + o.IsDeleteable = &v +} + +// GetIsDownloadable returns the IsDownloadable field value if set, zero value otherwise. +func (o *PackageDetail) GetIsDownloadable() bool { + if o == nil || IsNil(o.IsDownloadable) { + var ret bool + return ret + } + return *o.IsDownloadable +} + +// GetIsDownloadableOk returns a tuple with the IsDownloadable field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PackageDetail) GetIsDownloadableOk() (*bool, bool) { + if o == nil || IsNil(o.IsDownloadable) { + return nil, false + } + return o.IsDownloadable, true +} + +// HasIsDownloadable returns a boolean if a field has been set. +func (o *PackageDetail) HasIsDownloadable() bool { + if o != nil && !IsNil(o.IsDownloadable) { + return true + } + + return false +} + +// SetIsDownloadable gets a reference to the given bool and assigns it to the IsDownloadable field. +func (o *PackageDetail) SetIsDownloadable(v bool) { + o.IsDownloadable = &v +} + +// GetIsHidden returns the IsHidden field value if set, zero value otherwise. +func (o *PackageDetail) GetIsHidden() bool { + if o == nil || IsNil(o.IsHidden) { + var ret bool + return ret + } + return *o.IsHidden +} + +// GetIsHiddenOk returns a tuple with the IsHidden field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PackageDetail) GetIsHiddenOk() (*bool, bool) { + if o == nil || IsNil(o.IsHidden) { + return nil, false + } + return o.IsHidden, true +} + +// HasIsHidden returns a boolean if a field has been set. +func (o *PackageDetail) HasIsHidden() bool { + if o != nil && !IsNil(o.IsHidden) { + return true + } + + return false +} + +// SetIsHidden gets a reference to the given bool and assigns it to the IsHidden field. +func (o *PackageDetail) SetIsHidden(v bool) { + o.IsHidden = &v +} + +// GetIsMalwareDetected returns the IsMalwareDetected field value if set, zero value otherwise. +func (o *PackageDetail) GetIsMalwareDetected() bool { + if o == nil || IsNil(o.IsMalwareDetected) { + var ret bool + return ret + } + return *o.IsMalwareDetected +} + +// GetIsMalwareDetectedOk returns a tuple with the IsMalwareDetected field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PackageDetail) GetIsMalwareDetectedOk() (*bool, bool) { + if o == nil || IsNil(o.IsMalwareDetected) { + return nil, false + } + return o.IsMalwareDetected, true +} + +// HasIsMalwareDetected returns a boolean if a field has been set. +func (o *PackageDetail) HasIsMalwareDetected() bool { + if o != nil && !IsNil(o.IsMalwareDetected) { + return true + } + + return false +} + +// SetIsMalwareDetected gets a reference to the given bool and assigns it to the IsMalwareDetected field. +func (o *PackageDetail) SetIsMalwareDetected(v bool) { + o.IsMalwareDetected = &v +} + +// GetIsMoveable returns the IsMoveable field value if set, zero value otherwise. +func (o *PackageDetail) GetIsMoveable() bool { + if o == nil || IsNil(o.IsMoveable) { + var ret bool + return ret + } + return *o.IsMoveable +} + +// GetIsMoveableOk returns a tuple with the IsMoveable field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PackageDetail) GetIsMoveableOk() (*bool, bool) { + if o == nil || IsNil(o.IsMoveable) { + return nil, false + } + return o.IsMoveable, true +} + +// HasIsMoveable returns a boolean if a field has been set. +func (o *PackageDetail) HasIsMoveable() bool { + if o != nil && !IsNil(o.IsMoveable) { + return true + } + + return false +} + +// SetIsMoveable gets a reference to the given bool and assigns it to the IsMoveable field. +func (o *PackageDetail) SetIsMoveable(v bool) { + o.IsMoveable = &v +} + +// GetIsQuarantinable returns the IsQuarantinable field value if set, zero value otherwise. +func (o *PackageDetail) GetIsQuarantinable() bool { + if o == nil || IsNil(o.IsQuarantinable) { + var ret bool + return ret + } + return *o.IsQuarantinable +} + +// GetIsQuarantinableOk returns a tuple with the IsQuarantinable field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PackageDetail) GetIsQuarantinableOk() (*bool, bool) { + if o == nil || IsNil(o.IsQuarantinable) { + return nil, false + } + return o.IsQuarantinable, true +} + +// HasIsQuarantinable returns a boolean if a field has been set. +func (o *PackageDetail) HasIsQuarantinable() bool { + if o != nil && !IsNil(o.IsQuarantinable) { + return true + } + + return false +} + +// SetIsQuarantinable gets a reference to the given bool and assigns it to the IsQuarantinable field. +func (o *PackageDetail) SetIsQuarantinable(v bool) { + o.IsQuarantinable = &v +} + +// GetIsQuarantined returns the IsQuarantined field value if set, zero value otherwise. +func (o *PackageDetail) GetIsQuarantined() bool { + if o == nil || IsNil(o.IsQuarantined) { + var ret bool + return ret + } + return *o.IsQuarantined +} + +// GetIsQuarantinedOk returns a tuple with the IsQuarantined field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PackageDetail) GetIsQuarantinedOk() (*bool, bool) { + if o == nil || IsNil(o.IsQuarantined) { + return nil, false + } + return o.IsQuarantined, true +} + +// HasIsQuarantined returns a boolean if a field has been set. +func (o *PackageDetail) HasIsQuarantined() bool { + if o != nil && !IsNil(o.IsQuarantined) { + return true + } + + return false +} + +// SetIsQuarantined gets a reference to the given bool and assigns it to the IsQuarantined field. +func (o *PackageDetail) SetIsQuarantined(v bool) { + o.IsQuarantined = &v +} + +// GetIsResyncable returns the IsResyncable field value if set, zero value otherwise. +func (o *PackageDetail) GetIsResyncable() bool { + if o == nil || IsNil(o.IsResyncable) { + var ret bool + return ret + } + return *o.IsResyncable +} + +// GetIsResyncableOk returns a tuple with the IsResyncable field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PackageDetail) GetIsResyncableOk() (*bool, bool) { + if o == nil || IsNil(o.IsResyncable) { + return nil, false + } + return o.IsResyncable, true +} + +// HasIsResyncable returns a boolean if a field has been set. +func (o *PackageDetail) HasIsResyncable() bool { + if o != nil && !IsNil(o.IsResyncable) { + return true + } + + return false +} + +// SetIsResyncable gets a reference to the given bool and assigns it to the IsResyncable field. +func (o *PackageDetail) SetIsResyncable(v bool) { + o.IsResyncable = &v +} + +// GetIsSecurityScannable returns the IsSecurityScannable field value if set, zero value otherwise. +func (o *PackageDetail) GetIsSecurityScannable() bool { + if o == nil || IsNil(o.IsSecurityScannable) { + var ret bool + return ret + } + return *o.IsSecurityScannable +} + +// GetIsSecurityScannableOk returns a tuple with the IsSecurityScannable field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PackageDetail) GetIsSecurityScannableOk() (*bool, bool) { + if o == nil || IsNil(o.IsSecurityScannable) { + return nil, false + } + return o.IsSecurityScannable, true +} + +// HasIsSecurityScannable returns a boolean if a field has been set. +func (o *PackageDetail) HasIsSecurityScannable() bool { + if o != nil && !IsNil(o.IsSecurityScannable) { + return true + } + + return false +} + +// SetIsSecurityScannable gets a reference to the given bool and assigns it to the IsSecurityScannable field. +func (o *PackageDetail) SetIsSecurityScannable(v bool) { + o.IsSecurityScannable = &v +} + +// GetIsSyncAwaiting returns the IsSyncAwaiting field value if set, zero value otherwise. +func (o *PackageDetail) GetIsSyncAwaiting() bool { + if o == nil || IsNil(o.IsSyncAwaiting) { + var ret bool + return ret + } + return *o.IsSyncAwaiting +} + +// GetIsSyncAwaitingOk returns a tuple with the IsSyncAwaiting field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PackageDetail) GetIsSyncAwaitingOk() (*bool, bool) { + if o == nil || IsNil(o.IsSyncAwaiting) { + return nil, false + } + return o.IsSyncAwaiting, true +} + +// HasIsSyncAwaiting returns a boolean if a field has been set. +func (o *PackageDetail) HasIsSyncAwaiting() bool { + if o != nil && !IsNil(o.IsSyncAwaiting) { + return true + } + + return false +} + +// SetIsSyncAwaiting gets a reference to the given bool and assigns it to the IsSyncAwaiting field. +func (o *PackageDetail) SetIsSyncAwaiting(v bool) { + o.IsSyncAwaiting = &v +} + +// GetIsSyncCompleted returns the IsSyncCompleted field value if set, zero value otherwise. +func (o *PackageDetail) GetIsSyncCompleted() bool { + if o == nil || IsNil(o.IsSyncCompleted) { + var ret bool + return ret + } + return *o.IsSyncCompleted +} + +// GetIsSyncCompletedOk returns a tuple with the IsSyncCompleted field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PackageDetail) GetIsSyncCompletedOk() (*bool, bool) { + if o == nil || IsNil(o.IsSyncCompleted) { + return nil, false + } + return o.IsSyncCompleted, true +} + +// HasIsSyncCompleted returns a boolean if a field has been set. +func (o *PackageDetail) HasIsSyncCompleted() bool { + if o != nil && !IsNil(o.IsSyncCompleted) { + return true + } + + return false +} + +// SetIsSyncCompleted gets a reference to the given bool and assigns it to the IsSyncCompleted field. +func (o *PackageDetail) SetIsSyncCompleted(v bool) { + o.IsSyncCompleted = &v +} + +// GetIsSyncFailed returns the IsSyncFailed field value if set, zero value otherwise. +func (o *PackageDetail) GetIsSyncFailed() bool { + if o == nil || IsNil(o.IsSyncFailed) { + var ret bool + return ret + } + return *o.IsSyncFailed +} + +// GetIsSyncFailedOk returns a tuple with the IsSyncFailed field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PackageDetail) GetIsSyncFailedOk() (*bool, bool) { + if o == nil || IsNil(o.IsSyncFailed) { + return nil, false + } + return o.IsSyncFailed, true +} + +// HasIsSyncFailed returns a boolean if a field has been set. +func (o *PackageDetail) HasIsSyncFailed() bool { + if o != nil && !IsNil(o.IsSyncFailed) { + return true + } + + return false +} + +// SetIsSyncFailed gets a reference to the given bool and assigns it to the IsSyncFailed field. +func (o *PackageDetail) SetIsSyncFailed(v bool) { + o.IsSyncFailed = &v +} + +// GetIsSyncInFlight returns the IsSyncInFlight field value if set, zero value otherwise. +func (o *PackageDetail) GetIsSyncInFlight() bool { + if o == nil || IsNil(o.IsSyncInFlight) { + var ret bool + return ret + } + return *o.IsSyncInFlight +} + +// GetIsSyncInFlightOk returns a tuple with the IsSyncInFlight field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PackageDetail) GetIsSyncInFlightOk() (*bool, bool) { + if o == nil || IsNil(o.IsSyncInFlight) { + return nil, false + } + return o.IsSyncInFlight, true +} + +// HasIsSyncInFlight returns a boolean if a field has been set. +func (o *PackageDetail) HasIsSyncInFlight() bool { + if o != nil && !IsNil(o.IsSyncInFlight) { + return true + } + + return false +} + +// SetIsSyncInFlight gets a reference to the given bool and assigns it to the IsSyncInFlight field. +func (o *PackageDetail) SetIsSyncInFlight(v bool) { + o.IsSyncInFlight = &v +} + +// GetIsSyncInProgress returns the IsSyncInProgress field value if set, zero value otherwise. +func (o *PackageDetail) GetIsSyncInProgress() bool { + if o == nil || IsNil(o.IsSyncInProgress) { + var ret bool + return ret + } + return *o.IsSyncInProgress +} + +// GetIsSyncInProgressOk returns a tuple with the IsSyncInProgress field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PackageDetail) GetIsSyncInProgressOk() (*bool, bool) { + if o == nil || IsNil(o.IsSyncInProgress) { + return nil, false + } + return o.IsSyncInProgress, true +} + +// HasIsSyncInProgress returns a boolean if a field has been set. +func (o *PackageDetail) HasIsSyncInProgress() bool { + if o != nil && !IsNil(o.IsSyncInProgress) { + return true + } + + return false +} + +// SetIsSyncInProgress gets a reference to the given bool and assigns it to the IsSyncInProgress field. +func (o *PackageDetail) SetIsSyncInProgress(v bool) { + o.IsSyncInProgress = &v +} + +// GetLicense returns the License field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PackageDetail) GetLicense() string { + if o == nil || IsNil(o.License.Get()) { + var ret string + return ret + } + return *o.License.Get() +} + +// GetLicenseOk returns a tuple with the License 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 *PackageDetail) GetLicenseOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.License.Get(), o.License.IsSet() +} + +// HasLicense returns a boolean if a field has been set. +func (o *PackageDetail) HasLicense() bool { + if o != nil && o.License.IsSet() { + return true + } + + return false +} + +// SetLicense gets a reference to the given NullableString and assigns it to the License field. +func (o *PackageDetail) SetLicense(v string) { + o.License.Set(&v) +} + +// SetLicenseNil sets the value for License to be an explicit nil +func (o *PackageDetail) SetLicenseNil() { + o.License.Set(nil) +} + +// UnsetLicense ensures that no value is present for License, not even an explicit nil +func (o *PackageDetail) UnsetLicense() { + o.License.Unset() +} + +// GetName returns the Name field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PackageDetail) GetName() string { + if o == nil || IsNil(o.Name.Get()) { + var ret string + return ret + } + return *o.Name.Get() +} + +// GetNameOk returns a tuple with the Name 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 *PackageDetail) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Name.Get(), o.Name.IsSet() +} + +// HasName returns a boolean if a field has been set. +func (o *PackageDetail) 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. +func (o *PackageDetail) SetName(v string) { + o.Name.Set(&v) +} + +// SetNameNil sets the value for Name to be an explicit nil +func (o *PackageDetail) SetNameNil() { + o.Name.Set(nil) +} + +// UnsetName ensures that no value is present for Name, not even an explicit nil +func (o *PackageDetail) UnsetName() { + o.Name.Unset() +} + +// GetNamespace returns the Namespace field value if set, zero value otherwise. +func (o *PackageDetail) GetNamespace() string { + if o == nil || IsNil(o.Namespace) { + var ret string + return ret + } + return *o.Namespace +} + +// GetNamespaceOk returns a tuple with the Namespace field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PackageDetail) GetNamespaceOk() (*string, bool) { + if o == nil || IsNil(o.Namespace) { + return nil, false + } + return o.Namespace, true +} + +// HasNamespace returns a boolean if a field has been set. +func (o *PackageDetail) HasNamespace() bool { + if o != nil && !IsNil(o.Namespace) { + return true + } + + return false +} + +// SetNamespace gets a reference to the given string and assigns it to the Namespace field. +func (o *PackageDetail) SetNamespace(v string) { + o.Namespace = &v +} + +// GetNamespaceUrl returns the NamespaceUrl field value if set, zero value otherwise. +func (o *PackageDetail) GetNamespaceUrl() string { + if o == nil || IsNil(o.NamespaceUrl) { + var ret string + return ret + } + return *o.NamespaceUrl +} + +// GetNamespaceUrlOk returns a tuple with the NamespaceUrl field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PackageDetail) GetNamespaceUrlOk() (*string, bool) { + if o == nil || IsNil(o.NamespaceUrl) { + return nil, false + } + return o.NamespaceUrl, true +} + +// HasNamespaceUrl returns a boolean if a field has been set. +func (o *PackageDetail) HasNamespaceUrl() bool { + if o != nil && !IsNil(o.NamespaceUrl) { + return true + } + + return false +} + +// SetNamespaceUrl gets a reference to the given string and assigns it to the NamespaceUrl field. +func (o *PackageDetail) SetNamespaceUrl(v string) { + o.NamespaceUrl = &v +} + +// GetNumFiles returns the NumFiles field value if set, zero value otherwise. +func (o *PackageDetail) GetNumFiles() int64 { + if o == nil || IsNil(o.NumFiles) { + var ret int64 + return ret + } + return *o.NumFiles +} + +// GetNumFilesOk returns a tuple with the NumFiles field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PackageDetail) GetNumFilesOk() (*int64, bool) { + if o == nil || IsNil(o.NumFiles) { + return nil, false + } + return o.NumFiles, true +} + +// HasNumFiles returns a boolean if a field has been set. +func (o *PackageDetail) HasNumFiles() bool { + if o != nil && !IsNil(o.NumFiles) { + return true + } + + return false +} + +// SetNumFiles gets a reference to the given int64 and assigns it to the NumFiles field. +func (o *PackageDetail) SetNumFiles(v int64) { + o.NumFiles = &v +} + +// GetOriginRepository returns the OriginRepository field value if set, zero value otherwise. +func (o *PackageDetail) GetOriginRepository() string { + if o == nil || IsNil(o.OriginRepository) { + var ret string + return ret + } + return *o.OriginRepository +} + +// GetOriginRepositoryOk returns a tuple with the OriginRepository field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PackageDetail) GetOriginRepositoryOk() (*string, bool) { + if o == nil || IsNil(o.OriginRepository) { + return nil, false + } + return o.OriginRepository, true +} + +// HasOriginRepository returns a boolean if a field has been set. +func (o *PackageDetail) HasOriginRepository() bool { + if o != nil && !IsNil(o.OriginRepository) { + return true + } + + return false +} + +// SetOriginRepository gets a reference to the given string and assigns it to the OriginRepository field. +func (o *PackageDetail) SetOriginRepository(v string) { + o.OriginRepository = &v +} + +// GetOriginRepositoryUrl returns the OriginRepositoryUrl field value if set, zero value otherwise. +func (o *PackageDetail) GetOriginRepositoryUrl() string { + if o == nil || IsNil(o.OriginRepositoryUrl) { + var ret string + return ret + } + return *o.OriginRepositoryUrl +} + +// GetOriginRepositoryUrlOk returns a tuple with the OriginRepositoryUrl field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PackageDetail) GetOriginRepositoryUrlOk() (*string, bool) { + if o == nil || IsNil(o.OriginRepositoryUrl) { + return nil, false + } + return o.OriginRepositoryUrl, true +} + +// HasOriginRepositoryUrl returns a boolean if a field has been set. +func (o *PackageDetail) HasOriginRepositoryUrl() bool { + if o != nil && !IsNil(o.OriginRepositoryUrl) { + return true + } + + return false +} + +// SetOriginRepositoryUrl gets a reference to the given string and assigns it to the OriginRepositoryUrl field. +func (o *PackageDetail) SetOriginRepositoryUrl(v string) { + o.OriginRepositoryUrl = &v +} + +// GetOsiApproved returns the OsiApproved field value if set, zero value otherwise. +func (o *PackageDetail) GetOsiApproved() bool { + if o == nil || IsNil(o.OsiApproved) { + var ret bool + return ret + } + return *o.OsiApproved +} + +// GetOsiApprovedOk returns a tuple with the OsiApproved field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PackageDetail) GetOsiApprovedOk() (*bool, bool) { + if o == nil || IsNil(o.OsiApproved) { + return nil, false + } + return o.OsiApproved, true +} + +// HasOsiApproved returns a boolean if a field has been set. +func (o *PackageDetail) HasOsiApproved() bool { + if o != nil && !IsNil(o.OsiApproved) { + return true + } + + return false +} + +// SetOsiApproved gets a reference to the given bool and assigns it to the OsiApproved field. +func (o *PackageDetail) SetOsiApproved(v bool) { + o.OsiApproved = &v +} + +// GetPackageType returns the PackageType field value if set, zero value otherwise. +func (o *PackageDetail) GetPackageType() int64 { + if o == nil || IsNil(o.PackageType) { + var ret int64 + return ret + } + return *o.PackageType +} + +// GetPackageTypeOk returns a tuple with the PackageType field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PackageDetail) GetPackageTypeOk() (*int64, bool) { + if o == nil || IsNil(o.PackageType) { + return nil, false + } + return o.PackageType, true +} + +// HasPackageType returns a boolean if a field has been set. +func (o *PackageDetail) HasPackageType() bool { + if o != nil && !IsNil(o.PackageType) { + return true + } + + return false +} + +// SetPackageType gets a reference to the given int64 and assigns it to the PackageType field. +func (o *PackageDetail) SetPackageType(v int64) { + o.PackageType = &v +} + +// GetPolicyViolated returns the PolicyViolated field value if set, zero value otherwise. +func (o *PackageDetail) GetPolicyViolated() bool { + if o == nil || IsNil(o.PolicyViolated) { + var ret bool + return ret + } + return *o.PolicyViolated +} + +// GetPolicyViolatedOk returns a tuple with the PolicyViolated field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PackageDetail) GetPolicyViolatedOk() (*bool, bool) { + if o == nil || IsNil(o.PolicyViolated) { + return nil, false + } + return o.PolicyViolated, true +} + +// HasPolicyViolated returns a boolean if a field has been set. +func (o *PackageDetail) HasPolicyViolated() bool { + if o != nil && !IsNil(o.PolicyViolated) { + return true + } + + return false +} + +// SetPolicyViolated gets a reference to the given bool and assigns it to the PolicyViolated field. +func (o *PackageDetail) SetPolicyViolated(v bool) { + o.PolicyViolated = &v +} + +// GetRawLicense returns the RawLicense field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PackageDetail) GetRawLicense() string { + if o == nil || IsNil(o.RawLicense.Get()) { + var ret string + return ret + } + return *o.RawLicense.Get() +} + +// GetRawLicenseOk returns a tuple with the RawLicense 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 *PackageDetail) GetRawLicenseOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.RawLicense.Get(), o.RawLicense.IsSet() +} + +// HasRawLicense returns a boolean if a field has been set. +func (o *PackageDetail) HasRawLicense() bool { + if o != nil && o.RawLicense.IsSet() { + return true + } + + return false +} + +// SetRawLicense gets a reference to the given NullableString and assigns it to the RawLicense field. +func (o *PackageDetail) SetRawLicense(v string) { + o.RawLicense.Set(&v) +} + +// SetRawLicenseNil sets the value for RawLicense to be an explicit nil +func (o *PackageDetail) SetRawLicenseNil() { + o.RawLicense.Set(nil) +} + +// UnsetRawLicense ensures that no value is present for RawLicense, not even an explicit nil +func (o *PackageDetail) UnsetRawLicense() { + o.RawLicense.Unset() +} + +// GetRelease returns the Release field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PackageDetail) GetRelease() string { + if o == nil || IsNil(o.Release.Get()) { + var ret string + return ret + } + return *o.Release.Get() +} + +// GetReleaseOk returns a tuple with the Release 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 *PackageDetail) GetReleaseOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Release.Get(), o.Release.IsSet() +} + +// HasRelease returns a boolean if a field has been set. +func (o *PackageDetail) HasRelease() bool { + if o != nil && o.Release.IsSet() { + return true + } + + return false +} + +// SetRelease gets a reference to the given NullableString and assigns it to the Release field. +func (o *PackageDetail) SetRelease(v string) { + o.Release.Set(&v) +} + +// SetReleaseNil sets the value for Release to be an explicit nil +func (o *PackageDetail) SetReleaseNil() { + o.Release.Set(nil) +} + +// UnsetRelease ensures that no value is present for Release, not even an explicit nil +func (o *PackageDetail) UnsetRelease() { + o.Release.Unset() +} + +// GetRepository returns the Repository field value if set, zero value otherwise. +func (o *PackageDetail) GetRepository() string { + if o == nil || IsNil(o.Repository) { + var ret string + return ret + } + return *o.Repository +} + +// GetRepositoryOk returns a tuple with the Repository field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PackageDetail) GetRepositoryOk() (*string, bool) { + if o == nil || IsNil(o.Repository) { + return nil, false + } + return o.Repository, true +} + +// HasRepository returns a boolean if a field has been set. +func (o *PackageDetail) HasRepository() bool { + if o != nil && !IsNil(o.Repository) { + return true + } + + return false +} + +// SetRepository gets a reference to the given string and assigns it to the Repository field. +func (o *PackageDetail) SetRepository(v string) { + o.Repository = &v +} + +// GetRepositoryUrl returns the RepositoryUrl field value if set, zero value otherwise. +func (o *PackageDetail) GetRepositoryUrl() string { + if o == nil || IsNil(o.RepositoryUrl) { + var ret string + return ret + } + return *o.RepositoryUrl +} + +// GetRepositoryUrlOk returns a tuple with the RepositoryUrl field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PackageDetail) GetRepositoryUrlOk() (*string, bool) { + if o == nil || IsNil(o.RepositoryUrl) { + return nil, false + } + return o.RepositoryUrl, true +} + +// HasRepositoryUrl returns a boolean if a field has been set. +func (o *PackageDetail) HasRepositoryUrl() bool { + if o != nil && !IsNil(o.RepositoryUrl) { + return true + } + + return false +} + +// SetRepositoryUrl gets a reference to the given string and assigns it to the RepositoryUrl field. +func (o *PackageDetail) SetRepositoryUrl(v string) { + o.RepositoryUrl = &v +} + +// GetSecurityScanCompletedAt returns the SecurityScanCompletedAt field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PackageDetail) GetSecurityScanCompletedAt() time.Time { + if o == nil || IsNil(o.SecurityScanCompletedAt.Get()) { + var ret time.Time + return ret + } + return *o.SecurityScanCompletedAt.Get() +} + +// GetSecurityScanCompletedAtOk returns a tuple with the SecurityScanCompletedAt 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 *PackageDetail) GetSecurityScanCompletedAtOk() (*time.Time, bool) { + if o == nil { + return nil, false + } + return o.SecurityScanCompletedAt.Get(), o.SecurityScanCompletedAt.IsSet() +} + +// HasSecurityScanCompletedAt returns a boolean if a field has been set. +func (o *PackageDetail) HasSecurityScanCompletedAt() bool { + if o != nil && o.SecurityScanCompletedAt.IsSet() { + return true + } + + return false +} + +// SetSecurityScanCompletedAt gets a reference to the given NullableTime and assigns it to the SecurityScanCompletedAt field. +func (o *PackageDetail) SetSecurityScanCompletedAt(v time.Time) { + o.SecurityScanCompletedAt.Set(&v) +} + +// SetSecurityScanCompletedAtNil sets the value for SecurityScanCompletedAt to be an explicit nil +func (o *PackageDetail) SetSecurityScanCompletedAtNil() { + o.SecurityScanCompletedAt.Set(nil) +} + +// UnsetSecurityScanCompletedAt ensures that no value is present for SecurityScanCompletedAt, not even an explicit nil +func (o *PackageDetail) UnsetSecurityScanCompletedAt() { + o.SecurityScanCompletedAt.Unset() +} + +// GetSecurityScanStartedAt returns the SecurityScanStartedAt field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PackageDetail) GetSecurityScanStartedAt() time.Time { + if o == nil || IsNil(o.SecurityScanStartedAt.Get()) { + var ret time.Time + return ret + } + return *o.SecurityScanStartedAt.Get() +} + +// GetSecurityScanStartedAtOk returns a tuple with the SecurityScanStartedAt 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 *PackageDetail) GetSecurityScanStartedAtOk() (*time.Time, bool) { + if o == nil { + return nil, false + } + return o.SecurityScanStartedAt.Get(), o.SecurityScanStartedAt.IsSet() +} + +// HasSecurityScanStartedAt returns a boolean if a field has been set. +func (o *PackageDetail) HasSecurityScanStartedAt() bool { + if o != nil && o.SecurityScanStartedAt.IsSet() { + return true + } + + return false +} + +// SetSecurityScanStartedAt gets a reference to the given NullableTime and assigns it to the SecurityScanStartedAt field. +func (o *PackageDetail) SetSecurityScanStartedAt(v time.Time) { + o.SecurityScanStartedAt.Set(&v) +} + +// SetSecurityScanStartedAtNil sets the value for SecurityScanStartedAt to be an explicit nil +func (o *PackageDetail) SetSecurityScanStartedAtNil() { + o.SecurityScanStartedAt.Set(nil) +} + +// UnsetSecurityScanStartedAt ensures that no value is present for SecurityScanStartedAt, not even an explicit nil +func (o *PackageDetail) UnsetSecurityScanStartedAt() { + o.SecurityScanStartedAt.Unset() +} + +// GetSecurityScanStatus returns the SecurityScanStatus field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PackageDetail) GetSecurityScanStatus() string { + if o == nil || IsNil(o.SecurityScanStatus.Get()) { + var ret string + return ret + } + return *o.SecurityScanStatus.Get() +} + +// GetSecurityScanStatusOk returns a tuple with the SecurityScanStatus 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 *PackageDetail) GetSecurityScanStatusOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.SecurityScanStatus.Get(), o.SecurityScanStatus.IsSet() +} + +// HasSecurityScanStatus returns a boolean if a field has been set. +func (o *PackageDetail) HasSecurityScanStatus() bool { + if o != nil && o.SecurityScanStatus.IsSet() { + return true + } + + return false +} + +// SetSecurityScanStatus gets a reference to the given NullableString and assigns it to the SecurityScanStatus field. +func (o *PackageDetail) SetSecurityScanStatus(v string) { + o.SecurityScanStatus.Set(&v) +} + +// SetSecurityScanStatusNil sets the value for SecurityScanStatus to be an explicit nil +func (o *PackageDetail) SetSecurityScanStatusNil() { + o.SecurityScanStatus.Set(nil) +} + +// UnsetSecurityScanStatus ensures that no value is present for SecurityScanStatus, not even an explicit nil +func (o *PackageDetail) UnsetSecurityScanStatus() { + o.SecurityScanStatus.Unset() +} + +// GetSecurityScanStatusUpdatedAt returns the SecurityScanStatusUpdatedAt field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PackageDetail) GetSecurityScanStatusUpdatedAt() time.Time { + if o == nil || IsNil(o.SecurityScanStatusUpdatedAt.Get()) { + var ret time.Time + return ret + } + return *o.SecurityScanStatusUpdatedAt.Get() +} + +// GetSecurityScanStatusUpdatedAtOk returns a tuple with the SecurityScanStatusUpdatedAt 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 *PackageDetail) GetSecurityScanStatusUpdatedAtOk() (*time.Time, bool) { + if o == nil { + return nil, false + } + return o.SecurityScanStatusUpdatedAt.Get(), o.SecurityScanStatusUpdatedAt.IsSet() +} + +// HasSecurityScanStatusUpdatedAt returns a boolean if a field has been set. +func (o *PackageDetail) HasSecurityScanStatusUpdatedAt() bool { + if o != nil && o.SecurityScanStatusUpdatedAt.IsSet() { + return true + } + + return false +} + +// SetSecurityScanStatusUpdatedAt gets a reference to the given NullableTime and assigns it to the SecurityScanStatusUpdatedAt field. +func (o *PackageDetail) SetSecurityScanStatusUpdatedAt(v time.Time) { + o.SecurityScanStatusUpdatedAt.Set(&v) +} + +// SetSecurityScanStatusUpdatedAtNil sets the value for SecurityScanStatusUpdatedAt to be an explicit nil +func (o *PackageDetail) SetSecurityScanStatusUpdatedAtNil() { + o.SecurityScanStatusUpdatedAt.Set(nil) +} + +// UnsetSecurityScanStatusUpdatedAt ensures that no value is present for SecurityScanStatusUpdatedAt, not even an explicit nil +func (o *PackageDetail) UnsetSecurityScanStatusUpdatedAt() { + o.SecurityScanStatusUpdatedAt.Unset() +} + +// GetSelfHtmlUrl returns the SelfHtmlUrl field value if set, zero value otherwise. +func (o *PackageDetail) GetSelfHtmlUrl() string { + if o == nil || IsNil(o.SelfHtmlUrl) { + var ret string + return ret + } + return *o.SelfHtmlUrl +} + +// GetSelfHtmlUrlOk returns a tuple with the SelfHtmlUrl field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PackageDetail) GetSelfHtmlUrlOk() (*string, bool) { + if o == nil || IsNil(o.SelfHtmlUrl) { + return nil, false + } + return o.SelfHtmlUrl, true +} + +// HasSelfHtmlUrl returns a boolean if a field has been set. +func (o *PackageDetail) HasSelfHtmlUrl() bool { + if o != nil && !IsNil(o.SelfHtmlUrl) { + return true + } + + return false +} + +// SetSelfHtmlUrl gets a reference to the given string and assigns it to the SelfHtmlUrl field. +func (o *PackageDetail) SetSelfHtmlUrl(v string) { + o.SelfHtmlUrl = &v +} + +// GetSelfUrl returns the SelfUrl field value if set, zero value otherwise. +func (o *PackageDetail) GetSelfUrl() string { + if o == nil || IsNil(o.SelfUrl) { + var ret string + return ret + } + return *o.SelfUrl +} + +// GetSelfUrlOk returns a tuple with the SelfUrl field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PackageDetail) GetSelfUrlOk() (*string, bool) { + if o == nil || IsNil(o.SelfUrl) { + return nil, false + } + return o.SelfUrl, true +} + +// HasSelfUrl returns a boolean if a field has been set. +func (o *PackageDetail) HasSelfUrl() bool { + if o != nil && !IsNil(o.SelfUrl) { + return true + } + + return false +} + +// SetSelfUrl gets a reference to the given string and assigns it to the SelfUrl field. +func (o *PackageDetail) SetSelfUrl(v string) { + o.SelfUrl = &v +} + +// GetSelfWebappUrl returns the SelfWebappUrl field value if set, zero value otherwise. +func (o *PackageDetail) GetSelfWebappUrl() string { + if o == nil || IsNil(o.SelfWebappUrl) { + var ret string + return ret + } + return *o.SelfWebappUrl +} + +// GetSelfWebappUrlOk returns a tuple with the SelfWebappUrl field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PackageDetail) GetSelfWebappUrlOk() (*string, bool) { + if o == nil || IsNil(o.SelfWebappUrl) { + return nil, false + } + return o.SelfWebappUrl, true +} + +// HasSelfWebappUrl returns a boolean if a field has been set. +func (o *PackageDetail) HasSelfWebappUrl() bool { + if o != nil && !IsNil(o.SelfWebappUrl) { + return true + } + + return false +} + +// SetSelfWebappUrl gets a reference to the given string and assigns it to the SelfWebappUrl field. +func (o *PackageDetail) SetSelfWebappUrl(v string) { + o.SelfWebappUrl = &v +} + +// GetSignatureUrl returns the SignatureUrl field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PackageDetail) GetSignatureUrl() string { + if o == nil || IsNil(o.SignatureUrl.Get()) { + var ret string + return ret + } + return *o.SignatureUrl.Get() +} + +// GetSignatureUrlOk returns a tuple with the SignatureUrl 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 *PackageDetail) GetSignatureUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.SignatureUrl.Get(), o.SignatureUrl.IsSet() +} + +// HasSignatureUrl returns a boolean if a field has been set. +func (o *PackageDetail) HasSignatureUrl() bool { + if o != nil && o.SignatureUrl.IsSet() { + return true + } + + return false +} + +// SetSignatureUrl gets a reference to the given NullableString and assigns it to the SignatureUrl field. +func (o *PackageDetail) SetSignatureUrl(v string) { + o.SignatureUrl.Set(&v) +} + +// SetSignatureUrlNil sets the value for SignatureUrl to be an explicit nil +func (o *PackageDetail) SetSignatureUrlNil() { + o.SignatureUrl.Set(nil) +} + +// UnsetSignatureUrl ensures that no value is present for SignatureUrl, not even an explicit nil +func (o *PackageDetail) UnsetSignatureUrl() { + o.SignatureUrl.Unset() +} + +// GetSize returns the Size field value if set, zero value otherwise. +func (o *PackageDetail) GetSize() int64 { + if o == nil || IsNil(o.Size) { + var ret int64 + return ret + } + return *o.Size +} + +// GetSizeOk returns a tuple with the Size field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PackageDetail) GetSizeOk() (*int64, bool) { + if o == nil || IsNil(o.Size) { + return nil, false + } + return o.Size, true +} + +// HasSize returns a boolean if a field has been set. +func (o *PackageDetail) HasSize() bool { + if o != nil && !IsNil(o.Size) { + return true + } + + return false +} + +// SetSize gets a reference to the given int64 and assigns it to the Size field. +func (o *PackageDetail) SetSize(v int64) { + o.Size = &v +} + +// GetSlug returns the Slug field value if set, zero value otherwise. +func (o *PackageDetail) GetSlug() string { + if o == nil || IsNil(o.Slug) { + var ret string + return ret + } + return *o.Slug +} + +// GetSlugOk returns a tuple with the Slug field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PackageDetail) GetSlugOk() (*string, bool) { + if o == nil || IsNil(o.Slug) { + return nil, false + } + return o.Slug, true +} + +// HasSlug returns a boolean if a field has been set. +func (o *PackageDetail) HasSlug() bool { + if o != nil && !IsNil(o.Slug) { + return true + } + + return false +} + +// SetSlug gets a reference to the given string and assigns it to the Slug field. +func (o *PackageDetail) SetSlug(v string) { + o.Slug = &v +} + +// GetSlugPerm returns the SlugPerm field value if set, zero value otherwise. +func (o *PackageDetail) GetSlugPerm() string { + if o == nil || IsNil(o.SlugPerm) { + var ret string + return ret + } + return *o.SlugPerm +} + +// GetSlugPermOk returns a tuple with the SlugPerm field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PackageDetail) GetSlugPermOk() (*string, bool) { + if o == nil || IsNil(o.SlugPerm) { + return nil, false + } + return o.SlugPerm, true +} + +// HasSlugPerm returns a boolean if a field has been set. +func (o *PackageDetail) HasSlugPerm() bool { + if o != nil && !IsNil(o.SlugPerm) { + return true + } + + return false +} + +// SetSlugPerm gets a reference to the given string and assigns it to the SlugPerm field. +func (o *PackageDetail) SetSlugPerm(v string) { + o.SlugPerm = &v +} + +// GetSpdxLicense returns the SpdxLicense field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PackageDetail) GetSpdxLicense() string { + if o == nil || IsNil(o.SpdxLicense.Get()) { + var ret string + return ret + } + return *o.SpdxLicense.Get() +} + +// GetSpdxLicenseOk returns a tuple with the SpdxLicense 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 *PackageDetail) GetSpdxLicenseOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.SpdxLicense.Get(), o.SpdxLicense.IsSet() +} + +// HasSpdxLicense returns a boolean if a field has been set. +func (o *PackageDetail) HasSpdxLicense() bool { + if o != nil && o.SpdxLicense.IsSet() { + return true + } + + return false +} + +// SetSpdxLicense gets a reference to the given NullableString and assigns it to the SpdxLicense field. +func (o *PackageDetail) SetSpdxLicense(v string) { + o.SpdxLicense.Set(&v) +} + +// SetSpdxLicenseNil sets the value for SpdxLicense to be an explicit nil +func (o *PackageDetail) SetSpdxLicenseNil() { + o.SpdxLicense.Set(nil) +} + +// UnsetSpdxLicense ensures that no value is present for SpdxLicense, not even an explicit nil +func (o *PackageDetail) UnsetSpdxLicense() { + o.SpdxLicense.Unset() +} + +// GetStage returns the Stage field value if set, zero value otherwise. +func (o *PackageDetail) GetStage() int64 { + if o == nil || IsNil(o.Stage) { + var ret int64 + return ret + } + return *o.Stage +} + +// GetStageOk returns a tuple with the Stage field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PackageDetail) GetStageOk() (*int64, bool) { + if o == nil || IsNil(o.Stage) { + return nil, false + } + return o.Stage, true +} + +// HasStage returns a boolean if a field has been set. +func (o *PackageDetail) HasStage() bool { + if o != nil && !IsNil(o.Stage) { + return true + } + + return false +} + +// SetStage gets a reference to the given int64 and assigns it to the Stage field. +func (o *PackageDetail) SetStage(v int64) { + o.Stage = &v +} + +// GetStageStr returns the StageStr field value if set, zero value otherwise. +func (o *PackageDetail) GetStageStr() string { + if o == nil || IsNil(o.StageStr) { + var ret string + return ret + } + return *o.StageStr +} + +// GetStageStrOk returns a tuple with the StageStr field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PackageDetail) GetStageStrOk() (*string, bool) { + if o == nil || IsNil(o.StageStr) { + return nil, false + } + return o.StageStr, true +} + +// HasStageStr returns a boolean if a field has been set. +func (o *PackageDetail) HasStageStr() bool { + if o != nil && !IsNil(o.StageStr) { + return true + } + + return false +} + +// SetStageStr gets a reference to the given string and assigns it to the StageStr field. +func (o *PackageDetail) SetStageStr(v string) { + o.StageStr = &v +} + +// GetStageUpdatedAt returns the StageUpdatedAt field value if set, zero value otherwise. +func (o *PackageDetail) GetStageUpdatedAt() time.Time { + if o == nil || IsNil(o.StageUpdatedAt) { + var ret time.Time + return ret + } + return *o.StageUpdatedAt +} + +// GetStageUpdatedAtOk returns a tuple with the StageUpdatedAt field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PackageDetail) GetStageUpdatedAtOk() (*time.Time, bool) { + if o == nil || IsNil(o.StageUpdatedAt) { + return nil, false + } + return o.StageUpdatedAt, true +} + +// HasStageUpdatedAt returns a boolean if a field has been set. +func (o *PackageDetail) HasStageUpdatedAt() bool { + if o != nil && !IsNil(o.StageUpdatedAt) { + return true + } + + return false +} + +// SetStageUpdatedAt gets a reference to the given time.Time and assigns it to the StageUpdatedAt field. +func (o *PackageDetail) SetStageUpdatedAt(v time.Time) { + o.StageUpdatedAt = &v +} + +// GetStatus returns the Status field value if set, zero value otherwise. +func (o *PackageDetail) GetStatus() int64 { + if o == nil || IsNil(o.Status) { + var ret int64 + return ret + } + return *o.Status +} + +// GetStatusOk returns a tuple with the Status field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PackageDetail) GetStatusOk() (*int64, bool) { + if o == nil || IsNil(o.Status) { + return nil, false + } + return o.Status, true +} + +// HasStatus returns a boolean if a field has been set. +func (o *PackageDetail) HasStatus() bool { + if o != nil && !IsNil(o.Status) { + return true + } + + return false +} + +// SetStatus gets a reference to the given int64 and assigns it to the Status field. +func (o *PackageDetail) SetStatus(v int64) { + o.Status = &v +} + +// GetStatusReason returns the StatusReason field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PackageDetail) GetStatusReason() string { + if o == nil || IsNil(o.StatusReason.Get()) { + var ret string + return ret + } + return *o.StatusReason.Get() +} + +// GetStatusReasonOk returns a tuple with the StatusReason 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 *PackageDetail) GetStatusReasonOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.StatusReason.Get(), o.StatusReason.IsSet() +} + +// HasStatusReason returns a boolean if a field has been set. +func (o *PackageDetail) HasStatusReason() bool { + if o != nil && o.StatusReason.IsSet() { + return true + } + + return false +} + +// SetStatusReason gets a reference to the given NullableString and assigns it to the StatusReason field. +func (o *PackageDetail) SetStatusReason(v string) { + o.StatusReason.Set(&v) +} + +// SetStatusReasonNil sets the value for StatusReason to be an explicit nil +func (o *PackageDetail) SetStatusReasonNil() { + o.StatusReason.Set(nil) +} + +// UnsetStatusReason ensures that no value is present for StatusReason, not even an explicit nil +func (o *PackageDetail) UnsetStatusReason() { + o.StatusReason.Unset() +} + +// GetStatusStr returns the StatusStr field value if set, zero value otherwise. +func (o *PackageDetail) GetStatusStr() string { + if o == nil || IsNil(o.StatusStr) { + var ret string + return ret + } + return *o.StatusStr +} + +// GetStatusStrOk returns a tuple with the StatusStr field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PackageDetail) GetStatusStrOk() (*string, bool) { + if o == nil || IsNil(o.StatusStr) { + return nil, false + } + return o.StatusStr, true +} + +// HasStatusStr returns a boolean if a field has been set. +func (o *PackageDetail) HasStatusStr() bool { + if o != nil && !IsNil(o.StatusStr) { + return true + } + + return false +} + +// SetStatusStr gets a reference to the given string and assigns it to the StatusStr field. +func (o *PackageDetail) SetStatusStr(v string) { + o.StatusStr = &v +} + +// GetStatusUpdatedAt returns the StatusUpdatedAt field value if set, zero value otherwise. +func (o *PackageDetail) GetStatusUpdatedAt() time.Time { + if o == nil || IsNil(o.StatusUpdatedAt) { + var ret time.Time + return ret + } + return *o.StatusUpdatedAt +} + +// GetStatusUpdatedAtOk returns a tuple with the StatusUpdatedAt field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PackageDetail) GetStatusUpdatedAtOk() (*time.Time, bool) { + if o == nil || IsNil(o.StatusUpdatedAt) { + return nil, false + } + return o.StatusUpdatedAt, true +} + +// HasStatusUpdatedAt returns a boolean if a field has been set. +func (o *PackageDetail) HasStatusUpdatedAt() bool { + if o != nil && !IsNil(o.StatusUpdatedAt) { + return true + } + + return false +} + +// SetStatusUpdatedAt gets a reference to the given time.Time and assigns it to the StatusUpdatedAt field. +func (o *PackageDetail) SetStatusUpdatedAt(v time.Time) { + o.StatusUpdatedAt = &v +} + +// GetStatusUrl returns the StatusUrl field value if set, zero value otherwise. +func (o *PackageDetail) GetStatusUrl() string { + if o == nil || IsNil(o.StatusUrl) { + var ret string + return ret + } + return *o.StatusUrl +} + +// GetStatusUrlOk returns a tuple with the StatusUrl field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PackageDetail) GetStatusUrlOk() (*string, bool) { + if o == nil || IsNil(o.StatusUrl) { + return nil, false + } + return o.StatusUrl, true +} + +// HasStatusUrl returns a boolean if a field has been set. +func (o *PackageDetail) HasStatusUrl() bool { + if o != nil && !IsNil(o.StatusUrl) { + return true + } + + return false +} + +// SetStatusUrl gets a reference to the given string and assigns it to the StatusUrl field. +func (o *PackageDetail) SetStatusUrl(v string) { + o.StatusUrl = &v +} + +// GetSubtype returns the Subtype field value if set, zero value otherwise. +func (o *PackageDetail) GetSubtype() string { + if o == nil || IsNil(o.Subtype) { + var ret string + return ret + } + return *o.Subtype +} + +// GetSubtypeOk returns a tuple with the Subtype field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PackageDetail) GetSubtypeOk() (*string, bool) { + if o == nil || IsNil(o.Subtype) { + return nil, false + } + return o.Subtype, true +} + +// HasSubtype returns a boolean if a field has been set. +func (o *PackageDetail) HasSubtype() bool { + if o != nil && !IsNil(o.Subtype) { + return true + } + + return false +} + +// SetSubtype gets a reference to the given string and assigns it to the Subtype field. +func (o *PackageDetail) SetSubtype(v string) { + o.Subtype = &v +} + +// GetSummary returns the Summary field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PackageDetail) GetSummary() string { + if o == nil || IsNil(o.Summary.Get()) { + var ret string + return ret + } + return *o.Summary.Get() +} + +// GetSummaryOk returns a tuple with the Summary 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 *PackageDetail) GetSummaryOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Summary.Get(), o.Summary.IsSet() +} + +// HasSummary returns a boolean if a field has been set. +func (o *PackageDetail) HasSummary() bool { + if o != nil && o.Summary.IsSet() { + return true + } + + return false +} + +// SetSummary gets a reference to the given NullableString and assigns it to the Summary field. +func (o *PackageDetail) SetSummary(v string) { + o.Summary.Set(&v) +} + +// SetSummaryNil sets the value for Summary to be an explicit nil +func (o *PackageDetail) SetSummaryNil() { + o.Summary.Set(nil) +} + +// UnsetSummary ensures that no value is present for Summary, not even an explicit nil +func (o *PackageDetail) UnsetSummary() { + o.Summary.Unset() +} + +// GetSyncFinishedAt returns the SyncFinishedAt field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PackageDetail) GetSyncFinishedAt() time.Time { + if o == nil || IsNil(o.SyncFinishedAt.Get()) { + var ret time.Time + return ret + } + return *o.SyncFinishedAt.Get() +} + +// GetSyncFinishedAtOk returns a tuple with the SyncFinishedAt 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 *PackageDetail) GetSyncFinishedAtOk() (*time.Time, bool) { + if o == nil { + return nil, false + } + return o.SyncFinishedAt.Get(), o.SyncFinishedAt.IsSet() +} + +// HasSyncFinishedAt returns a boolean if a field has been set. +func (o *PackageDetail) HasSyncFinishedAt() bool { + if o != nil && o.SyncFinishedAt.IsSet() { + return true + } + + return false +} + +// SetSyncFinishedAt gets a reference to the given NullableTime and assigns it to the SyncFinishedAt field. +func (o *PackageDetail) SetSyncFinishedAt(v time.Time) { + o.SyncFinishedAt.Set(&v) +} + +// SetSyncFinishedAtNil sets the value for SyncFinishedAt to be an explicit nil +func (o *PackageDetail) SetSyncFinishedAtNil() { + o.SyncFinishedAt.Set(nil) +} + +// UnsetSyncFinishedAt ensures that no value is present for SyncFinishedAt, not even an explicit nil +func (o *PackageDetail) UnsetSyncFinishedAt() { + o.SyncFinishedAt.Unset() +} + +// GetSyncProgress returns the SyncProgress field value if set, zero value otherwise. +func (o *PackageDetail) GetSyncProgress() int64 { + if o == nil || IsNil(o.SyncProgress) { + var ret int64 + return ret + } + return *o.SyncProgress +} + +// GetSyncProgressOk returns a tuple with the SyncProgress field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PackageDetail) GetSyncProgressOk() (*int64, bool) { + if o == nil || IsNil(o.SyncProgress) { + return nil, false + } + return o.SyncProgress, true +} + +// HasSyncProgress returns a boolean if a field has been set. +func (o *PackageDetail) HasSyncProgress() bool { + if o != nil && !IsNil(o.SyncProgress) { + return true + } + + return false +} + +// SetSyncProgress gets a reference to the given int64 and assigns it to the SyncProgress field. +func (o *PackageDetail) SetSyncProgress(v int64) { + o.SyncProgress = &v +} + +// GetTags returns the Tags field value if set, zero value otherwise. +func (o *PackageDetail) GetTags() map[string]interface{} { + if o == nil || IsNil(o.Tags) { + var ret map[string]interface{} + return ret + } + return o.Tags +} + +// GetTagsOk returns a tuple with the Tags field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PackageDetail) GetTagsOk() (map[string]interface{}, bool) { + if o == nil || IsNil(o.Tags) { + return map[string]interface{}{}, false + } + return o.Tags, true +} + +// HasTags returns a boolean if a field has been set. +func (o *PackageDetail) HasTags() bool { + if o != nil && !IsNil(o.Tags) { + return true + } + + return false +} + +// SetTags gets a reference to the given map[string]interface{} and assigns it to the Tags field. +func (o *PackageDetail) SetTags(v map[string]interface{}) { + o.Tags = v +} + +// GetTagsAutomatic returns the TagsAutomatic field value if set, zero value otherwise. +func (o *PackageDetail) GetTagsAutomatic() map[string]interface{} { + if o == nil || IsNil(o.TagsAutomatic) { + var ret map[string]interface{} + return ret + } + return o.TagsAutomatic +} + +// GetTagsAutomaticOk returns a tuple with the TagsAutomatic field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PackageDetail) GetTagsAutomaticOk() (map[string]interface{}, bool) { + if o == nil || IsNil(o.TagsAutomatic) { + return map[string]interface{}{}, false + } + return o.TagsAutomatic, true +} + +// HasTagsAutomatic returns a boolean if a field has been set. +func (o *PackageDetail) HasTagsAutomatic() bool { + if o != nil && !IsNil(o.TagsAutomatic) { + return true + } + + return false +} + +// SetTagsAutomatic gets a reference to the given map[string]interface{} and assigns it to the TagsAutomatic field. +func (o *PackageDetail) SetTagsAutomatic(v map[string]interface{}) { + o.TagsAutomatic = v +} + +// GetTagsImmutable returns the TagsImmutable field value if set, zero value otherwise. +func (o *PackageDetail) GetTagsImmutable() map[string]interface{} { + if o == nil || IsNil(o.TagsImmutable) { + var ret map[string]interface{} + return ret + } + return o.TagsImmutable +} + +// GetTagsImmutableOk returns a tuple with the TagsImmutable field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PackageDetail) GetTagsImmutableOk() (map[string]interface{}, bool) { + if o == nil || IsNil(o.TagsImmutable) { + return map[string]interface{}{}, false + } + return o.TagsImmutable, true +} + +// HasTagsImmutable returns a boolean if a field has been set. +func (o *PackageDetail) HasTagsImmutable() bool { + if o != nil && !IsNil(o.TagsImmutable) { + return true + } + + return false +} + +// SetTagsImmutable gets a reference to the given map[string]interface{} and assigns it to the TagsImmutable field. +func (o *PackageDetail) SetTagsImmutable(v map[string]interface{}) { + o.TagsImmutable = v +} + +// GetTypeDisplay returns the TypeDisplay field value if set, zero value otherwise. +func (o *PackageDetail) GetTypeDisplay() string { + if o == nil || IsNil(o.TypeDisplay) { + var ret string + return ret + } + return *o.TypeDisplay +} + +// GetTypeDisplayOk returns a tuple with the TypeDisplay field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PackageDetail) GetTypeDisplayOk() (*string, bool) { + if o == nil || IsNil(o.TypeDisplay) { + return nil, false + } + return o.TypeDisplay, true +} + +// HasTypeDisplay returns a boolean if a field has been set. +func (o *PackageDetail) HasTypeDisplay() bool { + if o != nil && !IsNil(o.TypeDisplay) { + return true + } + + return false +} + +// SetTypeDisplay gets a reference to the given string and assigns it to the TypeDisplay field. +func (o *PackageDetail) SetTypeDisplay(v string) { + o.TypeDisplay = &v +} + +// GetUploadedAt returns the UploadedAt field value if set, zero value otherwise. +func (o *PackageDetail) GetUploadedAt() time.Time { + if o == nil || IsNil(o.UploadedAt) { + var ret time.Time + return ret + } + return *o.UploadedAt +} + +// GetUploadedAtOk returns a tuple with the UploadedAt field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PackageDetail) GetUploadedAtOk() (*time.Time, bool) { + if o == nil || IsNil(o.UploadedAt) { + return nil, false + } + return o.UploadedAt, true +} + +// HasUploadedAt returns a boolean if a field has been set. +func (o *PackageDetail) HasUploadedAt() bool { + if o != nil && !IsNil(o.UploadedAt) { + return true + } + + return false +} + +// SetUploadedAt gets a reference to the given time.Time and assigns it to the UploadedAt field. +func (o *PackageDetail) SetUploadedAt(v time.Time) { + o.UploadedAt = &v +} + +// GetUploader returns the Uploader field value if set, zero value otherwise. +func (o *PackageDetail) GetUploader() string { + if o == nil || IsNil(o.Uploader) { + var ret string + return ret + } + return *o.Uploader +} + +// GetUploaderOk returns a tuple with the Uploader field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PackageDetail) GetUploaderOk() (*string, bool) { + if o == nil || IsNil(o.Uploader) { + return nil, false + } + return o.Uploader, true +} + +// HasUploader returns a boolean if a field has been set. +func (o *PackageDetail) HasUploader() bool { + if o != nil && !IsNil(o.Uploader) { + return true + } + + return false +} + +// SetUploader gets a reference to the given string and assigns it to the Uploader field. +func (o *PackageDetail) SetUploader(v string) { + o.Uploader = &v +} + +// GetUploaderUrl returns the UploaderUrl field value if set, zero value otherwise. +func (o *PackageDetail) GetUploaderUrl() string { + if o == nil || IsNil(o.UploaderUrl) { + var ret string + return ret + } + return *o.UploaderUrl +} + +// GetUploaderUrlOk returns a tuple with the UploaderUrl field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PackageDetail) GetUploaderUrlOk() (*string, bool) { + if o == nil || IsNil(o.UploaderUrl) { + return nil, false + } + return o.UploaderUrl, true +} + +// HasUploaderUrl returns a boolean if a field has been set. +func (o *PackageDetail) HasUploaderUrl() bool { + if o != nil && !IsNil(o.UploaderUrl) { + return true + } + + return false +} + +// SetUploaderUrl gets a reference to the given string and assigns it to the UploaderUrl field. +func (o *PackageDetail) SetUploaderUrl(v string) { + o.UploaderUrl = &v +} + +// GetVersion returns the Version field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PackageDetail) GetVersion() string { + if o == nil || IsNil(o.Version.Get()) { + var ret string + return ret + } + return *o.Version.Get() +} + +// GetVersionOk returns a tuple with the Version 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 *PackageDetail) GetVersionOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Version.Get(), o.Version.IsSet() +} + +// HasVersion returns a boolean if a field has been set. +func (o *PackageDetail) HasVersion() bool { + if o != nil && o.Version.IsSet() { + return true + } + + return false +} + +// SetVersion gets a reference to the given NullableString and assigns it to the Version field. +func (o *PackageDetail) SetVersion(v string) { + o.Version.Set(&v) +} + +// SetVersionNil sets the value for Version to be an explicit nil +func (o *PackageDetail) SetVersionNil() { + o.Version.Set(nil) +} + +// UnsetVersion ensures that no value is present for Version, not even an explicit nil +func (o *PackageDetail) UnsetVersion() { + o.Version.Unset() +} + +// GetVersionOrig returns the VersionOrig field value if set, zero value otherwise. +func (o *PackageDetail) GetVersionOrig() string { + if o == nil || IsNil(o.VersionOrig) { + var ret string + return ret + } + return *o.VersionOrig +} + +// GetVersionOrigOk returns a tuple with the VersionOrig field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PackageDetail) GetVersionOrigOk() (*string, bool) { + if o == nil || IsNil(o.VersionOrig) { + return nil, false + } + return o.VersionOrig, true +} + +// HasVersionOrig returns a boolean if a field has been set. +func (o *PackageDetail) HasVersionOrig() bool { + if o != nil && !IsNil(o.VersionOrig) { + return true + } + + return false +} + +// SetVersionOrig gets a reference to the given string and assigns it to the VersionOrig field. +func (o *PackageDetail) SetVersionOrig(v string) { + o.VersionOrig = &v +} + +// GetVulnerabilityCounts returns the VulnerabilityCounts field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PackageDetail) GetVulnerabilityCounts() WebOSVSeverityCounts { + if o == nil || IsNil(o.VulnerabilityCounts.Get()) { + var ret WebOSVSeverityCounts + return ret + } + return *o.VulnerabilityCounts.Get() +} + +// GetVulnerabilityCountsOk returns a tuple with the VulnerabilityCounts 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 *PackageDetail) GetVulnerabilityCountsOk() (*WebOSVSeverityCounts, bool) { + if o == nil { + return nil, false + } + return o.VulnerabilityCounts.Get(), o.VulnerabilityCounts.IsSet() +} + +// HasVulnerabilityCounts returns a boolean if a field has been set. +func (o *PackageDetail) HasVulnerabilityCounts() bool { + if o != nil && o.VulnerabilityCounts.IsSet() { + return true + } + + return false +} + +// SetVulnerabilityCounts gets a reference to the given NullableWebOSVSeverityCounts and assigns it to the VulnerabilityCounts field. +func (o *PackageDetail) SetVulnerabilityCounts(v WebOSVSeverityCounts) { + o.VulnerabilityCounts.Set(&v) +} + +// SetVulnerabilityCountsNil sets the value for VulnerabilityCounts to be an explicit nil +func (o *PackageDetail) SetVulnerabilityCountsNil() { + o.VulnerabilityCounts.Set(nil) +} + +// UnsetVulnerabilityCounts ensures that no value is present for VulnerabilityCounts, not even an explicit nil +func (o *PackageDetail) UnsetVulnerabilityCounts() { + o.VulnerabilityCounts.Unset() +} + +// GetVulnerabilityScanResultsUrl returns the VulnerabilityScanResultsUrl field value if set, zero value otherwise. +func (o *PackageDetail) GetVulnerabilityScanResultsUrl() string { + if o == nil || IsNil(o.VulnerabilityScanResultsUrl) { + var ret string + return ret + } + return *o.VulnerabilityScanResultsUrl +} + +// GetVulnerabilityScanResultsUrlOk returns a tuple with the VulnerabilityScanResultsUrl field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PackageDetail) GetVulnerabilityScanResultsUrlOk() (*string, bool) { + if o == nil || IsNil(o.VulnerabilityScanResultsUrl) { + return nil, false + } + return o.VulnerabilityScanResultsUrl, true +} + +// HasVulnerabilityScanResultsUrl returns a boolean if a field has been set. +func (o *PackageDetail) HasVulnerabilityScanResultsUrl() bool { + if o != nil && !IsNil(o.VulnerabilityScanResultsUrl) { + return true + } + + return false +} + +// SetVulnerabilityScanResultsUrl gets a reference to the given string and assigns it to the VulnerabilityScanResultsUrl field. +func (o *PackageDetail) SetVulnerabilityScanResultsUrl(v string) { + o.VulnerabilityScanResultsUrl = &v +} + +func (o PackageDetail) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o PackageDetail) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Architectures) { + toSerialize["architectures"] = o.Architectures + } + if o.CdnUrl.IsSet() { + toSerialize["cdn_url"] = o.CdnUrl.Get() + } + if !IsNil(o.ChecksumMd5) { + toSerialize["checksum_md5"] = o.ChecksumMd5 + } + if !IsNil(o.ChecksumSha1) { + toSerialize["checksum_sha1"] = o.ChecksumSha1 + } + if !IsNil(o.ChecksumSha256) { + toSerialize["checksum_sha256"] = o.ChecksumSha256 + } + if !IsNil(o.ChecksumSha512) { + toSerialize["checksum_sha512"] = o.ChecksumSha512 + } + if o.DependenciesChecksumMd5.IsSet() { + toSerialize["dependencies_checksum_md5"] = o.DependenciesChecksumMd5.Get() + } + if !IsNil(o.DependenciesUrl) { + toSerialize["dependencies_url"] = o.DependenciesUrl + } + if o.Description.IsSet() { + toSerialize["description"] = o.Description.Get() + } + if !IsNil(o.DisplayName) { + toSerialize["display_name"] = o.DisplayName + } + if o.Distro.IsSet() { + toSerialize["distro"] = o.Distro.Get() + } + if !IsNil(o.DistroVersion) { + toSerialize["distro_version"] = o.DistroVersion + } + if !IsNil(o.Downloads) { + toSerialize["downloads"] = o.Downloads + } + if o.Epoch.IsSet() { + toSerialize["epoch"] = o.Epoch.Get() + } + if !IsNil(o.Extension) { + toSerialize["extension"] = o.Extension + } + if !IsNil(o.Filename) { + toSerialize["filename"] = o.Filename + } + if o.Filepath.IsSet() { + toSerialize["filepath"] = o.Filepath.Get() + } + if !IsNil(o.Files) { + toSerialize["files"] = o.Files + } + if !IsNil(o.Format) { + toSerialize["format"] = o.Format + } + if !IsNil(o.FormatUrl) { + toSerialize["format_url"] = o.FormatUrl + } + if !IsNil(o.FreeableStorage) { + toSerialize["freeable_storage"] = o.FreeableStorage + } + if o.FullyQualifiedName.IsSet() { + toSerialize["fully_qualified_name"] = o.FullyQualifiedName.Get() + } + if !IsNil(o.HasDependencies) { + toSerialize["has_dependencies"] = o.HasDependencies + } + if !IsNil(o.IdentifierPerm) { + toSerialize["identifier_perm"] = o.IdentifierPerm + } + if !IsNil(o.Identifiers) { + toSerialize["identifiers"] = o.Identifiers + } + if !IsNil(o.Indexed) { + toSerialize["indexed"] = o.Indexed + } + if !IsNil(o.IsCancellable) { + toSerialize["is_cancellable"] = o.IsCancellable + } + if !IsNil(o.IsCopyable) { + toSerialize["is_copyable"] = o.IsCopyable + } + if !IsNil(o.IsDeleteable) { + toSerialize["is_deleteable"] = o.IsDeleteable + } + if !IsNil(o.IsDownloadable) { + toSerialize["is_downloadable"] = o.IsDownloadable + } + if !IsNil(o.IsHidden) { + toSerialize["is_hidden"] = o.IsHidden + } + if !IsNil(o.IsMalwareDetected) { + toSerialize["is_malware_detected"] = o.IsMalwareDetected + } + if !IsNil(o.IsMoveable) { + toSerialize["is_moveable"] = o.IsMoveable + } + if !IsNil(o.IsQuarantinable) { + toSerialize["is_quarantinable"] = o.IsQuarantinable + } + if !IsNil(o.IsQuarantined) { + toSerialize["is_quarantined"] = o.IsQuarantined + } + if !IsNil(o.IsResyncable) { + toSerialize["is_resyncable"] = o.IsResyncable + } + if !IsNil(o.IsSecurityScannable) { + toSerialize["is_security_scannable"] = o.IsSecurityScannable + } + if !IsNil(o.IsSyncAwaiting) { + toSerialize["is_sync_awaiting"] = o.IsSyncAwaiting + } + if !IsNil(o.IsSyncCompleted) { + toSerialize["is_sync_completed"] = o.IsSyncCompleted + } + if !IsNil(o.IsSyncFailed) { + toSerialize["is_sync_failed"] = o.IsSyncFailed + } + if !IsNil(o.IsSyncInFlight) { + toSerialize["is_sync_in_flight"] = o.IsSyncInFlight + } + if !IsNil(o.IsSyncInProgress) { + toSerialize["is_sync_in_progress"] = o.IsSyncInProgress + } + if o.License.IsSet() { + toSerialize["license"] = o.License.Get() + } + if o.Name.IsSet() { + toSerialize["name"] = o.Name.Get() + } + if !IsNil(o.Namespace) { + toSerialize["namespace"] = o.Namespace + } + if !IsNil(o.NamespaceUrl) { + toSerialize["namespace_url"] = o.NamespaceUrl + } + if !IsNil(o.NumFiles) { + toSerialize["num_files"] = o.NumFiles + } + if !IsNil(o.OriginRepository) { + toSerialize["origin_repository"] = o.OriginRepository + } + if !IsNil(o.OriginRepositoryUrl) { + toSerialize["origin_repository_url"] = o.OriginRepositoryUrl + } + if !IsNil(o.OsiApproved) { + toSerialize["osi_approved"] = o.OsiApproved + } + if !IsNil(o.PackageType) { + toSerialize["package_type"] = o.PackageType + } + if !IsNil(o.PolicyViolated) { + toSerialize["policy_violated"] = o.PolicyViolated + } + if o.RawLicense.IsSet() { + toSerialize["raw_license"] = o.RawLicense.Get() + } + if o.Release.IsSet() { + toSerialize["release"] = o.Release.Get() + } + if !IsNil(o.Repository) { + toSerialize["repository"] = o.Repository + } + if !IsNil(o.RepositoryUrl) { + toSerialize["repository_url"] = o.RepositoryUrl + } + if o.SecurityScanCompletedAt.IsSet() { + toSerialize["security_scan_completed_at"] = o.SecurityScanCompletedAt.Get() + } + if o.SecurityScanStartedAt.IsSet() { + toSerialize["security_scan_started_at"] = o.SecurityScanStartedAt.Get() + } + if o.SecurityScanStatus.IsSet() { + toSerialize["security_scan_status"] = o.SecurityScanStatus.Get() + } + if o.SecurityScanStatusUpdatedAt.IsSet() { + toSerialize["security_scan_status_updated_at"] = o.SecurityScanStatusUpdatedAt.Get() + } + if !IsNil(o.SelfHtmlUrl) { + toSerialize["self_html_url"] = o.SelfHtmlUrl + } + if !IsNil(o.SelfUrl) { + toSerialize["self_url"] = o.SelfUrl + } + if !IsNil(o.SelfWebappUrl) { + toSerialize["self_webapp_url"] = o.SelfWebappUrl + } + if o.SignatureUrl.IsSet() { + toSerialize["signature_url"] = o.SignatureUrl.Get() + } + if !IsNil(o.Size) { + toSerialize["size"] = o.Size + } + if !IsNil(o.Slug) { + toSerialize["slug"] = o.Slug + } + if !IsNil(o.SlugPerm) { + toSerialize["slug_perm"] = o.SlugPerm + } + if o.SpdxLicense.IsSet() { + toSerialize["spdx_license"] = o.SpdxLicense.Get() + } + if !IsNil(o.Stage) { + toSerialize["stage"] = o.Stage + } + if !IsNil(o.StageStr) { + toSerialize["stage_str"] = o.StageStr + } + if !IsNil(o.StageUpdatedAt) { + toSerialize["stage_updated_at"] = o.StageUpdatedAt + } + if !IsNil(o.Status) { + toSerialize["status"] = o.Status + } + if o.StatusReason.IsSet() { + toSerialize["status_reason"] = o.StatusReason.Get() + } + if !IsNil(o.StatusStr) { + toSerialize["status_str"] = o.StatusStr + } + if !IsNil(o.StatusUpdatedAt) { + toSerialize["status_updated_at"] = o.StatusUpdatedAt + } + if !IsNil(o.StatusUrl) { + toSerialize["status_url"] = o.StatusUrl + } + if !IsNil(o.Subtype) { + toSerialize["subtype"] = o.Subtype + } + if o.Summary.IsSet() { + toSerialize["summary"] = o.Summary.Get() + } + if o.SyncFinishedAt.IsSet() { + toSerialize["sync_finished_at"] = o.SyncFinishedAt.Get() + } + if !IsNil(o.SyncProgress) { + toSerialize["sync_progress"] = o.SyncProgress + } + if !IsNil(o.Tags) { + toSerialize["tags"] = o.Tags + } + if !IsNil(o.TagsAutomatic) { + toSerialize["tags_automatic"] = o.TagsAutomatic + } + if !IsNil(o.TagsImmutable) { + toSerialize["tags_immutable"] = o.TagsImmutable + } + if !IsNil(o.TypeDisplay) { + toSerialize["type_display"] = o.TypeDisplay + } + if !IsNil(o.UploadedAt) { + toSerialize["uploaded_at"] = o.UploadedAt + } + if !IsNil(o.Uploader) { + toSerialize["uploader"] = o.Uploader + } + if !IsNil(o.UploaderUrl) { + toSerialize["uploader_url"] = o.UploaderUrl + } + if o.Version.IsSet() { + toSerialize["version"] = o.Version.Get() + } + if !IsNil(o.VersionOrig) { + toSerialize["version_orig"] = o.VersionOrig + } + if o.VulnerabilityCounts.IsSet() { + toSerialize["vulnerability_counts"] = o.VulnerabilityCounts.Get() + } + if !IsNil(o.VulnerabilityScanResultsUrl) { + toSerialize["vulnerability_scan_results_url"] = o.VulnerabilityScanResultsUrl + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *PackageDetail) UnmarshalJSON(data []byte) (err error) { + varPackageDetail := _PackageDetail{} + + err = json.Unmarshal(data, &varPackageDetail) + + if err != nil { + return err + } + + *o = PackageDetail(varPackageDetail) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "architectures") + delete(additionalProperties, "cdn_url") + delete(additionalProperties, "checksum_md5") + delete(additionalProperties, "checksum_sha1") + delete(additionalProperties, "checksum_sha256") + delete(additionalProperties, "checksum_sha512") + delete(additionalProperties, "dependencies_checksum_md5") + delete(additionalProperties, "dependencies_url") + delete(additionalProperties, "description") + delete(additionalProperties, "display_name") + delete(additionalProperties, "distro") + delete(additionalProperties, "distro_version") + delete(additionalProperties, "downloads") + delete(additionalProperties, "epoch") + delete(additionalProperties, "extension") + delete(additionalProperties, "filename") + delete(additionalProperties, "filepath") + delete(additionalProperties, "files") + delete(additionalProperties, "format") + delete(additionalProperties, "format_url") + delete(additionalProperties, "freeable_storage") + delete(additionalProperties, "fully_qualified_name") + delete(additionalProperties, "has_dependencies") + delete(additionalProperties, "identifier_perm") + delete(additionalProperties, "identifiers") + delete(additionalProperties, "indexed") + delete(additionalProperties, "is_cancellable") + delete(additionalProperties, "is_copyable") + delete(additionalProperties, "is_deleteable") + delete(additionalProperties, "is_downloadable") + delete(additionalProperties, "is_hidden") + delete(additionalProperties, "is_malware_detected") + delete(additionalProperties, "is_moveable") + delete(additionalProperties, "is_quarantinable") + delete(additionalProperties, "is_quarantined") + delete(additionalProperties, "is_resyncable") + delete(additionalProperties, "is_security_scannable") + delete(additionalProperties, "is_sync_awaiting") + delete(additionalProperties, "is_sync_completed") + delete(additionalProperties, "is_sync_failed") + delete(additionalProperties, "is_sync_in_flight") + delete(additionalProperties, "is_sync_in_progress") + delete(additionalProperties, "license") + delete(additionalProperties, "name") + delete(additionalProperties, "namespace") + delete(additionalProperties, "namespace_url") + delete(additionalProperties, "num_files") + delete(additionalProperties, "origin_repository") + delete(additionalProperties, "origin_repository_url") + delete(additionalProperties, "osi_approved") + delete(additionalProperties, "package_type") + delete(additionalProperties, "policy_violated") + delete(additionalProperties, "raw_license") + delete(additionalProperties, "release") + delete(additionalProperties, "repository") + delete(additionalProperties, "repository_url") + delete(additionalProperties, "security_scan_completed_at") + delete(additionalProperties, "security_scan_started_at") + delete(additionalProperties, "security_scan_status") + delete(additionalProperties, "security_scan_status_updated_at") + delete(additionalProperties, "self_html_url") + delete(additionalProperties, "self_url") + delete(additionalProperties, "self_webapp_url") + delete(additionalProperties, "signature_url") + delete(additionalProperties, "size") + delete(additionalProperties, "slug") + delete(additionalProperties, "slug_perm") + delete(additionalProperties, "spdx_license") + delete(additionalProperties, "stage") + delete(additionalProperties, "stage_str") + delete(additionalProperties, "stage_updated_at") + delete(additionalProperties, "status") + delete(additionalProperties, "status_reason") + delete(additionalProperties, "status_str") + delete(additionalProperties, "status_updated_at") + delete(additionalProperties, "status_url") + delete(additionalProperties, "subtype") + delete(additionalProperties, "summary") + delete(additionalProperties, "sync_finished_at") + delete(additionalProperties, "sync_progress") + delete(additionalProperties, "tags") + delete(additionalProperties, "tags_automatic") + delete(additionalProperties, "tags_immutable") + delete(additionalProperties, "type_display") + delete(additionalProperties, "uploaded_at") + delete(additionalProperties, "uploader") + delete(additionalProperties, "uploader_url") + delete(additionalProperties, "version") + delete(additionalProperties, "version_orig") + delete(additionalProperties, "vulnerability_counts") + delete(additionalProperties, "vulnerability_scan_results_url") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullablePackageDetail struct { + value *PackageDetail + isSet bool +} + +func (v NullablePackageDetail) Get() *PackageDetail { + return v.value +} + +func (v *NullablePackageDetail) Set(val *PackageDetail) { + v.value = val + v.isSet = true +} + +func (v NullablePackageDetail) IsSet() bool { + return v.isSet +} + +func (v *NullablePackageDetail) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePackageDetail(val *PackageDetail) *NullablePackageDetail { + return &NullablePackageDetail{value: val, isSet: true} +} + +func (v NullablePackageDetail) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePackageDetail) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/model_package_file.go b/model_package_file.go index 7b765522..136245d3 100644 --- a/model_package_file.go +++ b/model_package_file.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1288.1 +API version: 1.1341.7 Contact: support@cloudsmith.io */ diff --git a/model_package_file_parts_upload.go b/model_package_file_parts_upload.go index 237dad16..0a9f2507 100644 --- a/model_package_file_parts_upload.go +++ b/model_package_file_parts_upload.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1288.1 +API version: 1.1341.7 Contact: support@cloudsmith.io */ diff --git a/model_package_file_upload.go b/model_package_file_upload.go index 6ac16ce0..9a7a5616 100644 --- a/model_package_file_upload.go +++ b/model_package_file_upload.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1288.1 +API version: 1.1341.7 Contact: support@cloudsmith.io */ diff --git a/model_package_file_upload_request.go b/model_package_file_upload_request.go index 885a7a3a..cfa6bd53 100644 --- a/model_package_file_upload_request.go +++ b/model_package_file_upload_request.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1288.1 +API version: 1.1341.7 Contact: support@cloudsmith.io */ diff --git a/model_package_group.go b/model_package_group.go index 04a2d641..b9cfbd65 100644 --- a/model_package_group.go +++ b/model_package_group.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1288.1 +API version: 1.1341.7 Contact: support@cloudsmith.io */ diff --git a/model_package_license.go b/model_package_license.go index 733eef83..1badc5c7 100644 --- a/model_package_license.go +++ b/model_package_license.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1288.1 +API version: 1.1341.7 Contact: support@cloudsmith.io */ @@ -21,10 +21,13 @@ var _ MappedNullable = &PackageLicense{} // PackageLicense struct for PackageLicense type PackageLicense struct { - LicenseNotes NullableString `json:"license_notes,omitempty"` - LicenseOverride NullableString `json:"license_override,omitempty"` - LicenseUrl NullableString `json:"license_url,omitempty"` - SpdxLicense string `json:"spdx_license"` + // Whether the package has been detected as containing malware. Requires Ultra plan. + IsMalwareDetected *bool `json:"is_malware_detected,omitempty"` + LicenseNotes NullableString `json:"license_notes,omitempty"` + LicenseOverride NullableString `json:"license_override,omitempty"` + LicenseUrl NullableString `json:"license_url,omitempty"` + SpdxLicense string `json:"spdx_license"` + VulnerabilityCounts NullableWebOSVSeverityCounts `json:"vulnerability_counts,omitempty"` AdditionalProperties map[string]interface{} } @@ -52,6 +55,38 @@ func NewPackageLicenseWithDefaults() *PackageLicense { return &this } +// GetIsMalwareDetected returns the IsMalwareDetected field value if set, zero value otherwise. +func (o *PackageLicense) GetIsMalwareDetected() bool { + if o == nil || IsNil(o.IsMalwareDetected) { + var ret bool + return ret + } + return *o.IsMalwareDetected +} + +// GetIsMalwareDetectedOk returns a tuple with the IsMalwareDetected field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PackageLicense) GetIsMalwareDetectedOk() (*bool, bool) { + if o == nil || IsNil(o.IsMalwareDetected) { + return nil, false + } + return o.IsMalwareDetected, true +} + +// HasIsMalwareDetected returns a boolean if a field has been set. +func (o *PackageLicense) HasIsMalwareDetected() bool { + if o != nil && !IsNil(o.IsMalwareDetected) { + return true + } + + return false +} + +// SetIsMalwareDetected gets a reference to the given bool and assigns it to the IsMalwareDetected field. +func (o *PackageLicense) SetIsMalwareDetected(v bool) { + o.IsMalwareDetected = &v +} + // GetLicenseNotes returns the LicenseNotes field value if set, zero value otherwise (both if not set or set to explicit null). func (o *PackageLicense) GetLicenseNotes() string { if o == nil || IsNil(o.LicenseNotes.Get()) { @@ -205,6 +240,49 @@ func (o *PackageLicense) SetSpdxLicense(v string) { o.SpdxLicense = v } +// GetVulnerabilityCounts returns the VulnerabilityCounts field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PackageLicense) GetVulnerabilityCounts() WebOSVSeverityCounts { + if o == nil || IsNil(o.VulnerabilityCounts.Get()) { + var ret WebOSVSeverityCounts + return ret + } + return *o.VulnerabilityCounts.Get() +} + +// GetVulnerabilityCountsOk returns a tuple with the VulnerabilityCounts 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 *PackageLicense) GetVulnerabilityCountsOk() (*WebOSVSeverityCounts, bool) { + if o == nil { + return nil, false + } + return o.VulnerabilityCounts.Get(), o.VulnerabilityCounts.IsSet() +} + +// HasVulnerabilityCounts returns a boolean if a field has been set. +func (o *PackageLicense) HasVulnerabilityCounts() bool { + if o != nil && o.VulnerabilityCounts.IsSet() { + return true + } + + return false +} + +// SetVulnerabilityCounts gets a reference to the given NullableWebOSVSeverityCounts and assigns it to the VulnerabilityCounts field. +func (o *PackageLicense) SetVulnerabilityCounts(v WebOSVSeverityCounts) { + o.VulnerabilityCounts.Set(&v) +} + +// SetVulnerabilityCountsNil sets the value for VulnerabilityCounts to be an explicit nil +func (o *PackageLicense) SetVulnerabilityCountsNil() { + o.VulnerabilityCounts.Set(nil) +} + +// UnsetVulnerabilityCounts ensures that no value is present for VulnerabilityCounts, not even an explicit nil +func (o *PackageLicense) UnsetVulnerabilityCounts() { + o.VulnerabilityCounts.Unset() +} + func (o PackageLicense) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { @@ -215,6 +293,9 @@ func (o PackageLicense) MarshalJSON() ([]byte, error) { func (o PackageLicense) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} + if !IsNil(o.IsMalwareDetected) { + toSerialize["is_malware_detected"] = o.IsMalwareDetected + } if o.LicenseNotes.IsSet() { toSerialize["license_notes"] = o.LicenseNotes.Get() } @@ -225,6 +306,9 @@ func (o PackageLicense) ToMap() (map[string]interface{}, error) { toSerialize["license_url"] = o.LicenseUrl.Get() } toSerialize["spdx_license"] = o.SpdxLicense + if o.VulnerabilityCounts.IsSet() { + toSerialize["vulnerability_counts"] = o.VulnerabilityCounts.Get() + } for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -268,10 +352,12 @@ func (o *PackageLicense) UnmarshalJSON(data []byte) (err error) { additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "is_malware_detected") delete(additionalProperties, "license_notes") delete(additionalProperties, "license_override") delete(additionalProperties, "license_url") delete(additionalProperties, "spdx_license") + delete(additionalProperties, "vulnerability_counts") o.AdditionalProperties = additionalProperties } diff --git a/model_package_license_policy_evaluation_request.go b/model_package_license_policy_evaluation_request.go index 1892c234..160be123 100644 --- a/model_package_license_policy_evaluation_request.go +++ b/model_package_license_policy_evaluation_request.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1288.1 +API version: 1.1341.7 Contact: support@cloudsmith.io */ diff --git a/model_package_license_policy_violation_log.go b/model_package_license_policy_violation_log.go index 1420eee1..bde7db92 100644 --- a/model_package_license_policy_violation_log.go +++ b/model_package_license_policy_violation_log.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1288.1 +API version: 1.1341.7 Contact: support@cloudsmith.io */ diff --git a/model_package_license_policy_violation_log_cursor_page.go b/model_package_license_policy_violation_log_cursor_page.go index 8313ad92..1679552f 100644 --- a/model_package_license_policy_violation_log_cursor_page.go +++ b/model_package_license_policy_violation_log_cursor_page.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1288.1 +API version: 1.1341.7 Contact: support@cloudsmith.io */ diff --git a/model_package_license_request_patch.go b/model_package_license_request_patch.go index a1bf7533..e24aabbc 100644 --- a/model_package_license_request_patch.go +++ b/model_package_license_request_patch.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1288.1 +API version: 1.1341.7 Contact: support@cloudsmith.io */ @@ -13,6 +13,7 @@ package cloudsmith import ( "encoding/json" + "fmt" ) // checks if the PackageLicenseRequestPatch type satisfies the MappedNullable interface at compile time @@ -20,11 +21,14 @@ var _ MappedNullable = &PackageLicenseRequestPatch{} // PackageLicenseRequestPatch struct for PackageLicenseRequestPatch type PackageLicenseRequestPatch struct { - Action NullableString `json:"action,omitempty"` - LicenseNotes NullableString `json:"license_notes,omitempty"` - LicenseOverride NullableString `json:"license_override,omitempty"` - LicenseUrl NullableString `json:"license_url,omitempty"` - SpdxLicense *string `json:"spdx_license,omitempty"` + Action NullableString `json:"action,omitempty"` + // Whether the package has been detected as containing malware. Requires Ultra plan. + IsMalwareDetected *bool `json:"is_malware_detected,omitempty"` + LicenseNotes NullableString `json:"license_notes,omitempty"` + LicenseOverride NullableString `json:"license_override,omitempty"` + LicenseUrl NullableString `json:"license_url,omitempty"` + SpdxLicense string `json:"spdx_license"` + VulnerabilityCounts NullableWebOSVSeverityCounts `json:"vulnerability_counts,omitempty"` AdditionalProperties map[string]interface{} } @@ -34,12 +38,13 @@ type _PackageLicenseRequestPatch PackageLicenseRequestPatch // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed -func NewPackageLicenseRequestPatch() *PackageLicenseRequestPatch { +func NewPackageLicenseRequestPatch(spdxLicense string) *PackageLicenseRequestPatch { this := PackageLicenseRequestPatch{} var action string = "Update" this.Action = *NewNullableString(&action) var licenseOverride string = "None" this.LicenseOverride = *NewNullableString(&licenseOverride) + this.SpdxLicense = spdxLicense return &this } @@ -98,6 +103,38 @@ func (o *PackageLicenseRequestPatch) UnsetAction() { o.Action.Unset() } +// GetIsMalwareDetected returns the IsMalwareDetected field value if set, zero value otherwise. +func (o *PackageLicenseRequestPatch) GetIsMalwareDetected() bool { + if o == nil || IsNil(o.IsMalwareDetected) { + var ret bool + return ret + } + return *o.IsMalwareDetected +} + +// GetIsMalwareDetectedOk returns a tuple with the IsMalwareDetected field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PackageLicenseRequestPatch) GetIsMalwareDetectedOk() (*bool, bool) { + if o == nil || IsNil(o.IsMalwareDetected) { + return nil, false + } + return o.IsMalwareDetected, true +} + +// HasIsMalwareDetected returns a boolean if a field has been set. +func (o *PackageLicenseRequestPatch) HasIsMalwareDetected() bool { + if o != nil && !IsNil(o.IsMalwareDetected) { + return true + } + + return false +} + +// SetIsMalwareDetected gets a reference to the given bool and assigns it to the IsMalwareDetected field. +func (o *PackageLicenseRequestPatch) SetIsMalwareDetected(v bool) { + o.IsMalwareDetected = &v +} + // GetLicenseNotes returns the LicenseNotes field value if set, zero value otherwise (both if not set or set to explicit null). func (o *PackageLicenseRequestPatch) GetLicenseNotes() string { if o == nil || IsNil(o.LicenseNotes.Get()) { @@ -227,36 +264,71 @@ func (o *PackageLicenseRequestPatch) UnsetLicenseUrl() { o.LicenseUrl.Unset() } -// GetSpdxLicense returns the SpdxLicense field value if set, zero value otherwise. +// GetSpdxLicense returns the SpdxLicense field value func (o *PackageLicenseRequestPatch) GetSpdxLicense() string { - if o == nil || IsNil(o.SpdxLicense) { + if o == nil { var ret string return ret } - return *o.SpdxLicense + + return o.SpdxLicense } -// GetSpdxLicenseOk returns a tuple with the SpdxLicense field value if set, nil otherwise +// GetSpdxLicenseOk returns a tuple with the SpdxLicense field value // and a boolean to check if the value has been set. func (o *PackageLicenseRequestPatch) GetSpdxLicenseOk() (*string, bool) { - if o == nil || IsNil(o.SpdxLicense) { + if o == nil { + return nil, false + } + return &o.SpdxLicense, true +} + +// SetSpdxLicense sets field value +func (o *PackageLicenseRequestPatch) SetSpdxLicense(v string) { + o.SpdxLicense = v +} + +// GetVulnerabilityCounts returns the VulnerabilityCounts field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PackageLicenseRequestPatch) GetVulnerabilityCounts() WebOSVSeverityCounts { + if o == nil || IsNil(o.VulnerabilityCounts.Get()) { + var ret WebOSVSeverityCounts + return ret + } + return *o.VulnerabilityCounts.Get() +} + +// GetVulnerabilityCountsOk returns a tuple with the VulnerabilityCounts 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 *PackageLicenseRequestPatch) GetVulnerabilityCountsOk() (*WebOSVSeverityCounts, bool) { + if o == nil { return nil, false } - return o.SpdxLicense, true + return o.VulnerabilityCounts.Get(), o.VulnerabilityCounts.IsSet() } -// HasSpdxLicense returns a boolean if a field has been set. -func (o *PackageLicenseRequestPatch) HasSpdxLicense() bool { - if o != nil && !IsNil(o.SpdxLicense) { +// HasVulnerabilityCounts returns a boolean if a field has been set. +func (o *PackageLicenseRequestPatch) HasVulnerabilityCounts() bool { + if o != nil && o.VulnerabilityCounts.IsSet() { return true } return false } -// SetSpdxLicense gets a reference to the given string and assigns it to the SpdxLicense field. -func (o *PackageLicenseRequestPatch) SetSpdxLicense(v string) { - o.SpdxLicense = &v +// SetVulnerabilityCounts gets a reference to the given NullableWebOSVSeverityCounts and assigns it to the VulnerabilityCounts field. +func (o *PackageLicenseRequestPatch) SetVulnerabilityCounts(v WebOSVSeverityCounts) { + o.VulnerabilityCounts.Set(&v) +} + +// SetVulnerabilityCountsNil sets the value for VulnerabilityCounts to be an explicit nil +func (o *PackageLicenseRequestPatch) SetVulnerabilityCountsNil() { + o.VulnerabilityCounts.Set(nil) +} + +// UnsetVulnerabilityCounts ensures that no value is present for VulnerabilityCounts, not even an explicit nil +func (o *PackageLicenseRequestPatch) UnsetVulnerabilityCounts() { + o.VulnerabilityCounts.Unset() } func (o PackageLicenseRequestPatch) MarshalJSON() ([]byte, error) { @@ -272,6 +344,9 @@ func (o PackageLicenseRequestPatch) ToMap() (map[string]interface{}, error) { if o.Action.IsSet() { toSerialize["action"] = o.Action.Get() } + if !IsNil(o.IsMalwareDetected) { + toSerialize["is_malware_detected"] = o.IsMalwareDetected + } if o.LicenseNotes.IsSet() { toSerialize["license_notes"] = o.LicenseNotes.Get() } @@ -281,8 +356,9 @@ func (o PackageLicenseRequestPatch) ToMap() (map[string]interface{}, error) { if o.LicenseUrl.IsSet() { toSerialize["license_url"] = o.LicenseUrl.Get() } - if !IsNil(o.SpdxLicense) { - toSerialize["spdx_license"] = o.SpdxLicense + toSerialize["spdx_license"] = o.SpdxLicense + if o.VulnerabilityCounts.IsSet() { + toSerialize["vulnerability_counts"] = o.VulnerabilityCounts.Get() } for key, value := range o.AdditionalProperties { @@ -293,6 +369,27 @@ func (o PackageLicenseRequestPatch) ToMap() (map[string]interface{}, error) { } func (o *PackageLicenseRequestPatch) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "spdx_license", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err + } + + for _, requiredProperty := range requiredProperties { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + varPackageLicenseRequestPatch := _PackageLicenseRequestPatch{} err = json.Unmarshal(data, &varPackageLicenseRequestPatch) @@ -307,10 +404,12 @@ func (o *PackageLicenseRequestPatch) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "action") + delete(additionalProperties, "is_malware_detected") delete(additionalProperties, "license_notes") delete(additionalProperties, "license_override") delete(additionalProperties, "license_url") delete(additionalProperties, "spdx_license") + delete(additionalProperties, "vulnerability_counts") o.AdditionalProperties = additionalProperties } diff --git a/model_package_move.go b/model_package_move.go index 9e29ecb1..1ae5a006 100644 --- a/model_package_move.go +++ b/model_package_move.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1288.1 +API version: 1.1341.7 Contact: support@cloudsmith.io */ @@ -51,23 +51,25 @@ type PackageMove struct { // Unique and permanent identifier for the package. IdentifierPerm *string `json:"identifier_perm,omitempty"` // Return a map of identifier field names and their values. - Identifiers *map[string]string `json:"identifiers,omitempty"` - Indexed *bool `json:"indexed,omitempty"` - IsCancellable *bool `json:"is_cancellable,omitempty"` - IsCopyable *bool `json:"is_copyable,omitempty"` - IsDeleteable *bool `json:"is_deleteable,omitempty"` - IsDownloadable *bool `json:"is_downloadable,omitempty"` - IsHidden *bool `json:"is_hidden,omitempty"` - IsMoveable *bool `json:"is_moveable,omitempty"` - IsQuarantinable *bool `json:"is_quarantinable,omitempty"` - IsQuarantined *bool `json:"is_quarantined,omitempty"` - IsResyncable *bool `json:"is_resyncable,omitempty"` - IsSecurityScannable *bool `json:"is_security_scannable,omitempty"` - IsSyncAwaiting *bool `json:"is_sync_awaiting,omitempty"` - IsSyncCompleted *bool `json:"is_sync_completed,omitempty"` - IsSyncFailed *bool `json:"is_sync_failed,omitempty"` - IsSyncInFlight *bool `json:"is_sync_in_flight,omitempty"` - IsSyncInProgress *bool `json:"is_sync_in_progress,omitempty"` + Identifiers *map[string]string `json:"identifiers,omitempty"` + Indexed *bool `json:"indexed,omitempty"` + IsCancellable *bool `json:"is_cancellable,omitempty"` + IsCopyable *bool `json:"is_copyable,omitempty"` + IsDeleteable *bool `json:"is_deleteable,omitempty"` + IsDownloadable *bool `json:"is_downloadable,omitempty"` + IsHidden *bool `json:"is_hidden,omitempty"` + // Whether the package has been detected as containing malware. Requires Ultra plan. + IsMalwareDetected *bool `json:"is_malware_detected,omitempty"` + IsMoveable *bool `json:"is_moveable,omitempty"` + IsQuarantinable *bool `json:"is_quarantinable,omitempty"` + IsQuarantined *bool `json:"is_quarantined,omitempty"` + IsResyncable *bool `json:"is_resyncable,omitempty"` + IsSecurityScannable *bool `json:"is_security_scannable,omitempty"` + IsSyncAwaiting *bool `json:"is_sync_awaiting,omitempty"` + IsSyncCompleted *bool `json:"is_sync_completed,omitempty"` + IsSyncFailed *bool `json:"is_sync_failed,omitempty"` + IsSyncInFlight *bool `json:"is_sync_in_flight,omitempty"` + IsSyncInProgress *bool `json:"is_sync_in_progress,omitempty"` // The license of this package. License NullableString `json:"license,omitempty"` // The name of this package. @@ -140,9 +142,10 @@ type PackageMove struct { Uploader *string `json:"uploader,omitempty"` UploaderUrl *string `json:"uploader_url,omitempty"` // The raw version for this package. - Version NullableString `json:"version,omitempty"` - VersionOrig *string `json:"version_orig,omitempty"` - VulnerabilityScanResultsUrl *string `json:"vulnerability_scan_results_url,omitempty"` + Version NullableString `json:"version,omitempty"` + VersionOrig *string `json:"version_orig,omitempty"` + VulnerabilityCounts NullableWebOSVSeverityCounts `json:"vulnerability_counts,omitempty"` + VulnerabilityScanResultsUrl *string `json:"vulnerability_scan_results_url,omitempty"` AdditionalProperties map[string]interface{} } @@ -1202,6 +1205,38 @@ func (o *PackageMove) SetIsHidden(v bool) { o.IsHidden = &v } +// GetIsMalwareDetected returns the IsMalwareDetected field value if set, zero value otherwise. +func (o *PackageMove) GetIsMalwareDetected() bool { + if o == nil || IsNil(o.IsMalwareDetected) { + var ret bool + return ret + } + return *o.IsMalwareDetected +} + +// GetIsMalwareDetectedOk returns a tuple with the IsMalwareDetected field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PackageMove) GetIsMalwareDetectedOk() (*bool, bool) { + if o == nil || IsNil(o.IsMalwareDetected) { + return nil, false + } + return o.IsMalwareDetected, true +} + +// HasIsMalwareDetected returns a boolean if a field has been set. +func (o *PackageMove) HasIsMalwareDetected() bool { + if o != nil && !IsNil(o.IsMalwareDetected) { + return true + } + + return false +} + +// SetIsMalwareDetected gets a reference to the given bool and assigns it to the IsMalwareDetected field. +func (o *PackageMove) SetIsMalwareDetected(v bool) { + o.IsMalwareDetected = &v +} + // GetIsMoveable returns the IsMoveable field value if set, zero value otherwise. func (o *PackageMove) GetIsMoveable() bool { if o == nil || IsNil(o.IsMoveable) { @@ -3180,6 +3215,49 @@ func (o *PackageMove) SetVersionOrig(v string) { o.VersionOrig = &v } +// GetVulnerabilityCounts returns the VulnerabilityCounts field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PackageMove) GetVulnerabilityCounts() WebOSVSeverityCounts { + if o == nil || IsNil(o.VulnerabilityCounts.Get()) { + var ret WebOSVSeverityCounts + return ret + } + return *o.VulnerabilityCounts.Get() +} + +// GetVulnerabilityCountsOk returns a tuple with the VulnerabilityCounts 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 *PackageMove) GetVulnerabilityCountsOk() (*WebOSVSeverityCounts, bool) { + if o == nil { + return nil, false + } + return o.VulnerabilityCounts.Get(), o.VulnerabilityCounts.IsSet() +} + +// HasVulnerabilityCounts returns a boolean if a field has been set. +func (o *PackageMove) HasVulnerabilityCounts() bool { + if o != nil && o.VulnerabilityCounts.IsSet() { + return true + } + + return false +} + +// SetVulnerabilityCounts gets a reference to the given NullableWebOSVSeverityCounts and assigns it to the VulnerabilityCounts field. +func (o *PackageMove) SetVulnerabilityCounts(v WebOSVSeverityCounts) { + o.VulnerabilityCounts.Set(&v) +} + +// SetVulnerabilityCountsNil sets the value for VulnerabilityCounts to be an explicit nil +func (o *PackageMove) SetVulnerabilityCountsNil() { + o.VulnerabilityCounts.Set(nil) +} + +// UnsetVulnerabilityCounts ensures that no value is present for VulnerabilityCounts, not even an explicit nil +func (o *PackageMove) UnsetVulnerabilityCounts() { + o.VulnerabilityCounts.Unset() +} + // GetVulnerabilityScanResultsUrl returns the VulnerabilityScanResultsUrl field value if set, zero value otherwise. func (o *PackageMove) GetVulnerabilityScanResultsUrl() string { if o == nil || IsNil(o.VulnerabilityScanResultsUrl) { @@ -3312,6 +3390,9 @@ func (o PackageMove) ToMap() (map[string]interface{}, error) { if !IsNil(o.IsHidden) { toSerialize["is_hidden"] = o.IsHidden } + if !IsNil(o.IsMalwareDetected) { + toSerialize["is_malware_detected"] = o.IsMalwareDetected + } if !IsNil(o.IsMoveable) { toSerialize["is_moveable"] = o.IsMoveable } @@ -3483,6 +3564,9 @@ func (o PackageMove) ToMap() (map[string]interface{}, error) { if !IsNil(o.VersionOrig) { toSerialize["version_orig"] = o.VersionOrig } + if o.VulnerabilityCounts.IsSet() { + toSerialize["vulnerability_counts"] = o.VulnerabilityCounts.Get() + } if !IsNil(o.VulnerabilityScanResultsUrl) { toSerialize["vulnerability_scan_results_url"] = o.VulnerabilityScanResultsUrl } @@ -3538,6 +3622,7 @@ func (o *PackageMove) UnmarshalJSON(data []byte) (err error) { delete(additionalProperties, "is_deleteable") delete(additionalProperties, "is_downloadable") delete(additionalProperties, "is_hidden") + delete(additionalProperties, "is_malware_detected") delete(additionalProperties, "is_moveable") delete(additionalProperties, "is_quarantinable") delete(additionalProperties, "is_quarantined") @@ -3595,6 +3680,7 @@ func (o *PackageMove) UnmarshalJSON(data []byte) (err error) { delete(additionalProperties, "uploader_url") delete(additionalProperties, "version") delete(additionalProperties, "version_orig") + delete(additionalProperties, "vulnerability_counts") delete(additionalProperties, "vulnerability_scan_results_url") o.AdditionalProperties = additionalProperties } diff --git a/model_package_move_request.go b/model_package_move_request.go index 4563367d..e8c028ec 100644 --- a/model_package_move_request.go +++ b/model_package_move_request.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1288.1 +API version: 1.1341.7 Contact: support@cloudsmith.io */ @@ -22,7 +22,10 @@ var _ MappedNullable = &PackageMoveRequest{} // PackageMoveRequest struct for PackageMoveRequest type PackageMoveRequest struct { // The name of the destination repository without the namespace. - Destination string `json:"destination"` + Destination string `json:"destination"` + // Whether the package has been detected as containing malware. Requires Ultra plan. + IsMalwareDetected *bool `json:"is_malware_detected,omitempty"` + VulnerabilityCounts NullableWebOSVSeverityCounts `json:"vulnerability_counts,omitempty"` AdditionalProperties map[string]interface{} } @@ -70,6 +73,81 @@ func (o *PackageMoveRequest) SetDestination(v string) { o.Destination = v } +// GetIsMalwareDetected returns the IsMalwareDetected field value if set, zero value otherwise. +func (o *PackageMoveRequest) GetIsMalwareDetected() bool { + if o == nil || IsNil(o.IsMalwareDetected) { + var ret bool + return ret + } + return *o.IsMalwareDetected +} + +// GetIsMalwareDetectedOk returns a tuple with the IsMalwareDetected field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PackageMoveRequest) GetIsMalwareDetectedOk() (*bool, bool) { + if o == nil || IsNil(o.IsMalwareDetected) { + return nil, false + } + return o.IsMalwareDetected, true +} + +// HasIsMalwareDetected returns a boolean if a field has been set. +func (o *PackageMoveRequest) HasIsMalwareDetected() bool { + if o != nil && !IsNil(o.IsMalwareDetected) { + return true + } + + return false +} + +// SetIsMalwareDetected gets a reference to the given bool and assigns it to the IsMalwareDetected field. +func (o *PackageMoveRequest) SetIsMalwareDetected(v bool) { + o.IsMalwareDetected = &v +} + +// GetVulnerabilityCounts returns the VulnerabilityCounts field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PackageMoveRequest) GetVulnerabilityCounts() WebOSVSeverityCounts { + if o == nil || IsNil(o.VulnerabilityCounts.Get()) { + var ret WebOSVSeverityCounts + return ret + } + return *o.VulnerabilityCounts.Get() +} + +// GetVulnerabilityCountsOk returns a tuple with the VulnerabilityCounts 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 *PackageMoveRequest) GetVulnerabilityCountsOk() (*WebOSVSeverityCounts, bool) { + if o == nil { + return nil, false + } + return o.VulnerabilityCounts.Get(), o.VulnerabilityCounts.IsSet() +} + +// HasVulnerabilityCounts returns a boolean if a field has been set. +func (o *PackageMoveRequest) HasVulnerabilityCounts() bool { + if o != nil && o.VulnerabilityCounts.IsSet() { + return true + } + + return false +} + +// SetVulnerabilityCounts gets a reference to the given NullableWebOSVSeverityCounts and assigns it to the VulnerabilityCounts field. +func (o *PackageMoveRequest) SetVulnerabilityCounts(v WebOSVSeverityCounts) { + o.VulnerabilityCounts.Set(&v) +} + +// SetVulnerabilityCountsNil sets the value for VulnerabilityCounts to be an explicit nil +func (o *PackageMoveRequest) SetVulnerabilityCountsNil() { + o.VulnerabilityCounts.Set(nil) +} + +// UnsetVulnerabilityCounts ensures that no value is present for VulnerabilityCounts, not even an explicit nil +func (o *PackageMoveRequest) UnsetVulnerabilityCounts() { + o.VulnerabilityCounts.Unset() +} + func (o PackageMoveRequest) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { @@ -81,6 +159,12 @@ func (o PackageMoveRequest) MarshalJSON() ([]byte, error) { func (o PackageMoveRequest) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["destination"] = o.Destination + if !IsNil(o.IsMalwareDetected) { + toSerialize["is_malware_detected"] = o.IsMalwareDetected + } + if o.VulnerabilityCounts.IsSet() { + toSerialize["vulnerability_counts"] = o.VulnerabilityCounts.Get() + } for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -125,6 +209,8 @@ func (o *PackageMoveRequest) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "destination") + delete(additionalProperties, "is_malware_detected") + delete(additionalProperties, "vulnerability_counts") o.AdditionalProperties = additionalProperties } diff --git a/model_package_quarantine.go b/model_package_quarantine.go index bbf7dde8..504d8c95 100644 --- a/model_package_quarantine.go +++ b/model_package_quarantine.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1288.1 +API version: 1.1341.7 Contact: support@cloudsmith.io */ @@ -51,23 +51,25 @@ type PackageQuarantine struct { // Unique and permanent identifier for the package. IdentifierPerm *string `json:"identifier_perm,omitempty"` // Return a map of identifier field names and their values. - Identifiers *map[string]string `json:"identifiers,omitempty"` - Indexed *bool `json:"indexed,omitempty"` - IsCancellable *bool `json:"is_cancellable,omitempty"` - IsCopyable *bool `json:"is_copyable,omitempty"` - IsDeleteable *bool `json:"is_deleteable,omitempty"` - IsDownloadable *bool `json:"is_downloadable,omitempty"` - IsHidden *bool `json:"is_hidden,omitempty"` - IsMoveable *bool `json:"is_moveable,omitempty"` - IsQuarantinable *bool `json:"is_quarantinable,omitempty"` - IsQuarantined *bool `json:"is_quarantined,omitempty"` - IsResyncable *bool `json:"is_resyncable,omitempty"` - IsSecurityScannable *bool `json:"is_security_scannable,omitempty"` - IsSyncAwaiting *bool `json:"is_sync_awaiting,omitempty"` - IsSyncCompleted *bool `json:"is_sync_completed,omitempty"` - IsSyncFailed *bool `json:"is_sync_failed,omitempty"` - IsSyncInFlight *bool `json:"is_sync_in_flight,omitempty"` - IsSyncInProgress *bool `json:"is_sync_in_progress,omitempty"` + Identifiers *map[string]string `json:"identifiers,omitempty"` + Indexed *bool `json:"indexed,omitempty"` + IsCancellable *bool `json:"is_cancellable,omitempty"` + IsCopyable *bool `json:"is_copyable,omitempty"` + IsDeleteable *bool `json:"is_deleteable,omitempty"` + IsDownloadable *bool `json:"is_downloadable,omitempty"` + IsHidden *bool `json:"is_hidden,omitempty"` + // Whether the package has been detected as containing malware. Requires Ultra plan. + IsMalwareDetected *bool `json:"is_malware_detected,omitempty"` + IsMoveable *bool `json:"is_moveable,omitempty"` + IsQuarantinable *bool `json:"is_quarantinable,omitempty"` + IsQuarantined *bool `json:"is_quarantined,omitempty"` + IsResyncable *bool `json:"is_resyncable,omitempty"` + IsSecurityScannable *bool `json:"is_security_scannable,omitempty"` + IsSyncAwaiting *bool `json:"is_sync_awaiting,omitempty"` + IsSyncCompleted *bool `json:"is_sync_completed,omitempty"` + IsSyncFailed *bool `json:"is_sync_failed,omitempty"` + IsSyncInFlight *bool `json:"is_sync_in_flight,omitempty"` + IsSyncInProgress *bool `json:"is_sync_in_progress,omitempty"` // The license of this package. License NullableString `json:"license,omitempty"` // The name of this package. @@ -137,9 +139,10 @@ type PackageQuarantine struct { Uploader *string `json:"uploader,omitempty"` UploaderUrl *string `json:"uploader_url,omitempty"` // The raw version for this package. - Version NullableString `json:"version,omitempty"` - VersionOrig *string `json:"version_orig,omitempty"` - VulnerabilityScanResultsUrl *string `json:"vulnerability_scan_results_url,omitempty"` + Version NullableString `json:"version,omitempty"` + VersionOrig *string `json:"version_orig,omitempty"` + VulnerabilityCounts NullableWebOSVSeverityCounts `json:"vulnerability_counts,omitempty"` + VulnerabilityScanResultsUrl *string `json:"vulnerability_scan_results_url,omitempty"` AdditionalProperties map[string]interface{} } @@ -1199,6 +1202,38 @@ func (o *PackageQuarantine) SetIsHidden(v bool) { o.IsHidden = &v } +// GetIsMalwareDetected returns the IsMalwareDetected field value if set, zero value otherwise. +func (o *PackageQuarantine) GetIsMalwareDetected() bool { + if o == nil || IsNil(o.IsMalwareDetected) { + var ret bool + return ret + } + return *o.IsMalwareDetected +} + +// GetIsMalwareDetectedOk returns a tuple with the IsMalwareDetected field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PackageQuarantine) GetIsMalwareDetectedOk() (*bool, bool) { + if o == nil || IsNil(o.IsMalwareDetected) { + return nil, false + } + return o.IsMalwareDetected, true +} + +// HasIsMalwareDetected returns a boolean if a field has been set. +func (o *PackageQuarantine) HasIsMalwareDetected() bool { + if o != nil && !IsNil(o.IsMalwareDetected) { + return true + } + + return false +} + +// SetIsMalwareDetected gets a reference to the given bool and assigns it to the IsMalwareDetected field. +func (o *PackageQuarantine) SetIsMalwareDetected(v bool) { + o.IsMalwareDetected = &v +} + // GetIsMoveable returns the IsMoveable field value if set, zero value otherwise. func (o *PackageQuarantine) GetIsMoveable() bool { if o == nil || IsNil(o.IsMoveable) { @@ -3134,6 +3169,49 @@ func (o *PackageQuarantine) SetVersionOrig(v string) { o.VersionOrig = &v } +// GetVulnerabilityCounts returns the VulnerabilityCounts field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PackageQuarantine) GetVulnerabilityCounts() WebOSVSeverityCounts { + if o == nil || IsNil(o.VulnerabilityCounts.Get()) { + var ret WebOSVSeverityCounts + return ret + } + return *o.VulnerabilityCounts.Get() +} + +// GetVulnerabilityCountsOk returns a tuple with the VulnerabilityCounts 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 *PackageQuarantine) GetVulnerabilityCountsOk() (*WebOSVSeverityCounts, bool) { + if o == nil { + return nil, false + } + return o.VulnerabilityCounts.Get(), o.VulnerabilityCounts.IsSet() +} + +// HasVulnerabilityCounts returns a boolean if a field has been set. +func (o *PackageQuarantine) HasVulnerabilityCounts() bool { + if o != nil && o.VulnerabilityCounts.IsSet() { + return true + } + + return false +} + +// SetVulnerabilityCounts gets a reference to the given NullableWebOSVSeverityCounts and assigns it to the VulnerabilityCounts field. +func (o *PackageQuarantine) SetVulnerabilityCounts(v WebOSVSeverityCounts) { + o.VulnerabilityCounts.Set(&v) +} + +// SetVulnerabilityCountsNil sets the value for VulnerabilityCounts to be an explicit nil +func (o *PackageQuarantine) SetVulnerabilityCountsNil() { + o.VulnerabilityCounts.Set(nil) +} + +// UnsetVulnerabilityCounts ensures that no value is present for VulnerabilityCounts, not even an explicit nil +func (o *PackageQuarantine) UnsetVulnerabilityCounts() { + o.VulnerabilityCounts.Unset() +} + // GetVulnerabilityScanResultsUrl returns the VulnerabilityScanResultsUrl field value if set, zero value otherwise. func (o *PackageQuarantine) GetVulnerabilityScanResultsUrl() string { if o == nil || IsNil(o.VulnerabilityScanResultsUrl) { @@ -3266,6 +3344,9 @@ func (o PackageQuarantine) ToMap() (map[string]interface{}, error) { if !IsNil(o.IsHidden) { toSerialize["is_hidden"] = o.IsHidden } + if !IsNil(o.IsMalwareDetected) { + toSerialize["is_malware_detected"] = o.IsMalwareDetected + } if !IsNil(o.IsMoveable) { toSerialize["is_moveable"] = o.IsMoveable } @@ -3434,6 +3515,9 @@ func (o PackageQuarantine) ToMap() (map[string]interface{}, error) { if !IsNil(o.VersionOrig) { toSerialize["version_orig"] = o.VersionOrig } + if o.VulnerabilityCounts.IsSet() { + toSerialize["vulnerability_counts"] = o.VulnerabilityCounts.Get() + } if !IsNil(o.VulnerabilityScanResultsUrl) { toSerialize["vulnerability_scan_results_url"] = o.VulnerabilityScanResultsUrl } @@ -3489,6 +3573,7 @@ func (o *PackageQuarantine) UnmarshalJSON(data []byte) (err error) { delete(additionalProperties, "is_deleteable") delete(additionalProperties, "is_downloadable") delete(additionalProperties, "is_hidden") + delete(additionalProperties, "is_malware_detected") delete(additionalProperties, "is_moveable") delete(additionalProperties, "is_quarantinable") delete(additionalProperties, "is_quarantined") @@ -3545,6 +3630,7 @@ func (o *PackageQuarantine) UnmarshalJSON(data []byte) (err error) { delete(additionalProperties, "uploader_url") delete(additionalProperties, "version") delete(additionalProperties, "version_orig") + delete(additionalProperties, "vulnerability_counts") delete(additionalProperties, "vulnerability_scan_results_url") o.AdditionalProperties = additionalProperties } diff --git a/model_package_quarantine_request.go b/model_package_quarantine_request.go index 604e32e9..3be7bb89 100644 --- a/model_package_quarantine_request.go +++ b/model_package_quarantine_request.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1288.1 +API version: 1.1341.7 Contact: support@cloudsmith.io */ @@ -20,10 +20,13 @@ var _ MappedNullable = &PackageQuarantineRequest{} // PackageQuarantineRequest struct for PackageQuarantineRequest type PackageQuarantineRequest struct { + // Whether the package has been detected as containing malware. Requires Ultra plan. + IsMalwareDetected *bool `json:"is_malware_detected,omitempty"` // If true, the package is released from quarantine. Release *bool `json:"release,omitempty"` // If true, the package is released from quarantine. Note: This field is deprecated, please use 'release' instead. - Restore *bool `json:"restore,omitempty"` + Restore *bool `json:"restore,omitempty"` + VulnerabilityCounts NullableWebOSVSeverityCounts `json:"vulnerability_counts,omitempty"` AdditionalProperties map[string]interface{} } @@ -46,6 +49,38 @@ func NewPackageQuarantineRequestWithDefaults() *PackageQuarantineRequest { return &this } +// GetIsMalwareDetected returns the IsMalwareDetected field value if set, zero value otherwise. +func (o *PackageQuarantineRequest) GetIsMalwareDetected() bool { + if o == nil || IsNil(o.IsMalwareDetected) { + var ret bool + return ret + } + return *o.IsMalwareDetected +} + +// GetIsMalwareDetectedOk returns a tuple with the IsMalwareDetected field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PackageQuarantineRequest) GetIsMalwareDetectedOk() (*bool, bool) { + if o == nil || IsNil(o.IsMalwareDetected) { + return nil, false + } + return o.IsMalwareDetected, true +} + +// HasIsMalwareDetected returns a boolean if a field has been set. +func (o *PackageQuarantineRequest) HasIsMalwareDetected() bool { + if o != nil && !IsNil(o.IsMalwareDetected) { + return true + } + + return false +} + +// SetIsMalwareDetected gets a reference to the given bool and assigns it to the IsMalwareDetected field. +func (o *PackageQuarantineRequest) SetIsMalwareDetected(v bool) { + o.IsMalwareDetected = &v +} + // GetRelease returns the Release field value if set, zero value otherwise. func (o *PackageQuarantineRequest) GetRelease() bool { if o == nil || IsNil(o.Release) { @@ -110,6 +145,49 @@ func (o *PackageQuarantineRequest) SetRestore(v bool) { o.Restore = &v } +// GetVulnerabilityCounts returns the VulnerabilityCounts field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PackageQuarantineRequest) GetVulnerabilityCounts() WebOSVSeverityCounts { + if o == nil || IsNil(o.VulnerabilityCounts.Get()) { + var ret WebOSVSeverityCounts + return ret + } + return *o.VulnerabilityCounts.Get() +} + +// GetVulnerabilityCountsOk returns a tuple with the VulnerabilityCounts 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 *PackageQuarantineRequest) GetVulnerabilityCountsOk() (*WebOSVSeverityCounts, bool) { + if o == nil { + return nil, false + } + return o.VulnerabilityCounts.Get(), o.VulnerabilityCounts.IsSet() +} + +// HasVulnerabilityCounts returns a boolean if a field has been set. +func (o *PackageQuarantineRequest) HasVulnerabilityCounts() bool { + if o != nil && o.VulnerabilityCounts.IsSet() { + return true + } + + return false +} + +// SetVulnerabilityCounts gets a reference to the given NullableWebOSVSeverityCounts and assigns it to the VulnerabilityCounts field. +func (o *PackageQuarantineRequest) SetVulnerabilityCounts(v WebOSVSeverityCounts) { + o.VulnerabilityCounts.Set(&v) +} + +// SetVulnerabilityCountsNil sets the value for VulnerabilityCounts to be an explicit nil +func (o *PackageQuarantineRequest) SetVulnerabilityCountsNil() { + o.VulnerabilityCounts.Set(nil) +} + +// UnsetVulnerabilityCounts ensures that no value is present for VulnerabilityCounts, not even an explicit nil +func (o *PackageQuarantineRequest) UnsetVulnerabilityCounts() { + o.VulnerabilityCounts.Unset() +} + func (o PackageQuarantineRequest) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { @@ -120,12 +198,18 @@ func (o PackageQuarantineRequest) MarshalJSON() ([]byte, error) { func (o PackageQuarantineRequest) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} + if !IsNil(o.IsMalwareDetected) { + toSerialize["is_malware_detected"] = o.IsMalwareDetected + } if !IsNil(o.Release) { toSerialize["release"] = o.Release } if !IsNil(o.Restore) { toSerialize["restore"] = o.Restore } + if o.VulnerabilityCounts.IsSet() { + toSerialize["vulnerability_counts"] = o.VulnerabilityCounts.Get() + } for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -148,8 +232,10 @@ func (o *PackageQuarantineRequest) UnmarshalJSON(data []byte) (err error) { additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "is_malware_detected") delete(additionalProperties, "release") delete(additionalProperties, "restore") + delete(additionalProperties, "vulnerability_counts") o.AdditionalProperties = additionalProperties } diff --git a/model_package_recycle_bin.go b/model_package_recycle_bin.go index 3b7c5444..b080a9d2 100644 --- a/model_package_recycle_bin.go +++ b/model_package_recycle_bin.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1288.1 +API version: 1.1341.7 Contact: support@cloudsmith.io */ diff --git a/model_package_resync.go b/model_package_resync.go index 3e514542..f61a9a82 100644 --- a/model_package_resync.go +++ b/model_package_resync.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1288.1 +API version: 1.1341.7 Contact: support@cloudsmith.io */ @@ -51,23 +51,25 @@ type PackageResync struct { // Unique and permanent identifier for the package. IdentifierPerm *string `json:"identifier_perm,omitempty"` // Return a map of identifier field names and their values. - Identifiers *map[string]string `json:"identifiers,omitempty"` - Indexed *bool `json:"indexed,omitempty"` - IsCancellable *bool `json:"is_cancellable,omitempty"` - IsCopyable *bool `json:"is_copyable,omitempty"` - IsDeleteable *bool `json:"is_deleteable,omitempty"` - IsDownloadable *bool `json:"is_downloadable,omitempty"` - IsHidden *bool `json:"is_hidden,omitempty"` - IsMoveable *bool `json:"is_moveable,omitempty"` - IsQuarantinable *bool `json:"is_quarantinable,omitempty"` - IsQuarantined *bool `json:"is_quarantined,omitempty"` - IsResyncable *bool `json:"is_resyncable,omitempty"` - IsSecurityScannable *bool `json:"is_security_scannable,omitempty"` - IsSyncAwaiting *bool `json:"is_sync_awaiting,omitempty"` - IsSyncCompleted *bool `json:"is_sync_completed,omitempty"` - IsSyncFailed *bool `json:"is_sync_failed,omitempty"` - IsSyncInFlight *bool `json:"is_sync_in_flight,omitempty"` - IsSyncInProgress *bool `json:"is_sync_in_progress,omitempty"` + Identifiers *map[string]string `json:"identifiers,omitempty"` + Indexed *bool `json:"indexed,omitempty"` + IsCancellable *bool `json:"is_cancellable,omitempty"` + IsCopyable *bool `json:"is_copyable,omitempty"` + IsDeleteable *bool `json:"is_deleteable,omitempty"` + IsDownloadable *bool `json:"is_downloadable,omitempty"` + IsHidden *bool `json:"is_hidden,omitempty"` + // Whether the package has been detected as containing malware. Requires Ultra plan. + IsMalwareDetected *bool `json:"is_malware_detected,omitempty"` + IsMoveable *bool `json:"is_moveable,omitempty"` + IsQuarantinable *bool `json:"is_quarantinable,omitempty"` + IsQuarantined *bool `json:"is_quarantined,omitempty"` + IsResyncable *bool `json:"is_resyncable,omitempty"` + IsSecurityScannable *bool `json:"is_security_scannable,omitempty"` + IsSyncAwaiting *bool `json:"is_sync_awaiting,omitempty"` + IsSyncCompleted *bool `json:"is_sync_completed,omitempty"` + IsSyncFailed *bool `json:"is_sync_failed,omitempty"` + IsSyncInFlight *bool `json:"is_sync_in_flight,omitempty"` + IsSyncInProgress *bool `json:"is_sync_in_progress,omitempty"` // The license of this package. License NullableString `json:"license,omitempty"` // The name of this package. @@ -139,9 +141,10 @@ type PackageResync struct { Uploader *string `json:"uploader,omitempty"` UploaderUrl *string `json:"uploader_url,omitempty"` // The raw version for this package. - Version NullableString `json:"version,omitempty"` - VersionOrig *string `json:"version_orig,omitempty"` - VulnerabilityScanResultsUrl *string `json:"vulnerability_scan_results_url,omitempty"` + Version NullableString `json:"version,omitempty"` + VersionOrig *string `json:"version_orig,omitempty"` + VulnerabilityCounts NullableWebOSVSeverityCounts `json:"vulnerability_counts,omitempty"` + VulnerabilityScanResultsUrl *string `json:"vulnerability_scan_results_url,omitempty"` AdditionalProperties map[string]interface{} } @@ -1201,6 +1204,38 @@ func (o *PackageResync) SetIsHidden(v bool) { o.IsHidden = &v } +// GetIsMalwareDetected returns the IsMalwareDetected field value if set, zero value otherwise. +func (o *PackageResync) GetIsMalwareDetected() bool { + if o == nil || IsNil(o.IsMalwareDetected) { + var ret bool + return ret + } + return *o.IsMalwareDetected +} + +// GetIsMalwareDetectedOk returns a tuple with the IsMalwareDetected field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PackageResync) GetIsMalwareDetectedOk() (*bool, bool) { + if o == nil || IsNil(o.IsMalwareDetected) { + return nil, false + } + return o.IsMalwareDetected, true +} + +// HasIsMalwareDetected returns a boolean if a field has been set. +func (o *PackageResync) HasIsMalwareDetected() bool { + if o != nil && !IsNil(o.IsMalwareDetected) { + return true + } + + return false +} + +// SetIsMalwareDetected gets a reference to the given bool and assigns it to the IsMalwareDetected field. +func (o *PackageResync) SetIsMalwareDetected(v bool) { + o.IsMalwareDetected = &v +} + // GetIsMoveable returns the IsMoveable field value if set, zero value otherwise. func (o *PackageResync) GetIsMoveable() bool { if o == nil || IsNil(o.IsMoveable) { @@ -3179,6 +3214,49 @@ func (o *PackageResync) SetVersionOrig(v string) { o.VersionOrig = &v } +// GetVulnerabilityCounts returns the VulnerabilityCounts field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PackageResync) GetVulnerabilityCounts() WebOSVSeverityCounts { + if o == nil || IsNil(o.VulnerabilityCounts.Get()) { + var ret WebOSVSeverityCounts + return ret + } + return *o.VulnerabilityCounts.Get() +} + +// GetVulnerabilityCountsOk returns a tuple with the VulnerabilityCounts 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 *PackageResync) GetVulnerabilityCountsOk() (*WebOSVSeverityCounts, bool) { + if o == nil { + return nil, false + } + return o.VulnerabilityCounts.Get(), o.VulnerabilityCounts.IsSet() +} + +// HasVulnerabilityCounts returns a boolean if a field has been set. +func (o *PackageResync) HasVulnerabilityCounts() bool { + if o != nil && o.VulnerabilityCounts.IsSet() { + return true + } + + return false +} + +// SetVulnerabilityCounts gets a reference to the given NullableWebOSVSeverityCounts and assigns it to the VulnerabilityCounts field. +func (o *PackageResync) SetVulnerabilityCounts(v WebOSVSeverityCounts) { + o.VulnerabilityCounts.Set(&v) +} + +// SetVulnerabilityCountsNil sets the value for VulnerabilityCounts to be an explicit nil +func (o *PackageResync) SetVulnerabilityCountsNil() { + o.VulnerabilityCounts.Set(nil) +} + +// UnsetVulnerabilityCounts ensures that no value is present for VulnerabilityCounts, not even an explicit nil +func (o *PackageResync) UnsetVulnerabilityCounts() { + o.VulnerabilityCounts.Unset() +} + // GetVulnerabilityScanResultsUrl returns the VulnerabilityScanResultsUrl field value if set, zero value otherwise. func (o *PackageResync) GetVulnerabilityScanResultsUrl() string { if o == nil || IsNil(o.VulnerabilityScanResultsUrl) { @@ -3311,6 +3389,9 @@ func (o PackageResync) ToMap() (map[string]interface{}, error) { if !IsNil(o.IsHidden) { toSerialize["is_hidden"] = o.IsHidden } + if !IsNil(o.IsMalwareDetected) { + toSerialize["is_malware_detected"] = o.IsMalwareDetected + } if !IsNil(o.IsMoveable) { toSerialize["is_moveable"] = o.IsMoveable } @@ -3482,6 +3563,9 @@ func (o PackageResync) ToMap() (map[string]interface{}, error) { if !IsNil(o.VersionOrig) { toSerialize["version_orig"] = o.VersionOrig } + if o.VulnerabilityCounts.IsSet() { + toSerialize["vulnerability_counts"] = o.VulnerabilityCounts.Get() + } if !IsNil(o.VulnerabilityScanResultsUrl) { toSerialize["vulnerability_scan_results_url"] = o.VulnerabilityScanResultsUrl } @@ -3537,6 +3621,7 @@ func (o *PackageResync) UnmarshalJSON(data []byte) (err error) { delete(additionalProperties, "is_deleteable") delete(additionalProperties, "is_downloadable") delete(additionalProperties, "is_hidden") + delete(additionalProperties, "is_malware_detected") delete(additionalProperties, "is_moveable") delete(additionalProperties, "is_quarantinable") delete(additionalProperties, "is_quarantined") @@ -3594,6 +3679,7 @@ func (o *PackageResync) UnmarshalJSON(data []byte) (err error) { delete(additionalProperties, "uploader_url") delete(additionalProperties, "version") delete(additionalProperties, "version_orig") + delete(additionalProperties, "vulnerability_counts") delete(additionalProperties, "vulnerability_scan_results_url") o.AdditionalProperties = additionalProperties } diff --git a/model_package_status.go b/model_package_status.go index 5f5996eb..6ac1904d 100644 --- a/model_package_status.go +++ b/model_package_status.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1288.1 +API version: 1.1341.7 Contact: support@cloudsmith.io */ diff --git a/model_package_tag.go b/model_package_tag.go index 4b5f4993..361ecb09 100644 --- a/model_package_tag.go +++ b/model_package_tag.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1288.1 +API version: 1.1341.7 Contact: support@cloudsmith.io */ @@ -59,7 +59,9 @@ type PackageTag struct { IsDownloadable *bool `json:"is_downloadable,omitempty"` IsHidden *bool `json:"is_hidden,omitempty"` // If true, created tags will be immutable. An immutable flag is a tag that cannot be removed from a package. - IsImmutable *bool `json:"is_immutable,omitempty"` + IsImmutable *bool `json:"is_immutable,omitempty"` + // Whether the package has been detected as containing malware. Requires Ultra plan. + IsMalwareDetected *bool `json:"is_malware_detected,omitempty"` IsMoveable *bool `json:"is_moveable,omitempty"` IsQuarantinable *bool `json:"is_quarantinable,omitempty"` IsQuarantined *bool `json:"is_quarantined,omitempty"` @@ -139,9 +141,10 @@ type PackageTag struct { Uploader *string `json:"uploader,omitempty"` UploaderUrl *string `json:"uploader_url,omitempty"` // The raw version for this package. - Version NullableString `json:"version,omitempty"` - VersionOrig *string `json:"version_orig,omitempty"` - VulnerabilityScanResultsUrl *string `json:"vulnerability_scan_results_url,omitempty"` + Version NullableString `json:"version,omitempty"` + VersionOrig *string `json:"version_orig,omitempty"` + VulnerabilityCounts NullableWebOSVSeverityCounts `json:"vulnerability_counts,omitempty"` + VulnerabilityScanResultsUrl *string `json:"vulnerability_scan_results_url,omitempty"` AdditionalProperties map[string]interface{} } @@ -1237,6 +1240,38 @@ func (o *PackageTag) SetIsImmutable(v bool) { o.IsImmutable = &v } +// GetIsMalwareDetected returns the IsMalwareDetected field value if set, zero value otherwise. +func (o *PackageTag) GetIsMalwareDetected() bool { + if o == nil || IsNil(o.IsMalwareDetected) { + var ret bool + return ret + } + return *o.IsMalwareDetected +} + +// GetIsMalwareDetectedOk returns a tuple with the IsMalwareDetected field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PackageTag) GetIsMalwareDetectedOk() (*bool, bool) { + if o == nil || IsNil(o.IsMalwareDetected) { + return nil, false + } + return o.IsMalwareDetected, true +} + +// HasIsMalwareDetected returns a boolean if a field has been set. +func (o *PackageTag) HasIsMalwareDetected() bool { + if o != nil && !IsNil(o.IsMalwareDetected) { + return true + } + + return false +} + +// SetIsMalwareDetected gets a reference to the given bool and assigns it to the IsMalwareDetected field. +func (o *PackageTag) SetIsMalwareDetected(v bool) { + o.IsMalwareDetected = &v +} + // GetIsMoveable returns the IsMoveable field value if set, zero value otherwise. func (o *PackageTag) GetIsMoveable() bool { if o == nil || IsNil(o.IsMoveable) { @@ -3183,6 +3218,49 @@ func (o *PackageTag) SetVersionOrig(v string) { o.VersionOrig = &v } +// GetVulnerabilityCounts returns the VulnerabilityCounts field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PackageTag) GetVulnerabilityCounts() WebOSVSeverityCounts { + if o == nil || IsNil(o.VulnerabilityCounts.Get()) { + var ret WebOSVSeverityCounts + return ret + } + return *o.VulnerabilityCounts.Get() +} + +// GetVulnerabilityCountsOk returns a tuple with the VulnerabilityCounts 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 *PackageTag) GetVulnerabilityCountsOk() (*WebOSVSeverityCounts, bool) { + if o == nil { + return nil, false + } + return o.VulnerabilityCounts.Get(), o.VulnerabilityCounts.IsSet() +} + +// HasVulnerabilityCounts returns a boolean if a field has been set. +func (o *PackageTag) HasVulnerabilityCounts() bool { + if o != nil && o.VulnerabilityCounts.IsSet() { + return true + } + + return false +} + +// SetVulnerabilityCounts gets a reference to the given NullableWebOSVSeverityCounts and assigns it to the VulnerabilityCounts field. +func (o *PackageTag) SetVulnerabilityCounts(v WebOSVSeverityCounts) { + o.VulnerabilityCounts.Set(&v) +} + +// SetVulnerabilityCountsNil sets the value for VulnerabilityCounts to be an explicit nil +func (o *PackageTag) SetVulnerabilityCountsNil() { + o.VulnerabilityCounts.Set(nil) +} + +// UnsetVulnerabilityCounts ensures that no value is present for VulnerabilityCounts, not even an explicit nil +func (o *PackageTag) UnsetVulnerabilityCounts() { + o.VulnerabilityCounts.Unset() +} + // GetVulnerabilityScanResultsUrl returns the VulnerabilityScanResultsUrl field value if set, zero value otherwise. func (o *PackageTag) GetVulnerabilityScanResultsUrl() string { if o == nil || IsNil(o.VulnerabilityScanResultsUrl) { @@ -3318,6 +3396,9 @@ func (o PackageTag) ToMap() (map[string]interface{}, error) { if !IsNil(o.IsImmutable) { toSerialize["is_immutable"] = o.IsImmutable } + if !IsNil(o.IsMalwareDetected) { + toSerialize["is_malware_detected"] = o.IsMalwareDetected + } if !IsNil(o.IsMoveable) { toSerialize["is_moveable"] = o.IsMoveable } @@ -3486,6 +3567,9 @@ func (o PackageTag) ToMap() (map[string]interface{}, error) { if !IsNil(o.VersionOrig) { toSerialize["version_orig"] = o.VersionOrig } + if o.VulnerabilityCounts.IsSet() { + toSerialize["vulnerability_counts"] = o.VulnerabilityCounts.Get() + } if !IsNil(o.VulnerabilityScanResultsUrl) { toSerialize["vulnerability_scan_results_url"] = o.VulnerabilityScanResultsUrl } @@ -3542,6 +3626,7 @@ func (o *PackageTag) UnmarshalJSON(data []byte) (err error) { delete(additionalProperties, "is_downloadable") delete(additionalProperties, "is_hidden") delete(additionalProperties, "is_immutable") + delete(additionalProperties, "is_malware_detected") delete(additionalProperties, "is_moveable") delete(additionalProperties, "is_quarantinable") delete(additionalProperties, "is_quarantined") @@ -3598,6 +3683,7 @@ func (o *PackageTag) UnmarshalJSON(data []byte) (err error) { delete(additionalProperties, "uploader_url") delete(additionalProperties, "version") delete(additionalProperties, "version_orig") + delete(additionalProperties, "vulnerability_counts") delete(additionalProperties, "vulnerability_scan_results_url") o.AdditionalProperties = additionalProperties } diff --git a/model_package_tag_request.go b/model_package_tag_request.go index 7cf4fdc3..3ec14fee 100644 --- a/model_package_tag_request.go +++ b/model_package_tag_request.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1288.1 +API version: 1.1341.7 Contact: support@cloudsmith.io */ @@ -23,8 +23,11 @@ type PackageTagRequest struct { Action NullableString `json:"action,omitempty"` // If true, created tags will be immutable. An immutable flag is a tag that cannot be removed from a package. IsImmutable *bool `json:"is_immutable,omitempty"` + // Whether the package has been detected as containing malware. Requires Ultra plan. + IsMalwareDetected *bool `json:"is_malware_detected,omitempty"` // A list of tags to apply the action to. Not required for clears. - Tags []string `json:"tags,omitempty"` + Tags []string `json:"tags,omitempty"` + VulnerabilityCounts NullableWebOSVSeverityCounts `json:"vulnerability_counts,omitempty"` AdditionalProperties map[string]interface{} } @@ -130,6 +133,38 @@ func (o *PackageTagRequest) SetIsImmutable(v bool) { o.IsImmutable = &v } +// GetIsMalwareDetected returns the IsMalwareDetected field value if set, zero value otherwise. +func (o *PackageTagRequest) GetIsMalwareDetected() bool { + if o == nil || IsNil(o.IsMalwareDetected) { + var ret bool + return ret + } + return *o.IsMalwareDetected +} + +// GetIsMalwareDetectedOk returns a tuple with the IsMalwareDetected field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PackageTagRequest) GetIsMalwareDetectedOk() (*bool, bool) { + if o == nil || IsNil(o.IsMalwareDetected) { + return nil, false + } + return o.IsMalwareDetected, true +} + +// HasIsMalwareDetected returns a boolean if a field has been set. +func (o *PackageTagRequest) HasIsMalwareDetected() bool { + if o != nil && !IsNil(o.IsMalwareDetected) { + return true + } + + return false +} + +// SetIsMalwareDetected gets a reference to the given bool and assigns it to the IsMalwareDetected field. +func (o *PackageTagRequest) SetIsMalwareDetected(v bool) { + o.IsMalwareDetected = &v +} + // GetTags returns the Tags field value if set, zero value otherwise (both if not set or set to explicit null). func (o *PackageTagRequest) GetTags() []string { if o == nil { @@ -163,6 +198,49 @@ func (o *PackageTagRequest) SetTags(v []string) { o.Tags = v } +// GetVulnerabilityCounts returns the VulnerabilityCounts field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PackageTagRequest) GetVulnerabilityCounts() WebOSVSeverityCounts { + if o == nil || IsNil(o.VulnerabilityCounts.Get()) { + var ret WebOSVSeverityCounts + return ret + } + return *o.VulnerabilityCounts.Get() +} + +// GetVulnerabilityCountsOk returns a tuple with the VulnerabilityCounts 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 *PackageTagRequest) GetVulnerabilityCountsOk() (*WebOSVSeverityCounts, bool) { + if o == nil { + return nil, false + } + return o.VulnerabilityCounts.Get(), o.VulnerabilityCounts.IsSet() +} + +// HasVulnerabilityCounts returns a boolean if a field has been set. +func (o *PackageTagRequest) HasVulnerabilityCounts() bool { + if o != nil && o.VulnerabilityCounts.IsSet() { + return true + } + + return false +} + +// SetVulnerabilityCounts gets a reference to the given NullableWebOSVSeverityCounts and assigns it to the VulnerabilityCounts field. +func (o *PackageTagRequest) SetVulnerabilityCounts(v WebOSVSeverityCounts) { + o.VulnerabilityCounts.Set(&v) +} + +// SetVulnerabilityCountsNil sets the value for VulnerabilityCounts to be an explicit nil +func (o *PackageTagRequest) SetVulnerabilityCountsNil() { + o.VulnerabilityCounts.Set(nil) +} + +// UnsetVulnerabilityCounts ensures that no value is present for VulnerabilityCounts, not even an explicit nil +func (o *PackageTagRequest) UnsetVulnerabilityCounts() { + o.VulnerabilityCounts.Unset() +} + func (o PackageTagRequest) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { @@ -179,9 +257,15 @@ func (o PackageTagRequest) ToMap() (map[string]interface{}, error) { if !IsNil(o.IsImmutable) { toSerialize["is_immutable"] = o.IsImmutable } + if !IsNil(o.IsMalwareDetected) { + toSerialize["is_malware_detected"] = o.IsMalwareDetected + } if o.Tags != nil { toSerialize["tags"] = o.Tags } + if o.VulnerabilityCounts.IsSet() { + toSerialize["vulnerability_counts"] = o.VulnerabilityCounts.Get() + } for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -206,7 +290,9 @@ func (o *PackageTagRequest) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "action") delete(additionalProperties, "is_immutable") + delete(additionalProperties, "is_malware_detected") delete(additionalProperties, "tags") + delete(additionalProperties, "vulnerability_counts") o.AdditionalProperties = additionalProperties } diff --git a/model_package_usage_metrics.go b/model_package_usage_metrics.go index f6b5ac66..ade2c5be 100644 --- a/model_package_usage_metrics.go +++ b/model_package_usage_metrics.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1288.1 +API version: 1.1341.7 Contact: support@cloudsmith.io */ diff --git a/model_package_vulnerability.go b/model_package_vulnerability.go index b0949e0e..1f5d2c60 100644 --- a/model_package_vulnerability.go +++ b/model_package_vulnerability.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1288.1 +API version: 1.1341.7 Contact: support@cloudsmith.io */ @@ -22,11 +22,14 @@ var _ MappedNullable = &PackageVulnerability{} // PackageVulnerability struct for PackageVulnerability type PackageVulnerability struct { Identifier string `json:"identifier"` + // Whether the package has been detected as containing malware. Requires Ultra plan. + IsMalwareDetected *bool `json:"is_malware_detected,omitempty"` // The name of this package. Name NullableString `json:"name,omitempty"` Url NullableString `json:"url,omitempty"` // The raw version for this package. - Version NullableString `json:"version,omitempty"` + Version NullableString `json:"version,omitempty"` + VulnerabilityCounts NullableWebOSVSeverityCounts `json:"vulnerability_counts,omitempty"` AdditionalProperties map[string]interface{} } @@ -74,6 +77,38 @@ func (o *PackageVulnerability) SetIdentifier(v string) { o.Identifier = v } +// GetIsMalwareDetected returns the IsMalwareDetected field value if set, zero value otherwise. +func (o *PackageVulnerability) GetIsMalwareDetected() bool { + if o == nil || IsNil(o.IsMalwareDetected) { + var ret bool + return ret + } + return *o.IsMalwareDetected +} + +// GetIsMalwareDetectedOk returns a tuple with the IsMalwareDetected field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PackageVulnerability) GetIsMalwareDetectedOk() (*bool, bool) { + if o == nil || IsNil(o.IsMalwareDetected) { + return nil, false + } + return o.IsMalwareDetected, true +} + +// HasIsMalwareDetected returns a boolean if a field has been set. +func (o *PackageVulnerability) HasIsMalwareDetected() bool { + if o != nil && !IsNil(o.IsMalwareDetected) { + return true + } + + return false +} + +// SetIsMalwareDetected gets a reference to the given bool and assigns it to the IsMalwareDetected field. +func (o *PackageVulnerability) SetIsMalwareDetected(v bool) { + o.IsMalwareDetected = &v +} + // GetName returns the Name field value if set, zero value otherwise (both if not set or set to explicit null). func (o *PackageVulnerability) GetName() string { if o == nil || IsNil(o.Name.Get()) { @@ -203,6 +238,49 @@ func (o *PackageVulnerability) UnsetVersion() { o.Version.Unset() } +// GetVulnerabilityCounts returns the VulnerabilityCounts field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PackageVulnerability) GetVulnerabilityCounts() WebOSVSeverityCounts { + if o == nil || IsNil(o.VulnerabilityCounts.Get()) { + var ret WebOSVSeverityCounts + return ret + } + return *o.VulnerabilityCounts.Get() +} + +// GetVulnerabilityCountsOk returns a tuple with the VulnerabilityCounts 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 *PackageVulnerability) GetVulnerabilityCountsOk() (*WebOSVSeverityCounts, bool) { + if o == nil { + return nil, false + } + return o.VulnerabilityCounts.Get(), o.VulnerabilityCounts.IsSet() +} + +// HasVulnerabilityCounts returns a boolean if a field has been set. +func (o *PackageVulnerability) HasVulnerabilityCounts() bool { + if o != nil && o.VulnerabilityCounts.IsSet() { + return true + } + + return false +} + +// SetVulnerabilityCounts gets a reference to the given NullableWebOSVSeverityCounts and assigns it to the VulnerabilityCounts field. +func (o *PackageVulnerability) SetVulnerabilityCounts(v WebOSVSeverityCounts) { + o.VulnerabilityCounts.Set(&v) +} + +// SetVulnerabilityCountsNil sets the value for VulnerabilityCounts to be an explicit nil +func (o *PackageVulnerability) SetVulnerabilityCountsNil() { + o.VulnerabilityCounts.Set(nil) +} + +// UnsetVulnerabilityCounts ensures that no value is present for VulnerabilityCounts, not even an explicit nil +func (o *PackageVulnerability) UnsetVulnerabilityCounts() { + o.VulnerabilityCounts.Unset() +} + func (o PackageVulnerability) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { @@ -214,6 +292,9 @@ func (o PackageVulnerability) MarshalJSON() ([]byte, error) { func (o PackageVulnerability) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["identifier"] = o.Identifier + if !IsNil(o.IsMalwareDetected) { + toSerialize["is_malware_detected"] = o.IsMalwareDetected + } if o.Name.IsSet() { toSerialize["name"] = o.Name.Get() } @@ -223,6 +304,9 @@ func (o PackageVulnerability) ToMap() (map[string]interface{}, error) { if o.Version.IsSet() { toSerialize["version"] = o.Version.Get() } + if o.VulnerabilityCounts.IsSet() { + toSerialize["vulnerability_counts"] = o.VulnerabilityCounts.Get() + } for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -267,9 +351,11 @@ func (o *PackageVulnerability) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "identifier") + delete(additionalProperties, "is_malware_detected") delete(additionalProperties, "name") delete(additionalProperties, "url") delete(additionalProperties, "version") + delete(additionalProperties, "vulnerability_counts") o.AdditionalProperties = additionalProperties } diff --git a/model_package_vulnerability_policy_evaluation_request.go b/model_package_vulnerability_policy_evaluation_request.go index 708e1d94..ade649b4 100644 --- a/model_package_vulnerability_policy_evaluation_request.go +++ b/model_package_vulnerability_policy_evaluation_request.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1288.1 +API version: 1.1341.7 Contact: support@cloudsmith.io */ diff --git a/model_package_vulnerability_policy_violation_log.go b/model_package_vulnerability_policy_violation_log.go index bb66714f..aa9753b7 100644 --- a/model_package_vulnerability_policy_violation_log.go +++ b/model_package_vulnerability_policy_violation_log.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1288.1 +API version: 1.1341.7 Contact: support@cloudsmith.io */ diff --git a/model_package_vulnerability_policy_violation_log_cursor_page.go b/model_package_vulnerability_policy_violation_log_cursor_page.go index 0d00751a..1120fe5e 100644 --- a/model_package_vulnerability_policy_violation_log_cursor_page.go +++ b/model_package_vulnerability_policy_violation_log_cursor_page.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1288.1 +API version: 1.1341.7 Contact: support@cloudsmith.io */ diff --git a/model_packages_groups_list_200_response.go b/model_packages_groups_list_200_response.go index aa62af7b..80c7e72c 100644 --- a/model_packages_groups_list_200_response.go +++ b/model_packages_groups_list_200_response.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1288.1 +API version: 1.1341.7 Contact: support@cloudsmith.io */ diff --git a/model_provider_settings.go b/model_provider_settings.go index bd979001..fcca6283 100644 --- a/model_provider_settings.go +++ b/model_provider_settings.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1288.1 +API version: 1.1341.7 Contact: support@cloudsmith.io */ diff --git a/model_provider_settings_write.go b/model_provider_settings_write.go index 27f9369a..c8d27e11 100644 --- a/model_provider_settings_write.go +++ b/model_provider_settings_write.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1288.1 +API version: 1.1341.7 Contact: support@cloudsmith.io */ diff --git a/model_provider_settings_write_request.go b/model_provider_settings_write_request.go index 94cd6947..912092b9 100644 --- a/model_provider_settings_write_request.go +++ b/model_provider_settings_write_request.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1288.1 +API version: 1.1341.7 Contact: support@cloudsmith.io */ diff --git a/model_provider_settings_write_request_patch.go b/model_provider_settings_write_request_patch.go index db17d7c0..ed574256 100644 --- a/model_provider_settings_write_request_patch.go +++ b/model_provider_settings_write_request_patch.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1288.1 +API version: 1.1341.7 Contact: support@cloudsmith.io */ diff --git a/model_python_package_upload.go b/model_python_package_upload.go index 522f81a7..f333fde5 100644 --- a/model_python_package_upload.go +++ b/model_python_package_upload.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1288.1 +API version: 1.1341.7 Contact: support@cloudsmith.io */ @@ -49,23 +49,25 @@ type PythonPackageUpload struct { // Unique and permanent identifier for the package. IdentifierPerm *string `json:"identifier_perm,omitempty"` // Return a map of identifier field names and their values. - Identifiers *map[string]string `json:"identifiers,omitempty"` - Indexed *bool `json:"indexed,omitempty"` - IsCancellable *bool `json:"is_cancellable,omitempty"` - IsCopyable *bool `json:"is_copyable,omitempty"` - IsDeleteable *bool `json:"is_deleteable,omitempty"` - IsDownloadable *bool `json:"is_downloadable,omitempty"` - IsHidden *bool `json:"is_hidden,omitempty"` - IsMoveable *bool `json:"is_moveable,omitempty"` - IsQuarantinable *bool `json:"is_quarantinable,omitempty"` - IsQuarantined *bool `json:"is_quarantined,omitempty"` - IsResyncable *bool `json:"is_resyncable,omitempty"` - IsSecurityScannable *bool `json:"is_security_scannable,omitempty"` - IsSyncAwaiting *bool `json:"is_sync_awaiting,omitempty"` - IsSyncCompleted *bool `json:"is_sync_completed,omitempty"` - IsSyncFailed *bool `json:"is_sync_failed,omitempty"` - IsSyncInFlight *bool `json:"is_sync_in_flight,omitempty"` - IsSyncInProgress *bool `json:"is_sync_in_progress,omitempty"` + Identifiers *map[string]string `json:"identifiers,omitempty"` + Indexed *bool `json:"indexed,omitempty"` + IsCancellable *bool `json:"is_cancellable,omitempty"` + IsCopyable *bool `json:"is_copyable,omitempty"` + IsDeleteable *bool `json:"is_deleteable,omitempty"` + IsDownloadable *bool `json:"is_downloadable,omitempty"` + IsHidden *bool `json:"is_hidden,omitempty"` + // Whether the package has been detected as containing malware. Requires Ultra plan. + IsMalwareDetected *bool `json:"is_malware_detected,omitempty"` + IsMoveable *bool `json:"is_moveable,omitempty"` + IsQuarantinable *bool `json:"is_quarantinable,omitempty"` + IsQuarantined *bool `json:"is_quarantined,omitempty"` + IsResyncable *bool `json:"is_resyncable,omitempty"` + IsSecurityScannable *bool `json:"is_security_scannable,omitempty"` + IsSyncAwaiting *bool `json:"is_sync_awaiting,omitempty"` + IsSyncCompleted *bool `json:"is_sync_completed,omitempty"` + IsSyncFailed *bool `json:"is_sync_failed,omitempty"` + IsSyncInFlight *bool `json:"is_sync_in_flight,omitempty"` + IsSyncInProgress *bool `json:"is_sync_in_progress,omitempty"` // The license of this package. License NullableString `json:"license,omitempty"` // The name of this package. @@ -135,9 +137,10 @@ type PythonPackageUpload struct { Uploader *string `json:"uploader,omitempty"` UploaderUrl *string `json:"uploader_url,omitempty"` // The raw version for this package. - Version NullableString `json:"version,omitempty"` - VersionOrig *string `json:"version_orig,omitempty"` - VulnerabilityScanResultsUrl *string `json:"vulnerability_scan_results_url,omitempty"` + Version NullableString `json:"version,omitempty"` + VersionOrig *string `json:"version_orig,omitempty"` + VulnerabilityCounts NullableWebOSVSeverityCounts `json:"vulnerability_counts,omitempty"` + VulnerabilityScanResultsUrl *string `json:"vulnerability_scan_results_url,omitempty"` AdditionalProperties map[string]interface{} } @@ -1154,6 +1157,38 @@ func (o *PythonPackageUpload) SetIsHidden(v bool) { o.IsHidden = &v } +// GetIsMalwareDetected returns the IsMalwareDetected field value if set, zero value otherwise. +func (o *PythonPackageUpload) GetIsMalwareDetected() bool { + if o == nil || IsNil(o.IsMalwareDetected) { + var ret bool + return ret + } + return *o.IsMalwareDetected +} + +// GetIsMalwareDetectedOk returns a tuple with the IsMalwareDetected field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PythonPackageUpload) GetIsMalwareDetectedOk() (*bool, bool) { + if o == nil || IsNil(o.IsMalwareDetected) { + return nil, false + } + return o.IsMalwareDetected, true +} + +// HasIsMalwareDetected returns a boolean if a field has been set. +func (o *PythonPackageUpload) HasIsMalwareDetected() bool { + if o != nil && !IsNil(o.IsMalwareDetected) { + return true + } + + return false +} + +// SetIsMalwareDetected gets a reference to the given bool and assigns it to the IsMalwareDetected field. +func (o *PythonPackageUpload) SetIsMalwareDetected(v bool) { + o.IsMalwareDetected = &v +} + // GetIsMoveable returns the IsMoveable field value if set, zero value otherwise. func (o *PythonPackageUpload) GetIsMoveable() bool { if o == nil || IsNil(o.IsMoveable) { @@ -3100,6 +3135,49 @@ func (o *PythonPackageUpload) SetVersionOrig(v string) { o.VersionOrig = &v } +// GetVulnerabilityCounts returns the VulnerabilityCounts field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PythonPackageUpload) GetVulnerabilityCounts() WebOSVSeverityCounts { + if o == nil || IsNil(o.VulnerabilityCounts.Get()) { + var ret WebOSVSeverityCounts + return ret + } + return *o.VulnerabilityCounts.Get() +} + +// GetVulnerabilityCountsOk returns a tuple with the VulnerabilityCounts 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 *PythonPackageUpload) GetVulnerabilityCountsOk() (*WebOSVSeverityCounts, bool) { + if o == nil { + return nil, false + } + return o.VulnerabilityCounts.Get(), o.VulnerabilityCounts.IsSet() +} + +// HasVulnerabilityCounts returns a boolean if a field has been set. +func (o *PythonPackageUpload) HasVulnerabilityCounts() bool { + if o != nil && o.VulnerabilityCounts.IsSet() { + return true + } + + return false +} + +// SetVulnerabilityCounts gets a reference to the given NullableWebOSVSeverityCounts and assigns it to the VulnerabilityCounts field. +func (o *PythonPackageUpload) SetVulnerabilityCounts(v WebOSVSeverityCounts) { + o.VulnerabilityCounts.Set(&v) +} + +// SetVulnerabilityCountsNil sets the value for VulnerabilityCounts to be an explicit nil +func (o *PythonPackageUpload) SetVulnerabilityCountsNil() { + o.VulnerabilityCounts.Set(nil) +} + +// UnsetVulnerabilityCounts ensures that no value is present for VulnerabilityCounts, not even an explicit nil +func (o *PythonPackageUpload) UnsetVulnerabilityCounts() { + o.VulnerabilityCounts.Unset() +} + // GetVulnerabilityScanResultsUrl returns the VulnerabilityScanResultsUrl field value if set, zero value otherwise. func (o *PythonPackageUpload) GetVulnerabilityScanResultsUrl() string { if o == nil || IsNil(o.VulnerabilityScanResultsUrl) { @@ -3229,6 +3307,9 @@ func (o PythonPackageUpload) ToMap() (map[string]interface{}, error) { if !IsNil(o.IsHidden) { toSerialize["is_hidden"] = o.IsHidden } + if !IsNil(o.IsMalwareDetected) { + toSerialize["is_malware_detected"] = o.IsMalwareDetected + } if !IsNil(o.IsMoveable) { toSerialize["is_moveable"] = o.IsMoveable } @@ -3397,6 +3478,9 @@ func (o PythonPackageUpload) ToMap() (map[string]interface{}, error) { if !IsNil(o.VersionOrig) { toSerialize["version_orig"] = o.VersionOrig } + if o.VulnerabilityCounts.IsSet() { + toSerialize["vulnerability_counts"] = o.VulnerabilityCounts.Get() + } if !IsNil(o.VulnerabilityScanResultsUrl) { toSerialize["vulnerability_scan_results_url"] = o.VulnerabilityScanResultsUrl } @@ -3451,6 +3535,7 @@ func (o *PythonPackageUpload) UnmarshalJSON(data []byte) (err error) { delete(additionalProperties, "is_deleteable") delete(additionalProperties, "is_downloadable") delete(additionalProperties, "is_hidden") + delete(additionalProperties, "is_malware_detected") delete(additionalProperties, "is_moveable") delete(additionalProperties, "is_quarantinable") delete(additionalProperties, "is_quarantined") @@ -3507,6 +3592,7 @@ func (o *PythonPackageUpload) UnmarshalJSON(data []byte) (err error) { delete(additionalProperties, "uploader_url") delete(additionalProperties, "version") delete(additionalProperties, "version_orig") + delete(additionalProperties, "vulnerability_counts") delete(additionalProperties, "vulnerability_scan_results_url") o.AdditionalProperties = additionalProperties } diff --git a/model_python_package_upload_request.go b/model_python_package_upload_request.go index 3d58bde4..4482d807 100644 --- a/model_python_package_upload_request.go +++ b/model_python_package_upload_request.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1288.1 +API version: 1.1341.7 Contact: support@cloudsmith.io */ @@ -21,12 +21,15 @@ var _ MappedNullable = &PythonPackageUploadRequest{} // PythonPackageUploadRequest struct for PythonPackageUploadRequest type PythonPackageUploadRequest struct { + // Whether the package has been detected as containing malware. Requires Ultra plan. + IsMalwareDetected *bool `json:"is_malware_detected,omitempty"` // The primary file for the package. PackageFile string `json:"package_file"` // If true, the uploaded package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate. Republish *bool `json:"republish,omitempty"` // A comma-separated values list of tags to add to the package. - Tags NullableString `json:"tags,omitempty"` + Tags NullableString `json:"tags,omitempty"` + VulnerabilityCounts NullableWebOSVSeverityCounts `json:"vulnerability_counts,omitempty"` AdditionalProperties map[string]interface{} } @@ -50,6 +53,38 @@ func NewPythonPackageUploadRequestWithDefaults() *PythonPackageUploadRequest { return &this } +// GetIsMalwareDetected returns the IsMalwareDetected field value if set, zero value otherwise. +func (o *PythonPackageUploadRequest) GetIsMalwareDetected() bool { + if o == nil || IsNil(o.IsMalwareDetected) { + var ret bool + return ret + } + return *o.IsMalwareDetected +} + +// GetIsMalwareDetectedOk returns a tuple with the IsMalwareDetected field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PythonPackageUploadRequest) GetIsMalwareDetectedOk() (*bool, bool) { + if o == nil || IsNil(o.IsMalwareDetected) { + return nil, false + } + return o.IsMalwareDetected, true +} + +// HasIsMalwareDetected returns a boolean if a field has been set. +func (o *PythonPackageUploadRequest) HasIsMalwareDetected() bool { + if o != nil && !IsNil(o.IsMalwareDetected) { + return true + } + + return false +} + +// SetIsMalwareDetected gets a reference to the given bool and assigns it to the IsMalwareDetected field. +func (o *PythonPackageUploadRequest) SetIsMalwareDetected(v bool) { + o.IsMalwareDetected = &v +} + // GetPackageFile returns the PackageFile field value func (o *PythonPackageUploadRequest) GetPackageFile() string { if o == nil { @@ -149,6 +184,49 @@ func (o *PythonPackageUploadRequest) UnsetTags() { o.Tags.Unset() } +// GetVulnerabilityCounts returns the VulnerabilityCounts field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PythonPackageUploadRequest) GetVulnerabilityCounts() WebOSVSeverityCounts { + if o == nil || IsNil(o.VulnerabilityCounts.Get()) { + var ret WebOSVSeverityCounts + return ret + } + return *o.VulnerabilityCounts.Get() +} + +// GetVulnerabilityCountsOk returns a tuple with the VulnerabilityCounts 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 *PythonPackageUploadRequest) GetVulnerabilityCountsOk() (*WebOSVSeverityCounts, bool) { + if o == nil { + return nil, false + } + return o.VulnerabilityCounts.Get(), o.VulnerabilityCounts.IsSet() +} + +// HasVulnerabilityCounts returns a boolean if a field has been set. +func (o *PythonPackageUploadRequest) HasVulnerabilityCounts() bool { + if o != nil && o.VulnerabilityCounts.IsSet() { + return true + } + + return false +} + +// SetVulnerabilityCounts gets a reference to the given NullableWebOSVSeverityCounts and assigns it to the VulnerabilityCounts field. +func (o *PythonPackageUploadRequest) SetVulnerabilityCounts(v WebOSVSeverityCounts) { + o.VulnerabilityCounts.Set(&v) +} + +// SetVulnerabilityCountsNil sets the value for VulnerabilityCounts to be an explicit nil +func (o *PythonPackageUploadRequest) SetVulnerabilityCountsNil() { + o.VulnerabilityCounts.Set(nil) +} + +// UnsetVulnerabilityCounts ensures that no value is present for VulnerabilityCounts, not even an explicit nil +func (o *PythonPackageUploadRequest) UnsetVulnerabilityCounts() { + o.VulnerabilityCounts.Unset() +} + func (o PythonPackageUploadRequest) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { @@ -159,6 +237,9 @@ func (o PythonPackageUploadRequest) MarshalJSON() ([]byte, error) { func (o PythonPackageUploadRequest) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} + if !IsNil(o.IsMalwareDetected) { + toSerialize["is_malware_detected"] = o.IsMalwareDetected + } toSerialize["package_file"] = o.PackageFile if !IsNil(o.Republish) { toSerialize["republish"] = o.Republish @@ -166,6 +247,9 @@ func (o PythonPackageUploadRequest) ToMap() (map[string]interface{}, error) { if o.Tags.IsSet() { toSerialize["tags"] = o.Tags.Get() } + if o.VulnerabilityCounts.IsSet() { + toSerialize["vulnerability_counts"] = o.VulnerabilityCounts.Get() + } for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -209,9 +293,11 @@ func (o *PythonPackageUploadRequest) UnmarshalJSON(data []byte) (err error) { additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "is_malware_detected") delete(additionalProperties, "package_file") delete(additionalProperties, "republish") delete(additionalProperties, "tags") + delete(additionalProperties, "vulnerability_counts") o.AdditionalProperties = additionalProperties } diff --git a/model_python_upstream.go b/model_python_upstream.go index 3f77c94b..f620e463 100644 --- a/model_python_upstream.go +++ b/model_python_upstream.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1288.1 +API version: 1.1341.7 Contact: support@cloudsmith.io */ diff --git a/model_python_upstream_request.go b/model_python_upstream_request.go index 8719c7d2..b8f9f71c 100644 --- a/model_python_upstream_request.go +++ b/model_python_upstream_request.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1288.1 +API version: 1.1341.7 Contact: support@cloudsmith.io */ diff --git a/model_python_upstream_request_patch.go b/model_python_upstream_request_patch.go index 4da99948..cc5b359f 100644 --- a/model_python_upstream_request_patch.go +++ b/model_python_upstream_request_patch.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1288.1 +API version: 1.1341.7 Contact: support@cloudsmith.io */ diff --git a/model_quota.go b/model_quota.go index 7539fbce..44af1f21 100644 --- a/model_quota.go +++ b/model_quota.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1288.1 +API version: 1.1341.7 Contact: support@cloudsmith.io */ diff --git a/model_quota_history.go b/model_quota_history.go index 42d4fc36..b5e43ecd 100644 --- a/model_quota_history.go +++ b/model_quota_history.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1288.1 +API version: 1.1341.7 Contact: support@cloudsmith.io */ diff --git a/model_rate_check.go b/model_rate_check.go index 67bd3954..7f32dab6 100644 --- a/model_rate_check.go +++ b/model_rate_check.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1288.1 +API version: 1.1341.7 Contact: support@cloudsmith.io */ diff --git a/model_raw_package_upload.go b/model_raw_package_upload.go index 34a20d94..a08c4696 100644 --- a/model_raw_package_upload.go +++ b/model_raw_package_upload.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1288.1 +API version: 1.1341.7 Contact: support@cloudsmith.io */ @@ -49,23 +49,25 @@ type RawPackageUpload struct { // Unique and permanent identifier for the package. IdentifierPerm *string `json:"identifier_perm,omitempty"` // Return a map of identifier field names and their values. - Identifiers *map[string]string `json:"identifiers,omitempty"` - Indexed *bool `json:"indexed,omitempty"` - IsCancellable *bool `json:"is_cancellable,omitempty"` - IsCopyable *bool `json:"is_copyable,omitempty"` - IsDeleteable *bool `json:"is_deleteable,omitempty"` - IsDownloadable *bool `json:"is_downloadable,omitempty"` - IsHidden *bool `json:"is_hidden,omitempty"` - IsMoveable *bool `json:"is_moveable,omitempty"` - IsQuarantinable *bool `json:"is_quarantinable,omitempty"` - IsQuarantined *bool `json:"is_quarantined,omitempty"` - IsResyncable *bool `json:"is_resyncable,omitempty"` - IsSecurityScannable *bool `json:"is_security_scannable,omitempty"` - IsSyncAwaiting *bool `json:"is_sync_awaiting,omitempty"` - IsSyncCompleted *bool `json:"is_sync_completed,omitempty"` - IsSyncFailed *bool `json:"is_sync_failed,omitempty"` - IsSyncInFlight *bool `json:"is_sync_in_flight,omitempty"` - IsSyncInProgress *bool `json:"is_sync_in_progress,omitempty"` + Identifiers *map[string]string `json:"identifiers,omitempty"` + Indexed *bool `json:"indexed,omitempty"` + IsCancellable *bool `json:"is_cancellable,omitempty"` + IsCopyable *bool `json:"is_copyable,omitempty"` + IsDeleteable *bool `json:"is_deleteable,omitempty"` + IsDownloadable *bool `json:"is_downloadable,omitempty"` + IsHidden *bool `json:"is_hidden,omitempty"` + // Whether the package has been detected as containing malware. Requires Ultra plan. + IsMalwareDetected *bool `json:"is_malware_detected,omitempty"` + IsMoveable *bool `json:"is_moveable,omitempty"` + IsQuarantinable *bool `json:"is_quarantinable,omitempty"` + IsQuarantined *bool `json:"is_quarantined,omitempty"` + IsResyncable *bool `json:"is_resyncable,omitempty"` + IsSecurityScannable *bool `json:"is_security_scannable,omitempty"` + IsSyncAwaiting *bool `json:"is_sync_awaiting,omitempty"` + IsSyncCompleted *bool `json:"is_sync_completed,omitempty"` + IsSyncFailed *bool `json:"is_sync_failed,omitempty"` + IsSyncInFlight *bool `json:"is_sync_in_flight,omitempty"` + IsSyncInProgress *bool `json:"is_sync_in_progress,omitempty"` // The license of this package. License NullableString `json:"license,omitempty"` // The name of this package. @@ -135,9 +137,10 @@ type RawPackageUpload struct { Uploader *string `json:"uploader,omitempty"` UploaderUrl *string `json:"uploader_url,omitempty"` // The raw version for this package. - Version NullableString `json:"version,omitempty"` - VersionOrig *string `json:"version_orig,omitempty"` - VulnerabilityScanResultsUrl *string `json:"vulnerability_scan_results_url,omitempty"` + Version NullableString `json:"version,omitempty"` + VersionOrig *string `json:"version_orig,omitempty"` + VulnerabilityCounts NullableWebOSVSeverityCounts `json:"vulnerability_counts,omitempty"` + VulnerabilityScanResultsUrl *string `json:"vulnerability_scan_results_url,omitempty"` AdditionalProperties map[string]interface{} } @@ -1154,6 +1157,38 @@ func (o *RawPackageUpload) SetIsHidden(v bool) { o.IsHidden = &v } +// GetIsMalwareDetected returns the IsMalwareDetected field value if set, zero value otherwise. +func (o *RawPackageUpload) GetIsMalwareDetected() bool { + if o == nil || IsNil(o.IsMalwareDetected) { + var ret bool + return ret + } + return *o.IsMalwareDetected +} + +// GetIsMalwareDetectedOk returns a tuple with the IsMalwareDetected field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RawPackageUpload) GetIsMalwareDetectedOk() (*bool, bool) { + if o == nil || IsNil(o.IsMalwareDetected) { + return nil, false + } + return o.IsMalwareDetected, true +} + +// HasIsMalwareDetected returns a boolean if a field has been set. +func (o *RawPackageUpload) HasIsMalwareDetected() bool { + if o != nil && !IsNil(o.IsMalwareDetected) { + return true + } + + return false +} + +// SetIsMalwareDetected gets a reference to the given bool and assigns it to the IsMalwareDetected field. +func (o *RawPackageUpload) SetIsMalwareDetected(v bool) { + o.IsMalwareDetected = &v +} + // GetIsMoveable returns the IsMoveable field value if set, zero value otherwise. func (o *RawPackageUpload) GetIsMoveable() bool { if o == nil || IsNil(o.IsMoveable) { @@ -3100,6 +3135,49 @@ func (o *RawPackageUpload) SetVersionOrig(v string) { o.VersionOrig = &v } +// GetVulnerabilityCounts returns the VulnerabilityCounts field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *RawPackageUpload) GetVulnerabilityCounts() WebOSVSeverityCounts { + if o == nil || IsNil(o.VulnerabilityCounts.Get()) { + var ret WebOSVSeverityCounts + return ret + } + return *o.VulnerabilityCounts.Get() +} + +// GetVulnerabilityCountsOk returns a tuple with the VulnerabilityCounts 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 *RawPackageUpload) GetVulnerabilityCountsOk() (*WebOSVSeverityCounts, bool) { + if o == nil { + return nil, false + } + return o.VulnerabilityCounts.Get(), o.VulnerabilityCounts.IsSet() +} + +// HasVulnerabilityCounts returns a boolean if a field has been set. +func (o *RawPackageUpload) HasVulnerabilityCounts() bool { + if o != nil && o.VulnerabilityCounts.IsSet() { + return true + } + + return false +} + +// SetVulnerabilityCounts gets a reference to the given NullableWebOSVSeverityCounts and assigns it to the VulnerabilityCounts field. +func (o *RawPackageUpload) SetVulnerabilityCounts(v WebOSVSeverityCounts) { + o.VulnerabilityCounts.Set(&v) +} + +// SetVulnerabilityCountsNil sets the value for VulnerabilityCounts to be an explicit nil +func (o *RawPackageUpload) SetVulnerabilityCountsNil() { + o.VulnerabilityCounts.Set(nil) +} + +// UnsetVulnerabilityCounts ensures that no value is present for VulnerabilityCounts, not even an explicit nil +func (o *RawPackageUpload) UnsetVulnerabilityCounts() { + o.VulnerabilityCounts.Unset() +} + // GetVulnerabilityScanResultsUrl returns the VulnerabilityScanResultsUrl field value if set, zero value otherwise. func (o *RawPackageUpload) GetVulnerabilityScanResultsUrl() string { if o == nil || IsNil(o.VulnerabilityScanResultsUrl) { @@ -3229,6 +3307,9 @@ func (o RawPackageUpload) ToMap() (map[string]interface{}, error) { if !IsNil(o.IsHidden) { toSerialize["is_hidden"] = o.IsHidden } + if !IsNil(o.IsMalwareDetected) { + toSerialize["is_malware_detected"] = o.IsMalwareDetected + } if !IsNil(o.IsMoveable) { toSerialize["is_moveable"] = o.IsMoveable } @@ -3397,6 +3478,9 @@ func (o RawPackageUpload) ToMap() (map[string]interface{}, error) { if !IsNil(o.VersionOrig) { toSerialize["version_orig"] = o.VersionOrig } + if o.VulnerabilityCounts.IsSet() { + toSerialize["vulnerability_counts"] = o.VulnerabilityCounts.Get() + } if !IsNil(o.VulnerabilityScanResultsUrl) { toSerialize["vulnerability_scan_results_url"] = o.VulnerabilityScanResultsUrl } @@ -3451,6 +3535,7 @@ func (o *RawPackageUpload) UnmarshalJSON(data []byte) (err error) { delete(additionalProperties, "is_deleteable") delete(additionalProperties, "is_downloadable") delete(additionalProperties, "is_hidden") + delete(additionalProperties, "is_malware_detected") delete(additionalProperties, "is_moveable") delete(additionalProperties, "is_quarantinable") delete(additionalProperties, "is_quarantined") @@ -3507,6 +3592,7 @@ func (o *RawPackageUpload) UnmarshalJSON(data []byte) (err error) { delete(additionalProperties, "uploader_url") delete(additionalProperties, "version") delete(additionalProperties, "version_orig") + delete(additionalProperties, "vulnerability_counts") delete(additionalProperties, "vulnerability_scan_results_url") o.AdditionalProperties = additionalProperties } diff --git a/model_raw_package_upload_request.go b/model_raw_package_upload_request.go index d1ef6e86..af0ad3ef 100644 --- a/model_raw_package_upload_request.go +++ b/model_raw_package_upload_request.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1288.1 +API version: 1.1341.7 Contact: support@cloudsmith.io */ @@ -25,6 +25,8 @@ type RawPackageUploadRequest struct { ContentType NullableString `json:"content_type,omitempty"` // A textual description of this package. Description NullableString `json:"description,omitempty"` + // Whether the package has been detected as containing malware. Requires Ultra plan. + IsMalwareDetected *bool `json:"is_malware_detected,omitempty"` // The name of this package. Name NullableString `json:"name,omitempty"` // The primary file for the package. @@ -36,7 +38,8 @@ type RawPackageUploadRequest struct { // A comma-separated values list of tags to add to the package. Tags NullableString `json:"tags,omitempty"` // The raw version for this package. - Version NullableString `json:"version,omitempty"` + Version NullableString `json:"version,omitempty"` + VulnerabilityCounts NullableWebOSVSeverityCounts `json:"vulnerability_counts,omitempty"` AdditionalProperties map[string]interface{} } @@ -146,6 +149,38 @@ func (o *RawPackageUploadRequest) UnsetDescription() { o.Description.Unset() } +// GetIsMalwareDetected returns the IsMalwareDetected field value if set, zero value otherwise. +func (o *RawPackageUploadRequest) GetIsMalwareDetected() bool { + if o == nil || IsNil(o.IsMalwareDetected) { + var ret bool + return ret + } + return *o.IsMalwareDetected +} + +// GetIsMalwareDetectedOk returns a tuple with the IsMalwareDetected field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RawPackageUploadRequest) GetIsMalwareDetectedOk() (*bool, bool) { + if o == nil || IsNil(o.IsMalwareDetected) { + return nil, false + } + return o.IsMalwareDetected, true +} + +// HasIsMalwareDetected returns a boolean if a field has been set. +func (o *RawPackageUploadRequest) HasIsMalwareDetected() bool { + if o != nil && !IsNil(o.IsMalwareDetected) { + return true + } + + return false +} + +// SetIsMalwareDetected gets a reference to the given bool and assigns it to the IsMalwareDetected field. +func (o *RawPackageUploadRequest) SetIsMalwareDetected(v bool) { + o.IsMalwareDetected = &v +} + // GetName returns the Name field value if set, zero value otherwise (both if not set or set to explicit null). func (o *RawPackageUploadRequest) GetName() string { if o == nil || IsNil(o.Name.Get()) { @@ -374,6 +409,49 @@ func (o *RawPackageUploadRequest) UnsetVersion() { o.Version.Unset() } +// GetVulnerabilityCounts returns the VulnerabilityCounts field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *RawPackageUploadRequest) GetVulnerabilityCounts() WebOSVSeverityCounts { + if o == nil || IsNil(o.VulnerabilityCounts.Get()) { + var ret WebOSVSeverityCounts + return ret + } + return *o.VulnerabilityCounts.Get() +} + +// GetVulnerabilityCountsOk returns a tuple with the VulnerabilityCounts 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 *RawPackageUploadRequest) GetVulnerabilityCountsOk() (*WebOSVSeverityCounts, bool) { + if o == nil { + return nil, false + } + return o.VulnerabilityCounts.Get(), o.VulnerabilityCounts.IsSet() +} + +// HasVulnerabilityCounts returns a boolean if a field has been set. +func (o *RawPackageUploadRequest) HasVulnerabilityCounts() bool { + if o != nil && o.VulnerabilityCounts.IsSet() { + return true + } + + return false +} + +// SetVulnerabilityCounts gets a reference to the given NullableWebOSVSeverityCounts and assigns it to the VulnerabilityCounts field. +func (o *RawPackageUploadRequest) SetVulnerabilityCounts(v WebOSVSeverityCounts) { + o.VulnerabilityCounts.Set(&v) +} + +// SetVulnerabilityCountsNil sets the value for VulnerabilityCounts to be an explicit nil +func (o *RawPackageUploadRequest) SetVulnerabilityCountsNil() { + o.VulnerabilityCounts.Set(nil) +} + +// UnsetVulnerabilityCounts ensures that no value is present for VulnerabilityCounts, not even an explicit nil +func (o *RawPackageUploadRequest) UnsetVulnerabilityCounts() { + o.VulnerabilityCounts.Unset() +} + func (o RawPackageUploadRequest) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { @@ -390,6 +468,9 @@ func (o RawPackageUploadRequest) ToMap() (map[string]interface{}, error) { if o.Description.IsSet() { toSerialize["description"] = o.Description.Get() } + if !IsNil(o.IsMalwareDetected) { + toSerialize["is_malware_detected"] = o.IsMalwareDetected + } if o.Name.IsSet() { toSerialize["name"] = o.Name.Get() } @@ -406,6 +487,9 @@ func (o RawPackageUploadRequest) ToMap() (map[string]interface{}, error) { if o.Version.IsSet() { toSerialize["version"] = o.Version.Get() } + if o.VulnerabilityCounts.IsSet() { + toSerialize["vulnerability_counts"] = o.VulnerabilityCounts.Get() + } for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -451,12 +535,14 @@ func (o *RawPackageUploadRequest) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "content_type") delete(additionalProperties, "description") + delete(additionalProperties, "is_malware_detected") delete(additionalProperties, "name") delete(additionalProperties, "package_file") delete(additionalProperties, "republish") delete(additionalProperties, "summary") delete(additionalProperties, "tags") delete(additionalProperties, "version") + delete(additionalProperties, "vulnerability_counts") o.AdditionalProperties = additionalProperties } diff --git a/model_recycle_bin_package.go b/model_recycle_bin_package.go index 7edab95a..cdf321dc 100644 --- a/model_recycle_bin_package.go +++ b/model_recycle_bin_package.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1288.1 +API version: 1.1341.7 Contact: support@cloudsmith.io */ @@ -32,8 +32,10 @@ type RecycleBinPackage struct { // Information about the retention rule that triggered deletion (if any). InvokedRetentionRule map[string]string `json:"invoked_retention_rule,omitempty"` IsDeleteable *bool `json:"is_deleteable,omitempty"` - IsQuarantined *bool `json:"is_quarantined,omitempty"` - IsRestorable *bool `json:"is_restorable,omitempty"` + // Whether the package has been detected as containing malware. Requires Ultra plan. + IsMalwareDetected *bool `json:"is_malware_detected,omitempty"` + IsQuarantined *bool `json:"is_quarantined,omitempty"` + IsRestorable *bool `json:"is_restorable,omitempty"` // The name of this package. Name NullableString `json:"name,omitempty"` // Whether or not the package has violated any policy. @@ -56,7 +58,8 @@ type RecycleBinPackage struct { UploadedAt *time.Time `json:"uploaded_at,omitempty"` Uploader *string `json:"uploader,omitempty"` // The raw version for this package. - Version NullableString `json:"version,omitempty"` + Version NullableString `json:"version,omitempty"` + VulnerabilityCounts NullableWebOSVSeverityCounts `json:"vulnerability_counts,omitempty"` AdditionalProperties map[string]interface{} } @@ -358,6 +361,38 @@ func (o *RecycleBinPackage) SetIsDeleteable(v bool) { o.IsDeleteable = &v } +// GetIsMalwareDetected returns the IsMalwareDetected field value if set, zero value otherwise. +func (o *RecycleBinPackage) GetIsMalwareDetected() bool { + if o == nil || IsNil(o.IsMalwareDetected) { + var ret bool + return ret + } + return *o.IsMalwareDetected +} + +// GetIsMalwareDetectedOk returns a tuple with the IsMalwareDetected field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RecycleBinPackage) GetIsMalwareDetectedOk() (*bool, bool) { + if o == nil || IsNil(o.IsMalwareDetected) { + return nil, false + } + return o.IsMalwareDetected, true +} + +// HasIsMalwareDetected returns a boolean if a field has been set. +func (o *RecycleBinPackage) HasIsMalwareDetected() bool { + if o != nil && !IsNil(o.IsMalwareDetected) { + return true + } + + return false +} + +// SetIsMalwareDetected gets a reference to the given bool and assigns it to the IsMalwareDetected field. +func (o *RecycleBinPackage) SetIsMalwareDetected(v bool) { + o.IsMalwareDetected = &v +} + // GetIsQuarantined returns the IsQuarantined field value if set, zero value otherwise. func (o *RecycleBinPackage) GetIsQuarantined() bool { if o == nil || IsNil(o.IsQuarantined) { @@ -914,6 +949,49 @@ func (o *RecycleBinPackage) UnsetVersion() { o.Version.Unset() } +// GetVulnerabilityCounts returns the VulnerabilityCounts field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *RecycleBinPackage) GetVulnerabilityCounts() WebOSVSeverityCounts { + if o == nil || IsNil(o.VulnerabilityCounts.Get()) { + var ret WebOSVSeverityCounts + return ret + } + return *o.VulnerabilityCounts.Get() +} + +// GetVulnerabilityCountsOk returns a tuple with the VulnerabilityCounts 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 *RecycleBinPackage) GetVulnerabilityCountsOk() (*WebOSVSeverityCounts, bool) { + if o == nil { + return nil, false + } + return o.VulnerabilityCounts.Get(), o.VulnerabilityCounts.IsSet() +} + +// HasVulnerabilityCounts returns a boolean if a field has been set. +func (o *RecycleBinPackage) HasVulnerabilityCounts() bool { + if o != nil && o.VulnerabilityCounts.IsSet() { + return true + } + + return false +} + +// SetVulnerabilityCounts gets a reference to the given NullableWebOSVSeverityCounts and assigns it to the VulnerabilityCounts field. +func (o *RecycleBinPackage) SetVulnerabilityCounts(v WebOSVSeverityCounts) { + o.VulnerabilityCounts.Set(&v) +} + +// SetVulnerabilityCountsNil sets the value for VulnerabilityCounts to be an explicit nil +func (o *RecycleBinPackage) SetVulnerabilityCountsNil() { + o.VulnerabilityCounts.Set(nil) +} + +// UnsetVulnerabilityCounts ensures that no value is present for VulnerabilityCounts, not even an explicit nil +func (o *RecycleBinPackage) UnsetVulnerabilityCounts() { + o.VulnerabilityCounts.Unset() +} + func (o RecycleBinPackage) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { @@ -948,6 +1026,9 @@ func (o RecycleBinPackage) ToMap() (map[string]interface{}, error) { if !IsNil(o.IsDeleteable) { toSerialize["is_deleteable"] = o.IsDeleteable } + if !IsNil(o.IsMalwareDetected) { + toSerialize["is_malware_detected"] = o.IsMalwareDetected + } if !IsNil(o.IsQuarantined) { toSerialize["is_quarantined"] = o.IsQuarantined } @@ -996,6 +1077,9 @@ func (o RecycleBinPackage) ToMap() (map[string]interface{}, error) { if o.Version.IsSet() { toSerialize["version"] = o.Version.Get() } + if o.VulnerabilityCounts.IsSet() { + toSerialize["vulnerability_counts"] = o.VulnerabilityCounts.Get() + } for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -1026,6 +1110,7 @@ func (o *RecycleBinPackage) UnmarshalJSON(data []byte) (err error) { delete(additionalProperties, "identifiers") delete(additionalProperties, "invoked_retention_rule") delete(additionalProperties, "is_deleteable") + delete(additionalProperties, "is_malware_detected") delete(additionalProperties, "is_quarantined") delete(additionalProperties, "is_restorable") delete(additionalProperties, "name") @@ -1042,6 +1127,7 @@ func (o *RecycleBinPackage) UnmarshalJSON(data []byte) (err error) { delete(additionalProperties, "uploaded_at") delete(additionalProperties, "uploader") delete(additionalProperties, "version") + delete(additionalProperties, "vulnerability_counts") o.AdditionalProperties = additionalProperties } diff --git a/model_repos_connected_list_200_response.go b/model_repos_connected_list_200_response.go index 7fda3a96..5d2034e5 100644 --- a/model_repos_connected_list_200_response.go +++ b/model_repos_connected_list_200_response.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1288.1 +API version: 1.1341.7 Contact: support@cloudsmith.io */ diff --git a/model_repository.go b/model_repository.go index 4f144d8a..9b452615 100644 --- a/model_repository.go +++ b/model_repository.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1288.1 +API version: 1.1341.7 Contact: support@cloudsmith.io */ diff --git a/model_repository_audit_log.go b/model_repository_audit_log.go index c8ca8259..3da291df 100644 --- a/model_repository_audit_log.go +++ b/model_repository_audit_log.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1288.1 +API version: 1.1341.7 Contact: support@cloudsmith.io */ diff --git a/model_repository_create.go b/model_repository_create.go index 48267ec9..961e6dbc 100644 --- a/model_repository_create.go +++ b/model_repository_create.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1288.1 +API version: 1.1341.7 Contact: support@cloudsmith.io */ diff --git a/model_repository_create_request.go b/model_repository_create_request.go index 5a34c678..a6ea9854 100644 --- a/model_repository_create_request.go +++ b/model_repository_create_request.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1288.1 +API version: 1.1341.7 Contact: support@cloudsmith.io */ diff --git a/model_repository_ecdsa_key.go b/model_repository_ecdsa_key.go index 1dcb207b..427e6e07 100644 --- a/model_repository_ecdsa_key.go +++ b/model_repository_ecdsa_key.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1288.1 +API version: 1.1341.7 Contact: support@cloudsmith.io */ diff --git a/model_repository_ecdsa_key_create.go b/model_repository_ecdsa_key_create.go index 74bb4879..478dfb48 100644 --- a/model_repository_ecdsa_key_create.go +++ b/model_repository_ecdsa_key_create.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1288.1 +API version: 1.1341.7 Contact: support@cloudsmith.io */ diff --git a/model_repository_ed25519_key.go b/model_repository_ed25519_key.go index 97d0c8e5..72f14a0b 100644 --- a/model_repository_ed25519_key.go +++ b/model_repository_ed25519_key.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1288.1 +API version: 1.1341.7 Contact: support@cloudsmith.io */ diff --git a/model_repository_ed25519_key_create.go b/model_repository_ed25519_key_create.go index fec2fa5b..e0d7e567 100644 --- a/model_repository_ed25519_key_create.go +++ b/model_repository_ed25519_key_create.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1288.1 +API version: 1.1341.7 Contact: support@cloudsmith.io */ diff --git a/model_repository_geo_ip_cidr.go b/model_repository_geo_ip_cidr.go index 2a593df9..fe8a9764 100644 --- a/model_repository_geo_ip_cidr.go +++ b/model_repository_geo_ip_cidr.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1288.1 +API version: 1.1341.7 Contact: support@cloudsmith.io */ diff --git a/model_repository_geo_ip_country_code.go b/model_repository_geo_ip_country_code.go index 51d2517c..8dd6ff62 100644 --- a/model_repository_geo_ip_country_code.go +++ b/model_repository_geo_ip_country_code.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1288.1 +API version: 1.1341.7 Contact: support@cloudsmith.io */ diff --git a/model_repository_geo_ip_rules.go b/model_repository_geo_ip_rules.go index 16872895..d70cb682 100644 --- a/model_repository_geo_ip_rules.go +++ b/model_repository_geo_ip_rules.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1288.1 +API version: 1.1341.7 Contact: support@cloudsmith.io */ diff --git a/model_repository_geo_ip_rules_request.go b/model_repository_geo_ip_rules_request.go index 2dab359c..121cb836 100644 --- a/model_repository_geo_ip_rules_request.go +++ b/model_repository_geo_ip_rules_request.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1288.1 +API version: 1.1341.7 Contact: support@cloudsmith.io */ diff --git a/model_repository_geo_ip_rules_request_patch.go b/model_repository_geo_ip_rules_request_patch.go index 2d3308f2..eeeec345 100644 --- a/model_repository_geo_ip_rules_request_patch.go +++ b/model_repository_geo_ip_rules_request_patch.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1288.1 +API version: 1.1341.7 Contact: support@cloudsmith.io */ diff --git a/model_repository_geo_ip_status.go b/model_repository_geo_ip_status.go index b518f6a9..a47f67d7 100644 --- a/model_repository_geo_ip_status.go +++ b/model_repository_geo_ip_status.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1288.1 +API version: 1.1341.7 Contact: support@cloudsmith.io */ diff --git a/model_repository_geo_ip_test_address.go b/model_repository_geo_ip_test_address.go index c0ea523d..41c197a4 100644 --- a/model_repository_geo_ip_test_address.go +++ b/model_repository_geo_ip_test_address.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1288.1 +API version: 1.1341.7 Contact: support@cloudsmith.io */ diff --git a/model_repository_geo_ip_test_address_response.go b/model_repository_geo_ip_test_address_response.go index 5691b1e1..04165edb 100644 --- a/model_repository_geo_ip_test_address_response.go +++ b/model_repository_geo_ip_test_address_response.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1288.1 +API version: 1.1341.7 Contact: support@cloudsmith.io */ diff --git a/model_repository_geo_ip_test_address_response_dict.go b/model_repository_geo_ip_test_address_response_dict.go index cbf41166..a2514a6f 100644 --- a/model_repository_geo_ip_test_address_response_dict.go +++ b/model_repository_geo_ip_test_address_response_dict.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1288.1 +API version: 1.1341.7 Contact: support@cloudsmith.io */ diff --git a/model_repository_gpg_key.go b/model_repository_gpg_key.go index 9eb71817..066cf5b6 100644 --- a/model_repository_gpg_key.go +++ b/model_repository_gpg_key.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1288.1 +API version: 1.1341.7 Contact: support@cloudsmith.io */ diff --git a/model_repository_gpg_key_create.go b/model_repository_gpg_key_create.go index f5d50483..c2e8d15e 100644 --- a/model_repository_gpg_key_create.go +++ b/model_repository_gpg_key_create.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1288.1 +API version: 1.1341.7 Contact: support@cloudsmith.io */ diff --git a/model_repository_privilege_dict.go b/model_repository_privilege_dict.go index 3867459a..f32eb090 100644 --- a/model_repository_privilege_dict.go +++ b/model_repository_privilege_dict.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1288.1 +API version: 1.1341.7 Contact: support@cloudsmith.io */ diff --git a/model_repository_privilege_input.go b/model_repository_privilege_input.go index 88cb8f91..3aab3e3c 100644 --- a/model_repository_privilege_input.go +++ b/model_repository_privilege_input.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1288.1 +API version: 1.1341.7 Contact: support@cloudsmith.io */ diff --git a/model_repository_privilege_input_request.go b/model_repository_privilege_input_request.go index e91ddc36..cd013bf8 100644 --- a/model_repository_privilege_input_request.go +++ b/model_repository_privilege_input_request.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1288.1 +API version: 1.1341.7 Contact: support@cloudsmith.io */ diff --git a/model_repository_privilege_input_request_patch.go b/model_repository_privilege_input_request_patch.go index 7a45026e..e84f67f3 100644 --- a/model_repository_privilege_input_request_patch.go +++ b/model_repository_privilege_input_request_patch.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1288.1 +API version: 1.1341.7 Contact: support@cloudsmith.io */ diff --git a/model_repository_request_patch.go b/model_repository_request_patch.go index 97ec9818..88262ac7 100644 --- a/model_repository_request_patch.go +++ b/model_repository_request_patch.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1288.1 +API version: 1.1341.7 Contact: support@cloudsmith.io */ diff --git a/model_repository_retention_rules.go b/model_repository_retention_rules.go index a91512eb..7fb5281e 100644 --- a/model_repository_retention_rules.go +++ b/model_repository_retention_rules.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1288.1 +API version: 1.1341.7 Contact: support@cloudsmith.io */ diff --git a/model_repository_retention_rules_request_patch.go b/model_repository_retention_rules_request_patch.go index 416ed2d2..734b541f 100644 --- a/model_repository_retention_rules_request_patch.go +++ b/model_repository_retention_rules_request_patch.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1288.1 +API version: 1.1341.7 Contact: support@cloudsmith.io */ diff --git a/model_repository_rsa_key.go b/model_repository_rsa_key.go index 4f6d5017..577cafda 100644 --- a/model_repository_rsa_key.go +++ b/model_repository_rsa_key.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1288.1 +API version: 1.1341.7 Contact: support@cloudsmith.io */ diff --git a/model_repository_rsa_key_create.go b/model_repository_rsa_key_create.go index 919df799..3aa015b1 100644 --- a/model_repository_rsa_key_create.go +++ b/model_repository_rsa_key_create.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1288.1 +API version: 1.1341.7 Contact: support@cloudsmith.io */ diff --git a/model_repository_token.go b/model_repository_token.go index 8f66c84f..5133f5ff 100644 --- a/model_repository_token.go +++ b/model_repository_token.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1288.1 +API version: 1.1341.7 Contact: support@cloudsmith.io */ diff --git a/model_repository_token_private_broadcasts.go b/model_repository_token_private_broadcasts.go index 8a58c529..cde12ccf 100644 --- a/model_repository_token_private_broadcasts.go +++ b/model_repository_token_private_broadcasts.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1288.1 +API version: 1.1341.7 Contact: support@cloudsmith.io */ diff --git a/model_repository_token_private_broadcasts_request.go b/model_repository_token_private_broadcasts_request.go index abfee63f..2cd48ece 100644 --- a/model_repository_token_private_broadcasts_request.go +++ b/model_repository_token_private_broadcasts_request.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1288.1 +API version: 1.1341.7 Contact: support@cloudsmith.io */ diff --git a/model_repository_token_refresh.go b/model_repository_token_refresh.go index b5dbeb8c..366d378f 100644 --- a/model_repository_token_refresh.go +++ b/model_repository_token_refresh.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1288.1 +API version: 1.1341.7 Contact: support@cloudsmith.io */ diff --git a/model_repository_token_refresh_request.go b/model_repository_token_refresh_request.go index 6788f239..d7e8a422 100644 --- a/model_repository_token_refresh_request.go +++ b/model_repository_token_refresh_request.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1288.1 +API version: 1.1341.7 Contact: support@cloudsmith.io */ diff --git a/model_repository_token_request.go b/model_repository_token_request.go index 9ae29708..ea3faa5d 100644 --- a/model_repository_token_request.go +++ b/model_repository_token_request.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1288.1 +API version: 1.1341.7 Contact: support@cloudsmith.io */ diff --git a/model_repository_token_request_patch.go b/model_repository_token_request_patch.go index 7c7ad13f..2a7dad1c 100644 --- a/model_repository_token_request_patch.go +++ b/model_repository_token_request_patch.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1288.1 +API version: 1.1341.7 Contact: support@cloudsmith.io */ diff --git a/model_repository_token_sync.go b/model_repository_token_sync.go index bd55a9fc..83098d89 100644 --- a/model_repository_token_sync.go +++ b/model_repository_token_sync.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1288.1 +API version: 1.1341.7 Contact: support@cloudsmith.io */ diff --git a/model_repository_token_sync_request.go b/model_repository_token_sync_request.go index fad4302b..366d7a93 100644 --- a/model_repository_token_sync_request.go +++ b/model_repository_token_sync_request.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1288.1 +API version: 1.1341.7 Contact: support@cloudsmith.io */ diff --git a/model_repository_transfer_region.go b/model_repository_transfer_region.go index 8f78a657..59382d9f 100644 --- a/model_repository_transfer_region.go +++ b/model_repository_transfer_region.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1288.1 +API version: 1.1341.7 Contact: support@cloudsmith.io */ diff --git a/model_repository_transfer_region_request.go b/model_repository_transfer_region_request.go index a4294a70..efb56dad 100644 --- a/model_repository_transfer_region_request.go +++ b/model_repository_transfer_region_request.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1288.1 +API version: 1.1341.7 Contact: support@cloudsmith.io */ diff --git a/model_repository_webhook.go b/model_repository_webhook.go index 72830864..e09ebd86 100644 --- a/model_repository_webhook.go +++ b/model_repository_webhook.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1288.1 +API version: 1.1341.7 Contact: support@cloudsmith.io */ diff --git a/model_repository_webhook_request.go b/model_repository_webhook_request.go index 909ac96f..b4c33258 100644 --- a/model_repository_webhook_request.go +++ b/model_repository_webhook_request.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1288.1 +API version: 1.1341.7 Contact: support@cloudsmith.io */ diff --git a/model_repository_webhook_request_patch.go b/model_repository_webhook_request_patch.go index 3434e103..5eee2eae 100644 --- a/model_repository_webhook_request_patch.go +++ b/model_repository_webhook_request_patch.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1288.1 +API version: 1.1341.7 Contact: support@cloudsmith.io */ diff --git a/model_repository_x509_ecdsa_certificate.go b/model_repository_x509_ecdsa_certificate.go index 3860dfde..0ed5dce1 100644 --- a/model_repository_x509_ecdsa_certificate.go +++ b/model_repository_x509_ecdsa_certificate.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1288.1 +API version: 1.1341.7 Contact: support@cloudsmith.io */ diff --git a/model_repository_x509_rsa_certificate.go b/model_repository_x509_rsa_certificate.go index 47436707..0a2d4fa1 100644 --- a/model_repository_x509_rsa_certificate.go +++ b/model_repository_x509_rsa_certificate.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1288.1 +API version: 1.1341.7 Contact: support@cloudsmith.io */ diff --git a/model_resources_rate_check.go b/model_resources_rate_check.go index d8e8177e..881b08ca 100644 --- a/model_resources_rate_check.go +++ b/model_resources_rate_check.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1288.1 +API version: 1.1341.7 Contact: support@cloudsmith.io */ diff --git a/model_rpm_package_upload.go b/model_rpm_package_upload.go index 58bf418d..22fe7303 100644 --- a/model_rpm_package_upload.go +++ b/model_rpm_package_upload.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1288.1 +API version: 1.1341.7 Contact: support@cloudsmith.io */ @@ -49,23 +49,25 @@ type RpmPackageUpload struct { // Unique and permanent identifier for the package. IdentifierPerm *string `json:"identifier_perm,omitempty"` // Return a map of identifier field names and their values. - Identifiers *map[string]string `json:"identifiers,omitempty"` - Indexed *bool `json:"indexed,omitempty"` - IsCancellable *bool `json:"is_cancellable,omitempty"` - IsCopyable *bool `json:"is_copyable,omitempty"` - IsDeleteable *bool `json:"is_deleteable,omitempty"` - IsDownloadable *bool `json:"is_downloadable,omitempty"` - IsHidden *bool `json:"is_hidden,omitempty"` - IsMoveable *bool `json:"is_moveable,omitempty"` - IsQuarantinable *bool `json:"is_quarantinable,omitempty"` - IsQuarantined *bool `json:"is_quarantined,omitempty"` - IsResyncable *bool `json:"is_resyncable,omitempty"` - IsSecurityScannable *bool `json:"is_security_scannable,omitempty"` - IsSyncAwaiting *bool `json:"is_sync_awaiting,omitempty"` - IsSyncCompleted *bool `json:"is_sync_completed,omitempty"` - IsSyncFailed *bool `json:"is_sync_failed,omitempty"` - IsSyncInFlight *bool `json:"is_sync_in_flight,omitempty"` - IsSyncInProgress *bool `json:"is_sync_in_progress,omitempty"` + Identifiers *map[string]string `json:"identifiers,omitempty"` + Indexed *bool `json:"indexed,omitempty"` + IsCancellable *bool `json:"is_cancellable,omitempty"` + IsCopyable *bool `json:"is_copyable,omitempty"` + IsDeleteable *bool `json:"is_deleteable,omitempty"` + IsDownloadable *bool `json:"is_downloadable,omitempty"` + IsHidden *bool `json:"is_hidden,omitempty"` + // Whether the package has been detected as containing malware. Requires Ultra plan. + IsMalwareDetected *bool `json:"is_malware_detected,omitempty"` + IsMoveable *bool `json:"is_moveable,omitempty"` + IsQuarantinable *bool `json:"is_quarantinable,omitempty"` + IsQuarantined *bool `json:"is_quarantined,omitempty"` + IsResyncable *bool `json:"is_resyncable,omitempty"` + IsSecurityScannable *bool `json:"is_security_scannable,omitempty"` + IsSyncAwaiting *bool `json:"is_sync_awaiting,omitempty"` + IsSyncCompleted *bool `json:"is_sync_completed,omitempty"` + IsSyncFailed *bool `json:"is_sync_failed,omitempty"` + IsSyncInFlight *bool `json:"is_sync_in_flight,omitempty"` + IsSyncInProgress *bool `json:"is_sync_in_progress,omitempty"` // The license of this package. License NullableString `json:"license,omitempty"` // The name of this package. @@ -135,9 +137,10 @@ type RpmPackageUpload struct { Uploader *string `json:"uploader,omitempty"` UploaderUrl *string `json:"uploader_url,omitempty"` // The raw version for this package. - Version NullableString `json:"version,omitempty"` - VersionOrig *string `json:"version_orig,omitempty"` - VulnerabilityScanResultsUrl *string `json:"vulnerability_scan_results_url,omitempty"` + Version NullableString `json:"version,omitempty"` + VersionOrig *string `json:"version_orig,omitempty"` + VulnerabilityCounts NullableWebOSVSeverityCounts `json:"vulnerability_counts,omitempty"` + VulnerabilityScanResultsUrl *string `json:"vulnerability_scan_results_url,omitempty"` AdditionalProperties map[string]interface{} } @@ -1154,6 +1157,38 @@ func (o *RpmPackageUpload) SetIsHidden(v bool) { o.IsHidden = &v } +// GetIsMalwareDetected returns the IsMalwareDetected field value if set, zero value otherwise. +func (o *RpmPackageUpload) GetIsMalwareDetected() bool { + if o == nil || IsNil(o.IsMalwareDetected) { + var ret bool + return ret + } + return *o.IsMalwareDetected +} + +// GetIsMalwareDetectedOk returns a tuple with the IsMalwareDetected field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RpmPackageUpload) GetIsMalwareDetectedOk() (*bool, bool) { + if o == nil || IsNil(o.IsMalwareDetected) { + return nil, false + } + return o.IsMalwareDetected, true +} + +// HasIsMalwareDetected returns a boolean if a field has been set. +func (o *RpmPackageUpload) HasIsMalwareDetected() bool { + if o != nil && !IsNil(o.IsMalwareDetected) { + return true + } + + return false +} + +// SetIsMalwareDetected gets a reference to the given bool and assigns it to the IsMalwareDetected field. +func (o *RpmPackageUpload) SetIsMalwareDetected(v bool) { + o.IsMalwareDetected = &v +} + // GetIsMoveable returns the IsMoveable field value if set, zero value otherwise. func (o *RpmPackageUpload) GetIsMoveable() bool { if o == nil || IsNil(o.IsMoveable) { @@ -3100,6 +3135,49 @@ func (o *RpmPackageUpload) SetVersionOrig(v string) { o.VersionOrig = &v } +// GetVulnerabilityCounts returns the VulnerabilityCounts field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *RpmPackageUpload) GetVulnerabilityCounts() WebOSVSeverityCounts { + if o == nil || IsNil(o.VulnerabilityCounts.Get()) { + var ret WebOSVSeverityCounts + return ret + } + return *o.VulnerabilityCounts.Get() +} + +// GetVulnerabilityCountsOk returns a tuple with the VulnerabilityCounts 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 *RpmPackageUpload) GetVulnerabilityCountsOk() (*WebOSVSeverityCounts, bool) { + if o == nil { + return nil, false + } + return o.VulnerabilityCounts.Get(), o.VulnerabilityCounts.IsSet() +} + +// HasVulnerabilityCounts returns a boolean if a field has been set. +func (o *RpmPackageUpload) HasVulnerabilityCounts() bool { + if o != nil && o.VulnerabilityCounts.IsSet() { + return true + } + + return false +} + +// SetVulnerabilityCounts gets a reference to the given NullableWebOSVSeverityCounts and assigns it to the VulnerabilityCounts field. +func (o *RpmPackageUpload) SetVulnerabilityCounts(v WebOSVSeverityCounts) { + o.VulnerabilityCounts.Set(&v) +} + +// SetVulnerabilityCountsNil sets the value for VulnerabilityCounts to be an explicit nil +func (o *RpmPackageUpload) SetVulnerabilityCountsNil() { + o.VulnerabilityCounts.Set(nil) +} + +// UnsetVulnerabilityCounts ensures that no value is present for VulnerabilityCounts, not even an explicit nil +func (o *RpmPackageUpload) UnsetVulnerabilityCounts() { + o.VulnerabilityCounts.Unset() +} + // GetVulnerabilityScanResultsUrl returns the VulnerabilityScanResultsUrl field value if set, zero value otherwise. func (o *RpmPackageUpload) GetVulnerabilityScanResultsUrl() string { if o == nil || IsNil(o.VulnerabilityScanResultsUrl) { @@ -3229,6 +3307,9 @@ func (o RpmPackageUpload) ToMap() (map[string]interface{}, error) { if !IsNil(o.IsHidden) { toSerialize["is_hidden"] = o.IsHidden } + if !IsNil(o.IsMalwareDetected) { + toSerialize["is_malware_detected"] = o.IsMalwareDetected + } if !IsNil(o.IsMoveable) { toSerialize["is_moveable"] = o.IsMoveable } @@ -3397,6 +3478,9 @@ func (o RpmPackageUpload) ToMap() (map[string]interface{}, error) { if !IsNil(o.VersionOrig) { toSerialize["version_orig"] = o.VersionOrig } + if o.VulnerabilityCounts.IsSet() { + toSerialize["vulnerability_counts"] = o.VulnerabilityCounts.Get() + } if !IsNil(o.VulnerabilityScanResultsUrl) { toSerialize["vulnerability_scan_results_url"] = o.VulnerabilityScanResultsUrl } @@ -3451,6 +3535,7 @@ func (o *RpmPackageUpload) UnmarshalJSON(data []byte) (err error) { delete(additionalProperties, "is_deleteable") delete(additionalProperties, "is_downloadable") delete(additionalProperties, "is_hidden") + delete(additionalProperties, "is_malware_detected") delete(additionalProperties, "is_moveable") delete(additionalProperties, "is_quarantinable") delete(additionalProperties, "is_quarantined") @@ -3507,6 +3592,7 @@ func (o *RpmPackageUpload) UnmarshalJSON(data []byte) (err error) { delete(additionalProperties, "uploader_url") delete(additionalProperties, "version") delete(additionalProperties, "version_orig") + delete(additionalProperties, "vulnerability_counts") delete(additionalProperties, "vulnerability_scan_results_url") o.AdditionalProperties = additionalProperties } diff --git a/model_rpm_package_upload_request.go b/model_rpm_package_upload_request.go index 104e2080..ac0509de 100644 --- a/model_rpm_package_upload_request.go +++ b/model_rpm_package_upload_request.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1288.1 +API version: 1.1341.7 Contact: support@cloudsmith.io */ @@ -23,12 +23,15 @@ var _ MappedNullable = &RpmPackageUploadRequest{} type RpmPackageUploadRequest struct { // The distribution to store the package for. Distribution string `json:"distribution"` + // Whether the package has been detected as containing malware. Requires Ultra plan. + IsMalwareDetected *bool `json:"is_malware_detected,omitempty"` // The primary file for the package. PackageFile string `json:"package_file"` // If true, the uploaded package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate. Republish *bool `json:"republish,omitempty"` // A comma-separated values list of tags to add to the package. - Tags NullableString `json:"tags,omitempty"` + Tags NullableString `json:"tags,omitempty"` + VulnerabilityCounts NullableWebOSVSeverityCounts `json:"vulnerability_counts,omitempty"` AdditionalProperties map[string]interface{} } @@ -77,6 +80,38 @@ func (o *RpmPackageUploadRequest) SetDistribution(v string) { o.Distribution = v } +// GetIsMalwareDetected returns the IsMalwareDetected field value if set, zero value otherwise. +func (o *RpmPackageUploadRequest) GetIsMalwareDetected() bool { + if o == nil || IsNil(o.IsMalwareDetected) { + var ret bool + return ret + } + return *o.IsMalwareDetected +} + +// GetIsMalwareDetectedOk returns a tuple with the IsMalwareDetected field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RpmPackageUploadRequest) GetIsMalwareDetectedOk() (*bool, bool) { + if o == nil || IsNil(o.IsMalwareDetected) { + return nil, false + } + return o.IsMalwareDetected, true +} + +// HasIsMalwareDetected returns a boolean if a field has been set. +func (o *RpmPackageUploadRequest) HasIsMalwareDetected() bool { + if o != nil && !IsNil(o.IsMalwareDetected) { + return true + } + + return false +} + +// SetIsMalwareDetected gets a reference to the given bool and assigns it to the IsMalwareDetected field. +func (o *RpmPackageUploadRequest) SetIsMalwareDetected(v bool) { + o.IsMalwareDetected = &v +} + // GetPackageFile returns the PackageFile field value func (o *RpmPackageUploadRequest) GetPackageFile() string { if o == nil { @@ -176,6 +211,49 @@ func (o *RpmPackageUploadRequest) UnsetTags() { o.Tags.Unset() } +// GetVulnerabilityCounts returns the VulnerabilityCounts field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *RpmPackageUploadRequest) GetVulnerabilityCounts() WebOSVSeverityCounts { + if o == nil || IsNil(o.VulnerabilityCounts.Get()) { + var ret WebOSVSeverityCounts + return ret + } + return *o.VulnerabilityCounts.Get() +} + +// GetVulnerabilityCountsOk returns a tuple with the VulnerabilityCounts 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 *RpmPackageUploadRequest) GetVulnerabilityCountsOk() (*WebOSVSeverityCounts, bool) { + if o == nil { + return nil, false + } + return o.VulnerabilityCounts.Get(), o.VulnerabilityCounts.IsSet() +} + +// HasVulnerabilityCounts returns a boolean if a field has been set. +func (o *RpmPackageUploadRequest) HasVulnerabilityCounts() bool { + if o != nil && o.VulnerabilityCounts.IsSet() { + return true + } + + return false +} + +// SetVulnerabilityCounts gets a reference to the given NullableWebOSVSeverityCounts and assigns it to the VulnerabilityCounts field. +func (o *RpmPackageUploadRequest) SetVulnerabilityCounts(v WebOSVSeverityCounts) { + o.VulnerabilityCounts.Set(&v) +} + +// SetVulnerabilityCountsNil sets the value for VulnerabilityCounts to be an explicit nil +func (o *RpmPackageUploadRequest) SetVulnerabilityCountsNil() { + o.VulnerabilityCounts.Set(nil) +} + +// UnsetVulnerabilityCounts ensures that no value is present for VulnerabilityCounts, not even an explicit nil +func (o *RpmPackageUploadRequest) UnsetVulnerabilityCounts() { + o.VulnerabilityCounts.Unset() +} + func (o RpmPackageUploadRequest) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { @@ -187,6 +265,9 @@ func (o RpmPackageUploadRequest) MarshalJSON() ([]byte, error) { func (o RpmPackageUploadRequest) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["distribution"] = o.Distribution + if !IsNil(o.IsMalwareDetected) { + toSerialize["is_malware_detected"] = o.IsMalwareDetected + } toSerialize["package_file"] = o.PackageFile if !IsNil(o.Republish) { toSerialize["republish"] = o.Republish @@ -194,6 +275,9 @@ func (o RpmPackageUploadRequest) ToMap() (map[string]interface{}, error) { if o.Tags.IsSet() { toSerialize["tags"] = o.Tags.Get() } + if o.VulnerabilityCounts.IsSet() { + toSerialize["vulnerability_counts"] = o.VulnerabilityCounts.Get() + } for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -239,9 +323,11 @@ func (o *RpmPackageUploadRequest) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "distribution") + delete(additionalProperties, "is_malware_detected") delete(additionalProperties, "package_file") delete(additionalProperties, "republish") delete(additionalProperties, "tags") + delete(additionalProperties, "vulnerability_counts") o.AdditionalProperties = additionalProperties } diff --git a/model_rpm_upstream.go b/model_rpm_upstream.go index 45d32d4b..ba94b8a3 100644 --- a/model_rpm_upstream.go +++ b/model_rpm_upstream.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1288.1 +API version: 1.1341.7 Contact: support@cloudsmith.io */ diff --git a/model_rpm_upstream_request.go b/model_rpm_upstream_request.go index 5d0d1201..3bcef65a 100644 --- a/model_rpm_upstream_request.go +++ b/model_rpm_upstream_request.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1288.1 +API version: 1.1341.7 Contact: support@cloudsmith.io */ diff --git a/model_rpm_upstream_request_patch.go b/model_rpm_upstream_request_patch.go index 711308e5..e5ca10ca 100644 --- a/model_rpm_upstream_request_patch.go +++ b/model_rpm_upstream_request_patch.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1288.1 +API version: 1.1341.7 Contact: support@cloudsmith.io */ diff --git a/model_ruby_package_upload.go b/model_ruby_package_upload.go index 2ef86619..6d192816 100644 --- a/model_ruby_package_upload.go +++ b/model_ruby_package_upload.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1288.1 +API version: 1.1341.7 Contact: support@cloudsmith.io */ @@ -49,23 +49,25 @@ type RubyPackageUpload struct { // Unique and permanent identifier for the package. IdentifierPerm *string `json:"identifier_perm,omitempty"` // Return a map of identifier field names and their values. - Identifiers *map[string]string `json:"identifiers,omitempty"` - Indexed *bool `json:"indexed,omitempty"` - IsCancellable *bool `json:"is_cancellable,omitempty"` - IsCopyable *bool `json:"is_copyable,omitempty"` - IsDeleteable *bool `json:"is_deleteable,omitempty"` - IsDownloadable *bool `json:"is_downloadable,omitempty"` - IsHidden *bool `json:"is_hidden,omitempty"` - IsMoveable *bool `json:"is_moveable,omitempty"` - IsQuarantinable *bool `json:"is_quarantinable,omitempty"` - IsQuarantined *bool `json:"is_quarantined,omitempty"` - IsResyncable *bool `json:"is_resyncable,omitempty"` - IsSecurityScannable *bool `json:"is_security_scannable,omitempty"` - IsSyncAwaiting *bool `json:"is_sync_awaiting,omitempty"` - IsSyncCompleted *bool `json:"is_sync_completed,omitempty"` - IsSyncFailed *bool `json:"is_sync_failed,omitempty"` - IsSyncInFlight *bool `json:"is_sync_in_flight,omitempty"` - IsSyncInProgress *bool `json:"is_sync_in_progress,omitempty"` + Identifiers *map[string]string `json:"identifiers,omitempty"` + Indexed *bool `json:"indexed,omitempty"` + IsCancellable *bool `json:"is_cancellable,omitempty"` + IsCopyable *bool `json:"is_copyable,omitempty"` + IsDeleteable *bool `json:"is_deleteable,omitempty"` + IsDownloadable *bool `json:"is_downloadable,omitempty"` + IsHidden *bool `json:"is_hidden,omitempty"` + // Whether the package has been detected as containing malware. Requires Ultra plan. + IsMalwareDetected *bool `json:"is_malware_detected,omitempty"` + IsMoveable *bool `json:"is_moveable,omitempty"` + IsQuarantinable *bool `json:"is_quarantinable,omitempty"` + IsQuarantined *bool `json:"is_quarantined,omitempty"` + IsResyncable *bool `json:"is_resyncable,omitempty"` + IsSecurityScannable *bool `json:"is_security_scannable,omitempty"` + IsSyncAwaiting *bool `json:"is_sync_awaiting,omitempty"` + IsSyncCompleted *bool `json:"is_sync_completed,omitempty"` + IsSyncFailed *bool `json:"is_sync_failed,omitempty"` + IsSyncInFlight *bool `json:"is_sync_in_flight,omitempty"` + IsSyncInProgress *bool `json:"is_sync_in_progress,omitempty"` // The license of this package. License NullableString `json:"license,omitempty"` // The name of this package. @@ -135,9 +137,10 @@ type RubyPackageUpload struct { Uploader *string `json:"uploader,omitempty"` UploaderUrl *string `json:"uploader_url,omitempty"` // The raw version for this package. - Version NullableString `json:"version,omitempty"` - VersionOrig *string `json:"version_orig,omitempty"` - VulnerabilityScanResultsUrl *string `json:"vulnerability_scan_results_url,omitempty"` + Version NullableString `json:"version,omitempty"` + VersionOrig *string `json:"version_orig,omitempty"` + VulnerabilityCounts NullableWebOSVSeverityCounts `json:"vulnerability_counts,omitempty"` + VulnerabilityScanResultsUrl *string `json:"vulnerability_scan_results_url,omitempty"` AdditionalProperties map[string]interface{} } @@ -1154,6 +1157,38 @@ func (o *RubyPackageUpload) SetIsHidden(v bool) { o.IsHidden = &v } +// GetIsMalwareDetected returns the IsMalwareDetected field value if set, zero value otherwise. +func (o *RubyPackageUpload) GetIsMalwareDetected() bool { + if o == nil || IsNil(o.IsMalwareDetected) { + var ret bool + return ret + } + return *o.IsMalwareDetected +} + +// GetIsMalwareDetectedOk returns a tuple with the IsMalwareDetected field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RubyPackageUpload) GetIsMalwareDetectedOk() (*bool, bool) { + if o == nil || IsNil(o.IsMalwareDetected) { + return nil, false + } + return o.IsMalwareDetected, true +} + +// HasIsMalwareDetected returns a boolean if a field has been set. +func (o *RubyPackageUpload) HasIsMalwareDetected() bool { + if o != nil && !IsNil(o.IsMalwareDetected) { + return true + } + + return false +} + +// SetIsMalwareDetected gets a reference to the given bool and assigns it to the IsMalwareDetected field. +func (o *RubyPackageUpload) SetIsMalwareDetected(v bool) { + o.IsMalwareDetected = &v +} + // GetIsMoveable returns the IsMoveable field value if set, zero value otherwise. func (o *RubyPackageUpload) GetIsMoveable() bool { if o == nil || IsNil(o.IsMoveable) { @@ -3100,6 +3135,49 @@ func (o *RubyPackageUpload) SetVersionOrig(v string) { o.VersionOrig = &v } +// GetVulnerabilityCounts returns the VulnerabilityCounts field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *RubyPackageUpload) GetVulnerabilityCounts() WebOSVSeverityCounts { + if o == nil || IsNil(o.VulnerabilityCounts.Get()) { + var ret WebOSVSeverityCounts + return ret + } + return *o.VulnerabilityCounts.Get() +} + +// GetVulnerabilityCountsOk returns a tuple with the VulnerabilityCounts 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 *RubyPackageUpload) GetVulnerabilityCountsOk() (*WebOSVSeverityCounts, bool) { + if o == nil { + return nil, false + } + return o.VulnerabilityCounts.Get(), o.VulnerabilityCounts.IsSet() +} + +// HasVulnerabilityCounts returns a boolean if a field has been set. +func (o *RubyPackageUpload) HasVulnerabilityCounts() bool { + if o != nil && o.VulnerabilityCounts.IsSet() { + return true + } + + return false +} + +// SetVulnerabilityCounts gets a reference to the given NullableWebOSVSeverityCounts and assigns it to the VulnerabilityCounts field. +func (o *RubyPackageUpload) SetVulnerabilityCounts(v WebOSVSeverityCounts) { + o.VulnerabilityCounts.Set(&v) +} + +// SetVulnerabilityCountsNil sets the value for VulnerabilityCounts to be an explicit nil +func (o *RubyPackageUpload) SetVulnerabilityCountsNil() { + o.VulnerabilityCounts.Set(nil) +} + +// UnsetVulnerabilityCounts ensures that no value is present for VulnerabilityCounts, not even an explicit nil +func (o *RubyPackageUpload) UnsetVulnerabilityCounts() { + o.VulnerabilityCounts.Unset() +} + // GetVulnerabilityScanResultsUrl returns the VulnerabilityScanResultsUrl field value if set, zero value otherwise. func (o *RubyPackageUpload) GetVulnerabilityScanResultsUrl() string { if o == nil || IsNil(o.VulnerabilityScanResultsUrl) { @@ -3229,6 +3307,9 @@ func (o RubyPackageUpload) ToMap() (map[string]interface{}, error) { if !IsNil(o.IsHidden) { toSerialize["is_hidden"] = o.IsHidden } + if !IsNil(o.IsMalwareDetected) { + toSerialize["is_malware_detected"] = o.IsMalwareDetected + } if !IsNil(o.IsMoveable) { toSerialize["is_moveable"] = o.IsMoveable } @@ -3397,6 +3478,9 @@ func (o RubyPackageUpload) ToMap() (map[string]interface{}, error) { if !IsNil(o.VersionOrig) { toSerialize["version_orig"] = o.VersionOrig } + if o.VulnerabilityCounts.IsSet() { + toSerialize["vulnerability_counts"] = o.VulnerabilityCounts.Get() + } if !IsNil(o.VulnerabilityScanResultsUrl) { toSerialize["vulnerability_scan_results_url"] = o.VulnerabilityScanResultsUrl } @@ -3451,6 +3535,7 @@ func (o *RubyPackageUpload) UnmarshalJSON(data []byte) (err error) { delete(additionalProperties, "is_deleteable") delete(additionalProperties, "is_downloadable") delete(additionalProperties, "is_hidden") + delete(additionalProperties, "is_malware_detected") delete(additionalProperties, "is_moveable") delete(additionalProperties, "is_quarantinable") delete(additionalProperties, "is_quarantined") @@ -3507,6 +3592,7 @@ func (o *RubyPackageUpload) UnmarshalJSON(data []byte) (err error) { delete(additionalProperties, "uploader_url") delete(additionalProperties, "version") delete(additionalProperties, "version_orig") + delete(additionalProperties, "vulnerability_counts") delete(additionalProperties, "vulnerability_scan_results_url") o.AdditionalProperties = additionalProperties } diff --git a/model_ruby_package_upload_request.go b/model_ruby_package_upload_request.go index c124b4b9..9335270f 100644 --- a/model_ruby_package_upload_request.go +++ b/model_ruby_package_upload_request.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1288.1 +API version: 1.1341.7 Contact: support@cloudsmith.io */ @@ -21,12 +21,15 @@ var _ MappedNullable = &RubyPackageUploadRequest{} // RubyPackageUploadRequest struct for RubyPackageUploadRequest type RubyPackageUploadRequest struct { + // Whether the package has been detected as containing malware. Requires Ultra plan. + IsMalwareDetected *bool `json:"is_malware_detected,omitempty"` // The primary file for the package. PackageFile string `json:"package_file"` // If true, the uploaded package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate. Republish *bool `json:"republish,omitempty"` // A comma-separated values list of tags to add to the package. - Tags NullableString `json:"tags,omitempty"` + Tags NullableString `json:"tags,omitempty"` + VulnerabilityCounts NullableWebOSVSeverityCounts `json:"vulnerability_counts,omitempty"` AdditionalProperties map[string]interface{} } @@ -50,6 +53,38 @@ func NewRubyPackageUploadRequestWithDefaults() *RubyPackageUploadRequest { return &this } +// GetIsMalwareDetected returns the IsMalwareDetected field value if set, zero value otherwise. +func (o *RubyPackageUploadRequest) GetIsMalwareDetected() bool { + if o == nil || IsNil(o.IsMalwareDetected) { + var ret bool + return ret + } + return *o.IsMalwareDetected +} + +// GetIsMalwareDetectedOk returns a tuple with the IsMalwareDetected field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RubyPackageUploadRequest) GetIsMalwareDetectedOk() (*bool, bool) { + if o == nil || IsNil(o.IsMalwareDetected) { + return nil, false + } + return o.IsMalwareDetected, true +} + +// HasIsMalwareDetected returns a boolean if a field has been set. +func (o *RubyPackageUploadRequest) HasIsMalwareDetected() bool { + if o != nil && !IsNil(o.IsMalwareDetected) { + return true + } + + return false +} + +// SetIsMalwareDetected gets a reference to the given bool and assigns it to the IsMalwareDetected field. +func (o *RubyPackageUploadRequest) SetIsMalwareDetected(v bool) { + o.IsMalwareDetected = &v +} + // GetPackageFile returns the PackageFile field value func (o *RubyPackageUploadRequest) GetPackageFile() string { if o == nil { @@ -149,6 +184,49 @@ func (o *RubyPackageUploadRequest) UnsetTags() { o.Tags.Unset() } +// GetVulnerabilityCounts returns the VulnerabilityCounts field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *RubyPackageUploadRequest) GetVulnerabilityCounts() WebOSVSeverityCounts { + if o == nil || IsNil(o.VulnerabilityCounts.Get()) { + var ret WebOSVSeverityCounts + return ret + } + return *o.VulnerabilityCounts.Get() +} + +// GetVulnerabilityCountsOk returns a tuple with the VulnerabilityCounts 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 *RubyPackageUploadRequest) GetVulnerabilityCountsOk() (*WebOSVSeverityCounts, bool) { + if o == nil { + return nil, false + } + return o.VulnerabilityCounts.Get(), o.VulnerabilityCounts.IsSet() +} + +// HasVulnerabilityCounts returns a boolean if a field has been set. +func (o *RubyPackageUploadRequest) HasVulnerabilityCounts() bool { + if o != nil && o.VulnerabilityCounts.IsSet() { + return true + } + + return false +} + +// SetVulnerabilityCounts gets a reference to the given NullableWebOSVSeverityCounts and assigns it to the VulnerabilityCounts field. +func (o *RubyPackageUploadRequest) SetVulnerabilityCounts(v WebOSVSeverityCounts) { + o.VulnerabilityCounts.Set(&v) +} + +// SetVulnerabilityCountsNil sets the value for VulnerabilityCounts to be an explicit nil +func (o *RubyPackageUploadRequest) SetVulnerabilityCountsNil() { + o.VulnerabilityCounts.Set(nil) +} + +// UnsetVulnerabilityCounts ensures that no value is present for VulnerabilityCounts, not even an explicit nil +func (o *RubyPackageUploadRequest) UnsetVulnerabilityCounts() { + o.VulnerabilityCounts.Unset() +} + func (o RubyPackageUploadRequest) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { @@ -159,6 +237,9 @@ func (o RubyPackageUploadRequest) MarshalJSON() ([]byte, error) { func (o RubyPackageUploadRequest) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} + if !IsNil(o.IsMalwareDetected) { + toSerialize["is_malware_detected"] = o.IsMalwareDetected + } toSerialize["package_file"] = o.PackageFile if !IsNil(o.Republish) { toSerialize["republish"] = o.Republish @@ -166,6 +247,9 @@ func (o RubyPackageUploadRequest) ToMap() (map[string]interface{}, error) { if o.Tags.IsSet() { toSerialize["tags"] = o.Tags.Get() } + if o.VulnerabilityCounts.IsSet() { + toSerialize["vulnerability_counts"] = o.VulnerabilityCounts.Get() + } for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -209,9 +293,11 @@ func (o *RubyPackageUploadRequest) UnmarshalJSON(data []byte) (err error) { additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "is_malware_detected") delete(additionalProperties, "package_file") delete(additionalProperties, "republish") delete(additionalProperties, "tags") + delete(additionalProperties, "vulnerability_counts") o.AdditionalProperties = additionalProperties } diff --git a/model_ruby_upstream.go b/model_ruby_upstream.go index 268f939e..31e7f49c 100644 --- a/model_ruby_upstream.go +++ b/model_ruby_upstream.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1288.1 +API version: 1.1341.7 Contact: support@cloudsmith.io */ diff --git a/model_ruby_upstream_request.go b/model_ruby_upstream_request.go index 12ebcf5a..a78f2f71 100644 --- a/model_ruby_upstream_request.go +++ b/model_ruby_upstream_request.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1288.1 +API version: 1.1341.7 Contact: support@cloudsmith.io */ diff --git a/model_ruby_upstream_request_patch.go b/model_ruby_upstream_request_patch.go index a3ab458a..318b49fa 100644 --- a/model_ruby_upstream_request_patch.go +++ b/model_ruby_upstream_request_patch.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1288.1 +API version: 1.1341.7 Contact: support@cloudsmith.io */ diff --git a/model_service.go b/model_service.go index 4974caca..884bc46f 100644 --- a/model_service.go +++ b/model_service.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1288.1 +API version: 1.1341.7 Contact: support@cloudsmith.io */ diff --git a/model_service_request.go b/model_service_request.go index 693ab7f6..2c89a4dc 100644 --- a/model_service_request.go +++ b/model_service_request.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1288.1 +API version: 1.1341.7 Contact: support@cloudsmith.io */ diff --git a/model_service_request_patch.go b/model_service_request_patch.go index ef2b2a7b..8364b85f 100644 --- a/model_service_request_patch.go +++ b/model_service_request_patch.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1288.1 +API version: 1.1341.7 Contact: support@cloudsmith.io */ diff --git a/model_service_teams.go b/model_service_teams.go index 6b566104..73b15269 100644 --- a/model_service_teams.go +++ b/model_service_teams.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1288.1 +API version: 1.1341.7 Contact: support@cloudsmith.io */ diff --git a/model_status_basic.go b/model_status_basic.go index 1a57c707..fcd1be8d 100644 --- a/model_status_basic.go +++ b/model_status_basic.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1288.1 +API version: 1.1341.7 Contact: support@cloudsmith.io */ diff --git a/model_storage_allocated_limit.go b/model_storage_allocated_limit.go index 455b824c..7db5e206 100644 --- a/model_storage_allocated_limit.go +++ b/model_storage_allocated_limit.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1288.1 +API version: 1.1341.7 Contact: support@cloudsmith.io */ diff --git a/model_storage_allocated_limit_raw.go b/model_storage_allocated_limit_raw.go index 3de12c4f..d4461787 100644 --- a/model_storage_allocated_limit_raw.go +++ b/model_storage_allocated_limit_raw.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1288.1 +API version: 1.1341.7 Contact: support@cloudsmith.io */ diff --git a/model_storage_region.go b/model_storage_region.go index fb662f21..d55fdf6f 100644 --- a/model_storage_region.go +++ b/model_storage_region.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1288.1 +API version: 1.1341.7 Contact: support@cloudsmith.io */ diff --git a/model_storage_usage.go b/model_storage_usage.go index a7b07aa5..2bc1d2eb 100644 --- a/model_storage_usage.go +++ b/model_storage_usage.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1288.1 +API version: 1.1341.7 Contact: support@cloudsmith.io */ diff --git a/model_storage_usage_raw.go b/model_storage_usage_raw.go index e8944500..6fcb096f 100644 --- a/model_storage_usage_raw.go +++ b/model_storage_usage_raw.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1288.1 +API version: 1.1341.7 Contact: support@cloudsmith.io */ diff --git a/model_swift_package_upload.go b/model_swift_package_upload.go index 4d8951ac..827dca41 100644 --- a/model_swift_package_upload.go +++ b/model_swift_package_upload.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1288.1 +API version: 1.1341.7 Contact: support@cloudsmith.io */ @@ -54,23 +54,25 @@ type SwiftPackageUpload struct { // Unique and permanent identifier for the package. IdentifierPerm *string `json:"identifier_perm,omitempty"` // Return a map of identifier field names and their values. - Identifiers *map[string]string `json:"identifiers,omitempty"` - Indexed *bool `json:"indexed,omitempty"` - IsCancellable *bool `json:"is_cancellable,omitempty"` - IsCopyable *bool `json:"is_copyable,omitempty"` - IsDeleteable *bool `json:"is_deleteable,omitempty"` - IsDownloadable *bool `json:"is_downloadable,omitempty"` - IsHidden *bool `json:"is_hidden,omitempty"` - IsMoveable *bool `json:"is_moveable,omitempty"` - IsQuarantinable *bool `json:"is_quarantinable,omitempty"` - IsQuarantined *bool `json:"is_quarantined,omitempty"` - IsResyncable *bool `json:"is_resyncable,omitempty"` - IsSecurityScannable *bool `json:"is_security_scannable,omitempty"` - IsSyncAwaiting *bool `json:"is_sync_awaiting,omitempty"` - IsSyncCompleted *bool `json:"is_sync_completed,omitempty"` - IsSyncFailed *bool `json:"is_sync_failed,omitempty"` - IsSyncInFlight *bool `json:"is_sync_in_flight,omitempty"` - IsSyncInProgress *bool `json:"is_sync_in_progress,omitempty"` + Identifiers *map[string]string `json:"identifiers,omitempty"` + Indexed *bool `json:"indexed,omitempty"` + IsCancellable *bool `json:"is_cancellable,omitempty"` + IsCopyable *bool `json:"is_copyable,omitempty"` + IsDeleteable *bool `json:"is_deleteable,omitempty"` + IsDownloadable *bool `json:"is_downloadable,omitempty"` + IsHidden *bool `json:"is_hidden,omitempty"` + // Whether the package has been detected as containing malware. Requires Ultra plan. + IsMalwareDetected *bool `json:"is_malware_detected,omitempty"` + IsMoveable *bool `json:"is_moveable,omitempty"` + IsQuarantinable *bool `json:"is_quarantinable,omitempty"` + IsQuarantined *bool `json:"is_quarantined,omitempty"` + IsResyncable *bool `json:"is_resyncable,omitempty"` + IsSecurityScannable *bool `json:"is_security_scannable,omitempty"` + IsSyncAwaiting *bool `json:"is_sync_awaiting,omitempty"` + IsSyncCompleted *bool `json:"is_sync_completed,omitempty"` + IsSyncFailed *bool `json:"is_sync_failed,omitempty"` + IsSyncInFlight *bool `json:"is_sync_in_flight,omitempty"` + IsSyncInProgress *bool `json:"is_sync_in_progress,omitempty"` // The license of this package. License NullableString `json:"license,omitempty"` // The license URL of this package. @@ -147,9 +149,10 @@ type SwiftPackageUpload struct { Uploader *string `json:"uploader,omitempty"` UploaderUrl *string `json:"uploader_url,omitempty"` // The raw version for this package. - Version string `json:"version"` - VersionOrig *string `json:"version_orig,omitempty"` - VulnerabilityScanResultsUrl *string `json:"vulnerability_scan_results_url,omitempty"` + Version string `json:"version"` + VersionOrig *string `json:"version_orig,omitempty"` + VulnerabilityCounts NullableWebOSVSeverityCounts `json:"vulnerability_counts,omitempty"` + VulnerabilityScanResultsUrl *string `json:"vulnerability_scan_results_url,omitempty"` AdditionalProperties map[string]interface{} } @@ -1233,6 +1236,38 @@ func (o *SwiftPackageUpload) SetIsHidden(v bool) { o.IsHidden = &v } +// GetIsMalwareDetected returns the IsMalwareDetected field value if set, zero value otherwise. +func (o *SwiftPackageUpload) GetIsMalwareDetected() bool { + if o == nil || IsNil(o.IsMalwareDetected) { + var ret bool + return ret + } + return *o.IsMalwareDetected +} + +// GetIsMalwareDetectedOk returns a tuple with the IsMalwareDetected field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SwiftPackageUpload) GetIsMalwareDetectedOk() (*bool, bool) { + if o == nil || IsNil(o.IsMalwareDetected) { + return nil, false + } + return o.IsMalwareDetected, true +} + +// HasIsMalwareDetected returns a boolean if a field has been set. +func (o *SwiftPackageUpload) HasIsMalwareDetected() bool { + if o != nil && !IsNil(o.IsMalwareDetected) { + return true + } + + return false +} + +// SetIsMalwareDetected gets a reference to the given bool and assigns it to the IsMalwareDetected field. +func (o *SwiftPackageUpload) SetIsMalwareDetected(v bool) { + o.IsMalwareDetected = &v +} + // GetIsMoveable returns the IsMoveable field value if set, zero value otherwise. func (o *SwiftPackageUpload) GetIsMoveable() bool { if o == nil || IsNil(o.IsMoveable) { @@ -3240,6 +3275,49 @@ func (o *SwiftPackageUpload) SetVersionOrig(v string) { o.VersionOrig = &v } +// GetVulnerabilityCounts returns the VulnerabilityCounts field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *SwiftPackageUpload) GetVulnerabilityCounts() WebOSVSeverityCounts { + if o == nil || IsNil(o.VulnerabilityCounts.Get()) { + var ret WebOSVSeverityCounts + return ret + } + return *o.VulnerabilityCounts.Get() +} + +// GetVulnerabilityCountsOk returns a tuple with the VulnerabilityCounts 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 *SwiftPackageUpload) GetVulnerabilityCountsOk() (*WebOSVSeverityCounts, bool) { + if o == nil { + return nil, false + } + return o.VulnerabilityCounts.Get(), o.VulnerabilityCounts.IsSet() +} + +// HasVulnerabilityCounts returns a boolean if a field has been set. +func (o *SwiftPackageUpload) HasVulnerabilityCounts() bool { + if o != nil && o.VulnerabilityCounts.IsSet() { + return true + } + + return false +} + +// SetVulnerabilityCounts gets a reference to the given NullableWebOSVSeverityCounts and assigns it to the VulnerabilityCounts field. +func (o *SwiftPackageUpload) SetVulnerabilityCounts(v WebOSVSeverityCounts) { + o.VulnerabilityCounts.Set(&v) +} + +// SetVulnerabilityCountsNil sets the value for VulnerabilityCounts to be an explicit nil +func (o *SwiftPackageUpload) SetVulnerabilityCountsNil() { + o.VulnerabilityCounts.Set(nil) +} + +// UnsetVulnerabilityCounts ensures that no value is present for VulnerabilityCounts, not even an explicit nil +func (o *SwiftPackageUpload) UnsetVulnerabilityCounts() { + o.VulnerabilityCounts.Unset() +} + // GetVulnerabilityScanResultsUrl returns the VulnerabilityScanResultsUrl field value if set, zero value otherwise. func (o *SwiftPackageUpload) GetVulnerabilityScanResultsUrl() string { if o == nil || IsNil(o.VulnerabilityScanResultsUrl) { @@ -3375,6 +3453,9 @@ func (o SwiftPackageUpload) ToMap() (map[string]interface{}, error) { if !IsNil(o.IsHidden) { toSerialize["is_hidden"] = o.IsHidden } + if !IsNil(o.IsMalwareDetected) { + toSerialize["is_malware_detected"] = o.IsMalwareDetected + } if !IsNil(o.IsMoveable) { toSerialize["is_moveable"] = o.IsMoveable } @@ -3546,6 +3627,9 @@ func (o SwiftPackageUpload) ToMap() (map[string]interface{}, error) { if !IsNil(o.VersionOrig) { toSerialize["version_orig"] = o.VersionOrig } + if o.VulnerabilityCounts.IsSet() { + toSerialize["vulnerability_counts"] = o.VulnerabilityCounts.Get() + } if !IsNil(o.VulnerabilityScanResultsUrl) { toSerialize["vulnerability_scan_results_url"] = o.VulnerabilityScanResultsUrl } @@ -3625,6 +3709,7 @@ func (o *SwiftPackageUpload) UnmarshalJSON(data []byte) (err error) { delete(additionalProperties, "is_deleteable") delete(additionalProperties, "is_downloadable") delete(additionalProperties, "is_hidden") + delete(additionalProperties, "is_malware_detected") delete(additionalProperties, "is_moveable") delete(additionalProperties, "is_quarantinable") delete(additionalProperties, "is_quarantined") @@ -3684,6 +3769,7 @@ func (o *SwiftPackageUpload) UnmarshalJSON(data []byte) (err error) { delete(additionalProperties, "uploader_url") delete(additionalProperties, "version") delete(additionalProperties, "version_orig") + delete(additionalProperties, "vulnerability_counts") delete(additionalProperties, "vulnerability_scan_results_url") o.AdditionalProperties = additionalProperties } diff --git a/model_swift_package_upload_request.go b/model_swift_package_upload_request.go index c6a79fa9..95fb5e66 100644 --- a/model_swift_package_upload_request.go +++ b/model_swift_package_upload_request.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1288.1 +API version: 1.1341.7 Contact: support@cloudsmith.io */ @@ -25,6 +25,8 @@ type SwiftPackageUploadRequest struct { AuthorName *string `json:"author_name,omitempty"` // The organization of the author. AuthorOrg *string `json:"author_org,omitempty"` + // Whether the package has been detected as containing malware. Requires Ultra plan. + IsMalwareDetected *bool `json:"is_malware_detected,omitempty"` // The license URL of this package. LicenseUrl NullableString `json:"license_url,omitempty"` // The name of this package. @@ -42,7 +44,8 @@ type SwiftPackageUploadRequest struct { // A comma-separated values list of tags to add to the package. Tags NullableString `json:"tags,omitempty"` // The raw version for this package. - Version string `json:"version"` + Version string `json:"version"` + VulnerabilityCounts NullableWebOSVSeverityCounts `json:"vulnerability_counts,omitempty"` AdditionalProperties map[string]interface{} } @@ -133,6 +136,38 @@ func (o *SwiftPackageUploadRequest) SetAuthorOrg(v string) { o.AuthorOrg = &v } +// GetIsMalwareDetected returns the IsMalwareDetected field value if set, zero value otherwise. +func (o *SwiftPackageUploadRequest) GetIsMalwareDetected() bool { + if o == nil || IsNil(o.IsMalwareDetected) { + var ret bool + return ret + } + return *o.IsMalwareDetected +} + +// GetIsMalwareDetectedOk returns a tuple with the IsMalwareDetected field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SwiftPackageUploadRequest) GetIsMalwareDetectedOk() (*bool, bool) { + if o == nil || IsNil(o.IsMalwareDetected) { + return nil, false + } + return o.IsMalwareDetected, true +} + +// HasIsMalwareDetected returns a boolean if a field has been set. +func (o *SwiftPackageUploadRequest) HasIsMalwareDetected() bool { + if o != nil && !IsNil(o.IsMalwareDetected) { + return true + } + + return false +} + +// SetIsMalwareDetected gets a reference to the given bool and assigns it to the IsMalwareDetected field. +func (o *SwiftPackageUploadRequest) SetIsMalwareDetected(v bool) { + o.IsMalwareDetected = &v +} + // GetLicenseUrl returns the LicenseUrl field value if set, zero value otherwise (both if not set or set to explicit null). func (o *SwiftPackageUploadRequest) GetLicenseUrl() string { if o == nil || IsNil(o.LicenseUrl.Get()) { @@ -411,6 +446,49 @@ func (o *SwiftPackageUploadRequest) SetVersion(v string) { o.Version = v } +// GetVulnerabilityCounts returns the VulnerabilityCounts field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *SwiftPackageUploadRequest) GetVulnerabilityCounts() WebOSVSeverityCounts { + if o == nil || IsNil(o.VulnerabilityCounts.Get()) { + var ret WebOSVSeverityCounts + return ret + } + return *o.VulnerabilityCounts.Get() +} + +// GetVulnerabilityCountsOk returns a tuple with the VulnerabilityCounts 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 *SwiftPackageUploadRequest) GetVulnerabilityCountsOk() (*WebOSVSeverityCounts, bool) { + if o == nil { + return nil, false + } + return o.VulnerabilityCounts.Get(), o.VulnerabilityCounts.IsSet() +} + +// HasVulnerabilityCounts returns a boolean if a field has been set. +func (o *SwiftPackageUploadRequest) HasVulnerabilityCounts() bool { + if o != nil && o.VulnerabilityCounts.IsSet() { + return true + } + + return false +} + +// SetVulnerabilityCounts gets a reference to the given NullableWebOSVSeverityCounts and assigns it to the VulnerabilityCounts field. +func (o *SwiftPackageUploadRequest) SetVulnerabilityCounts(v WebOSVSeverityCounts) { + o.VulnerabilityCounts.Set(&v) +} + +// SetVulnerabilityCountsNil sets the value for VulnerabilityCounts to be an explicit nil +func (o *SwiftPackageUploadRequest) SetVulnerabilityCountsNil() { + o.VulnerabilityCounts.Set(nil) +} + +// UnsetVulnerabilityCounts ensures that no value is present for VulnerabilityCounts, not even an explicit nil +func (o *SwiftPackageUploadRequest) UnsetVulnerabilityCounts() { + o.VulnerabilityCounts.Unset() +} + func (o SwiftPackageUploadRequest) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { @@ -427,6 +505,9 @@ func (o SwiftPackageUploadRequest) ToMap() (map[string]interface{}, error) { if !IsNil(o.AuthorOrg) { toSerialize["author_org"] = o.AuthorOrg } + if !IsNil(o.IsMalwareDetected) { + toSerialize["is_malware_detected"] = o.IsMalwareDetected + } if o.LicenseUrl.IsSet() { toSerialize["license_url"] = o.LicenseUrl.Get() } @@ -446,6 +527,9 @@ func (o SwiftPackageUploadRequest) ToMap() (map[string]interface{}, error) { toSerialize["tags"] = o.Tags.Get() } toSerialize["version"] = o.Version + if o.VulnerabilityCounts.IsSet() { + toSerialize["vulnerability_counts"] = o.VulnerabilityCounts.Get() + } for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -494,6 +578,7 @@ func (o *SwiftPackageUploadRequest) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "author_name") delete(additionalProperties, "author_org") + delete(additionalProperties, "is_malware_detected") delete(additionalProperties, "license_url") delete(additionalProperties, "name") delete(additionalProperties, "package_file") @@ -503,6 +588,7 @@ func (o *SwiftPackageUploadRequest) UnmarshalJSON(data []byte) (err error) { delete(additionalProperties, "scope") delete(additionalProperties, "tags") delete(additionalProperties, "version") + delete(additionalProperties, "vulnerability_counts") o.AdditionalProperties = additionalProperties } diff --git a/model_swift_upstream.go b/model_swift_upstream.go index f9f1c79f..dc6b4f7a 100644 --- a/model_swift_upstream.go +++ b/model_swift_upstream.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1288.1 +API version: 1.1341.7 Contact: support@cloudsmith.io */ diff --git a/model_swift_upstream_request.go b/model_swift_upstream_request.go index 741336a4..37ee7f20 100644 --- a/model_swift_upstream_request.go +++ b/model_swift_upstream_request.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1288.1 +API version: 1.1341.7 Contact: support@cloudsmith.io */ diff --git a/model_swift_upstream_request_patch.go b/model_swift_upstream_request_patch.go index bf77dfd2..109c36ce 100644 --- a/model_swift_upstream_request_patch.go +++ b/model_swift_upstream_request_patch.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1288.1 +API version: 1.1341.7 Contact: support@cloudsmith.io */ diff --git a/model_terraform_package_upload.go b/model_terraform_package_upload.go index 8128b262..1df94a29 100644 --- a/model_terraform_package_upload.go +++ b/model_terraform_package_upload.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1288.1 +API version: 1.1341.7 Contact: support@cloudsmith.io */ @@ -49,23 +49,25 @@ type TerraformPackageUpload struct { // Unique and permanent identifier for the package. IdentifierPerm *string `json:"identifier_perm,omitempty"` // Return a map of identifier field names and their values. - Identifiers *map[string]string `json:"identifiers,omitempty"` - Indexed *bool `json:"indexed,omitempty"` - IsCancellable *bool `json:"is_cancellable,omitempty"` - IsCopyable *bool `json:"is_copyable,omitempty"` - IsDeleteable *bool `json:"is_deleteable,omitempty"` - IsDownloadable *bool `json:"is_downloadable,omitempty"` - IsHidden *bool `json:"is_hidden,omitempty"` - IsMoveable *bool `json:"is_moveable,omitempty"` - IsQuarantinable *bool `json:"is_quarantinable,omitempty"` - IsQuarantined *bool `json:"is_quarantined,omitempty"` - IsResyncable *bool `json:"is_resyncable,omitempty"` - IsSecurityScannable *bool `json:"is_security_scannable,omitempty"` - IsSyncAwaiting *bool `json:"is_sync_awaiting,omitempty"` - IsSyncCompleted *bool `json:"is_sync_completed,omitempty"` - IsSyncFailed *bool `json:"is_sync_failed,omitempty"` - IsSyncInFlight *bool `json:"is_sync_in_flight,omitempty"` - IsSyncInProgress *bool `json:"is_sync_in_progress,omitempty"` + Identifiers *map[string]string `json:"identifiers,omitempty"` + Indexed *bool `json:"indexed,omitempty"` + IsCancellable *bool `json:"is_cancellable,omitempty"` + IsCopyable *bool `json:"is_copyable,omitempty"` + IsDeleteable *bool `json:"is_deleteable,omitempty"` + IsDownloadable *bool `json:"is_downloadable,omitempty"` + IsHidden *bool `json:"is_hidden,omitempty"` + // Whether the package has been detected as containing malware. Requires Ultra plan. + IsMalwareDetected *bool `json:"is_malware_detected,omitempty"` + IsMoveable *bool `json:"is_moveable,omitempty"` + IsQuarantinable *bool `json:"is_quarantinable,omitempty"` + IsQuarantined *bool `json:"is_quarantined,omitempty"` + IsResyncable *bool `json:"is_resyncable,omitempty"` + IsSecurityScannable *bool `json:"is_security_scannable,omitempty"` + IsSyncAwaiting *bool `json:"is_sync_awaiting,omitempty"` + IsSyncCompleted *bool `json:"is_sync_completed,omitempty"` + IsSyncFailed *bool `json:"is_sync_failed,omitempty"` + IsSyncInFlight *bool `json:"is_sync_in_flight,omitempty"` + IsSyncInProgress *bool `json:"is_sync_in_progress,omitempty"` // The license of this package. License NullableString `json:"license,omitempty"` // The name of this package. @@ -135,9 +137,10 @@ type TerraformPackageUpload struct { Uploader *string `json:"uploader,omitempty"` UploaderUrl *string `json:"uploader_url,omitempty"` // The raw version for this package. - Version NullableString `json:"version,omitempty"` - VersionOrig *string `json:"version_orig,omitempty"` - VulnerabilityScanResultsUrl *string `json:"vulnerability_scan_results_url,omitempty"` + Version NullableString `json:"version,omitempty"` + VersionOrig *string `json:"version_orig,omitempty"` + VulnerabilityCounts NullableWebOSVSeverityCounts `json:"vulnerability_counts,omitempty"` + VulnerabilityScanResultsUrl *string `json:"vulnerability_scan_results_url,omitempty"` AdditionalProperties map[string]interface{} } @@ -1154,6 +1157,38 @@ func (o *TerraformPackageUpload) SetIsHidden(v bool) { o.IsHidden = &v } +// GetIsMalwareDetected returns the IsMalwareDetected field value if set, zero value otherwise. +func (o *TerraformPackageUpload) GetIsMalwareDetected() bool { + if o == nil || IsNil(o.IsMalwareDetected) { + var ret bool + return ret + } + return *o.IsMalwareDetected +} + +// GetIsMalwareDetectedOk returns a tuple with the IsMalwareDetected field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *TerraformPackageUpload) GetIsMalwareDetectedOk() (*bool, bool) { + if o == nil || IsNil(o.IsMalwareDetected) { + return nil, false + } + return o.IsMalwareDetected, true +} + +// HasIsMalwareDetected returns a boolean if a field has been set. +func (o *TerraformPackageUpload) HasIsMalwareDetected() bool { + if o != nil && !IsNil(o.IsMalwareDetected) { + return true + } + + return false +} + +// SetIsMalwareDetected gets a reference to the given bool and assigns it to the IsMalwareDetected field. +func (o *TerraformPackageUpload) SetIsMalwareDetected(v bool) { + o.IsMalwareDetected = &v +} + // GetIsMoveable returns the IsMoveable field value if set, zero value otherwise. func (o *TerraformPackageUpload) GetIsMoveable() bool { if o == nil || IsNil(o.IsMoveable) { @@ -3100,6 +3135,49 @@ func (o *TerraformPackageUpload) SetVersionOrig(v string) { o.VersionOrig = &v } +// GetVulnerabilityCounts returns the VulnerabilityCounts field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *TerraformPackageUpload) GetVulnerabilityCounts() WebOSVSeverityCounts { + if o == nil || IsNil(o.VulnerabilityCounts.Get()) { + var ret WebOSVSeverityCounts + return ret + } + return *o.VulnerabilityCounts.Get() +} + +// GetVulnerabilityCountsOk returns a tuple with the VulnerabilityCounts 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 *TerraformPackageUpload) GetVulnerabilityCountsOk() (*WebOSVSeverityCounts, bool) { + if o == nil { + return nil, false + } + return o.VulnerabilityCounts.Get(), o.VulnerabilityCounts.IsSet() +} + +// HasVulnerabilityCounts returns a boolean if a field has been set. +func (o *TerraformPackageUpload) HasVulnerabilityCounts() bool { + if o != nil && o.VulnerabilityCounts.IsSet() { + return true + } + + return false +} + +// SetVulnerabilityCounts gets a reference to the given NullableWebOSVSeverityCounts and assigns it to the VulnerabilityCounts field. +func (o *TerraformPackageUpload) SetVulnerabilityCounts(v WebOSVSeverityCounts) { + o.VulnerabilityCounts.Set(&v) +} + +// SetVulnerabilityCountsNil sets the value for VulnerabilityCounts to be an explicit nil +func (o *TerraformPackageUpload) SetVulnerabilityCountsNil() { + o.VulnerabilityCounts.Set(nil) +} + +// UnsetVulnerabilityCounts ensures that no value is present for VulnerabilityCounts, not even an explicit nil +func (o *TerraformPackageUpload) UnsetVulnerabilityCounts() { + o.VulnerabilityCounts.Unset() +} + // GetVulnerabilityScanResultsUrl returns the VulnerabilityScanResultsUrl field value if set, zero value otherwise. func (o *TerraformPackageUpload) GetVulnerabilityScanResultsUrl() string { if o == nil || IsNil(o.VulnerabilityScanResultsUrl) { @@ -3229,6 +3307,9 @@ func (o TerraformPackageUpload) ToMap() (map[string]interface{}, error) { if !IsNil(o.IsHidden) { toSerialize["is_hidden"] = o.IsHidden } + if !IsNil(o.IsMalwareDetected) { + toSerialize["is_malware_detected"] = o.IsMalwareDetected + } if !IsNil(o.IsMoveable) { toSerialize["is_moveable"] = o.IsMoveable } @@ -3397,6 +3478,9 @@ func (o TerraformPackageUpload) ToMap() (map[string]interface{}, error) { if !IsNil(o.VersionOrig) { toSerialize["version_orig"] = o.VersionOrig } + if o.VulnerabilityCounts.IsSet() { + toSerialize["vulnerability_counts"] = o.VulnerabilityCounts.Get() + } if !IsNil(o.VulnerabilityScanResultsUrl) { toSerialize["vulnerability_scan_results_url"] = o.VulnerabilityScanResultsUrl } @@ -3451,6 +3535,7 @@ func (o *TerraformPackageUpload) UnmarshalJSON(data []byte) (err error) { delete(additionalProperties, "is_deleteable") delete(additionalProperties, "is_downloadable") delete(additionalProperties, "is_hidden") + delete(additionalProperties, "is_malware_detected") delete(additionalProperties, "is_moveable") delete(additionalProperties, "is_quarantinable") delete(additionalProperties, "is_quarantined") @@ -3507,6 +3592,7 @@ func (o *TerraformPackageUpload) UnmarshalJSON(data []byte) (err error) { delete(additionalProperties, "uploader_url") delete(additionalProperties, "version") delete(additionalProperties, "version_orig") + delete(additionalProperties, "vulnerability_counts") delete(additionalProperties, "vulnerability_scan_results_url") o.AdditionalProperties = additionalProperties } diff --git a/model_terraform_package_upload_request.go b/model_terraform_package_upload_request.go index 785744ce..5af24913 100644 --- a/model_terraform_package_upload_request.go +++ b/model_terraform_package_upload_request.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1288.1 +API version: 1.1341.7 Contact: support@cloudsmith.io */ @@ -21,12 +21,15 @@ var _ MappedNullable = &TerraformPackageUploadRequest{} // TerraformPackageUploadRequest struct for TerraformPackageUploadRequest type TerraformPackageUploadRequest struct { + // Whether the package has been detected as containing malware. Requires Ultra plan. + IsMalwareDetected *bool `json:"is_malware_detected,omitempty"` // The primary file for the package. PackageFile string `json:"package_file"` // If true, the uploaded package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate. Republish *bool `json:"republish,omitempty"` // A comma-separated values list of tags to add to the package. - Tags NullableString `json:"tags,omitempty"` + Tags NullableString `json:"tags,omitempty"` + VulnerabilityCounts NullableWebOSVSeverityCounts `json:"vulnerability_counts,omitempty"` AdditionalProperties map[string]interface{} } @@ -50,6 +53,38 @@ func NewTerraformPackageUploadRequestWithDefaults() *TerraformPackageUploadReque return &this } +// GetIsMalwareDetected returns the IsMalwareDetected field value if set, zero value otherwise. +func (o *TerraformPackageUploadRequest) GetIsMalwareDetected() bool { + if o == nil || IsNil(o.IsMalwareDetected) { + var ret bool + return ret + } + return *o.IsMalwareDetected +} + +// GetIsMalwareDetectedOk returns a tuple with the IsMalwareDetected field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *TerraformPackageUploadRequest) GetIsMalwareDetectedOk() (*bool, bool) { + if o == nil || IsNil(o.IsMalwareDetected) { + return nil, false + } + return o.IsMalwareDetected, true +} + +// HasIsMalwareDetected returns a boolean if a field has been set. +func (o *TerraformPackageUploadRequest) HasIsMalwareDetected() bool { + if o != nil && !IsNil(o.IsMalwareDetected) { + return true + } + + return false +} + +// SetIsMalwareDetected gets a reference to the given bool and assigns it to the IsMalwareDetected field. +func (o *TerraformPackageUploadRequest) SetIsMalwareDetected(v bool) { + o.IsMalwareDetected = &v +} + // GetPackageFile returns the PackageFile field value func (o *TerraformPackageUploadRequest) GetPackageFile() string { if o == nil { @@ -149,6 +184,49 @@ func (o *TerraformPackageUploadRequest) UnsetTags() { o.Tags.Unset() } +// GetVulnerabilityCounts returns the VulnerabilityCounts field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *TerraformPackageUploadRequest) GetVulnerabilityCounts() WebOSVSeverityCounts { + if o == nil || IsNil(o.VulnerabilityCounts.Get()) { + var ret WebOSVSeverityCounts + return ret + } + return *o.VulnerabilityCounts.Get() +} + +// GetVulnerabilityCountsOk returns a tuple with the VulnerabilityCounts 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 *TerraformPackageUploadRequest) GetVulnerabilityCountsOk() (*WebOSVSeverityCounts, bool) { + if o == nil { + return nil, false + } + return o.VulnerabilityCounts.Get(), o.VulnerabilityCounts.IsSet() +} + +// HasVulnerabilityCounts returns a boolean if a field has been set. +func (o *TerraformPackageUploadRequest) HasVulnerabilityCounts() bool { + if o != nil && o.VulnerabilityCounts.IsSet() { + return true + } + + return false +} + +// SetVulnerabilityCounts gets a reference to the given NullableWebOSVSeverityCounts and assigns it to the VulnerabilityCounts field. +func (o *TerraformPackageUploadRequest) SetVulnerabilityCounts(v WebOSVSeverityCounts) { + o.VulnerabilityCounts.Set(&v) +} + +// SetVulnerabilityCountsNil sets the value for VulnerabilityCounts to be an explicit nil +func (o *TerraformPackageUploadRequest) SetVulnerabilityCountsNil() { + o.VulnerabilityCounts.Set(nil) +} + +// UnsetVulnerabilityCounts ensures that no value is present for VulnerabilityCounts, not even an explicit nil +func (o *TerraformPackageUploadRequest) UnsetVulnerabilityCounts() { + o.VulnerabilityCounts.Unset() +} + func (o TerraformPackageUploadRequest) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { @@ -159,6 +237,9 @@ func (o TerraformPackageUploadRequest) MarshalJSON() ([]byte, error) { func (o TerraformPackageUploadRequest) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} + if !IsNil(o.IsMalwareDetected) { + toSerialize["is_malware_detected"] = o.IsMalwareDetected + } toSerialize["package_file"] = o.PackageFile if !IsNil(o.Republish) { toSerialize["republish"] = o.Republish @@ -166,6 +247,9 @@ func (o TerraformPackageUploadRequest) ToMap() (map[string]interface{}, error) { if o.Tags.IsSet() { toSerialize["tags"] = o.Tags.Get() } + if o.VulnerabilityCounts.IsSet() { + toSerialize["vulnerability_counts"] = o.VulnerabilityCounts.Get() + } for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -209,9 +293,11 @@ func (o *TerraformPackageUploadRequest) UnmarshalJSON(data []byte) (err error) { additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "is_malware_detected") delete(additionalProperties, "package_file") delete(additionalProperties, "republish") delete(additionalProperties, "tags") + delete(additionalProperties, "vulnerability_counts") o.AdditionalProperties = additionalProperties } diff --git a/model_usage.go b/model_usage.go index f2d72a18..52ff2734 100644 --- a/model_usage.go +++ b/model_usage.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1288.1 +API version: 1.1341.7 Contact: support@cloudsmith.io */ diff --git a/model_usage_fieldset.go b/model_usage_fieldset.go index 0cb74135..d678da9d 100644 --- a/model_usage_fieldset.go +++ b/model_usage_fieldset.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1288.1 +API version: 1.1341.7 Contact: support@cloudsmith.io */ diff --git a/model_usage_limits.go b/model_usage_limits.go index 5ec39d8f..8b4ce50e 100644 --- a/model_usage_limits.go +++ b/model_usage_limits.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1288.1 +API version: 1.1341.7 Contact: support@cloudsmith.io */ diff --git a/model_usage_limits_raw.go b/model_usage_limits_raw.go index 238193ed..1278202e 100644 --- a/model_usage_limits_raw.go +++ b/model_usage_limits_raw.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1288.1 +API version: 1.1341.7 Contact: support@cloudsmith.io */ diff --git a/model_usage_raw.go b/model_usage_raw.go index 35d0ef9a..15f58829 100644 --- a/model_usage_raw.go +++ b/model_usage_raw.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1288.1 +API version: 1.1341.7 Contact: support@cloudsmith.io */ diff --git a/model_user_auth_token.go b/model_user_auth_token.go index 64373c2f..b71fdce7 100644 --- a/model_user_auth_token.go +++ b/model_user_auth_token.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1288.1 +API version: 1.1341.7 Contact: support@cloudsmith.io */ diff --git a/model_user_auth_token_request.go b/model_user_auth_token_request.go index b22838e3..fdf10a7e 100644 --- a/model_user_auth_token_request.go +++ b/model_user_auth_token_request.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1288.1 +API version: 1.1341.7 Contact: support@cloudsmith.io */ diff --git a/model_user_authentication_token.go b/model_user_authentication_token.go index 48b20346..f70580cc 100644 --- a/model_user_authentication_token.go +++ b/model_user_authentication_token.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1288.1 +API version: 1.1341.7 Contact: support@cloudsmith.io */ diff --git a/model_user_brief.go b/model_user_brief.go index 090a384c..67d775b4 100644 --- a/model_user_brief.go +++ b/model_user_brief.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1288.1 +API version: 1.1341.7 Contact: support@cloudsmith.io */ diff --git a/model_user_profile.go b/model_user_profile.go index 901f531a..3f993362 100644 --- a/model_user_profile.go +++ b/model_user_profile.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1288.1 +API version: 1.1341.7 Contact: support@cloudsmith.io */ diff --git a/model_user_tokens_list_200_response.go b/model_user_tokens_list_200_response.go index c56b07c0..2b04aaf2 100644 --- a/model_user_tokens_list_200_response.go +++ b/model_user_tokens_list_200_response.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1288.1 +API version: 1.1341.7 Contact: support@cloudsmith.io */ diff --git a/model_vagrant_package_upload.go b/model_vagrant_package_upload.go index 8d6e6a2d..a04768b2 100644 --- a/model_vagrant_package_upload.go +++ b/model_vagrant_package_upload.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1288.1 +API version: 1.1341.7 Contact: support@cloudsmith.io */ @@ -50,23 +50,25 @@ type VagrantPackageUpload struct { // Unique and permanent identifier for the package. IdentifierPerm *string `json:"identifier_perm,omitempty"` // Return a map of identifier field names and their values. - Identifiers *map[string]string `json:"identifiers,omitempty"` - Indexed *bool `json:"indexed,omitempty"` - IsCancellable *bool `json:"is_cancellable,omitempty"` - IsCopyable *bool `json:"is_copyable,omitempty"` - IsDeleteable *bool `json:"is_deleteable,omitempty"` - IsDownloadable *bool `json:"is_downloadable,omitempty"` - IsHidden *bool `json:"is_hidden,omitempty"` - IsMoveable *bool `json:"is_moveable,omitempty"` - IsQuarantinable *bool `json:"is_quarantinable,omitempty"` - IsQuarantined *bool `json:"is_quarantined,omitempty"` - IsResyncable *bool `json:"is_resyncable,omitempty"` - IsSecurityScannable *bool `json:"is_security_scannable,omitempty"` - IsSyncAwaiting *bool `json:"is_sync_awaiting,omitempty"` - IsSyncCompleted *bool `json:"is_sync_completed,omitempty"` - IsSyncFailed *bool `json:"is_sync_failed,omitempty"` - IsSyncInFlight *bool `json:"is_sync_in_flight,omitempty"` - IsSyncInProgress *bool `json:"is_sync_in_progress,omitempty"` + Identifiers *map[string]string `json:"identifiers,omitempty"` + Indexed *bool `json:"indexed,omitempty"` + IsCancellable *bool `json:"is_cancellable,omitempty"` + IsCopyable *bool `json:"is_copyable,omitempty"` + IsDeleteable *bool `json:"is_deleteable,omitempty"` + IsDownloadable *bool `json:"is_downloadable,omitempty"` + IsHidden *bool `json:"is_hidden,omitempty"` + // Whether the package has been detected as containing malware. Requires Ultra plan. + IsMalwareDetected *bool `json:"is_malware_detected,omitempty"` + IsMoveable *bool `json:"is_moveable,omitempty"` + IsQuarantinable *bool `json:"is_quarantinable,omitempty"` + IsQuarantined *bool `json:"is_quarantined,omitempty"` + IsResyncable *bool `json:"is_resyncable,omitempty"` + IsSecurityScannable *bool `json:"is_security_scannable,omitempty"` + IsSyncAwaiting *bool `json:"is_sync_awaiting,omitempty"` + IsSyncCompleted *bool `json:"is_sync_completed,omitempty"` + IsSyncFailed *bool `json:"is_sync_failed,omitempty"` + IsSyncInFlight *bool `json:"is_sync_in_flight,omitempty"` + IsSyncInProgress *bool `json:"is_sync_in_progress,omitempty"` // The license of this package. License NullableString `json:"license,omitempty"` // The name of this package. @@ -138,9 +140,10 @@ type VagrantPackageUpload struct { Uploader *string `json:"uploader,omitempty"` UploaderUrl *string `json:"uploader_url,omitempty"` // The raw version for this package. - Version string `json:"version"` - VersionOrig *string `json:"version_orig,omitempty"` - VulnerabilityScanResultsUrl *string `json:"vulnerability_scan_results_url,omitempty"` + Version string `json:"version"` + VersionOrig *string `json:"version_orig,omitempty"` + VulnerabilityCounts NullableWebOSVSeverityCounts `json:"vulnerability_counts,omitempty"` + VulnerabilityScanResultsUrl *string `json:"vulnerability_scan_results_url,omitempty"` AdditionalProperties map[string]interface{} } @@ -1160,6 +1163,38 @@ func (o *VagrantPackageUpload) SetIsHidden(v bool) { o.IsHidden = &v } +// GetIsMalwareDetected returns the IsMalwareDetected field value if set, zero value otherwise. +func (o *VagrantPackageUpload) GetIsMalwareDetected() bool { + if o == nil || IsNil(o.IsMalwareDetected) { + var ret bool + return ret + } + return *o.IsMalwareDetected +} + +// GetIsMalwareDetectedOk returns a tuple with the IsMalwareDetected field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *VagrantPackageUpload) GetIsMalwareDetectedOk() (*bool, bool) { + if o == nil || IsNil(o.IsMalwareDetected) { + return nil, false + } + return o.IsMalwareDetected, true +} + +// HasIsMalwareDetected returns a boolean if a field has been set. +func (o *VagrantPackageUpload) HasIsMalwareDetected() bool { + if o != nil && !IsNil(o.IsMalwareDetected) { + return true + } + + return false +} + +// SetIsMalwareDetected gets a reference to the given bool and assigns it to the IsMalwareDetected field. +func (o *VagrantPackageUpload) SetIsMalwareDetected(v bool) { + o.IsMalwareDetected = &v +} + // GetIsMoveable returns the IsMoveable field value if set, zero value otherwise. func (o *VagrantPackageUpload) GetIsMoveable() bool { if o == nil || IsNil(o.IsMoveable) { @@ -3092,6 +3127,49 @@ func (o *VagrantPackageUpload) SetVersionOrig(v string) { o.VersionOrig = &v } +// GetVulnerabilityCounts returns the VulnerabilityCounts field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *VagrantPackageUpload) GetVulnerabilityCounts() WebOSVSeverityCounts { + if o == nil || IsNil(o.VulnerabilityCounts.Get()) { + var ret WebOSVSeverityCounts + return ret + } + return *o.VulnerabilityCounts.Get() +} + +// GetVulnerabilityCountsOk returns a tuple with the VulnerabilityCounts 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 *VagrantPackageUpload) GetVulnerabilityCountsOk() (*WebOSVSeverityCounts, bool) { + if o == nil { + return nil, false + } + return o.VulnerabilityCounts.Get(), o.VulnerabilityCounts.IsSet() +} + +// HasVulnerabilityCounts returns a boolean if a field has been set. +func (o *VagrantPackageUpload) HasVulnerabilityCounts() bool { + if o != nil && o.VulnerabilityCounts.IsSet() { + return true + } + + return false +} + +// SetVulnerabilityCounts gets a reference to the given NullableWebOSVSeverityCounts and assigns it to the VulnerabilityCounts field. +func (o *VagrantPackageUpload) SetVulnerabilityCounts(v WebOSVSeverityCounts) { + o.VulnerabilityCounts.Set(&v) +} + +// SetVulnerabilityCountsNil sets the value for VulnerabilityCounts to be an explicit nil +func (o *VagrantPackageUpload) SetVulnerabilityCountsNil() { + o.VulnerabilityCounts.Set(nil) +} + +// UnsetVulnerabilityCounts ensures that no value is present for VulnerabilityCounts, not even an explicit nil +func (o *VagrantPackageUpload) UnsetVulnerabilityCounts() { + o.VulnerabilityCounts.Unset() +} + // GetVulnerabilityScanResultsUrl returns the VulnerabilityScanResultsUrl field value if set, zero value otherwise. func (o *VagrantPackageUpload) GetVulnerabilityScanResultsUrl() string { if o == nil || IsNil(o.VulnerabilityScanResultsUrl) { @@ -3221,6 +3299,9 @@ func (o VagrantPackageUpload) ToMap() (map[string]interface{}, error) { if !IsNil(o.IsHidden) { toSerialize["is_hidden"] = o.IsHidden } + if !IsNil(o.IsMalwareDetected) { + toSerialize["is_malware_detected"] = o.IsMalwareDetected + } if !IsNil(o.IsMoveable) { toSerialize["is_moveable"] = o.IsMoveable } @@ -3386,6 +3467,9 @@ func (o VagrantPackageUpload) ToMap() (map[string]interface{}, error) { if !IsNil(o.VersionOrig) { toSerialize["version_orig"] = o.VersionOrig } + if o.VulnerabilityCounts.IsSet() { + toSerialize["vulnerability_counts"] = o.VulnerabilityCounts.Get() + } if !IsNil(o.VulnerabilityScanResultsUrl) { toSerialize["vulnerability_scan_results_url"] = o.VulnerabilityScanResultsUrl } @@ -3463,6 +3547,7 @@ func (o *VagrantPackageUpload) UnmarshalJSON(data []byte) (err error) { delete(additionalProperties, "is_deleteable") delete(additionalProperties, "is_downloadable") delete(additionalProperties, "is_hidden") + delete(additionalProperties, "is_malware_detected") delete(additionalProperties, "is_moveable") delete(additionalProperties, "is_quarantinable") delete(additionalProperties, "is_quarantined") @@ -3520,6 +3605,7 @@ func (o *VagrantPackageUpload) UnmarshalJSON(data []byte) (err error) { delete(additionalProperties, "uploader_url") delete(additionalProperties, "version") delete(additionalProperties, "version_orig") + delete(additionalProperties, "vulnerability_counts") delete(additionalProperties, "vulnerability_scan_results_url") o.AdditionalProperties = additionalProperties } diff --git a/model_vagrant_package_upload_request.go b/model_vagrant_package_upload_request.go index 24f118d3..b76e320c 100644 --- a/model_vagrant_package_upload_request.go +++ b/model_vagrant_package_upload_request.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1288.1 +API version: 1.1341.7 Contact: support@cloudsmith.io */ @@ -21,6 +21,8 @@ var _ MappedNullable = &VagrantPackageUploadRequest{} // VagrantPackageUploadRequest struct for VagrantPackageUploadRequest type VagrantPackageUploadRequest struct { + // Whether the package has been detected as containing malware. Requires Ultra plan. + IsMalwareDetected *bool `json:"is_malware_detected,omitempty"` // The name of this package. Name string `json:"name"` // The primary file for the package. @@ -32,7 +34,8 @@ type VagrantPackageUploadRequest struct { // A comma-separated values list of tags to add to the package. Tags NullableString `json:"tags,omitempty"` // The raw version for this package. - Version string `json:"version"` + Version string `json:"version"` + VulnerabilityCounts NullableWebOSVSeverityCounts `json:"vulnerability_counts,omitempty"` AdditionalProperties map[string]interface{} } @@ -59,6 +62,38 @@ func NewVagrantPackageUploadRequestWithDefaults() *VagrantPackageUploadRequest { return &this } +// GetIsMalwareDetected returns the IsMalwareDetected field value if set, zero value otherwise. +func (o *VagrantPackageUploadRequest) GetIsMalwareDetected() bool { + if o == nil || IsNil(o.IsMalwareDetected) { + var ret bool + return ret + } + return *o.IsMalwareDetected +} + +// GetIsMalwareDetectedOk returns a tuple with the IsMalwareDetected field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *VagrantPackageUploadRequest) GetIsMalwareDetectedOk() (*bool, bool) { + if o == nil || IsNil(o.IsMalwareDetected) { + return nil, false + } + return o.IsMalwareDetected, true +} + +// HasIsMalwareDetected returns a boolean if a field has been set. +func (o *VagrantPackageUploadRequest) HasIsMalwareDetected() bool { + if o != nil && !IsNil(o.IsMalwareDetected) { + return true + } + + return false +} + +// SetIsMalwareDetected gets a reference to the given bool and assigns it to the IsMalwareDetected field. +func (o *VagrantPackageUploadRequest) SetIsMalwareDetected(v bool) { + o.IsMalwareDetected = &v +} + // GetName returns the Name field value func (o *VagrantPackageUploadRequest) GetName() string { if o == nil { @@ -230,6 +265,49 @@ func (o *VagrantPackageUploadRequest) SetVersion(v string) { o.Version = v } +// GetVulnerabilityCounts returns the VulnerabilityCounts field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *VagrantPackageUploadRequest) GetVulnerabilityCounts() WebOSVSeverityCounts { + if o == nil || IsNil(o.VulnerabilityCounts.Get()) { + var ret WebOSVSeverityCounts + return ret + } + return *o.VulnerabilityCounts.Get() +} + +// GetVulnerabilityCountsOk returns a tuple with the VulnerabilityCounts 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 *VagrantPackageUploadRequest) GetVulnerabilityCountsOk() (*WebOSVSeverityCounts, bool) { + if o == nil { + return nil, false + } + return o.VulnerabilityCounts.Get(), o.VulnerabilityCounts.IsSet() +} + +// HasVulnerabilityCounts returns a boolean if a field has been set. +func (o *VagrantPackageUploadRequest) HasVulnerabilityCounts() bool { + if o != nil && o.VulnerabilityCounts.IsSet() { + return true + } + + return false +} + +// SetVulnerabilityCounts gets a reference to the given NullableWebOSVSeverityCounts and assigns it to the VulnerabilityCounts field. +func (o *VagrantPackageUploadRequest) SetVulnerabilityCounts(v WebOSVSeverityCounts) { + o.VulnerabilityCounts.Set(&v) +} + +// SetVulnerabilityCountsNil sets the value for VulnerabilityCounts to be an explicit nil +func (o *VagrantPackageUploadRequest) SetVulnerabilityCountsNil() { + o.VulnerabilityCounts.Set(nil) +} + +// UnsetVulnerabilityCounts ensures that no value is present for VulnerabilityCounts, not even an explicit nil +func (o *VagrantPackageUploadRequest) UnsetVulnerabilityCounts() { + o.VulnerabilityCounts.Unset() +} + func (o VagrantPackageUploadRequest) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { @@ -240,6 +318,9 @@ func (o VagrantPackageUploadRequest) MarshalJSON() ([]byte, error) { func (o VagrantPackageUploadRequest) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} + if !IsNil(o.IsMalwareDetected) { + toSerialize["is_malware_detected"] = o.IsMalwareDetected + } toSerialize["name"] = o.Name toSerialize["package_file"] = o.PackageFile toSerialize["provider"] = o.Provider @@ -250,6 +331,9 @@ func (o VagrantPackageUploadRequest) ToMap() (map[string]interface{}, error) { toSerialize["tags"] = o.Tags.Get() } toSerialize["version"] = o.Version + if o.VulnerabilityCounts.IsSet() { + toSerialize["vulnerability_counts"] = o.VulnerabilityCounts.Get() + } for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -296,12 +380,14 @@ func (o *VagrantPackageUploadRequest) UnmarshalJSON(data []byte) (err error) { additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "is_malware_detected") delete(additionalProperties, "name") delete(additionalProperties, "package_file") delete(additionalProperties, "provider") delete(additionalProperties, "republish") delete(additionalProperties, "tags") delete(additionalProperties, "version") + delete(additionalProperties, "vulnerability_counts") o.AdditionalProperties = additionalProperties } diff --git a/model_vsx_package_upload.go b/model_vsx_package_upload.go index b8128e56..2e77f149 100644 --- a/model_vsx_package_upload.go +++ b/model_vsx_package_upload.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1288.1 +API version: 1.1341.7 Contact: support@cloudsmith.io */ @@ -49,23 +49,25 @@ type VsxPackageUpload struct { // Unique and permanent identifier for the package. IdentifierPerm *string `json:"identifier_perm,omitempty"` // Return a map of identifier field names and their values. - Identifiers *map[string]string `json:"identifiers,omitempty"` - Indexed *bool `json:"indexed,omitempty"` - IsCancellable *bool `json:"is_cancellable,omitempty"` - IsCopyable *bool `json:"is_copyable,omitempty"` - IsDeleteable *bool `json:"is_deleteable,omitempty"` - IsDownloadable *bool `json:"is_downloadable,omitempty"` - IsHidden *bool `json:"is_hidden,omitempty"` - IsMoveable *bool `json:"is_moveable,omitempty"` - IsQuarantinable *bool `json:"is_quarantinable,omitempty"` - IsQuarantined *bool `json:"is_quarantined,omitempty"` - IsResyncable *bool `json:"is_resyncable,omitempty"` - IsSecurityScannable *bool `json:"is_security_scannable,omitempty"` - IsSyncAwaiting *bool `json:"is_sync_awaiting,omitempty"` - IsSyncCompleted *bool `json:"is_sync_completed,omitempty"` - IsSyncFailed *bool `json:"is_sync_failed,omitempty"` - IsSyncInFlight *bool `json:"is_sync_in_flight,omitempty"` - IsSyncInProgress *bool `json:"is_sync_in_progress,omitempty"` + Identifiers *map[string]string `json:"identifiers,omitempty"` + Indexed *bool `json:"indexed,omitempty"` + IsCancellable *bool `json:"is_cancellable,omitempty"` + IsCopyable *bool `json:"is_copyable,omitempty"` + IsDeleteable *bool `json:"is_deleteable,omitempty"` + IsDownloadable *bool `json:"is_downloadable,omitempty"` + IsHidden *bool `json:"is_hidden,omitempty"` + // Whether the package has been detected as containing malware. Requires Ultra plan. + IsMalwareDetected *bool `json:"is_malware_detected,omitempty"` + IsMoveable *bool `json:"is_moveable,omitempty"` + IsQuarantinable *bool `json:"is_quarantinable,omitempty"` + IsQuarantined *bool `json:"is_quarantined,omitempty"` + IsResyncable *bool `json:"is_resyncable,omitempty"` + IsSecurityScannable *bool `json:"is_security_scannable,omitempty"` + IsSyncAwaiting *bool `json:"is_sync_awaiting,omitempty"` + IsSyncCompleted *bool `json:"is_sync_completed,omitempty"` + IsSyncFailed *bool `json:"is_sync_failed,omitempty"` + IsSyncInFlight *bool `json:"is_sync_in_flight,omitempty"` + IsSyncInProgress *bool `json:"is_sync_in_progress,omitempty"` // The license of this package. License NullableString `json:"license,omitempty"` // The name of this package. @@ -135,9 +137,10 @@ type VsxPackageUpload struct { Uploader *string `json:"uploader,omitempty"` UploaderUrl *string `json:"uploader_url,omitempty"` // The raw version for this package. - Version NullableString `json:"version,omitempty"` - VersionOrig *string `json:"version_orig,omitempty"` - VulnerabilityScanResultsUrl *string `json:"vulnerability_scan_results_url,omitempty"` + Version NullableString `json:"version,omitempty"` + VersionOrig *string `json:"version_orig,omitempty"` + VulnerabilityCounts NullableWebOSVSeverityCounts `json:"vulnerability_counts,omitempty"` + VulnerabilityScanResultsUrl *string `json:"vulnerability_scan_results_url,omitempty"` AdditionalProperties map[string]interface{} } @@ -1154,6 +1157,38 @@ func (o *VsxPackageUpload) SetIsHidden(v bool) { o.IsHidden = &v } +// GetIsMalwareDetected returns the IsMalwareDetected field value if set, zero value otherwise. +func (o *VsxPackageUpload) GetIsMalwareDetected() bool { + if o == nil || IsNil(o.IsMalwareDetected) { + var ret bool + return ret + } + return *o.IsMalwareDetected +} + +// GetIsMalwareDetectedOk returns a tuple with the IsMalwareDetected field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *VsxPackageUpload) GetIsMalwareDetectedOk() (*bool, bool) { + if o == nil || IsNil(o.IsMalwareDetected) { + return nil, false + } + return o.IsMalwareDetected, true +} + +// HasIsMalwareDetected returns a boolean if a field has been set. +func (o *VsxPackageUpload) HasIsMalwareDetected() bool { + if o != nil && !IsNil(o.IsMalwareDetected) { + return true + } + + return false +} + +// SetIsMalwareDetected gets a reference to the given bool and assigns it to the IsMalwareDetected field. +func (o *VsxPackageUpload) SetIsMalwareDetected(v bool) { + o.IsMalwareDetected = &v +} + // GetIsMoveable returns the IsMoveable field value if set, zero value otherwise. func (o *VsxPackageUpload) GetIsMoveable() bool { if o == nil || IsNil(o.IsMoveable) { @@ -3100,6 +3135,49 @@ func (o *VsxPackageUpload) SetVersionOrig(v string) { o.VersionOrig = &v } +// GetVulnerabilityCounts returns the VulnerabilityCounts field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *VsxPackageUpload) GetVulnerabilityCounts() WebOSVSeverityCounts { + if o == nil || IsNil(o.VulnerabilityCounts.Get()) { + var ret WebOSVSeverityCounts + return ret + } + return *o.VulnerabilityCounts.Get() +} + +// GetVulnerabilityCountsOk returns a tuple with the VulnerabilityCounts 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 *VsxPackageUpload) GetVulnerabilityCountsOk() (*WebOSVSeverityCounts, bool) { + if o == nil { + return nil, false + } + return o.VulnerabilityCounts.Get(), o.VulnerabilityCounts.IsSet() +} + +// HasVulnerabilityCounts returns a boolean if a field has been set. +func (o *VsxPackageUpload) HasVulnerabilityCounts() bool { + if o != nil && o.VulnerabilityCounts.IsSet() { + return true + } + + return false +} + +// SetVulnerabilityCounts gets a reference to the given NullableWebOSVSeverityCounts and assigns it to the VulnerabilityCounts field. +func (o *VsxPackageUpload) SetVulnerabilityCounts(v WebOSVSeverityCounts) { + o.VulnerabilityCounts.Set(&v) +} + +// SetVulnerabilityCountsNil sets the value for VulnerabilityCounts to be an explicit nil +func (o *VsxPackageUpload) SetVulnerabilityCountsNil() { + o.VulnerabilityCounts.Set(nil) +} + +// UnsetVulnerabilityCounts ensures that no value is present for VulnerabilityCounts, not even an explicit nil +func (o *VsxPackageUpload) UnsetVulnerabilityCounts() { + o.VulnerabilityCounts.Unset() +} + // GetVulnerabilityScanResultsUrl returns the VulnerabilityScanResultsUrl field value if set, zero value otherwise. func (o *VsxPackageUpload) GetVulnerabilityScanResultsUrl() string { if o == nil || IsNil(o.VulnerabilityScanResultsUrl) { @@ -3229,6 +3307,9 @@ func (o VsxPackageUpload) ToMap() (map[string]interface{}, error) { if !IsNil(o.IsHidden) { toSerialize["is_hidden"] = o.IsHidden } + if !IsNil(o.IsMalwareDetected) { + toSerialize["is_malware_detected"] = o.IsMalwareDetected + } if !IsNil(o.IsMoveable) { toSerialize["is_moveable"] = o.IsMoveable } @@ -3397,6 +3478,9 @@ func (o VsxPackageUpload) ToMap() (map[string]interface{}, error) { if !IsNil(o.VersionOrig) { toSerialize["version_orig"] = o.VersionOrig } + if o.VulnerabilityCounts.IsSet() { + toSerialize["vulnerability_counts"] = o.VulnerabilityCounts.Get() + } if !IsNil(o.VulnerabilityScanResultsUrl) { toSerialize["vulnerability_scan_results_url"] = o.VulnerabilityScanResultsUrl } @@ -3451,6 +3535,7 @@ func (o *VsxPackageUpload) UnmarshalJSON(data []byte) (err error) { delete(additionalProperties, "is_deleteable") delete(additionalProperties, "is_downloadable") delete(additionalProperties, "is_hidden") + delete(additionalProperties, "is_malware_detected") delete(additionalProperties, "is_moveable") delete(additionalProperties, "is_quarantinable") delete(additionalProperties, "is_quarantined") @@ -3507,6 +3592,7 @@ func (o *VsxPackageUpload) UnmarshalJSON(data []byte) (err error) { delete(additionalProperties, "uploader_url") delete(additionalProperties, "version") delete(additionalProperties, "version_orig") + delete(additionalProperties, "vulnerability_counts") delete(additionalProperties, "vulnerability_scan_results_url") o.AdditionalProperties = additionalProperties } diff --git a/model_vsx_package_upload_request.go b/model_vsx_package_upload_request.go index 57d1cf3f..1cec29ae 100644 --- a/model_vsx_package_upload_request.go +++ b/model_vsx_package_upload_request.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1288.1 +API version: 1.1341.7 Contact: support@cloudsmith.io */ @@ -21,12 +21,15 @@ var _ MappedNullable = &VsxPackageUploadRequest{} // VsxPackageUploadRequest struct for VsxPackageUploadRequest type VsxPackageUploadRequest struct { + // Whether the package has been detected as containing malware. Requires Ultra plan. + IsMalwareDetected *bool `json:"is_malware_detected,omitempty"` // The primary file for the package. PackageFile string `json:"package_file"` // If true, the uploaded package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate. Republish *bool `json:"republish,omitempty"` // A comma-separated values list of tags to add to the package. - Tags NullableString `json:"tags,omitempty"` + Tags NullableString `json:"tags,omitempty"` + VulnerabilityCounts NullableWebOSVSeverityCounts `json:"vulnerability_counts,omitempty"` AdditionalProperties map[string]interface{} } @@ -50,6 +53,38 @@ func NewVsxPackageUploadRequestWithDefaults() *VsxPackageUploadRequest { return &this } +// GetIsMalwareDetected returns the IsMalwareDetected field value if set, zero value otherwise. +func (o *VsxPackageUploadRequest) GetIsMalwareDetected() bool { + if o == nil || IsNil(o.IsMalwareDetected) { + var ret bool + return ret + } + return *o.IsMalwareDetected +} + +// GetIsMalwareDetectedOk returns a tuple with the IsMalwareDetected field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *VsxPackageUploadRequest) GetIsMalwareDetectedOk() (*bool, bool) { + if o == nil || IsNil(o.IsMalwareDetected) { + return nil, false + } + return o.IsMalwareDetected, true +} + +// HasIsMalwareDetected returns a boolean if a field has been set. +func (o *VsxPackageUploadRequest) HasIsMalwareDetected() bool { + if o != nil && !IsNil(o.IsMalwareDetected) { + return true + } + + return false +} + +// SetIsMalwareDetected gets a reference to the given bool and assigns it to the IsMalwareDetected field. +func (o *VsxPackageUploadRequest) SetIsMalwareDetected(v bool) { + o.IsMalwareDetected = &v +} + // GetPackageFile returns the PackageFile field value func (o *VsxPackageUploadRequest) GetPackageFile() string { if o == nil { @@ -149,6 +184,49 @@ func (o *VsxPackageUploadRequest) UnsetTags() { o.Tags.Unset() } +// GetVulnerabilityCounts returns the VulnerabilityCounts field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *VsxPackageUploadRequest) GetVulnerabilityCounts() WebOSVSeverityCounts { + if o == nil || IsNil(o.VulnerabilityCounts.Get()) { + var ret WebOSVSeverityCounts + return ret + } + return *o.VulnerabilityCounts.Get() +} + +// GetVulnerabilityCountsOk returns a tuple with the VulnerabilityCounts 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 *VsxPackageUploadRequest) GetVulnerabilityCountsOk() (*WebOSVSeverityCounts, bool) { + if o == nil { + return nil, false + } + return o.VulnerabilityCounts.Get(), o.VulnerabilityCounts.IsSet() +} + +// HasVulnerabilityCounts returns a boolean if a field has been set. +func (o *VsxPackageUploadRequest) HasVulnerabilityCounts() bool { + if o != nil && o.VulnerabilityCounts.IsSet() { + return true + } + + return false +} + +// SetVulnerabilityCounts gets a reference to the given NullableWebOSVSeverityCounts and assigns it to the VulnerabilityCounts field. +func (o *VsxPackageUploadRequest) SetVulnerabilityCounts(v WebOSVSeverityCounts) { + o.VulnerabilityCounts.Set(&v) +} + +// SetVulnerabilityCountsNil sets the value for VulnerabilityCounts to be an explicit nil +func (o *VsxPackageUploadRequest) SetVulnerabilityCountsNil() { + o.VulnerabilityCounts.Set(nil) +} + +// UnsetVulnerabilityCounts ensures that no value is present for VulnerabilityCounts, not even an explicit nil +func (o *VsxPackageUploadRequest) UnsetVulnerabilityCounts() { + o.VulnerabilityCounts.Unset() +} + func (o VsxPackageUploadRequest) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { @@ -159,6 +237,9 @@ func (o VsxPackageUploadRequest) MarshalJSON() ([]byte, error) { func (o VsxPackageUploadRequest) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} + if !IsNil(o.IsMalwareDetected) { + toSerialize["is_malware_detected"] = o.IsMalwareDetected + } toSerialize["package_file"] = o.PackageFile if !IsNil(o.Republish) { toSerialize["republish"] = o.Republish @@ -166,6 +247,9 @@ func (o VsxPackageUploadRequest) ToMap() (map[string]interface{}, error) { if o.Tags.IsSet() { toSerialize["tags"] = o.Tags.Get() } + if o.VulnerabilityCounts.IsSet() { + toSerialize["vulnerability_counts"] = o.VulnerabilityCounts.Get() + } for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -209,9 +293,11 @@ func (o *VsxPackageUploadRequest) UnmarshalJSON(data []byte) (err error) { additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "is_malware_detected") delete(additionalProperties, "package_file") delete(additionalProperties, "republish") delete(additionalProperties, "tags") + delete(additionalProperties, "vulnerability_counts") o.AdditionalProperties = additionalProperties } diff --git a/model_vulnerability.go b/model_vulnerability.go index 46f0f6ea..8cfb23ac 100644 --- a/model_vulnerability.go +++ b/model_vulnerability.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1288.1 +API version: 1.1341.7 Contact: support@cloudsmith.io */ diff --git a/model_vulnerability_scan.go b/model_vulnerability_scan.go index f8f69da2..35b5663d 100644 --- a/model_vulnerability_scan.go +++ b/model_vulnerability_scan.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1288.1 +API version: 1.1341.7 Contact: support@cloudsmith.io */ diff --git a/model_vulnerability_scan_results.go b/model_vulnerability_scan_results.go index f1407e80..18ab0ee2 100644 --- a/model_vulnerability_scan_results.go +++ b/model_vulnerability_scan_results.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1288.1 +API version: 1.1341.7 Contact: support@cloudsmith.io */ diff --git a/model_vulnerability_scan_results_list.go b/model_vulnerability_scan_results_list.go index 76c25840..dc0efccb 100644 --- a/model_vulnerability_scan_results_list.go +++ b/model_vulnerability_scan_results_list.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1288.1 +API version: 1.1341.7 Contact: support@cloudsmith.io */ diff --git a/model_vulnerability_scan_version.go b/model_vulnerability_scan_version.go index 8bea4970..95c868fa 100644 --- a/model_vulnerability_scan_version.go +++ b/model_vulnerability_scan_version.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1288.1 +API version: 1.1341.7 Contact: support@cloudsmith.io */ diff --git a/model_web_osv_severity_counts.go b/model_web_osv_severity_counts.go new file mode 100644 index 00000000..bff1ecbc --- /dev/null +++ b/model_web_osv_severity_counts.go @@ -0,0 +1,376 @@ +/* +Cloudsmith API (v1) + +The API to the Cloudsmith Service + +API version: 1.1341.7 +Contact: support@cloudsmith.io +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package cloudsmith + +import ( + "encoding/json" +) + +// checks if the WebOSVSeverityCounts type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &WebOSVSeverityCounts{} + +// WebOSVSeverityCounts Per-severity OSV vulnerability counts for non-hidden matches. Requires Ultra plan. +type WebOSVSeverityCounts struct { + Critical *int64 `json:"critical,omitempty"` + High *int64 `json:"high,omitempty"` + Low *int64 `json:"low,omitempty"` + Malware *int64 `json:"malware,omitempty"` + Medium *int64 `json:"medium,omitempty"` + Total *int64 `json:"total,omitempty"` + Unknown *int64 `json:"unknown,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _WebOSVSeverityCounts WebOSVSeverityCounts + +// NewWebOSVSeverityCounts instantiates a new WebOSVSeverityCounts object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewWebOSVSeverityCounts() *WebOSVSeverityCounts { + this := WebOSVSeverityCounts{} + return &this +} + +// NewWebOSVSeverityCountsWithDefaults instantiates a new WebOSVSeverityCounts object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewWebOSVSeverityCountsWithDefaults() *WebOSVSeverityCounts { + this := WebOSVSeverityCounts{} + return &this +} + +// GetCritical returns the Critical field value if set, zero value otherwise. +func (o *WebOSVSeverityCounts) GetCritical() int64 { + if o == nil || IsNil(o.Critical) { + var ret int64 + return ret + } + return *o.Critical +} + +// GetCriticalOk returns a tuple with the Critical field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *WebOSVSeverityCounts) GetCriticalOk() (*int64, bool) { + if o == nil || IsNil(o.Critical) { + return nil, false + } + return o.Critical, true +} + +// HasCritical returns a boolean if a field has been set. +func (o *WebOSVSeverityCounts) HasCritical() bool { + if o != nil && !IsNil(o.Critical) { + return true + } + + return false +} + +// SetCritical gets a reference to the given int64 and assigns it to the Critical field. +func (o *WebOSVSeverityCounts) SetCritical(v int64) { + o.Critical = &v +} + +// GetHigh returns the High field value if set, zero value otherwise. +func (o *WebOSVSeverityCounts) GetHigh() int64 { + if o == nil || IsNil(o.High) { + var ret int64 + return ret + } + return *o.High +} + +// GetHighOk returns a tuple with the High field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *WebOSVSeverityCounts) GetHighOk() (*int64, bool) { + if o == nil || IsNil(o.High) { + return nil, false + } + return o.High, true +} + +// HasHigh returns a boolean if a field has been set. +func (o *WebOSVSeverityCounts) HasHigh() bool { + if o != nil && !IsNil(o.High) { + return true + } + + return false +} + +// SetHigh gets a reference to the given int64 and assigns it to the High field. +func (o *WebOSVSeverityCounts) SetHigh(v int64) { + o.High = &v +} + +// GetLow returns the Low field value if set, zero value otherwise. +func (o *WebOSVSeverityCounts) GetLow() int64 { + if o == nil || IsNil(o.Low) { + var ret int64 + return ret + } + return *o.Low +} + +// GetLowOk returns a tuple with the Low field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *WebOSVSeverityCounts) GetLowOk() (*int64, bool) { + if o == nil || IsNil(o.Low) { + return nil, false + } + return o.Low, true +} + +// HasLow returns a boolean if a field has been set. +func (o *WebOSVSeverityCounts) HasLow() bool { + if o != nil && !IsNil(o.Low) { + return true + } + + return false +} + +// SetLow gets a reference to the given int64 and assigns it to the Low field. +func (o *WebOSVSeverityCounts) SetLow(v int64) { + o.Low = &v +} + +// GetMalware returns the Malware field value if set, zero value otherwise. +func (o *WebOSVSeverityCounts) GetMalware() int64 { + if o == nil || IsNil(o.Malware) { + var ret int64 + return ret + } + return *o.Malware +} + +// GetMalwareOk returns a tuple with the Malware field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *WebOSVSeverityCounts) GetMalwareOk() (*int64, bool) { + if o == nil || IsNil(o.Malware) { + return nil, false + } + return o.Malware, true +} + +// HasMalware returns a boolean if a field has been set. +func (o *WebOSVSeverityCounts) HasMalware() bool { + if o != nil && !IsNil(o.Malware) { + return true + } + + return false +} + +// SetMalware gets a reference to the given int64 and assigns it to the Malware field. +func (o *WebOSVSeverityCounts) SetMalware(v int64) { + o.Malware = &v +} + +// GetMedium returns the Medium field value if set, zero value otherwise. +func (o *WebOSVSeverityCounts) GetMedium() int64 { + if o == nil || IsNil(o.Medium) { + var ret int64 + return ret + } + return *o.Medium +} + +// GetMediumOk returns a tuple with the Medium field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *WebOSVSeverityCounts) GetMediumOk() (*int64, bool) { + if o == nil || IsNil(o.Medium) { + return nil, false + } + return o.Medium, true +} + +// HasMedium returns a boolean if a field has been set. +func (o *WebOSVSeverityCounts) HasMedium() bool { + if o != nil && !IsNil(o.Medium) { + return true + } + + return false +} + +// SetMedium gets a reference to the given int64 and assigns it to the Medium field. +func (o *WebOSVSeverityCounts) SetMedium(v int64) { + o.Medium = &v +} + +// GetTotal returns the Total field value if set, zero value otherwise. +func (o *WebOSVSeverityCounts) GetTotal() int64 { + if o == nil || IsNil(o.Total) { + var ret int64 + return ret + } + return *o.Total +} + +// GetTotalOk returns a tuple with the Total field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *WebOSVSeverityCounts) GetTotalOk() (*int64, bool) { + if o == nil || IsNil(o.Total) { + return nil, false + } + return o.Total, true +} + +// HasTotal returns a boolean if a field has been set. +func (o *WebOSVSeverityCounts) HasTotal() bool { + if o != nil && !IsNil(o.Total) { + return true + } + + return false +} + +// SetTotal gets a reference to the given int64 and assigns it to the Total field. +func (o *WebOSVSeverityCounts) SetTotal(v int64) { + o.Total = &v +} + +// GetUnknown returns the Unknown field value if set, zero value otherwise. +func (o *WebOSVSeverityCounts) GetUnknown() int64 { + if o == nil || IsNil(o.Unknown) { + var ret int64 + return ret + } + return *o.Unknown +} + +// GetUnknownOk returns a tuple with the Unknown field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *WebOSVSeverityCounts) GetUnknownOk() (*int64, bool) { + if o == nil || IsNil(o.Unknown) { + return nil, false + } + return o.Unknown, true +} + +// HasUnknown returns a boolean if a field has been set. +func (o *WebOSVSeverityCounts) HasUnknown() bool { + if o != nil && !IsNil(o.Unknown) { + return true + } + + return false +} + +// SetUnknown gets a reference to the given int64 and assigns it to the Unknown field. +func (o *WebOSVSeverityCounts) SetUnknown(v int64) { + o.Unknown = &v +} + +func (o WebOSVSeverityCounts) MarshalJSON() ([]byte, error) { + toSerialize, err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o WebOSVSeverityCounts) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Critical) { + toSerialize["critical"] = o.Critical + } + if !IsNil(o.High) { + toSerialize["high"] = o.High + } + if !IsNil(o.Low) { + toSerialize["low"] = o.Low + } + if !IsNil(o.Malware) { + toSerialize["malware"] = o.Malware + } + if !IsNil(o.Medium) { + toSerialize["medium"] = o.Medium + } + if !IsNil(o.Total) { + toSerialize["total"] = o.Total + } + if !IsNil(o.Unknown) { + toSerialize["unknown"] = o.Unknown + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *WebOSVSeverityCounts) UnmarshalJSON(data []byte) (err error) { + varWebOSVSeverityCounts := _WebOSVSeverityCounts{} + + err = json.Unmarshal(data, &varWebOSVSeverityCounts) + + if err != nil { + return err + } + + *o = WebOSVSeverityCounts(varWebOSVSeverityCounts) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "critical") + delete(additionalProperties, "high") + delete(additionalProperties, "low") + delete(additionalProperties, "malware") + delete(additionalProperties, "medium") + delete(additionalProperties, "total") + delete(additionalProperties, "unknown") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableWebOSVSeverityCounts struct { + value *WebOSVSeverityCounts + isSet bool +} + +func (v NullableWebOSVSeverityCounts) Get() *WebOSVSeverityCounts { + return v.value +} + +func (v *NullableWebOSVSeverityCounts) Set(val *WebOSVSeverityCounts) { + v.value = val + v.isSet = true +} + +func (v NullableWebOSVSeverityCounts) IsSet() bool { + return v.isSet +} + +func (v *NullableWebOSVSeverityCounts) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableWebOSVSeverityCounts(val *WebOSVSeverityCounts) *NullableWebOSVSeverityCounts { + return &NullableWebOSVSeverityCounts{value: val, isSet: true} +} + +func (v NullableWebOSVSeverityCounts) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableWebOSVSeverityCounts) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} diff --git a/model_webhook_template.go b/model_webhook_template.go index ab877e2b..13db2bbb 100644 --- a/model_webhook_template.go +++ b/model_webhook_template.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1288.1 +API version: 1.1341.7 Contact: support@cloudsmith.io */ diff --git a/response.go b/response.go index 81d5834e..579c3791 100644 --- a/response.go +++ b/response.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1288.1 +API version: 1.1341.7 Contact: support@cloudsmith.io */ diff --git a/utils.go b/utils.go index 1248e47a..811acfce 100644 --- a/utils.go +++ b/utils.go @@ -3,7 +3,7 @@ Cloudsmith API (v1) The API to the Cloudsmith Service -API version: 1.1288.1 +API version: 1.1341.7 Contact: support@cloudsmith.io */