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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: fa63e3a3b27bb1371dc757394d5f7f4ff7f1b1b00d1d00af315a379677fc072e
4
- data.tar.gz: e1a151a40b970fe4c628e6e1a45b45e4c19e44bfbda3697ea2d4c84e178fd540
3
+ metadata.gz: 22fe06b78961d93807189e6f348e8a4ce7b524b7c6ffd55e5ca07b71409af872
4
+ data.tar.gz: 96eba23cb787bfe5783280e8af8d61fe3f02b0c49c41deea0f28508286e92830
5
5
  SHA512:
6
- metadata.gz: a62c6e47ded4b57443e34c8635b5ab62c02793a6e26081429bf149ee51590d7ec18a7ed108a18f7fd96b7e68812b391631f7eef02993dea29589c137e038c356
7
- data.tar.gz: 2f0c00eac36aa1701d451398372636515618cbb8af81d64be291c36ac7ab6925890aea095d19c88bd651d7bad205f79d580e2624a139256e0f844e146b624a36
6
+ metadata.gz: 69727d12b17999f94d14611987f012d769f449f949eb7e755143aa436405b9f71acc76ef84de7073cf15e0c8fd0cd983a6ad77e982d7ff1115c4bb82256ac97b
7
+ data.tar.gz: 351281486357a0d5a473ff25c970ac01c179af1a85b27365d4507f2ebf064cd52152d015cd604dee7b6f1b958454bf5e9c40ba05a15e0259a1d8025a339c8ca7
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.77.0
10
+ - Package version: 3.78.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.77.0.gem
28
+ gem install ./pulpcore_client-3.78.0.gem
29
29
  ```
30
30
 
31
- (for development, run `gem install --dev ./pulpcore_client-3.77.0.gem` to install the development dependencies)
31
+ (for development, run `gem install --dev ./pulpcore_client-3.78.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.77.0'
37
+ gem 'pulpcore_client', '~> 3.78.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
- | **pulp_href** | **String** | | [optional][readonly] |
7
+ | **content_guard** | **String** | An optional content-guard. | [optional] |
8
8
  | **name** | **String** | A unique name. Ex, `rawhide` and `stable`. | |
9
- | **hidden** | **Boolean** | Whether this distribution should be shown in the content app. | [optional][default to false] |
9
+ | **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] |
10
+ | **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] |
10
11
  | **prn** | **String** | The Pulp Resource Name (PRN). | [optional][readonly] |
11
- | **base_path** | **String** | The base (relative) path component of the published url. Avoid paths that overlap with other distribution base paths (e.g. \"foo\" and \"foo/bar\") | |
12
+ | **pulp_href** | **String** | | [optional][readonly] |
12
13
  | **base_url** | **String** | The URL for accessing the publication as defined by this distribution. | [optional][readonly] |
14
+ | **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\") | |
15
+ | **hidden** | **Boolean** | Whether this distribution should be shown in the content app. | [optional][default to false] |
13
16
  | **pulp_created** | **Time** | Timestamp of creation. | [optional][readonly] |
14
- | **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] |
15
17
  | **pulp_labels** | **Hash<String, String>** | | [optional] |
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
- pulp_href: null,
25
+ content_guard: null,
26
26
  name: null,
27
- hidden: null,
27
+ pulp_last_updated: null,
28
+ no_content_change_since: null,
28
29
  prn: null,
29
- base_path: null,
30
+ pulp_href: null,
30
31
  base_url: null,
32
+ base_path: null,
33
+ hidden: null,
31
34
  pulp_created: null,
32
- no_content_change_since: null,
33
- pulp_labels: null,
34
- pulp_last_updated: null,
35
- content_guard: null
35
+ pulp_labels: null
36
36
  )
