pulp_container_client 2.15.0.dev1674097709 → 2.15.0.dev1674270360

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.

Potentially problematic release.


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

checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: fb1efe4f44cf611fbe9344fd349c6f3dde41cd1ff8b72a8a69ede8bbf9682c74
4
- data.tar.gz: 9ae2954155eb21760e546acd200a590f5cc634d837f40109da367fb9742b9d09
3
+ metadata.gz: 28572ee808819f04b1d88a2fd4ba80a7c8d4db79508fa52014be6f29c4ee3214
4
+ data.tar.gz: ab3b8829f20c9bbd6698862cd13be642aea1d40bbe2fbf045eeaa3ff567f917d
5
5
  SHA512:
6
- metadata.gz: 9c46e294385ef7470360750be17f2489bbdff65fcd215aad85ce9188611d055d844e0cbc22232d0a4cb72960360dea7a8c0b96a81a15082b124692657248d6db
7
- data.tar.gz: d30cdf2b7b81f8383cc08176581bd748d19fd619a5475313e1ecfda6406ca1c464a69b857c1df679c41d520e1345e4065a389936949e64b98ea179d7a3456d0e
6
+ metadata.gz: e788499554f98dcb418e3d8d8ae82f4af115b785c95da58fb5daa73da7162ff8dee6d4c2ed7ca6e9560a1884ccbee040950e30b8713ea325879f5bf7cb2274d3
7
+ data.tar.gz: 1fbdd6435d8c691729a445e0c04e3cd4d4269da25c4ad538aada60d90e6000ab332364f8ddf360360cf711ff2a936c3eba33a4c8325b8b147c802e17f4177f86
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.15.0.dev1674097709
10
+ - Package version: 2.15.0.dev1674270360
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.15.0.dev1674097709.gem
27
+ gem install ./pulp_container_client-2.15.0.dev1674270360.gem
28
28
  ```
29
29
 
30
- (for development, run `gem install --dev ./pulp_container_client-2.15.0.dev1674097709.gem` to install the development dependencies)
30
+ (for development, run `gem install --dev ./pulp_container_client-2.15.0.dev1674270360.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.15.0.dev1674097709'
36
+ gem 'pulp_container_client', '~> 2.15.0.dev1674270360'
37
37
 
38
38
  ### Install from Git
39
39
 
@@ -4,11 +4,11 @@
4
4
 
5
5
  Name | Type | Description | Notes
6
6
  ------------ | ------------- | ------------- | -------------
7
+ **pulp_labels** | **Hash<String, String>** | | [optional]
7
8
  **name** | **String** | A unique name. Ex, `rawhide` and `stable`. |
9
+ **repository** | **String** | The latest RepositoryVersion for this Repository will be served. | [optional]
8
10
  **content_guard** | **String** | An optional content-guard. If none is specified, a default one will be used. | [optional]
9
11
  **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\") |
10
- **pulp_labels** | **Hash<String, String>** | | [optional]
11
- **repository** | **String** | The latest RepositoryVersion for this Repository will be served. | [optional]
12
12
  **repository_version** | **String** | RepositoryVersion to be served | [optional]
13
13
  **private** | **Boolean** | Restrict pull access to explicitly authorized users. Defaults to unrestricted pull access. | [optional]
14
14
  **description** | **String** | An optional description. | [optional]
