pulp_python_client 3.3.0.dev1619063733 → 3.3.0.dev1619495506

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of pulp_python_client might be problematic. Click here for more details.

checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 779c5322a52e630369043d28f009826e19b5acafdcbaaf6f284056b62891f4c7
4
- data.tar.gz: 94b45177fa1cb3c8c99cc90480021e0d66f616dfa4a23976f472cbc09b87f9be
3
+ metadata.gz: 2df65d905bce49e1274490c6ac0df6c411f425de5e11d9fa1379d3b7e83e61a7
4
+ data.tar.gz: 1e16f94576eebbfc6b2ae15df83a77e618e473078c5d8033176fbe9ea98a1d41
5
5
  SHA512:
6
- metadata.gz: 1fea48d9241b9bda2b1f87591b4105345937266c1483ccec8774f6b6e7db00b5026ac7d166346670d049a5391ed6fcddccaacd990507a47864ce6ba6e512ede0
7
- data.tar.gz: 025f787783f7349d69057822a59f0e94554321f6b28a71eafae6d0fa80e7c215010b5646b7820a82381e3c37cdbb81698bebed718a496172011dd59f7e544f4d
6
+ metadata.gz: b409c794cef3f5b20b0b510a4e02c259ccd9d69f5968f4f974c033ad6286cd6bb1d92bc5ddb4cd139980a56517b1377aa65ea1f6794afd11d9a7427bce90434f
7
+ data.tar.gz: 6392ccae9232715ae6c7a1adf09041ea1e8129558168dca0c65cc6b252cb2467497ca2d1ac8fb95cfbfe6927270d4f9b6e5082b015f6e4ef25affde11d1aeeff
data/README.md CHANGED
@@ -7,7 +7,7 @@ Fetch, Upload, Organize, and Distribute Software Packages
7
7
  This SDK is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
8
8
 
9
9
  - API version: v3
10
- - Package version: 3.3.0.dev1619063733
10
+ - Package version: 3.3.0.dev1619495506
11
11
  - Build package: org.openapitools.codegen.languages.RubyClientCodegen
