pulpcore_client 3.73.9 → 3.74.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
 - data/README.md +4 -4
 - data/docs/ArtifactDistributionResponse.md +13 -13
 - data/docs/DistributionsApi.md +4 -2
 - data/docs/DistributionsArtifactsApi.md +4 -2
 - data/docs/DistributionsOpenpgpApi.md +2 -2
 - data/docs/PublicationsApi.md +4 -2
 - data/lib/pulpcore_client/api/distributions_api.rb +6 -3
 - data/lib/pulpcore_client/api/distributions_artifacts_api.rb +6 -3
 - data/lib/pulpcore_client/api/distributions_openpgp_api.rb +3 -3
 - data/lib/pulpcore_client/api/publications_api.rb +6 -3
 - data/lib/pulpcore_client/models/artifact_distribution_response.rb +71 -71
 - data/lib/pulpcore_client/models/orphans_cleanup.rb +24 -0
 - data/lib/pulpcore_client/version.rb +1 -1
 - data/pulpcore_client.gemspec +1 -0
 - data/spec/api/distributions_api_spec.rb +2 -1
 - data/spec/api/distributions_artifacts_api_spec.rb +2 -1
 - data/spec/api/distributions_openpgp_api_spec.rb +1 -1
 - data/spec/api/publications_api_spec.rb +2 -1
 - data/spec/models/artifact_distribution_response_spec.rb +11 -11
 - metadata +208 -188
 
| 
         @@ -16,51 +16,51 @@ require 'time' 
     | 
|
| 
       16 
16 
     | 
    
         
             
            module PulpcoreClient
         
     | 
| 
       17 
17 
     | 
    
         
             
              # A serializer for ArtifactDistribution.
         
     | 
| 
       18 
18 
     | 
    
         
             
              class ArtifactDistributionResponse
         
     | 
| 
       19 
     | 
    
         
            -
                #  
     | 
| 
       20 
     | 
    
         
            -
                attr_accessor : 
     | 
| 
       21 
     | 
    
         
            -
             
     | 
| 
       22 
     | 
    
         
            -
                # The base (relative) path component of the published url. Avoid paths that                     overlap with other distribution base paths (e.g. \"foo\" and \"foo/bar\")
         
     | 
| 
       23 
     | 
    
         
            -
                attr_accessor :base_path
         
     | 
| 
       24 
     | 
    
         
            -
             
     | 
| 
       25 
     | 
    
         
            -
                # Whether this distribution should be shown in the content app.
         
     | 
| 
       26 
     | 
    
         
            -
                attr_accessor :hidden
         
     | 
| 
      
 19 
     | 
    
         
            +
                # The Pulp Resource Name (PRN).
         
     | 
| 
      
 20 
     | 
    
         
            +
                attr_accessor :prn
         
     | 
| 
       27 
21 
     | 
    
         | 
| 
       28 
22 
     | 
    
         
             
                # A unique name. Ex, `rawhide` and `stable`.
         
     | 
| 
       29 
23 
     | 
    
         
             
                attr_accessor :name
         
     | 
| 
       30 
24 
     | 
    
         | 
| 
       31 
     | 
    
         
            -
                # Timestamp of creation.
         
     | 
| 
       32 
     | 
    
         
            -
                attr_accessor :pulp_created
         
     | 
| 
       33 
     | 
    
         
            -
             
     | 
| 
       34 
25 
     | 
    
         
             
                attr_accessor :pulp_href
         
     | 
| 
       35 
26 
     | 
    
         | 
| 
       36 
     | 
    
         
            -
                # The Pulp Resource Name (PRN).
         
     | 
| 
       37 
     | 
    
         
            -
                attr_accessor :prn
         
     | 
| 
       38 
     | 
    
         
            -
             
     | 
| 
       39 
27 
     | 
    
         
             
                # Timestamp of the last time this resource was updated. Note: for immutable resources - like content, repository versions, and publication - pulp_created and pulp_last_updated dates will be the same.
         
     | 
| 
       40 
28 
     | 
    
         
             
                attr_accessor :pulp_last_updated
         
     | 
| 
       41 
29 
     | 
    
         | 
| 
       42 
     | 
    
         
            -
                # Timestamp since when the distributed content served by this distribution has not changed. If equals to `null`, no guarantee is provided about content changes.
         
     | 
| 
       43 
     | 
    
         
            -
                attr_accessor :no_content_change_since
         
     | 
| 
       44 
     | 
    
         
            -
             
     | 
| 
       45 
30 
     | 
    
         
             
                attr_accessor :pulp_labels
         
     | 
| 
       46 
31 
     | 
    
         | 
| 
      
 32 
     | 
    
         
            +
                # Timestamp of creation.
         
     | 
| 
      
 33 
     | 
    
         
            +
                attr_accessor :pulp_created
         
     | 
| 
      
 34 
     | 
    
         
            +
             
     | 
| 
       47 
35 
     | 
    
         
             
                # The URL for accessing the publication as defined by this distribution.
         
     | 
| 
       48 
36 
     | 
    
         
             
                attr_accessor :base_url
         
     | 
| 
       49 
37 
     | 
    
         | 
| 
      
 38 
     | 
    
         
            +
                # Timestamp since when the distributed content served by this distribution has not changed. If equals to `null`, no guarantee is provided about content changes.
         
     | 
| 
      
 39 
     | 
    
         
            +
                attr_accessor :no_content_change_since
         
     | 
| 
      
 40 
     | 
    
         
            +
             
     | 
| 
      
 41 
     | 
    
         
            +
                # Whether this distribution should be shown in the content app.
         
     | 
| 
      
 42 
     | 
    
         
            +
                attr_accessor :hidden
         
     | 
| 
      
 43 
     | 
    
         
            +
             
     | 
| 
      
 44 
     | 
    
         
            +
                # The base (relative) path component of the published url. Avoid paths that                     overlap with other distribution base paths (e.g. \"foo\" and \"foo/bar\")
         
     | 
| 
      
 45 
     | 
    
         
            +
                attr_accessor :base_path
         
     | 
| 
      
 46 
     | 
    
         
            +
             
     | 
