pulp_container_client 2.9.1 → 2.9.4

Sign up to get free protection for your applications and to get access to all the features.
@@ -15,59 +15,59 @@ require 'date'
15
15
  module PulpContainerClient
16
16
  # Serializer for Container Push Repositories.
17
17
  class ContainerContainerPushRepositoryResponse
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
- attr_accessor :versions_href
18
+ # Timestamp of creation.
19
+ attr_accessor :pulp_created
22
20
 
23
- attr_accessor :pulp_labels
21
+ # A unique name for this repository.
22
+ attr_accessor :name
24
23
 
25
24
  attr_accessor :latest_version_href
26
25
 
27
- attr_accessor :pulp_href
26
+ attr_accessor :pulp_labels
28
27
 
29
- # A unique name for this repository.
30
- attr_accessor :name
28
+ attr_accessor :versions_href
31
29
 
32
30
  # An optional description.
33
31
  attr_accessor :description
34
32
 
35
- # Timestamp of creation.
36
- attr_accessor :pulp_created
33
+ # 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.
34
+ attr_accessor :retain_repo_versions
35
+
36
+ attr_accessor :pulp_href
37
37
 
38
38
  # Attribute mapping from ruby-style variable name to JSON key.
39
39
  def self.attribute_map
40
40
  {
41
- :'retain_repo_versions' => :'retain_repo_versions',
42
- :'versions_href' => :'versions_href',
43
- :'pulp_labels' => :'pulp_labels',
44
- :'latest_version_href' => :'latest_version_href',
45
- :'pulp_href' => :'pulp_href',
41
+ :'pulp_created' => :'pulp_created',
46
42
  :'name' => :'name',
43
+ :'latest_version_href' => :'latest_version_href',
44
+ :'pulp_labels' => :'pulp_labels',
45
+ :'versions_href' => :'versions_href',
47
46
  :'description' => :'description',
48
- :'pulp_created' => :'pulp_created'
47
+ :'retain_repo_versions' => :'retain_repo_versions',
48
+ :'pulp_href' => :'pulp_href'
49
49
  }
50
50
  end
51
51
 
52
52
  # Attribute type mapping.
53
53
  def self.openapi_types
