Class: CloudsmithApi::PackageDetail
- Inherits:
-
Object
- Object
- CloudsmithApi::PackageDetail
- Defined in:
- lib/cloudsmith-api/models/package_detail.rb
Defined Under Namespace
Classes: EnumAttributeValidator
Instance Attribute Summary collapse
-
#architectures ⇒ Object
Returns the value of attribute architectures.
-
#cdn_url ⇒ Object
Returns the value of attribute cdn_url.
-
#checksum_md5 ⇒ Object
Returns the value of attribute checksum_md5.
-
#checksum_sha1 ⇒ Object
Returns the value of attribute checksum_sha1.
-
#checksum_sha256 ⇒ Object
Returns the value of attribute checksum_sha256.
-
#checksum_sha512 ⇒ Object
Returns the value of attribute checksum_sha512.
-
#dependencies_checksum_md5 ⇒ Object
A checksum of all of the package's dependencies.
-
#dependencies_url ⇒ Object
Returns the value of attribute dependencies_url.
-
#description ⇒ Object
A textual description of this package.
-
#display_name ⇒ Object
Returns the value of attribute display_name.
-
#display_source ⇒ Object
Where the package originated, for example: 'upstream' (proxied/cached from a configured upstream), 'connected_repository' (blended in from a connected target repository), or 'manual_upload' (uploaded directly to Cloudsmith).
-
#distro ⇒ Object
Returns the value of attribute distro.
-
#distro_version ⇒ Object
Returns the value of attribute distro_version.
-
#downloads ⇒ Object
Returns the value of attribute downloads.
-
#epoch ⇒ Object
The epoch of the package version (if any).
-
#extension ⇒ Object
Returns the value of attribute extension.
-
#filename ⇒ Object
Returns the value of attribute filename.
-
#filepath ⇒ Object
Full path to the file, including filename e.g.
-
#files ⇒ Object
Returns the value of attribute files.
-
#format ⇒ Object
Returns the value of attribute format.
-
#format_url ⇒ Object
Returns the value of attribute format_url.
-
#freeable_storage ⇒ Object
Amount of storage that will be freed if this package is deleted.
-
#fully_qualified_name ⇒ Object
Returns the value of attribute fully_qualified_name.
-
#has_dependencies ⇒ Object
Whether the package has any dependencies (top-level or from its SBOM).
-
#identifier_perm ⇒ Object
Unique and permanent identifier for the package.
-
#identifiers ⇒ Object
Return a map of identifier field names and their values.
-
#indexed ⇒ Object
Returns the value of attribute indexed.
-
#is_cancellable ⇒ Object
Returns the value of attribute is_cancellable.
-
#is_copyable ⇒ Object
Returns the value of attribute is_copyable.
-
#is_deleteable ⇒ Object
Returns the value of attribute is_deleteable.
-
#is_downloadable ⇒ Object
Returns the value of attribute is_downloadable.
-
#is_hidden ⇒ Object
Returns the value of attribute is_hidden.
-
#is_malware_detected ⇒ Object
Whether the package has been detected as containing malware.
-
#is_moveable ⇒ Object
Returns the value of attribute is_moveable.
-
#is_quarantinable ⇒ Object
Returns the value of attribute is_quarantinable.
-
#is_quarantined ⇒ Object
Returns the value of attribute is_quarantined.
-
#is_resyncable ⇒ Object
Returns the value of attribute is_resyncable.
-
#is_security_scannable ⇒ Object
Deprecated.
-
#is_sync_awaiting ⇒ Object
Returns the value of attribute is_sync_awaiting.
-
#is_sync_completed ⇒ Object
Returns the value of attribute is_sync_completed.
-
#is_sync_failed ⇒ Object
Returns the value of attribute is_sync_failed.
-
#is_sync_in_flight ⇒ Object
Returns the value of attribute is_sync_in_flight.
-
#is_sync_in_progress ⇒ Object
Returns the value of attribute is_sync_in_progress.
-
#license ⇒ Object
The license of this package.
-
#name ⇒ Object
The name of this package.
-
#namespace ⇒ Object
Returns the value of attribute namespace.
-
#namespace_url ⇒ Object
Returns the value of attribute namespace_url.
-
#num_files ⇒ Object
Returns the value of attribute num_files.
-
#origin_repository ⇒ Object
Returns the value of attribute origin_repository.
-
#origin_repository_url ⇒ Object
Returns the value of attribute origin_repository_url.
-
#osi_approved ⇒ Object
Whether the package's SPDX license is OSI-approved.
-
#package_type ⇒ Object
The type of package contents.
-
#plugin_skills ⇒ Object
The skills a plugin bundles.
-
#policy_violated ⇒ Object
Whether or not the package has violated any policy.
-
#raw_license ⇒ Object
The raw license string.
-
#release ⇒ Object
The release of the package version (if any).
-
#release_notes ⇒ Object
The release notes for this package (if any).
-
#repository ⇒ Object
Returns the value of attribute repository.
-
#repository_url ⇒ Object
Returns the value of attribute repository_url.
-
#security_scan_completed_at ⇒ Object
Deprecated.
-
#security_scan_started_at ⇒ Object
Deprecated.
-
#security_scan_status ⇒ Object
Deprecated.
-
#security_scan_status_updated_at ⇒ Object
Deprecated.
-
#self_html_url ⇒ Object
Returns the value of attribute self_html_url.
-
#self_url ⇒ Object
Returns the value of attribute self_url.
-
#self_webapp_url ⇒ Object
Returns the value of attribute self_webapp_url.
-
#signature_url ⇒ Object
Returns the value of attribute signature_url.
-
#size ⇒ Object
The calculated size of the package.
-
#slug ⇒ Object
The public unique identifier for the package.
-
#slug_perm ⇒ Object
Returns the value of attribute slug_perm.
-
#spdx_license ⇒ Object
The SPDX license identifier for this package.
-
#stage ⇒ Object
The synchronisation (in progress) stage of the package.
-
#stage_str ⇒ Object
Returns the value of attribute stage_str.
-
#stage_updated_at ⇒ Object
The datetime the package stage was updated at.
-
#status ⇒ Object
The synchronisation status of the package.
-
#status_reason ⇒ Object
A textual description for the synchronous status reason (if any.
-
#status_str ⇒ Object
Returns the value of attribute status_str.
-
#status_updated_at ⇒ Object
The datetime the package status was updated at.
-
#status_url ⇒ Object
Returns the value of attribute status_url.
-
#store_path ⇒ Object
Absolute store path for the package, including store hash and name.
-
#subtype ⇒ Object
Returns the value of attribute subtype.
-
#summary ⇒ Object
A one-liner synopsis of this package.
-
#sync_finished_at ⇒ Object
The datetime the package sync was finished at.
-
#sync_progress ⇒ Object
Synchronisation progress (from 0-100).
-
#tags ⇒ Object
Returns the value of attribute tags.
-
#tags_automatic ⇒ Object
Returns the value of attribute tags_automatic.
-
#tags_immutable ⇒ Object
Returns the value of attribute tags_immutable.
-
#tags_static ⇒ Object
All static tags on the package, grouped by context.
-
#type_display ⇒ Object
Returns the value of attribute type_display.
-
#uploaded_at ⇒ Object
The date this package was uploaded.
-
#uploader ⇒ Object
Returns the value of attribute uploader.
-
#uploader_url ⇒ Object
Returns the value of attribute uploader_url.
-
#version ⇒ Object
The raw version for this package.
-
#version_orig ⇒ Object
Returns the value of attribute version_orig.
-
#vulnerability_counts ⇒ Object
Returns the value of attribute vulnerability_counts.
-
#vulnerability_scan_results_url ⇒ Object
Deprecated.
Class Method Summary collapse
-
.attribute_map ⇒ Object
Attribute mapping from ruby-style variable name to JSON key.
-
.swagger_types ⇒ Object
Attribute type mapping.
Instance Method Summary collapse
-
#==(o) ⇒ Object
Checks equality by comparing each attribute.
-
#_deserialize(type, value) ⇒ Object
Deserializes the data based on type.
-
#_to_hash(value) ⇒ Hash
Outputs non-array value in the form of hash For object, use to_hash.
-
#build_from_hash(attributes) ⇒ Object
Builds the object from hash.
- #eql?(o) ⇒ Boolean
-
#hash ⇒ Fixnum
Calculates hash code according to all attributes.
-
#initialize(attributes = {}) ⇒ PackageDetail
constructor
Initializes the object.
-
#list_invalid_properties ⇒ Object
Show invalid properties with the reasons.
-
#to_body ⇒ Hash
to_body is an alias to to_hash (backward compatibility).
-
#to_hash ⇒ Hash
Returns the object in the form of hash.
-
#to_s ⇒ String
Returns the string representation of the object.
-
#valid? ⇒ Boolean
Check to see if the all the properties in the model are valid.
Constructor Details
#initialize(attributes = {}) ⇒ PackageDetail
Initializes the object
477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 |
# File 'lib/cloudsmith-api/models/package_detail.rb', line 477 def initialize(attributes = {}) return unless attributes.is_a?(Hash) # convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } if attributes.has_key?(:'architectures') if (value = attributes[:'architectures']).is_a?(Array) self.architectures = value end end if attributes.has_key?(:'cdn_url') self.cdn_url = attributes[:'cdn_url'] end if attributes.has_key?(:'checksum_md5') self.checksum_md5 = attributes[:'checksum_md5'] end if attributes.has_key?(:'checksum_sha1') self.checksum_sha1 = attributes[:'checksum_sha1'] end if attributes.has_key?(:'checksum_sha256') self.checksum_sha256 = attributes[:'checksum_sha256'] end if attributes.has_key?(:'checksum_sha512') self.checksum_sha512 = attributes[:'checksum_sha512'] end if attributes.has_key?(:'dependencies_checksum_md5') self.dependencies_checksum_md5 = attributes[:'dependencies_checksum_md5'] end if attributes.has_key?(:'dependencies_url') self.dependencies_url = attributes[:'dependencies_url'] end if attributes.has_key?(:'description') self.description = attributes[:'description'] end if attributes.has_key?(:'display_name') self.display_name = attributes[:'display_name'] end if attributes.has_key?(:'display_source') self.display_source = attributes[:'display_source'] end if attributes.has_key?(:'distro') self.distro = attributes[:'distro'] end if attributes.has_key?(:'distro_version') self.distro_version = attributes[:'distro_version'] end if attributes.has_key?(:'downloads') self.downloads = attributes[:'downloads'] end if attributes.has_key?(:'epoch') self.epoch = attributes[:'epoch'] end if attributes.has_key?(:'extension') self.extension = attributes[:'extension'] end if attributes.has_key?(:'filename') self.filename = attributes[:'filename'] end if attributes.has_key?(:'filepath') self.filepath = attributes[:'filepath'] end if attributes.has_key?(:'files') if (value = attributes[:'files']).is_a?(Array) self.files = value end end if attributes.has_key?(:'format') self.format = attributes[:'format'] end if attributes.has_key?(:'format_url') self.format_url = attributes[:'format_url'] end if attributes.has_key?(:'freeable_storage') self.freeable_storage = attributes[:'freeable_storage'] end if attributes.has_key?(:'fully_qualified_name') self.fully_qualified_name = attributes[:'fully_qualified_name'] end if attributes.has_key?(:'has_dependencies') self.has_dependencies = attributes[:'has_dependencies'] end if attributes.has_key?(:'identifier_perm') self.identifier_perm = attributes[:'identifier_perm'] end if attributes.has_key?(:'identifiers') if (value = attributes[:'identifiers']).is_a?(Hash) self.identifiers = value end end if attributes.has_key?(:'indexed') self.indexed = attributes[:'indexed'] end if attributes.has_key?(:'is_cancellable') self.is_cancellable = attributes[:'is_cancellable'] end if attributes.has_key?(:'is_copyable') self.is_copyable = attributes[:'is_copyable'] end if attributes.has_key?(:'is_deleteable') self.is_deleteable = attributes[:'is_deleteable'] end if attributes.has_key?(:'is_downloadable') self.is_downloadable = attributes[:'is_downloadable'] end if attributes.has_key?(:'is_hidden') self.is_hidden = attributes[:'is_hidden'] end if attributes.has_key?(:'is_malware_detected') self.is_malware_detected = attributes[:'is_malware_detected'] end if attributes.has_key?(:'is_moveable') self.is_moveable = attributes[:'is_moveable'] end if attributes.has_key?(:'is_quarantinable') self.is_quarantinable = attributes[:'is_quarantinable'] end if attributes.has_key?(:'is_quarantined') self.is_quarantined = attributes[:'is_quarantined'] end if attributes.has_key?(:'is_resyncable') self.is_resyncable = attributes[:'is_resyncable'] end if attributes.has_key?(:'is_security_scannable') self.is_security_scannable = attributes[:'is_security_scannable'] end if attributes.has_key?(:'is_sync_awaiting') self.is_sync_awaiting = attributes[:'is_sync_awaiting'] end if attributes.has_key?(:'is_sync_completed') self.is_sync_completed = attributes[:'is_sync_completed'] end if attributes.has_key?(:'is_sync_failed') self.is_sync_failed = attributes[:'is_sync_failed'] end if attributes.has_key?(:'is_sync_in_flight') self.is_sync_in_flight = attributes[:'is_sync_in_flight'] end if attributes.has_key?(:'is_sync_in_progress') self.is_sync_in_progress = attributes[:'is_sync_in_progress'] end if attributes.has_key?(:'license') self.license = attributes[:'license'] end if attributes.has_key?(:'name') self.name = attributes[:'name'] end if attributes.has_key?(:'namespace') self.namespace = attributes[:'namespace'] end if attributes.has_key?(:'namespace_url') self.namespace_url = attributes[:'namespace_url'] end if attributes.has_key?(:'num_files') self.num_files = attributes[:'num_files'] end if attributes.has_key?(:'origin_repository') self.origin_repository = attributes[:'origin_repository'] end if attributes.has_key?(:'origin_repository_url') self.origin_repository_url = attributes[:'origin_repository_url'] end if attributes.has_key?(:'osi_approved') self.osi_approved = attributes[:'osi_approved'] end if attributes.has_key?(:'package_type') self.package_type = attributes[:'package_type'] end if attributes.has_key?(:'plugin_skills') if (value = attributes[:'plugin_skills']).is_a?(Array) self.plugin_skills = value end end if attributes.has_key?(:'policy_violated') self.policy_violated = attributes[:'policy_violated'] end if attributes.has_key?(:'raw_license') self.raw_license = attributes[:'raw_license'] end if attributes.has_key?(:'release') self.release = attributes[:'release'] end if attributes.has_key?(:'release_notes') self.release_notes = attributes[:'release_notes'] end if attributes.has_key?(:'repository') self.repository = attributes[:'repository'] end if attributes.has_key?(:'repository_url') self.repository_url = attributes[:'repository_url'] end if attributes.has_key?(:'security_scan_completed_at') self.security_scan_completed_at = attributes[:'security_scan_completed_at'] end if attributes.has_key?(:'security_scan_started_at') self.security_scan_started_at = attributes[:'security_scan_started_at'] end if attributes.has_key?(:'security_scan_status') self.security_scan_status = attributes[:'security_scan_status'] else self.security_scan_status = 'Awaiting Security Scan' end if attributes.has_key?(:'security_scan_status_updated_at') self.security_scan_status_updated_at = attributes[:'security_scan_status_updated_at'] end if attributes.has_key?(:'self_html_url') self.self_html_url = attributes[:'self_html_url'] end if attributes.has_key?(:'self_url') self.self_url = attributes[:'self_url'] end if attributes.has_key?(:'self_webapp_url') self.self_webapp_url = attributes[:'self_webapp_url'] end if attributes.has_key?(:'signature_url') self.signature_url = attributes[:'signature_url'] end if attributes.has_key?(:'size') self.size = attributes[:'size'] end if attributes.has_key?(:'slug') self.slug = attributes[:'slug'] end if attributes.has_key?(:'slug_perm') self.slug_perm = attributes[:'slug_perm'] end if attributes.has_key?(:'spdx_license') self.spdx_license = attributes[:'spdx_license'] end if attributes.has_key?(:'stage') self.stage = attributes[:'stage'] end if attributes.has_key?(:'stage_str') self.stage_str = attributes[:'stage_str'] end if attributes.has_key?(:'stage_updated_at') self.stage_updated_at = attributes[:'stage_updated_at'] end if attributes.has_key?(:'status') self.status = attributes[:'status'] end if attributes.has_key?(:'status_reason') self.status_reason = attributes[:'status_reason'] end if attributes.has_key?(:'status_str') self.status_str = attributes[:'status_str'] end if attributes.has_key?(:'status_updated_at') self.status_updated_at = attributes[:'status_updated_at'] end if attributes.has_key?(:'status_url') self.status_url = attributes[:'status_url'] end if attributes.has_key?(:'store_path') self.store_path = attributes[:'store_path'] end if attributes.has_key?(:'subtype') self.subtype = attributes[:'subtype'] end if attributes.has_key?(:'summary') self.summary = attributes[:'summary'] end if attributes.has_key?(:'sync_finished_at') self.sync_finished_at = attributes[:'sync_finished_at'] end if attributes.has_key?(:'sync_progress') self.sync_progress = attributes[:'sync_progress'] end if attributes.has_key?(:'tags') self. = attributes[:'tags'] end if attributes.has_key?(:'tags_automatic') self. = attributes[:'tags_automatic'] end if attributes.has_key?(:'tags_immutable') self. = attributes[:'tags_immutable'] end if attributes.has_key?(:'tags_static') if (value = attributes[:'tags_static']).is_a?(Hash) self. = value end end if attributes.has_key?(:'type_display') self.type_display = attributes[:'type_display'] end if attributes.has_key?(:'uploaded_at') self.uploaded_at = attributes[:'uploaded_at'] end if attributes.has_key?(:'uploader') self.uploader = attributes[:'uploader'] end if attributes.has_key?(:'uploader_url') self.uploader_url = attributes[:'uploader_url'] end if attributes.has_key?(:'version') self.version = attributes[:'version'] end if attributes.has_key?(:'version_orig') self.version_orig = attributes[:'version_orig'] end if attributes.has_key?(:'vulnerability_counts') self.vulnerability_counts = attributes[:'vulnerability_counts'] end if attributes.has_key?(:'vulnerability_scan_results_url') self.vulnerability_scan_results_url = attributes[:'vulnerability_scan_results_url'] end end |
Instance Attribute Details
#architectures ⇒ Object
Returns the value of attribute architectures.
17 18 19 |
# File 'lib/cloudsmith-api/models/package_detail.rb', line 17 def architectures @architectures end |
#cdn_url ⇒ Object
Returns the value of attribute cdn_url.
19 20 21 |
# File 'lib/cloudsmith-api/models/package_detail.rb', line 19 def cdn_url @cdn_url end |
#checksum_md5 ⇒ Object
Returns the value of attribute checksum_md5.
21 22 23 |
# File 'lib/cloudsmith-api/models/package_detail.rb', line 21 def checksum_md5 @checksum_md5 end |
#checksum_sha1 ⇒ Object
Returns the value of attribute checksum_sha1.
23 24 25 |
# File 'lib/cloudsmith-api/models/package_detail.rb', line 23 def checksum_sha1 @checksum_sha1 end |
#checksum_sha256 ⇒ Object
Returns the value of attribute checksum_sha256.
25 26 27 |
# File 'lib/cloudsmith-api/models/package_detail.rb', line 25 def checksum_sha256 @checksum_sha256 end |
#checksum_sha512 ⇒ Object
Returns the value of attribute checksum_sha512.
27 28 29 |
# File 'lib/cloudsmith-api/models/package_detail.rb', line 27 def checksum_sha512 @checksum_sha512 end |
#dependencies_checksum_md5 ⇒ Object
A checksum of all of the package's dependencies.
30 31 32 |
# File 'lib/cloudsmith-api/models/package_detail.rb', line 30 def dependencies_checksum_md5 @dependencies_checksum_md5 end |
#dependencies_url ⇒ Object
Returns the value of attribute dependencies_url.
32 33 34 |
# File 'lib/cloudsmith-api/models/package_detail.rb', line 32 def dependencies_url @dependencies_url end |
#description ⇒ Object
A textual description of this package.
35 36 37 |
# File 'lib/cloudsmith-api/models/package_detail.rb', line 35 def description @description end |
#display_name ⇒ Object
Returns the value of attribute display_name.
37 38 39 |
# File 'lib/cloudsmith-api/models/package_detail.rb', line 37 def display_name @display_name end |
#display_source ⇒ Object
Where the package originated, for example: 'upstream' (proxied/cached from a configured upstream), 'connected_repository' (blended in from a connected target repository), or 'manual_upload' (uploaded directly to Cloudsmith).
40 41 42 |
# File 'lib/cloudsmith-api/models/package_detail.rb', line 40 def display_source @display_source end |
#distro ⇒ Object
Returns the value of attribute distro.
42 43 44 |
# File 'lib/cloudsmith-api/models/package_detail.rb', line 42 def distro @distro end |
#distro_version ⇒ Object
Returns the value of attribute distro_version.
44 45 46 |
# File 'lib/cloudsmith-api/models/package_detail.rb', line 44 def distro_version @distro_version end |
#downloads ⇒ Object
Returns the value of attribute downloads.
46 47 48 |
# File 'lib/cloudsmith-api/models/package_detail.rb', line 46 def downloads @downloads end |
#epoch ⇒ Object
The epoch of the package version (if any).
49 50 51 |
# File 'lib/cloudsmith-api/models/package_detail.rb', line 49 def epoch @epoch end |
#extension ⇒ Object
Returns the value of attribute extension.
51 52 53 |
# File 'lib/cloudsmith-api/models/package_detail.rb', line 51 def extension @extension end |
#filename ⇒ Object
Returns the value of attribute filename.
53 54 55 |
# File 'lib/cloudsmith-api/models/package_detail.rb', line 53 def filename @filename end |
#filepath ⇒ Object
Full path to the file, including filename e.g. bin/utils/tool.tar.gz
56 57 58 |
# File 'lib/cloudsmith-api/models/package_detail.rb', line 56 def filepath @filepath end |
#files ⇒ Object
Returns the value of attribute files.
58 59 60 |
# File 'lib/cloudsmith-api/models/package_detail.rb', line 58 def files @files end |
#format ⇒ Object
Returns the value of attribute format.
60 61 62 |
# File 'lib/cloudsmith-api/models/package_detail.rb', line 60 def format @format end |
#format_url ⇒ Object
Returns the value of attribute format_url.
62 63 64 |
# File 'lib/cloudsmith-api/models/package_detail.rb', line 62 def format_url @format_url end |
#freeable_storage ⇒ Object
Amount of storage that will be freed if this package is deleted
65 66 67 |
# File 'lib/cloudsmith-api/models/package_detail.rb', line 65 def freeable_storage @freeable_storage end |
#fully_qualified_name ⇒ Object
Returns the value of attribute fully_qualified_name.
67 68 69 |
# File 'lib/cloudsmith-api/models/package_detail.rb', line 67 def fully_qualified_name @fully_qualified_name end |
#has_dependencies ⇒ Object
Whether the package has any dependencies (top-level or from its SBOM).
70 71 72 |
# File 'lib/cloudsmith-api/models/package_detail.rb', line 70 def has_dependencies @has_dependencies end |
#identifier_perm ⇒ Object
Unique and permanent identifier for the package.
73 74 75 |
# File 'lib/cloudsmith-api/models/package_detail.rb', line 73 def identifier_perm @identifier_perm end |
#identifiers ⇒ Object
Return a map of identifier field names and their values.
76 77 78 |
# File 'lib/cloudsmith-api/models/package_detail.rb', line 76 def identifiers @identifiers end |
#indexed ⇒ Object
Returns the value of attribute indexed.
78 79 80 |
# File 'lib/cloudsmith-api/models/package_detail.rb', line 78 def indexed @indexed end |
#is_cancellable ⇒ Object
Returns the value of attribute is_cancellable.
80 81 82 |
# File 'lib/cloudsmith-api/models/package_detail.rb', line 80 def is_cancellable @is_cancellable end |
#is_copyable ⇒ Object
Returns the value of attribute is_copyable.
82 83 84 |
# File 'lib/cloudsmith-api/models/package_detail.rb', line 82 def is_copyable @is_copyable end |
#is_deleteable ⇒ Object
Returns the value of attribute is_deleteable.
84 85 86 |
# File 'lib/cloudsmith-api/models/package_detail.rb', line 84 def is_deleteable @is_deleteable end |
#is_downloadable ⇒ Object
Returns the value of attribute is_downloadable.
86 87 88 |
# File 'lib/cloudsmith-api/models/package_detail.rb', line 86 def is_downloadable @is_downloadable end |
#is_hidden ⇒ Object
Returns the value of attribute is_hidden.
88 89 90 |
# File 'lib/cloudsmith-api/models/package_detail.rb', line 88 def is_hidden @is_hidden end |
#is_malware_detected ⇒ Object
Whether the package has been detected as containing malware. Requires Ultra plan.
91 92 93 |
# File 'lib/cloudsmith-api/models/package_detail.rb', line 91 def is_malware_detected @is_malware_detected end |
#is_moveable ⇒ Object
Returns the value of attribute is_moveable.
93 94 95 |
# File 'lib/cloudsmith-api/models/package_detail.rb', line 93 def is_moveable @is_moveable end |
#is_quarantinable ⇒ Object
Returns the value of attribute is_quarantinable.
95 96 97 |
# File 'lib/cloudsmith-api/models/package_detail.rb', line 95 def is_quarantinable @is_quarantinable end |
#is_quarantined ⇒ Object
Returns the value of attribute is_quarantined.
97 98 99 |
# File 'lib/cloudsmith-api/models/package_detail.rb', line 97 def is_quarantined @is_quarantined end |
#is_resyncable ⇒ Object
Returns the value of attribute is_resyncable.
99 100 101 |
# File 'lib/cloudsmith-api/models/package_detail.rb', line 99 def is_resyncable @is_resyncable end |
#is_security_scannable ⇒ Object
Deprecated. Whether the package can be scanned for vulnerabilities.
102 103 104 |
# File 'lib/cloudsmith-api/models/package_detail.rb', line 102 def is_security_scannable @is_security_scannable end |
#is_sync_awaiting ⇒ Object
Returns the value of attribute is_sync_awaiting.
104 105 106 |
# File 'lib/cloudsmith-api/models/package_detail.rb', line 104 def is_sync_awaiting @is_sync_awaiting end |
#is_sync_completed ⇒ Object
Returns the value of attribute is_sync_completed.
106 107 108 |
# File 'lib/cloudsmith-api/models/package_detail.rb', line 106 def is_sync_completed @is_sync_completed end |
#is_sync_failed ⇒ Object
Returns the value of attribute is_sync_failed.
108 109 110 |
# File 'lib/cloudsmith-api/models/package_detail.rb', line 108 def is_sync_failed @is_sync_failed end |
#is_sync_in_flight ⇒ Object
Returns the value of attribute is_sync_in_flight.
110 111 112 |
# File 'lib/cloudsmith-api/models/package_detail.rb', line 110 def is_sync_in_flight @is_sync_in_flight end |
#is_sync_in_progress ⇒ Object
Returns the value of attribute is_sync_in_progress.
112 113 114 |
# File 'lib/cloudsmith-api/models/package_detail.rb', line 112 def is_sync_in_progress @is_sync_in_progress end |
#license ⇒ Object
The license of this package.
115 116 117 |
# File 'lib/cloudsmith-api/models/package_detail.rb', line 115 def license @license end |
#name ⇒ Object
The name of this package.
118 119 120 |
# File 'lib/cloudsmith-api/models/package_detail.rb', line 118 def name @name end |
#namespace ⇒ Object
Returns the value of attribute namespace.
120 121 122 |
# File 'lib/cloudsmith-api/models/package_detail.rb', line 120 def namespace @namespace end |
#namespace_url ⇒ Object
Returns the value of attribute namespace_url.
122 123 124 |
# File 'lib/cloudsmith-api/models/package_detail.rb', line 122 def namespace_url @namespace_url end |
#num_files ⇒ Object
Returns the value of attribute num_files.
124 125 126 |
# File 'lib/cloudsmith-api/models/package_detail.rb', line 124 def num_files @num_files end |
#origin_repository ⇒ Object
Returns the value of attribute origin_repository.
126 127 128 |
# File 'lib/cloudsmith-api/models/package_detail.rb', line 126 def origin_repository @origin_repository end |
#origin_repository_url ⇒ Object
Returns the value of attribute origin_repository_url.
128 129 130 |
# File 'lib/cloudsmith-api/models/package_detail.rb', line 128 def origin_repository_url @origin_repository_url end |
#osi_approved ⇒ Object
Whether the package's SPDX license is OSI-approved.
131 132 133 |
# File 'lib/cloudsmith-api/models/package_detail.rb', line 131 def osi_approved @osi_approved end |
#package_type ⇒ Object
The type of package contents.
134 135 136 |
# File 'lib/cloudsmith-api/models/package_detail.rb', line 134 def package_type @package_type end |
#plugin_skills ⇒ Object
The skills a plugin bundles. Null for any other package.
137 138 139 |
# File 'lib/cloudsmith-api/models/package_detail.rb', line 137 def plugin_skills @plugin_skills end |
#policy_violated ⇒ Object
Whether or not the package has violated any policy.
140 141 142 |
# File 'lib/cloudsmith-api/models/package_detail.rb', line 140 def policy_violated @policy_violated end |
#raw_license ⇒ Object
The raw license string.
143 144 145 |
# File 'lib/cloudsmith-api/models/package_detail.rb', line 143 def raw_license @raw_license end |
#release ⇒ Object
The release of the package version (if any).
146 147 148 |
# File 'lib/cloudsmith-api/models/package_detail.rb', line 146 def release @release end |
#release_notes ⇒ Object
The release notes for this package (if any).
149 150 151 |
# File 'lib/cloudsmith-api/models/package_detail.rb', line 149 def release_notes @release_notes end |
#repository ⇒ Object
Returns the value of attribute repository.
151 152 153 |
# File 'lib/cloudsmith-api/models/package_detail.rb', line 151 def repository @repository end |
#repository_url ⇒ Object
Returns the value of attribute repository_url.
153 154 155 |
# File 'lib/cloudsmith-api/models/package_detail.rb', line 153 def repository_url @repository_url end |
#security_scan_completed_at ⇒ Object
Deprecated. The datetime the security scanning was completed.
156 157 158 |
# File 'lib/cloudsmith-api/models/package_detail.rb', line 156 def security_scan_completed_at @security_scan_completed_at end |
#security_scan_started_at ⇒ Object
Deprecated. The datetime the security scanning was started.
159 160 161 |
# File 'lib/cloudsmith-api/models/package_detail.rb', line 159 def security_scan_started_at @security_scan_started_at end |
#security_scan_status ⇒ Object
Deprecated. The status of security scanning for the package.
162 163 164 |
# File 'lib/cloudsmith-api/models/package_detail.rb', line 162 def security_scan_status @security_scan_status end |
#security_scan_status_updated_at ⇒ Object
Deprecated. The datetime the security scanning status was updated.
165 166 167 |
# File 'lib/cloudsmith-api/models/package_detail.rb', line 165 def security_scan_status_updated_at @security_scan_status_updated_at end |
#self_html_url ⇒ Object
Returns the value of attribute self_html_url.
167 168 169 |
# File 'lib/cloudsmith-api/models/package_detail.rb', line 167 def self_html_url @self_html_url end |
#self_url ⇒ Object
Returns the value of attribute self_url.
169 170 171 |
# File 'lib/cloudsmith-api/models/package_detail.rb', line 169 def self_url @self_url end |
#self_webapp_url ⇒ Object
Returns the value of attribute self_webapp_url.
171 172 173 |
# File 'lib/cloudsmith-api/models/package_detail.rb', line 171 def self_webapp_url @self_webapp_url end |
#signature_url ⇒ Object
Returns the value of attribute signature_url.
173 174 175 |
# File 'lib/cloudsmith-api/models/package_detail.rb', line 173 def signature_url @signature_url end |
#size ⇒ Object
The calculated size of the package.
176 177 178 |
# File 'lib/cloudsmith-api/models/package_detail.rb', line 176 def size @size end |
#slug ⇒ Object
The public unique identifier for the package.
179 180 181 |
# File 'lib/cloudsmith-api/models/package_detail.rb', line 179 def slug @slug end |
#slug_perm ⇒ Object
Returns the value of attribute slug_perm.
181 182 183 |
# File 'lib/cloudsmith-api/models/package_detail.rb', line 181 def slug_perm @slug_perm end |
#spdx_license ⇒ Object
The SPDX license identifier for this package.
184 185 186 |
# File 'lib/cloudsmith-api/models/package_detail.rb', line 184 def spdx_license @spdx_license end |
#stage ⇒ Object
The synchronisation (in progress) stage of the package.
187 188 189 |
# File 'lib/cloudsmith-api/models/package_detail.rb', line 187 def stage @stage end |
#stage_str ⇒ Object
Returns the value of attribute stage_str.
189 190 191 |
# File 'lib/cloudsmith-api/models/package_detail.rb', line 189 def stage_str @stage_str end |
#stage_updated_at ⇒ Object
The datetime the package stage was updated at.
192 193 194 |
# File 'lib/cloudsmith-api/models/package_detail.rb', line 192 def stage_updated_at @stage_updated_at end |
#status ⇒ Object
The synchronisation status of the package.
195 196 197 |
# File 'lib/cloudsmith-api/models/package_detail.rb', line 195 def status @status end |
#status_reason ⇒ Object
A textual description for the synchronous status reason (if any
198 199 200 |
# File 'lib/cloudsmith-api/models/package_detail.rb', line 198 def status_reason @status_reason end |
#status_str ⇒ Object
Returns the value of attribute status_str.
200 201 202 |
# File 'lib/cloudsmith-api/models/package_detail.rb', line 200 def status_str @status_str end |
#status_updated_at ⇒ Object
The datetime the package status was updated at.
203 204 205 |
# File 'lib/cloudsmith-api/models/package_detail.rb', line 203 def status_updated_at @status_updated_at end |
#status_url ⇒ Object
Returns the value of attribute status_url.
205 206 207 |
# File 'lib/cloudsmith-api/models/package_detail.rb', line 205 def status_url @status_url end |
#store_path ⇒ Object
Absolute store path for the package, including store hash and name.
208 209 210 |
# File 'lib/cloudsmith-api/models/package_detail.rb', line 208 def store_path @store_path end |
#subtype ⇒ Object
Returns the value of attribute subtype.
210 211 212 |
# File 'lib/cloudsmith-api/models/package_detail.rb', line 210 def subtype @subtype end |
#summary ⇒ Object
A one-liner synopsis of this package.
213 214 215 |
# File 'lib/cloudsmith-api/models/package_detail.rb', line 213 def summary @summary end |
#sync_finished_at ⇒ Object
The datetime the package sync was finished at.
216 217 218 |
# File 'lib/cloudsmith-api/models/package_detail.rb', line 216 def sync_finished_at @sync_finished_at end |
#sync_progress ⇒ Object
Synchronisation progress (from 0-100)
219 220 221 |
# File 'lib/cloudsmith-api/models/package_detail.rb', line 219 def sync_progress @sync_progress end |
#tags ⇒ Object
Returns the value of attribute tags.
221 222 223 |
# File 'lib/cloudsmith-api/models/package_detail.rb', line 221 def @tags end |
#tags_automatic ⇒ Object
Returns the value of attribute tags_automatic.
223 224 225 |
# File 'lib/cloudsmith-api/models/package_detail.rb', line 223 def @tags_automatic end |
#tags_immutable ⇒ Object
Returns the value of attribute tags_immutable.
225 226 227 |
# File 'lib/cloudsmith-api/models/package_detail.rb', line 225 def @tags_immutable end |
#tags_static ⇒ Object
All static tags on the package, grouped by context. Static tags are derived from the package's properties at request time and carry a 'context' (rather than a tag type). Includes format-specific badges and the package's architecture, subtype, and extension.
228 229 230 |
# File 'lib/cloudsmith-api/models/package_detail.rb', line 228 def @tags_static end |
#type_display ⇒ Object
Returns the value of attribute type_display.
230 231 232 |
# File 'lib/cloudsmith-api/models/package_detail.rb', line 230 def type_display @type_display end |
#uploaded_at ⇒ Object
The date this package was uploaded.
233 234 235 |
# File 'lib/cloudsmith-api/models/package_detail.rb', line 233 def uploaded_at @uploaded_at end |
#uploader ⇒ Object
Returns the value of attribute uploader.
235 236 237 |
# File 'lib/cloudsmith-api/models/package_detail.rb', line 235 def uploader @uploader end |
#uploader_url ⇒ Object
Returns the value of attribute uploader_url.
237 238 239 |
# File 'lib/cloudsmith-api/models/package_detail.rb', line 237 def uploader_url @uploader_url end |
#version ⇒ Object
The raw version for this package.
240 241 242 |
# File 'lib/cloudsmith-api/models/package_detail.rb', line 240 def version @version end |
#version_orig ⇒ Object
Returns the value of attribute version_orig.
242 243 244 |
# File 'lib/cloudsmith-api/models/package_detail.rb', line 242 def version_orig @version_orig end |
#vulnerability_counts ⇒ Object
Returns the value of attribute vulnerability_counts.
244 245 246 |
# File 'lib/cloudsmith-api/models/package_detail.rb', line 244 def vulnerability_counts @vulnerability_counts end |
#vulnerability_scan_results_url ⇒ Object
Deprecated. The URL of the package's vulnerability scan results.
247 248 249 |
# File 'lib/cloudsmith-api/models/package_detail.rb', line 247 def vulnerability_scan_results_url @vulnerability_scan_results_url end |
Class Method Details
.attribute_map ⇒ Object
Attribute mapping from ruby-style variable name to JSON key.
272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 |
# File 'lib/cloudsmith-api/models/package_detail.rb', line 272 def self.attribute_map { :'architectures' => :'architectures', :'cdn_url' => :'cdn_url', :'checksum_md5' => :'checksum_md5', :'checksum_sha1' => :'checksum_sha1', :'checksum_sha256' => :'checksum_sha256', :'checksum_sha512' => :'checksum_sha512', :'dependencies_checksum_md5' => :'dependencies_checksum_md5', :'dependencies_url' => :'dependencies_url', :'description' => :'description', :'display_name' => :'display_name', :'display_source' => :'display_source', :'distro' => :'distro', :'distro_version' => :'distro_version', :'downloads' => :'downloads', :'epoch' => :'epoch', :'extension' => :'extension', :'filename' => :'filename', :'filepath' => :'filepath', :'files' => :'files', :'format' => :'format', :'format_url' => :'format_url', :'freeable_storage' => :'freeable_storage', :'fully_qualified_name' => :'fully_qualified_name', :'has_dependencies' => :'has_dependencies', :'identifier_perm' => :'identifier_perm', :'identifiers' => :'identifiers', :'indexed' => :'indexed', :'is_cancellable' => :'is_cancellable', :'is_copyable' => :'is_copyable', :'is_deleteable' => :'is_deleteable', :'is_downloadable' => :'is_downloadable', :'is_hidden' => :'is_hidden', :'is_malware_detected' => :'is_malware_detected', :'is_moveable' => :'is_moveable', :'is_quarantinable' => :'is_quarantinable', :'is_quarantined' => :'is_quarantined', :'is_resyncable' => :'is_resyncable', :'is_security_scannable' => :'is_security_scannable', :'is_sync_awaiting' => :'is_sync_awaiting', :'is_sync_completed' => :'is_sync_completed', :'is_sync_failed' => :'is_sync_failed', :'is_sync_in_flight' => :'is_sync_in_flight', :'is_sync_in_progress' => :'is_sync_in_progress', :'license' => :'license', :'name' => :'name', :'namespace' => :'namespace', :'namespace_url' => :'namespace_url', :'num_files' => :'num_files', :'origin_repository' => :'origin_repository', :'origin_repository_url' => :'origin_repository_url', :'osi_approved' => :'osi_approved', :'package_type' => :'package_type', :'plugin_skills' => :'plugin_skills', :'policy_violated' => :'policy_violated', :'raw_license' => :'raw_license', :'release' => :'release', :'release_notes' => :'release_notes', :'repository' => :'repository', :'repository_url' => :'repository_url', :'security_scan_completed_at' => :'security_scan_completed_at', :'security_scan_started_at' => :'security_scan_started_at', :'security_scan_status' => :'security_scan_status', :'security_scan_status_updated_at' => :'security_scan_status_updated_at', :'self_html_url' => :'self_html_url', :'self_url' => :'self_url', :'self_webapp_url' => :'self_webapp_url', :'signature_url' => :'signature_url', :'size' => :'size', :'slug' => :'slug', :'slug_perm' => :'slug_perm', :'spdx_license' => :'spdx_license', :'stage' => :'stage', :'stage_str' => :'stage_str', :'stage_updated_at' => :'stage_updated_at', :'status' => :'status', :'status_reason' => :'status_reason', :'status_str' => :'status_str', :'status_updated_at' => :'status_updated_at', :'status_url' => :'status_url', :'store_path' => :'store_path', :'subtype' => :'subtype', :'summary' => :'summary', :'sync_finished_at' => :'sync_finished_at', :'sync_progress' => :'sync_progress', :'tags' => :'tags', :'tags_automatic' => :'tags_automatic', :'tags_immutable' => :'tags_immutable', :'tags_static' => :'tags_static', :'type_display' => :'type_display', :'uploaded_at' => :'uploaded_at', :'uploader' => :'uploader', :'uploader_url' => :'uploader_url', :'version' => :'version', :'version_orig' => :'version_orig', :'vulnerability_counts' => :'vulnerability_counts', :'vulnerability_scan_results_url' => :'vulnerability_scan_results_url' } end |
.swagger_types ⇒ Object
Attribute type mapping.
374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 |
# File 'lib/cloudsmith-api/models/package_detail.rb', line 374 def self.swagger_types { :'architectures' => :'Array<Architecture>', :'cdn_url' => :'String', :'checksum_md5' => :'String', :'checksum_sha1' => :'String', :'checksum_sha256' => :'String', :'checksum_sha512' => :'String', :'dependencies_checksum_md5' => :'String', :'dependencies_url' => :'String', :'description' => :'String', :'display_name' => :'String', :'display_source' => :'String', :'distro' => :'Distribution', :'distro_version' => :'DistributionVersion', :'downloads' => :'Integer', :'epoch' => :'Integer', :'extension' => :'String', :'filename' => :'String', :'filepath' => :'String', :'files' => :'Array<PackageFile>', :'format' => :'String', :'format_url' => :'String', :'freeable_storage' => :'Integer', :'fully_qualified_name' => :'String', :'has_dependencies' => :'BOOLEAN', :'identifier_perm' => :'String', :'identifiers' => :'Hash<String, String>', :'indexed' => :'BOOLEAN', :'is_cancellable' => :'BOOLEAN', :'is_copyable' => :'BOOLEAN', :'is_deleteable' => :'BOOLEAN', :'is_downloadable' => :'BOOLEAN', :'is_hidden' => :'BOOLEAN', :'is_malware_detected' => :'BOOLEAN', :'is_moveable' => :'BOOLEAN', :'is_quarantinable' => :'BOOLEAN', :'is_quarantined' => :'BOOLEAN', :'is_resyncable' => :'BOOLEAN', :'is_security_scannable' => :'BOOLEAN', :'is_sync_awaiting' => :'BOOLEAN', :'is_sync_completed' => :'BOOLEAN', :'is_sync_failed' => :'BOOLEAN', :'is_sync_in_flight' => :'BOOLEAN', :'is_sync_in_progress' => :'BOOLEAN', :'license' => :'String', :'name' => :'String', :'namespace' => :'String', :'namespace_url' => :'String', :'num_files' => :'Integer', :'origin_repository' => :'String', :'origin_repository_url' => :'String', :'osi_approved' => :'BOOLEAN', :'package_type' => :'Integer', :'plugin_skills' => :'Array<PluginSkill>', :'policy_violated' => :'BOOLEAN', :'raw_license' => :'String', :'release' => :'String', :'release_notes' => :'String', :'repository' => :'String', :'repository_url' => :'String', :'security_scan_completed_at' => :'DateTime', :'security_scan_started_at' => :'DateTime', :'security_scan_status' => :'String', :'security_scan_status_updated_at' => :'DateTime', :'self_html_url' => :'String', :'self_url' => :'String', :'self_webapp_url' => :'String', :'signature_url' => :'String', :'size' => :'Integer', :'slug' => :'String', :'slug_perm' => :'String', :'spdx_license' => :'String', :'stage' => :'Integer', :'stage_str' => :'String', :'stage_updated_at' => :'DateTime', :'status' => :'Integer', :'status_reason' => :'String', :'status_str' => :'String', :'status_updated_at' => :'DateTime', :'status_url' => :'String', :'store_path' => :'String', :'subtype' => :'String', :'summary' => :'String', :'sync_finished_at' => :'DateTime', :'sync_progress' => :'Integer', :'tags' => :'Tags', :'tags_automatic' => :'Tags', :'tags_immutable' => :'Tags', :'tags_static' => :'Hash<String, Array<String>>', :'type_display' => :'String', :'uploaded_at' => :'DateTime', :'uploader' => :'String', :'uploader_url' => :'String', :'version' => :'String', :'version_orig' => :'String', :'vulnerability_counts' => :'WebOSVSeverityCounts', :'vulnerability_scan_results_url' => :'String' } end |
Instance Method Details
#==(o) ⇒ Object
Checks equality by comparing each attribute.
907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 |
# File 'lib/cloudsmith-api/models/package_detail.rb', line 907 def ==(o) return true if self.equal?(o) self.class == o.class && architectures == o.architectures && cdn_url == o.cdn_url && checksum_md5 == o.checksum_md5 && checksum_sha1 == o.checksum_sha1 && checksum_sha256 == o.checksum_sha256 && checksum_sha512 == o.checksum_sha512 && dependencies_checksum_md5 == o.dependencies_checksum_md5 && dependencies_url == o.dependencies_url && description == o.description && display_name == o.display_name && display_source == o.display_source && distro == o.distro && distro_version == o.distro_version && downloads == o.downloads && epoch == o.epoch && extension == o.extension && filename == o.filename && filepath == o.filepath && files == o.files && format == o.format && format_url == o.format_url && freeable_storage == o.freeable_storage && fully_qualified_name == o.fully_qualified_name && has_dependencies == o.has_dependencies && identifier_perm == o.identifier_perm && identifiers == o.identifiers && indexed == o.indexed && is_cancellable == o.is_cancellable && is_copyable == o.is_copyable && is_deleteable == o.is_deleteable && is_downloadable == o.is_downloadable && is_hidden == o.is_hidden && is_malware_detected == o.is_malware_detected && is_moveable == o.is_moveable && is_quarantinable == o.is_quarantinable && is_quarantined == o.is_quarantined && is_resyncable == o.is_resyncable && is_security_scannable == o.is_security_scannable && is_sync_awaiting == o.is_sync_awaiting && is_sync_completed == o.is_sync_completed && is_sync_failed == o.is_sync_failed && is_sync_in_flight == o.is_sync_in_flight && is_sync_in_progress == o.is_sync_in_progress && license == o.license && name == o.name && namespace == o.namespace && namespace_url == o.namespace_url && num_files == o.num_files && origin_repository == o.origin_repository && origin_repository_url == o.origin_repository_url && osi_approved == o.osi_approved && package_type == o.package_type && plugin_skills == o.plugin_skills && policy_violated == o.policy_violated && raw_license == o.raw_license && release == o.release && release_notes == o.release_notes && repository == o.repository && repository_url == o.repository_url && security_scan_completed_at == o.security_scan_completed_at && security_scan_started_at == o.security_scan_started_at && security_scan_status == o.security_scan_status && security_scan_status_updated_at == o.security_scan_status_updated_at && self_html_url == o.self_html_url && self_url == o.self_url && self_webapp_url == o.self_webapp_url && signature_url == o.signature_url && size == o.size && slug == o.slug && slug_perm == o.slug_perm && spdx_license == o.spdx_license && stage == o.stage && stage_str == o.stage_str && stage_updated_at == o.stage_updated_at && status == o.status && status_reason == o.status_reason && status_str == o.status_str && status_updated_at == o.status_updated_at && status_url == o.status_url && store_path == o.store_path && subtype == o.subtype && summary == o.summary && sync_finished_at == o.sync_finished_at && sync_progress == o.sync_progress && == o. && == o. && == o. && == o. && type_display == o.type_display && uploaded_at == o.uploaded_at && uploader == o.uploader && uploader_url == o.uploader_url && version == o.version && version_orig == o.version_orig && vulnerability_counts == o.vulnerability_counts && vulnerability_scan_results_url == o.vulnerability_scan_results_url end |
#_deserialize(type, value) ⇒ Object
Deserializes the data based on type
1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 1078 1079 1080 |
# File 'lib/cloudsmith-api/models/package_detail.rb', line 1044 def _deserialize(type, value) case type.to_sym when :DateTime DateTime.parse(value) when :Date Date.parse(value) when :String value.to_s when :Integer value.to_i when :Float value.to_f when :BOOLEAN if value.to_s =~ /\A(true|t|yes|y|1)\z/i true else false end when :Object # generic object (usually a Hash), return directly value when /\AArray<(?<inner_type>.+)>\z/ inner_type = Regexp.last_match[:inner_type] value.map { |v| _deserialize(inner_type, v) } when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/ k_type = Regexp.last_match[:k_type] v_type = Regexp.last_match[:v_type] {}.tap do |hash| value.each do |k, v| hash[_deserialize(k_type, k)] = _deserialize(v_type, v) end end else # model temp_model = CloudsmithApi.const_get(type).new temp_model.build_from_hash(value) end end |
#_to_hash(value) ⇒ Hash
Outputs non-array value in the form of hash For object, use to_hash. Otherwise, just return the value
1110 1111 1112 1113 1114 1115 1116 1117 1118 1119 1120 1121 1122 |
# File 'lib/cloudsmith-api/models/package_detail.rb', line 1110 def _to_hash(value) if value.is_a?(Array) value.compact.map { |v| _to_hash(v) } elsif value.is_a?(Hash) {}.tap do |hash| value.each { |k, v| hash[k] = _to_hash(v) } end elsif value.respond_to? :to_hash value.to_hash else value end end |
#build_from_hash(attributes) ⇒ Object
Builds the object from hash
1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 |
# File 'lib/cloudsmith-api/models/package_detail.rb', line 1023 def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.swagger_types.each_pair do |key, type| if type =~ /\AArray<(.*)>/i # check to ensure the input is an array given that the attribute # is documented as an array but the input is not if attributes[self.class.attribute_map[key]].is_a?(Array) self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) end elsif !attributes[self.class.attribute_map[key]].nil? self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) end # or else data not found in attributes(hash), not an issue as the data can be optional end self end |
#eql?(o) ⇒ Boolean
1010 1011 1012 |
# File 'lib/cloudsmith-api/models/package_detail.rb', line 1010 def eql?(o) self == o end |
#hash ⇒ Fixnum
Calculates hash code according to all attributes.
1016 1017 1018 |
# File 'lib/cloudsmith-api/models/package_detail.rb', line 1016 def hash [architectures, cdn_url, checksum_md5, checksum_sha1, checksum_sha256, checksum_sha512, dependencies_checksum_md5, dependencies_url, description, display_name, display_source, distro, distro_version, downloads, epoch, extension, filename, filepath, files, format, format_url, freeable_storage, fully_qualified_name, has_dependencies, identifier_perm, identifiers, indexed, is_cancellable, is_copyable, is_deleteable, is_downloadable, is_hidden, is_malware_detected, is_moveable, is_quarantinable, is_quarantined, is_resyncable, is_security_scannable, is_sync_awaiting, is_sync_completed, is_sync_failed, is_sync_in_flight, is_sync_in_progress, license, name, namespace, namespace_url, num_files, origin_repository, origin_repository_url, osi_approved, package_type, plugin_skills, policy_violated, raw_license, release, release_notes, repository, repository_url, security_scan_completed_at, security_scan_started_at, security_scan_status, security_scan_status_updated_at, self_html_url, self_url, self_webapp_url, signature_url, size, slug, slug_perm, spdx_license, stage, stage_str, stage_updated_at, status, status_reason, status_str, status_updated_at, status_url, store_path, subtype, summary, sync_finished_at, sync_progress, , , , , type_display, uploaded_at, uploader, uploader_url, version, version_orig, vulnerability_counts, vulnerability_scan_results_url].hash end |
#list_invalid_properties ⇒ Object
Show invalid properties with the reasons. Usually used together with valid?
882 883 884 885 |
# File 'lib/cloudsmith-api/models/package_detail.rb', line 882 def list_invalid_properties invalid_properties = Array.new invalid_properties end |
#to_body ⇒ Hash
to_body is an alias to to_hash (backward compatibility)
1090 1091 1092 |
# File 'lib/cloudsmith-api/models/package_detail.rb', line 1090 def to_body to_hash end |
#to_hash ⇒ Hash
Returns the object in the form of hash
1096 1097 1098 1099 1100 1101 1102 1103 1104 |
# File 'lib/cloudsmith-api/models/package_detail.rb', line 1096 def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) next if value.nil? hash[param] = _to_hash(value) end hash end |
#to_s ⇒ String
Returns the string representation of the object
1084 1085 1086 |
# File 'lib/cloudsmith-api/models/package_detail.rb', line 1084 def to_s to_hash.to_s end |
#valid? ⇒ Boolean
Check to see if the all the properties in the model are valid
889 890 891 892 893 |
# File 'lib/cloudsmith-api/models/package_detail.rb', line 889 def valid? security_scan_status_validator = EnumAttributeValidator.new('String', ['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']) return false unless security_scan_status_validator.valid?(@security_scan_status) true end |