| 
      
 47 
     | 
    
         
            +
                # An optional content-guard.
         
     | 
| 
      
 48 
     | 
    
         
            +
                attr_accessor :content_guard
         
     | 
| 
      
 49 
     | 
    
         
            +
             
     | 
| 
       50 
50 
     | 
    
         
             
                # Attribute mapping from ruby-style variable name to JSON key.
         
     | 
| 
       51 
51 
     | 
    
         
             
                def self.attribute_map
         
     | 
| 
       52 
52 
     | 
    
         
             
                  {
         
     | 
| 
       53 
     | 
    
         
            -
                    :' 
     | 
| 
       54 
     | 
    
         
            -
                    :'base_path' => :'base_path',
         
     | 
| 
       55 
     | 
    
         
            -
                    :'hidden' => :'hidden',
         
     | 
| 
      
 53 
     | 
    
         
            +
                    :'prn' => :'prn',
         
     | 
| 
       56 
54 
     | 
    
         
             
                    :'name' => :'name',
         
     | 
| 
       57 
     | 
    
         
            -
                    :'pulp_created' => :'pulp_created',
         
     | 
| 
       58 
55 
     | 
    
         
             
                    :'pulp_href' => :'pulp_href',
         
     | 
| 
       59 
     | 
    
         
            -
                    :'prn' => :'prn',
         
     | 
| 
       60 
56 
     | 
    
         
             
                    :'pulp_last_updated' => :'pulp_last_updated',
         
     | 
| 
       61 
     | 
    
         
            -
                    :'no_content_change_since' => :'no_content_change_since',
         
     | 
| 
       62 
57 
     | 
    
         
             
                    :'pulp_labels' => :'pulp_labels',
         
     | 
| 
       63 
     | 
    
         
            -
                    :' 
     | 
| 
      
 58 
     | 
    
         
            +
                    :'pulp_created' => :'pulp_created',
         
     | 
| 
      
 59 
     | 
    
         
            +
                    :'base_url' => :'base_url',
         
     | 
| 
      
 60 
     | 
    
         
            +
                    :'no_content_change_since' => :'no_content_change_since',
         
     | 
| 
      
 61 
     | 
    
         
            +
                    :'hidden' => :'hidden',
         
     | 
| 
      
 62 
     | 
    
         
            +
                    :'base_path' => :'base_path',
         
     | 
| 
      
 63 
     | 
    
         
            +
                    :'content_guard' => :'content_guard'
         
     | 
| 
       64 
64 
     | 
    
         
             
                  }
         
     | 
| 
       65 
65 
     | 
    
         
             
                end
         
     | 
| 
       66 
66 
     | 
    
         | 
| 
         @@ -72,24 +72,24 @@ module PulpcoreClient 
     | 
|
| 
       72 
72 
     | 
    
         
             
                # Attribute type mapping.
         
     | 
| 
       73 
73 
     | 
    
         
             
                def self.openapi_types
         
     | 
| 
       74 
74 
     | 
    
         
             
                  {
         
     | 
| 
       75 
     | 
    
         
            -
                    :' 
     | 
| 
       76 
     | 
    
         
            -
                    :'base_path' => :'String',
         
     | 
| 
       77 
     | 
    
         
            -
                    :'hidden' => :'Boolean',
         
     | 
| 
      
 75 
     | 
    
         
            +
                    :'prn' => :'String',
         
     | 
| 
       78 
76 
     | 
    
         
             
                    :'name' => :'String',
         
     | 
| 
       79 
     | 
    
         
            -
                    :'pulp_created' => :'Time',
         
     | 
| 
       80 
77 
     | 
    
         
             
                    :'pulp_href' => :'String',
         
     | 
| 
       81 
     | 
    
         
            -
                    :'prn' => :'String',
         
     | 
| 
       82 
78 
     | 
    
         
             
                    :'pulp_last_updated' => :'Time',
         
     | 
| 
       83 
     | 
    
         
            -
                    :'no_content_change_since' => :'String',
         
     | 
| 
       84 
79 
     | 
    
         
             
                    :'pulp_labels' => :'Hash<String, String>',
         
     | 
| 
       85 
     | 
    
         
            -
                    :' 
     | 
| 
      
 80 
     | 
    
         
            +
                    :'pulp_created' => :'Time',
         
     | 
| 
      
 81 
     | 
    
         
            +
                    :'base_url' => :'String',
         
     | 
| 
      
 82 
     | 
    
         
            +
                    :'no_content_change_since' => :'String',
         
     | 
| 
      
 83 
     | 
    
         
            +
                    :'hidden' => :'Boolean',
         
     | 
| 
      
 84 
     | 
    
         
            +
                    :'base_path' => :'String',
         
     | 
| 
      
 85 
     | 
    
         
            +
                    :'content_guard' => :'String'
         
     | 
| 
       86 
86 
     | 
    
         
             
                  }
         
     | 
| 
       87 
87 
     | 
    
         
             
                end
         
     | 
| 
       88 
88 
     | 
    
         | 
| 
       89 
89 
     | 
    
         
             
                # List of attributes with nullable: true
         
     | 
| 
       90 
90 
     | 
    
         
             
                def self.openapi_nullable
         
     | 
| 
       91 
91 
     | 
    
         
             
                  Set.new([
         
     | 
| 
       92 
     | 
    
         
            -
                    :'content_guard' 
     | 
| 
      
 92 
     | 
    
         
            +
                    :'content_guard'
         
     | 
| 
       93 
93 
     | 
    
         
             
                  ])
         
     | 
| 
       94 
94 
     | 
    
         
             
                end
         
     | 
| 
       95 
95 
     | 
    
         | 
| 
         @@ -108,20 +108,8 @@ module PulpcoreClient 
     | 
|
| 
       108 
108 
     | 
    
         
             
                    h[k.to_sym] = v
         
     | 
| 
       109 
109 
     | 
    
         
             
                  }
         
     | 
| 
       110 
110 
     | 
    
         | 
| 
       111 
     | 
    
         
            -
                  if attributes.key?(:' 
     | 
| 
       112 
     | 
    
         
            -
                    self. 
     | 
| 
       113 
     | 
    
         
            -
                  end
         
     | 
| 
       114 
     | 
    
         
            -
             
     | 
| 
       115 
     | 
    
         
            -
                  if attributes.key?(:'base_path')
         
     | 
| 
       116 
     | 
    
         
            -
                    self.base_path = attributes[:'base_path']
         
     | 
| 
       117 
     | 
    
         
            -
                  else
         
     | 
| 
       118 
     | 
    
         
            -
                    self.base_path = nil
         
     | 
| 
       119 
     | 
    
         
            -
                  end
         
     | 
| 
       120 
     | 
    
         
            -
             
     | 
| 
       121 
     | 
    
         
            -
                  if attributes.key?(:'hidden')
         
     | 
| 
       122 
     | 
    
         
            -
                    self.hidden = attributes[:'hidden']
         
     | 
| 
       123 
     | 
    
         
            -
                  else
         
     | 
| 
       124 
     | 
    
         
            -
                    self.hidden = false
         
     | 
| 
      
 111 
     | 
    
         
            +
                  if attributes.key?(:'prn')
         
     | 
| 
      
 112 
     | 
    
         
            +
                    self.prn = attributes[:'prn']
         
     | 
| 
       125 
113 
     | 
    
         
             
                  end
         
     | 
| 
       126 
114 
     | 
    
         | 
| 
       127 
115 
     | 
    
         
             
                  if attributes.key?(:'name')
         
     | 
| 
         @@ -130,35 +118,47 @@ module PulpcoreClient 
     | 
|
| 
       130 
118 
     | 
    
         
             
                    self.name = nil
         
     | 
| 
       131 
119 
     | 
    
         
             
                  end
         
     | 
| 
       132 
120 
     | 
    
         | 
| 
       133 
     | 
    
         
            -
                  if attributes.key?(:'pulp_created')
         
     | 
| 
       134 
     | 
    
         
            -
                    self.pulp_created = attributes[:'pulp_created']
         
     | 
| 
       135 
     | 
    
         
            -
                  end
         
     | 
| 
       136 
     | 
    
         
            -
             
     | 
| 
       137 
121 
     | 
    
         
             
                  if attributes.key?(:'pulp_href')
         
     | 
| 
       138 
122 
     | 
    
         
             
                    self.pulp_href = attributes[:'pulp_href']
         
     | 
| 
       139 
123 
     | 
    
         
             
                  end
         
     | 
| 
       140 
124 
     | 
    
         | 
| 
       141 
     | 
    
         
            -
                  if attributes.key?(:'prn')
         
     | 
| 
       142 
     | 
    
         
            -
                    self.prn = attributes[:'prn']
         
     | 
| 
       143 
     | 
    
         
            -
                  end
         
     | 
| 
       144 
     | 
    
         
            -
             
     | 
| 
       145 
125 
     | 
    
         
             
                  if attributes.key?(:'pulp_last_updated')
         
     | 
| 
       146 
126 
     | 
    
         
             
                    self.pulp_last_updated = attributes[:'pulp_last_updated']
         
     | 
| 
       147 
127 
     | 
    
         
             
                  end
         
     | 
| 
       148 
128 
     | 
    
         | 
| 
       149 
     | 
    
         
            -
                  if attributes.key?(:'no_content_change_since')
         
     | 
| 
       150 
     | 
    
         
            -
                    self.no_content_change_since = attributes[:'no_content_change_since']
         
     | 
| 
       151 
     | 
    
         
            -
                  end
         
     | 
| 
       152 
     | 
    
         
            -
             
     | 
| 
       153 
129 
     | 
    
         
             
                  if attributes.key?(:'pulp_labels')
         
     | 
| 
       154 
130 
     | 
    
         
             
                    if (value = attributes[:'pulp_labels']).is_a?(Hash)
         
     | 
| 
       155 
131 
     | 
    
         
             
                      self.pulp_labels = value
         
     | 
| 
       156 
132 
     | 
    
         
             
                    end
         
     | 
| 
       157 
133 
     | 
    
         
             
                  end
         
     | 
| 
       158 
134 
     | 
    
         | 
| 
      
 135 
     | 
    
         
            +
                  if attributes.key?(:'pulp_created')
         
     | 
| 
      
 136 
     | 
    
         
            +
                    self.pulp_created = attributes[:'pulp_created']
         
     | 
| 
      
 137 
     | 
    
         
            +
                  end
         
     | 
| 
      
 138 
     | 
    
         
            +
             
     | 
| 
       159 
139 
     | 
    
         
             
                  if attributes.key?(:'base_url')
         
     | 
| 
       160 
140 
     | 
    
         
             
                    self.base_url = attributes[:'base_url']
         
     | 
| 
       161 
141 
     | 
    
         
             
                  end
         
     | 
| 
      
 142 
     | 
    
         
            +
             
     | 
| 
      
 143 
     | 
    
         
            +
                  if attributes.key?(:'no_content_change_since')
         
     | 
| 
      
 144 
     | 
    
         
            +
                    self.no_content_change_since = attributes[:'no_content_change_since']
         
     | 
| 
      
 145 
     | 
    
         
            +
                  end
         
     | 
| 
      
 146 
     | 
    
         
            +
             
     | 
| 
      
 147 
     | 
    
         
            +
                  if attributes.key?(:'hidden')
         
     | 
| 
      
 148 
     | 
    
         
            +
                    self.hidden = attributes[:'hidden']
         
     | 
| 
      
 149 
     | 
    
         
            +
                  else
         
     | 
| 
      
 150 
     | 
    
         
            +
                    self.hidden = false
         
     | 
| 
      
 151 
     | 
    
         
            +
                  end
         
     | 
| 
      
 152 
     | 
    
         
            +
             
     | 
| 
      
 153 
     | 
    
         
            +
                  if attributes.key?(:'base_path')
         
     | 
| 
      
 154 
     | 
    
         
            +
                    self.base_path = attributes[:'base_path']
         
     | 
| 
      
 155 
     | 
    
         
            +
                  else
         
     | 
| 
      
 156 
     | 
    
         
            +
                    self.base_path = nil
         
     | 
| 
      
 157 
     | 
    
         
            +
                  end
         
     | 
| 
      
 158 
     | 
    
         
            +
             
     | 
| 
      
 159 
     | 
    
         
            +
                  if attributes.key?(:'content_guard')
         
     | 
| 
      
 160 
     | 
    
         
            +
                    self.content_guard = attributes[:'content_guard']
         
     | 
| 
      
 161 
     | 
    
         
            +
                  end
         
     | 
| 
       162 
162 
     | 
    
         
             
                end
         
     | 
| 
       163 
163 
     | 
    
         | 
| 
       164 
164 
     | 
    
         
             
                # Show invalid properties with the reasons. Usually used together with valid?
         
     | 
| 
         @@ -166,14 +166,14 @@ module PulpcoreClient 
     | 
|
| 
       166 
166 
     | 
    
         
             
                def list_invalid_properties
         
     | 
| 
       167 
167 
     | 
    
         
             
                  warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
         
     | 
| 
       168 
168 
     | 
    
         
             
                  invalid_properties = Array.new
         
     | 
| 
       169 
     | 
    
         
            -
                  if @base_path.nil?
         
     | 
| 
       170 
     | 
    
         
            -
                    invalid_properties.push('invalid value for "base_path", base_path cannot be nil.')
         
     | 
| 
       171 
     | 
    
         
            -
                  end
         
     | 
| 
       172 
     | 
    
         
            -
             
     | 
| 
       173 
169 
     | 
    
         
             
                  if @name.nil?
         
     | 
| 
       174 
170 
     | 
    
         
             
                    invalid_properties.push('invalid value for "name", name cannot be nil.')
         
     | 
| 
       175 
171 
     | 
    
         
             
                  end
         
     | 
| 
       176 
172 
     | 
    
         | 
| 
      
 173 
     | 
    
         
            +
                  if @base_path.nil?
         
     | 
| 
      
 174 
     | 
    
         
            +
                    invalid_properties.push('invalid value for "base_path", base_path cannot be nil.')
         
     | 
| 
      
 175 
     | 
    
         
            +
                  end
         
     | 
| 
      
 176 
     | 
    
         
            +
             
     | 
| 
       177 
177 
     | 
    
         
             
                  invalid_properties
         
     | 
| 
       178 
178 
     | 
    
         
             
                end
         
     | 
| 
       179 
179 
     | 
    
         | 
| 
         @@ -181,8 +181,8 @@ module PulpcoreClient 
     | 
|
| 
       181 
181 
     | 
    
         
             
                # @return true if the model is valid
         
     | 
| 
       182 
182 
     | 
    
         
             
                def valid?
         
     | 
| 
       183 
183 
     | 
    
         
             
                  warn '[DEPRECATED] the `valid?` method is obsolete'
         
     | 
| 
       184 
     | 
    
         
            -
                  return false if @base_path.nil?
         
     | 
| 
       185 
184 
     | 
    
         
             
                  return false if @name.nil?
         
     | 
| 
      
 185 
     | 
    
         
            +
                  return false if @base_path.nil?
         
     | 
| 
       186 
186 
     | 
    
         
             
                  true
         
     | 
| 
       187 
187 
     | 
    
         
             
                end
         
     | 
| 
       188 
188 
     | 
    
         | 
| 
         @@ -191,17 +191,17 @@ module PulpcoreClient 
     | 
|
| 
       191 
191 
     | 
    
         
             
                def ==(o)
         
     | 
| 
       192 
192 
     | 
    
         
             
                  return true if self.equal?(o)
         
     | 
| 
       193 
193 
     | 
    
         
             
                  self.class == o.class &&
         
     | 
| 
       194 
     | 
    
         
            -
                       
     | 
| 
       195 
     | 
    
         
            -
                      base_path == o.base_path &&
         
     | 
| 
       196 
     | 
    
         
            -
                      hidden == o.hidden &&
         
     | 
| 
      
 194 
     | 
    
         
            +
                      prn == o.prn &&
         
     | 
| 
       197 
195 
     | 
    
         
             
                      name == o.name &&
         
     | 
| 
       198 
     | 
    
         
            -
                      pulp_created == o.pulp_created &&
         
     | 
| 
       199 
196 
     | 
    
         
             
                      pulp_href == o.pulp_href &&
         
     | 
| 
       200 
     | 
    
         
            -
                      prn == o.prn &&
         
     | 
| 
       201 
197 
     | 
    
         
             
                      pulp_last_updated == o.pulp_last_updated &&
         
     | 
| 
       202 
     | 
    
         
            -
                      no_content_change_since == o.no_content_change_since &&
         
     | 
| 
       203 
198 
     | 
    
         
             
                      pulp_labels == o.pulp_labels &&
         
     | 
| 
       204 
     | 
    
         
            -
                       
     | 
| 
      
 199 
     | 
    
         
            +
                      pulp_created == o.pulp_created &&
         
     | 
| 
      
 200 
     | 
    
         
            +
                      base_url == o.base_url &&
         
     | 
| 
      
 201 
     | 
    
         
            +
                      no_content_change_since == o.no_content_change_since &&
         
     | 
| 
      
 202 
     | 
    
         
            +
                      hidden == o.hidden &&
         
     | 
| 
      
 203 
     | 
    
         
            +
                      base_path == o.base_path &&
         
     | 
| 
      
 204 
     | 
    
         
            +
                      content_guard == o.content_guard
         
     | 
| 
       205 
205 
     | 
    
         
             
                end
         
     | 
| 
       206 
206 
     | 
    
         | 
| 
       207 
207 
     | 
    
         
             
                # @see the `==` method
         
     | 
| 
         @@ -213,7 +213,7 @@ module PulpcoreClient 
     | 
|
| 
       213 
213 
     | 
    
         
             
                # Calculates hash code according to all attributes.
         
     | 
| 
       214 
214 
     | 
    
         
             
                # @return [Integer] Hash code
         
     | 
| 
       215 
215 
     | 
    
         
             
                def hash
         
     | 
| 
       216 
     | 
    
         
            -
                  [ 
     | 
| 
      
 216 
     | 
    
         
            +
                  [prn, name, pulp_href, pulp_last_updated, pulp_labels, pulp_created, base_url, no_content_change_since, hidden, base_path, content_guard].hash
         
     | 
| 
       217 
217 
     | 
    
         
             
                end
         
     | 
| 
       218 
218 
     | 
    
         | 
| 
       219 
219 
     | 
    
         
             
                # Builds the object from hash
         
     | 
| 
         @@ -80,6 +80,14 @@ module PulpcoreClient 
     | 
|
| 
       80 
80 
     | 
    
         
             
                def list_invalid_properties
         
     | 
| 
       81 
81 
     | 
    
         
             
                  warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
         
     | 
| 
       82 
82 
     | 
    
         
             
                  invalid_properties = Array.new
         
     | 
| 
      
 83 
     | 
    
         
            +
                  if !@orphan_protection_time.nil? && @orphan_protection_time > 4294967295
         
     | 
| 
      
 84 
     | 
    
         
            +
                    invalid_properties.push('invalid value for "orphan_protection_time", must be smaller than or equal to 4294967295.')
         
     | 
| 
      
 85 
     | 
    
         
            +
                  end
         
     | 
| 
      
 86 
     | 
    
         
            +
             
     | 
| 
      
 87 
     | 
    
         
            +
                  if !@orphan_protection_time.nil? && @orphan_protection_time < 0
         
     | 
| 
      
 88 
     | 
    
         
            +
                    invalid_properties.push('invalid value for "orphan_protection_time", must be greater than or equal to 0.')
         
     | 
| 
      
 89 
     | 
    
         
            +
                  end
         
     | 
| 
      
 90 
     | 
    
         
            +
             
     | 
| 
       83 
91 
     | 
    
         
             
                  invalid_properties
         
     | 
| 
       84 
92 
     | 
    
         
             
                end
         
     | 
| 
       85 
93 
     | 
    
         | 
| 
         @@ -87,9 +95,25 @@ module PulpcoreClient 
     | 
|
| 
       87 
95 
     | 
    
         
             
                # @return true if the model is valid
         
     | 
| 
       88 
96 
     | 
    
         
             
                def valid?
         
     | 
| 
       89 
97 
     | 
    
         
             
                  warn '[DEPRECATED] the `valid?` method is obsolete'
         
     | 
| 
      
 98 
     | 
    
         
            +
                  return false if !@orphan_protection_time.nil? && @orphan_protection_time > 4294967295
         
     | 
| 
      
 99 
     | 
    
         
            +
                  return false if !@orphan_protection_time.nil? && @orphan_protection_time < 0
         
     | 
| 
       90 
100 
     | 
    
         
             
                  true
         
     | 
| 
       91 
101 
     | 
    
         
             
                end
         
     | 
| 
       92 
102 
     | 
    
         | 
| 
      
 103 
     | 
    
         
            +
                # Custom attribute writer method with validation
         
     | 
| 
      
 104 
     | 
    
         
            +
                # @param [Object] orphan_protection_time Value to be assigned
         
     | 
| 
      
 105 
     | 
    
         
            +
                def orphan_protection_time=(orphan_protection_time)
         
     | 
| 
      
 106 
     | 
    
         
            +
                  if !orphan_protection_time.nil? && orphan_protection_time > 4294967295
         
     | 
| 
      
 107 
     | 
    
         
            +
                    fail ArgumentError, 'invalid value for "orphan_protection_time", must be smaller than or equal to 4294967295.'
         
     | 
| 
      
 108 
     | 
    
         
            +
                  end
         
     | 
| 
      
 109 
     | 
    
         
            +
             
     | 
| 
      
 110 
     | 
    
         
            +
                  if !orphan_protection_time.nil? && orphan_protection_time < 0
         
     | 
| 
      
 111 
     | 
    
         
            +
                    fail ArgumentError, 'invalid value for "orphan_protection_time", must be greater than or equal to 0.'
         
     | 
| 
      
 112 
     | 
    
         
            +
                  end
         
     | 
| 
      
 113 
     | 
    
         
            +
             
     | 
| 
      
 114 
     | 
    
         
            +
                  @orphan_protection_time = orphan_protection_time
         
     | 
| 
      
 115 
     | 
    
         
            +
                end
         
     | 
| 
      
 116 
     | 
    
         
            +
             
     | 
| 
       93 
117 
     | 
    
         
             
                # Checks equality by comparing each attribute.
         
     | 
| 
       94 
118 
     | 
    
         
             
                # @param [Object] Object to be compared
         
     | 
| 
       95 
119 
     | 
    
         
             
                def ==(o)
         
     | 
    
        data/pulpcore_client.gemspec
    CHANGED
    
    | 
         @@ -28,6 +28,7 @@ Gem::Specification.new do |s| 
     | 
|
| 
       28 
28 
     | 
    
         
             
              s.required_ruby_version = ">= 2.7"
         
     | 
| 
       29 
29 
     | 
    
         
             
              s.metadata    = {}
         
     | 
| 
       30 
30 
     | 
    
         | 
| 
      
 31 
     | 
    
         
            +
              s.add_runtime_dependency 'faraday-net_http', '>= 2.0', '< 3.1'
         
     | 
| 
       31 
32 
     | 
    
         
             
              s.add_runtime_dependency 'faraday', '>= 1.0.1', '< 2.9'
         
     | 
| 
       32 
33 
     | 
    
         
             
              s.add_runtime_dependency 'faraday-multipart'
         
     | 
| 
       33 
34 
     | 
    
         
             
              s.add_runtime_dependency 'marcel'
         
     | 
| 
         @@ -40,6 +40,7 @@ describe 'DistributionsApi' do 
     | 
|
| 
       40 
40 
     | 
    
         
             
              # @option opts [String] :base_path__contains Filter results where base_path contains value
         
     | 
| 
       41 
41 
     | 
    
         
             
              # @option opts [String] :base_path__icontains Filter results where base_path contains value
         
     | 
| 
       42 
42 
     | 
    
         
             
              # @option opts [Array<String>] :base_path__in Filter results where base_path is in a comma-separated list of values
         
     | 
| 
      
 43 
     | 
    
         
            +
              # @option opts [Boolean] :checkpoint Filter results where checkpoint matches value
         
     | 
| 
       43 
44 
     | 
    
         
             
              # @option opts [Integer] :limit Number of results to return per page.
         
     | 
| 
       44 
45 
     | 
    
         
             
              # @option opts [String] :name Filter results where name matches value
         
     | 
| 
       45 
46 
     | 
    
         
             
              # @option opts [String] :name__contains Filter results where name contains value
         
     | 
| 
         @@ -51,7 +52,7 @@ describe 'DistributionsApi' do 
     | 
|
| 
       51 
52 
     | 
    
         
             
              # @option opts [String] :name__regex Filter results where name matches regex value
         
     | 
| 
       52 
53 
     | 
    
         
             
              # @option opts [String] :name__startswith Filter results where name starts with value
         
     | 
| 
       53 
54 
     | 
    
         
             
              # @option opts [Integer] :offset The initial index from which to return the results.
         
     | 
| 
       54 
     | 
    
         
            -
              # @option opts [Array<String>] :ordering Ordering  * `pulp_id` - Pulp id * `-pulp_id` - Pulp id (descending) * `pulp_created` - Pulp created * `-pulp_created` - Pulp created (descending) * `pulp_last_updated` - Pulp last updated * `-pulp_last_updated` - Pulp last updated (descending) * `pulp_type` - Pulp type * `-pulp_type` - Pulp type (descending) * `name` - Name * `-name` - Name (descending) * `pulp_labels` - Pulp labels * `-pulp_labels` - Pulp labels (descending) * `base_path` - Base path * `-base_path` - Base path (descending) * `hidden` - Hidden * `-hidden` - Hidden (descending) * `pk` - Pk * `-pk` - Pk (descending)
         
     | 
| 
      
 55 
     | 
    
         
            +
              # @option opts [Array<String>] :ordering Ordering  * `pulp_id` - Pulp id * `-pulp_id` - Pulp id (descending) * `pulp_created` - Pulp created * `-pulp_created` - Pulp created (descending) * `pulp_last_updated` - Pulp last updated * `-pulp_last_updated` - Pulp last updated (descending) * `pulp_type` - Pulp type * `-pulp_type` - Pulp type (descending) * `name` - Name * `-name` - Name (descending) * `pulp_labels` - Pulp labels * `-pulp_labels` - Pulp labels (descending) * `base_path` - Base path * `-base_path` - Base path (descending) * `hidden` - Hidden * `-hidden` - Hidden (descending) * `checkpoint` - Checkpoint * `-checkpoint` - Checkpoint (descending) * `pk` - Pk * `-pk` - Pk (descending)
         
     | 
| 
       55 
56 
     | 
    
         
             
              # @option opts [Array<String>] :prn__in Multiple values may be separated by commas.
         
     | 
| 
       56 
57 
     | 
    
         
             
              # @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
         
     | 
| 
       57 
58 
     | 
    
         
             
              # @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
         
     | 
| 
         @@ -40,6 +40,7 @@ describe 'DistributionsArtifactsApi' do 
     | 
|
| 
       40 
40 
     | 
    
         
             
              # @option opts [String] :base_path__contains Filter results where base_path contains value
         
     | 
| 
       41 
41 
     | 
    
         
             
              # @option opts [String] :base_path__icontains Filter results where base_path contains value
         
     | 
| 
       42 
42 
     | 
    
         
             
              # @option opts [Array<String>] :base_path__in Filter results where base_path is in a comma-separated list of values
         
     | 
| 
      
 43 
     | 
    
         
            +
              # @option opts [Boolean] :checkpoint Filter results where checkpoint matches value
         
     | 
| 
       43 
44 
     | 
    
         
             
              # @option opts [Integer] :limit Number of results to return per page.
         
     | 
| 
       44 
45 
     | 
    
         
             
              # @option opts [String] :name Filter results where name matches value
         
     | 
| 
       45 
46 
     | 
    
         
             
              # @option opts [String] :name__contains Filter results where name contains value
         
     | 
| 
         @@ -51,7 +52,7 @@ describe 'DistributionsArtifactsApi' do 
     | 
|
| 
       51 
52 
     | 
    
         
             
              # @option opts [String] :name__regex Filter results where name matches regex value
         
     | 
| 
       52 
53 
     | 
    
         
             
              # @option opts [String] :name__startswith Filter results where name starts with value
         
     | 
| 
       53 
54 
     | 
    
         
             
              # @option opts [Integer] :offset The initial index from which to return the results.
         
     | 
| 
       54 
     | 
    
         
            -
              # @option opts [Array<String>] :ordering Ordering  * `pulp_id` - Pulp id * `-pulp_id` - Pulp id (descending) * `pulp_created` - Pulp created * `-pulp_created` - Pulp created (descending) * `pulp_last_updated` - Pulp last updated * `-pulp_last_updated` - Pulp last updated (descending) * `pulp_type` - Pulp type * `-pulp_type` - Pulp type (descending) * `name` - Name * `-name` - Name (descending) * `pulp_labels` - Pulp labels * `-pulp_labels` - Pulp labels (descending) * `base_path` - Base path * `-base_path` - Base path (descending) * `hidden` - Hidden * `-hidden` - Hidden (descending) * `pk` - Pk * `-pk` - Pk (descending)
         
     | 
| 
      
 55 
     | 
    
         
            +
              # @option opts [Array<String>] :ordering Ordering  * `pulp_id` - Pulp id * `-pulp_id` - Pulp id (descending) * `pulp_created` - Pulp created * `-pulp_created` - Pulp created (descending) * `pulp_last_updated` - Pulp last updated * `-pulp_last_updated` - Pulp last updated (descending) * `pulp_type` - Pulp type * `-pulp_type` - Pulp type (descending) * `name` - Name * `-name` - Name (descending) * `pulp_labels` - Pulp labels * `-pulp_labels` - Pulp labels (descending) * `base_path` - Base path * `-base_path` - Base path (descending) * `hidden` - Hidden * `-hidden` - Hidden (descending) * `checkpoint` - Checkpoint * `-checkpoint` - Checkpoint (descending) * `pk` - Pk * `-pk` - Pk (descending)
         
     | 
| 
       55 
56 
     | 
    
         
             
              # @option opts [Array<String>] :prn__in Multiple values may be separated by commas.
         
     | 
| 
       56 
57 
     | 
    
         
             
              # @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
         
     | 
| 
       57 
58 
     | 
    
         
             
              # @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
         
     | 
| 
         @@ -62,7 +62,7 @@ describe 'DistributionsOpenpgpApi' do 
     | 
|
| 
       62 
62 
     | 
    
         
             
              # @param [Hash] opts the optional parameters
         
     | 
| 
       63 
63 
     | 
    
         
             
              # @option opts [Integer] :limit Number of results to return per page.
         
     | 
| 
       64 
64 
     | 
    
         
             
              # @option opts [Integer] :offset The initial index from which to return the results.
         
     | 
| 
       65 
     | 
    
         
            -
              # @option opts [Array<String>] :ordering Ordering  * `pulp_id` - Pulp id * `-pulp_id` - Pulp id (descending) * `pulp_created` - Pulp created * `-pulp_created` - Pulp created (descending) * `pulp_last_updated` - Pulp last updated * `-pulp_last_updated` - Pulp last updated (descending) * `pulp_type` - Pulp type * `-pulp_type` - Pulp type (descending) * `name` - Name * `-name` - Name (descending) * `pulp_labels` - Pulp labels * `-pulp_labels` - Pulp labels (descending) * `base_path` - Base path * `-base_path` - Base path (descending) * `hidden` - Hidden * `-hidden` - Hidden (descending) * `pk` - Pk * `-pk` - Pk (descending)
         
     | 
| 
      
 65 
     | 
    
         
            +
              # @option opts [Array<String>] :ordering Ordering  * `pulp_id` - Pulp id * `-pulp_id` - Pulp id (descending) * `pulp_created` - Pulp created * `-pulp_created` - Pulp created (descending) * `pulp_last_updated` - Pulp last updated * `-pulp_last_updated` - Pulp last updated (descending) * `pulp_type` - Pulp type * `-pulp_type` - Pulp type (descending) * `name` - Name * `-name` - Name (descending) * `pulp_labels` - Pulp labels * `-pulp_labels` - Pulp labels (descending) * `base_path` - Base path * `-base_path` - Base path (descending) * `hidden` - Hidden * `-hidden` - Hidden (descending) * `checkpoint` - Checkpoint * `-checkpoint` - Checkpoint (descending) * `pk` - Pk * `-pk` - Pk (descending)
         
     | 
| 
       66 
66 
     | 
    
         
             
              # @option opts [Array<String>] :prn__in Multiple values may be separated by commas.
         
     | 
| 
       67 
67 
     | 
    
         
             
              # @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
         
     | 
| 
       68 
68 
     | 
    
         
             
              # @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
         
     | 
| 
         @@ -36,11 +36,12 @@ describe 'PublicationsApi' do 
     | 
|
| 
       36 
36 
     | 
    
         
             
              # List publications
         
     | 
| 
       37 
37 
     | 
    
         
             
              # A base class for any publication viewset.
         
     | 
| 
       38 
38 
     | 
    
         
             
              # @param [Hash] opts the optional parameters
         
     | 
| 
      
 39 
     | 
    
         
            +
              # @option opts [Boolean] :checkpoint Filter results where checkpoint matches value
         
     | 
| 
       39 
40 
     | 
    
         
             
              # @option opts [String] :content Content Unit referenced by HREF/PRN
         
     | 
| 
       40 
41 
     | 
    
         
             
              # @option opts [Array<String>] :content__in Multiple values may be separated by commas.
         
     | 
| 
       41 
42 
     | 
    
         
             
              # @option opts [Integer] :limit Number of results to return per page.
         
     | 
| 
       42 
43 
     | 
    
         
             
              # @option opts [Integer] :offset The initial index from which to return the results.
         
     | 
| 
       43 
     | 
    
         
            -
              # @option opts [Array<String>] :ordering Ordering  * `pulp_id` - Pulp id * `-pulp_id` - Pulp id (descending) * `pulp_created` - Pulp created * `-pulp_created` - Pulp created (descending) * `pulp_last_updated` - Pulp last updated * `-pulp_last_updated` - Pulp last updated (descending) * `pulp_type` - Pulp type * `-pulp_type` - Pulp type (descending) * `complete` - Complete * `-complete` - Complete (descending) * `pass_through` - Pass through * `-pass_through` - Pass through (descending) * `pk` - Pk * `-pk` - Pk (descending)
         
     | 
| 
      
 44 
     | 
    
         
            +
              # @option opts [Array<String>] :ordering Ordering  * `pulp_id` - Pulp id * `-pulp_id` - Pulp id (descending) * `pulp_created` - Pulp created * `-pulp_created` - Pulp created (descending) * `pulp_last_updated` - Pulp last updated * `-pulp_last_updated` - Pulp last updated (descending) * `pulp_type` - Pulp type * `-pulp_type` - Pulp type (descending) * `complete` - Complete * `-complete` - Complete (descending) * `pass_through` - Pass through * `-pass_through` - Pass through (descending) * `checkpoint` - Checkpoint * `-checkpoint` - Checkpoint (descending) * `pk` - Pk * `-pk` - Pk (descending)
         
     | 
| 
       44 
45 
     | 
    
         
             
              # @option opts [Array<String>] :prn__in Multiple values may be separated by commas.
         
     | 
| 
       45 
46 
     | 
    
         
             
              # @option opts [Time] :pulp_created Filter results where pulp_created matches value
         
     | 
| 
       46 
47 
     | 
    
         
             
              # @option opts [Time] :pulp_created__gt Filter results where pulp_created is greater than value
         
     | 
| 
         @@ -27,67 +27,67 @@ describe PulpcoreClient::ArtifactDistributionResponse do 
     | 
|
| 
       27 
27 
     | 
    
         
             
                end
         
     | 
| 
       28 
28 
     | 
    
         
             
              end
         
     | 
| 
       29 
29 
     | 
    
         | 
| 
       30 
     | 
    
         
            -
              describe 'test attribute " 
     | 
| 
      
 30 
     | 
    
         
            +
              describe 'test attribute "prn"' do
         
     | 
| 
       31 
31 
     | 
    
         
             
                it 'should work' do
         
     | 
| 
       32 
32 
     | 
    
         
             
                  # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
         
     | 
| 
       33 
33 
     | 
    
         
             
                end
         
     | 
| 
       34 
34 
     | 
    
         
             
              end
         
     | 
| 
       35 
35 
     | 
    
         | 
| 
       36 
     | 
    
         
            -
              describe 'test attribute " 
     | 
| 
      
 36 
     | 
    
         
            +
              describe 'test attribute "name"' do
         
     | 
| 
       37 
37 
     | 
    
         
             
                it 'should work' do
         
     | 
| 
       38 
38 
     | 
    
         
             
                  # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
         
     | 
| 
       39 
39 
     | 
    
         
             
                end
         
     | 
| 
       40 
40 
     | 
    
         
             
              end
         
     | 
| 
       41 
41 
     | 
    
         | 
| 
       42 
     | 
    
         
            -
              describe 'test attribute " 
     | 
| 
      
 42 
     | 
    
         
            +
              describe 'test attribute "pulp_href"' do
         
     | 
| 
       43 
43 
     | 
    
         
             
                it 'should work' do
         
     | 
| 
       44 
44 
     | 
    
         
             
                  # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
         
     | 
| 
       45 
45 
     | 
    
         
             
                end
         
     | 
| 
       46 
46 
     | 
    
         
             
              end
         
     | 
| 
       47 
47 
     | 
    
         | 
| 
       48 
     | 
    
         
            -
              describe 'test attribute " 
     | 
| 
      
 48 
     | 
    
         
            +
              describe 'test attribute "pulp_last_updated"' do
         
     | 
| 
       49 
49 
     | 
    
         
             
                it 'should work' do
         
     | 
| 
       50 
50 
     | 
    
         
             
                  # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
         
     | 
| 
       51 
51 
     | 
    
         
             
                end
         
     | 
| 
       52 
52 
     | 
    
         
             
              end
         
     | 
| 
       53 
53 
     | 
    
         | 
| 
       54 
     | 
    
         
            -
              describe 'test attribute " 
     | 
| 
      
 54 
     | 
    
         
            +
              describe 'test attribute "pulp_labels"' do
         
     | 
| 
       55 
55 
     | 
    
         
             
                it 'should work' do
         
     | 
| 
       56 
56 
     | 
    
         
             
                  # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
         
     | 
| 
       57 
57 
     | 
    
         
             
                end
         
     | 
| 
       58 
58 
     | 
    
         
             
              end
         
     | 
| 
       59 
59 
     | 
    
         | 
| 
       60 
     | 
    
         
            -
              describe 'test attribute " 
     | 
| 
      
 60 
     | 
    
         
            +
              describe 'test attribute "pulp_created"' do
         
     | 
| 
       61 
61 
     | 
    
         
             
                it 'should work' do
         
     | 
| 
       62 
62 
     | 
    
         
             
                  # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
         
     | 
| 
       63 
63 
     | 
    
         
             
                end
         
     | 
| 
       64 
64 
     | 
    
         
             
              end
         
     | 
| 
       65 
65 
     | 
    
         | 
| 
       66 
     | 
    
         
            -
              describe 'test attribute " 
     | 
| 
      
 66 
     | 
    
         
            +
              describe 'test attribute "base_url"' do
         
     | 
| 
       67 
67 
     | 
    
         
             
                it 'should work' do
         
     | 
| 
       68 
68 
     | 
    
         
             
                  # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
         
     | 
| 
       69 
69 
     | 
    
         
             
                end
         
     | 
| 
       70 
70 
     | 
    
         
             
              end
         
     | 
| 
       71 
71 
     | 
    
         | 
| 
       72 
     | 
    
         
            -
              describe 'test attribute " 
     | 
| 
      
 72 
     | 
    
         
            +
              describe 'test attribute "no_content_change_since"' do
         
     | 
| 
       73 
73 
     | 
    
         
             
                it 'should work' do
         
     | 
| 
       74 
74 
     | 
    
         
             
                  # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
         
     | 
| 
       75 
75 
     | 
    
         
             
                end
         
     | 
| 
       76 
76 
     | 
    
         
             
              end
         
     | 
| 
       77 
77 
     | 
    
         | 
| 
       78 
     | 
    
         
            -
              describe 'test attribute " 
     | 
| 
      
 78 
     | 
    
         
            +
              describe 'test attribute "hidden"' do
         
     | 
| 
       79 
79 
     | 
    
         
             
                it 'should work' do
         
     | 
| 
       80 
80 
     | 
    
         
             
                  # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
         
     | 
| 
       81 
81 
     | 
    
         
             
                end
         
     | 
| 
       82 
82 
     | 
    
         
             
              end
         
     | 
| 
       83 
83 
     | 
    
         | 
| 
       84 
     | 
    
         
            -
              describe 'test attribute " 
     | 
| 
      
 84 
     | 
    
         
            +
              describe 'test attribute "base_path"' do
         
     | 
| 
       85 
85 
     | 
    
         
             
                it 'should work' do
         
     | 
| 
       86 
86 
     | 
    
         
             
                  # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
         
     | 
| 
       87 
87 
     | 
    
         
             
                end
         
     | 
| 
       88 
88 
     | 
    
         
             
              end
         
     | 
| 
       89 
89 
     | 
    
         | 
| 
       90 
     | 
    
         
            -
              describe 'test attribute " 
     | 
| 
      
 90 
     | 
    
         
            +
              describe 'test attribute "content_guard"' do
         
     | 
| 
       91 
91 
     | 
    
         
             
                it 'should work' do
         
     | 
| 
       92 
92 
     | 
    
         
             
                  # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
         
     | 
| 
       93 
93 
     | 
    
         
             
                end
         
     |