pulp_container_client 2.10.7 → 2.10.9

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f448c08af01a0fdb4e4e1417d5b9e489bd9af955a62db1ccb0bee69849699558
4
- data.tar.gz: 4de5346cb8a9ca2f46e0da29632b15c779f058935a9c301190abea19048898a3
3
+ metadata.gz: 70afb47f255078b371e787c5dc87a49660f947633ffc1312851b966d0124098e
4
+ data.tar.gz: d5f4214d2a8aec74e09c2ff25f40ec9d72a74ad0eb5da8358de8c9e990188591
5
5
  SHA512:
6
- metadata.gz: 3317cae2c5a67f4734587166e907d6485d8e8af5c7f0d697bec879149433bad6495abf793484a9c2c1976ed4de428af92f0891ce536aab129a84709e9dc9d0e7
7
- data.tar.gz: f9e792bf7256c2f6930bbed4c9ce803b8ebb8df992b6fe43c8c8b5be6f125fb96d5d0ec34c9c6311da27e977f1c9ba8a40efce62263420a2383908ca79fbe2fe
6
+ metadata.gz: d79caa85cfb44ded42839d6551e7ef686036df5d1c4c522d0e679071fd5bb411fad0f3a0d1f64631710b5daf40962d458321825adb4fc64a967bef7475cb09ff
7
+ data.tar.gz: 2103f99682df1c7113ada0f3b30b1dfc30c1b94993242011fb7eb41bc17d11b93076dd131d0701d19b23bab305c484f4f56954856dde81e57f1163d4e655206c
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: 2.10.7
10
+ - Package version: 2.10.9
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_container_client.gemspec
24
24
  Then either install the gem locally:
25
25
 
26
26
  ```shell
27
- gem install ./pulp_container_client-2.10.7.gem
27
+ gem install ./pulp_container_client-2.10.9.gem
28
28
  ```
29
29
 
30
- (for development, run `gem install --dev ./pulp_container_client-2.10.7.gem` to install the development dependencies)
30
+ (for development, run `gem install --dev ./pulp_container_client-2.10.9.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_container_client', '~> 2.10.7'
36
+ gem 'pulp_container_client', '~> 2.10.9'
37
37
 
38
38
  ### Install from Git
39
39
 
@@ -4,12 +4,12 @@
4
4
 
5
5
  Name | Type | Description | Notes
6
6
  ------------ | ------------- | ------------- | -------------
7
+ **pulp_created** | **DateTime** | Timestamp of creation. | [optional] [readonly]
7
8
  **pulp_href** | **String** | | [optional] [readonly]
8
9
  **base_path** | **String** | The base (relative) path component of the published url. Avoid paths that overlap with other distribution base paths (e.g. \"foo\" and \"foo/bar\") |
9
10
  **repository** | **String** | The latest RepositoryVersion for this Repository will be served. | [optional]
10
11
  **pulp_labels** | [**Object**](.md) | | [optional]
11
12
  **name** | **String** | A unique name. Ex, `rawhide` and `stable`. |
12
- **pulp_created** | **DateTime** | Timestamp of creation. | [optional] [readonly]
13
13
  **content_guard** | **String** | An optional content-guard. If none is specified, a default one will be used. | [optional]
14
14
  **repository_version** | **String** | RepositoryVersion to be served | [optional]
15
15
  **registry_path** | **String** | The Registry hostame/name/ to use with docker pull command defined by this distribution. | [optional] [readonly]
@@ -22,12 +22,12 @@ Name | Type | Description | Notes
22
22
  ```ruby
23
23
  require 'PulpContainerClient'
24
24
 
25
- instance = PulpContainerClient::ContainerContainerDistributionResponse.new(pulp_href: null,
25
+ instance = PulpContainerClient::ContainerContainerDistributionResponse.new(pulp_created: null,
26
+ pulp_href: null,
26
27
  base_path: null,
27
28
  repository: null,
28
29
  pulp_labels: null,
29
30
  name: null,
30
- pulp_created: null,
31
31
  content_guard: null,
32
32
  repository_version: null,
33
33
  registry_path: null,
@@ -4,20 +4,20 @@
4
4
 
5
5
  Name | Type | Description | Notes
6
6
  ------------ | ------------- | ------------- | -------------
7
- **retain_repo_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]
8
- **description** | **String** | An optional description. | [optional]
9
7
  **pulp_labels** | [**Object**](.md) | | [optional]
10
8
  **name** | **String** | A unique name for this repository. |
9
+ **description** | **String** | An optional description. | [optional]
10
+ **retain_repo_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]
11
11
 
12
12
  ## Code Sample
13
13
 
14
14
  ```ruby
15
15
  require 'PulpContainerClient'
16
16
 
17
- instance = PulpContainerClient::ContainerContainerPushRepository.new(retain_repo_versions: null,
17
+ instance = PulpContainerClient::ContainerContainerPushRepository.new(pulp_labels: null,
18
+ name: null,
18
19
  description: null,
19
- pulp_labels: null,
20
- name: null)
20
+ retain_repo_versions: null)
21
21
  ```
22
22
 
23
23
 
@@ -4,28 +4,28 @@
4
4
 
5
5
  Name | Type | Description | Notes
6
6
  ------------ | ------------- | ------------- | -------------
7
+ **pulp_created** | **DateTime** | Timestamp of creation. | [optional] [readonly]
7
8
  **pulp_href** | **String** | | [optional] [readonly]
9
+ **pulp_labels** | [**Object**](.md) | | [optional]
10
+ **name** | **String** | A unique name for this repository. |
11
+ **description** | **String** | An optional description. | [optional]
8
12
  **retain_repo_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]
