pulp_python_client 3.3.0.dev1619409199 → 3.3.0.dev1619927828

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: 6ddab4d582162925e59fdabd578ac7b7d8ddf869b4ebb8efc30cb7d08e8e1181
4
- data.tar.gz: a404cf360819bfbbb984806a2cd295a53f1d6da5937d3b2cd4c44d8e57bf4048
3
+ metadata.gz: 870c0ee7df9394a112e3198753f3aa55d25981016320547ad4f1344ab8e99ffc
4
+ data.tar.gz: 5016f415ce0fd203f72441cba5d27fe887c970b2c03812502328348af8df4fce
5
5
  SHA512:
6
- metadata.gz: bb3cc4ad6dfd3819dc3599520a475a2ece15a23587003bcb957a8aff0cea88c66b5e3158f9162b8f73f42c6e57511c5fd9b7c836902f3663e6791a51beadc84e
7
- data.tar.gz: afba6a7cea920a441a7c9f346aa669458f2c33ec7fa23c990ba3ded845c3b6c504ae3c8c4d13c963ddfffd0132ace4beecc8429d4d70f7331b29f39f74fd73b7
6
+ metadata.gz: 5aa6bcf8abb2c570d7455b6ec2fc21175a47d11e69ec185461c0fad3915d28aa6bb7f06793e1e1b837be2a5ca2ae503e300436b5dc51697db870d07fc017b9da
7
+ data.tar.gz: 73ecdcf53d0afa331a4f02204e3f579d4b64b02e6fcfd54dfc3bb6be0fa21d6dd06bc777cdf26a511662323e8349416dd29c7a0496a1d899bf66041d7175daf7
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.dev1619409199
10
+ - Package version: 3.3.0.dev1619927828
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.dev1619409199.gem
27
+ gem install ./pulp_python_client-3.3.0.dev1619927828.gem
28
28
  ```
29
29
 
30
- (for development, run `gem install --dev ./pulp_python_client-3.3.0.dev1619409199.gem` to install the development dependencies)
30
+ (for development, run `gem install --dev ./pulp_python_client-3.3.0.dev1619927828.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.dev1619409199'
36
+ gem 'pulp_python_client', '~> 3.3.0.dev1619927828'
37
37
 
38
38
  ### Install from Git
39
39
 
@@ -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
 
@@ -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
 
@@ -7,6 +7,7 @@ Name | Type | Description | Notes
7
7
  **pulp_href** | **String** | | [optional] [readonly]
8
8
  **pulp_created** | **DateTime** | Timestamp of creation. | [optional] [readonly]
9
9
  **number** | **Integer** | | [optional] [readonly]
10
+ **repository** | **String** | | [optional] [readonly]
10
11
  **base_version** | **String** | A repository version whose content was used as the initial set of content for this repository version | [optional]
11
12
  **content_summary** | [**ContentSummaryResponse**](ContentSummaryResponse.md) | Various count summaries of the content in the version and the HREF to view them. | [optional] [readonly]
12
13
 
@@ -18,6 +19,7 @@ require 'PulpPythonClient'
18
19
  instance = PulpPythonClient::RepositoryVersionResponse.new(pulp_href: null,
19
20
  pulp_created: null,
20
21
  number: null,
22
+ repository: null,
21
23
  base_version: null,
22
24
  content_summary: null)
23
25
  ```
@@ -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
@@ -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
@@ -22,6 +22,8 @@ module PulpPythonClient
22
22
 
23
23
  attr_accessor :number
24
24
 
25
+ attr_accessor :repository
26
+
25
27
  # A repository version whose content was used as the initial set of content for this repository version
26
28
  attr_accessor :base_version
27
29
 
@@ -34,6 +36,7 @@ module PulpPythonClient
34
36
  :'pulp_href' => :'pulp_href',
35
37
  :'pulp_created' => :'pulp_created',
36
38
  :'number' => :'number',
39
+ :'repository' => :'repository',
37
40
  :'base_version' => :'base_version',
38
41
  :'content_summary' => :'content_summary'
39
42
  }
@@ -45,6 +48,7 @@ module PulpPythonClient
45
48
  :'pulp_href' => :'String',
46
49
  :'pulp_created' => :'DateTime',
47
50
  :'number' => :'Integer',
51
+ :'repository' => :'String',
48
52
  :'base_version' => :'String',
49
53
  :'content_summary' => :'ContentSummaryResponse'
50
54
  }
@@ -83,6 +87,10 @@ module PulpPythonClient
83
87
  self.number = attributes[:'number']
84
88
  end
85
89
 
90
+ if attributes.key?(:'repository')
91
+ self.repository = attributes[:'repository']
92
+ end
93
+
86
94
  if attributes.key?(:'base_version')
87
95
  self.base_version = attributes[:'base_version']
88
96
  end
@@ -113,6 +121,7 @@ module PulpPythonClient
113
121
  pulp_href == o.pulp_href &&
114
122
  pulp_created == o.pulp_created &&
115
123
  number == o.number &&
124
+ repository == o.repository &&
116
125
  base_version == o.base_version &&
117
126
  content_summary == o.content_summary
118
127
  end
@@ -126,7 +135,7 @@ module PulpPythonClient
126
135
  # Calculates hash code according to all attributes.
127
136
  # @return [Integer] Hash code
128
137
  def hash
129
- [pulp_href, pulp_created, number, base_version, content_summary].hash
138
+ [pulp_href, pulp_created, number, repository, base_version, content_summary].hash
130
139
  end
131
140
 
132
141
  # 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.dev1619409199'
14
+ VERSION = '3.3.0.dev1619927828'
15
15
  end
@@ -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 '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
@@ -50,6 +50,12 @@ describe 'RepositoryVersionResponse' do
50
50
  end
51
51
  end
52
52
 
53
+ describe 'test attribute "repository"' 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 "base_version"' 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.dev1619409199
4
+ version: 3.3.0.dev1619927828
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-26 00:00:00.000000000 Z
11
+ date: 2021-05-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday