pulpcore_client 3.77.0 → 3.78.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.
@@ -21,6 +21,9 @@ module PulpcoreClient
21
21
  # pulp_href of the object for which role permissions should be asserted. If set to 'null', permissions will act on either domain or model-level.
22
22
  attr_accessor :content_object
23
23
 
24
+ # prn of the object for which role permissions should be asserted. If set to 'null', permissions will act on either domain or model-level.
25
+ attr_accessor :content_object_prn
26
+
24
27
  # Domain this role should be applied on, mutually exclusive with content_object.
25
28
  attr_accessor :domain
26
29
 
@@ -29,6 +32,7 @@ module PulpcoreClient
29
32
  {
30
33
  :'role' => :'role',
31
34
  :'content_object' => :'content_object',
35
+ :'content_object_prn' => :'content_object_prn',
32
36
  :'domain' => :'domain'
33
37
  }
34
38
  end
@@ -43,6 +47,7 @@ module PulpcoreClient
43
47
  {
44
48
  :'role' => :'String',
45
49
  :'content_object' => :'String',
50
+ :'content_object_prn' => :'String',
46
51
  :'domain' => :'String'
47
52
  }
48
53
  end
@@ -51,6 +56,7 @@ module PulpcoreClient
51
56
  def self.openapi_nullable
52
57
  Set.new([
53
58
  :'content_object',
59
+ :'content_object_prn',
54
60
  :'domain'
55
61
  ])
56
62
  end
@@ -78,8 +84,10 @@ module PulpcoreClient
78
84
 
79
85
  if attributes.key?(:'content_object')
80
86
  self.content_object = attributes[:'content_object']
81
- else
82
- self.content_object = nil
87
+ end
88
+
89
+ if attributes.key?(:'content_object_prn')
90
+ self.content_object_prn = attributes[:'content_object_prn']
83
91
  end
84
92
 
85
93
  if attributes.key?(:'domain')
@@ -100,10 +108,14 @@ module PulpcoreClient
100
108
  invalid_properties.push('invalid value for "role", the character length must be great than or equal to 1.')
101
109
  end
102
110
 
103
- if @content_object.to_s.length < 1
111
+ if !@content_object.nil? && @content_object.to_s.length < 1
104
112
  invalid_properties.push('invalid value for "content_object", the character length must be great than or equal to 1.')
105
113
  end
106
114
 
115
+ if !@content_object_prn.nil? && @content_object_prn.to_s.length < 1
116
+ invalid_properties.push('invalid value for "content_object_prn", the character length must be great than or equal to 1.')
117
+ end
118
+
107
119
  invalid_properties
108
120
  end
109
121
 
@@ -113,7 +125,8 @@ module PulpcoreClient
113
125
  warn '[DEPRECATED] the `valid?` method is obsolete'
114
126
  return false if @role.nil?
115
127
  return false if @role.to_s.length < 1
116
- return false if @content_object.to_s.length < 1
128
+ return false if !@content_object.nil? && @content_object.to_s.length < 1
129
+ return false if !@content_object_prn.nil? && @content_object_prn.to_s.length < 1
117
130
  true
118
131
  end
119
132
 
@@ -141,6 +154,16 @@ module PulpcoreClient
141
154
  @content_object = content_object
142
155
  end
143
156
 
157
+ # Custom attribute writer method with validation
158
+ # @param [Object] content_object_prn Value to be assigned
159
+ def content_object_prn=(content_object_prn)
160
+ if !content_object_prn.nil? && content_object_prn.to_s.length < 1
161
+ fail ArgumentError, 'invalid value for "content_object_prn", the character length must be great than or equal to 1.'
162
+ end
163
+
164
+ @content_object_prn = content_object_prn
165
+ end
166
+
144
167
  # Checks equality by comparing each attribute.
145
168
  # @param [Object] Object to be compared
146
169
  def ==(o)
@@ -148,6 +171,7 @@ module PulpcoreClient
148
171
  self.class == o.class &&
149
172
  role == o.role &&
150
173
  content_object == o.content_object &&
174
+ content_object_prn == o.content_object_prn &&
151
175
  domain == o.domain
152
176
  end
153
177
 
@@ -160,7 +184,7 @@ module PulpcoreClient
160
184
  # Calculates hash code according to all attributes.
161
185
  # @return [Integer] Hash code
162
186
  def hash
163
- [role, content_object, domain].hash
187
+ [role, content_object, content_object_prn, domain].hash
164
188
  end
165
189
 
166
190
  # Builds the object from hash
@@ -32,6 +32,9 @@ module PulpcoreClient
32
32
  # pulp_href of the object for which role permissions should be asserted. If set to 'null', permissions will act on either domain or model-level.
33
33
  attr_accessor :content_object
34
34
 
35
+ # prn of the object for which role permissions should be asserted. If set to 'null', permissions will act on either domain or model-level.
36
+ attr_accessor :content_object_prn
37
+
35
38
  attr_accessor :description
36
39
 
37
40
  attr_accessor :permissions
@@ -48,6 +51,7 @@ module PulpcoreClient
48
51
  :'pulp_last_updated' => :'pulp_last_updated',