9
13
  **versions_href** | **String** | | [optional] [readonly]
10
14
  **latest_version_href** | **String** | | [optional] [readonly]
11
- **description** | **String** | An optional description. | [optional]
12
- **pulp_labels** | [**Object**](.md) | | [optional]
13
- **name** | **String** | A unique name for this repository. |
14
- **pulp_created** | **DateTime** | Timestamp of creation. | [optional] [readonly]
15
15
 
16
16
  ## Code Sample
17
17
 
18
18
  ```ruby
19
19
  require 'PulpContainerClient'
20
20
 
21
- instance = PulpContainerClient::ContainerContainerPushRepositoryResponse.new(pulp_href: null,
22
- retain_repo_versions: null,
23
- versions_href: null,
24
- latest_version_href: null,
25
- description: null,
21
+ instance = PulpContainerClient::ContainerContainerPushRepositoryResponse.new(pulp_created: null,
22
+ pulp_href: null,
26
23
  pulp_labels: null,
27
24
  name: null,
28
- pulp_created: null)
25
+ description: null,
26
+ retain_repo_versions: null,
27
+ versions_href: null,
28
+ latest_version_href: null)
29
29
  ```
30
30
 
31
31
 
@@ -4,20 +4,20 @@
4
4
 
5
5
  Name | Type | Description | Notes
6
6
  ------------ | ------------- | ------------- | -------------
7
- **retain_repo_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]
8
- **description** | **String** | An optional description. | [optional]
9
7
  **pulp_labels** | [**Object**](.md) | | [optional]
10
8
  **name** | **String** | A unique name for this repository. | [optional]
9
+ **description** | **String** | An optional description. | [optional]
10
+ **retain_repo_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]
11
11
 
12
12
  ## Code Sample
13
13
 
14
14
  ```ruby
15
15
  require 'PulpContainerClient'
16
16
 
17
- instance = PulpContainerClient::PatchedcontainerContainerPushRepository.new(retain_repo_versions: null,
17
+ instance = PulpContainerClient::PatchedcontainerContainerPushRepository.new(pulp_labels: null,
18
+ name: null,
18
19
  description: null,
19
- pulp_labels: null,
20
- name: null)
20
+ retain_repo_versions: null)
21
21
  ```
22
22
 
23
23
 
@@ -15,6 +15,9 @@ require 'date'
15
15
  module PulpContainerClient
16
16
  # A serializer for ContainerDistribution.
17
17
  class ContainerContainerDistributionResponse
18
+ # Timestamp of creation.
19
+ attr_accessor :pulp_created
20
+
18
21
  attr_accessor :pulp_href
19
22
 
20
23
  # The base (relative) path component of the published url. Avoid paths that overlap with other distribution base paths (e.g. \"foo\" and \"foo/bar\")
@@ -28,9 +31,6 @@ module PulpContainerClient
28
31
  # A unique name. Ex, `rawhide` and `stable`.
29
32
  attr_accessor :name
30
33
 
31
- # Timestamp of creation.
32
- attr_accessor :pulp_created
33
-
34
34
  # An optional content-guard. If none is specified, a default one will be used.
35
35
  attr_accessor :content_guard
36
36
 
@@ -52,12 +52,12 @@ module PulpContainerClient
52
52
  # Attribute mapping from ruby-style variable name to JSON key.
53
53
  def self.attribute_map
