pulp_gem_client 0.1.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.
Files changed (113) hide show
  1. checksums.yaml +7 -0
  2. data/Gemfile +9 -0
  3. data/README.md +160 -0
  4. data/Rakefile +10 -0
  5. data/docs/AsyncOperationResponse.md +17 -0
  6. data/docs/ContentGemApi.md +210 -0
  7. data/docs/ContentSummaryResponse.md +21 -0
  8. data/docs/DistributionsGemApi.md +382 -0
  9. data/docs/GemGemContent.md +21 -0
  10. data/docs/GemGemContentResponse.md +35 -0
  11. data/docs/GemGemDistribution.md +31 -0
  12. data/docs/GemGemDistributionResponse.md +37 -0
  13. data/docs/GemGemPublication.md +19 -0
  14. data/docs/GemGemPublicationResponse.md +23 -0
  15. data/docs/GemGemRemote.md +63 -0
  16. data/docs/GemGemRemoteResponse.md +61 -0
  17. data/docs/GemGemRemoteResponseHiddenFields.md +19 -0
  18. data/docs/GemGemRepository.md +25 -0
  19. data/docs/GemGemRepositoryResponse.md +33 -0
  20. data/docs/PaginatedRepositoryVersionResponseList.md +23 -0
  21. data/docs/PaginatedgemGemContentResponseList.md +23 -0
  22. data/docs/PaginatedgemGemDistributionResponseList.md +23 -0
  23. data/docs/PaginatedgemGemPublicationResponseList.md +23 -0
  24. data/docs/PaginatedgemGemRemoteResponseList.md +23 -0
  25. data/docs/PaginatedgemGemRepositoryResponseList.md +23 -0
  26. data/docs/PatchedgemGemDistribution.md +31 -0
  27. data/docs/PatchedgemGemRemote.md +63 -0
  28. data/docs/PatchedgemGemRepository.md +25 -0
  29. data/docs/PolicyEnum.md +16 -0
  30. data/docs/PublicationsGemApi.md +263 -0
  31. data/docs/RemotesGemApi.md +380 -0
  32. data/docs/Repair.md +17 -0
  33. data/docs/RepositoriesGemApi.md +502 -0
  34. data/docs/RepositoriesGemVersionsApi.md +273 -0
  35. data/docs/RepositoryAddRemoveContent.md +21 -0
  36. data/docs/RepositorySyncURL.md +19 -0
  37. data/docs/RepositoryVersionResponse.md +27 -0
  38. data/lib/pulp_gem_client/api/content_gem_api.rb +259 -0
  39. data/lib/pulp_gem_client/api/distributions_gem_api.rb +476 -0
  40. data/lib/pulp_gem_client/api/publications_gem_api.rb +325 -0
  41. data/lib/pulp_gem_client/api/remotes_gem_api.rb +473 -0
  42. data/lib/pulp_gem_client/api/repositories_gem_api.rb +628 -0
  43. data/lib/pulp_gem_client/api/repositories_gem_versions_api.rb +346 -0
  44. data/lib/pulp_gem_client/api_client.rb +403 -0
  45. data/lib/pulp_gem_client/api_error.rb +57 -0
  46. data/lib/pulp_gem_client/configuration.rb +251 -0
  47. data/lib/pulp_gem_client/models/async_operation_response.rb +213 -0
  48. data/lib/pulp_gem_client/models/content_summary_response.rb +246 -0
  49. data/lib/pulp_gem_client/models/gem_gem_content.rb +228 -0
  50. data/lib/pulp_gem_client/models/gem_gem_content_response.rb +303 -0
  51. data/lib/pulp_gem_client/models/gem_gem_distribution.rb +333 -0
  52. data/lib/pulp_gem_client/models/gem_gem_distribution_response.rb +324 -0
  53. data/lib/pulp_gem_client/models/gem_gem_publication.rb +217 -0
  54. data/lib/pulp_gem_client/models/gem_gem_publication_response.rb +236 -0
  55. data/lib/pulp_gem_client/models/gem_gem_remote.rb +704 -0
  56. data/lib/pulp_gem_client/models/gem_gem_remote_response.rb +532 -0
  57. data/lib/pulp_gem_client/models/gem_gem_remote_response_hidden_fields.rb +215 -0
  58. data/lib/pulp_gem_client/models/gem_gem_repository.rb +306 -0
  59. data/lib/pulp_gem_client/models/gem_gem_repository_response.rb +309 -0
  60. data/lib/pulp_gem_client/models/paginated_repository_version_response_list.rb +237 -0
  61. data/lib/pulp_gem_client/models/paginatedgem_gem_content_response_list.rb +237 -0
  62. data/lib/pulp_gem_client/models/paginatedgem_gem_distribution_response_list.rb +237 -0
  63. data/lib/pulp_gem_client/models/paginatedgem_gem_publication_response_list.rb +237 -0
  64. data/lib/pulp_gem_client/models/paginatedgem_gem_remote_response_list.rb +237 -0
  65. data/lib/pulp_gem_client/models/paginatedgem_gem_repository_response_list.rb +237 -0
  66. data/lib/pulp_gem_client/models/patchedgem_gem_distribution.rb +315 -0
  67. data/lib/pulp_gem_client/models/patchedgem_gem_remote.rb +686 -0
  68. data/lib/pulp_gem_client/models/patchedgem_gem_repository.rb +297 -0
  69. data/lib/pulp_gem_client/models/policy_enum.rb +37 -0
  70. data/lib/pulp_gem_client/models/repair.rb +209 -0
  71. data/lib/pulp_gem_client/models/repository_add_remove_content.rb +232 -0
  72. data/lib/pulp_gem_client/models/repository_sync_url.rb +220 -0
  73. data/lib/pulp_gem_client/models/repository_version_response.rb +255 -0
  74. data/lib/pulp_gem_client/version.rb +15 -0
  75. data/lib/pulp_gem_client.rb +72 -0
  76. data/pulp_gem_client.gemspec +39 -0
  77. data/spec/api/content_gem_api_spec.rb +88 -0
  78. data/spec/api/distributions_gem_api_spec.rb +130 -0
  79. data/spec/api/publications_gem_api_spec.rb +101 -0
  80. data/spec/api/remotes_gem_api_spec.rb +129 -0
  81. data/spec/api/repositories_gem_api_spec.rb +160 -0
  82. data/spec/api/repositories_gem_versions_api_spec.rb +105 -0
  83. data/spec/api_client_spec.rb +188 -0
  84. data/spec/configuration_spec.rb +42 -0
  85. data/spec/models/async_operation_response_spec.rb +41 -0
  86. data/spec/models/content_summary_response_spec.rb +53 -0
  87. data/spec/models/gem_gem_content_response_spec.rb +95 -0
  88. data/spec/models/gem_gem_content_spec.rb +53 -0
  89. data/spec/models/gem_gem_distribution_response_spec.rb +101 -0
  90. data/spec/models/gem_gem_distribution_spec.rb +83 -0
  91. data/spec/models/gem_gem_publication_response_spec.rb +59 -0
  92. data/spec/models/gem_gem_publication_spec.rb +47 -0
  93. data/spec/models/gem_gem_remote_response_hidden_fields_spec.rb +47 -0
  94. data/spec/models/gem_gem_remote_response_spec.rb +173 -0
  95. data/spec/models/gem_gem_remote_spec.rb +179 -0
  96. data/spec/models/gem_gem_repository_response_spec.rb +89 -0
  97. data/spec/models/gem_gem_repository_spec.rb +65 -0
  98. data/spec/models/paginated_repository_version_response_list_spec.rb +59 -0
  99. data/spec/models/paginatedgem_gem_content_response_list_spec.rb +59 -0
  100. data/spec/models/paginatedgem_gem_distribution_response_list_spec.rb +59 -0
  101. data/spec/models/paginatedgem_gem_publication_response_list_spec.rb +59 -0
  102. data/spec/models/paginatedgem_gem_remote_response_list_spec.rb +59 -0
  103. data/spec/models/paginatedgem_gem_repository_response_list_spec.rb +59 -0
  104. data/spec/models/patchedgem_gem_distribution_spec.rb +83 -0
  105. data/spec/models/patchedgem_gem_remote_spec.rb +179 -0
  106. data/spec/models/patchedgem_gem_repository_spec.rb +65 -0
  107. data/spec/models/policy_enum_spec.rb +35 -0
  108. data/spec/models/repair_spec.rb +41 -0
  109. data/spec/models/repository_add_remove_content_spec.rb +53 -0
  110. data/spec/models/repository_sync_url_spec.rb +47 -0
  111. data/spec/models/repository_version_response_spec.rb +71 -0
  112. data/spec/spec_helper.rb +111 -0
  113. metadata +250 -0
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: a1388894d978d4a7b49acc0b8af3291d056ba70a255694b14f8984a5aa3312b6
4
+ data.tar.gz: b56bcdaaccdc131b44d5c95ef96e1bd2cd59c153d10ac61e2b3a70bdf57953d1
5
+ SHA512:
6
+ metadata.gz: 0b4261fac86fc60dc7c88fef11205b2f2a404fb2d69b427e55356b472b5c5454cd0a306067baaa575ed8ecdba0290dab836114746bcbd3920b25ab49fd5185c6
7
+ data.tar.gz: d6f1fda8755da75ece6b48df700a772e333f841a1ec348627ae899de8a3bb1cf820cd5e03caa384bb8f4ac9fe16636dce339400805891d71407c695ae33d73b0
data/Gemfile ADDED
@@ -0,0 +1,9 @@
1
+ source 'https://rubygems.org'
2
+
3
+ gemspec
4
+
5
+ group :development, :test do
6
+ gem 'rake', '~> 13.0.1'
7
+ gem 'pry-byebug'
8
+ gem 'rubocop', '~> 0.66.0'
9
+ end
data/README.md ADDED
@@ -0,0 +1,160 @@
1
+ # pulp_gem_client
2
+
3
+ PulpGemClient - the Ruby gem for the Pulp 3 API
4
+
5
+ Fetch, Upload, Organize, and Distribute Software Packages
6
+
7
+ This SDK is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
8
+
9
+ - API version: v3
10
+ - Package version: 0.1.0
11
+ - Build package: org.openapitools.codegen.languages.RubyClientCodegen
12
+ For more information, please visit [https://pulpproject.org](https://pulpproject.org)
13
+
14
+ ## Installation
15
+
16
+ ### Build a gem
17
+
18
+ To build the Ruby code into a gem:
19
+
20
+ ```shell
21
+ gem build pulp_gem_client.gemspec
22
+ ```
23
+
24
+ Then either install the gem locally:
25
+
26
+ ```shell
27
+ gem install ./pulp_gem_client-0.1.0.gem
28
+ ```
29
+
30
+ (for development, run `gem install --dev ./pulp_gem_client-0.1.0.gem` to install the development dependencies)
31
+
32
+ or publish the gem to a gem hosting service, e.g. [RubyGems](https://rubygems.org/).
33
+
34
+ Finally add this to the Gemfile:
35
+
36
+ gem 'pulp_gem_client', '~> 0.1.0'
37
+
38
+ ### Install from Git
39
+
40
+ If the Ruby gem is hosted at a git repository: https://github.com/GIT_USER_ID/GIT_REPO_ID, then add the following in the Gemfile:
41
+
42
+ gem 'pulp_gem_client', :git => 'https://github.com/GIT_USER_ID/GIT_REPO_ID.git'
43
+
44
+ ### Include the Ruby code directly
45
+
46
+ Include the Ruby code directly using `-I` as follows:
47
+
48
+ ```shell
49
+ ruby -Ilib script.rb
50
+ ```
51
+
52
+ ## Getting Started
53
+
54
+ Please follow the [installation](#installation) procedure and then run the following code:
55
+
56
+ ```ruby
57
+ # Load the gem
58
+ require 'pulp_gem_client'
59
+
60
+ # Setup authorization
61
+ PulpGemClient.configure do |config|
62
+ # Configure HTTP basic authorization: basicAuth
63
+ config.username = 'YOUR_USERNAME'
64
+ config.password = 'YOUR_PASSWORD'
65
+ end
66
+
67
+ api_instance = PulpGemClient::ContentGemApi.new
68
+ opts = {
69
+ artifact: 'artifact_example', # String | Artifact file representing the physical content
70
+ file: File.new('/path/to/file'), # File | An uploaded file that should be turned into the artifact of the content unit.
71
+ repository: 'repository_example' # String | A URI of a repository the new content unit should be associated with.
72
+ }
73
+
74
+ begin
75
+ #Create a gem content
76
+ result = api_instance.create(opts)
77
+ p result
78
+ rescue PulpGemClient::ApiError => e
79
+ puts "Exception when calling ContentGemApi->create: #{e}"
80
+ end
81
+
82
+ ```
83
+
84
+ ## Documentation for API Endpoints
85
+
86
+ All URIs are relative to *https://pulp*
87
+
88
+ Class | Method | HTTP request | Description
89
+ ------------ | ------------- | ------------- | -------------
90
+ *PulpGemClient::ContentGemApi* | [**create**](docs/ContentGemApi.md#create) | **POST** /pulp/api/v3/content/gem/gem/ | Create a gem content
91
+ *PulpGemClient::ContentGemApi* | [**list**](docs/ContentGemApi.md#list) | **GET** /pulp/api/v3/content/gem/gem/ | List gem contents
92
+ *PulpGemClient::ContentGemApi* | [**read**](docs/ContentGemApi.md#read) | **GET** {gem_gem_content_href} | Inspect a gem content
93
+ *PulpGemClient::DistributionsGemApi* | [**create**](docs/DistributionsGemApi.md#create) | **POST** /pulp/api/v3/distributions/gem/gem/ | Create a gem distribution
94
+ *PulpGemClient::DistributionsGemApi* | [**delete**](docs/DistributionsGemApi.md#delete) | **DELETE** {gem_gem_distribution_href} | Delete a gem distribution
95
+ *PulpGemClient::DistributionsGemApi* | [**list**](docs/DistributionsGemApi.md#list) | **GET** /pulp/api/v3/distributions/gem/gem/ | List gem distributions
96
+ *PulpGemClient::DistributionsGemApi* | [**partial_update**](docs/DistributionsGemApi.md#partial_update) | **PATCH** {gem_gem_distribution_href} | Update a gem distribution
97
+ *PulpGemClient::DistributionsGemApi* | [**read**](docs/DistributionsGemApi.md#read) | **GET** {gem_gem_distribution_href} | Inspect a gem distribution
98
+ *PulpGemClient::DistributionsGemApi* | [**update**](docs/DistributionsGemApi.md#update) | **PUT** {gem_gem_distribution_href} | Update a gem distribution
99
+ *PulpGemClient::PublicationsGemApi* | [**create**](docs/PublicationsGemApi.md#create) | **POST** /pulp/api/v3/publications/gem/gem/ | Create a gem publication
100
+ *PulpGemClient::PublicationsGemApi* | [**delete**](docs/PublicationsGemApi.md#delete) | **DELETE** {gem_gem_publication_href} | Delete a gem publication
101
+ *PulpGemClient::PublicationsGemApi* | [**list**](docs/PublicationsGemApi.md#list) | **GET** /pulp/api/v3/publications/gem/gem/ | List gem publications
102
+ *PulpGemClient::PublicationsGemApi* | [**read**](docs/PublicationsGemApi.md#read) | **GET** {gem_gem_publication_href} | Inspect a gem publication
103
+ *PulpGemClient::RemotesGemApi* | [**create**](docs/RemotesGemApi.md#create) | **POST** /pulp/api/v3/remotes/gem/gem/ | Create a gem remote
104
+ *PulpGemClient::RemotesGemApi* | [**delete**](docs/RemotesGemApi.md#delete) | **DELETE** {gem_gem_remote_href} | Delete a gem remote
105
+ *PulpGemClient::RemotesGemApi* | [**list**](docs/RemotesGemApi.md#list) | **GET** /pulp/api/v3/remotes/gem/gem/ | List gem remotes
106
+ *PulpGemClient::RemotesGemApi* | [**partial_update**](docs/RemotesGemApi.md#partial_update) | **PATCH** {gem_gem_remote_href} | Update a gem remote
107
+ *PulpGemClient::RemotesGemApi* | [**read**](docs/RemotesGemApi.md#read) | **GET** {gem_gem_remote_href} | Inspect a gem remote
108
+ *PulpGemClient::RemotesGemApi* | [**update**](docs/RemotesGemApi.md#update) | **PUT** {gem_gem_remote_href} | Update a gem remote
109
+ *PulpGemClient::RepositoriesGemApi* | [**create**](docs/RepositoriesGemApi.md#create) | **POST** /pulp/api/v3/repositories/gem/gem/ | Create a gem repository
110
+ *PulpGemClient::RepositoriesGemApi* | [**delete**](docs/RepositoriesGemApi.md#delete) | **DELETE** {gem_gem_repository_href} | Delete a gem repository
111
+ *PulpGemClient::RepositoriesGemApi* | [**list**](docs/RepositoriesGemApi.md#list) | **GET** /pulp/api/v3/repositories/gem/gem/ | List gem repositorys
112
+ *PulpGemClient::RepositoriesGemApi* | [**modify**](docs/RepositoriesGemApi.md#modify) | **POST** {gem_gem_repository_href}modify/ | Modify Repository Content
113
+ *PulpGemClient::RepositoriesGemApi* | [**partial_update**](docs/RepositoriesGemApi.md#partial_update) | **PATCH** {gem_gem_repository_href} | Update a gem repository
114
+ *PulpGemClient::RepositoriesGemApi* | [**read**](docs/RepositoriesGemApi.md#read) | **GET** {gem_gem_repository_href} | Inspect a gem repository
115
+ *PulpGemClient::RepositoriesGemApi* | [**sync**](docs/RepositoriesGemApi.md#sync) | **POST** {gem_gem_repository_href}sync/ | Sync from a remote
116
+ *PulpGemClient::RepositoriesGemApi* | [**update**](docs/RepositoriesGemApi.md#update) | **PUT** {gem_gem_repository_href} | Update a gem repository
117
+ *PulpGemClient::RepositoriesGemVersionsApi* | [**delete**](docs/RepositoriesGemVersionsApi.md#delete) | **DELETE** {gem_gem_repository_version_href} | Delete a repository version
118
+ *PulpGemClient::RepositoriesGemVersionsApi* | [**list**](docs/RepositoriesGemVersionsApi.md#list) | **GET** {gem_gem_repository_href}versions/ | List repository versions
119
+ *PulpGemClient::RepositoriesGemVersionsApi* | [**read**](docs/RepositoriesGemVersionsApi.md#read) | **GET** {gem_gem_repository_version_href} | Inspect a repository version
120
+ *PulpGemClient::RepositoriesGemVersionsApi* | [**repair**](docs/RepositoriesGemVersionsApi.md#repair) | **POST** {gem_gem_repository_version_href}repair/ |
121
+
122
+
123
+ ## Documentation for Models
124
+
125
+ - [PulpGemClient::AsyncOperationResponse](docs/AsyncOperationResponse.md)
126
+ - [PulpGemClient::ContentSummaryResponse](docs/ContentSummaryResponse.md)
127
+ - [PulpGemClient::GemGemContent](docs/GemGemContent.md)
128
+ - [PulpGemClient::GemGemContentResponse](docs/GemGemContentResponse.md)
129
+ - [PulpGemClient::GemGemDistribution](docs/GemGemDistribution.md)
130
+ - [PulpGemClient::GemGemDistributionResponse](docs/GemGemDistributionResponse.md)
131
+ - [PulpGemClient::GemGemPublication](docs/GemGemPublication.md)
132
+ - [PulpGemClient::GemGemPublicationResponse](docs/GemGemPublicationResponse.md)
133
+ - [PulpGemClient::GemGemRemote](docs/GemGemRemote.md)
134
+ - [PulpGemClient::GemGemRemoteResponse](docs/GemGemRemoteResponse.md)
135
+ - [PulpGemClient::GemGemRemoteResponseHiddenFields](docs/GemGemRemoteResponseHiddenFields.md)
136
+ - [PulpGemClient::GemGemRepository](docs/GemGemRepository.md)
137
+ - [PulpGemClient::GemGemRepositoryResponse](docs/GemGemRepositoryResponse.md)
138
+ - [PulpGemClient::PaginatedRepositoryVersionResponseList](docs/PaginatedRepositoryVersionResponseList.md)
139
+ - [PulpGemClient::PaginatedgemGemContentResponseList](docs/PaginatedgemGemContentResponseList.md)
140
+ - [PulpGemClient::PaginatedgemGemDistributionResponseList](docs/PaginatedgemGemDistributionResponseList.md)
141
+ - [PulpGemClient::PaginatedgemGemPublicationResponseList](docs/PaginatedgemGemPublicationResponseList.md)
142
+ - [PulpGemClient::PaginatedgemGemRemoteResponseList](docs/PaginatedgemGemRemoteResponseList.md)
143
+ - [PulpGemClient::PaginatedgemGemRepositoryResponseList](docs/PaginatedgemGemRepositoryResponseList.md)
144
+ - [PulpGemClient::PatchedgemGemDistribution](docs/PatchedgemGemDistribution.md)
145
+ - [PulpGemClient::PatchedgemGemRemote](docs/PatchedgemGemRemote.md)
146
+ - [PulpGemClient::PatchedgemGemRepository](docs/PatchedgemGemRepository.md)
147
+ - [PulpGemClient::PolicyEnum](docs/PolicyEnum.md)
148
+ - [PulpGemClient::Repair](docs/Repair.md)
149
+ - [PulpGemClient::RepositoryAddRemoveContent](docs/RepositoryAddRemoveContent.md)
150
+ - [PulpGemClient::RepositorySyncURL](docs/RepositorySyncURL.md)
151
+ - [PulpGemClient::RepositoryVersionResponse](docs/RepositoryVersionResponse.md)
152
+
153
+
154
+ ## Documentation for Authorization
155
+
156
+
157
+ ### basicAuth
158
+
159
+ - **Type**: HTTP basic authentication
160
+
data/Rakefile ADDED
@@ -0,0 +1,10 @@
1
+ require "bundler/gem_tasks"
2
+
3
+ begin
4
+ require 'rspec/core/rake_task'
5
+
6
+ RSpec::Core::RakeTask.new(:spec)
7
+ task default: :spec
8
+ rescue LoadError
9
+ # no rspec available
10
+ end
@@ -0,0 +1,17 @@
1
+ # PulpGemClient::AsyncOperationResponse
2
+
3
+ ## Properties
4
+
5
+ Name | Type | Description | Notes
6
+ ------------ | ------------- | ------------- | -------------
7
+ **task** | **String** | The href of the task. |
8
+
9
+ ## Code Sample
10
+
11
+ ```ruby
12
+ require 'PulpGemClient'
13
+
14
+ instance = PulpGemClient::AsyncOperationResponse.new(task: null)
15
+ ```
16
+
17
+
@@ -0,0 +1,210 @@
1
+ # PulpGemClient::ContentGemApi
2
+
3
+ All URIs are relative to *https://pulp*
4
+
5
+ Method | HTTP request | Description
6
+ ------------- | ------------- | -------------
7
+ [**create**](ContentGemApi.md#create) | **POST** /pulp/api/v3/content/gem/gem/ | Create a gem content
8
+ [**list**](ContentGemApi.md#list) | **GET** /pulp/api/v3/content/gem/gem/ | List gem contents
9
+ [**read**](ContentGemApi.md#read) | **GET** {gem_gem_content_href} | Inspect a gem content
10
+
11
+
12
+
13
+ ## create
14
+
15
+ > AsyncOperationResponse create(opts)
16
+
17
+ Create a gem content
18
+
19
+ Trigger an asynchronous task to create content,optionally create new repository version.
20
+
21
+ ### Example
22
+
23
+ ```ruby
24
+ # load the gem
25
+ require 'pulp_gem_client'
26
+ # setup authorization
27
+ PulpGemClient.configure do |config|
28
+ # Configure HTTP basic authorization: basicAuth
29
+ config.username = 'YOUR USERNAME'
30
+ config.password = 'YOUR PASSWORD'
31
+ end
32
+
33
+ api_instance = PulpGemClient::ContentGemApi.new
34
+ opts = {
35
+ artifact: 'artifact_example', # String | Artifact file representing the physical content
36
+ file: File.new('/path/to/file'), # File | An uploaded file that should be turned into the artifact of the content unit.
37
+ repository: 'repository_example' # String | A URI of a repository the new content unit should be associated with.
38
+ }
39
+
40
+ begin
41
+ #Create a gem content
42
+ result = api_instance.create(opts)
43
+ p result
44
+ rescue PulpGemClient::ApiError => e
45
+ puts "Exception when calling ContentGemApi->create: #{e}"
46
+ end
47
+ ```
48
+
49
+ ### Parameters
50
+
51
+
52
+ Name | Type | Description | Notes
53
+ ------------- | ------------- | ------------- | -------------
54
+ **artifact** | **String**| Artifact file representing the physical content | [optional]
55
+ **file** | **File**| An uploaded file that should be turned into the artifact of the content unit. | [optional]
56
+ **repository** | **String**| A URI of a repository the new content unit should be associated with. | [optional]
57
+
58
+ ### Return type
59
+
60
+ [**AsyncOperationResponse**](AsyncOperationResponse.md)
61
+
62
+ ### Authorization
63
+
64
+ [basicAuth](../README.md#basicAuth)
65
+
66
+ ### HTTP request headers
67
+
68
+ - **Content-Type**: multipart/form-data, application/x-www-form-urlencoded
69
+ - **Accept**: application/json
70
+
71
+
72
+ ## list
73
+
74
+ > PaginatedgemGemContentResponseList list(opts)
75
+
76
+ List gem contents
77
+
78
+ A ViewSet for GemContent.
79
+
80
+ ### Example
81
+
82
+ ```ruby
83
+ # load the gem
84
+ require 'pulp_gem_client'
85
+ # setup authorization
86
+ PulpGemClient.configure do |config|
87
+ # Configure HTTP basic authorization: basicAuth
88
+ config.username = 'YOUR USERNAME'
89
+ config.password = 'YOUR PASSWORD'
90
+ end
91
+
92
+ api_instance = PulpGemClient::ContentGemApi.new
93
+ opts = {
94
+ checksum: 'checksum_example', # String | Filter results where checksum matches value
95
+ limit: 56, # Integer | Number of results to return per page.
96
+ name: 'name_example', # String | Filter results where name matches value
97
+ offset: 56, # Integer | The initial index from which to return the results.
98
+ ordering: ['ordering_example'], # Array<String> | Ordering * `pulp_id` - Pulp id * `-pulp_id` - Pulp id (descending) * `pulp_created` - Pulp created * `-pulp_created` - Pulp created (descending) * `pulp_last_updated` - Pulp last updated * `-pulp_last_updated` - Pulp last updated (descending) * `pulp_type` - Pulp type * `-pulp_type` - Pulp type (descending) * `upstream_id` - Upstream id * `-upstream_id` - Upstream id (descending) * `timestamp_of_interest` - Timestamp of interest * `-timestamp_of_interest` - Timestamp of interest (descending) * `name` - Name * `-name` - Name (descending) * `version` - Version * `-version` - Version (descending) * `checksum` - Checksum * `-checksum` - Checksum (descending) * `prerelease` - Prerelease * `-prerelease` - Prerelease (descending) * `dependencies` - Dependencies * `-dependencies` - Dependencies (descending) * `required_ruby_version` - Required ruby version * `-required_ruby_version` - Required ruby version (descending) * `required_rubygems_version` - Required rubygems version * `-required_rubygems_version` - Required rubygems version (descending) * `pk` - Pk * `-pk` - Pk (descending)
99
+ prerelease: true, # Boolean | Filter results where prerelease matches value
100
+ pulp_href__in: ['pulp_href__in_example'], # Array<String> | Multiple values may be separated by commas.
101
+ pulp_id__in: ['pulp_id__in_example'], # Array<String> | Multiple values may be separated by commas.
102
+ repository_version: 'repository_version_example', # String | Repository Version referenced by HREF
103
+ repository_version_added: 'repository_version_added_example', # String | Repository Version referenced by HREF
104
+ repository_version_removed: 'repository_version_removed_example', # String | Repository Version referenced by HREF
105
+ version: 'version_example', # String | Filter results where version matches value
106
+ fields: ['fields_example'], # Array<String> | A list of fields to include in the response.
107
+ exclude_fields: ['exclude_fields_example'] # Array<String> | A list of fields to exclude from the response.
108
+ }
109
+
110
+ begin
111
+ #List gem contents
112
+ result = api_instance.list(opts)
113
+ p result
114
+ rescue PulpGemClient::ApiError => e
115
+ puts "Exception when calling ContentGemApi->list: #{e}"
116
+ end
117
+ ```
118
+
119
+ ### Parameters
120
+
121
+
122
+ Name | Type | Description | Notes
123
+ ------------- | ------------- | ------------- | -------------
124
+ **checksum** | **String**| Filter results where checksum matches value | [optional]
125
+ **limit** | **Integer**| Number of results to return per page. | [optional]
126
+ **name** | **String**| Filter results where name matches value | [optional]
127
+ **offset** | **Integer**| The initial index from which to return the results. | [optional]
128
+ **ordering** | [**Array&lt;String&gt;**](String.md)| 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;name&#x60; - Name * &#x60;-name&#x60; - Name (descending) * &#x60;version&#x60; - Version * &#x60;-version&#x60; - Version (descending) * &#x60;checksum&#x60; - Checksum * &#x60;-checksum&#x60; - Checksum (descending) * &#x60;prerelease&#x60; - Prerelease * &#x60;-prerelease&#x60; - Prerelease (descending) * &#x60;dependencies&#x60; - Dependencies * &#x60;-dependencies&#x60; - Dependencies (descending) * &#x60;required_ruby_version&#x60; - Required ruby version * &#x60;-required_ruby_version&#x60; - Required ruby version (descending) * &#x60;required_rubygems_version&#x60; - Required rubygems version * &#x60;-required_rubygems_version&#x60; - Required rubygems version (descending) * &#x60;pk&#x60; - Pk * &#x60;-pk&#x60; - Pk (descending) | [optional]
129
+ **prerelease** | **Boolean**| Filter results where prerelease matches value | [optional]
130
+ **pulp_href__in** | [**Array&lt;String&gt;**](String.md)| Multiple values may be separated by commas. | [optional]
131
+ **pulp_id__in** | [**Array&lt;String&gt;**](String.md)| Multiple values may be separated by commas. | [optional]
132
+ **repository_version** | **String**| Repository Version referenced by HREF | [optional]
133
+ **repository_version_added** | **String**| Repository Version referenced by HREF | [optional]
134
+ **repository_version_removed** | **String**| Repository Version referenced by HREF | [optional]
135
+ **version** | **String**| Filter results where version matches value | [optional]
136
+ **fields** | [**Array&lt;String&gt;**](String.md)| A list of fields to include in the response. | [optional]
137
+ **exclude_fields** | [**Array&lt;String&gt;**](String.md)| A list of fields to exclude from the response. | [optional]
138
+
139
+ ### Return type
140
+
141
+ [**PaginatedgemGemContentResponseList**](PaginatedgemGemContentResponseList.md)
142
+
143
+ ### Authorization
144
+
145
+ [basicAuth](../README.md#basicAuth)
146
+
147
+ ### HTTP request headers
148
+
149
+ - **Content-Type**: Not defined
150
+ - **Accept**: application/json
151
+
152
+
153
+ ## read
154
+
155
+ > GemGemContentResponse read(gem_gem_content_href, opts)
156
+
157
+ Inspect a gem content
158
+
159
+ A ViewSet for GemContent.
160
+
161
+ ### Example
162
+
163
+ ```ruby
164
+ # load the gem
165
+ require 'pulp_gem_client'
166
+ # setup authorization
167
+ PulpGemClient.configure do |config|
168
+ # Configure HTTP basic authorization: basicAuth
169
+ config.username = 'YOUR USERNAME'
170
+ config.password = 'YOUR PASSWORD'
171
+ end
172
+
173
+ api_instance = PulpGemClient::ContentGemApi.new
174
+ gem_gem_content_href = 'gem_gem_content_href_example' # String |
175
+ opts = {
176
+ fields: ['fields_example'], # Array<String> | A list of fields to include in the response.
177
+ exclude_fields: ['exclude_fields_example'] # Array<String> | A list of fields to exclude from the response.
178
+ }
179
+
180
+ begin
181
+ #Inspect a gem content
182
+ result = api_instance.read(gem_gem_content_href, opts)
183
+ p result
184
+ rescue PulpGemClient::ApiError => e
185
+ puts "Exception when calling ContentGemApi->read: #{e}"
186
+ end
187
+ ```
188
+
189
+ ### Parameters
190
+
191
+
192
+ Name | Type | Description | Notes
193
+ ------------- | ------------- | ------------- | -------------
194
+ **gem_gem_content_href** | **String**| |
195
+ **fields** | [**Array&lt;String&gt;**](String.md)| A list of fields to include in the response. | [optional]
196
+ **exclude_fields** | [**Array&lt;String&gt;**](String.md)| A list of fields to exclude from the response. | [optional]
197
+
198
+ ### Return type
199
+
200
+ [**GemGemContentResponse**](GemGemContentResponse.md)
201
+
202
+ ### Authorization
203
+
204
+ [basicAuth](../README.md#basicAuth)
205
+
206
+ ### HTTP request headers
207
+
208
+ - **Content-Type**: Not defined
209
+ - **Accept**: application/json
210
+
@@ -0,0 +1,21 @@
1
+ # PulpGemClient::ContentSummaryResponse
2
+
3
+ ## Properties
4
+
5
+ Name | Type | Description | Notes
6
+ ------------ | ------------- | ------------- | -------------
7
+ **added** | **Hash&lt;String, Object&gt;** | |
8
+ **removed** | **Hash&lt;String, Object&gt;** | |
9
+ **present** | **Hash&lt;String, Object&gt;** | |
10
+
11
+ ## Code Sample
12
+
13
+ ```ruby
14
+ require 'PulpGemClient'
15
+
16
+ instance = PulpGemClient::ContentSummaryResponse.new(added: null,
17
+ removed: null,
18
+ present: null)
19
+ ```
20
+
21
+