12
12
  For more information, please visit [https://pulpproject.org](https://pulpproject.org)
13
13
 
@@ -24,16 +24,16 @@ gem build pulp_python_client.gemspec
24
24
  Then either install the gem locally:
25
25
 
26
26
  ```shell
27
- gem install ./pulp_python_client-3.3.0.dev1619063733.gem
27
+ gem install ./pulp_python_client-3.3.0.dev1619495506.gem
28
28
  ```
29
29
 
30
- (for development, run `gem install --dev ./pulp_python_client-3.3.0.dev1619063733.gem` to install the development dependencies)
30
+ (for development, run `gem install --dev ./pulp_python_client-3.3.0.dev1619495506.gem` to install the development dependencies)
31
31
 
32
32
  or publish the gem to a gem hosting service, e.g. [RubyGems](https://rubygems.org/).
33
33
 
34
34
  Finally add this to the Gemfile:
35
35
 
36
- gem 'pulp_python_client', '~> 3.3.0.dev1619063733'
36
+ gem 'pulp_python_client', '~> 3.3.0.dev1619495506'
37
37
 
38
38
  ### Install from Git
39
39
 
@@ -8,6 +8,7 @@ Name | Type | Description | Notes
8
8
  **content_guard** | **String** | An optional content-guard. | [optional]
9
9
  **pulp_labels** | [**Object**](.md) | | [optional]
10
10
  **name** | **String** | A unique name. Ex, `rawhide` and `stable`. | [optional]
11
+ **repository** | **String** | The latest RepositoryVersion for this Repository will be served. | [optional]
11
12
  **publication** | **String** | Publication to be served | [optional]
12
13
 
13
14
  ## Code Sample
@@ -19,6 +20,7 @@ instance = PulpPythonClient::PatchedpythonPythonDistribution.new(base_path: null
19
20
  content_guard: null,
20
21
  pulp_labels: null,
21
22
  name: null,
23
+ repository: null,
22
24
  publication: null)
23
25
  ```
24
26
 
@@ -7,6 +7,7 @@ Name | Type | Description | Notes
7
7
  **pulp_labels** | [**Object**](.md) | | [optional]
8
8
  **name** | **String** | A unique name for this repository. | [optional]
9
9
  **description** | **String** | An optional description. | [optional]
10
+ **retained_versions** | **Integer** | Retain X versions of the repository. Default is null which retains all versions. This is provided as a tech preview in Pulp 3 and may change in the future. | [optional]
10
11
  **remote** | **String** | | [optional]
11
12
 
12
13
  ## Code Sample
@@ -17,6 +18,7 @@ require 'PulpPythonClient'
17
18
  instance = PulpPythonClient::PatchedpythonPythonRepository.new(pulp_labels: null,
18
19
  name: null,
19
20
  description: null,
21
+ retained_versions: null,
20
22
  remote: null)
21
23
  ```
22
24
 
@@ -8,6 +8,7 @@ Name | Type | Description | Notes
8
8
  **content_guard** | **String** | An optional content-guard. | [optional]
9
9
  **pulp_labels** | [**Object**](.md) | | [optional]
10
10
  **name** | **String** | A unique name. Ex, `rawhide` and `stable`. |
11
+ **repository** | **String** | The latest RepositoryVersion for this Repository will be served. | [optional]
11
12
  **publication** | **String** | Publication to be served | [optional]
12
13
 
13
14
  ## Code Sample
@@ -19,6 +20,7 @@ instance = PulpPythonClient::PythonPythonDistribution.new(base_path: null,
19
20
  content_guard: null,
20
21
  pulp_labels: null,
21
22
  name: null,
23
+ repository: null,
22
24
  publication: null)
23
25
  ```
24
26
 
@@ -11,6 +11,7 @@ Name | Type | Description | Notes
11
11
  **content_guard** | **String** | An optional content-guard. | [optional]
12
12
  **pulp_labels** | [**Object**](.md) | | [optional]
13
13
  **name** | **String** | A unique name. Ex, `rawhide` and `stable`. |
14
+ **repository** | **String** | The latest RepositoryVersion for this Repository will be served. | [optional]
14
15
  **publication** | **String** | Publication to be served | [optional]
15
16
 
16
17
  ## Code Sample
@@ -25,6 +26,7 @@ instance = PulpPythonClient::PythonPythonDistributionResponse.new(pulp_href: nul
25
26
  content_guard: null,
26
27
  pulp_labels: null,
27
28
  name: null,
29
+ repository: null,
28
30
  publication: null)
29
31
  ```
30
32
 
@@ -7,6 +7,7 @@ Name | Type | Description | Notes
7
7
  **pulp_labels** | [**Object**](.md) | | [optional]
8
8
  **name** | **String** | A unique name for this repository. |
9
9
  **description** | **String** | An optional description. | [optional]
10
+ **retained_versions** | **Integer** | Retain X versions of the repository. Default is null which retains all versions. This is provided as a tech preview in Pulp 3 and may change in the future. | [optional]
10
11
  **remote** | **String** | | [optional]
11
12
 
12
13
  ## Code Sample
@@ -17,6 +18,7 @@ require 'PulpPythonClient'
17
18
  instance = PulpPythonClient::PythonPythonRepository.new(pulp_labels: null,
18
19
  name: null,
19
20
  description: null,
21
+ retained_versions: null,
20
22
  remote: null)
21
23
  ```
22
24
 
@@ -11,6 +11,7 @@ Name | Type | Description | Notes
11
11
  **latest_version_href** | **String** | | [optional] [readonly]
12
12
  **name** | **String** | A unique name for this repository. |
13
13
  **description** | **String** | An optional description. | [optional]
14
+ **retained_versions** | **Integer** | Retain X versions of the repository. Default is null which retains all versions. This is provided as a tech preview in Pulp 3 and may change in the future. | [optional]
14
15
  **remote** | **String** | | [optional]
15
16
 
16
17
  ## Code Sample
@@ -25,6 +26,7 @@ instance = PulpPythonClient::PythonPythonRepositoryResponse.new(pulp_href: null,
25
26
  latest_version_href: null,
26
27
  name: null,
27
28
  description: null,
29
+ retained_versions: null,
28
30
  remote: null)
29
31
  ```
30
32
 
@@ -26,6 +26,9 @@ module PulpPythonClient
26
26
  # A unique name. Ex, `rawhide` and `stable`.
27
27
  attr_accessor :name
28
28
 
29
+ # The latest RepositoryVersion for this Repository will be served.
30
+ attr_accessor :repository
31
+
29
32
  # Publication to be served
30
33
  attr_accessor :publication
31
34
 
@@ -36,6 +39,7 @@ module PulpPythonClient
36
39
  :'content_guard' => :'content_guard',
37
40
  :'pulp_labels' => :'pulp_labels',
38
41
  :'name' => :'name',
42
+ :'repository' => :'repository',
39
43
  :'publication' => :'publication'
40
44
  }
41
45
  end
@@ -47,6 +51,7 @@ module PulpPythonClient
47
51
  :'content_guard' => :'String',
48
52
  :'pulp_labels' => :'Object',
49
53
  :'name' => :'String',
54
+ :'repository' => :'String',
50
55
  :'publication' => :'String'
51
56
  }
52
57
  end
@@ -55,6 +60,7 @@ module PulpPythonClient
55
60
  def self.openapi_nullable
56
61
  Set.new([
57
62
  :'content_guard',
63
+ :'repository',
58
64
  :'publication'
59
65
  ])
60
66
  end
@@ -90,6 +96,10 @@ module PulpPythonClient
90
96
  self.name = attributes[:'name']
91
97
  end
92
98
 
99
+ if attributes.key?(:'repository')
100
+ self.repository = attributes[:'repository']
101
+ end
102
+
93
103
  if attributes.key?(:'publication')
94
104
  self.publication = attributes[:'publication']
95
105
  end
@@ -117,6 +127,7 @@ module PulpPythonClient
117
127
  content_guard == o.content_guard &&
118
128
  pulp_labels == o.pulp_labels &&
119
129
  name == o.name &&
130
+ repository == o.repository &&
120
131
  publication == o.publication
121
132
  end
122
133
 
@@ -129,7 +140,7 @@ module PulpPythonClient
129
140
  # Calculates hash code according to all attributes.
130
141
  # @return [Integer] Hash code
131
142
  def hash
132
- [base_path, content_guard, pulp_labels, name, publication].hash
143
+ [base_path, content_guard, pulp_labels, name, repository, publication].hash
133
144
  end
134
145
 
135
146
  # Builds the object from hash
@@ -23,6 +23,9 @@ module PulpPythonClient
23
23
  # An optional description.
24
24
  attr_accessor :description
25
25
 
26
+ # Retain X versions of the repository. Default is null which retains all versions. This is provided as a tech preview in Pulp 3 and may change in the future.
27
+ attr_accessor :retained_versions
28
+
26
29
  attr_accessor :remote
27
30
 
28
31
  # Attribute mapping from ruby-style variable name to JSON key.
@@ -31,6 +34,7 @@ module PulpPythonClient
31
34
  :'pulp_labels' => :'pulp_labels',
32
35
  :'name' => :'name',
33
36
  :'description' => :'description',
37
+ :'retained_versions' => :'retained_versions',
34
38
  :'remote' => :'remote'
35
39
  }
36
40
  end
@@ -41,6 +45,7 @@ module PulpPythonClient
41
45
  :'pulp_labels' => :'Object',
42
46
  :'name' => :'String',
43
47
  :'description' => :'String',
48
+ :'retained_versions' => :'Integer',
44
49
  :'remote' => :'String'
45
50
  }
46
51
  end
@@ -49,6 +54,7 @@ module PulpPythonClient
49
54
  def self.openapi_nullable
50
55
  Set.new([
51
56
  :'description',
57
+ :'retained_versions',
52
58
  :'remote'
53
59
  ])
54
60
  end
@@ -80,6 +86,10 @@ module PulpPythonClient
80
86
  self.description = attributes[:'description']
81
87
  end
82
88
 
89
+ if attributes.key?(:'retained_versions')
90
+ self.retained_versions = attributes[:'retained_versions']
91
+ end
92
+
83
93
  if attributes.key?(:'remote')
84
94
  self.remote = attributes[:'remote']
85
95
  end
@@ -89,15 +99,30 @@ module PulpPythonClient
89
99
  # @return Array for valid properties with the reasons
90
100
  def list_invalid_properties
91
101
  invalid_properties = Array.new