54
54
  {
55
+ :'pulp_created' => :'pulp_created',
55
56
  :'pulp_href' => :'pulp_href',
56
57
  :'base_path' => :'base_path',
57
58
  :'repository' => :'repository',
58
59
  :'pulp_labels' => :'pulp_labels',
59
60
  :'name' => :'name',
60
- :'pulp_created' => :'pulp_created',
61
61
  :'content_guard' => :'content_guard',
62
62
  :'repository_version' => :'repository_version',
63
63
  :'registry_path' => :'registry_path',
@@ -70,12 +70,12 @@ module PulpContainerClient
70
70
  # Attribute type mapping.
71
71
  def self.openapi_types
72
72
  {
73
+ :'pulp_created' => :'DateTime',
73
74
  :'pulp_href' => :'String',
74
75
  :'base_path' => :'String',
75
76
  :'repository' => :'String',
76
77
  :'pulp_labels' => :'Object',
77
78
  :'name' => :'String',
78
- :'pulp_created' => :'DateTime',
79
79
  :'content_guard' => :'String',
80
80
  :'repository_version' => :'String',
81
81
  :'registry_path' => :'String',
@@ -109,6 +109,10 @@ module PulpContainerClient
109
109
  h[k.to_sym] = v
110
110
  }
111
111
 
112
+ if attributes.key?(:'pulp_created')
113
+ self.pulp_created = attributes[:'pulp_created']
114
+ end
115
+
112
116
  if attributes.key?(:'pulp_href')
113
117
  self.pulp_href = attributes[:'pulp_href']
114
118
  end
@@ -129,10 +133,6 @@ module PulpContainerClient
129
133
  self.name = attributes[:'name']
130
134
  end
131
135
 
132
- if attributes.key?(:'pulp_created')
133
- self.pulp_created = attributes[:'pulp_created']
134
- end
135
-
136
136
  if attributes.key?(:'content_guard')
137
137
  self.content_guard = attributes[:'content_guard']
138
138
  end
@@ -186,12 +186,12 @@ module PulpContainerClient
186
186
  def ==(o)
187
187
  return true if self.equal?(o)
188
188
  self.class == o.class &&
189
+ pulp_created == o.pulp_created &&
189
190
  pulp_href == o.pulp_href &&
190
191
  base_path == o.base_path &&
191
192
  repository == o.repository &&
192
193
  pulp_labels == o.pulp_labels &&
193
194
  name == o.name &&
194
- pulp_created == o.pulp_created &&
195
195
  content_guard == o.content_guard &&
196
196
  repository_version == o.repository_version &&
197
197
  registry_path == o.registry_path &&
@@ -209,7 +209,7 @@ module PulpContainerClient
209
209
  # Calculates hash code according to all attributes.
210
210
  # @return [Integer] Hash code
211
211
  def hash
212
- [pulp_href, base_path, repository, pulp_labels, name, pulp_created, content_guard, repository_version, registry_path, namespace, private, description].hash
212
+ [pulp_created, pulp_href, base_path, repository, pulp_labels, name, content_guard, repository_version, registry_path, namespace, private, description].hash
213
213
  end
214
214
 
215
215
  # Builds the object from hash
@@ -15,42 +15,42 @@ require 'date'
15
15
  module PulpContainerClient
16
16
  # Serializer for Container Push Repositories.
17
17
  class ContainerContainerPushRepository
18
- # 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.
19
- attr_accessor :retain_repo_versions
20
-
21
- # An optional description.
22
- attr_accessor :description
23
-
24
18
  attr_accessor :pulp_labels
25
19
 
26
20
  # A unique name for this repository.
27
21
  attr_accessor :name
28
22
 
23
+ # An optional description.
24
+ attr_accessor :description
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 :retain_repo_versions
28
+
29
29
  # Attribute mapping from ruby-style variable name to JSON key.
30
30
  def self.attribute_map
31
31
  {
32
- :'retain_repo_versions' => :'retain_repo_versions',
33
- :'description' => :'description',
34
32
  :'pulp_labels' => :'pulp_labels',
35
- :'name' => :'name'
33
+ :'name' => :'name',
34
+ :'description' => :'description',
35
+ :'retain_repo_versions' => :'retain_repo_versions'
36
36
  }
37
37
  end
38
38
 
39
39
  # Attribute type mapping.
40
40
  def self.openapi_types
41
41
  {
42
- :'retain_repo_versions' => :'Integer',
43
- :'description' => :'String',
44
42
  :'pulp_labels' => :'Object',
45
- :'name' => :'String'
43
+ :'name' => :'String',
44
+ :'description' => :'String',
45
+ :'retain_repo_versions' => :'Integer'
46
46
  }
47
47
  end
48
48
 
49
49
  # List of attributes with nullable: true
50
50
  def self.openapi_nullable
51
51
  Set.new([
52
- :'retain_repo_versions',
53
52
  :'description',
53
+ :'retain_repo_versions'
54
54
  ])
55
55
  end
56
56
 
@@ -69,14 +69,6 @@ module PulpContainerClient
69
69
  h[k.to_sym] = v
70
70
  }
71
71
 
72
- if attributes.key?(:'retain_repo_versions')
73
- self.retain_repo_versions = attributes[:'retain_repo_versions']
74
- end
75
-
76
- if attributes.key?(:'description')
77
- self.description = attributes[:'description']
78
- end
79
-
80
72
  if attributes.key?(:'pulp_labels')
81
73
  self.pulp_labels = attributes[:'pulp_labels']
82
74
  end
@@ -84,20 +76,20 @@ module PulpContainerClient
84
76
  if attributes.key?(:'name')
85
77
  self.name = attributes[:'name']
86
78
  end
79
+
80
+ if attributes.key?(:'description')
81
+ self.description = attributes[:'description']
82
+ end
83
+
84
+ if attributes.key?(:'retain_repo_versions')
85
+ self.retain_repo_versions = attributes[:'retain_repo_versions']
86
+ end
87
87
  end
88
88
 
89
89
  # Show invalid properties with the reasons. Usually used together with valid?
90
90
  # @return Array for valid properties with the reasons