37
37
  ```
38
38
 
data/docs/GroupRole.md CHANGED
@@ -5,7 +5,8 @@
5
5
  | Name | Type | Description | Notes |
6
6
  | ---- | ---- | ----------- | ----- |
7
7
  | **role** | **String** | | |
8
- | **content_object** | **String** | pulp_href of the object for which role permissions should be asserted. If set to 'null', permissions will act on the model-level. | |
8
+ | **content_object** | **String** | pulp_href of the object for which role permissions should be asserted. If set to 'null', permissions will act on the model-level. | [optional] |
9
+ | **content_object_prn** | **String** | prn of the object for which role permissions should be asserted. If set to 'null', permissions will act on either domain or model-level. | [optional] |
9
10
  | **domain** | **String** | Domain this role should be applied on, mutually exclusive with content_object. | [optional] |
10
11
 
11
12
  ## Example
@@ -16,6 +17,7 @@ require 'pulpcore_client'
16
17
  instance = PulpcoreClient::GroupRole.new(
17
18
  role: null,
18
19
  content_object: null,
20
+ content_object_prn: null,
19
21
  domain: null
20
22
  )
21
23
  ```
@@ -9,7 +9,8 @@
9
9
  | **pulp_created** | **Time** | Timestamp of creation. | [optional][readonly] |
10
10
  | **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] |
11
11
  | **role** | **String** | | |
12
- | **content_object** | **String** | pulp_href of the object for which role permissions should be asserted. If set to 'null', permissions will act on the model-level. | |
12
+ | **content_object** | **String** | pulp_href of the object for which role permissions should be asserted. If set to 'null', permissions will act on the model-level. | [optional] |
13
+ | **content_object_prn** | **String** | prn of the object for which role permissions should be asserted. If set to 'null', permissions will act on either domain or model-level. | [optional] |
13
14
  | **description** | **String** | | [optional][readonly] |
14
15
  | **permissions** | **Array<String>** | | [optional][readonly] |
15
16
  | **domain** | **String** | Domain this role should be applied on, mutually exclusive with content_object. | [optional] |