@@ -18,11 +18,11 @@ Name | Type | Description | Notes
18
18
  ```ruby
19
19
  require 'PulpContainerClient'
20
20
 
21
- instance = PulpContainerClient::ContainerContainerDistribution.new(name: null,
21
+ instance = PulpContainerClient::ContainerContainerDistribution.new(pulp_labels: null,
22
+ name: null,
23
+ repository: null,
22
24
  content_guard: null,
23
25
  base_path: null,
24
- pulp_labels: null,
25
- repository: null,
26
26
  repository_version: null,
27
27
  private: null,
28
28
  description: null)
@@ -4,13 +4,13 @@
4
4
 
5
5
  Name | Type | Description | Notes
6
6
  ------------ | ------------- | ------------- | -------------
7
- **name** | **String** | A unique name. Ex, `rawhide` and `stable`. |
8
- **content_guard** | **String** | An optional content-guard. If none is specified, a default one will be used. | [optional]
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\") |
7
+ **pulp_created** | **DateTime** | Timestamp of creation. | [optional] [readonly]
10
8
  **pulp_labels** | **Hash<String, String>** | | [optional]
9
+ **name** | **String** | A unique name. Ex, `rawhide` and `stable`. |
11
10
  **pulp_href** | **String** | | [optional] [readonly]
12
- **pulp_created** | **DateTime** | Timestamp of creation. | [optional] [readonly]
13
11
  **repository** | **String** | The latest RepositoryVersion for this Repository will be served. | [optional]
12
+ **content_guard** | **String** | An optional content-guard. If none is specified, a default one will be used. | [optional]
13
+ **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\") |
14
14
  **repository_version** | **String** | RepositoryVersion to be served | [optional]
15
15
  **registry_path** | **String** | The Registry hostname/name/ to use with docker pull command defined by this distribution. | [optional] [readonly]
16
16
  **namespace** | **String** | Namespace this distribution belongs to. | [optional] [readonly]
@@ -22,13 +22,13 @@ Name | Type | Description | Notes
22
22
  ```ruby
23
23
  require 'PulpContainerClient'
24
24
 
25
- instance = PulpContainerClient::ContainerContainerDistributionResponse.new(name: null,
26
- content_guard: null,
27
- base_path: null,
25
+ instance = PulpContainerClient::ContainerContainerDistributionResponse.new(pulp_created: null,
28
26
  pulp_labels: null,
27
+ name: null,
29
28
  pulp_href: null,
30
- pulp_created: null,
31
29
  repository: null,
30
+ content_guard: null,
31
+ base_path: null,
32
32
  repository_version: null,
33
33
  registry_path: null,
34
34
  namespace: null,
@@ -4,22 +4,22 @@
4
4
 
5
5
  Name | Type | Description | Notes
6
6
  ------------ | ------------- | ------------- | -------------
7
+ **pulp_labels** | **Hash<String, String>** | | [optional]
7
8
  **name** | **String** | A unique name for this repository. |
8
9
  **description** | **String** | An optional description. | [optional]
9
- **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]
10
- **pulp_labels** | **Hash<String, String>** | | [optional]
11
10
  **manifest_signing_service** | **String** | A reference to an associated signing service. | [optional]
11
+ **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]
12
12
 
13
13
  ## Code Sample
14
14
 
15
15
  ```ruby
16
16
  require 'PulpContainerClient'
17
17
 
18
- instance = PulpContainerClient::ContainerContainerPushRepository.new(name: null,
18
+ instance = PulpContainerClient::ContainerContainerPushRepository.new(pulp_labels: null,
19
+ name: null,
19
20
  description: null,
20
- retain_repo_versions: null,
21
- pulp_labels: null,
22
- manifest_signing_service: null)
21
+ manifest_signing_service: null,
22
+ retain_repo_versions: null)
23
23
  ```
24
24
 
25
25
 
@@ -4,30 +4,30 @@
4
4
 
5
5
  Name | Type | Description | Notes
6
6
  ------------ | ------------- | ------------- | -------------
7
+ **pulp_labels** | **Hash<String, String>** | | [optional]
7
8
  **name** | **String** | A unique name for this repository. |
8
- **description** | **String** | An optional description. | [optional]
9
9
  **latest_version_href** | **String** | | [optional] [readonly]
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
- **pulp_labels** | **Hash<String, String>** | | [optional]
12
- **pulp_href** | **String** | | [optional] [readonly]
10
+ **description** | **String** | An optional description. | [optional]
13
11
  **manifest_signing_service** | **String** | A reference to an associated signing service. | [optional]