91
91
  def list_invalid_properties
92
92
  invalid_properties = Array.new
93
- if !@retain_repo_versions.nil? && @retain_repo_versions < 1
94
- invalid_properties.push('invalid value for "retain_repo_versions", must be greater than or equal to 1.')
95
- end
96
-
97
- if !@description.nil? && @description.to_s.length < 1
98
- invalid_properties.push('invalid value for "description", the character length must be great than or equal to 1.')
99
- end
100
-
101
93
  if @name.nil?
102
94
  invalid_properties.push('invalid value for "name", name cannot be nil.')
103
95
  end
@@ -106,27 +98,39 @@ module PulpContainerClient
106
98
  invalid_properties.push('invalid value for "name", the character length must be great than or equal to 1.')
107
99
  end
108
100
 
101
+ if !@description.nil? && @description.to_s.length < 1
102
+ invalid_properties.push('invalid value for "description", the character length must be great than or equal to 1.')
103
+ end
104
+
105
+ if !@retain_repo_versions.nil? && @retain_repo_versions < 1
106
+ invalid_properties.push('invalid value for "retain_repo_versions", must be greater than or equal to 1.')
107
+ end
108
+
109
109
  invalid_properties
110
110
  end
111
111
 
112
112
  # Check to see if the all the properties in the model are valid
113
113
  # @return true if the model is valid
114
114
  def valid?
115
- return false if !@retain_repo_versions.nil? && @retain_repo_versions < 1
116
- return false if !@description.nil? && @description.to_s.length < 1
117
115
  return false if @name.nil?
118
116
  return false if @name.to_s.length < 1
117
+ return false if !@description.nil? && @description.to_s.length < 1
118
+ return false if !@retain_repo_versions.nil? && @retain_repo_versions < 1
119
119
  true
120
120
  end
121
121
 
122
122
  # Custom attribute writer method with validation
123
- # @param [Object] retain_repo_versions Value to be assigned
124
- def retain_repo_versions=(retain_repo_versions)
125
- if !retain_repo_versions.nil? && retain_repo_versions < 1
126
- fail ArgumentError, 'invalid value for "retain_repo_versions", must be greater than or equal to 1.'
123
+ # @param [Object] name Value to be assigned
124
+ def name=(name)
125
+ if name.nil?
126
+ fail ArgumentError, 'name cannot be nil'
127
127
  end
128
128
 
129
- @retain_repo_versions = retain_repo_versions
129
+ if name.to_s.length < 1
130
+ fail ArgumentError, 'invalid value for "name", the character length must be great than or equal to 1.'
131
+ end
132
+
133
+ @name = name
130
134
  end
131
135
 
132
136
  # Custom attribute writer method with validation
@@ -140,17 +144,13 @@ module PulpContainerClient
140
144
  end
141
145
 
142
146
  # Custom attribute writer method with validation
143
- # @param [Object] name Value to be assigned
144
- def name=(name)
145
- if name.nil?
146
- fail ArgumentError, 'name cannot be nil'
147
- end
148
-
149
- if name.to_s.length < 1
150
- fail ArgumentError, 'invalid value for "name", the character length must be great than or equal to 1.'
147
+ # @param [Object] retain_repo_versions Value to be assigned
148
+ def retain_repo_versions=(retain_repo_versions)
149
+ if !retain_repo_versions.nil? && retain_repo_versions < 1
150
+ fail ArgumentError, 'invalid value for "retain_repo_versions", must be greater than or equal to 1.'
151
151
  end
152
152
 
153
- @name = name
153
+ @retain_repo_versions = retain_repo_versions
154
154
  end
155
155
 
156
156
  # Checks equality by comparing each attribute.
@@ -158,10 +158,10 @@ module PulpContainerClient
158
158
  def ==(o)
159
159
  return true if self.equal?(o)
160
160
  self.class == o.class &&
161
- retain_repo_versions == o.retain_repo_versions &&
162
- description == o.description &&
163
161
  pulp_labels == o.pulp_labels &&
164
- name == o.name
162
+ name == o.name &&
163
+ description == o.description &&
164
+ retain_repo_versions == o.retain_repo_versions
165
165
  end
166
166
 
167
167
  # @see the `==` method
@@ -173,7 +173,7 @@ module PulpContainerClient
173
173
  # Calculates hash code according to all attributes.
174
174
  # @return [Integer] Hash code
175
175
  def hash
176
- [retain_repo_versions, description, pulp_labels, name].hash
176
+ [pulp_labels, name, description, retain_repo_versions].hash
177
177
  end
178
178
 
179
179
  # Builds the object from hash
@@ -15,59 +15,59 @@ require 'date'
15
15
  module PulpContainerClient
16
16
  # Serializer for Container Push Repositories.
17
17
  class ContainerContainerPushRepositoryResponse
18
- attr_accessor :pulp_href
18
+ # Timestamp of creation.
19
+ attr_accessor :pulp_created
19
20
 
20
- # 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.
21
- attr_accessor :retain_repo_versions
21
+ attr_accessor :pulp_href
22
22
 