102
+ if !@retained_versions.nil? && @retained_versions < 1
103
+ invalid_properties.push('invalid value for "retained_versions", must be greater than or equal to 1.')
104
+ end
105
+
92
106
  invalid_properties
93
107
  end
94
108
 
95
109
  # Check to see if the all the properties in the model are valid
96
110
  # @return true if the model is valid
97
111
  def valid?
112
+ return false if !@retained_versions.nil? && @retained_versions < 1
98
113
  true
99
114
  end
100
115
 
116
+ # Custom attribute writer method with validation
117
+ # @param [Object] retained_versions Value to be assigned
118
+ def retained_versions=(retained_versions)
119
+ if !retained_versions.nil? && retained_versions < 1
120
+ fail ArgumentError, 'invalid value for "retained_versions", must be greater than or equal to 1.'
121
+ end
122
+
123
+ @retained_versions = retained_versions
124
+ end
125
+
101
126
  # Checks equality by comparing each attribute.
102
127
  # @param [Object] Object to be compared
103
128
  def ==(o)
@@ -106,6 +131,7 @@ module PulpPythonClient
106
131
  pulp_labels == o.pulp_labels &&
107
132
  name == o.name &&
108
133
  description == o.description &&
134
+ retained_versions == o.retained_versions &&
109
135
  remote == o.remote
110
136
  end
111
137
 
@@ -118,7 +144,7 @@ module PulpPythonClient
118
144
  # Calculates hash code according to all attributes.
119
145
  # @return [Integer] Hash code
120
146
  def hash
121
- [pulp_labels, name, description, remote].hash
147
+ [pulp_labels, name, description, retained_versions, remote].hash
122
148
  end
123
149
 
124
150
  # Builds the object from hash
@@ -26,6 +26,9 @@ module PulpPythonClient
26
26
  # A unique name. Ex, `rawhide` and `stable`.
27
27
  attr_accessor :name
28
28
 
29
+ # The latest RepositoryVersion for this Repository will be served.
30
+ attr_accessor :repository
31
+
29
32
  # Publication to be served
30
33
  attr_accessor :publication
31
34
 
@@ -36,6 +39,7 @@ module PulpPythonClient
36
39
  :'content_guard' => :'content_guard',
37
40
  :'pulp_labels' => :'pulp_labels',
38
41
  :'name' => :'name',
42
+ :'repository' => :'repository',
39
43
  :'publication' => :'publication'
40
44
  }
41
45
  end
@@ -47,6 +51,7 @@ module PulpPythonClient
47
51
  :'content_guard' => :'String',
48
52
  :'pulp_labels' => :'Object',
49
53
  :'name' => :'String',
54
+ :'repository' => :'String',
50
55
  :'publication' => :'String'
51
56
  }
52
57
  end
@@ -55,6 +60,7 @@ module PulpPythonClient
55
60
  def self.openapi_nullable
56
61
  Set.new([
57
62
  :'content_guard',
63
+ :'repository',
58
64
  :'publication'
59
65
  ])
60
66
  end
@@ -90,6 +96,10 @@ module PulpPythonClient
90
96
  self.name = attributes[:'name']
91
97
  end
92
98
 
99
+ if attributes.key?(:'repository')
100
+ self.repository = attributes[:'repository']
101
+ end
102
+
93
103
  if attributes.key?(:'publication')
94
104
  self.publication = attributes[:'publication']
95
105
  end
@@ -127,6 +137,7 @@ module PulpPythonClient
127
137
  content_guard == o.content_guard &&
128
138
  pulp_labels == o.pulp_labels &&
129
139
  name == o.name &&
140
+ repository == o.repository &&
130
141
  publication == o.publication
131
142
  end
132
143
 
@@ -139,7 +150,7 @@ module PulpPythonClient
139
150
  # Calculates hash code according to all attributes.
140
151
  # @return [Integer] Hash code
141
152
  def hash
142
- [base_path, content_guard, pulp_labels, name, publication].hash
153
+ [base_path, content_guard, pulp_labels, name, repository, publication].hash
143
154
  end
144
155
 
145
156
  # Builds the object from hash
@@ -34,6 +34,9 @@ module PulpPythonClient
34
34
  # A unique name. Ex, `rawhide` and `stable`.