14
- **versions_href** | **String** | | [optional] [readonly]
12
+ **pulp_href** | **String** | | [optional] [readonly]
15
13
  **pulp_created** | **DateTime** | Timestamp of creation. | [optional] [readonly]
14
+ **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]
15
+ **versions_href** | **String** | | [optional] [readonly]
16
16
 
17
17
  ## Code Sample
18
18
 
19
19
  ```ruby
20
20
  require 'PulpContainerClient'
21
21
 
22
- instance = PulpContainerClient::ContainerContainerPushRepositoryResponse.new(name: null,
23
- description: null,
22
+ instance = PulpContainerClient::ContainerContainerPushRepositoryResponse.new(pulp_labels: null,
23
+ name: null,
24
24
  latest_version_href: null,
25
- retain_repo_versions: null,
26
- pulp_labels: null,
27
- pulp_href: null,
25
+ description: null,
28
26
  manifest_signing_service: null,
29
- versions_href: null,
30
- pulp_created: null)
27
+ pulp_href: null,
28
+ pulp_created: null,
29
+ retain_repo_versions: null,
30
+ versions_href: null)
31
31
  ```
32
32
 
33
33
 
@@ -4,11 +4,11 @@
4
4
 
5
5
  Name | Type | Description | Notes
6
6
  ------------ | ------------- | ------------- | -------------
7
+ **pulp_labels** | **Hash<String, String>** | | [optional]
7
8
  **name** | **String** | A unique name. Ex, `rawhide` and `stable`. | [optional]
9
+ **repository** | **String** | The latest RepositoryVersion for this Repository will be served. | [optional]
8
10
  **content_guard** | **String** | An optional content-guard. If none is specified, a default one will be used. | [optional]
9
11
  **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\") | [optional]
10
- **pulp_labels** | **Hash<String, String>** | | [optional]
11
- **repository** | **String** | The latest RepositoryVersion for this Repository will be served. | [optional]
12
12
  **repository_version** | **String** | RepositoryVersion to be served | [optional]
13
13
  **private** | **Boolean** | Restrict pull access to explicitly authorized users. Defaults to unrestricted pull access. | [optional]
14
14
  **description** | **String** | An optional description. | [optional]
@@ -18,11 +18,11 @@ Name | Type | Description | Notes
18
18
  ```ruby
19
19
  require 'PulpContainerClient'
20
20
 
21
- instance = PulpContainerClient::PatchedcontainerContainerDistribution.new(name: null,
21
+ instance = PulpContainerClient::PatchedcontainerContainerDistribution.new(pulp_labels: null,
22
+ name: null,
23
+ repository: null,
22
24
  content_guard: null,
23
25
  base_path: null,
24
- pulp_labels: null,
25
- repository: null,
26
26
  repository_version: null,
27
27
  private: null,
28
28
  description: null)
@@ -4,22 +4,22 @@
4
4
 
5
5
  Name | Type | Description | Notes
6
6
  ------------ | ------------- | ------------- | -------------
7
+ **pulp_labels** | **Hash<String, String>** | | [optional]
7
8
  **name** | **String** | A unique name for this repository. | [optional]
8
9
  **description** | **String** | An optional description. | [optional]
9
- **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]
10
- **pulp_labels** | **Hash<String, String>** | | [optional]
11
10
  **manifest_signing_service** | **String** | A reference to an associated signing service. | [optional]
11
+ **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]
12
12
 
13
13
  ## Code Sample
14
14
 
15
15
  ```ruby
16
16
  require 'PulpContainerClient'
17
17
 