23
- attr_accessor :versions_href
23
+ attr_accessor :pulp_labels
24
24
 
25
- attr_accessor :latest_version_href
25
+ # A unique name for this repository.
26
+ attr_accessor :name
26
27
 
27
28
  # An optional description.
28
29
  attr_accessor :description
29
30
 
30
- attr_accessor :pulp_labels
31
+ # 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.
32
+ attr_accessor :retain_repo_versions
31
33
 
32
- # A unique name for this repository.
33
- attr_accessor :name
34
+ attr_accessor :versions_href
34
35
 
35
- # Timestamp of creation.
36
- attr_accessor :pulp_created
36
+ attr_accessor :latest_version_href
37
37
 
38
38
  # Attribute mapping from ruby-style variable name to JSON key.
39
39
  def self.attribute_map
40
40
  {
41
+ :'pulp_created' => :'pulp_created',
41
42
  :'pulp_href' => :'pulp_href',
42
- :'retain_repo_versions' => :'retain_repo_versions',
43
- :'versions_href' => :'versions_href',
44
- :'latest_version_href' => :'latest_version_href',
45
- :'description' => :'description',
46
43
  :'pulp_labels' => :'pulp_labels',
47
44
  :'name' => :'name',
48
- :'pulp_created' => :'pulp_created'
45
+ :'description' => :'description',
46
+ :'retain_repo_versions' => :'retain_repo_versions',
47
+ :'versions_href' => :'versions_href',
48
+ :'latest_version_href' => :'latest_version_href'
49
49
  }
50
50
  end
51
51
 
52
52
  # Attribute type mapping.
53
53
  def self.openapi_types
54
54
  {
55
+ :'pulp_created' => :'DateTime',
55
56
  :'pulp_href' => :'String',
56
- :'retain_repo_versions' => :'Integer',
57
- :'versions_href' => :'String',
58
- :'latest_version_href' => :'String',
59
- :'description' => :'String',
60
57
  :'pulp_labels' => :'Object',
61
58
  :'name' => :'String',
62
- :'pulp_created' => :'DateTime'
59
+ :'description' => :'String',
60
+ :'retain_repo_versions' => :'Integer',
61
+ :'versions_href' => :'String',
62
+ :'latest_version_href' => :'String'
63
63
  }
64
64
  end
65
65
 
66
66
  # List of attributes with nullable: true
67
67
  def self.openapi_nullable
68
68
  Set.new([
69
- :'retain_repo_versions',
70
69
  :'description',
70
+ :'retain_repo_versions',
71
71
  ])
72
72
  end
73
73
 
@@ -86,36 +86,36 @@ module PulpContainerClient
86
86
  h[k.to_sym] = v
87
87
  }
88
88
 
89
- if attributes.key?(:'pulp_href')
90
- self.pulp_href = attributes[:'pulp_href']
89
+ if attributes.key?(:'pulp_created')
90
+ self.pulp_created = attributes[:'pulp_created']
91
91
  end
92
92
 
93
- if attributes.key?(:'retain_repo_versions')
94
- self.retain_repo_versions = attributes[:'retain_repo_versions']
93
+ if attributes.key?(:'pulp_href')
94
+ self.pulp_href = attributes[:'pulp_href']
95
95
  end
96
96
 
97
- if attributes.key?(:'versions_href')
98
- self.versions_href = attributes[:'versions_href']
97
+ if attributes.key?(:'pulp_labels')
98
+ self.pulp_labels = attributes[:'pulp_labels']
99
99
  end
100
100
 
101
- if attributes.key?(:'latest_version_href')
102
- self.latest_version_href = attributes[:'latest_version_href']
101
+ if attributes.key?(:'name')
102
+ self.name = attributes[:'name']
103
103
  end
104
104
 
105
105
  if attributes.key?(:'description')
106
106
  self.description = attributes[:'description']
107
107
  end
108
108
 
109
- if attributes.key?(:'pulp_labels')
110
- self.pulp_labels = attributes[:'pulp_labels']
109
+ if attributes.key?(:'retain_repo_versions')
110
+ self.retain_repo_versions = attributes[:'retain_repo_versions']
111
111
  end
112
112
 
113
- if attributes.key?(:'name')
114
- self.name = attributes[:'name']
113
+ if attributes.key?(:'versions_href')
114
+ self.versions_href = attributes[:'versions_href']
115
115
  end
116
116
 
117
- if attributes.key?(:'pulp_created')
118
- self.pulp_created = attributes[:'pulp_created']
117
+ if attributes.key?(:'latest_version_href')
118
+ self.latest_version_href = attributes[:'latest_version_href']
119
119
  end
120
120
  end
121
121
 
@@ -123,22 +123,22 @@ module PulpContainerClient
123
123
  # @return Array for valid properties with the reasons
124
124
  def list_invalid_properties
125
125
  invalid_properties = Array.new
126
- if !@retain_repo_versions.nil? && @retain_repo_versions < 1
127
- invalid_properties.push('invalid value for "retain_repo_versions", must be greater than or equal to 1.')
128
- end
129
-
130
126
  if @name.nil?