@@ -26,6 +27,7 @@ instance = PulpcoreClient::GroupRoleResponse.new(
26
27
  pulp_last_updated: null,
27
28
  role: null,
28
29
  content_object: null,
30
+ content_object_prn: null,
29
31
  description: null,
30
32
  permissions: null,
31
33
  domain: null
@@ -32,7 +32,7 @@ end
32
32
 
33
33
  api_instance = PulpcoreClient::GroupsRolesApi.new
34
34
  group_href = 'group_href_example' # String |
35
- group_role = PulpcoreClient::GroupRole.new({role: 'role_example', content_object: 'content_object_example'}) # GroupRole |
35
+ group_role = PulpcoreClient::GroupRole.new({role: 'role_example'}) # GroupRole |
36
36
 
37
37
  begin
38
38
  # Create a group role
data/docs/UserRole.md CHANGED
@@ -5,7 +5,8 @@
5
5
  | Name | Type | Description | Notes |
6
6
  | ---- | ---- | ----------- | ----- |
7
7
  | **role** | **String** | | |
8
- | **content_object** | **String** | 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. | |
8
+ | **content_object** | **String** | 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. | [optional] |
9
+ | **content_object_prn** | **String** | prn of the object for which role permissions should be asserted. If set to 'null', permissions will act on either domain or model-level. | [optional] |
9
10
  | **domain** | **String** | Domain this role should be applied on, mutually exclusive with content_object. | [optional] |
10
11
 
11
12
  ## Example
@@ -16,6 +17,7 @@ require 'pulpcore_client'
16
17
  instance = PulpcoreClient::UserRole.new(
17
18
  role: null,
18
19
  content_object: null,
20
+ content_object_prn: null,
19
21
  domain: null
20
22
  )
21
23
  ```
@@ -9,7 +9,8 @@
9
9
  | **pulp_created** | **Time** | Timestamp of creation. | [optional][readonly] |
10
10
  | **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] |
11
11
  | **role** | **String** | | |
12
- | **content_object** | **String** | 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. | |
12
+ | **content_object** | **String** | 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. | [optional] |
13
+ | **content_object_prn** | **String** | prn of the object for which role permissions should be asserted. If set to 'null', permissions will act on either domain or model-level. | [optional] |
13
14
  | **description** | **String** | | [optional][readonly] |
14
15
  | **permissions** | **Array<String>** | | [optional][readonly] |
15
16
  | **domain** | **String** | Domain this role should be applied on, mutually exclusive with content_object. | [optional] |
@@ -26,6 +27,7 @@ instance = PulpcoreClient::UserRoleResponse.new(
26
27
  pulp_last_updated: null,
27
28
  role: null,
28
29
  content_object: null,
30
+ content_object_prn: null,
29
31
  description: null,
30
32
  permissions: null,
31
33
  domain: null
@@ -32,7 +32,7 @@ end
32
32
 
33
33
  api_instance = PulpcoreClient::UsersRolesApi.new
34
34
  auth_user_href = 'auth_user_href_example' # String |
35
- user_role = PulpcoreClient::UserRole.new({role: 'role_example', content_object: 'content_object_example'}) # UserRole |
35
+ user_role = PulpcoreClient::UserRole.new({role: 'role_example'}) # UserRole |
36
36
 
37
37
  begin
38
38
  # Create an user role
@@ -16,51 +16,51 @@ require 'time'
16
16
  module PulpcoreClient
17
17
  # A serializer for ArtifactDistribution.
18
18
  class ArtifactDistributionResponse
19
- attr_accessor :pulp_href
19
+ # An optional content-guard.
20
+ attr_accessor :content_guard
20
21
 
21
22
  # A unique name. Ex, `rawhide` and `stable`.
22
23
  attr_accessor :name
23
24
 
24
- # Whether this distribution should be shown in the content app.
25
- attr_accessor :hidden
25
+ # 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.
26
+ attr_accessor :pulp_last_updated
27
+
28
+ # Timestamp since when the distributed content served by this distribution has not changed. If equals to `null`, no guarantee is provided about content changes.
29
+ attr_accessor :no_content_change_since
26
30
 
27
31
  # The Pulp Resource Name (PRN).
28
32
  attr_accessor :prn
29
33
 
30
- # The base (relative) path component of the published url. Avoid paths that overlap with other distribution base paths (e.g. \"foo\" and \"foo/bar\")
31
- attr_accessor :base_path
34
+ attr_accessor :pulp_href
32
35
 
33
36
  # The URL for accessing the publication as defined by this distribution.
34
37
  attr_accessor :base_url
35
38
 
39
+ # The base (relative) path component of the published url. Avoid paths that overlap with other distribution base paths (e.g. \"foo\" and \"foo/bar\")
40
+ attr_accessor :base_path
41
+
42
+ # Whether this distribution should be shown in the content app.
43
+ attr_accessor :hidden
44
+
36
45
  # Timestamp of creation.
37
46
  attr_accessor :pulp_created
38
47
 
39
- # Timestamp since when the distributed content served by this distribution has not changed. If equals to `null`, no guarantee is provided about content changes.
40
- attr_accessor :no_content_change_since
41
-
42
48
  attr_accessor :pulp_labels
43
49
 
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
-
50
50
  # Attribute mapping from ruby-style variable name to JSON key.
51
51
  def self.attribute_map
52
52
  {
53
- :'pulp_href' => :'pulp_href',
53
+ :'content_guard' => :'content_guard',
54
54
  :'name' => :'name',
55
- :'hidden' => :'hidden',
55
+ :'pulp_last_updated' => :'pulp_last_updated',
56
+ :'no_content_change_since' => :'no_content_change_since',
56
57
  :'prn' => :'prn',
57
- :'base_path' => :'base_path',
58
+ :'pulp_href' => :'pulp_href',
58
59
  :'base_url' => :'base_url',
60
+ :'base_path' => :'base_path',
61
+ :'hidden' => :'hidden',
59
62
  :'pulp_created' => :'pulp_created',
60
- :'no_content_change_since' => :'no_content_change_since',
61
- :'pulp_labels' => :'pulp_labels',
62
- :'pulp_last_updated' => :'pulp_last_updated',
63
- :'content_guard' => :'content_guard'
63
+ :'pulp_labels' => :'pulp_labels'
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
- :'pulp_href' => :'String',
75
+ :'content_guard' => :'String',
76
76
  :'name' => :'String',
77
- :'hidden' => :'Boolean',
77
+ :'pulp_last_updated' => :'Time',
78
+ :'no_content_change_since' => :'String',
78
79
  :'prn' => :'String',
79
- :'base_path' => :'String',
80
+ :'pulp_href' => :'String',
80
81
  :'base_url' => :'String',
82
+ :'base_path' => :'String',
83
+ :'hidden' => :'Boolean',
81
84
  :'pulp_created' => :'Time',
82
- :'no_content_change_since' => :'String',
83
- :'pulp_labels' => :'Hash<String, String>',
84
- :'pulp_last_updated' => :'Time',
85
- :'content_guard' => :'String'
85
+ :'pulp_labels' => :'Hash<String, 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,8 +108,8 @@ module PulpcoreClient
108
108
  h[k.to_sym] = v
109
109
  }
110
110
 
111
- if attributes.key?(:'pulp_href')
112
- self.pulp_href = attributes[:'pulp_href']
111
+ if attributes.key?(:'content_guard')
112
+ self.content_guard = attributes[:'content_guard']
113
113
  end
114
114
 
115
115
  if attributes.key?(:'name')
@@ -118,47 +118,47 @@ module PulpcoreClient
118
118
  self.name = nil
119
119
  end
120
120
 
121
- if attributes.key?(:'hidden')
122
- self.hidden = attributes[:'hidden']
123
- else
124
- self.hidden = false
121
+ if attributes.key?(:'pulp_last_updated')
122
+ self.pulp_last_updated = attributes[:'pulp_last_updated']
123
+ end
124
+
125
+ if attributes.key?(:'no_content_change_since')
126
+ self.no_content_change_since = attributes[:'no_content_change_since']
125
127
  end
126
128
 
127
129
  if attributes.key?(:'prn')
128
130
  self.prn = attributes[:'prn']
129
131
  end
130
132
 
133
+ if attributes.key?(:'pulp_href')
134
+ self.pulp_href = attributes[:'pulp_href']
135
+ end
136
+
137
+ if attributes.key?(:'base_url')
138
+ self.base_url = attributes[:'base_url']
139
+ end
140
+
131
141
  if attributes.key?(:'base_path')
132
142
  self.base_path = attributes[:'base_path']
133
143
  else
134
144
  self.base_path = nil
135
145
  end
136
146
 
137
- if attributes.key?(:'base_url')
138
- self.base_url = attributes[:'base_url']
147
+ if attributes.key?(:'hidden')
148
+ self.hidden = attributes[:'hidden']
149
+ else
150
+ self.hidden = false
139
151
  end
140
152
 
141
153
  if attributes.key?(:'pulp_created')
142
154
  self.pulp_created = attributes[:'pulp_created']
143
155
  end
144
156
 
145
- if attributes.key?(:'no_content_change_since')
146
- self.no_content_change_since = attributes[:'no_content_change_since']
147
- end
148
-
149
157
  if attributes.key?(:'pulp_labels')
150
158
  if (value = attributes[:'pulp_labels']).is_a?(Hash)
151
159
  self.pulp_labels = value
152
160
  end
153
161
  end
154
-
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
- end
162
162
  end
163
163
 
164
164
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -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
- pulp_href == o.pulp_href &&
194
+ content_guard == o.content_guard &&
195
195
  name == o.name &&
196
- hidden == o.hidden &&
196
+ pulp_last_updated == o.pulp_last_updated &&
197
+ no_content_change_since == o.no_content_change_since &&
197
198
  prn == o.prn &&
198
- base_path == o.base_path &&
199
+ pulp_href == o.pulp_href &&
199
200
  base_url == o.base_url &&
201
+ base_path == o.base_path &&
202
+ hidden == o.hidden &&
200
203
  pulp_created == o.pulp_created &&
201
- no_content_change_since == o.no_content_change_since &&
202
- pulp_labels == o.pulp_labels &&
203
- pulp_last_updated == o.pulp_last_updated &&
204
- content_guard == o.content_guard
204
+ pulp_labels == o.pulp_labels
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
- [pulp_href, name, hidden, prn, base_path, base_url, pulp_created, no_content_change_since, pulp_labels, pulp_last_updated, content_guard].hash
216
+ [content_guard, name, pulp_last_updated, no_content_change_since, prn, pulp_href, base_url, base_path, hidden, pulp_created, pulp_labels].hash
217
217
  end
218
218
 
219
219
  # Builds the object from hash
@@ -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 the 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 the 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