35
35
  attr_accessor :name
36
36
 
37
+ # The latest RepositoryVersion for this Repository will be served.
38
+ attr_accessor :repository
39
+
37
40
  # Publication to be served
38
41
  attr_accessor :publication
39
42
 
@@ -47,6 +50,7 @@ module PulpPythonClient
47
50
  :'content_guard' => :'content_guard',
48
51
  :'pulp_labels' => :'pulp_labels',
49
52
  :'name' => :'name',
53
+ :'repository' => :'repository',
50
54
  :'publication' => :'publication'
51
55
  }
52
56
  end
@@ -61,6 +65,7 @@ module PulpPythonClient
61
65
  :'content_guard' => :'String',
62
66
  :'pulp_labels' => :'Object',
63
67
  :'name' => :'String',
68
+ :'repository' => :'String',
64
69
  :'publication' => :'String'
65
70
  }
66
71
  end
@@ -69,6 +74,7 @@ module PulpPythonClient
69
74
  def self.openapi_nullable
70
75
  Set.new([
71
76
  :'content_guard',
77
+ :'repository',
72
78
  :'publication'
73
79
  ])
74
80
  end
@@ -116,6 +122,10 @@ module PulpPythonClient
116
122
  self.name = attributes[:'name']
117
123
  end
118
124
 
125
+ if attributes.key?(:'repository')
126
+ self.repository = attributes[:'repository']
127
+ end
128
+
119
129
  if attributes.key?(:'publication')
120
130
  self.publication = attributes[:'publication']
121
131
  end
@@ -156,6 +166,7 @@ module PulpPythonClient
156
166
  content_guard == o.content_guard &&
157
167
  pulp_labels == o.pulp_labels &&
158
168
  name == o.name &&
169
+ repository == o.repository &&
159
170
  publication == o.publication
160
171
  end
161
172
 
@@ -168,7 +179,7 @@ module PulpPythonClient
168
179
  # Calculates hash code according to all attributes.
169
180
  # @return [Integer] Hash code
170
181
  def hash
171
- [pulp_href, pulp_created, base_path, base_url, content_guard, pulp_labels, name, publication].hash
182
+ [pulp_href, pulp_created, base_path, base_url, content_guard, pulp_labels, name, repository, publication].hash
172
183
  end
173
184
 
174
185
  # Builds the object from hash
@@ -23,6 +23,9 @@ module PulpPythonClient
23
23
  # An optional description.
24
24
  attr_accessor :description
25
25
 
26
+ # Retain X versions of the repository. Default is null which retains all versions. This is provided as a tech preview in Pulp 3 and may change in the future.
27
+ attr_accessor :retained_versions
28
+
26
29
  attr_accessor :remote
27
30
 
28
31
  # Attribute mapping from ruby-style variable name to JSON key.
@@ -31,6 +34,7 @@ module PulpPythonClient
31
34
  :'pulp_labels' => :'pulp_labels',
32
35
  :'name' => :'name',
33
36
  :'description' => :'description',
37
+ :'retained_versions' => :'retained_versions',
34
38
  :'remote' => :'remote'
35
39
  }
36
40
  end
@@ -41,6 +45,7 @@ module PulpPythonClient
41
45
  :'pulp_labels' => :'Object',
42
46
  :'name' => :'String',
43
47
  :'description' => :'String',
48
+ :'retained_versions' => :'Integer',
44
49
  :'remote' => :'String'
45
50
  }
46
51
  end
@@ -49,6 +54,7 @@ module PulpPythonClient
49
54
  def self.openapi_nullable
50
55
  Set.new([
51
56
  :'description',
57
+ :'retained_versions',
52
58
  :'remote'
53
59
  ])
54
60
  end
@@ -80,6 +86,10 @@ module PulpPythonClient
80
86
  self.description = attributes[:'description']
81
87
  end
82
88
 
89
+ if attributes.key?(:'retained_versions')
90
+ self.retained_versions = attributes[:'retained_versions']
91
+ end
92
+
83
93
  if attributes.key?(:'remote')
84
94
  self.remote = attributes[:'remote']
85
95
  end
@@ -93,6 +103,10 @@ module PulpPythonClient
93
103
  invalid_properties.push('invalid value for "name", name cannot be nil.')