131
127
  invalid_properties.push('invalid value for "name", name cannot be nil.')
132
128
  end
133
129
 
130
+ if !@retain_repo_versions.nil? && @retain_repo_versions < 1
131
+ invalid_properties.push('invalid value for "retain_repo_versions", must be greater than or equal to 1.')
132
+ end
133
+
134
134
  invalid_properties
135
135
  end
136
136
 
137
137
  # Check to see if the all the properties in the model are valid
138
138
  # @return true if the model is valid
139
139
  def valid?
140
- return false if !@retain_repo_versions.nil? && @retain_repo_versions < 1
141
140
  return false if @name.nil?
141
+ return false if !@retain_repo_versions.nil? && @retain_repo_versions < 1
142
142
  true
143
143
  end
144
144
 
@@ -157,14 +157,14 @@ module PulpContainerClient
157
157
  def ==(o)
158
158
  return true if self.equal?(o)
159
159
  self.class == o.class &&
160
+ pulp_created == o.pulp_created &&
160
161
  pulp_href == o.pulp_href &&
161
- retain_repo_versions == o.retain_repo_versions &&
162
- versions_href == o.versions_href &&
163
- latest_version_href == o.latest_version_href &&
164
- description == o.description &&
165
162
  pulp_labels == o.pulp_labels &&
166
163
  name == o.name &&
167
- pulp_created == o.pulp_created
164
+ description == o.description &&
165
+ retain_repo_versions == o.retain_repo_versions &&
166
+ versions_href == o.versions_href &&
167
+ latest_version_href == o.latest_version_href
168
168
  end
169
169
 
170
170
  # @see the `==` method
@@ -176,7 +176,7 @@ module PulpContainerClient
176
176
  # Calculates hash code according to all attributes.
177
177
  # @return [Integer] Hash code
178
178
  def hash
179
- [pulp_href, retain_repo_versions, versions_href, latest_version_href, description, pulp_labels, name, pulp_created].hash
179
+ [pulp_created, pulp_href, pulp_labels, name, description, retain_repo_versions, versions_href, latest_version_href].hash
180
180
  end
181
181
 
182
182
  # Builds the object from hash
@@ -15,42 +15,42 @@ require 'date'
15
15
  module PulpContainerClient
16
16
  # Serializer for Container Push Repositories.
17
17
  class PatchedcontainerContainerPushRepository
18
- # 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.
19
- attr_accessor :retain_repo_versions
20
-
21
- # An optional description.
22
- attr_accessor :description
23
-
24
18
  attr_accessor :pulp_labels
25
19
 
26
20
  # A unique name for this repository.
27
21
  attr_accessor :name
28
22
 
23
+ # An optional description.
24
+ attr_accessor :description
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 :retain_repo_versions
28
+
29
29
  # Attribute mapping from ruby-style variable name to JSON key.
30
30
  def self.attribute_map
31
31
  {
32
- :'retain_repo_versions' => :'retain_repo_versions',
33
- :'description' => :'description',
34
32
  :'pulp_labels' => :'pulp_labels',
35
- :'name' => :'name'
33
+ :'name' => :'name',
34
+ :'description' => :'description',
35
+ :'retain_repo_versions' => :'retain_repo_versions'
36
36
  }
37
37
  end
38
38
 
39
39
  # Attribute type mapping.
40
40
  def self.openapi_types
41
41
  {
42
- :'retain_repo_versions' => :'Integer',
43
- :'description' => :'String',
44
42
  :'pulp_labels' => :'Object',
45
- :'name' => :'String'
43
+ :'name' => :'String',
44
+ :'description' => :'String',
45
+ :'retain_repo_versions' => :'Integer'
46
46
  }
47
47
  end
48
48
 
49
49
  # List of attributes with nullable: true
50
50
  def self.openapi_nullable
51
51
  Set.new([
52
- :'retain_repo_versions',
53
52
  :'description',
53
+ :'retain_repo_versions'
54
54
  ])
55
55
  end
56
56
 
@@ -69,14 +69,6 @@ module PulpContainerClient
69
69
  h[k.to_sym] = v
70
70
  }
71
71
 
72
- if attributes.key?(:'retain_repo_versions')
73
- self.retain_repo_versions = attributes[:'retain_repo_versions']
74
- end
75
-
76
- if attributes.key?(:'description')
77
- self.description = attributes[:'description']
78
- end
79
-
80
72
  if attributes.key?(:'pulp_labels')
81
73
  self.pulp_labels = attributes[:'pulp_labels']
82
74
  end
@@ -84,22 +76,30 @@ module PulpContainerClient
84
76
  if attributes.key?(:'name')
85
77
  self.name = attributes[:'name']
86
78
  end
79
+
80
+ if attributes.key?(:'description')
81
+ self.description = attributes[:'description']
82
+ end
83
+
84
+ if attributes.key?(:'retain_repo_versions')
85
+ self.retain_repo_versions = attributes[:'retain_repo_versions']
86
+ end
87
87
  end
