pulpcore_client 3.104.2 → 3.105.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/ArtifactDistributionResponse.md +14 -14
- data/docs/Purge.md +1 -1
- data/docs/RemotesApi.md +4 -4
- data/lib/pulpcore_client/api/remotes_api.rb +6 -6
- data/lib/pulpcore_client/models/artifact_distribution_response.rb +63 -63
- data/lib/pulpcore_client/models/generic_remote_response.rb +15 -0
- data/lib/pulpcore_client/models/nested_open_pgp_signature.rb +9 -0
- data/lib/pulpcore_client/models/nested_open_pgp_signature_response.rb +15 -0
- data/lib/pulpcore_client/models/open_pgp_keyring.rb +15 -0
- data/lib/pulpcore_client/models/open_pgp_keyring_response.rb +15 -0
- data/lib/pulpcore_client/models/open_pgp_signature_response.rb +15 -0
- data/lib/pulpcore_client/models/orphans_cleanup.rb +24 -0
- data/lib/pulpcore_client/models/patched_open_pgp_keyring.rb +15 -0
- data/lib/pulpcore_client/models/purge.rb +1 -1
- data/lib/pulpcore_client/models/remote_network_config.rb +15 -0
- data/lib/pulpcore_client/models/remote_network_config_response.rb +15 -0
- data/lib/pulpcore_client/models/repository_response.rb +15 -0
- data/lib/pulpcore_client/models/set_label.rb +0 -11
- data/lib/pulpcore_client/models/set_label_response.rb +0 -21
- data/lib/pulpcore_client/models/storage_response.rb +45 -0
- data/lib/pulpcore_client/models/unset_label.rb +0 -11
- data/lib/pulpcore_client/models/unset_label_response.rb +0 -21
- data/lib/pulpcore_client/version.rb +1 -1
- data/spec/api/remotes_api_spec.rb +2 -2
- data/spec/models/artifact_distribution_response_spec.rb +11 -11
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: e835a692137e1c4f16768fe1ed5683caf15770955fbecdc6ed66007067667628
|
|
4
|
+
data.tar.gz: b76dd9c720edda23b4dc61a1d946a9bbd799ef52bf50c31e4bac728655cb58e4
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: d6cb36095d638646e358c6a4692c0c718c97a44115a2d12c4ee6208dfcd2a0caa398f1af751886c0694e4de88889837ce9aafe270ed18c12286ea96ebdd2d196
|
|
7
|
+
data.tar.gz: 733f84dcd142541be364419a2d78769f633cd54d5a4df01dc4d1859bb318ff2c35dbc04f35610fd0739bf15af9ca6d92b8cfa03ef21fec3ab25c6e980da14876
|
data/README.md
CHANGED
|
@@ -7,7 +7,7 @@ Fetch, Upload, Organize, and Distribute Software Packages
|
|
|
7
7
|
This SDK is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
|
|
8
8
|
|
|
9
9
|
- API version: v3
|
|
10
|
-
- Package version: 3.
|
|
10
|
+
- Package version: 3.105.0
|
|
11
11
|
- Generator version: 7.10.0
|
|
12
12
|
- Build package: org.openapitools.codegen.languages.RubyClientCodegen
|
|
13
13
|
For more information, please visit [https://pulpproject.org](https://pulpproject.org)
|
|
@@ -25,16 +25,16 @@ gem build pulpcore_client.gemspec
|
|
|
25
25
|
Then either install the gem locally:
|
|
26
26
|
|
|
27
27
|
```shell
|
|
28
|
-
gem install ./pulpcore_client-3.
|
|
28
|
+
gem install ./pulpcore_client-3.105.0.gem
|
|
29
29
|
```
|
|
30
30
|
|
|
31
|
-
(for development, run `gem install --dev ./pulpcore_client-3.
|
|
31
|
+
(for development, run `gem install --dev ./pulpcore_client-3.105.0.gem` to install the development dependencies)
|
|
32
32
|
|
|
33
33
|
or publish the gem to a gem hosting service, e.g. [RubyGems](https://rubygems.org/).
|
|
34
34
|
|
|
35
35
|
Finally add this to the Gemfile:
|
|
36
36
|
|
|
37
|
-
gem 'pulpcore_client', '~> 3.
|
|
37
|
+
gem 'pulpcore_client', '~> 3.105.0'
|
|
38
38
|
|
|
39
39
|
### Install from Git
|
|
40
40
|
|
|
@@ -4,17 +4,17 @@
|
|
|
4
4
|
|
|
5
5
|
| Name | Type | Description | Notes |
|
|
6
6
|
| ---- | ---- | ----------- | ----- |
|
|
7
|
-
| **content_guard** | **String** | An optional content-guard. | [optional] |
|
|
8
7
|
| **name** | **String** | A unique name. Ex, `rawhide` and `stable`. | |
|
|
9
|
-
| **pulp_labels** | **Hash<String, String>** | | [optional] |
|
|
10
8
|
| **no_content_change_since** | **String** | Timestamp since when the distributed content served by this distribution has not changed. If equals to `null`, no guarantee is provided about content changes. | [optional][readonly] |
|
|
11
|
-
| **pulp_last_updated** | **Time** | Timestamp of the last time this resource was updated. Note: for immutable resources - like content, repository versions, and publication - pulp_created and pulp_last_updated dates will be the same. | [optional][readonly] |
|
|
12
|
-
| **prn** | **String** | The Pulp Resource Name (PRN). | [optional][readonly] |
|
|
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
|
-
| **pulp_href** | **String** | | [optional][readonly] |
|
|
15
|
-
| **base_url** | **String** | The URL for accessing the publication as defined by this distribution. | [optional][readonly] |
|
|
16
9
|
| **hidden** | **Boolean** | Whether this distribution should be shown in the content app. | [optional][default to false] |
|
|
10
|
+
| **pulp_href** | **String** | | [optional][readonly] |
|
|
11
|
+
| **prn** | **String** | The Pulp Resource Name (PRN). | [optional][readonly] |
|
|
17
12
|
| **pulp_created** | **Time** | Timestamp of creation. | [optional][readonly] |
|
|
13
|
+
| **base_url** | **String** | The URL for accessing the publication as defined by this distribution. | [optional][readonly] |
|
|
14
|
+
| **pulp_labels** | **Hash<String, String>** | | [optional] |
|
|
15
|
+
| **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\") | |
|
|
16
|
+
| **pulp_last_updated** | **Time** | Timestamp of the last time this resource was updated. Note: for immutable resources - like content, repository versions, and publication - pulp_created and pulp_last_updated dates will be the same. | [optional][readonly] |
|
|
17
|
+
| **content_guard** | **String** | An optional content-guard. | [optional] |
|
|
18
18
|
|
|
19
19
|
## Example
|
|
20
20
|
|
|
@@ -22,17 +22,17 @@
|
|
|
22
22
|
require 'pulpcore_client'
|
|
23
23
|
|
|
24
24
|
instance = PulpcoreClient::ArtifactDistributionResponse.new(
|
|
25
|
-
content_guard: null,
|
|
26
25
|
name: null,
|
|
27
|
-
pulp_labels: null,
|
|
28
26
|
no_content_change_since: null,
|
|
29
|
-
|
|
30
|
-
prn: null,
|
|
31
|
-
base_path: null,
|
|
27
|
+
hidden: null,
|
|
32
28
|
pulp_href: null,
|
|
29
|
+
prn: null,
|
|
30
|
+
pulp_created: null,
|
|
33
31
|
base_url: null,
|
|
34
|
-
|
|
35
|
-
|
|
32
|
+
pulp_labels: null,
|
|
33
|
+
base_path: null,
|
|
34
|
+
pulp_last_updated: null,
|
|
35
|
+
content_guard: null
|
|
36
36
|
)
|
|
37
37
|
```
|
|
38
38
|
|
data/docs/Purge.md
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
| Name | Type | Description | Notes |
|
|
6
6
|
| ---- | ---- | ----------- | ----- |
|
|
7
|
-
| **finished_before** | **Time** | Purge tasks completed earlier than this timestamp. Format '%Y-%m-%d[T%H:%M:%S]' | [optional][default to '2026-02-
|
|
7
|
+
| **finished_before** | **Time** | Purge tasks completed earlier than this timestamp. Format '%Y-%m-%d[T%H:%M:%S]' | [optional][default to '2026-02-08'] |
|
|
8
8
|
| **states** | [**Array<StatesEnum>**](StatesEnum.md) | List of task-states to be purged. Only 'final' states are allowed. | [optional] |
|
|
9
9
|
|
|
10
10
|
## Example
|
data/docs/RemotesApi.md
CHANGED
|
@@ -53,8 +53,8 @@ opts = {
|
|
|
53
53
|
pulp_last_updated__lt: Time.parse('2013-10-20T19:20:30+01:00'), # Time | Filter results where pulp_last_updated is less than value
|
|
54
54
|
pulp_last_updated__lte: Time.parse('2013-10-20T19:20:30+01:00'), # Time | Filter results where pulp_last_updated is less than or equal to value
|
|
55
55
|
pulp_last_updated__range: [Time.now], # Array<Time> | Filter results where pulp_last_updated is between two comma separated values
|
|
56
|
-
pulp_type: 'file.file', # String | Pulp type * `file.file` - file.file
|
|
57
|
-
pulp_type__in: ['file.file'], # Array<String> | Multiple values may be separated by commas. * `file.file` - file.file
|
|
56
|
+
pulp_type: 'file.file', # String | Pulp type * `file.file` - file.file * `file.git` - file.git
|
|
57
|
+
pulp_type__in: ['file.file'], # Array<String> | Multiple values may be separated by commas. * `file.file` - file.file * `file.git` - file.git
|
|
58
58
|
q: 'q_example', # String | Filter results by using NOT, AND and OR operations on other filters
|
|
59
59
|
fields: ['inner_example'], # Array<String> | A list of fields to include in the response.
|
|
60
60
|
exclude_fields: ['inner_example'] # Array<String> | A list of fields to exclude from the response.
|
|
@@ -115,8 +115,8 @@ end
|
|
|
115
115
|
| **pulp_last_updated__lt** | **Time** | Filter results where pulp_last_updated is less than value | [optional] |
|
|
116
116
|
| **pulp_last_updated__lte** | **Time** | Filter results where pulp_last_updated is less than or equal to value | [optional] |
|
|
117
117
|
| **pulp_last_updated__range** | [**Array<Time>**](Time.md) | Filter results where pulp_last_updated is between two comma separated values | [optional] |
|
|
118
|
-
| **pulp_type** | **String** | Pulp type * `file.file` - file.file | [optional] |
|
|
119
|
-
| **pulp_type__in** | [**Array<String>**](String.md) | Multiple values may be separated by commas. * `file.file` - file.file | [optional] |
|
|
118
|
+
| **pulp_type** | **String** | Pulp type * `file.file` - file.file * `file.git` - file.git | [optional] |
|
|
119
|
+
| **pulp_type__in** | [**Array<String>**](String.md) | Multiple values may be separated by commas. * `file.file` - file.file * `file.git` - file.git | [optional] |
|
|
120
120
|
| **q** | **String** | Filter results by using NOT, AND and OR operations on other filters | [optional] |
|
|
121
121
|
| **fields** | [**Array<String>**](String.md) | A list of fields to include in the response. | [optional] |
|
|
122
122
|
| **exclude_fields** | [**Array<String>**](String.md) | A list of fields to exclude from the response. | [optional] |
|
|
@@ -46,8 +46,8 @@ module PulpcoreClient
|
|
|
46
46
|
# @option opts [Time] :pulp_last_updated__lt Filter results where pulp_last_updated is less than value
|
|
47
47
|
# @option opts [Time] :pulp_last_updated__lte Filter results where pulp_last_updated is less than or equal to value
|
|
48
48
|
# @option opts [Array<Time>] :pulp_last_updated__range Filter results where pulp_last_updated is between two comma separated values
|
|
49
|
-
# @option opts [String] :pulp_type Pulp type * `file.file` - file.file
|
|
50
|
-
# @option opts [Array<String>] :pulp_type__in Multiple values may be separated by commas. * `file.file` - file.file
|
|
49
|
+
# @option opts [String] :pulp_type Pulp type * `file.file` - file.file * `file.git` - file.git
|
|
50
|
+
# @option opts [Array<String>] :pulp_type__in Multiple values may be separated by commas. * `file.file` - file.file * `file.git` - file.git
|
|
51
51
|
# @option opts [String] :q Filter results by using NOT, AND and OR operations on other filters
|
|
52
52
|
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
|
53
53
|
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
|
@@ -84,8 +84,8 @@ module PulpcoreClient
|
|
|
84
84
|
# @option opts [Time] :pulp_last_updated__lt Filter results where pulp_last_updated is less than value
|
|
85
85
|
# @option opts [Time] :pulp_last_updated__lte Filter results where pulp_last_updated is less than or equal to value
|
|
86
86
|
# @option opts [Array<Time>] :pulp_last_updated__range Filter results where pulp_last_updated is between two comma separated values
|
|
87
|
-
# @option opts [String] :pulp_type Pulp type * `file.file` - file.file
|
|
88
|
-
# @option opts [Array<String>] :pulp_type__in Multiple values may be separated by commas. * `file.file` - file.file
|
|
87
|
+
# @option opts [String] :pulp_type Pulp type * `file.file` - file.file * `file.git` - file.git
|
|
88
|
+
# @option opts [Array<String>] :pulp_type__in Multiple values may be separated by commas. * `file.file` - file.file * `file.git` - file.git
|
|
89
89
|
# @option opts [String] :q Filter results by using NOT, AND and OR operations on other filters
|
|
90
90
|
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
|
91
91
|
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
|
@@ -98,11 +98,11 @@ module PulpcoreClient
|
|
|
98
98
|
if @api_client.config.client_side_validation && opts[:'ordering'] && !opts[:'ordering'].all? { |item| allowable_values.include?(item) }
|
|
99
99
|
fail ArgumentError, "invalid value for \"ordering\", must include one of #{allowable_values}"
|
|
100
100
|
end
|
|
101
|
-
allowable_values = ["file.file"]
|
|
101
|
+
allowable_values = ["file.file", "file.git"]
|
|
102
102
|
if @api_client.config.client_side_validation && opts[:'pulp_type'] && !allowable_values.include?(opts[:'pulp_type'])
|
|
103
103
|
fail ArgumentError, "invalid value for \"pulp_type\", must be one of #{allowable_values}"
|
|
104
104
|
end
|
|
105
|
-
allowable_values = ["file.file"]
|
|
105
|
+
allowable_values = ["file.file", "file.git"]
|
|
106
106
|
if @api_client.config.client_side_validation && opts[:'pulp_type__in'] && !opts[:'pulp_type__in'].all? { |item| allowable_values.include?(item) }
|
|
107
107
|
fail ArgumentError, "invalid value for \"pulp_type__in\", must include one of #{allowable_values}"
|
|
108
108
|
end
|
|
@@ -16,51 +16,51 @@ require 'time'
|
|
|
16
16
|
module PulpcoreClient
|
|
17
17
|
# A serializer for ArtifactDistribution.
|
|
18
18
|
class ArtifactDistributionResponse
|
|
19
|
-
# An optional content-guard.
|
|
20
|
-
attr_accessor :content_guard
|
|
21
|
-
|
|
22
19
|
# A unique name. Ex, `rawhide` and `stable`.
|
|
23
20
|
attr_accessor :name
|
|
24
21
|
|
|
25
|
-
attr_accessor :pulp_labels
|
|
26
|
-
|
|
27
22
|
# Timestamp since when the distributed content served by this distribution has not changed. If equals to `null`, no guarantee is provided about content changes.
|
|
28
23
|
attr_accessor :no_content_change_since
|
|
29
24
|
|
|
30
|
-
#
|
|
31
|
-
attr_accessor :
|
|
25
|
+
# Whether this distribution should be shown in the content app.
|
|
26
|
+
attr_accessor :hidden
|
|
27
|
+
|
|
28
|
+
attr_accessor :pulp_href
|
|
32
29
|
|
|
33
30
|
# The Pulp Resource Name (PRN).
|
|
34
31
|
attr_accessor :prn
|
|
35
32
|
|
|
36
|
-
#
|
|
37
|
-
attr_accessor :
|
|
38
|
-
|
|
39
|
-
attr_accessor :pulp_href
|
|
33
|
+
# Timestamp of creation.
|
|
34
|
+
attr_accessor :pulp_created
|
|
40
35
|
|
|
41
36
|
# The URL for accessing the publication as defined by this distribution.
|
|
42
37
|
attr_accessor :base_url
|
|
43
38
|
|
|
44
|
-
|
|
45
|
-
attr_accessor :hidden
|
|
39
|
+
attr_accessor :pulp_labels
|
|
46
40
|
|
|
47
|
-
#
|
|
48
|
-
attr_accessor :
|
|
41
|
+
# The base (relative) path component of the published url. Avoid paths that overlap with other distribution base paths (e.g. \"foo\" and \"foo/bar\")
|
|
42
|
+
attr_accessor :base_path
|
|
43
|
+
|
|
44
|
+
# Timestamp of the last time this resource was updated. Note: for immutable resources - like content, repository versions, and publication - pulp_created and pulp_last_updated dates will be the same.
|
|
45
|
+
attr_accessor :pulp_last_updated
|
|
46
|
+
|
|
47
|
+
# An optional content-guard.
|
|
48
|
+
attr_accessor :content_guard
|
|
49
49
|
|
|
50
50
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
51
51
|
def self.attribute_map
|
|
52
52
|
{
|
|
53
|
-
:'content_guard' => :'content_guard',
|
|
54
53
|
:'name' => :'name',
|
|
55
|
-
:'pulp_labels' => :'pulp_labels',
|
|
56
54
|
:'no_content_change_since' => :'no_content_change_since',
|
|
57
|
-
:'
|
|
58
|
-
:'prn' => :'prn',
|
|
59
|
-
:'base_path' => :'base_path',
|
|
55
|
+
:'hidden' => :'hidden',
|
|
60
56
|
:'pulp_href' => :'pulp_href',
|
|
57
|
+
:'prn' => :'prn',
|
|
58
|
+
:'pulp_created' => :'pulp_created',
|
|
61
59
|
:'base_url' => :'base_url',
|
|
62
|
-
:'
|
|
63
|
-
:'
|
|
60
|
+
:'pulp_labels' => :'pulp_labels',
|
|
61
|
+
:'base_path' => :'base_path',
|
|
62
|
+
:'pulp_last_updated' => :'pulp_last_updated',
|
|
63
|
+
:'content_guard' => :'content_guard'
|
|
64
64
|
}
|
|
65
65
|
end
|
|
66
66
|
|
|
@@ -72,24 +72,24 @@ module PulpcoreClient
|
|
|
72
72
|
# Attribute type mapping.
|
|
73
73
|
def self.openapi_types
|
|
74
74
|
{
|
|
75
|
-
:'content_guard' => :'String',
|
|
76
75
|
:'name' => :'String',
|
|
77
|
-
:'pulp_labels' => :'Hash<String, String>',
|
|
78
76
|
:'no_content_change_since' => :'String',
|
|
79
|
-
:'
|
|
80
|
-
:'prn' => :'String',
|
|
81
|
-
:'base_path' => :'String',
|
|
77
|
+
:'hidden' => :'Boolean',
|
|
82
78
|
:'pulp_href' => :'String',
|
|
79
|
+
:'prn' => :'String',
|
|
80
|
+
:'pulp_created' => :'Time',
|
|
83
81
|
:'base_url' => :'String',
|
|
84
|
-
:'
|
|
85
|
-
:'
|
|
82
|
+
:'pulp_labels' => :'Hash<String, String>',
|
|
83
|
+
:'base_path' => :'String',
|
|
84
|
+
:'pulp_last_updated' => :'Time',
|
|
85
|
+
:'content_guard' => :'String'
|
|
86
86
|
}
|
|
87
87
|
end
|
|
88
88
|
|
|
89
89
|
# List of attributes with nullable: true
|
|
90
90
|
def self.openapi_nullable
|
|
91
91
|
Set.new([
|
|
92
|
-
:'content_guard'
|
|
92
|
+
:'content_guard'
|
|
93
93
|
])
|
|
94
94
|
end
|
|
95
95
|
|
|
@@ -108,56 +108,56 @@ module PulpcoreClient
|
|
|
108
108
|
h[k.to_sym] = v
|
|
109
109
|
}
|
|
110
110
|
|
|
111
|
-
if attributes.key?(:'content_guard')
|
|
112
|
-
self.content_guard = attributes[:'content_guard']
|
|
113
|
-
end
|
|
114
|
-
|
|
115
111
|
if attributes.key?(:'name')
|
|
116
112
|
self.name = attributes[:'name']
|
|
117
113
|
else
|
|
118
114
|
self.name = nil
|
|
119
115
|
end
|
|
120
116
|
|
|
121
|
-
if attributes.key?(:'pulp_labels')
|
|
122
|
-
if (value = attributes[:'pulp_labels']).is_a?(Hash)
|
|
123
|
-
self.pulp_labels = value
|
|
124
|
-
end
|
|
125
|
-
end
|
|
126
|
-
|
|
127
117
|
if attributes.key?(:'no_content_change_since')
|
|
128
118
|
self.no_content_change_since = attributes[:'no_content_change_since']
|
|
129
119
|
end
|
|
130
120
|
|
|
131
|
-
if attributes.key?(:'
|
|
132
|
-
self.
|
|
121
|
+
if attributes.key?(:'hidden')
|
|
122
|
+
self.hidden = attributes[:'hidden']
|
|
123
|
+
else
|
|
124
|
+
self.hidden = false
|
|
133
125
|
end
|
|
134
126
|
|
|
135
|
-
if attributes.key?(:'
|
|
136
|
-
self.
|
|
127
|
+
if attributes.key?(:'pulp_href')
|
|
128
|
+
self.pulp_href = attributes[:'pulp_href']
|
|
137
129
|
end
|
|
138
130
|
|
|
139
|
-
if attributes.key?(:'
|
|
140
|
-
self.
|
|
141
|
-
else
|
|
142
|
-
self.base_path = nil
|
|
131
|
+
if attributes.key?(:'prn')
|
|
132
|
+
self.prn = attributes[:'prn']
|
|
143
133
|
end
|
|
144
134
|
|
|
145
|
-
if attributes.key?(:'
|
|
146
|
-
self.
|
|
135
|
+
if attributes.key?(:'pulp_created')
|
|
136
|
+
self.pulp_created = attributes[:'pulp_created']
|
|
147
137
|
end
|
|
148
138
|
|
|
149
139
|
if attributes.key?(:'base_url')
|
|
150
140
|
self.base_url = attributes[:'base_url']
|
|
151
141
|
end
|
|
152
142
|
|
|
153
|
-
if attributes.key?(:'
|
|
154
|
-
|
|
143
|
+
if attributes.key?(:'pulp_labels')
|
|
144
|
+
if (value = attributes[:'pulp_labels']).is_a?(Hash)
|
|
145
|
+
self.pulp_labels = value
|
|
146
|
+
end
|
|
147
|
+
end
|
|
148
|
+
|
|
149
|
+
if attributes.key?(:'base_path')
|
|
150
|
+
self.base_path = attributes[:'base_path']
|
|
155
151
|
else
|
|
156
|
-
self.
|
|
152
|
+
self.base_path = nil
|
|
157
153
|
end
|
|
158
154
|
|
|
159
|
-
if attributes.key?(:'
|
|
160
|
-
self.
|
|
155
|
+
if attributes.key?(:'pulp_last_updated')
|
|
156
|
+
self.pulp_last_updated = attributes[:'pulp_last_updated']
|
|
157
|
+
end
|
|
158
|
+
|
|
159
|
+
if attributes.key?(:'content_guard')
|
|
160
|
+
self.content_guard = attributes[:'content_guard']
|
|
161
161
|
end
|
|
162
162
|
end
|
|
163
163
|
|
|
@@ -191,17 +191,17 @@ module PulpcoreClient
|
|
|
191
191
|
def ==(o)
|
|
192
192
|
return true if self.equal?(o)
|
|
193
193
|
self.class == o.class &&
|
|
194
|
-
content_guard == o.content_guard &&
|
|
195
194
|
name == o.name &&
|
|
196
|
-
pulp_labels == o.pulp_labels &&
|
|
197
195
|
no_content_change_since == o.no_content_change_since &&
|
|
198
|
-
|
|
199
|
-
prn == o.prn &&
|
|
200
|
-
base_path == o.base_path &&
|
|
196
|
+
hidden == o.hidden &&
|
|
201
197
|
pulp_href == o.pulp_href &&
|
|
198
|
+
prn == o.prn &&
|
|
199
|
+
pulp_created == o.pulp_created &&
|
|
202
200
|
base_url == o.base_url &&
|
|
203
|
-
|
|
204
|
-
|
|
201
|
+
pulp_labels == o.pulp_labels &&
|
|
202
|
+
base_path == o.base_path &&
|
|
203
|
+
pulp_last_updated == o.pulp_last_updated &&
|
|
204
|
+
content_guard == o.content_guard
|
|
205
205
|
end
|
|
206
206
|
|
|
207
207
|
# @see the `==` method
|
|
@@ -213,7 +213,7 @@ module PulpcoreClient
|
|
|
213
213
|
# Calculates hash code according to all attributes.
|
|
214
214
|
# @return [Integer] Hash code
|
|
215
215
|
def hash
|
|
216
|
-
[
|
|
216
|
+
[name, no_content_change_since, hidden, pulp_href, prn, pulp_created, base_url, pulp_labels, base_path, pulp_last_updated, content_guard].hash
|
|
217
217
|
end
|
|
218
218
|
|
|
219
219
|
# Builds the object from hash
|
|
@@ -313,6 +313,10 @@ module PulpcoreClient
|
|
|
313
313
|
invalid_properties.push('invalid value for "sock_read_timeout", must be greater than or equal to 0.0.')
|
|
314
314
|
end
|
|
315
315
|
|
|
316
|
+
if !@download_concurrency.nil? && @download_concurrency < 1
|
|
317
|
+
invalid_properties.push('invalid value for "download_concurrency", must be greater than or equal to 1.')
|
|
318
|
+
end
|
|
319
|
+
|
|
316
320
|
invalid_properties
|
|
317
321
|
end
|
|
318
322
|
|
|
@@ -326,6 +330,7 @@ module PulpcoreClient
|
|
|
326
330
|
return false if !@connect_timeout.nil? && @connect_timeout < 0.0
|
|
327
331
|
return false if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
|
|
328
332
|
return false if !@sock_read_timeout.nil? && @sock_read_timeout < 0.0
|
|
333
|
+
return false if !@download_concurrency.nil? && @download_concurrency < 1
|
|
329
334
|
true
|
|
330
335
|
end
|
|
331
336
|
|
|
@@ -369,6 +374,16 @@ module PulpcoreClient
|
|
|
369
374
|
@sock_read_timeout = sock_read_timeout
|
|
370
375
|
end
|
|
371
376
|
|
|
377
|
+
# Custom attribute writer method with validation
|
|
378
|
+
# @param [Object] download_concurrency Value to be assigned
|
|
379
|
+
def download_concurrency=(download_concurrency)
|
|
380
|
+
if !download_concurrency.nil? && download_concurrency < 1
|
|
381
|
+
fail ArgumentError, 'invalid value for "download_concurrency", must be greater than or equal to 1.'
|
|
382
|
+
end
|
|
383
|
+
|
|
384
|
+
@download_concurrency = download_concurrency
|
|
385
|
+
end
|
|
386
|
+
|
|
372
387
|
# Checks equality by comparing each attribute.
|
|
373
388
|
# @param [Object] Object to be compared
|
|
374
389
|
def ==(o)
|
|
@@ -116,6 +116,10 @@ module PulpcoreClient
|
|
|
116
116
|
def list_invalid_properties
|
|
117
117
|
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
|
118
118
|
invalid_properties = Array.new
|
|
119
|
+
if !@issuer.nil? && @issuer.to_s.length > 16
|
|
120
|
+
invalid_properties.push('invalid value for "issuer", the character length must be smaller than or equal to 16.')
|
|
121
|
+
end
|
|
122
|
+
|
|
119
123
|
if !@issuer.nil? && @issuer.to_s.length < 1
|
|
120
124
|
invalid_properties.push('invalid value for "issuer", the character length must be great than or equal to 1.')
|
|
121
125
|
end
|
|
@@ -139,6 +143,7 @@ module PulpcoreClient
|
|
|
139
143
|
# @return true if the model is valid
|
|
140
144
|
def valid?
|
|
141
145
|
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
146
|
+
return false if !@issuer.nil? && @issuer.to_s.length > 16
|
|
142
147
|
return false if !@issuer.nil? && @issuer.to_s.length < 1
|
|
143
148
|
return false if @created.nil?
|
|
144
149
|
return false if !@signers_user_id.nil? && @signers_user_id.to_s.length < 1
|
|
@@ -149,6 +154,10 @@ module PulpcoreClient
|
|
|
149
154
|
# Custom attribute writer method with validation
|
|
150
155
|
# @param [Object] issuer Value to be assigned
|
|
151
156
|
def issuer=(issuer)
|
|
157
|
+
if !issuer.nil? && issuer.to_s.length > 16
|
|
158
|
+
fail ArgumentError, 'invalid value for "issuer", the character length must be smaller than or equal to 16.'
|
|
159
|
+
end
|
|
160
|
+
|
|
152
161
|
if !issuer.nil? && issuer.to_s.length < 1
|
|
153
162
|
fail ArgumentError, 'invalid value for "issuer", the character length must be great than or equal to 1.'
|
|
154
163
|
end
|
|
@@ -124,6 +124,10 @@ module PulpcoreClient
|
|
|
124
124
|
def list_invalid_properties
|
|
125
125
|
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
|
126
126
|
invalid_properties = Array.new
|
|
127
|
+
if !@issuer.nil? && @issuer.to_s.length > 16
|
|
128
|
+
invalid_properties.push('invalid value for "issuer", the character length must be smaller than or equal to 16.')
|
|
129
|
+
end
|
|
130
|
+
|
|
127
131
|
if @created.nil?
|
|
128
132
|
invalid_properties.push('invalid value for "created", created cannot be nil.')
|
|
129
133
|
end
|
|
@@ -139,11 +143,22 @@ module PulpcoreClient
|
|
|
139
143
|
# @return true if the model is valid
|
|
140
144
|
def valid?
|
|
141
145
|
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
146
|
+
return false if !@issuer.nil? && @issuer.to_s.length > 16
|
|
142
147
|
return false if @created.nil?
|
|
143
148
|
return false if @expired.nil?
|
|
144
149
|
true
|
|
145
150
|
end
|
|
146
151
|
|
|
152
|
+
# Custom attribute writer method with validation
|
|
153
|
+
# @param [Object] issuer Value to be assigned
|
|
154
|
+
def issuer=(issuer)
|
|
155
|
+
if !issuer.nil? && issuer.to_s.length > 16
|
|
156
|
+
fail ArgumentError, 'invalid value for "issuer", the character length must be smaller than or equal to 16.'
|
|
157
|
+
end
|
|
158
|
+
|
|
159
|
+
@issuer = issuer
|
|
160
|
+
end
|
|
161
|
+
|
|
147
162
|
# Checks equality by comparing each attribute.
|
|
148
163
|
# @param [Object] Object to be compared
|
|
149
164
|
def ==(o)
|
|
@@ -123,6 +123,10 @@ module PulpcoreClient
|
|
|
123
123
|
invalid_properties.push('invalid value for "description", the character length must be great than or equal to 1.')
|
|
124
124
|
end
|
|
125
125
|
|
|
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
|
+
|
|
126
130
|
invalid_properties
|
|
127
131
|
end
|
|
128
132
|
|
|
@@ -133,6 +137,7 @@ module PulpcoreClient
|
|
|
133
137
|
return false if @name.nil?
|
|
134
138
|
return false if @name.to_s.length < 1
|
|
135
139
|
return false if !@description.nil? && @description.to_s.length < 1
|
|
140
|
+
return false if !@retain_repo_versions.nil? && @retain_repo_versions < 1
|
|
136
141
|
true
|
|
137
142
|
end
|
|
138
143
|
|
|
@@ -160,6 +165,16 @@ module PulpcoreClient
|
|
|
160
165
|
@description = description
|
|
161
166
|
end
|
|
162
167
|
|
|
168
|
+
# Custom attribute writer method with validation
|
|
169
|
+
# @param [Object] retain_repo_versions Value to be assigned
|
|
170
|
+
def retain_repo_versions=(retain_repo_versions)
|
|
171
|
+
if !retain_repo_versions.nil? && retain_repo_versions < 1
|
|
172
|
+
fail ArgumentError, 'invalid value for "retain_repo_versions", must be greater than or equal to 1.'
|
|
173
|
+
end
|
|
174
|
+
|
|
175
|
+
@retain_repo_versions = retain_repo_versions
|
|
176
|
+
end
|
|
177
|
+
|
|
163
178
|
# Checks equality by comparing each attribute.
|
|
164
179
|
# @param [Object] Object to be compared
|
|
165
180
|
def ==(o)
|
|
@@ -166,6 +166,10 @@ module PulpcoreClient
|
|
|
166
166
|
invalid_properties.push('invalid value for "name", name cannot be nil.')
|
|
167
167
|
end
|
|
168
168
|
|
|
169
|
+
if !@retain_repo_versions.nil? && @retain_repo_versions < 1
|
|
170
|
+
invalid_properties.push('invalid value for "retain_repo_versions", must be greater than or equal to 1.')
|
|
171
|
+
end
|
|
172
|
+
|
|
169
173
|
invalid_properties
|
|
170
174
|
end
|
|
171
175
|
|
|
@@ -174,9 +178,20 @@ module PulpcoreClient
|
|
|
174
178
|
def valid?
|
|
175
179
|
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
176
180
|
return false if @name.nil?
|
|
181
|
+
return false if !@retain_repo_versions.nil? && @retain_repo_versions < 1
|
|
177
182
|
true
|
|
178
183
|
end
|
|
179
184
|
|
|
185
|
+
# Custom attribute writer method with validation
|
|
186
|
+
# @param [Object] retain_repo_versions Value to be assigned
|
|
187
|
+
def retain_repo_versions=(retain_repo_versions)
|
|
188
|
+
if !retain_repo_versions.nil? && retain_repo_versions < 1
|
|
189
|
+
fail ArgumentError, 'invalid value for "retain_repo_versions", must be greater than or equal to 1.'
|
|
190
|
+
end
|
|
191
|
+
|
|
192
|
+
@retain_repo_versions = retain_repo_versions
|
|
193
|
+
end
|
|
194
|
+
|
|
180
195
|
# Checks equality by comparing each attribute.
|
|
181
196
|
# @param [Object] Object to be compared
|
|
182
197
|
def ==(o)
|
|
@@ -186,6 +186,10 @@ module PulpcoreClient
|
|
|
186
186
|
def list_invalid_properties
|
|
187
187
|
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
|
188
188
|
invalid_properties = Array.new
|
|
189
|
+
if !@issuer.nil? && @issuer.to_s.length > 16
|
|
190
|
+
invalid_properties.push('invalid value for "issuer", the character length must be smaller than or equal to 16.')
|
|
191
|
+
end
|
|
192
|
+
|
|
189
193
|
if @created.nil?
|
|
190
194
|
invalid_properties.push('invalid value for "created", created cannot be nil.')
|
|
191
195
|
end
|
|
@@ -201,11 +205,22 @@ module PulpcoreClient
|
|
|
201
205
|
# @return true if the model is valid
|
|
202
206
|
def valid?
|
|
203
207
|
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
208
|
+
return false if !@issuer.nil? && @issuer.to_s.length > 16
|
|
204
209
|
return false if @created.nil?
|
|
205
210
|
return false if @expired.nil?
|
|
206
211
|
true
|
|
207
212
|
end
|
|
208
213
|
|
|
214
|
+
# Custom attribute writer method with validation
|
|
215
|
+
# @param [Object] issuer Value to be assigned
|
|
216
|
+
def issuer=(issuer)
|
|
217
|
+
if !issuer.nil? && issuer.to_s.length > 16
|
|
218
|
+
fail ArgumentError, 'invalid value for "issuer", the character length must be smaller than or equal to 16.'
|
|
219
|
+
end
|
|
220
|
+
|
|
221
|
+
@issuer = issuer
|
|
222
|
+
end
|
|
223
|
+
|
|
209
224
|
# Checks equality by comparing each attribute.
|
|
210
225
|
# @param [Object] Object to be compared
|
|
211
226
|
def ==(o)
|
|
@@ -80,6 +80,14 @@ module PulpcoreClient
|
|
|
80
80
|
def list_invalid_properties
|
|
81
81
|
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
|
82
82
|
invalid_properties = Array.new
|
|
83
|
+
if !@orphan_protection_time.nil? && @orphan_protection_time > 4294967295
|
|
84
|
+
invalid_properties.push('invalid value for "orphan_protection_time", must be smaller than or equal to 4294967295.')
|
|
85
|
+
end
|
|
86
|
+
|
|
87
|
+
if !@orphan_protection_time.nil? && @orphan_protection_time < 0
|
|
88
|
+
invalid_properties.push('invalid value for "orphan_protection_time", must be greater than or equal to 0.')
|
|
89
|
+
end
|
|
90
|
+
|
|
83
91
|
invalid_properties
|
|
84
92
|
end
|
|
85
93
|
|
|
@@ -87,9 +95,25 @@ module PulpcoreClient
|
|
|
87
95
|
# @return true if the model is valid
|
|
88
96
|
def valid?
|
|
89
97
|
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
98
|
+
return false if !@orphan_protection_time.nil? && @orphan_protection_time > 4294967295
|
|
99
|
+
return false if !@orphan_protection_time.nil? && @orphan_protection_time < 0
|
|
90
100
|
true
|
|
91
101
|
end
|
|
92
102
|
|
|
103
|
+
# Custom attribute writer method with validation
|
|
104
|
+
# @param [Object] orphan_protection_time Value to be assigned
|
|
105
|
+
def orphan_protection_time=(orphan_protection_time)
|
|
106
|
+
if !orphan_protection_time.nil? && orphan_protection_time > 4294967295
|
|
107
|
+
fail ArgumentError, 'invalid value for "orphan_protection_time", must be smaller than or equal to 4294967295.'
|
|
108
|
+
end
|
|
109
|
+
|
|
110
|
+
if !orphan_protection_time.nil? && orphan_protection_time < 0
|
|
111
|
+
fail ArgumentError, 'invalid value for "orphan_protection_time", must be greater than or equal to 0.'
|
|
112
|
+
end
|
|
113
|
+
|
|
114
|
+
@orphan_protection_time = orphan_protection_time
|
|
115
|
+
end
|
|
116
|
+
|
|
93
117
|
# Checks equality by comparing each attribute.
|
|
94
118
|
# @param [Object] Object to be compared
|
|
95
119
|
def ==(o)
|
|
@@ -117,6 +117,10 @@ module PulpcoreClient
|
|
|
117
117
|
invalid_properties.push('invalid value for "description", the character length must be great than or equal to 1.')
|
|
118
118
|
end
|
|
119
119
|
|
|
120
|
+
if !@retain_repo_versions.nil? && @retain_repo_versions < 1
|
|
121
|
+
invalid_properties.push('invalid value for "retain_repo_versions", must be greater than or equal to 1.')
|
|
122
|
+
end
|
|
123
|
+
|
|
120
124
|
invalid_properties
|
|
121
125
|
end
|
|
122
126
|
|
|
@@ -126,6 +130,7 @@ module PulpcoreClient
|
|
|
126
130
|
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
127
131
|
return false if !@name.nil? && @name.to_s.length < 1
|
|
128
132
|
return false if !@description.nil? && @description.to_s.length < 1
|
|
133
|
+
return false if !@retain_repo_versions.nil? && @retain_repo_versions < 1
|
|
129
134
|
true
|
|
130
135
|
end
|
|
131
136
|
|
|
@@ -153,6 +158,16 @@ module PulpcoreClient
|
|
|
153
158
|
@description = description
|
|
154
159
|
end
|
|
155
160
|
|
|
161
|
+
# Custom attribute writer method with validation
|
|
162
|
+
# @param [Object] retain_repo_versions Value to be assigned
|
|
163
|
+
def retain_repo_versions=(retain_repo_versions)
|
|
164
|
+
if !retain_repo_versions.nil? && retain_repo_versions < 1
|
|
165
|
+
fail ArgumentError, 'invalid value for "retain_repo_versions", must be greater than or equal to 1.'
|
|
166
|
+
end
|
|
167
|
+
|
|
168
|
+
@retain_repo_versions = retain_repo_versions
|
|
169
|
+
end
|
|
170
|
+
|
|
156
171
|
# Checks equality by comparing each attribute.
|
|
157
172
|
# @param [Object] Object to be compared
|
|
158
173
|
def ==(o)
|
|
@@ -278,6 +278,10 @@ module PulpcoreClient
|
|
|
278
278
|
invalid_properties.push('invalid value for "sock_read_timeout", must be greater than or equal to 0.0.')
|
|
279
279
|
end
|
|
280
280
|
|
|
281
|
+
if !@download_concurrency.nil? && @download_concurrency < 1
|
|
282
|
+
invalid_properties.push('invalid value for "download_concurrency", must be greater than or equal to 1.')
|
|
283
|
+
end
|
|
284
|
+
|
|
281
285
|
invalid_properties
|
|
282
286
|
end
|
|
283
287
|
|
|
@@ -297,6 +301,7 @@ module PulpcoreClient
|
|
|
297
301
|
return false if !@connect_timeout.nil? && @connect_timeout < 0.0
|
|
298
302
|
return false if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
|
|
299
303
|
return false if !@sock_read_timeout.nil? && @sock_read_timeout < 0.0
|
|
304
|
+
return false if !@download_concurrency.nil? && @download_concurrency < 1
|
|
300
305
|
true
|
|
301
306
|
end
|
|
302
307
|
|
|
@@ -420,6 +425,16 @@ module PulpcoreClient
|
|
|
420
425
|
@sock_read_timeout = sock_read_timeout
|
|
421
426
|
end
|
|
422
427
|
|
|
428
|
+
# Custom attribute writer method with validation
|
|
429
|
+
# @param [Object] download_concurrency Value to be assigned
|
|
430
|
+
def download_concurrency=(download_concurrency)
|
|
431
|
+
if !download_concurrency.nil? && download_concurrency < 1
|
|
432
|
+
fail ArgumentError, 'invalid value for "download_concurrency", must be greater than or equal to 1.'
|
|
433
|
+
end
|
|
434
|
+
|
|
435
|
+
@download_concurrency = download_concurrency
|
|
436
|
+
end
|
|
437
|
+
|
|
423
438
|
# Checks equality by comparing each attribute.
|
|
424
439
|
# @param [Object] Object to be compared
|
|
425
440
|
def ==(o)
|
|
@@ -196,6 +196,10 @@ module PulpcoreClient
|
|
|
196
196
|
invalid_properties.push('invalid value for "sock_read_timeout", must be greater than or equal to 0.0.')
|
|
197
197
|
end
|
|
198
198
|
|
|
199
|
+
if !@download_concurrency.nil? && @download_concurrency < 1
|
|
200
|
+
invalid_properties.push('invalid value for "download_concurrency", must be greater than or equal to 1.')
|
|
201
|
+
end
|
|
202
|
+
|
|
199
203
|
invalid_properties
|
|
200
204
|
end
|
|
201
205
|
|
|
@@ -207,6 +211,7 @@ module PulpcoreClient
|
|
|
207
211
|
return false if !@connect_timeout.nil? && @connect_timeout < 0.0
|
|
208
212
|
return false if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
|
|
209
213
|
return false if !@sock_read_timeout.nil? && @sock_read_timeout < 0.0
|
|
214
|
+
return false if !@download_concurrency.nil? && @download_concurrency < 1
|
|
210
215
|
true
|
|
211
216
|
end
|
|
212
217
|
|
|
@@ -250,6 +255,16 @@ module PulpcoreClient
|
|
|
250
255
|
@sock_read_timeout = sock_read_timeout
|
|
251
256
|
end
|
|
252
257
|
|
|
258
|
+
# Custom attribute writer method with validation
|
|
259
|
+
# @param [Object] download_concurrency Value to be assigned
|
|
260
|
+
def download_concurrency=(download_concurrency)
|
|
261
|
+
if !download_concurrency.nil? && download_concurrency < 1
|
|
262
|
+
fail ArgumentError, 'invalid value for "download_concurrency", must be greater than or equal to 1.'
|
|
263
|
+
end
|
|
264
|
+
|
|
265
|
+
@download_concurrency = download_concurrency
|
|
266
|
+
end
|
|
267
|
+
|
|
253
268
|
# Checks equality by comparing each attribute.
|
|
254
269
|
# @param [Object] Object to be compared
|
|
255
270
|
def ==(o)
|
|
@@ -166,6 +166,10 @@ module PulpcoreClient
|
|
|
166
166
|
invalid_properties.push('invalid value for "name", name cannot be nil.')
|
|
167
167
|
end
|
|
168
168
|
|
|
169
|
+
if !@retain_repo_versions.nil? && @retain_repo_versions < 1
|
|
170
|
+
invalid_properties.push('invalid value for "retain_repo_versions", must be greater than or equal to 1.')
|
|
171
|
+
end
|
|
172
|
+
|
|
169
173
|
invalid_properties
|
|
170
174
|
end
|
|
171
175
|
|
|
@@ -174,9 +178,20 @@ module PulpcoreClient
|
|
|
174
178
|
def valid?
|
|
175
179
|
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
176
180
|
return false if @name.nil?
|
|
181
|
+
return false if !@retain_repo_versions.nil? && @retain_repo_versions < 1
|
|
177
182
|
true
|
|
178
183
|
end
|
|
179
184
|
|
|
185
|
+
# Custom attribute writer method with validation
|
|
186
|
+
# @param [Object] retain_repo_versions Value to be assigned
|
|
187
|
+
def retain_repo_versions=(retain_repo_versions)
|
|
188
|
+
if !retain_repo_versions.nil? && retain_repo_versions < 1
|
|
189
|
+
fail ArgumentError, 'invalid value for "retain_repo_versions", must be greater than or equal to 1.'
|
|
190
|
+
end
|
|
191
|
+
|
|
192
|
+
@retain_repo_versions = retain_repo_versions
|
|
193
|
+
end
|
|
194
|
+
|
|
180
195
|
# Checks equality by comparing each attribute.
|
|
181
196
|
# @param [Object] Object to be compared
|
|
182
197
|
def ==(o)
|
|
@@ -89,11 +89,6 @@ module PulpcoreClient
|
|
|
89
89
|
invalid_properties.push('invalid value for "key", the character length must be great than or equal to 1.')
|
|
90
90
|
end
|
|
91
91
|
|
|
92
|
-
pattern = Regexp.new(/^[-a-zA-Z0-9_]+$/)
|
|
93
|
-
if @key !~ pattern
|
|
94
|
-
invalid_properties.push("invalid value for \"key\", must conform to the pattern #{pattern}.")
|
|
95
|
-
end
|
|
96
|
-
|
|
97
92
|
invalid_properties
|
|
98
93
|
end
|
|
99
94
|
|
|
@@ -103,7 +98,6 @@ module PulpcoreClient
|
|
|
103
98
|
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
104
99
|
return false if @key.nil?
|
|
105
100
|
return false if @key.to_s.length < 1
|
|
106
|
-
return false if @key !~ Regexp.new(/^[-a-zA-Z0-9_]+$/)
|
|
107
101
|
true
|
|
108
102
|
end
|
|
109
103
|
|
|
@@ -118,11 +112,6 @@ module PulpcoreClient
|
|
|
118
112
|
fail ArgumentError, 'invalid value for "key", the character length must be great than or equal to 1.'
|
|
119
113
|
end
|
|
120
114
|
|
|
121
|
-
pattern = Regexp.new(/^[-a-zA-Z0-9_]+$/)
|
|
122
|
-
if key !~ pattern
|
|
123
|
-
fail ArgumentError, "invalid value for \"key\", must conform to the pattern #{pattern}."
|
|
124
|
-
end
|
|
125
|
-
|
|
126
115
|
@key = key
|
|
127
116
|
end
|
|
128
117
|
|
|
@@ -85,11 +85,6 @@ module PulpcoreClient
|
|
|
85
85
|
invalid_properties.push('invalid value for "key", key cannot be nil.')
|
|
86
86
|
end
|
|
87
87
|
|
|
88
|
-
pattern = Regexp.new(/^[-a-zA-Z0-9_]+$/)
|
|
89
|
-
if @key !~ pattern
|
|
90
|
-
invalid_properties.push("invalid value for \"key\", must conform to the pattern #{pattern}.")
|
|
91
|
-
end
|
|
92
|
-
|
|
93
88
|
invalid_properties
|
|
94
89
|
end
|
|
95
90
|
|
|
@@ -98,25 +93,9 @@ module PulpcoreClient
|
|
|
98
93
|
def valid?
|
|
99
94
|
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
100
95
|
return false if @key.nil?
|
|
101
|
-
return false if @key !~ Regexp.new(/^[-a-zA-Z0-9_]+$/)
|
|
102
96
|
true
|
|
103
97
|
end
|
|
104
98
|
|
|
105
|
-
# Custom attribute writer method with validation
|
|
106
|
-
# @param [Object] key Value to be assigned
|
|
107
|
-
def key=(key)
|
|
108
|
-
if key.nil?
|
|
109
|
-
fail ArgumentError, 'key cannot be nil'
|
|
110
|
-
end
|
|
111
|
-
|
|
112
|
-
pattern = Regexp.new(/^[-a-zA-Z0-9_]+$/)
|
|
113
|
-
if key !~ pattern
|
|
114
|
-
fail ArgumentError, "invalid value for \"key\", must conform to the pattern #{pattern}."
|
|
115
|
-
end
|
|
116
|
-
|
|
117
|
-
@key = key
|
|
118
|
-
end
|
|
119
|
-
|
|
120
99
|
# Checks equality by comparing each attribute.
|
|
121
100
|
# @param [Object] Object to be compared
|
|
122
101
|
def ==(o)
|
|
@@ -96,6 +96,18 @@ module PulpcoreClient
|
|
|
96
96
|
def list_invalid_properties
|
|
97
97
|
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
|
98
98
|
invalid_properties = Array.new
|
|
99
|
+
if @total < 0
|
|
100
|
+
invalid_properties.push('invalid value for "total", must be greater than or equal to 0.')
|
|
101
|
+
end
|
|
102
|
+
|
|
103
|
+
if @used < 0
|
|
104
|
+
invalid_properties.push('invalid value for "used", must be greater than or equal to 0.')
|
|
105
|
+
end
|
|
106
|
+
|
|
107
|
+
if @free < 0
|
|
108
|
+
invalid_properties.push('invalid value for "free", must be greater than or equal to 0.')
|
|
109
|
+
end
|
|
110
|
+
|
|
99
111
|
invalid_properties
|
|
100
112
|
end
|
|
101
113
|
|
|
@@ -103,9 +115,42 @@ module PulpcoreClient
|
|
|
103
115
|
# @return true if the model is valid
|
|
104
116
|
def valid?
|
|
105
117
|
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
118
|
+
return false if @total < 0
|
|
119
|
+
return false if @used < 0
|
|
120
|
+
return false if @free < 0
|
|
106
121
|
true
|
|
107
122
|
end
|
|
108
123
|
|
|
124
|
+
# Custom attribute writer method with validation
|
|
125
|
+
# @param [Object] total Value to be assigned
|
|
126
|
+
def total=(total)
|
|
127
|
+
if !total.nil? && total < 0
|
|
128
|
+
fail ArgumentError, 'invalid value for "total", must be greater than or equal to 0.'
|
|
129
|
+
end
|
|
130
|
+
|
|
131
|
+
@total = total
|
|
132
|
+
end
|
|
133
|
+
|
|
134
|
+
# Custom attribute writer method with validation
|
|
135
|
+
# @param [Object] used Value to be assigned
|
|
136
|
+
def used=(used)
|
|
137
|
+
if !used.nil? && used < 0
|
|
138
|
+
fail ArgumentError, 'invalid value for "used", must be greater than or equal to 0.'
|
|
139
|
+
end
|
|
140
|
+
|
|
141
|
+
@used = used
|
|
142
|
+
end
|
|
143
|
+
|
|
144
|
+
# Custom attribute writer method with validation
|
|
145
|
+
# @param [Object] free Value to be assigned
|
|
146
|
+
def free=(free)
|
|
147
|
+
if !free.nil? && free < 0
|
|
148
|
+
fail ArgumentError, 'invalid value for "free", must be greater than or equal to 0.'
|
|
149
|
+
end
|
|
150
|
+
|
|
151
|
+
@free = free
|
|
152
|
+
end
|
|
153
|
+
|
|
109
154
|
# Checks equality by comparing each attribute.
|
|
110
155
|
# @param [Object] Object to be compared
|
|
111
156
|
def ==(o)
|
|
@@ -78,11 +78,6 @@ module PulpcoreClient
|
|
|
78
78
|
invalid_properties.push('invalid value for "key", the character length must be great than or equal to 1.')
|
|
79
79
|
end
|
|
80
80
|
|
|
81
|
-
pattern = Regexp.new(/^[-a-zA-Z0-9_]+$/)
|
|
82
|
-
if @key !~ pattern
|
|
83
|
-
invalid_properties.push("invalid value for \"key\", must conform to the pattern #{pattern}.")
|
|
84
|
-
end
|
|
85
|
-
|
|
86
81
|
invalid_properties
|
|
87
82
|
end
|
|
88
83
|
|
|
@@ -92,7 +87,6 @@ module PulpcoreClient
|
|
|
92
87
|
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
93
88
|
return false if @key.nil?
|
|
94
89
|
return false if @key.to_s.length < 1
|
|
95
|
-
return false if @key !~ Regexp.new(/^[-a-zA-Z0-9_]+$/)
|
|
96
90
|
true
|
|
97
91
|
end
|
|
98
92
|
|
|
@@ -107,11 +101,6 @@ module PulpcoreClient
|
|
|
107
101
|
fail ArgumentError, 'invalid value for "key", the character length must be great than or equal to 1.'
|
|
108
102
|
end
|
|
109
103
|
|
|
110
|
-
pattern = Regexp.new(/^[-a-zA-Z0-9_]+$/)
|
|
111
|
-
if key !~ pattern
|
|
112
|
-
fail ArgumentError, "invalid value for \"key\", must conform to the pattern #{pattern}."
|
|
113
|
-
end
|
|
114
|
-
|
|
115
104
|
@key = key
|
|
116
105
|
end
|
|
117
106
|
|
|
@@ -82,11 +82,6 @@ module PulpcoreClient
|
|
|
82
82
|
invalid_properties.push('invalid value for "key", key cannot be nil.')
|
|
83
83
|
end
|
|
84
84
|
|
|
85
|
-
pattern = Regexp.new(/^[-a-zA-Z0-9_]+$/)
|
|
86
|
-
if @key !~ pattern
|
|
87
|
-
invalid_properties.push("invalid value for \"key\", must conform to the pattern #{pattern}.")
|
|
88
|
-
end
|
|
89
|
-
|
|
90
85
|
invalid_properties
|
|
91
86
|
end
|
|
92
87
|
|
|
@@ -95,25 +90,9 @@ module PulpcoreClient
|
|
|
95
90
|
def valid?
|
|
96
91
|
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
97
92
|
return false if @key.nil?
|
|
98
|
-
return false if @key !~ Regexp.new(/^[-a-zA-Z0-9_]+$/)
|
|
99
93
|
true
|
|
100
94
|
end
|
|
101
95
|
|
|
102
|
-
# Custom attribute writer method with validation
|
|
103
|
-
# @param [Object] key Value to be assigned
|
|
104
|
-
def key=(key)
|
|
105
|
-
if key.nil?
|
|
106
|
-
fail ArgumentError, 'key cannot be nil'
|
|
107
|
-
end
|
|
108
|
-
|
|
109
|
-
pattern = Regexp.new(/^[-a-zA-Z0-9_]+$/)
|
|
110
|
-
if key !~ pattern
|
|
111
|
-
fail ArgumentError, "invalid value for \"key\", must conform to the pattern #{pattern}."
|
|
112
|
-
end
|
|
113
|
-
|
|
114
|
-
@key = key
|
|
115
|
-
end
|
|
116
|
-
|
|
117
96
|
# Checks equality by comparing each attribute.
|
|
118
97
|
# @param [Object] Object to be compared
|
|
119
98
|
def ==(o)
|
|
@@ -60,8 +60,8 @@ describe 'RemotesApi' do
|
|
|
60
60
|
# @option opts [Time] :pulp_last_updated__lt Filter results where pulp_last_updated is less than value
|
|
61
61
|
# @option opts [Time] :pulp_last_updated__lte Filter results where pulp_last_updated is less than or equal to value
|
|
62
62
|
# @option opts [Array<Time>] :pulp_last_updated__range Filter results where pulp_last_updated is between two comma separated values
|
|
63
|
-
# @option opts [String] :pulp_type Pulp type * `file.file` - file.file
|
|
64
|
-
# @option opts [Array<String>] :pulp_type__in Multiple values may be separated by commas. * `file.file` - file.file
|
|
63
|
+
# @option opts [String] :pulp_type Pulp type * `file.file` - file.file * `file.git` - file.git
|
|
64
|
+
# @option opts [Array<String>] :pulp_type__in Multiple values may be separated by commas. * `file.file` - file.file * `file.git` - file.git
|
|
65
65
|
# @option opts [String] :q Filter results by using NOT, AND and OR operations on other filters
|
|
66
66
|
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
|
67
67
|
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
|
@@ -27,67 +27,67 @@ describe PulpcoreClient::ArtifactDistributionResponse do
|
|
|
27
27
|
end
|
|
28
28
|
end
|
|
29
29
|
|
|
30
|
-
describe 'test attribute "
|
|
30
|
+
describe 'test attribute "name"' do
|
|
31
31
|
it 'should work' do
|
|
32
32
|
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
33
33
|
end
|
|
34
34
|
end
|
|
35
35
|
|
|
36
|
-
describe 'test attribute "
|
|
36
|
+
describe 'test attribute "no_content_change_since"' do
|
|
37
37
|
it 'should work' do
|
|
38
38
|
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
39
39
|
end
|
|
40
40
|
end
|
|
41
41
|
|
|
42
|
-
describe 'test attribute "
|
|
42
|
+
describe 'test attribute "hidden"' do
|
|
43
43
|
it 'should work' do
|
|
44
44
|
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
45
45
|
end
|
|
46
46
|
end
|
|
47
47
|
|
|
48
|
-
describe 'test attribute "
|
|
48
|
+
describe 'test attribute "pulp_href"' do
|
|
49
49
|
it 'should work' do
|
|
50
50
|
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
51
51
|
end
|
|
52
52
|
end
|
|
53
53
|
|
|
54
|
-
describe 'test attribute "
|
|
54
|
+
describe 'test attribute "prn"' do
|
|
55
55
|
it 'should work' do
|
|
56
56
|
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
57
57
|
end
|
|
58
58
|
end
|
|
59
59
|
|
|
60
|
-
describe 'test attribute "
|
|
60
|
+
describe 'test attribute "pulp_created"' do
|
|
61
61
|
it 'should work' do
|
|
62
62
|
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
63
63
|
end
|
|
64
64
|
end
|
|
65
65
|
|
|
66
|
-
describe 'test attribute "
|
|
66
|
+
describe 'test attribute "base_url"' do
|
|
67
67
|
it 'should work' do
|
|
68
68
|
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
69
69
|
end
|
|
70
70
|
end
|
|
71
71
|
|
|
72
|
-
describe 'test attribute "
|
|
72
|
+
describe 'test attribute "pulp_labels"' do
|
|
73
73
|
it 'should work' do
|
|
74
74
|
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
75
75
|
end
|
|
76
76
|
end
|
|
77
77
|
|
|
78
|
-
describe 'test attribute "
|
|
78
|
+
describe 'test attribute "base_path"' do
|
|
79
79
|
it 'should work' do
|
|
80
80
|
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
81
81
|
end
|
|
82
82
|
end
|
|
83
83
|
|
|
84
|
-
describe 'test attribute "
|
|
84
|
+
describe 'test attribute "pulp_last_updated"' do
|
|
85
85
|
it 'should work' do
|
|
86
86
|
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
87
87
|
end
|
|
88
88
|
end
|
|
89
89
|
|
|
90
|
-
describe 'test attribute "
|
|
90
|
+
describe 'test attribute "content_guard"' do
|
|
91
91
|
it 'should work' do
|
|
92
92
|
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
|
93
93
|
end
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: pulpcore_client
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 3.
|
|
4
|
+
version: 3.105.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: 2026-03-
|
|
11
|
+
date: 2026-03-10 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: faraday
|