49
52
  :'role' => :'role',
50
53
  :'content_object' => :'content_object',
54
+ :'content_object_prn' => :'content_object_prn',
51
55
  :'description' => :'description',
52
56
  :'permissions' => :'permissions',
53
57
  :'domain' => :'domain'
@@ -68,6 +72,7 @@ module PulpcoreClient
68
72
  :'pulp_last_updated' => :'Time',
69
73
  :'role' => :'String',
70
74
  :'content_object' => :'String',
75
+ :'content_object_prn' => :'String',
71
76
  :'description' => :'String',
72
77
  :'permissions' => :'Array<String>',
73
78
  :'domain' => :'String'
@@ -78,6 +83,7 @@ module PulpcoreClient
78
83
  def self.openapi_nullable
79
84
  Set.new([
80
85
  :'content_object',
86
+ :'content_object_prn',
81
87
  :'domain'
82
88
  ])
83
89
  end
@@ -121,8 +127,10 @@ module PulpcoreClient
121
127
 
122
128
  if attributes.key?(:'content_object')
123
129
  self.content_object = attributes[:'content_object']
124
- else
125
- self.content_object = nil
130
+ end
131
+
132
+ if attributes.key?(:'content_object_prn')
133
+ self.content_object_prn = attributes[:'content_object_prn']
126
134
  end
127
135
 
128
136
  if attributes.key?(:'description')
@@ -171,6 +179,7 @@ module PulpcoreClient
171
179
  pulp_last_updated == o.pulp_last_updated &&
172
180
  role == o.role &&
173
181
  content_object == o.content_object &&
182
+ content_object_prn == o.content_object_prn &&
174
183
  description == o.description &&
175
184
  permissions == o.permissions &&
176
185
  domain == o.domain
@@ -185,7 +194,7 @@ module PulpcoreClient
185
194
  # Calculates hash code according to all attributes.
186
195
  # @return [Integer] Hash code
187
196
  def hash
188
- [pulp_href, prn, pulp_created, pulp_last_updated, role, content_object, description, permissions, domain].hash
197
+ [pulp_href, prn, pulp_created, pulp_last_updated, role, content_object, content_object_prn, description, permissions, domain].hash
189
198
  end
190
199
 
191
200
  # Builds the object from hash
@@ -11,5 +11,5 @@ Generator version: 7.10.0
11
11
  =end
12
12
 
13
13
  module PulpcoreClient
14
- VERSION = '3.77.0'
14
+ VERSION = '3.78.0'
15
15
  end
@@ -27,7 +27,7 @@ describe PulpcoreClient::ArtifactDistributionResponse do
27
27
  end
28
28
  end
29
29
 
30
- describe 'test attribute "pulp_href"' do
30
+ describe 'test attribute "content_guard"' 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
@@ -39,55 +39,55 @@ describe PulpcoreClient::ArtifactDistributionResponse do
39
39
  end
40
40
  end
41
41
 
42
- describe 'test attribute "hidden"' do
42
+ describe 'test attribute "pulp_last_updated"' 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 "prn"' do
48
+ describe 'test attribute "no_content_change_since"' 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 "base_path"' do
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 "base_url"' do
60
+ describe 'test attribute "pulp_href"' 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 "pulp_created"' do
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 "no_content_change_since"' do
72
+ describe 'test attribute "base_path"' 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 "pulp_labels"' do
78
+ describe 'test attribute "hidden"' 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 "pulp_last_updated"' do
84
+ describe 'test attribute "pulp_created"' 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 "content_guard"' do
90
+ describe 'test attribute "pulp_labels"' 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
@@ -63,6 +63,12 @@ describe PulpcoreClient::GroupRoleResponse do
63
63
  end
64
64
  end
65
65
 
66
+ describe 'test attribute "content_object_prn"' do
67
+ it 'should work' do
68
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
69
+ end
70
+ end
71
+
66
72
  describe 'test attribute "description"' do
67
73
  it 'should work' do
68
74
  # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
@@ -39,6 +39,12 @@ describe PulpcoreClient::GroupRole do
39
39
  end
40
40
  end
41
41
 
42
+ describe 'test attribute "content_object_prn"' do
43
+ it 'should work' do
44
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
45
+ end
46
+ end
47
+
42
48
  describe 'test attribute "domain"' do
43
49
  it 'should work' do
44
50
  # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
@@ -63,6 +63,12 @@ describe PulpcoreClient::UserRoleResponse do
63
63
  end
64
64
  end
65
65
 
66
+ describe 'test attribute "content_object_prn"' do
67
+ it 'should work' do
68
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
69
+ end
70
+ end
71
+
66
72
  describe 'test attribute "description"' do
67
73
  it 'should work' do
68
74
  # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
@@ -39,6 +39,12 @@ describe PulpcoreClient::UserRole do
39
39
  end
40
40
  end
41
41
 
42
+ describe 'test attribute "content_object_prn"' do
43
+ it 'should work' do
44
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
45
+ end
46
+ end
47
+
42
48
  describe 'test attribute "domain"' do
43
49
  it 'should work' do
44
50
  # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/