54
54
  {
55
- :'retain_repo_versions' => :'Integer',
56
- :'versions_href' => :'String',
57
- :'pulp_labels' => :'Object',
58
- :'latest_version_href' => :'String',
59
- :'pulp_href' => :'String',
55
+ :'pulp_created' => :'DateTime',
60
56
  :'name' => :'String',
57
+ :'latest_version_href' => :'String',
58
+ :'pulp_labels' => :'Object',
59
+ :'versions_href' => :'String',
61
60
  :'description' => :'String',
62
- :'pulp_created' => :'DateTime'
61
+ :'retain_repo_versions' => :'Integer',
62
+ :'pulp_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?(:'retain_repo_versions')
90
- self.retain_repo_versions = attributes[:'retain_repo_versions']
91
- end
92
-
93
- if attributes.key?(:'versions_href')
94
- self.versions_href = attributes[:'versions_href']
89
+ if attributes.key?(:'pulp_created')
90
+ self.pulp_created = attributes[:'pulp_created']
95
91
  end
96
92
 
97
- if attributes.key?(:'pulp_labels')
98
- self.pulp_labels = attributes[:'pulp_labels']
93
+ if attributes.key?(:'name')
94
+ self.name = attributes[:'name']
99
95
  end
100
96
 
101
97
  if attributes.key?(:'latest_version_href')
102
98
  self.latest_version_href = attributes[:'latest_version_href']
103
99
  end
104
100
 
105
- if attributes.key?(:'pulp_href')
106
- self.pulp_href = attributes[:'pulp_href']
101
+ if attributes.key?(:'pulp_labels')
102
+ self.pulp_labels = attributes[:'pulp_labels']
107
103
  end
108
104
 
109
- if attributes.key?(:'name')
110
- self.name = attributes[:'name']
105
+ if attributes.key?(:'versions_href')
106
+ self.versions_href = attributes[:'versions_href']
111
107
  end
112
108
 
113
109
  if attributes.key?(:'description')
114
110
  self.description = attributes[:'description']
115
111
  end
116
112
 
117
- if attributes.key?(:'pulp_created')
118
- self.pulp_created = attributes[:'pulp_created']
113
+ if attributes.key?(:'retain_repo_versions')
114
+ self.retain_repo_versions = attributes[:'retain_repo_versions']
115
+ end
116
+
117
+ if attributes.key?(:'pulp_href')
118
+ self.pulp_href = attributes[:'pulp_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
- retain_repo_versions == o.retain_repo_versions &&
161
- versions_href == o.versions_href &&
162
- pulp_labels == o.pulp_labels &&
163
- latest_version_href == o.latest_version_href &&
164
- pulp_href == o.pulp_href &&
160
+ pulp_created == o.pulp_created &&
165
161
  name == o.name &&
162
+ latest_version_href == o.latest_version_href &&
163
+ pulp_labels == o.pulp_labels &&
164
+ versions_href == o.versions_href &&
166
165
  description == o.description &&
167
- pulp_created == o.pulp_created
166
+ retain_repo_versions == o.retain_repo_versions &&
167
+ pulp_href == o.pulp_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
- [retain_repo_versions, versions_href, pulp_labels, latest_version_href, pulp_href, name, description, pulp_created].hash
179
+ [pulp_created, name, latest_version_href, pulp_labels, versions_href, description, retain_repo_versions, pulp_href].hash
180
180
  end
181
181
 
182
182
  # Builds the object from hash
@@ -18,13 +18,13 @@ module PulpContainerClient
18
18
  # An optional content-guard. If none is specified, a default one will be used.
19
19
  attr_accessor :content_guard
20
20
 
21
- attr_accessor :pulp_labels
21
+ # A unique name. Ex, `rawhide` and `stable`.
22
+ attr_accessor :name
22
23
 
23
24
  # The latest RepositoryVersion for this Repository will be served.
24
25
  attr_accessor :repository
25
26
 
26
- # A unique name. Ex, `rawhide` and `stable`.
27
- attr_accessor :name
27
+ attr_accessor :pulp_labels
28
28
 
29
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\")
30
30
  attr_accessor :base_path
@@ -42,9 +42,9 @@ module PulpContainerClient
42
42
  def self.attribute_map
43
43
  {
44
44
  :'content_guard' => :'content_guard',
45
- :'pulp_labels' => :'pulp_labels',
46
- :'repository' => :'repository',
47
45
  :'name' => :'name',
46
+ :'repository' => :'repository',
47
+ :'pulp_labels' => :'pulp_labels',
48
48
  :'base_path' => :'base_path',
49
49
  :'repository_version' => :'repository_version',
50
50
  :'private' => :'private',
@@ -56,9 +56,9 @@ module PulpContainerClient
56
56
  def self.openapi_types
57
57
  {
58
58
  :'content_guard' => :'String',
59
- :'pulp_labels' => :'Object',
60
- :'repository' => :'String',
61
59
  :'name' => :'String',
60
+ :'repository' => :'String',
61
+ :'pulp_labels' => :'Object',
62
62
  :'base_path' => :'String',
63
63
  :'repository_version' => :'String',
64
64
  :'private' => :'Boolean',
@@ -94,16 +94,16 @@ module PulpContainerClient
94
94
  self.content_guard = attributes[:'content_guard']
95
95
  end
96
96
 
97
- if attributes.key?(:'pulp_labels')
98
- self.pulp_labels = attributes[:'pulp_labels']
97
+ if attributes.key?(:'name')
98
+ self.name = attributes[:'name']
99
99
  end
100
100
 
101
101
  if attributes.key?(:'repository')
102
102
  self.repository = attributes[:'repository']
103
103
  end
104
104
 
105
- if attributes.key?(:'name')
106
- self.name = attributes[:'name']
105
+ if attributes.key?(:'pulp_labels')
106
+ self.pulp_labels = attributes[:'pulp_labels']
107
107
  end
108
108
 
109
109
  if attributes.key?(:'base_path')
@@ -142,9 +142,9 @@ module PulpContainerClient
142
142
  return true if self.equal?(o)
143
143
  self.class == o.class &&
144
144
  content_guard == o.content_guard &&
145
- pulp_labels == o.pulp_labels &&
146
- repository == o.repository &&
147
145
  name == o.name &&
146
+ repository == o.repository &&
147
+ pulp_labels == o.pulp_labels &&
148
148
  base_path == o.base_path &&
149
149
  repository_version == o.repository_version &&
150
150
  private == o.private &&
@@ -160,7 +160,7 @@ module PulpContainerClient
160
160
  # Calculates hash code according to all attributes.
161
161
  # @return [Integer] Hash code
162
162
  def hash
163
- [content_guard, pulp_labels, repository, name, base_path, repository_version, private, description].hash
163
+ [content_guard, name, repository, pulp_labels, base_path, repository_version, private, description].hash
164
164
  end
165
165
 
166
166
  # 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
- attr_accessor :pulp_labels
22
-
23
18
  # A unique name for this repository.
24
19
  attr_accessor :name
25
20
 
21
+ attr_accessor :pulp_labels
22
+
26
23
  # An optional description.
27
24
  attr_accessor :description
28
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
- :'pulp_labels' => :'pulp_labels',
34
32
  :'name' => :'name',
35
- :'description' => :'description'
33
+ :'pulp_labels' => :'pulp_labels',
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
- :'pulp_labels' => :'Object',
44
42
  :'name' => :'String',
45
- :'description' => :'String'
43
+ :'pulp_labels' => :'Object',
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
- :'description'
52
+ :'description',
53
+ :'retain_repo_versions'
54
54
  ])
55
55
  end
56
56
 
@@ -69,21 +69,21 @@ 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']
72
+ if attributes.key?(:'name')
73
+ self.name = attributes[:'name']
74
74
  end
75
75
 
76
76
  if attributes.key?(:'pulp_labels')
77
77
  self.pulp_labels = attributes[:'pulp_labels']
78
78
  end
79
79
 
80
- if attributes.key?(:'name')
81
- self.name = attributes[:'name']
82
- end
83
-
84
80
  if attributes.key?(:'description')
85
81
  self.description = attributes[:'description']
86
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?
@@ -119,10 +119,10 @@ module PulpContainerClient
119
119
  def ==(o)
120
120
  return true if self.equal?(o)
121
121
  self.class == o.class &&
122
- retain_repo_versions == o.retain_repo_versions &&
123
- pulp_labels == o.pulp_labels &&
124
122
  name == o.name &&
125
- description == o.description
123
+ pulp_labels == o.pulp_labels &&
124
+ description == o.description &&
125
+ retain_repo_versions == o.retain_repo_versions
126
126
  end
127
127
 
128
128
  # @see the `==` method
@@ -134,7 +134,7 @@ module PulpContainerClient
134
134
  # Calculates hash code according to all attributes.
135
135
  # @return [Integer] Hash code
136
136
  def hash
137
- [retain_repo_versions, pulp_labels, name, description].hash
137
+ [name, pulp_labels, description, retain_repo_versions].hash
138
138
  end
139
139
 
140
140
  # 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.9.1'
14
+ VERSION = '2.9.4'
15
15
  end
@@ -27,7 +27,7 @@ Gem::Specification.new do |s|
27
27
  s.license = 'GPL-2.0+'
28
28
  s.required_ruby_version = ">= 1.9"
29
29
 
30
- s.add_runtime_dependency 'faraday', '>= 0.14.0'
30
+ s.add_runtime_dependency 'faraday', '~> 0.17', '< 1.9.0'
31
31
  s.add_runtime_dependency 'json', '~> 2.1', '>= 2.1.0'
32
32
 
33
33
  s.add_development_dependency 'rspec', '~> 3.6', '>= 3.6.0'
@@ -32,31 +32,31 @@ describe 'ContainerContainerDistributionResponse' do
32
32
  expect(@instance).to be_instance_of(PulpContainerClient::ContainerContainerDistributionResponse)
33
33
  end
34
34
  end
35
- describe 'test attribute "content_guard"' 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 "pulp_labels"' do
41
+ describe 'test attribute "content_guard"' 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 "name"' 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_href"' 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
@@ -68,7 +68,7 @@ describe 'ContainerContainerDistributionResponse' do
68
68
  end
69
69
  end
70
70
 
71
- describe 'test attribute "pulp_created"' do
71
+ describe 'test attribute "pulp_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
@@ -38,7 +38,7 @@ describe 'ContainerContainerDistribution' do
38
38
  end
39
39
  end
40
40
 
41
- describe 'test attribute "pulp_labels"' 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
@@ -50,7 +50,7 @@ describe 'ContainerContainerDistribution' do
50
50
  end
51
51
  end
52
52
 
53
- describe 'test attribute "name"' do
53
+ describe 'test attribute "pulp_labels"' 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,49 +32,49 @@ describe 'ContainerContainerPushRepositoryResponse' do
32
32
  expect(@instance).to be_instance_of(PulpContainerClient::ContainerContainerPushRepositoryResponse)
33
33
  end
34
34
  end
35
- describe 'test attribute "retain_repo_versions"' 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 "versions_href"' 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 "latest_version_href"' 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 "pulp_labels"' 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 "pulp_href"' do
59
+ describe 'test attribute "versions_href"' 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 "name"' do
65
+ describe 'test attribute "description"' 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 "description"' do
71
+ describe 'test attribute "retain_repo_versions"' 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 "pulp_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,7 +32,7 @@ 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 "name"' 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
@@ -44,13 +44,13 @@ describe 'ContainerContainerPushRepository' do
44
44
  end
45
45
  end
46
46
 
47
- describe 'test attribute "name"' 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 "description"' 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
@@ -38,7 +38,7 @@ describe 'PatchedcontainerContainerDistribution' do
38
38
  end
39
39
  end
40
40
 
41
- describe 'test attribute "pulp_labels"' 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
@@ -50,7 +50,7 @@ describe 'PatchedcontainerContainerDistribution' do
50
50
  end
51
51
  end
52
52
 
53
- describe 'test attribute "name"' do
53
+ describe 'test attribute "pulp_labels"' 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,7 +32,7 @@ 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 "name"' 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
@@ -44,13 +44,13 @@ describe 'PatchedcontainerContainerPushRepository' do
44
44
  end
45
45
  end
46
46
 
47
- describe 'test attribute "name"' 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 "description"' 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