pulp_file_client 1.6.1 → 1.7.0
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.
- checksums.yaml +4 -4
- data/README.md +4 -4
- data/docs/FileFileDistribution.md +2 -0
- data/docs/FileFileDistributionResponse.md +2 -0
- data/docs/FileFileRepository.md +5 -1
- data/docs/FileFileRepositoryResponse.md +5 -1
- data/docs/PatchedfileFileDistribution.md +2 -0
- data/docs/PatchedfileFileRepository.md +5 -1
- data/lib/pulp_file_client/models/file_file_distribution.rb +12 -1
- data/lib/pulp_file_client/models/file_file_distribution_response.rb +12 -1
- data/lib/pulp_file_client/models/file_file_repository.rb +29 -5
- data/lib/pulp_file_client/models/file_file_repository_response.rb +29 -5
- data/lib/pulp_file_client/models/patchedfile_file_distribution.rb +12 -1
- data/lib/pulp_file_client/models/patchedfile_file_repository.rb +29 -5
- data/lib/pulp_file_client/version.rb +1 -1
- data/spec/models/file_file_distribution_response_spec.rb +6 -0
- data/spec/models/file_file_distribution_spec.rb +6 -0
- data/spec/models/file_file_repository_response_spec.rb +12 -0
- data/spec/models/file_file_repository_spec.rb +12 -0
- data/spec/models/patchedfile_file_distribution_spec.rb +6 -0
- data/spec/models/patchedfile_file_repository_spec.rb +12 -0
- metadata +32 -32
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 22376a5b7ad02b4b3b4dc484ac29ac840f7ac1ef323eeb0b53f078b91be86e83
|
|
4
|
+
data.tar.gz: 0af01828894d8bbdff21149fb62db9bca8f98a465fc3952f55bab0c7d636a059
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: d367665aaad140018cd5fe4b2cc910df4e04d626c6213bdbdf035999a27895405482d088ccb5a417142c0c0579abde84ec2d15a7743ea6290bb677371b5ab1c4
|
|
7
|
+
data.tar.gz: 4c7052ea39a52990bcedec0773c266a32623e5f00dc512e486ca73cbc77cdddf50f55dc05d22400d6555b6ce2da640f2212419cc010c20286133629e940e1a4d
|
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: 1.
|
|
10
|
+
- Package version: 1.7.0
|
|
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_file_client.gemspec
|
|
|
24
24
|
Then either install the gem locally:
|
|
25
25
|
|
|
26
26
|
```shell
|
|
27
|
-
gem install ./pulp_file_client-1.
|
|
27
|
+
gem install ./pulp_file_client-1.7.0.gem
|
|
28
28
|
```
|
|
29
29
|
|
|
30
|
-
(for development, run `gem install --dev ./pulp_file_client-1.
|
|
30
|
+
(for development, run `gem install --dev ./pulp_file_client-1.7.0.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_file_client', '~> 1.
|
|
36
|
+
gem 'pulp_file_client', '~> 1.7.0'
|
|
37
37
|
|
|
38
38
|
### Install from Git
|
|
39
39
|
|
|
@@ -8,6 +8,7 @@ Name | Type | Description | Notes
|
|
|
8
8
|
**content_guard** | **String** | An optional content-guard. | [optional]
|
|
9
9
|
**pulp_labels** | [**Object**](.md) | | [optional]
|
|
10
10
|
**name** | **String** | A unique name. Ex, `rawhide` and `stable`. |
|
|
11
|
+
**repository** | **String** | The latest RepositoryVersion for this Repository will be served. | [optional]
|
|
11
12
|
**publication** | **String** | Publication to be served | [optional]
|
|
12
13
|
|
|
13
14
|
## Code Sample
|
|
@@ -19,6 +20,7 @@ instance = PulpFileClient::FileFileDistribution.new(base_path: null,
|
|
|
19
20
|
content_guard: null,
|
|
20
21
|
pulp_labels: null,
|
|
21
22
|
name: null,
|
|
23
|
+
repository: null,
|
|
22
24
|
publication: null)
|
|
23
25
|
```
|
|
24
26
|
|
|
@@ -11,6 +11,7 @@ Name | Type | Description | Notes
|
|
|
11
11
|
**content_guard** | **String** | An optional content-guard. | [optional]
|
|
12
12
|
**pulp_labels** | [**Object**](.md) | | [optional]
|
|
13
13
|
**name** | **String** | A unique name. Ex, `rawhide` and `stable`. |
|
|
14
|
+
**repository** | **String** | The latest RepositoryVersion for this Repository will be served. | [optional]
|
|
14
15
|
**publication** | **String** | Publication to be served | [optional]
|
|
15
16
|
|
|
16
17
|
## Code Sample
|
|
@@ -25,6 +26,7 @@ instance = PulpFileClient::FileFileDistributionResponse.new(pulp_href: null,
|
|
|
25
26
|
content_guard: null,
|
|
26
27
|
pulp_labels: null,
|
|
27
28
|
name: null,
|
|
29
|
+
repository: null,
|
|
28
30
|
publication: null)
|
|
29
31
|
```
|
|
30
32
|
|
data/docs/FileFileRepository.md
CHANGED
|
@@ -8,6 +8,8 @@ Name | Type | Description | Notes
|
|
|
8
8
|
**name** | **String** | A unique name for this repository. |
|
|
9
9
|
**description** | **String** | An optional description. | [optional]
|
|
10
10
|
**remote** | **String** | | [optional]
|
|
11
|
+
**autopublish** | **Boolean** | Whether to automatically create publications for new repository versions, and update any distributions pointing to this repository. | [optional] [default to false]
|
|
12
|
+
**manifest** | **String** | Filename to use for manifest file containing metadata for all the files. | [optional] [default to 'PULP_MANIFEST']
|
|
11
13
|
|
|
12
14
|
## Code Sample
|
|
13
15
|
|
|
@@ -17,7 +19,9 @@ require 'PulpFileClient'
|
|
|
17
19
|
instance = PulpFileClient::FileFileRepository.new(pulp_labels: null,
|
|
18
20
|
name: null,
|
|
19
21
|
description: null,
|
|
20
|
-
remote: null
|
|
22
|
+
remote: null,
|
|
23
|
+
autopublish: null,
|
|
24
|
+
manifest: null)
|
|
21
25
|
```
|
|
22
26
|
|
|
23
27
|
|
|
@@ -12,6 +12,8 @@ Name | Type | Description | Notes
|
|
|
12
12
|
**name** | **String** | A unique name for this repository. |
|
|
13
13
|
**description** | **String** | An optional description. | [optional]
|
|
14
14
|
**remote** | **String** | | [optional]
|
|
15
|
+
**autopublish** | **Boolean** | Whether to automatically create publications for new repository versions, and update any distributions pointing to this repository. | [optional] [default to false]
|
|
16
|
+
**manifest** | **String** | Filename to use for manifest file containing metadata for all the files. | [optional] [default to 'PULP_MANIFEST']
|
|
15
17
|
|
|
16
18
|
## Code Sample
|
|
17
19
|
|
|
@@ -25,7 +27,9 @@ instance = PulpFileClient::FileFileRepositoryResponse.new(pulp_href: null,
|
|
|
25
27
|
latest_version_href: null,
|
|
26
28
|
name: null,
|
|
27
29
|
description: null,
|
|
28
|
-
remote: null
|
|
30
|
+
remote: null,
|
|
31
|
+
autopublish: null,
|
|
32
|
+
manifest: null)
|
|
29
33
|
```
|
|
30
34
|
|
|
31
35
|
|
|
@@ -8,6 +8,7 @@ Name | Type | Description | Notes
|
|
|
8
8
|
**content_guard** | **String** | An optional content-guard. | [optional]
|
|
9
9
|
**pulp_labels** | [**Object**](.md) | | [optional]
|
|
10
10
|
**name** | **String** | A unique name. Ex, `rawhide` and `stable`. | [optional]
|
|
11
|
+
**repository** | **String** | The latest RepositoryVersion for this Repository will be served. | [optional]
|
|
11
12
|
**publication** | **String** | Publication to be served | [optional]
|
|
12
13
|
|
|
13
14
|
## Code Sample
|
|
@@ -19,6 +20,7 @@ instance = PulpFileClient::PatchedfileFileDistribution.new(base_path: null,
|
|
|
19
20
|
content_guard: null,
|
|
20
21
|
pulp_labels: null,
|
|
21
22
|
name: null,
|
|
23
|
+
repository: null,
|
|
22
24
|
publication: null)
|
|
23
25
|
```
|
|
24
26
|
|
|
@@ -8,6 +8,8 @@ Name | Type | Description | Notes
|
|
|
8
8
|
**name** | **String** | A unique name for this repository. | [optional]
|
|
9
9
|
**description** | **String** | An optional description. | [optional]
|
|
10
10
|
**remote** | **String** | | [optional]
|
|
11
|
+
**autopublish** | **Boolean** | Whether to automatically create publications for new repository versions, and update any distributions pointing to this repository. | [optional] [default to false]
|
|
12
|
+
**manifest** | **String** | Filename to use for manifest file containing metadata for all the files. | [optional] [default to 'PULP_MANIFEST']
|
|
11
13
|
|
|
12
14
|
## Code Sample
|
|
13
15
|
|
|
@@ -17,7 +19,9 @@ require 'PulpFileClient'
|
|
|
17
19
|
instance = PulpFileClient::PatchedfileFileRepository.new(pulp_labels: null,
|
|
18
20
|
name: null,
|
|
19
21
|
description: null,
|
|
20
|
-
remote: null
|
|
22
|
+
remote: null,
|
|
23
|
+
autopublish: null,
|
|
24
|
+
manifest: null)
|
|
21
25
|
```
|
|
22
26
|
|
|
23
27
|
|
|
@@ -26,6 +26,9 @@ module PulpFileClient
|
|
|
26
26
|
# A unique name. Ex, `rawhide` and `stable`.
|
|
27
27
|
attr_accessor :name
|
|
28
28
|
|
|
29
|
+
# The latest RepositoryVersion for this Repository will be served.
|
|
30
|
+
attr_accessor :repository
|
|
31
|
+
|
|
29
32
|
# Publication to be served
|
|
30
33
|
attr_accessor :publication
|
|
31
34
|
|
|
@@ -36,6 +39,7 @@ module PulpFileClient
|
|
|
36
39
|
:'content_guard' => :'content_guard',
|
|
37
40
|
:'pulp_labels' => :'pulp_labels',
|
|
38
41
|
:'name' => :'name',
|
|
42
|
+
:'repository' => :'repository',
|
|
39
43
|
:'publication' => :'publication'
|
|
40
44
|
}
|
|
41
45
|
end
|
|
@@ -47,6 +51,7 @@ module PulpFileClient
|
|
|
47
51
|
:'content_guard' => :'String',
|
|
48
52
|
:'pulp_labels' => :'Object',
|
|
49
53
|
:'name' => :'String',
|
|
54
|
+
:'repository' => :'String',
|
|
50
55
|
:'publication' => :'String'
|
|
51
56
|
}
|
|
52
57
|
end
|
|
@@ -55,6 +60,7 @@ module PulpFileClient
|
|
|
55
60
|
def self.openapi_nullable
|
|
56
61
|
Set.new([
|
|
57
62
|
:'content_guard',
|
|
63
|
+
:'repository',
|
|
58
64
|
:'publication'
|
|
59
65
|
])
|
|
60
66
|
end
|
|
@@ -90,6 +96,10 @@ module PulpFileClient
|
|
|
90
96
|
self.name = attributes[:'name']
|
|
91
97
|
end
|
|
92
98
|
|
|
99
|
+
if attributes.key?(:'repository')
|
|
100
|
+
self.repository = attributes[:'repository']
|
|
101
|
+
end
|
|
102
|
+
|
|
93
103
|
if attributes.key?(:'publication')
|
|
94
104
|
self.publication = attributes[:'publication']
|
|
95
105
|
end
|
|
@@ -127,6 +137,7 @@ module PulpFileClient
|
|
|
127
137
|
content_guard == o.content_guard &&
|
|
128
138
|
pulp_labels == o.pulp_labels &&
|
|
129
139
|
name == o.name &&
|
|
140
|
+
repository == o.repository &&
|
|
130
141
|
publication == o.publication
|
|
131
142
|
end
|
|
132
143
|
|
|
@@ -139,7 +150,7 @@ module PulpFileClient
|
|
|
139
150
|
# Calculates hash code according to all attributes.
|
|
140
151
|
# @return [Integer] Hash code
|
|
141
152
|
def hash
|
|
142
|
-
[base_path, content_guard, pulp_labels, name, publication].hash
|
|
153
|
+
[base_path, content_guard, pulp_labels, name, repository, publication].hash
|
|
143
154
|
end
|
|
144
155
|
|
|
145
156
|
# Builds the object from hash
|
|
@@ -34,6 +34,9 @@ module PulpFileClient
|
|
|
34
34
|
# A unique name. Ex, `rawhide` and `stable`.
|
|
35
35
|
attr_accessor :name
|
|
36
36
|
|
|
37
|
+
# The latest RepositoryVersion for this Repository will be served.
|
|
38
|
+
attr_accessor :repository
|
|
39
|
+
|
|
37
40
|
# Publication to be served
|
|
38
41
|
attr_accessor :publication
|
|
39
42
|
|
|
@@ -47,6 +50,7 @@ module PulpFileClient
|
|
|
47
50
|
:'content_guard' => :'content_guard',
|
|
48
51
|
:'pulp_labels' => :'pulp_labels',
|
|
49
52
|
:'name' => :'name',
|
|
53
|
+
:'repository' => :'repository',
|
|
50
54
|
:'publication' => :'publication'
|
|
51
55
|
}
|
|
52
56
|
end
|
|
@@ -61,6 +65,7 @@ module PulpFileClient
|
|
|
61
65
|
:'content_guard' => :'String',
|
|
62
66
|
:'pulp_labels' => :'Object',
|
|
63
67
|
:'name' => :'String',
|
|
68
|
+
:'repository' => :'String',
|
|
64
69
|
:'publication' => :'String'
|
|
65
70
|
}
|
|
66
71
|
end
|
|
@@ -69,6 +74,7 @@ module PulpFileClient
|
|
|
69
74
|
def self.openapi_nullable
|
|
70
75
|
Set.new([
|
|
71
76
|
:'content_guard',
|
|
77
|
+
:'repository',
|
|
72
78
|
:'publication'
|
|
73
79
|
])
|
|
74
80
|
end
|
|
@@ -116,6 +122,10 @@ module PulpFileClient
|
|
|
116
122
|
self.name = attributes[:'name']
|
|
117
123
|
end
|
|
118
124
|
|
|
125
|
+
if attributes.key?(:'repository')
|
|
126
|
+
self.repository = attributes[:'repository']
|
|
127
|
+
end
|
|
128
|
+
|
|
119
129
|
if attributes.key?(:'publication')
|
|
120
130
|
self.publication = attributes[:'publication']
|
|
121
131
|
end
|
|
@@ -156,6 +166,7 @@ module PulpFileClient
|
|
|
156
166
|
content_guard == o.content_guard &&
|
|
157
167
|
pulp_labels == o.pulp_labels &&
|
|
158
168
|
name == o.name &&
|
|
169
|
+
repository == o.repository &&
|
|
159
170
|
publication == o.publication
|
|
160
171
|
end
|
|
161
172
|
|
|
@@ -168,7 +179,7 @@ module PulpFileClient
|
|
|
168
179
|
# Calculates hash code according to all attributes.
|
|
169
180
|
# @return [Integer] Hash code
|
|
170
181
|
def hash
|
|
171
|
-
[pulp_href, pulp_created, base_path, base_url, content_guard, pulp_labels, name, publication].hash
|
|
182
|
+
[pulp_href, pulp_created, base_path, base_url, content_guard, pulp_labels, name, repository, publication].hash
|
|
172
183
|
end
|
|
173
184
|
|
|
174
185
|
# Builds the object from hash
|
|
@@ -25,13 +25,21 @@ module PulpFileClient
|
|
|
25
25
|
|
|
26
26
|
attr_accessor :remote
|
|
27
27
|
|
|
28
|
+
# Whether to automatically create publications for new repository versions, and update any distributions pointing to this repository.
|
|
29
|
+
attr_accessor :autopublish
|
|
30
|
+
|
|
31
|
+
# Filename to use for manifest file containing metadata for all the files.
|
|
32
|
+
attr_accessor :manifest
|
|
33
|
+
|
|
28
34
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
29
35
|
def self.attribute_map
|
|
30
36
|
{
|
|
31
37
|
:'pulp_labels' => :'pulp_labels',
|
|
32
38
|
:'name' => :'name',
|
|
33
39
|
:'description' => :'description',
|
|
34
|
-
:'remote' => :'remote'
|
|
40
|
+
:'remote' => :'remote',
|
|
41
|
+
:'autopublish' => :'autopublish',
|
|
42
|
+
:'manifest' => :'manifest'
|
|
35
43
|
}
|
|
36
44
|
end
|
|
37
45
|
|
|
@@ -41,7 +49,9 @@ module PulpFileClient
|
|
|
41
49
|
:'pulp_labels' => :'Object',
|
|
42
50
|
:'name' => :'String',
|
|
43
51
|
:'description' => :'String',
|
|
44
|
-
:'remote' => :'String'
|
|
52
|
+
:'remote' => :'String',
|
|
53
|
+
:'autopublish' => :'Boolean',
|
|
54
|
+
:'manifest' => :'String'
|
|
45
55
|
}
|
|
46
56
|
end
|
|
47
57
|
|
|
@@ -49,7 +59,7 @@ module PulpFileClient
|
|
|
49
59
|
def self.openapi_nullable
|
|
50
60
|
Set.new([
|
|
51
61
|
:'description',
|
|
52
|
-
:'remote'
|
|
62
|
+
:'remote',
|
|
53
63
|
])
|
|
54
64
|
end
|
|
55
65
|
|
|
@@ -83,6 +93,18 @@ module PulpFileClient
|
|
|
83
93
|
if attributes.key?(:'remote')
|
|
84
94
|
self.remote = attributes[:'remote']
|
|
85
95
|
end
|
|
96
|
+
|
|
97
|
+
if attributes.key?(:'autopublish')
|
|
98
|
+
self.autopublish = attributes[:'autopublish']
|
|
99
|
+
else
|
|
100
|
+
self.autopublish = false
|
|
101
|
+
end
|
|
102
|
+
|
|
103
|
+
if attributes.key?(:'manifest')
|
|
104
|
+
self.manifest = attributes[:'manifest']
|
|
105
|
+
else
|
|
106
|
+
self.manifest = 'PULP_MANIFEST'
|
|
107
|
+
end
|
|
86
108
|
end
|
|
87
109
|
|
|
88
110
|
# Show invalid properties with the reasons. Usually used together with valid?
|
|
@@ -111,7 +133,9 @@ module PulpFileClient
|
|
|
111
133
|
pulp_labels == o.pulp_labels &&
|
|
112
134
|
name == o.name &&
|
|
113
135
|
description == o.description &&
|
|
114
|
-
remote == o.remote
|
|
136
|
+
remote == o.remote &&
|
|
137
|
+
autopublish == o.autopublish &&
|
|
138
|
+
manifest == o.manifest
|
|
115
139
|
end
|
|
116
140
|
|
|
117
141
|
# @see the `==` method
|
|
@@ -123,7 +147,7 @@ module PulpFileClient
|
|
|
123
147
|
# Calculates hash code according to all attributes.
|
|
124
148
|
# @return [Integer] Hash code
|
|
125
149
|
def hash
|
|
126
|
-
[pulp_labels, name, description, remote].hash
|
|
150
|
+
[pulp_labels, name, description, remote, autopublish, manifest].hash
|
|
127
151
|
end
|
|
128
152
|
|
|
129
153
|
# Builds the object from hash
|
|
@@ -34,6 +34,12 @@ module PulpFileClient
|
|
|
34
34
|
|
|
35
35
|
attr_accessor :remote
|
|
36
36
|
|
|
37
|
+
# Whether to automatically create publications for new repository versions, and update any distributions pointing to this repository.
|
|
38
|
+
attr_accessor :autopublish
|
|
39
|
+
|
|
40
|
+
# Filename to use for manifest file containing metadata for all the files.
|
|
41
|
+
attr_accessor :manifest
|
|
42
|
+
|
|
37
43
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
38
44
|
def self.attribute_map
|
|
39
45
|
{
|
|
@@ -44,7 +50,9 @@ module PulpFileClient
|
|
|
44
50
|
:'latest_version_href' => :'latest_version_href',
|
|
45
51
|
:'name' => :'name',
|
|
46
52
|
:'description' => :'description',
|
|
47
|
-
:'remote' => :'remote'
|
|
53
|
+
:'remote' => :'remote',
|
|
54
|
+
:'autopublish' => :'autopublish',
|
|
55
|
+
:'manifest' => :'manifest'
|
|
48
56
|
}
|
|
49
57
|
end
|
|
50
58
|
|
|
@@ -58,7 +66,9 @@ module PulpFileClient
|
|
|
58
66
|
:'latest_version_href' => :'String',
|
|
59
67
|
:'name' => :'String',
|
|
60
68
|
:'description' => :'String',
|
|
61
|
-
:'remote' => :'String'
|
|
69
|
+
:'remote' => :'String',
|
|
70
|
+
:'autopublish' => :'Boolean',
|
|
71
|
+
:'manifest' => :'String'
|
|
62
72
|
}
|
|
63
73
|
end
|
|
64
74
|
|
|
@@ -66,7 +76,7 @@ module PulpFileClient
|
|
|
66
76
|
def self.openapi_nullable
|
|
67
77
|
Set.new([
|
|
68
78
|
:'description',
|
|
69
|
-
:'remote'
|
|
79
|
+
:'remote',
|
|
70
80
|
])
|
|
71
81
|
end
|
|
72
82
|
|
|
@@ -116,6 +126,18 @@ module PulpFileClient
|
|
|
116
126
|
if attributes.key?(:'remote')
|
|
117
127
|
self.remote = attributes[:'remote']
|
|
118
128
|
end
|
|
129
|
+
|
|
130
|
+
if attributes.key?(:'autopublish')
|
|
131
|
+
self.autopublish = attributes[:'autopublish']
|
|
132
|
+
else
|
|
133
|
+
self.autopublish = false
|
|
134
|
+
end
|
|
135
|
+
|
|
136
|
+
if attributes.key?(:'manifest')
|
|
137
|
+
self.manifest = attributes[:'manifest']
|
|
138
|
+
else
|
|
139
|
+
self.manifest = 'PULP_MANIFEST'
|
|
140
|
+
end
|
|
119
141
|
end
|
|
120
142
|
|
|
121
143
|
# Show invalid properties with the reasons. Usually used together with valid?
|
|
@@ -148,7 +170,9 @@ module PulpFileClient
|
|
|
148
170
|
latest_version_href == o.latest_version_href &&
|
|
149
171
|
name == o.name &&
|
|
150
172
|
description == o.description &&
|
|
151
|
-
remote == o.remote
|
|
173
|
+
remote == o.remote &&
|
|
174
|
+
autopublish == o.autopublish &&
|
|
175
|
+
manifest == o.manifest
|
|
152
176
|
end
|
|
153
177
|
|
|
154
178
|
# @see the `==` method
|
|
@@ -160,7 +184,7 @@ module PulpFileClient
|
|
|
160
184
|
# Calculates hash code according to all attributes.
|
|
161
185
|
# @return [Integer] Hash code
|
|
162
186
|
def hash
|
|
163
|
-
[pulp_href, pulp_created, versions_href, pulp_labels, latest_version_href, name, description, remote].hash
|
|
187
|
+
[pulp_href, pulp_created, versions_href, pulp_labels, latest_version_href, name, description, remote, autopublish, manifest].hash
|
|
164
188
|
end
|
|
165
189
|
|
|
166
190
|
# Builds the object from hash
|
|
@@ -26,6 +26,9 @@ module PulpFileClient
|
|
|
26
26
|
# A unique name. Ex, `rawhide` and `stable`.
|
|
27
27
|
attr_accessor :name
|
|
28
28
|
|
|
29
|
+
# The latest RepositoryVersion for this Repository will be served.
|
|
30
|
+
attr_accessor :repository
|
|
31
|
+
|
|
29
32
|
# Publication to be served
|
|
30
33
|
attr_accessor :publication
|
|
31
34
|
|
|
@@ -36,6 +39,7 @@ module PulpFileClient
|
|
|
36
39
|
:'content_guard' => :'content_guard',
|
|
37
40
|
:'pulp_labels' => :'pulp_labels',
|
|
38
41
|
:'name' => :'name',
|
|
42
|
+
:'repository' => :'repository',
|
|
39
43
|
:'publication' => :'publication'
|
|
40
44
|
}
|
|
41
45
|
end
|
|
@@ -47,6 +51,7 @@ module PulpFileClient
|
|
|
47
51
|
:'content_guard' => :'String',
|
|
48
52
|
:'pulp_labels' => :'Object',
|
|
49
53
|
:'name' => :'String',
|
|
54
|
+
:'repository' => :'String',
|
|
50
55
|
:'publication' => :'String'
|
|
51
56
|
}
|
|
52
57
|
end
|
|
@@ -55,6 +60,7 @@ module PulpFileClient
|
|
|
55
60
|
def self.openapi_nullable
|
|
56
61
|
Set.new([
|
|
57
62
|
:'content_guard',
|
|
63
|
+
:'repository',
|
|
58
64
|
:'publication'
|
|
59
65
|
])
|
|
60
66
|
end
|
|
@@ -90,6 +96,10 @@ module PulpFileClient
|
|
|
90
96
|
self.name = attributes[:'name']
|
|
91
97
|
end
|
|
92
98
|
|
|
99
|
+
if attributes.key?(:'repository')
|
|
100
|
+
self.repository = attributes[:'repository']
|
|
101
|
+
end
|
|
102
|
+
|
|
93
103
|
if attributes.key?(:'publication')
|
|
94
104
|
self.publication = attributes[:'publication']
|
|
95
105
|
end
|
|
@@ -117,6 +127,7 @@ module PulpFileClient
|
|
|
117
127
|
content_guard == o.content_guard &&
|
|
118
128
|
pulp_labels == o.pulp_labels &&
|
|
119
129
|
name == o.name &&
|
|
130
|
+
repository == o.repository &&
|
|
120
131
|
publication == o.publication
|
|
121
132
|
end
|
|
122
133
|
|
|
@@ -129,7 +140,7 @@ module PulpFileClient
|
|
|
129
140
|
# Calculates hash code according to all attributes.
|
|
130
141
|
# @return [Integer] Hash code
|
|
131
142
|
def hash
|
|
132
|
-
[base_path, content_guard, pulp_labels, name, publication].hash
|
|
143
|
+
[base_path, content_guard, pulp_labels, name, repository, publication].hash
|
|
133
144
|
end
|
|
134
145
|
|
|
135
146
|
# Builds the object from hash
|
|
@@ -25,13 +25,21 @@ module PulpFileClient
|
|
|
25
25
|
|
|
26
26
|
attr_accessor :remote
|
|
27
27
|
|
|
28
|
+
# Whether to automatically create publications for new repository versions, and update any distributions pointing to this repository.
|
|
29
|
+
attr_accessor :autopublish
|
|
30
|
+
|
|
31
|
+
# Filename to use for manifest file containing metadata for all the files.
|
|
32
|
+
attr_accessor :manifest
|
|
33
|
+
|
|
28
34
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
29
35
|
def self.attribute_map
|
|
30
36
|
{
|
|
31
37
|
:'pulp_labels' => :'pulp_labels',
|
|
32
38
|
:'name' => :'name',
|
|
33
39
|
:'description' => :'description',
|
|
34
|
-
:'remote' => :'remote'
|
|
40
|
+
:'remote' => :'remote',
|
|
41
|
+
:'autopublish' => :'autopublish',
|
|
42
|
+
:'manifest' => :'manifest'
|
|
35
43
|
}
|
|
36
44
|
end
|
|
37
45
|
|
|
@@ -41,7 +49,9 @@ module PulpFileClient
|
|
|
41
49
|
:'pulp_labels' => :'Object',
|
|
42
50
|
:'name' => :'String',
|
|
43
51
|
:'description' => :'String',
|
|
44
|
-
:'remote' => :'String'
|
|
52
|
+
:'remote' => :'String',
|
|
53
|
+
:'autopublish' => :'Boolean',
|
|
54
|
+
:'manifest' => :'String'
|
|
45
55
|
}
|
|
46
56
|
end
|
|
47
57
|
|
|
@@ -49,7 +59,7 @@ module PulpFileClient
|
|
|
49
59
|
def self.openapi_nullable
|
|
50
60
|
Set.new([
|
|
51
61
|
:'description',
|
|
52
|
-
:'remote'
|
|
62
|
+
:'remote',
|
|
53
63
|
])
|
|
54
64
|
end
|
|
55
65
|
|
|
@@ -83,6 +93,18 @@ module PulpFileClient
|
|
|
83
93
|
if attributes.key?(:'remote')
|
|
84
94
|
self.remote = attributes[:'remote']
|
|
85
95
|
end
|
|
96
|
+
|
|
97
|
+
if attributes.key?(:'autopublish')
|
|
98
|
+
self.autopublish = attributes[:'autopublish']
|
|
99
|
+
else
|
|
100
|
+
self.autopublish = false
|
|
101
|
+
end
|
|
102
|
+
|
|
103
|
+
if attributes.key?(:'manifest')
|
|
104
|
+
self.manifest = attributes[:'manifest']
|
|
105
|
+
else
|
|
106
|
+
self.manifest = 'PULP_MANIFEST'
|
|
107
|
+
end
|
|
86
108
|
end
|
|
87
109
|
|
|
88
110
|
# Show invalid properties with the reasons. Usually used together with valid?
|
|
@@ -106,7 +128,9 @@ module PulpFileClient
|
|
|
106
128
|
pulp_labels == o.pulp_labels &&
|
|
107
129
|
name == o.name &&
|
|
108
130
|
description == o.description &&
|
|
109
|
-
remote == o.remote
|
|
131
|
+
remote == o.remote &&
|
|
132
|
+
autopublish == o.autopublish &&
|
|
133
|
+
manifest == o.manifest
|
|
110
134
|
end
|
|
111
135
|
|
|
112
136
|
# @see the `==` method
|
|
@@ -118,7 +142,7 @@ module PulpFileClient
|
|
|
118
142
|
# Calculates hash code according to all attributes.
|
|
119
143
|
# @return [Integer] Hash code
|
|
120
144
|
def hash
|
|
121
|
-
[pulp_labels, name, description, remote].hash
|
|
145
|
+
[pulp_labels, name, description, remote, autopublish, manifest].hash
|
|
122
146
|
end
|
|
123
147
|
|
|
124
148
|
# Builds the object from hash
|
|
@@ -74,6 +74,12 @@ describe 'FileFileDistributionResponse' do
|
|
|
74
74
|
end
|
|
75
75
|
end
|
|
76
76
|
|
|
77
|
+
describe 'test attribute "repository"' do
|
|
78
|
+
it 'should work' do
|
|
79
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
80
|
+
end
|
|
81
|
+
end
|
|
82
|
+
|
|
77
83
|
describe 'test attribute "publication"' do
|
|
78
84
|
it 'should work' do
|
|
79
85
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
@@ -56,6 +56,12 @@ describe 'FileFileDistribution' do
|
|
|
56
56
|
end
|
|
57
57
|
end
|
|
58
58
|
|
|
59
|
+
describe 'test attribute "repository"' do
|
|
60
|
+
it 'should work' do
|
|
61
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
62
|
+
end
|
|
63
|
+
end
|
|
64
|
+
|
|
59
65
|
describe 'test attribute "publication"' do
|
|
60
66
|
it 'should work' do
|
|
61
67
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
@@ -80,4 +80,16 @@ describe 'FileFileRepositoryResponse' do
|
|
|
80
80
|
end
|
|
81
81
|
end
|
|
82
82
|
|
|
83
|
+
describe 'test attribute "autopublish"' do
|
|
84
|
+
it 'should work' do
|
|
85
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
86
|
+
end
|
|
87
|
+
end
|
|
88
|
+
|
|
89
|
+
describe 'test attribute "manifest"' do
|
|
90
|
+
it 'should work' do
|
|
91
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
92
|
+
end
|
|
93
|
+
end
|
|
94
|
+
|
|
83
95
|
end
|
|
@@ -56,4 +56,16 @@ describe 'FileFileRepository' do
|
|
|
56
56
|
end
|
|
57
57
|
end
|
|
58
58
|
|
|
59
|
+
describe 'test attribute "autopublish"' do
|
|
60
|
+
it 'should work' do
|
|
61
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
62
|
+
end
|
|
63
|
+
end
|
|
64
|
+
|
|
65
|
+
describe 'test attribute "manifest"' do
|
|
66
|
+
it 'should work' do
|
|
67
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
68
|
+
end
|
|
69
|
+
end
|
|
70
|
+
|
|
59
71
|
end
|
|
@@ -56,6 +56,12 @@ describe 'PatchedfileFileDistribution' do
|
|
|
56
56
|
end
|
|
57
57
|
end
|
|
58
58
|
|
|
59
|
+
describe 'test attribute "repository"' do
|
|
60
|
+
it 'should work' do
|
|
61
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
62
|
+
end
|
|
63
|
+
end
|
|
64
|
+
|
|
59
65
|
describe 'test attribute "publication"' do
|
|
60
66
|
it 'should work' do
|
|
61
67
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
@@ -56,4 +56,16 @@ describe 'PatchedfileFileRepository' do
|
|
|
56
56
|
end
|
|
57
57
|
end
|
|
58
58
|
|
|
59
|
+
describe 'test attribute "autopublish"' do
|
|
60
|
+
it 'should work' do
|
|
61
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
62
|
+
end
|
|
63
|
+
end
|
|
64
|
+
|
|
65
|
+
describe 'test attribute "manifest"' do
|
|
66
|
+
it 'should work' do
|
|
67
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
68
|
+
end
|
|
69
|
+
end
|
|
70
|
+
|
|
59
71
|
end
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: pulp_file_client
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.
|
|
4
|
+
version: 1.7.0
|
|
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-
|
|
11
|
+
date: 2021-04-19 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: faraday
|
|
@@ -229,53 +229,53 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
229
229
|
- !ruby/object:Gem::Version
|
|
230
230
|
version: '0'
|
|
231
231
|
requirements: []
|
|
232
|
-
rubygems_version: 3.0.3
|
|
232
|
+
rubygems_version: 3.0.3.1
|
|
233
233
|
signing_key:
|
|
234
234
|
specification_version: 4
|
|
235
235
|
summary: Pulp 3 API Ruby Gem
|
|
236
236
|
test_files:
|
|
237
|
+
- spec/api/exporters_file_exports_api_spec.rb
|
|
237
238
|
- spec/api/repositories_file_versions_api_spec.rb
|
|
239
|
+
- spec/api/distributions_file_api_spec.rb
|
|
240
|
+
- spec/api/exporters_filesystem_api_spec.rb
|
|
238
241
|
- spec/api/content_files_api_spec.rb
|
|
239
242
|
- spec/api/repositories_file_api_spec.rb
|
|
240
|
-
- spec/api/exporters_file_exports_api_spec.rb
|
|
241
243
|
- spec/api/remotes_file_api_spec.rb
|
|
242
|
-
- spec/api/distributions_file_api_spec.rb
|
|
243
244
|
- spec/api/publications_file_api_spec.rb
|
|
244
|
-
- spec/api/exporters_filesystem_api_spec.rb
|
|
245
245
|
- spec/api_client_spec.rb
|
|
246
246
|
- spec/configuration_spec.rb
|
|
247
|
-
- spec/models/
|
|
248
|
-
- spec/models/repository_add_remove_content_spec.rb
|
|
249
|
-
- spec/models/file_file_distribution_response_spec.rb
|
|
250
|
-
- spec/models/file_file_repository_response_spec.rb
|
|
251
|
-
- spec/models/file_file_filesystem_exporter_spec.rb
|
|
252
|
-
- spec/models/file_file_content_spec.rb
|
|
253
|
-
- spec/models/async_operation_response_spec.rb
|
|
254
|
-
- spec/models/paginatedfile_file_remote_response_list_spec.rb
|
|
255
|
-
- spec/models/file_file_publication_response_spec.rb
|
|
256
|
-
- spec/models/file_file_remote_response_spec.rb
|
|
247
|
+
- spec/models/repository_sync_url_spec.rb
|
|
257
248
|
- spec/models/file_file_filesystem_exporter_response_spec.rb
|
|
258
|
-
- spec/models/paginated_export_response_list_spec.rb
|
|
259
|
-
- spec/models/policy_enum_spec.rb
|
|
260
|
-
- spec/models/repository_version_spec.rb
|
|
261
|
-
- spec/models/paginatedfile_file_publication_response_list_spec.rb
|
|
262
|
-
- spec/models/export_response_spec.rb
|
|
263
|
-
- spec/models/content_summary_response_spec.rb
|
|
264
249
|
- spec/models/repository_version_response_spec.rb
|
|
265
|
-
- spec/models/file_file_distribution_spec.rb
|
|
266
|
-
- spec/models/publication_export_spec.rb
|
|
267
|
-
- spec/models/patchedfile_file_distribution_spec.rb
|
|
268
|
-
- spec/models/file_file_remote_spec.rb
|
|
269
250
|
- spec/models/paginatedfile_file_content_response_list_spec.rb
|
|
270
|
-
- spec/models/
|
|
271
|
-
- spec/models/
|
|
272
|
-
- spec/models/repository_sync_url_spec.rb
|
|
273
|
-
- spec/models/file_file_content_response_spec.rb
|
|
274
|
-
- spec/models/patchedfile_file_filesystem_exporter_spec.rb
|
|
251
|
+
- spec/models/file_file_repository_spec.rb
|
|
252
|
+
- spec/models/publication_export_spec.rb
|
|
275
253
|
- spec/models/file_file_publication_spec.rb
|
|
254
|
+
- spec/models/content_summary_response_spec.rb
|
|
255
|
+
- spec/models/patchedfile_file_filesystem_exporter_spec.rb
|
|
256
|
+
- spec/models/paginatedfile_file_filesystem_exporter_response_list_spec.rb
|
|
276
257
|
- spec/models/paginatedfile_file_distribution_response_list_spec.rb
|
|
258
|
+
- spec/models/paginatedfile_file_remote_response_list_spec.rb
|
|
259
|
+
- spec/models/patchedfile_file_repository_spec.rb
|
|
260
|
+
- spec/models/file_file_publication_response_spec.rb
|
|
261
|
+
- spec/models/export_response_spec.rb
|
|
262
|
+
- spec/models/paginatedfile_file_publication_response_list_spec.rb
|
|
277
263
|
- spec/models/content_summary_spec.rb
|
|
278
|
-
- spec/models/
|
|
264
|
+
- spec/models/file_file_content_spec.rb
|
|
265
|
+
- spec/models/repository_version_spec.rb
|
|
266
|
+
- spec/models/paginated_export_response_list_spec.rb
|
|
267
|
+
- spec/models/file_file_remote_response_spec.rb
|
|
279
268
|
- spec/models/paginatedfile_file_repository_response_list_spec.rb
|
|
269
|
+
- spec/models/policy_enum_spec.rb
|
|
270
|
+
- spec/models/file_file_distribution_response_spec.rb
|
|
271
|
+
- spec/models/patchedfile_file_distribution_spec.rb
|
|
272
|
+
- spec/models/repository_add_remove_content_spec.rb
|
|
273
|
+
- spec/models/async_operation_response_spec.rb
|
|
280
274
|
- spec/models/paginated_repository_version_response_list_spec.rb
|
|
275
|
+
- spec/models/file_file_content_response_spec.rb
|
|
276
|
+
- spec/models/patchedfile_file_remote_spec.rb
|
|
277
|
+
- spec/models/file_file_repository_response_spec.rb
|
|
278
|
+
- spec/models/file_file_filesystem_exporter_spec.rb
|
|
279
|
+
- spec/models/file_file_remote_spec.rb
|
|
280
|
+
- spec/models/file_file_distribution_spec.rb
|
|
281
281
|
- spec/spec_helper.rb
|