94
104
  end
95
105
 
106
+ if !@retained_versions.nil? && @retained_versions < 1
107
+ invalid_properties.push('invalid value for "retained_versions", must be greater than or equal to 1.')
108
+ end
109
+
96
110
  invalid_properties
97
111
  end
98
112
 
@@ -100,9 +114,20 @@ module PulpPythonClient
100
114
  # @return true if the model is valid
101
115
  def valid?
102
116
  return false if @name.nil?
117
+ return false if !@retained_versions.nil? && @retained_versions < 1
103
118
  true
104
119
  end
105
120
 
121
+ # Custom attribute writer method with validation
122
+ # @param [Object] retained_versions Value to be assigned
123
+ def retained_versions=(retained_versions)
124
+ if !retained_versions.nil? && retained_versions < 1
125
+ fail ArgumentError, 'invalid value for "retained_versions", must be greater than or equal to 1.'
126
+ end
127
+
128
+ @retained_versions = retained_versions
129
+ end
130
+
106
131
  # Checks equality by comparing each attribute.
107
132
  # @param [Object] Object to be compared
108
133
  def ==(o)
@@ -111,6 +136,7 @@ module PulpPythonClient
111
136
  pulp_labels == o.pulp_labels &&
112
137
  name == o.name &&
113
138
  description == o.description &&
139
+ retained_versions == o.retained_versions &&
114
140
  remote == o.remote
115
141
  end
116
142
 
@@ -123,7 +149,7 @@ module PulpPythonClient
123
149
  # Calculates hash code according to all attributes.
124
150
  # @return [Integer] Hash code
125
151
  def hash
126
- [pulp_labels, name, description, remote].hash
152
+ [pulp_labels, name, description, retained_versions, remote].hash
127
153
  end
128
154
 
129
155
  # Builds the object from hash
@@ -32,6 +32,9 @@ module PulpPythonClient
32
32
  # An optional description.
33
33
  attr_accessor :description
34
34
 
35
+ # Retain X versions of the repository. Default is null which retains all versions. This is provided as a tech preview in Pulp 3 and may change in the future.
36
+ attr_accessor :retained_versions
37
+
35
38
  attr_accessor :remote
36
39
 
37
40
  # Attribute mapping from ruby-style variable name to JSON key.
@@ -44,6 +47,7 @@ module PulpPythonClient
44
47
  :'latest_version_href' => :'latest_version_href',
45
48
  :'name' => :'name',
46
49
  :'description' => :'description',
50
+ :'retained_versions' => :'retained_versions',
47
51
  :'remote' => :'remote'
48
52
  }
49
53
  end
@@ -58,6 +62,7 @@ module PulpPythonClient
58
62
  :'latest_version_href' => :'String',
59
63
  :'name' => :'String',
60
64
  :'description' => :'String',
65
+ :'retained_versions' => :'Integer',
61
66
  :'remote' => :'String'
62
67
  }
63
68
  end
@@ -66,6 +71,7 @@ module PulpPythonClient
66
71
  def self.openapi_nullable
67
72
  Set.new([
68
73
  :'description',
74
+ :'retained_versions',
69
75
  :'remote'
70
76
  ])
71
77
  end
@@ -113,6 +119,10 @@ module PulpPythonClient
113
119
  self.description = attributes[:'description']
114
120
  end
115
121
 
122
+ if attributes.key?(:'retained_versions')
123
+ self.retained_versions = attributes[:'retained_versions']
124
+ end
125
+
116
126
  if attributes.key?(:'remote')
117
127
  self.remote = attributes[:'remote']
118
128
  end
@@ -126,6 +136,10 @@ module PulpPythonClient
126
136
  invalid_properties.push('invalid value for "name", name cannot be nil.')
127
137
  end
128
138
 
139
+ if !@retained_versions.nil? && @retained_versions < 1
140
+ invalid_properties.push('invalid value for "retained_versions", must be greater than or equal to 1.')
141
+ end
142
+
129
143
  invalid_properties
130
144
  end
131
145
 
@@ -133,9 +147,20 @@ module PulpPythonClient
133
147
  # @return true if the model is valid
134
148
  def valid?
135
149
  return false if @name.nil?
