pulpcore_client 3.77.1 → 3.79.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: a84a72eb83596c6ec7a5c6279504d830ae3f2f1df482399a16db4d4372b2dfdf
4
- data.tar.gz: b93f6eb8a96f8cca23226edad8d9d7e47015d001f431a4090edddccc20aa8619
3
+ metadata.gz: '0683e53933c2aa9677a678bb76480842134daa4538f368321102ed0b75a5bed2'
4
+ data.tar.gz: 1e164a963d42a27bbb68ccb261ec169809edb2c0a22317bce16e3b5b5f856ddb
5
5
  SHA512:
6
- metadata.gz: 6c7b551ba37b288f204892646d02783a660a6a03536d1fa0d84225960a511f34b878addd96cc32532f0832c57bb6658157dc5c2d59d9cb0ec0f07f3f015f574b
7
- data.tar.gz: 73a6b08248b5ae6f2ab5f196ed5dd6bf33cf7a7f63db06fb64c75f79ab8f97b81a501abcb6df10b4fadbb8cdaaab1ee1eb4c472b47bebde749aff79eaf28df3b
6
+ metadata.gz: 2fda584b0d81934e709a74974eeb4d3dde12e0a09eab81b3020f2e0866b2d7307bd42fbc696c4a1151d2bd7cea8d87d6ceb8cc2637850ea3248e18f109e962b3
7
+ data.tar.gz: ac0e647f6e0e3657a94a5640d6f3b3c1c352312e2fc90fe4e2258255835be3732b9730bba6767fa59627cc3c1e9786ab37fa8df988c1837bd5c9eef481286fcc
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.1
10
+ - Package version: 3.79.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.1.gem
28
+ gem install ./pulpcore_client-3.79.0.gem
29
29
  ```
30
30
 
31
- (for development, run `gem install --dev ./pulpcore_client-3.77.1.gem` to install the development dependencies)
31
+ (for development, run `gem install --dev ./pulpcore_client-3.79.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.1'
37
+ gem 'pulpcore_client', '~> 3.79.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] |
8
7
  | **name** | **String** | A unique name. Ex, `rawhide` and `stable`. | |
8
+ | **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\") | |
9
+ | **pulp_labels** | **Hash<String, String>** | | [optional] |
10
+ | **hidden** | **Boolean** | Whether this distribution should be shown in the content app. | [optional][default to false] |
11
+ | **pulp_href** | **String** | | [optional][readonly] |
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] |
9
14
  | **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
- | **prn** | **String** | The Pulp Resource Name (PRN). | [optional][readonly] |
11
15
  | **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] |
12
- | **pulp_labels** | **Hash<String, String>** | | [optional] |
13
16
  | **content_guard** | **String** | An optional content-guard. | [optional] |
14
- | **base_url** | **String** | The URL for accessing the publication as defined by this distribution. | [optional][readonly] |
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_created** | **Time** | Timestamp of creation. | [optional][readonly] |
17
- | **hidden** | **Boolean** | Whether this distribution should be shown in the content app. | [optional][default to false] |
17
+ | **prn** | **String** | The Pulp Resource Name (PRN). | [optional][readonly] |
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,
26
25
  name: null,
26
+ base_path: null,
27
+ pulp_labels: null,
28
+ hidden: null,
29
+ pulp_href: null,
30
+ pulp_created: null,
31
+ base_url: null,
27
32
  pulp_last_updated: null,
28
- prn: null,
29
33
  no_content_change_since: null,
30
- pulp_labels: null,
31
34
  content_guard: null,
32
- base_url: null,
33
- base_path: null,
34
- pulp_created: null,
35
- hidden: null
35
+ prn: 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
20
-
21
19
  # A unique name. Ex, `rawhide` and `stable`.
22
20
  attr_accessor :name
23
21
 
24
- # 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.
25
- attr_accessor :pulp_last_updated
22
+ # The base (relative) path component of the published url. Avoid paths that overlap with other distribution base paths (e.g. \"foo\" and \"foo/bar\")
23
+ attr_accessor :base_path
26
24
 
27
- # The Pulp Resource Name (PRN).
28
- attr_accessor :prn
25
+ attr_accessor :pulp_labels
29
26
 
30
- # Timestamp since when the distributed content served by this distribution has not changed. If equals to `null`, no guarantee is provided about content changes.
31
- attr_accessor :no_content_change_since
27
+ # Whether this distribution should be shown in the content app.
28
+ attr_accessor :hidden
32
29
 
33
- attr_accessor :pulp_labels
30
+ attr_accessor :pulp_href
34
31
 
35
- # An optional content-guard.
36
- attr_accessor :content_guard
32
+ # Timestamp of creation.
33
+ attr_accessor :pulp_created
37
34
 
38
35
  # The URL for accessing the publication as defined by this distribution.
39
36
  attr_accessor :base_url
40
37
 
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
38
+ # 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.
39
+ attr_accessor :pulp_last_updated
43
40
 
44
- # Timestamp of creation.
45
- attr_accessor :pulp_created
41
+ # Timestamp since when the distributed content served by this distribution has not changed. If equals to `null`, no guarantee is provided about content changes.
42
+ attr_accessor :no_content_change_since
46
43
 
47
- # Whether this distribution should be shown in the content app.
48
- attr_accessor :hidden
44
+ # An optional content-guard.
45
+ attr_accessor :content_guard
46
+
47
+ # The Pulp Resource Name (PRN).
48
+ attr_accessor :prn
49
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',
54
53
  :'name' => :'name',
