pulp_python_client 3.11.0 → 3.12.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (73) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +30 -10
  3. data/docs/ContentPackagesApi.md +14 -12
  4. data/docs/DistributionsPypiApi.md +232 -0
  5. data/docs/MyPermissionsResponse.md +17 -0
  6. data/docs/NestedRole.md +21 -0
  7. data/docs/NestedRoleResponse.md +21 -0
  8. data/docs/ObjectRolesResponse.md +17 -0
  9. data/docs/PackageMetadataResponse.md +3 -3
  10. data/docs/PaginatedRepositoryVersionResponseList.md +2 -2
  11. data/docs/PaginatedpythonPythonDistributionResponseList.md +2 -2
  12. data/docs/PaginatedpythonPythonPackageContentResponseList.md +2 -2
  13. data/docs/PaginatedpythonPythonPublicationResponseList.md +2 -2
  14. data/docs/PaginatedpythonPythonRemoteResponseList.md +2 -2
  15. data/docs/PaginatedpythonPythonRepositoryResponseList.md +2 -2
  16. data/docs/PublicationsPypiApi.md +232 -0
  17. data/docs/PypiApi.md +7 -1
  18. data/docs/PypiMetadataApi.md +7 -1
  19. data/docs/PythonPythonDistributionResponse.md +2 -0
  20. data/docs/PythonPythonPackageContent.md +6 -6
  21. data/docs/PythonPythonPackageContentResponse.md +8 -6
  22. data/docs/PythonPythonPublicationResponse.md +2 -0
  23. data/docs/PythonPythonRemoteResponse.md +2 -2
  24. data/docs/PythonPythonRemoteResponseHiddenFields.md +2 -2
  25. data/docs/PythonPythonRepositoryResponse.md +2 -0
  26. data/docs/RemotesPythonApi.md +232 -0
  27. data/docs/RepositoriesPythonApi.md +232 -0
  28. data/docs/RepositoryVersionResponse.md +2 -0
  29. data/lib/pulp_python_client/api/content_packages_api.rb +15 -12
  30. data/lib/pulp_python_client/api/distributions_pypi_api.rb +276 -0
  31. data/lib/pulp_python_client/api/publications_pypi_api.rb +276 -0
  32. data/lib/pulp_python_client/api/pypi_api.rb +1 -1
  33. data/lib/pulp_python_client/api/pypi_metadata_api.rb +1 -1
  34. data/lib/pulp_python_client/api/remotes_python_api.rb +276 -0
  35. data/lib/pulp_python_client/api/repositories_python_api.rb +276 -0
  36. data/lib/pulp_python_client/models/my_permissions_response.rb +213 -0
  37. data/lib/pulp_python_client/models/nested_role.rb +253 -0
  38. data/lib/pulp_python_client/models/nested_role_response.rb +234 -0
  39. data/lib/pulp_python_client/models/object_roles_response.rb +213 -0
  40. data/lib/pulp_python_client/models/package_metadata_response.rb +3 -3
  41. data/lib/pulp_python_client/models/package_upload_task_response.rb +2 -10
  42. data/lib/pulp_python_client/models/paginated_repository_version_response_list.rb +10 -0
  43. data/lib/pulp_python_client/models/paginatedpython_python_distribution_response_list.rb +10 -0
  44. data/lib/pulp_python_client/models/paginatedpython_python_package_content_response_list.rb +10 -0
  45. data/lib/pulp_python_client/models/paginatedpython_python_publication_response_list.rb +10 -0
  46. data/lib/pulp_python_client/models/paginatedpython_python_remote_response_list.rb +10 -0
  47. data/lib/pulp_python_client/models/paginatedpython_python_repository_response_list.rb +10 -0
  48. data/lib/pulp_python_client/models/python_python_distribution_response.rb +11 -1
  49. data/lib/pulp_python_client/models/python_python_package_content.rb +6 -6
  50. data/lib/pulp_python_client/models/python_python_package_content_response.rb +17 -7
  51. data/lib/pulp_python_client/models/python_python_publication_response.rb +11 -1
  52. data/lib/pulp_python_client/models/python_python_remote_response.rb +11 -11
  53. data/lib/pulp_python_client/models/python_python_remote_response_hidden_fields.rb +10 -0
  54. data/lib/pulp_python_client/models/python_python_repository_response.rb +11 -1
  55. data/lib/pulp_python_client/models/repository_version_response.rb +11 -1
  56. data/lib/pulp_python_client/version.rb +1 -1
  57. data/lib/pulp_python_client.rb +4 -0
  58. data/spec/api/content_packages_api_spec.rb +7 -6
  59. data/spec/api/distributions_pypi_api_spec.rb +54 -0
  60. data/spec/api/publications_pypi_api_spec.rb +54 -0
  61. data/spec/api/remotes_python_api_spec.rb +54 -0
  62. data/spec/api/repositories_python_api_spec.rb +54 -0
  63. data/spec/models/my_permissions_response_spec.rb +41 -0
  64. data/spec/models/nested_role_response_spec.rb +53 -0
  65. data/spec/models/nested_role_spec.rb +53 -0
  66. data/spec/models/object_roles_response_spec.rb +41 -0
  67. data/spec/models/python_python_distribution_response_spec.rb +6 -0
  68. data/spec/models/python_python_package_content_response_spec.rb +6 -0
  69. data/spec/models/python_python_publication_response_spec.rb +6 -0
  70. data/spec/models/python_python_remote_response_spec.rb +6 -6
  71. data/spec/models/python_python_repository_response_spec.rb +6 -0
  72. data/spec/models/repository_version_response_spec.rb +6 -0
  73. metadata +52 -36
@@ -20,6 +20,9 @@ module PulpPythonClient
20
20
  # Timestamp of creation.
21
21
  attr_accessor :pulp_created
22
22
 
23
+ # Timestamp of the most recent update of the remote.
24
+ attr_accessor :pulp_last_updated
25
+
23
26
  # A unique name for this remote.
24
27
  attr_accessor :name
25
28
 
@@ -40,9 +43,6 @@ module PulpPythonClient
40
43
 
41
44
  attr_accessor :pulp_labels
42
45
 
43
- # Timestamp of the most recent update of the remote.
44
- attr_accessor :pulp_last_updated
45
-
46
46
  # Total number of simultaneous connections. If not set then the default value will be used.
47
47
  attr_accessor :download_concurrency
48
48
 
@@ -96,6 +96,7 @@ module PulpPythonClient
96
96
  {
97
97
  :'pulp_href' => :'pulp_href',
98
98
  :'pulp_created' => :'pulp_created',
99
+ :'pulp_last_updated' => :'pulp_last_updated',
99
100
  :'name' => :'name',
100
101
  :'url' => :'url',
101
102
  :'ca_cert' => :'ca_cert',
@@ -103,7 +104,6 @@ module PulpPythonClient
103
104
  :'tls_validation' => :'tls_validation',
104
105
  :'proxy_url' => :'proxy_url',
105
106
  :'pulp_labels' => :'pulp_labels',
106
- :'pulp_last_updated' => :'pulp_last_updated',
107
107
  :'download_concurrency' => :'download_concurrency',
108
108
  :'max_retries' => :'max_retries',
109
109
  :'policy' => :'policy',
@@ -128,6 +128,7 @@ module PulpPythonClient
128
128
  {
129
129
  :'pulp_href' => :'String',
130
130
  :'pulp_created' => :'DateTime',
131
+ :'pulp_last_updated' => :'DateTime',
131
132
  :'name' => :'String',
132
133
  :'url' => :'String',
133
134
  :'ca_cert' => :'String',
@@ -135,7 +136,6 @@ module PulpPythonClient
135
136
  :'tls_validation' => :'Boolean',
136
137
  :'proxy_url' => :'String',
137
138
  :'pulp_labels' => :'Hash<String, String>',
138
- :'pulp_last_updated' => :'DateTime',
139
139
  :'download_concurrency' => :'Integer',
140
140
  :'max_retries' => :'Integer',
141
141
  :'policy' => :'PolicyEnum',
@@ -194,6 +194,10 @@ module PulpPythonClient
194
194
  self.pulp_created = attributes[:'pulp_created']
195
195
  end
196
196
 
197
+ if attributes.key?(:'pulp_last_updated')
198
+ self.pulp_last_updated = attributes[:'pulp_last_updated']
199
+ end
200
+
197
201
  if attributes.key?(:'name')
198
202
  self.name = attributes[:'name']
199
203
  end
@@ -224,10 +228,6 @@ module PulpPythonClient
224
228
  end
225
229
  end
226
230
 
227
- if attributes.key?(:'pulp_last_updated')
228
- self.pulp_last_updated = attributes[:'pulp_last_updated']
229
- end
230
-
231
231
  if attributes.key?(:'download_concurrency')
232
232
  self.download_concurrency = attributes[:'download_concurrency']
233
233
  end
@@ -412,6 +412,7 @@ module PulpPythonClient
412
412
  self.class == o.class &&
413
413
  pulp_href == o.pulp_href &&
414
414
  pulp_created == o.pulp_created &&
415
+ pulp_last_updated == o.pulp_last_updated &&
415
416
  name == o.name &&
416
417
  url == o.url &&
417
418
  ca_cert == o.ca_cert &&
@@ -419,7 +420,6 @@ module PulpPythonClient
419
420
  tls_validation == o.tls_validation &&
420
421
  proxy_url == o.proxy_url &&
421
422
  pulp_labels == o.pulp_labels &&
422
- pulp_last_updated == o.pulp_last_updated &&
423
423
  download_concurrency == o.download_concurrency &&
424
424
  max_retries == o.max_retries &&
425
425
  policy == o.policy &&
@@ -447,7 +447,7 @@ module PulpPythonClient
447
447
  # Calculates hash code according to all attributes.
448
448
  # @return [Integer] Hash code
449
449
  def hash
450
- [pulp_href, pulp_created, name, url, ca_cert, client_cert, tls_validation, proxy_url, pulp_labels, pulp_last_updated, download_concurrency, max_retries, policy, total_timeout, connect_timeout, sock_connect_timeout, sock_read_timeout, headers, rate_limit, hidden_fields, includes, excludes, prereleases, package_types, keep_latest_packages, exclude_platforms].hash
450
+ [pulp_href, pulp_created, pulp_last_updated, name, url, ca_cert, client_cert, tls_validation, proxy_url, pulp_labels, download_concurrency, max_retries, policy, total_timeout, connect_timeout, sock_connect_timeout, sock_read_timeout, headers, rate_limit, hidden_fields, includes, excludes, prereleases, package_types, keep_latest_packages, exclude_platforms].hash
451
451
  end
452
452
 
453
453
  # Builds the object from hash
@@ -68,12 +68,22 @@ module PulpPythonClient
68
68
  # @return Array for valid properties with the reasons
69
69
  def list_invalid_properties
70
70
  invalid_properties = Array.new
71
+ if @name.nil?
72
+ invalid_properties.push('invalid value for "name", name cannot be nil.')
73
+ end
74
+
75
+ if @is_set.nil?
76
+ invalid_properties.push('invalid value for "is_set", is_set cannot be nil.')
77
+ end
78
+
71
79
  invalid_properties
72
80
  end
73
81
 
74
82
  # Check to see if the all the properties in the model are valid
75
83
  # @return true if the model is valid
76
84
  def valid?
85
+ return false if @name.nil?
86
+ return false if @is_set.nil?
77
87
  true
78
88
  end
79
89
 
@@ -20,6 +20,9 @@ module PulpPythonClient
20
20
  # Timestamp of creation.
21
21
  attr_accessor :pulp_created
22
22
 
23
+ # 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.
24
+ attr_accessor :pulp_last_updated
25
+
23
26
  attr_accessor :versions_href
24
27
 
25
28
  attr_accessor :pulp_labels
@@ -46,6 +49,7 @@ module PulpPythonClient
46
49
  {
47
50
  :'pulp_href' => :'pulp_href',
48
51
  :'pulp_created' => :'pulp_created',
52
+ :'pulp_last_updated' => :'pulp_last_updated',
49
53
  :'versions_href' => :'versions_href',
50
54
  :'pulp_labels' => :'pulp_labels',
51
55
  :'latest_version_href' => :'latest_version_href',
@@ -62,6 +66,7 @@ module PulpPythonClient
62
66
  {
63
67
  :'pulp_href' => :'String',
64
68
  :'pulp_created' => :'DateTime',
69
+ :'pulp_last_updated' => :'DateTime',
65
70
  :'versions_href' => :'String',
66
71
  :'pulp_labels' => :'Hash<String, String>',
67
72
  :'latest_version_href' => :'String',
@@ -105,6 +110,10 @@ module PulpPythonClient
105
110
  self.pulp_created = attributes[:'pulp_created']
106
111
  end
107
112
 
113
+ if attributes.key?(:'pulp_last_updated')
114
+ self.pulp_last_updated = attributes[:'pulp_last_updated']
115
+ end
116
+
108
117
  if attributes.key?(:'versions_href')
109
118
  self.versions_href = attributes[:'versions_href']
110
119
  end
@@ -182,6 +191,7 @@ module PulpPythonClient
182
191
  self.class == o.class &&
183
192
  pulp_href == o.pulp_href &&
184
193
  pulp_created == o.pulp_created &&
194
+ pulp_last_updated == o.pulp_last_updated &&
185
195
  versions_href == o.versions_href &&
186
196
  pulp_labels == o.pulp_labels &&
187
197
  latest_version_href == o.latest_version_href &&
@@ -201,7 +211,7 @@ module PulpPythonClient
201
211
  # Calculates hash code according to all attributes.
202
212
  # @return [Integer] Hash code
203
213
  def hash
204
- [pulp_href, pulp_created, versions_href, pulp_labels, latest_version_href, name, description, retain_repo_versions, remote, autopublish].hash
214
+ [pulp_href, pulp_created, pulp_last_updated, versions_href, pulp_labels, latest_version_href, name, description, retain_repo_versions, remote, autopublish].hash
205
215
  end
206
216
 
207
217
  # Builds the object from hash
@@ -20,6 +20,9 @@ module PulpPythonClient
20
20
  # Timestamp of creation.
21
21
  attr_accessor :pulp_created
22
22
 
23
+ # 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.
24
+ attr_accessor :pulp_last_updated
25
+
23
26
  attr_accessor :number
24
27
 
25
28
  attr_accessor :repository
@@ -35,6 +38,7 @@ module PulpPythonClient
35
38
  {
36
39
  :'pulp_href' => :'pulp_href',
37
40
  :'pulp_created' => :'pulp_created',
41
+ :'pulp_last_updated' => :'pulp_last_updated',
38
42
  :'number' => :'number',
39
43
  :'repository' => :'repository',
40
44
  :'base_version' => :'base_version',
@@ -47,6 +51,7 @@ module PulpPythonClient
47
51
  {
48
52
  :'pulp_href' => :'String',
49
53
  :'pulp_created' => :'DateTime',
54
+ :'pulp_last_updated' => :'DateTime',
50
55
  :'number' => :'Integer',
51
56
  :'repository' => :'String',
52
57
  :'base_version' => :'String',
@@ -83,6 +88,10 @@ module PulpPythonClient
83
88
  self.pulp_created = attributes[:'pulp_created']
84
89
  end
85
90
 
91
+ if attributes.key?(:'pulp_last_updated')
92
+ self.pulp_last_updated = attributes[:'pulp_last_updated']
93
+ end
94
+
86
95
  if attributes.key?(:'number')
87
96
  self.number = attributes[:'number']
88
97
  end
@@ -120,6 +129,7 @@ module PulpPythonClient
120
129
  self.class == o.class &&
121
130
  pulp_href == o.pulp_href &&
122
131
  pulp_created == o.pulp_created &&
132
+ pulp_last_updated == o.pulp_last_updated &&
123
133
  number == o.number &&
124
134
  repository == o.repository &&
125
135
  base_version == o.base_version &&
@@ -135,7 +145,7 @@ module PulpPythonClient
135
145
  # Calculates hash code according to all attributes.
136
146
  # @return [Integer] Hash code
137
147
  def hash
138
- [pulp_href, pulp_created, number, repository, base_version, content_summary].hash
148
+ [pulp_href, pulp_created, pulp_last_updated, number, repository, base_version, content_summary].hash
139
149
  end
140
150
 
141
151
  # Builds the object from hash
@@ -11,5 +11,5 @@ OpenAPI Generator version: 4.3.1
11
11
  =end
12
12
 
13
13
  module PulpPythonClient
14
- VERSION = '3.11.0'
14
+ VERSION = '3.12.0'
15
15
  end
@@ -20,6 +20,10 @@ require 'pulp_python_client/configuration'
20
20
  require 'pulp_python_client/models/async_operation_response'
21
21
  require 'pulp_python_client/models/content_summary_response'
22
22
  require 'pulp_python_client/models/exclude_platforms_enum'
23
+ require 'pulp_python_client/models/my_permissions_response'
24
+ require 'pulp_python_client/models/nested_role'
25
+ require 'pulp_python_client/models/nested_role_response'
26
+ require 'pulp_python_client/models/object_roles_response'
23
27
  require 'pulp_python_client/models/package_metadata_response'
24
28
  require 'pulp_python_client/models/package_types_enum'
25
29
  require 'pulp_python_client/models/package_upload'
@@ -55,14 +55,14 @@ describe 'ContentPackagesApi' do
55
55
  # @option opts [String] :license Text indicating the license covering the distribution
56
56
  # @option opts [String] :requires_python The Python version(s) that the distribution is guaranteed to be compatible with.
57
57
  # @option opts [String] :project_url A browsable URL for the project and a label for it, separated by a comma.
58
- # @option opts [Object] :project_urls A dictionary of labels and URLs for the project.
58
+ # @option opts [AnyType] :project_urls A dictionary of labels and URLs for the project.
59
59
  # @option opts [String] :platform A comma-separated list of platform specifications, summarizing the operating systems supported by the package.
60
60
  # @option opts [String] :supported_platform Field to specify the OS and CPU for which the binary package was compiled.
61
- # @option opts [Object] :requires_dist A JSON list containing names of some other distutils project required by this distribution.
62
- # @option opts [Object] :provides_dist A JSON list containing names of a Distutils project which is contained within this distribution.
63
- # @option opts [Object] :obsoletes_dist A JSON list containing names of a distutils project&#39;s distribution which this distribution renders obsolete, meaning that the two projects should not be installed at the same time.
64
- # @option opts [Object] :requires_external A JSON list containing some dependency in the system that the distribution is to be used.
65
- # @option opts [Object] :classifiers A JSON list containing classification values for a Python package.
61
+ # @option opts [AnyType] :requires_dist A JSON list containing names of some other distutils project required by this distribution.
62
+ # @option opts [AnyType] :provides_dist A JSON list containing names of a Distutils project which is contained within this distribution.
63
+ # @option opts [AnyType] :obsoletes_dist A JSON list containing names of a distutils project&#39;s distribution which this distribution renders obsolete, meaning that the two projects should not be installed at the same time.
64
+ # @option opts [AnyType] :requires_external A JSON list containing some dependency in the system that the distribution is to be used.
65
+ # @option opts [AnyType] :classifiers A JSON list containing classification values for a Python package.
66
66
  # @return [AsyncOperationResponse]
67
67
  describe 'create test' do
68
68
  it 'should work' do
@@ -86,6 +86,7 @@ describe 'ContentPackagesApi' do
86
86
  # @option opts [Array<String>] :name__in Filter results where name is in a comma-separated list of values
87
87
  # @option opts [Integer] :offset The initial index from which to return the results.
88
88
  # @option opts [Array<String>] :ordering Ordering * &#x60;pulp_id&#x60; - Pulp id * &#x60;-pulp_id&#x60; - Pulp id (descending) * &#x60;pulp_created&#x60; - Pulp created * &#x60;-pulp_created&#x60; - Pulp created (descending) * &#x60;pulp_last_updated&#x60; - Pulp last updated * &#x60;-pulp_last_updated&#x60; - Pulp last updated (descending) * &#x60;pulp_type&#x60; - Pulp type * &#x60;-pulp_type&#x60; - Pulp type (descending) * &#x60;upstream_id&#x60; - Upstream id * &#x60;-upstream_id&#x60; - Upstream id (descending) * &#x60;timestamp_of_interest&#x60; - Timestamp of interest * &#x60;-timestamp_of_interest&#x60; - Timestamp of interest (descending) * &#x60;filename&#x60; - Filename * &#x60;-filename&#x60; - Filename (descending) * &#x60;packagetype&#x60; - Packagetype * &#x60;-packagetype&#x60; - Packagetype (descending) * &#x60;name&#x60; - Name * &#x60;-name&#x60; - Name (descending) * &#x60;version&#x60; - Version * &#x60;-version&#x60; - Version (descending) * &#x60;sha256&#x60; - Sha256 * &#x60;-sha256&#x60; - Sha256 (descending) * &#x60;python_version&#x60; - Python version * &#x60;-python_version&#x60; - Python version (descending) * &#x60;metadata_version&#x60; - Metadata version * &#x60;-metadata_version&#x60; - Metadata version (descending) * &#x60;summary&#x60; - Summary * &#x60;-summary&#x60; - Summary (descending) * &#x60;description&#x60; - Description * &#x60;-description&#x60; - Description (descending) * &#x60;keywords&#x60; - Keywords * &#x60;-keywords&#x60; - Keywords (descending) * &#x60;home_page&#x60; - Home page * &#x60;-home_page&#x60; - Home page (descending) * &#x60;download_url&#x60; - Download url * &#x60;-download_url&#x60; - Download url (descending) * &#x60;author&#x60; - Author * &#x60;-author&#x60; - Author (descending) * &#x60;author_email&#x60; - Author email * &#x60;-author_email&#x60; - Author email (descending) * &#x60;maintainer&#x60; - Maintainer * &#x60;-maintainer&#x60; - Maintainer (descending) * &#x60;maintainer_email&#x60; - Maintainer email * &#x60;-maintainer_email&#x60; - Maintainer email (descending) * &#x60;license&#x60; - License * &#x60;-license&#x60; - License (descending) * &#x60;requires_python&#x60; - Requires python * &#x60;-requires_python&#x60; - Requires python (descending) * &#x60;project_url&#x60; - Project url * &#x60;-project_url&#x60; - Project url (descending) * &#x60;platform&#x60; - Platform * &#x60;-platform&#x60; - Platform (descending) * &#x60;supported_platform&#x60; - Supported platform * &#x60;-supported_platform&#x60; - Supported platform (descending) * &#x60;requires_dist&#x60; - Requires dist * &#x60;-requires_dist&#x60; - Requires dist (descending) * &#x60;provides_dist&#x60; - Provides dist * &#x60;-provides_dist&#x60; - Provides dist (descending) * &#x60;obsoletes_dist&#x60; - Obsoletes dist * &#x60;-obsoletes_dist&#x60; - Obsoletes dist (descending) * &#x60;requires_external&#x60; - Requires external * &#x60;-requires_external&#x60; - Requires external (descending) * &#x60;classifiers&#x60; - Classifiers * &#x60;-classifiers&#x60; - Classifiers (descending) * &#x60;project_urls&#x60; - Project urls * &#x60;-project_urls&#x60; - Project urls (descending) * &#x60;description_content_type&#x60; - Description content type * &#x60;-description_content_type&#x60; - Description content type (descending) * &#x60;pk&#x60; - Pk * &#x60;-pk&#x60; - Pk (descending)
89
+ # @option opts [Float] :orphaned_for Minutes Content has been orphaned for. -1 uses ORPHAN_PROTECTION_TIME.
89
90
  # @option opts [String] :packagetype Filter results where packagetype matches value * &#x60;bdist_dmg&#x60; - bdist_dmg * &#x60;bdist_dumb&#x60; - bdist_dumb * &#x60;bdist_egg&#x60; - bdist_egg * &#x60;bdist_msi&#x60; - bdist_msi * &#x60;bdist_rpm&#x60; - bdist_rpm * &#x60;bdist_wheel&#x60; - bdist_wheel * &#x60;bdist_wininst&#x60; - bdist_wininst * &#x60;sdist&#x60; - sdist
90
91
  # @option opts [Array<String>] :packagetype__in Filter results where packagetype is in a comma-separated list of values
91
92
  # @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
@@ -32,6 +32,19 @@ describe 'DistributionsPypiApi' do
32
32
  end
33
33
  end
34
34
 
35
+ # unit tests for add_role
36
+ # Add a role
37
+ # Add a role for this object to users/groups.
38
+ # @param python_python_distribution_href
39
+ # @param nested_role
40
+ # @param [Hash] opts the optional parameters
41
+ # @return [NestedRoleResponse]
42
+ describe 'add_role test' do
43
+ it 'should work' do
44
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
45
+ end
46
+ end
47
+
35
48
  # unit tests for create
36
49
  # Create a python distribution
37
50
  # Trigger an asynchronous create task
@@ -92,6 +105,34 @@ describe 'DistributionsPypiApi' do
92
105
  end
93
106
  end
94
107
 
108
+ # unit tests for list_roles
109
+ # List roles
110
+ # List roles assigned to this object.
111
+ # @param python_python_distribution_href
112
+ # @param [Hash] opts the optional parameters
113
+ # @option opts [Array<String>] :fields A list of fields to include in the response.
114
+ # @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
115
+ # @return [ObjectRolesResponse]
116
+ describe 'list_roles test' do
117
+ it 'should work' do
118
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
119
+ end
120
+ end
121
+
122
+ # unit tests for my_permissions
123
+ # List user permissions
124
+ # List permissions available to the current user on this object.
125
+ # @param python_python_distribution_href
126
+ # @param [Hash] opts the optional parameters
127
+ # @option opts [Array<String>] :fields A list of fields to include in the response.
128
+ # @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
129
+ # @return [MyPermissionsResponse]
130
+ describe 'my_permissions test' do
131
+ it 'should work' do
132
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
133
+ end
134
+ end
135
+
95
136
  # unit tests for partial_update
96
137
  # Update a python distribution
97
138
  # Trigger an asynchronous partial update task
@@ -119,6 +160,19 @@ describe 'DistributionsPypiApi' do
119
160
  end
120
161
  end
121
162
 
163
+ # unit tests for remove_role
164
+ # Remove a role
165
+ # Remove a role for this object from users/groups.
166
+ # @param python_python_distribution_href
167
+ # @param nested_role
168
+ # @param [Hash] opts the optional parameters
169
+ # @return [NestedRoleResponse]
170
+ describe 'remove_role test' do
171
+ it 'should work' do
172
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
173
+ end
174
+ end
175
+
122
176
  # unit tests for set_label
123
177
  # Set a label
124
178
  # Set a single pulp_label on the object to a specific value or null.
@@ -32,6 +32,19 @@ describe 'PublicationsPypiApi' do
32
32
  end
33
33
  end
34
34
 
35
+ # unit tests for add_role
36
+ # Add a role
37
+ # Add a role for this object to users/groups.
38
+ # @param python_python_publication_href
39
+ # @param nested_role
40
+ # @param [Hash] opts the optional parameters
41
+ # @return [NestedRoleResponse]
42
+ describe 'add_role test' do
43
+ it 'should work' do
44
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
45
+ end
46
+ end
47
+
35
48
  # unit tests for create
36
49
  # Create a python publication
37
50
  # Dispatches a publish task, which generates metadata that will be used by pip.
@@ -85,6 +98,34 @@ describe 'PublicationsPypiApi' do
85
98
  end
86
99
  end
87
100
 
101
+ # unit tests for list_roles
102
+ # List roles
103
+ # List roles assigned to this object.
104
+ # @param python_python_publication_href
105
+ # @param [Hash] opts the optional parameters
106
+ # @option opts [Array<String>] :fields A list of fields to include in the response.
107
+ # @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
108
+ # @return [ObjectRolesResponse]
109
+ describe 'list_roles test' do
110
+ it 'should work' do
111
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
112
+ end
113
+ end
114
+
115
+ # unit tests for my_permissions
116
+ # List user permissions
117
+ # List permissions available to the current user on this object.
118
+ # @param python_python_publication_href
119
+ # @param [Hash] opts the optional parameters
120
+ # @option opts [Array<String>] :fields A list of fields to include in the response.
121
+ # @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
122
+ # @return [MyPermissionsResponse]
123
+ describe 'my_permissions test' do
124
+ it 'should work' do
125
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
126
+ end
127
+ end
128
+
88
129
  # unit tests for read
89
130
  # Inspect a python publication
90
131
  # Python Publications refer to the Python Package content in a repository version, and include metadata about that content.
@@ -99,4 +140,17 @@ describe 'PublicationsPypiApi' do
99
140
  end
100
141
  end
101
142
 
143
+ # unit tests for remove_role
144
+ # Remove a role
145
+ # Remove a role for this object from users/groups.
146
+ # @param python_python_publication_href
147
+ # @param nested_role
148
+ # @param [Hash] opts the optional parameters
149
+ # @return [NestedRoleResponse]
150
+ describe 'remove_role test' do
151
+ it 'should work' do
152
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
153
+ end
154
+ end
155
+
102
156
  end
@@ -32,6 +32,19 @@ describe 'RemotesPythonApi' do
32
32
  end
33
33
  end
34
34
 
35
+ # unit tests for add_role
36
+ # Add a role
37
+ # Add a role for this object to users/groups.
38
+ # @param python_python_remote_href
39
+ # @param nested_role
40
+ # @param [Hash] opts the optional parameters
41
+ # @return [NestedRoleResponse]
42
+ describe 'add_role test' do
43
+ it 'should work' do
44
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
45
+ end
46
+ end
47
+
35
48
  # unit tests for create
36
49
  # Create a python remote
37
50
  # Python Remotes are representations of an external repository of Python content, eg. PyPI. Fields include upstream repository config. Python Remotes are also used to &#x60;sync&#x60; from upstream repositories, and contains sync settings.
@@ -105,6 +118,34 @@ describe 'RemotesPythonApi' do
105
118
  end
106
119
  end
107
120
 
121
+ # unit tests for list_roles
122
+ # List roles
123
+ # List roles assigned to this object.
124
+ # @param python_python_remote_href
125
+ # @param [Hash] opts the optional parameters
126
+ # @option opts [Array<String>] :fields A list of fields to include in the response.
127
+ # @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
128
+ # @return [ObjectRolesResponse]
129
+ describe 'list_roles test' do
130
+ it 'should work' do
131
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
132
+ end
133
+ end
134
+
135
+ # unit tests for my_permissions
136
+ # List user permissions
137
+ # List permissions available to the current user on this object.
138
+ # @param python_python_remote_href
139
+ # @param [Hash] opts the optional parameters
140
+ # @option opts [Array<String>] :fields A list of fields to include in the response.
141
+ # @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
142
+ # @return [MyPermissionsResponse]
143
+ describe 'my_permissions test' do
144
+ it 'should work' do
145
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
146
+ end
147
+ end
148
+
108
149
  # unit tests for partial_update
109
150
  # Update a python remote
110
151
  # Trigger an asynchronous partial update task
@@ -132,6 +173,19 @@ describe 'RemotesPythonApi' do
132
173
  end
133
174
  end
134
175
 
176
+ # unit tests for remove_role
177
+ # Remove a role
178
+ # Remove a role for this object from users/groups.
179
+ # @param python_python_remote_href
180
+ # @param nested_role
181
+ # @param [Hash] opts the optional parameters
182
+ # @return [NestedRoleResponse]
183
+ describe 'remove_role test' do
184
+ it 'should work' do
185
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
186
+ end
187
+ end
188
+
135
189
  # unit tests for set_label
136
190
  # Set a label
137
191
  # Set a single pulp_label on the object to a specific value or null.
@@ -32,6 +32,19 @@ describe 'RepositoriesPythonApi' do
32
32
  end
33
33
  end
34
34
 
35
+ # unit tests for add_role
36
+ # Add a role
37
+ # Add a role for this object to users/groups.
38
+ # @param python_python_repository_href
39
+ # @param nested_role
40
+ # @param [Hash] opts the optional parameters
41
+ # @return [NestedRoleResponse]
42
+ describe 'add_role test' do
43
+ it 'should work' do
44
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
45
+ end
46
+ end
47
+
35
48
  # unit tests for create
36
49
  # Create a python repository
37
50
  # PythonRepository represents a single Python repository, to which content can be synced, added, or removed.
@@ -96,6 +109,20 @@ describe 'RepositoriesPythonApi' do
96
109
  end
97
110
  end
98
111
 
112
+ # unit tests for list_roles
113
+ # List roles
114
+ # List roles assigned to this object.
115
+ # @param python_python_repository_href
116
+ # @param [Hash] opts the optional parameters
117
+ # @option opts [Array<String>] :fields A list of fields to include in the response.
118
+ # @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
119
+ # @return [ObjectRolesResponse]
120
+ describe 'list_roles test' do
121
+ it 'should work' do
122
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
123
+ end
124
+ end
125
+
99
126
  # unit tests for modify
100
127
  # Modify Repository Content
101
128
  # Trigger an asynchronous task to create a new repository version.
@@ -109,6 +136,20 @@ describe 'RepositoriesPythonApi' do
109
136
  end
110
137
  end
111
138
 
139
+ # unit tests for my_permissions
140
+ # List user permissions
141
+ # List permissions available to the current user on this object.
142
+ # @param python_python_repository_href
143
+ # @param [Hash] opts the optional parameters
144
+ # @option opts [Array<String>] :fields A list of fields to include in the response.
145
+ # @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
146
+ # @return [MyPermissionsResponse]
147
+ describe 'my_permissions test' do
148
+ it 'should work' do
149
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
150
+ end
151
+ end
152
+
112
153
  # unit tests for partial_update
113
154
  # Update a python repository
114
155
  # Trigger an asynchronous partial update task
@@ -136,6 +177,19 @@ describe 'RepositoriesPythonApi' do
136
177
  end
137
178
  end
138
179
 
180
+ # unit tests for remove_role
181
+ # Remove a role
182
+ # Remove a role for this object from users/groups.
183
+ # @param python_python_repository_href
184
+ # @param nested_role
185
+ # @param [Hash] opts the optional parameters
186
+ # @return [NestedRoleResponse]
187
+ describe 'remove_role test' do
188
+ it 'should work' do
189
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
190
+ end
191
+ end
192
+
139
193
  # unit tests for set_label
140
194
  # Set a label
141
195
  # Set a single pulp_label on the object to a specific value or null.
@@ -0,0 +1,41 @@
1
+ =begin
2
+ #Pulp 3 API
3
+
4
+ #Fetch, Upload, Organize, and Distribute Software Packages
5
+
6
+ The version of the OpenAPI document: v3
7
+ Contact: pulp-list@redhat.com
8
+ Generated by: https://openapi-generator.tech
9
+ OpenAPI Generator version: 4.3.1
10
+
11
+ =end
12
+
13
+ require 'spec_helper'
14
+ require 'json'
15
+ require 'date'
16
+
17
+ # Unit tests for PulpPythonClient::MyPermissionsResponse
18
+ # Automatically generated by openapi-generator (https://openapi-generator.tech)
19
+ # Please update as you see appropriate
20
+ describe 'MyPermissionsResponse' do
21
+ before do
22
+ # run before each test
23
+ @instance = PulpPythonClient::MyPermissionsResponse.new
24
+ end
25
+
26
+ after do
27
+ # run after each test
28
+ end
29
+
30
+ describe 'test an instance of MyPermissionsResponse' do
31
+ it 'should create an instance of MyPermissionsResponse' do
32
+ expect(@instance).to be_instance_of(PulpPythonClient::MyPermissionsResponse)
33
+ end
34
+ end
35
+ describe 'test attribute "permissions"' do
36
+ it 'should work' do
37
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
38
+ end
39
+ end
40
+
41
+ end