18
- instance = PulpContainerClient::PatchedcontainerContainerPushRepository.new(name: null,
18
+ instance = PulpContainerClient::PatchedcontainerContainerPushRepository.new(pulp_labels: null,
19
+ name: null,
19
20
  description: null,
20
- retain_repo_versions: null,
21
- pulp_labels: null,
22
- manifest_signing_service: null)
21
+ manifest_signing_service: null,
22
+ retain_repo_versions: null)
23
23
  ```
24
24
 
25
25
 
@@ -15,20 +15,20 @@ require 'date'
15
15
  module PulpContainerClient
16
16
  # A serializer for ContainerDistribution.
17
17
  class ContainerContainerDistribution
18
+ attr_accessor :pulp_labels
19
+
18
20
  # A unique name. Ex, `rawhide` and `stable`.
19
21
  attr_accessor :name
20
22
 
23
+ # The latest RepositoryVersion for this Repository will be served.
24
+ attr_accessor :repository
25
+
21
26
  # An optional content-guard. If none is specified, a default one will be used.
22
27
  attr_accessor :content_guard
23
28
 
24
29
  # The base (relative) path component of the published url. Avoid paths that overlap with other distribution base paths (e.g. \"foo\" and \"foo/bar\")
25
30
  attr_accessor :base_path
26
31
 
27
- attr_accessor :pulp_labels
28
-
29
- # The latest RepositoryVersion for this Repository will be served.
30
- attr_accessor :repository
31
-
32
32
  # RepositoryVersion to be served
33
33
  attr_accessor :repository_version
34
34
 
@@ -41,11 +41,11 @@ module PulpContainerClient
41
41
  # Attribute mapping from ruby-style variable name to JSON key.
42
42
  def self.attribute_map
43
43
  {
44
+ :'pulp_labels' => :'pulp_labels',
44
45
  :'name' => :'name',
46
+ :'repository' => :'repository',
45
47
  :'content_guard' => :'content_guard',
46
48
  :'base_path' => :'base_path',
47
- :'pulp_labels' => :'pulp_labels',
48
- :'repository' => :'repository',
49
49
  :'repository_version' => :'repository_version',
50
50
  :'private' => :'private',
51
51
  :'description' => :'description'
@@ -55,11 +55,11 @@ module PulpContainerClient
55
55
  # Attribute type mapping.
56
56
  def self.openapi_types
57
57
  {
58
+ :'pulp_labels' => :'Hash<String, String>',
58
59
  :'name' => :'String',
60
+ :'repository' => :'String',
59
61
  :'content_guard' => :'String',
60
62
  :'base_path' => :'String',
61
- :'pulp_labels' => :'Hash<String, String>',
62
- :'repository' => :'String',
63
63
  :'repository_version' => :'String',
64
64
  :'private' => :'Boolean',
65
65
  :'description' => :'String'
@@ -90,10 +90,20 @@ module PulpContainerClient
90
90
  h[k.to_sym] = v
91
91
  }
92
92
 
93
+ if attributes.key?(:'pulp_labels')
94
+ if (value = attributes[:'pulp_labels']).is_a?(Hash)
95
+ self.pulp_labels = value
96
+ end
97
+ end
98
+
93
99
  if attributes.key?(:'name')
94
100
  self.name = attributes[:'name']
95
101
  end
96
102
 
103
+ if attributes.key?(:'repository')
104
+ self.repository = attributes[:'repository']
105
+ end
106
+
97
107
  if attributes.key?(:'content_guard')
98
108
  self.content_guard = attributes[:'content_guard']
99
109
  end
@@ -102,16 +112,6 @@ module PulpContainerClient
102
112
  self.base_path = attributes[:'base_path']
103
113
  end
104
114
 
105
- if attributes.key?(:'pulp_labels')
106
- if (value = attributes[:'pulp_labels']).is_a?(Hash)
107
- self.pulp_labels = value
108
- end
109
- end
110
-
111
- if attributes.key?(:'repository')
112
- self.repository = attributes[:'repository']
113
- end
114
-
115
115
  if attributes.key?(:'repository_version')
116
116
  self.repository_version = attributes[:'repository_version']
117
117
  end
@@ -206,11 +206,11 @@ module PulpContainerClient
206
206
  def ==(o)
207
207
  return true if self.equal?(o)
208
208
  self.class == o.class &&
209
+ pulp_labels == o.pulp_labels &&
209
210
  name == o.name &&
211
+ repository == o.repository &&
210
212
  content_guard == o.content_guard &&
211
213
  base_path == o.base_path &&
212
- pulp_labels == o.pulp_labels &&
213
- repository == o.repository &&
214
214
  repository_version == o.repository_version &&
215
215
  private == o.private &&
216
216
  description == o.description
@@ -225,7 +225,7 @@ module PulpContainerClient
225
225
  # Calculates hash code according to all attributes.
226
226
  # @return [Integer] Hash code
227
227
  def hash
228
- [name, content_guard, base_path, pulp_labels, repository, repository_version, private, description].hash
228
+ [pulp_labels, name, repository, content_guard, base_path, repository_version, private, description].hash
229
229
  end
230
230
 
231
231
  # Builds the object from hash
@@ -15,25 +15,25 @@ 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
+
21
+ attr_accessor :pulp_labels
22
+
18
23
  # A unique name. Ex, `rawhide` and `stable`.
19
24
  attr_accessor :name
20
25
 
26
+ attr_accessor :pulp_href
27
+
28
+ # The latest RepositoryVersion for this Repository will be served.
29
+ attr_accessor :repository
30
+
21
31
  # An optional content-guard. If none is specified, a default one will be used.
22
32
  attr_accessor :content_guard
23
33
 
24
34
  # The base (relative) path component of the published url. Avoid paths that overlap with other distribution base paths (e.g. \"foo\" and \"foo/bar\")
25
35
  attr_accessor :base_path
26
36
 
27
- attr_accessor :pulp_labels
28
-
29
- attr_accessor :pulp_href
30
-
31
- # Timestamp of creation.
32
- attr_accessor :pulp_created
33
-
34
- # The latest RepositoryVersion for this Repository will be served.
35
- attr_accessor :repository
36
-
37
37
  # RepositoryVersion to be served
38
38
  attr_accessor :repository_version
39
39
 
@@ -52,13 +52,13 @@ module PulpContainerClient
52
52
  # Attribute mapping from ruby-style variable name to JSON key.
53
53
  def self.attribute_map
54
54
  {
55
- :'name' => :'name',
56
- :'content_guard' => :'content_guard',
57
- :'base_path' => :'base_path',
55
+ :'pulp_created' => :'pulp_created',
58
56
  :'pulp_labels' => :'pulp_labels',
57
+ :'name' => :'name',
59
58
  :'pulp_href' => :'pulp_href',
60
- :'pulp_created' => :'pulp_created',
61
59
  :'repository' => :'repository',
60
+ :'content_guard' => :'content_guard',
61
+ :'base_path' => :'base_path',
62
62
  :'repository_version' => :'repository_version',
63
63
  :'registry_path' => :'registry_path',
64
64
  :'namespace' => :'namespace',
@@ -70,13 +70,13 @@ module PulpContainerClient
70
70
  # Attribute type mapping.
71
71
  def self.openapi_types
72
72
  {
73
- :'name' => :'String',
74
- :'content_guard' => :'String',
75
- :'base_path' => :'String',
73
+ :'pulp_created' => :'DateTime',
76
74
  :'pulp_labels' => :'Hash<String, String>',
75
+ :'name' => :'String',
77
76
  :'pulp_href' => :'String',
78
- :'pulp_created' => :'DateTime',
79
77
  :'repository' => :'String',
78
+ :'content_guard' => :'String',
79
+ :'base_path' => :'String',
80
80
  :'repository_version' => :'String',
81
81
  :'registry_path' => :'String',
82
82
  :'namespace' => :'String',
@@ -109,16 +109,8 @@ module PulpContainerClient
109
109
  h[k.to_sym] = v
110
110
  }
111
111
 
112
- if attributes.key?(:'name')
113
- self.name = attributes[:'name']
114
- end
115
-
116
- if attributes.key?(:'content_guard')
117
- self.content_guard = attributes[:'content_guard']
118
- end
119
-
120
- if attributes.key?(:'base_path')
121
- self.base_path = attributes[:'base_path']
112
+ if attributes.key?(:'pulp_created')
113
+ self.pulp_created = attributes[:'pulp_created']
122
114
  end
123
115
 
124
116
  if attributes.key?(:'pulp_labels')
@@ -127,18 +119,26 @@ module PulpContainerClient
127
119
  end
128
120
  end
129
121
 
130
- if attributes.key?(:'pulp_href')
131
- self.pulp_href = attributes[:'pulp_href']
122
+ if attributes.key?(:'name')
123
+ self.name = attributes[:'name']
132
124
  end
133
125
 
134
- if attributes.key?(:'pulp_created')
135
- self.pulp_created = attributes[:'pulp_created']
126
+ if attributes.key?(:'pulp_href')
127
+ self.pulp_href = attributes[:'pulp_href']
136
128
  end
137
129
 
138
130
  if attributes.key?(:'repository')
139
131
  self.repository = attributes[:'repository']
140
132
  end
141
133
 
134
+ if attributes.key?(:'content_guard')
135
+ self.content_guard = attributes[:'content_guard']
136
+ end
137
+
138
+ if attributes.key?(:'base_path')
139
+ self.base_path = attributes[:'base_path']
140
+ end
141
+
142
142
  if attributes.key?(:'repository_version')
143
143
  self.repository_version = attributes[:'repository_version']
144
144
  end
@@ -188,13 +188,13 @@ module PulpContainerClient
188
188
  def ==(o)
189
189
  return true if self.equal?(o)
190
190
  self.class == o.class &&
191
- name == o.name &&
192
- content_guard == o.content_guard &&
193
- base_path == o.base_path &&
191
+ pulp_created == o.pulp_created &&
194
192
  pulp_labels == o.pulp_labels &&
193
+ name == o.name &&
195
194
  pulp_href == o.pulp_href &&
196
- pulp_created == o.pulp_created &&
197
195
  repository == o.repository &&
196
+ content_guard == o.content_guard &&
197
+ base_path == o.base_path &&
198
198
  repository_version == o.repository_version &&
199
199
  registry_path == o.registry_path &&
200
200
  namespace == o.namespace &&
@@ -211,7 +211,7 @@ module PulpContainerClient
211
211
  # Calculates hash code according to all attributes.
212
212
  # @return [Integer] Hash code
213
213
  def hash
214
- [name, content_guard, base_path, pulp_labels, pulp_href, pulp_created, repository, repository_version, registry_path, namespace, private, description].hash
214
+ [pulp_created, pulp_labels, name, pulp_href, repository, content_guard, base_path, repository_version, registry_path, namespace, private, description].hash
215
215
  end
216
216
 
217
217
  # Builds the object from hash
@@ -15,39 +15,39 @@ require 'date'
15
15
  module PulpContainerClient
16
16
  # Serializer for Container Push Repositories.
17
17
  class ContainerContainerPushRepository
18
+ attr_accessor :pulp_labels
19
+
18
20
  # A unique name for this repository.
19
21
  attr_accessor :name
20
22
 
21
23
  # An optional description.
22
24
  attr_accessor :description
23
25
 
24
- # 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.
25
- attr_accessor :retain_repo_versions
26
-
27
- attr_accessor :pulp_labels
28
-
29
26
  # A reference to an associated signing service.
30
27
  attr_accessor :manifest_signing_service
31
28
 
29
+ # 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.
30
+ attr_accessor :retain_repo_versions
31
+
32
32
  # Attribute mapping from ruby-style variable name to JSON key.
33
33
  def self.attribute_map
34
34
  {
35
+ :'pulp_labels' => :'pulp_labels',
35
36
  :'name' => :'name',
36
37
  :'description' => :'description',
37
- :'retain_repo_versions' => :'retain_repo_versions',
38
- :'pulp_labels' => :'pulp_labels',
39
- :'manifest_signing_service' => :'manifest_signing_service'
38
+ :'manifest_signing_service' => :'manifest_signing_service',
39
+ :'retain_repo_versions' => :'retain_repo_versions'
40
40
  }
41
41
  end
42
42
 
43
43
  # Attribute type mapping.
44
44
  def self.openapi_types
45
45
  {
46
+ :'pulp_labels' => :'Hash<String, String>',
46
47
  :'name' => :'String',
47
48
  :'description' => :'String',
48
- :'retain_repo_versions' => :'Integer',
49
- :'pulp_labels' => :'Hash<String, String>',
50
- :'manifest_signing_service' => :'String'
49
+ :'manifest_signing_service' => :'String',
50
+ :'retain_repo_versions' => :'Integer'
51
51
  }
52
52
  end
53
53
 
@@ -55,8 +55,8 @@ module PulpContainerClient
55
55
  def self.openapi_nullable
56
56
  Set.new([
57
57
  :'description',
58
- :'retain_repo_versions',
59
- :'manifest_signing_service'
58
+ :'manifest_signing_service',
59
+ :'retain_repo_versions'
60
60
  ])
61
61
  end
62
62
 
@@ -75,6 +75,12 @@ module PulpContainerClient
75
75
  h[k.to_sym] = v
76
76
  }
77
77
 
78
+ if attributes.key?(:'pulp_labels')
79
+ if (value = attributes[:'pulp_labels']).is_a?(Hash)
80
+ self.pulp_labels = value
81
+ end
82
+ end
83
+
78
84
  if attributes.key?(:'name')
79
85
  self.name = attributes[:'name']
80
86
  end
@@ -83,19 +89,13 @@ module PulpContainerClient
83
89
  self.description = attributes[:'description']
84
90
  end
85
91
 
86
- if attributes.key?(:'retain_repo_versions')
87
- self.retain_repo_versions = attributes[:'retain_repo_versions']
88
- end
89
-
90
- if attributes.key?(:'pulp_labels')
91
- if (value = attributes[:'pulp_labels']).is_a?(Hash)
92
- self.pulp_labels = value
93
- end
94
- end
95
-
96
92
  if attributes.key?(:'manifest_signing_service')
97
93
  self.manifest_signing_service = attributes[:'manifest_signing_service']
98
94
  end
95
+
96
+ if attributes.key?(:'retain_repo_versions')
97
+ self.retain_repo_versions = attributes[:'retain_repo_versions']
98
+ end
99
99
  end
100
100
 
101
101
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -170,11 +170,11 @@ module PulpContainerClient
170
170
  def ==(o)
171
171
  return true if self.equal?(o)
172
172
  self.class == o.class &&
173
+ pulp_labels == o.pulp_labels &&
173
174
  name == o.name &&
174
175
  description == o.description &&
175
- retain_repo_versions == o.retain_repo_versions &&
176
- pulp_labels == o.pulp_labels &&
177
- manifest_signing_service == o.manifest_signing_service
176
+ manifest_signing_service == o.manifest_signing_service &&
177
+ retain_repo_versions == o.retain_repo_versions
178
178
  end
179
179
 
180
180
  # @see the `==` method
@@ -186,7 +186,7 @@ module PulpContainerClient
186
186
  # Calculates hash code according to all attributes.
187
187
  # @return [Integer] Hash code
188
188
  def hash
189
- [name, description, retain_repo_versions, pulp_labels, manifest_signing_service].hash
189
+ [pulp_labels, name, description, manifest_signing_service, retain_repo_versions].hash
190
190
  end
191
191
 
192
192
  # Builds the object from hash