88
88
 
89
89
  # Show invalid properties with the reasons. Usually used together with valid?
90
90
  # @return Array for valid properties with the reasons
91
91
  def list_invalid_properties
92
92
  invalid_properties = Array.new
93
- if !@retain_repo_versions.nil? && @retain_repo_versions < 1
94
- invalid_properties.push('invalid value for "retain_repo_versions", must be greater than or equal to 1.')
93
+ if !@name.nil? && @name.to_s.length < 1
94
+ invalid_properties.push('invalid value for "name", the character length must be great than or equal to 1.')
95
95
  end
96
96
 
97
97
  if !@description.nil? && @description.to_s.length < 1
98
98
  invalid_properties.push('invalid value for "description", the character length must be great than or equal to 1.')
99
99
  end
100
100
 
101
- if !@name.nil? && @name.to_s.length < 1
102
- invalid_properties.push('invalid value for "name", the character length must be great than or equal to 1.')
101
+ if !@retain_repo_versions.nil? && @retain_repo_versions < 1
102
+ invalid_properties.push('invalid value for "retain_repo_versions", must be greater than or equal to 1.')
103
103
  end
104
104
 
105
105
  invalid_properties
@@ -108,20 +108,20 @@ module PulpContainerClient
108
108
  # Check to see if the all the properties in the model are valid
109
109
  # @return true if the model is valid
110
110
  def valid?
111
- return false if !@retain_repo_versions.nil? && @retain_repo_versions < 1
112
- return false if !@description.nil? && @description.to_s.length < 1
113
111
  return false if !@name.nil? && @name.to_s.length < 1
112
+ return false if !@description.nil? && @description.to_s.length < 1
113
+ return false if !@retain_repo_versions.nil? && @retain_repo_versions < 1
114
114
  true
115
115
  end
116
116
 
117
117
  # Custom attribute writer method with validation
118
- # @param [Object] retain_repo_versions Value to be assigned
119
- def retain_repo_versions=(retain_repo_versions)
120
- if !retain_repo_versions.nil? && retain_repo_versions < 1
121
- fail ArgumentError, 'invalid value for "retain_repo_versions", must be greater than or equal to 1.'
118
+ # @param [Object] name Value to be assigned
119
+ def name=(name)
120
+ if !name.nil? && name.to_s.length < 1
121
+ fail ArgumentError, 'invalid value for "name", the character length must be great than or equal to 1.'
122
122
  end
123
123
 
124
- @retain_repo_versions = retain_repo_versions
124
+ @name = name
125
125
  end
126
126
 
127
127
  # Custom attribute writer method with validation
@@ -135,13 +135,13 @@ module PulpContainerClient
135
135
  end
136
136
 
137
137
  # Custom attribute writer method with validation
138
- # @param [Object] name Value to be assigned
139
- def name=(name)
140
- if !name.nil? && name.to_s.length < 1
141
- fail ArgumentError, 'invalid value for "name", the character length must be great than or equal to 1.'
138
+ # @param [Object] retain_repo_versions Value to be assigned
139
+ def retain_repo_versions=(retain_repo_versions)
140
+ if !retain_repo_versions.nil? && retain_repo_versions < 1
141
+ fail ArgumentError, 'invalid value for "retain_repo_versions", must be greater than or equal to 1.'
142
142
  end
143
143
 
144
- @name = name
144
+ @retain_repo_versions = retain_repo_versions
145
145
  end
146
146
 
147
147
  # Checks equality by comparing each attribute.
@@ -149,10 +149,10 @@ module PulpContainerClient
149
149
  def ==(o)
150
150
  return true if self.equal?(o)
151
151
  self.class == o.class &&
152
- retain_repo_versions == o.retain_repo_versions &&
153
- description == o.description &&
154
152
  pulp_labels == o.pulp_labels &&
155
- name == o.name
153
+ name == o.name &&
154
+ description == o.description &&
155
+ retain_repo_versions == o.retain_repo_versions
156
156
  end
157
157
 
158
158
  # @see the `==` method
@@ -164,7 +164,7 @@ module PulpContainerClient
164
164
  # Calculates hash code according to all attributes.
165
165
  # @return [Integer] Hash code
166
166
  def hash
167
- [retain_repo_versions, description, pulp_labels, name].hash
167
+ [pulp_labels, name, description, retain_repo_versions].hash
168
168
  end
169
169
 
170
170
  # Builds the object from hash
@@ -11,5 +11,5 @@ OpenAPI Generator version: 4.3.1
11
11
  =end
12
12
 
13
13
  module PulpContainerClient
14
- VERSION = '2.10.7'
14
+ VERSION = '2.10.9'
15
15
  end
@@ -32,37 +32,37 @@ describe 'ContainerContainerDistributionResponse' do
32
32
  expect(@instance).to be_instance_of(PulpContainerClient::ContainerContainerDistributionResponse)
33
33
  end
34
34
  end
35
- describe 'test attribute "pulp_href"' do
35
+ describe 'test attribute "pulp_created"' do
36
36
  it 'should work' do