54
+ :'base_path' => :'base_path',
55
+ :'pulp_labels' => :'pulp_labels',
56
+ :'hidden' => :'hidden',
57
+ :'pulp_href' => :'pulp_href',
58
+ :'pulp_created' => :'pulp_created',
59
+ :'base_url' => :'base_url',
55
60
  :'pulp_last_updated' => :'pulp_last_updated',
56
- :'prn' => :'prn',
57
61
  :'no_content_change_since' => :'no_content_change_since',
58
- :'pulp_labels' => :'pulp_labels',
59
62
  :'content_guard' => :'content_guard',
60
- :'base_url' => :'base_url',
61
- :'base_path' => :'base_path',
62
- :'pulp_created' => :'pulp_created',
63
- :'hidden' => :'hidden'
63
+ :'prn' => :'prn'
64
64
  }
65
65
  end
66
66
 
@@ -72,17 +72,17 @@ module PulpcoreClient
72
72
  # Attribute type mapping.
73
73
  def self.openapi_types
74
74
  {
75
- :'pulp_href' => :'String',
76
75
  :'name' => :'String',
76
+ :'base_path' => :'String',
77
+ :'pulp_labels' => :'Hash<String, String>',
78
+ :'hidden' => :'Boolean',
79
+ :'pulp_href' => :'String',
80
+ :'pulp_created' => :'Time',
81
+ :'base_url' => :'String',
77
82
  :'pulp_last_updated' => :'Time',
78
- :'prn' => :'String',
79
83
  :'no_content_change_since' => :'String',
80
- :'pulp_labels' => :'Hash<String, String>',
81
84
  :'content_guard' => :'String',
82
- :'base_url' => :'String',
83
- :'base_path' => :'String',
84
- :'pulp_created' => :'Time',
85
- :'hidden' => :'Boolean'
85
+ :'prn' => :'String'
86
86
  }
87
87
  end
88
88
 
@@ -108,26 +108,16 @@ 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']
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_last_updated')
122
- self.pulp_last_updated = attributes[:'pulp_last_updated']
123
- end
124
-
125
- if attributes.key?(:'prn')
126
- self.prn = attributes[:'prn']
127
- end
128
-
129
- if attributes.key?(:'no_content_change_since')
130
- self.no_content_change_since = attributes[:'no_content_change_since']
117
+ if attributes.key?(:'base_path')
118
+ self.base_path = attributes[:'base_path']
119
+ else
120
+ self.base_path = nil
131
121
  end
132
122
 
133
123
  if attributes.key?(:'pulp_labels')
@@ -136,28 +126,38 @@ module PulpcoreClient
136
126
  end
137
127
  end
138
128
 
139
- if attributes.key?(:'content_guard')
140
- self.content_guard = attributes[:'content_guard']
129
+ if attributes.key?(:'hidden')
130
+ self.hidden = attributes[:'hidden']
131
+ else
132
+ self.hidden = false
133
+ end
134
+
135
+ if attributes.key?(:'pulp_href')
136
+ self.pulp_href = attributes[:'pulp_href']
137
+ end
138
+
139
+ if attributes.key?(:'pulp_created')
140
+ self.pulp_created = attributes[:'pulp_created']
141
141
  end
142
142
 
143
143
  if attributes.key?(:'base_url')
144
144
  self.base_url = attributes[:'base_url']
145
145
  end
146
146
 
147
- if attributes.key?(:'base_path')
148
- self.base_path = attributes[:'base_path']
149
- else
150
- self.base_path = nil
147
+ if attributes.key?(:'pulp_last_updated')
148
+ self.pulp_last_updated = attributes[:'pulp_last_updated']
151
149
  end
152
150
 
153
- if attributes.key?(:'pulp_created')
154
- self.pulp_created = attributes[:'pulp_created']
151
+ if attributes.key?(:'no_content_change_since')
152
+ self.no_content_change_since = attributes[:'no_content_change_since']
155
153
  end
156
154
 
157
- if attributes.key?(:'hidden')
158
- self.hidden = attributes[:'hidden']
159
- else
160
- self.hidden = false
155
+ if attributes.key?(:'content_guard')
156
+ self.content_guard = attributes[:'content_guard']
157
+ end
158
+
159
+ if attributes.key?(:'prn')
160
+ self.prn = attributes[:'prn']
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
- pulp_href == o.pulp_href &&
195
194
  name == o.name &&
195
+ base_path == o.base_path &&
196
+ pulp_labels == o.pulp_labels &&
197
+ hidden == o.hidden &&
198
+ pulp_href == o.pulp_href &&
199
+ pulp_created == o.pulp_created &&
200
+ base_url == o.base_url &&
196
201
  pulp_last_updated == o.pulp_last_updated &&
197
- prn == o.prn &&
198
202
  no_content_change_since == o.no_content_change_since &&
199
- pulp_labels == o.pulp_labels &&
200
203
  content_guard == o.content_guard &&
201
- base_url == o.base_url &&
202
- base_path == o.base_path &&
203
- pulp_created == o.pulp_created &&
204
- hidden == o.hidden
204
+ prn == o.prn
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, pulp_last_updated, prn, no_content_change_since, pulp_labels, content_guard, base_url, base_path, pulp_created, hidden].hash
216
+ [name, base_path, pulp_labels, hidden, pulp_href, pulp_created, base_url, pulp_last_updated, no_content_change_since, content_guard, prn].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