150
+ return false if !@retained_versions.nil? && @retained_versions < 1
136
151
  true
137
152
  end
138
153
 
154
+ # Custom attribute writer method with validation
155
+ # @param [Object] retained_versions Value to be assigned
156
+ def retained_versions=(retained_versions)
157
+ if !retained_versions.nil? && retained_versions < 1
158
+ fail ArgumentError, 'invalid value for "retained_versions", must be greater than or equal to 1.'
159
+ end
160
+
161
+ @retained_versions = retained_versions
162
+ end
163
+
139
164
  # Checks equality by comparing each attribute.
140
165
  # @param [Object] Object to be compared
141
166
  def ==(o)
@@ -148,6 +173,7 @@ module PulpPythonClient
148
173
  latest_version_href == o.latest_version_href &&
149
174
  name == o.name &&
150
175
  description == o.description &&
176
+ retained_versions == o.retained_versions &&
151
177
  remote == o.remote
152
178
  end
153
179
 
@@ -160,7 +186,7 @@ module PulpPythonClient
160
186
  # Calculates hash code according to all attributes.
161
187
  # @return [Integer] Hash code
162
188
  def hash
163
- [pulp_href, pulp_created, versions_href, pulp_labels, latest_version_href, name, description, remote].hash
189
+ [pulp_href, pulp_created, versions_href, pulp_labels, latest_version_href, name, description, retained_versions, remote].hash
164
190
  end
165
191
 
166
192
  # Builds the object from hash
@@ -11,5 +11,5 @@ OpenAPI Generator version: 4.2.3
11
11
  =end
12
12
 
13
13
  module PulpPythonClient
14
- VERSION = '3.3.0.dev1619063733'
14
+ VERSION = '3.3.0.dev1619495506'
15
15
  end
@@ -56,6 +56,12 @@ describe 'PatchedpythonPythonDistribution' do
56
56
  end
57
57
  end
58
58
 
59
+ describe 'test attribute "repository"' do
60
+ it 'should work' do
61
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
62
+ end
63
+ end
64
+
59
65
  describe 'test attribute "publication"' do
60
66
  it 'should work' do
61
67
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
@@ -50,6 +50,12 @@ describe 'PatchedpythonPythonRepository' do
50
50
  end
51
51
  end
52
52
 
53
+ describe 'test attribute "retained_versions"' do
54
+ it 'should work' do
55
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
56
+ end
57
+ end
58
+
53
59
  describe 'test attribute "remote"' do
54
60
  it 'should work' do
55
61
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
@@ -74,6 +74,12 @@ describe 'PythonPythonDistributionResponse' do
74
74
  end
75
75
  end
76
76
 
77
+ describe 'test attribute "repository"' do
78
+ it 'should work' do
79
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
80
+ end
81
+ end
82
+
77
83
  describe 'test attribute "publication"' do
78
84
  it 'should work' do
79
85
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
@@ -56,6 +56,12 @@ describe 'PythonPythonDistribution' do
56
56
  end
57
57
  end
58
58
 
59
+ describe 'test attribute "repository"' do
60
+ it 'should work' do
61
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
62
+ end
63
+ end
64
+
59
65
  describe 'test attribute "publication"' do
60
66
  it 'should work' do
61
67
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
@@ -74,6 +74,12 @@ describe 'PythonPythonRepositoryResponse' do
74
74
  end
75
75
  end
76
76
 
77
+ describe 'test attribute "retained_versions"' do
78
+ it 'should work' do
79
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
80
+ end
81
+ end
82
+
77
83
  describe 'test attribute "remote"' do
78
84
  it 'should work' do
79
85
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
@@ -50,6 +50,12 @@ describe 'PythonPythonRepository' do
50
50
  end
51
51
  end
52
52
 
53
+ describe 'test attribute "retained_versions"' do
54
+ it 'should work' do
55
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
56
+ end
57
+ end
58
+
53
59
  describe 'test attribute "remote"' do
54
60
  it 'should work' do
55
61
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pulp_python_client
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.3.0.dev1619063733
4
+ version: 3.3.0.dev1619495506
5
5
  platform: ruby
6
6
  authors:
7
7
  - OpenAPI-Generator
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-04-22 00:00:00.000000000 Z
11
+ date: 2021-04-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday
@@ -216,42 +216,42 @@ signing_key:
216
216
  specification_version: 4
217
217
  summary: Pulp 3 API Ruby Gem
218
218
  test_files:
219
- - spec/api/content_packages_api_spec.rb
220
- - spec/api/repositories_python_api_spec.rb
221
219
  - spec/api/publications_pypi_api_spec.rb
222
- - spec/api/distributions_pypi_api_spec.rb
223
- - spec/api/remotes_python_api_spec.rb
224
220
  - spec/api/repositories_python_versions_api_spec.rb
221
+ - spec/api/remotes_python_api_spec.rb
222
+ - spec/api/content_packages_api_spec.rb
223
+ - spec/api/distributions_pypi_api_spec.rb
224
+ - spec/api/repositories_python_api_spec.rb
225
225
  - spec/api_client_spec.rb
226
226
  - spec/configuration_spec.rb
227
- - spec/models/repository_sync_url_spec.rb
227
+ - spec/models/python_python_publication_spec.rb
228
+ - spec/models/patchedpython_python_distribution_spec.rb
228
229
  - spec/models/paginatedpython_python_package_content_response_list_spec.rb
229
- - spec/models/repository_version_response_spec.rb
230
- - spec/models/python_python_repository_response_spec.rb
231
- - spec/models/python_bander_remote_spec.rb
232
230
  - spec/models/paginatedpython_python_distribution_response_list_spec.rb
233
- - spec/models/paginatedpython_python_publication_response_list_spec.rb
234
- - spec/models/python_python_distribution_response_spec.rb
235
- - spec/models/python_python_publication_response_spec.rb
236
- - spec/models/patchedpython_python_repository_spec.rb
237
- - spec/models/python_python_remote_response_spec.rb
238
- - spec/models/patchedpython_python_distribution_spec.rb
239
- - spec/models/content_summary_response_spec.rb
240
- - spec/models/patchedpython_python_remote_spec.rb
241
- - spec/models/python_python_publication_spec.rb
242
231
  - spec/models/python_python_repository_spec.rb
243
- - spec/models/content_summary_spec.rb
232
+ - spec/models/python_bander_remote_spec.rb
244
233
  - spec/models/paginatedpython_python_remote_response_list_spec.rb
245
234
  - spec/models/python_python_distribution_spec.rb
246
- - spec/models/python_python_package_content_response_spec.rb
247
- - spec/models/repository_version_spec.rb
248
- - spec/models/exclude_platforms_enum_spec.rb
249
- - spec/models/python_python_package_content_spec.rb
250
- - spec/models/policy_enum_spec.rb
235
+ - spec/models/paginatedpython_python_publication_response_list_spec.rb
236
+ - spec/models/content_summary_spec.rb
237
+ - spec/models/content_summary_response_spec.rb
238
+ - spec/models/python_python_remote_response_spec.rb
251
239
  - spec/models/python_python_remote_spec.rb
252
- - spec/models/package_types_enum_spec.rb
253
- - spec/models/paginatedpython_python_repository_response_list_spec.rb
254
240
  - spec/models/repository_add_remove_content_spec.rb
255
- - spec/models/async_operation_response_spec.rb
241
+ - spec/models/exclude_platforms_enum_spec.rb
242
+ - spec/models/repository_version_spec.rb
243
+ - spec/models/paginatedpython_python_repository_response_list_spec.rb
244
+ - spec/models/python_python_repository_response_spec.rb
256
245
  - spec/models/paginated_repository_version_response_list_spec.rb
246
+ - spec/models/package_types_enum_spec.rb
247
+ - spec/models/repository_sync_url_spec.rb
248
+ - spec/models/repository_version_response_spec.rb
249
+ - spec/models/patchedpython_python_repository_spec.rb
250
+ - spec/models/patchedpython_python_remote_spec.rb
251
+ - spec/models/policy_enum_spec.rb
252
+ - spec/models/python_python_package_content_response_spec.rb
253
+ - spec/models/python_python_publication_response_spec.rb
254
+ - spec/models/python_python_package_content_spec.rb
255
+ - spec/models/async_operation_response_spec.rb
256
+ - spec/models/python_python_distribution_response_spec.rb
257
257
  - spec/spec_helper.rb