37
37
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
38
38
  end
39
39
  end
40
40
 
41
- describe 'test attribute "base_path"' do
41
+ describe 'test attribute "pulp_href"' do
42
42
  it 'should work' do
43
43
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
44
44
  end
45
45
  end
46
46
 
47
- describe 'test attribute "repository"' do
47
+ describe 'test attribute "base_path"' do
48
48
  it 'should work' do
49
49
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
50
50
  end
51
51
  end
52
52
 
53
- describe 'test attribute "pulp_labels"' do
53
+ describe 'test attribute "repository"' do
54
54
  it 'should work' do
55
55
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
56
56
  end
57
57
  end
58
58
 
59
- describe 'test attribute "name"' do
59
+ describe 'test attribute "pulp_labels"' do
60
60
  it 'should work' do
61
61
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
62
62
  end
63
63
  end
64
64
 
65
- describe 'test attribute "pulp_created"' do
65
+ describe 'test attribute "name"' do
66
66
  it 'should work' do
67
67
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
68
68
  end
@@ -32,25 +32,25 @@ describe 'ContainerContainerPushRepositoryResponse' do
32
32
  expect(@instance).to be_instance_of(PulpContainerClient::ContainerContainerPushRepositoryResponse)
33
33
  end
34
34
  end
35
- describe 'test attribute "pulp_href"' do
35
+ describe 'test attribute "pulp_created"' do
36
36
  it 'should work' do
37
37
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
38
38
  end
39
39
  end
40
40
 
41
- describe 'test attribute "retain_repo_versions"' do
41
+ describe 'test attribute "pulp_href"' do
42
42
  it 'should work' do
43
43
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
44
44
  end
45
45
  end
46
46
 
47
- describe 'test attribute "versions_href"' do
47
+ describe 'test attribute "pulp_labels"' do
48
48
  it 'should work' do
49
49
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
50
50
  end
51
51
  end
52
52
 
53
- describe 'test attribute "latest_version_href"' do
53
+ describe 'test attribute "name"' do
54
54
  it 'should work' do
55
55
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
56
56
  end
@@ -62,19 +62,19 @@ describe 'ContainerContainerPushRepositoryResponse' do
62
62
  end
63
63
  end
64
64
 
65
- describe 'test attribute "pulp_labels"' do
65
+ describe 'test attribute "retain_repo_versions"' do
66
66
  it 'should work' do
67
67
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
68
68
  end
69
69
  end
70
70
 
71
- describe 'test attribute "name"' do
71
+ describe 'test attribute "versions_href"' do
72
72
  it 'should work' do
73
73
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
74
74
  end
75
75
  end
76
76
 
77
- describe 'test attribute "pulp_created"' do
77
+ describe 'test attribute "latest_version_href"' do
78
78
  it 'should work' do
79
79
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
80
80
  end
@@ -32,25 +32,25 @@ describe 'ContainerContainerPushRepository' do
32
32
  expect(@instance).to be_instance_of(PulpContainerClient::ContainerContainerPushRepository)
33
33
  end
34
34
  end
35
- describe 'test attribute "retain_repo_versions"' do
35
+ describe 'test attribute "pulp_labels"' do
36
36
  it 'should work' do
37
37
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
38
38
  end
39
39
  end
40
40
 
41
- describe 'test attribute "description"' do
41
+ describe 'test attribute "name"' do
42
42
  it 'should work' do
43
43
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
44
44
  end
45
45
  end
46
46
 
47
- describe 'test attribute "pulp_labels"' do
47
+ describe 'test attribute "description"' do
48
48
  it 'should work' do
49
49
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
50
50
  end
51
51
  end
52
52
 
53
- describe 'test attribute "name"' do
53
+ describe 'test attribute "retain_repo_versions"' do
54
54
  it 'should work' do
55
55
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
56
56
  end
@@ -32,25 +32,25 @@ describe 'PatchedcontainerContainerPushRepository' do
32
32
  expect(@instance).to be_instance_of(PulpContainerClient::PatchedcontainerContainerPushRepository)
33
33
  end
34
34
  end
35
- describe 'test attribute "retain_repo_versions"' do
35
+ describe 'test attribute "pulp_labels"' do
36
36
  it 'should work' do
37
37
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
38
38
  end
39
39
  end
40
40
 
41
- describe 'test attribute "description"' do
41
+ describe 'test attribute "name"' do
42
42
  it 'should work' do
43
43
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
44
44
  end
45
45
  end
46
46
 
47
- describe 'test attribute "pulp_labels"' do
47
+ describe 'test attribute "description"' do
48
48
  it 'should work' do
49
49
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
50
50
  end
51
51
  end
52
52
 
53
- describe 'test attribute "name"' do
53
+ describe 'test attribute "retain_repo_versions"' do
54
54
  it 'should work' do
55
55
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
56
56
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pulp_container_client
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.10.7
4
+ version: 2.10.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - OpenAPI-Generator
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-08-16 00:00:00.000000000 Z
11
+ date: 2022-09-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday