pulp_npm_client 0.1.0a4 → 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (115) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +24 -10
  3. data/docs/AsyncOperationResponse.md +8 -7
  4. data/docs/ContentPackagesApi.md +126 -64
  5. data/docs/ContentSummaryResponse.md +12 -11
  6. data/docs/DistributionsNpmApi.md +362 -93
  7. data/docs/NpmNpmDistribution.md +18 -15
  8. data/docs/NpmNpmDistributionResponse.md +30 -21
  9. data/docs/NpmNpmRemote.md +48 -47
  10. data/docs/NpmNpmRemoteResponse.md +48 -43
  11. data/docs/NpmNpmRemoteResponseHiddenFieldsInner.md +20 -0
  12. data/docs/NpmNpmRepository.md +16 -15
  13. data/docs/NpmNpmRepositoryResponse.md +28 -23
  14. data/docs/NpmPackageResponse.md +22 -17
  15. data/docs/PaginatedRepositoryVersionResponseList.md +14 -13
  16. data/docs/PaginatednpmNpmDistributionResponseList.md +14 -13
  17. data/docs/PaginatednpmNpmRemoteResponseList.md +14 -13
  18. data/docs/PaginatednpmNpmRepositoryResponseList.md +14 -13
  19. data/docs/PaginatednpmPackageResponseList.md +14 -13
  20. data/docs/PatchednpmNpmDistribution.md +18 -15
  21. data/docs/PatchednpmNpmRemote.md +48 -47
  22. data/docs/PatchednpmNpmRepository.md +16 -15
  23. data/docs/PolicyEnum.md +4 -5
  24. data/docs/RemotesNpmApi.md +364 -99
  25. data/docs/Repair.md +8 -7
  26. data/docs/RepositoriesNpmApi.md +429 -110
  27. data/docs/RepositoriesNpmVersionsApi.md +156 -80
  28. data/docs/RepositoryAddRemoveContent.md +12 -11
  29. data/docs/RepositorySyncURL.md +10 -9
  30. data/docs/RepositoryVersionResponse.md +22 -17
  31. data/docs/SetLabel.md +20 -0
  32. data/docs/SetLabelResponse.md +20 -0
  33. data/docs/UnsetLabel.md +18 -0
  34. data/docs/UnsetLabelResponse.md +20 -0
  35. data/lib/pulp_npm_client/api/content_packages_api.rb +72 -44
  36. data/lib/pulp_npm_client/api/distributions_npm_api.rb +243 -47
  37. data/lib/pulp_npm_client/api/remotes_npm_api.rb +247 -57
  38. data/lib/pulp_npm_client/api/repositories_npm_api.rb +283 -55
  39. data/lib/pulp_npm_client/api/repositories_npm_versions_api.rb +71 -52
  40. data/lib/pulp_npm_client/api_client.rb +137 -102
  41. data/lib/pulp_npm_client/api_error.rb +2 -1
  42. data/lib/pulp_npm_client/configuration.rb +163 -22
  43. data/lib/pulp_npm_client/models/async_operation_response.rb +32 -22
  44. data/lib/pulp_npm_client/models/content_summary_response.rb +36 -22
  45. data/lib/pulp_npm_client/models/npm_npm_distribution.rb +51 -25
  46. data/lib/pulp_npm_client/models/npm_npm_distribution_response.rb +83 -27
  47. data/lib/pulp_npm_client/models/npm_npm_remote.rb +61 -25
  48. data/lib/pulp_npm_client/models/npm_npm_remote_response.rb +99 -41
  49. data/lib/pulp_npm_client/models/npm_npm_remote_response_hidden_fields_inner.rb +237 -0
  50. data/lib/pulp_npm_client/models/npm_npm_repository.rb +37 -25
  51. data/lib/pulp_npm_client/models/npm_npm_repository_response.rb +59 -27
  52. data/lib/pulp_npm_client/models/npm_package_response.rb +58 -24
  53. data/lib/pulp_npm_client/models/paginated_repository_version_response_list.rb +44 -22
  54. data/lib/pulp_npm_client/models/paginatednpm_npm_distribution_response_list.rb +44 -22
  55. data/lib/pulp_npm_client/models/paginatednpm_npm_remote_response_list.rb +44 -22
  56. data/lib/pulp_npm_client/models/paginatednpm_npm_repository_response_list.rb +44 -22
  57. data/lib/pulp_npm_client/models/paginatednpm_package_response_list.rb +44 -22
  58. data/lib/pulp_npm_client/models/patchednpm_npm_distribution.rb +57 -27
  59. data/lib/pulp_npm_client/models/patchednpm_npm_remote.rb +67 -27
  60. data/lib/pulp_npm_client/models/patchednpm_npm_repository.rb +40 -26
  61. data/lib/pulp_npm_client/models/policy_enum.rb +8 -4
  62. data/lib/pulp_npm_client/models/repair.rb +30 -22
  63. data/lib/pulp_npm_client/models/repository_add_remove_content.rb +33 -25
  64. data/lib/pulp_npm_client/models/repository_sync_url.rb +30 -22
  65. data/lib/pulp_npm_client/models/repository_version_response.rb +53 -25
  66. data/lib/pulp_npm_client/models/set_label.rb +264 -0
  67. data/lib/pulp_npm_client/models/set_label_response.rb +255 -0
  68. data/lib/pulp_npm_client/models/unset_label.rb +252 -0
  69. data/lib/pulp_npm_client/models/unset_label_response.rb +252 -0
  70. data/lib/pulp_npm_client/version.rb +2 -2
  71. data/lib/pulp_npm_client.rb +6 -3
  72. data/pulp_npm_client.gemspec +10 -7
  73. data/spec/api/content_packages_api_spec.rb +22 -16
  74. data/spec/api/distributions_npm_api_spec.rb +51 -14
  75. data/spec/api/remotes_npm_api_spec.rb +54 -19
  76. data/spec/api/repositories_npm_api_spec.rb +60 -15
  77. data/spec/api/repositories_npm_versions_api_spec.rb +23 -19
  78. data/spec/models/async_operation_response_spec.rb +7 -12
  79. data/spec/models/content_summary_response_spec.rb +9 -14
  80. data/spec/models/npm_npm_distribution_response_spec.rb +38 -19
  81. data/spec/models/npm_npm_distribution_spec.rb +17 -16
  82. data/spec/models/npm_npm_remote_response_hidden_fields_inner_spec.rb +42 -0
  83. data/spec/models/npm_npm_remote_response_spec.rb +42 -35
  84. data/spec/models/npm_npm_remote_spec.rb +27 -32
  85. data/spec/models/npm_npm_repository_response_spec.rb +27 -20
  86. data/spec/models/npm_npm_repository_spec.rb +11 -16
  87. data/spec/models/npm_package_response_spec.rb +24 -17
  88. data/spec/models/paginated_repository_version_response_list_spec.rb +10 -15
  89. data/spec/models/paginatednpm_npm_distribution_response_list_spec.rb +10 -15
  90. data/spec/models/paginatednpm_npm_remote_response_list_spec.rb +10 -15
  91. data/spec/models/paginatednpm_npm_repository_response_list_spec.rb +10 -15
  92. data/spec/models/paginatednpm_package_response_list_spec.rb +10 -15
  93. data/spec/models/patchednpm_npm_distribution_spec.rb +17 -16
  94. data/spec/models/patchednpm_npm_remote_spec.rb +27 -32
  95. data/spec/models/patchednpm_npm_repository_spec.rb +11 -16
  96. data/spec/models/policy_enum_spec.rb +6 -11
  97. data/spec/models/repair_spec.rb +7 -12
  98. data/spec/models/repository_add_remove_content_spec.rb +9 -14
  99. data/spec/models/repository_sync_url_spec.rb +8 -13
  100. data/spec/models/repository_version_response_spec.rb +24 -17
  101. data/spec/models/set_label_response_spec.rb +42 -0
  102. data/spec/models/set_label_spec.rb +42 -0
  103. data/spec/models/unset_label_response_spec.rb +42 -0
  104. data/spec/models/unset_label_spec.rb +36 -0
  105. data/spec/spec_helper.rb +1 -1
  106. metadata +94 -59
  107. data/docs/NpmPackage.md +0 -29
  108. data/docs/PulpNpmPackagesApi.md +0 -60
  109. data/git_push.sh +0 -58
  110. data/lib/pulp_npm_client/api/pulp_npm_packages_api.rb +0 -86
  111. data/lib/pulp_npm_client/models/npm_package.rb +0 -337
  112. data/spec/api/pulp_npm_packages_api_spec.rb +0 -48
  113. data/spec/api_client_spec.rb +0 -188
  114. data/spec/configuration_spec.rb +0 -42
  115. data/spec/models/npm_package_spec.rb +0 -77
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 17e5be2599f8bd3c8d1e77fb9154575df3a44b299f3984dd8ea4492c8b0e39d1
4
- data.tar.gz: 6fa4eaecdc4a725ae6076283d8eab3c804f10530aaf2b678dce0509fac57c668
3
+ metadata.gz: 119e880b645d5ae43a04c69fb8189160df80d0722e85dee931fb003414e523fd
4
+ data.tar.gz: 5d2877c5c6920f9c5fea88aa89fa9dd4d5336a79d7520af04fa2ac06a104ee47
5
5
  SHA512:
6
- metadata.gz: 6170105e489adaba2ff0ecf6a7a2a750f408cc0a6c230ff54fff059d7e7df88693a9b5785f7da8626c5cdd4b9c11b6f3979d82a68012f289f44751e7f5bd87fe
7
- data.tar.gz: 76e5de68ce2a37d72752bd7a32208e4cea6dbcc16550a3dfef0ad1767c43a9781c295040d9d36e7d102d8eca180e50bff9ed2e90de1af3b44f282b19f783731e
6
+ metadata.gz: 222323df7d9ebfa079c3bc74be9e1cdde7c224fc828f544c2fd566e7c919f7b7e9f15b9529187e18357d1c5b1420fe1e1b6c4e5458a4307e5d94430e41a5bc4b
7
+ data.tar.gz: 8d8b3ad258e5bfd5b5b85f8dc6d102f799f219c0015dfd4226632472e31bc724fc34ee9876c18e0e35531eb0177ff66f197956000a7db58a357dc9b25a963f06
data/README.md CHANGED
@@ -7,7 +7,8 @@ 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: 0.1.0a4
10
+ - Package version: 0.1.0
11
+ - Generator version: 7.10.0
11
12
  - Build package: org.openapitools.codegen.languages.RubyClientCodegen
12
13
  For more information, please visit [https://pulpproject.org](https://pulpproject.org)
13
14
 
@@ -24,16 +25,16 @@ gem build pulp_npm_client.gemspec
24
25
  Then either install the gem locally:
25
26
 
26
27
  ```shell
27
- gem install ./pulp_npm_client-0.1.0a4.gem
28
+ gem install ./pulp_npm_client-0.1.0.gem
28
29
  ```
29
30
 
30
- (for development, run `gem install --dev ./pulp_npm_client-0.1.0a4.gem` to install the development dependencies)
31
+ (for development, run `gem install --dev ./pulp_npm_client-0.1.0.gem` to install the development dependencies)
31
32
 
32
33
  or publish the gem to a gem hosting service, e.g. [RubyGems](https://rubygems.org/).
33
34
 
34
35
  Finally add this to the Gemfile:
35
36
 
36
- gem 'pulp_npm_client', '~> 0.1.0a4'
37
+ gem 'pulp_npm_client', '~> 0.1.0'
37
38
 
38
39
  ### Install from Git
39
40
 
@@ -62,6 +63,8 @@ PulpNpmClient.configure do |config|
62
63
  # Configure HTTP basic authorization: basicAuth
63
64
  config.username = 'YOUR_USERNAME'
64
65
  config.password = 'YOUR_PASSWORD'
66
+ # Configure faraday connection
67
+ config.configure_faraday_connection { |connection| 'YOUR CONNECTION CONFIG PROC' }
65
68
  end
66
69
 
67
70
  api_instance = PulpNpmClient::ContentPackagesApi.new
@@ -69,10 +72,11 @@ relative_path = 'relative_path_example' # String |
69
72
  name = 'name_example' # String |
70
73
  version = 'version_example' # String |
71
74
  opts = {
72
- artifact: 'artifact_example', # String | Artifact file representing the physical content
73
- file: File.new('/path/to/file'), # File | An uploaded file that may be turned into the artifact of the content unit.
74
75
  repository: 'repository_example', # String | A URI of a repository the new content unit should be associated with.
75
- upload: 'upload_example' # String | An uncommitted upload that may be turned into the artifact of the content unit.
76
+ artifact: 'artifact_example', # String | Artifact file representing the physical content
77
+ file: File.new('/path/to/some/file'), # File | An uploaded file that may be turned into the content unit.
78
+ upload: 'upload_example', # String | An uncommitted upload that may be turned into the content unit.
79
+ file_url: 'file_url_example' # String | A url that Pulp can download and turn into the content unit.
76
80
  }
77
81
 
78
82
  begin
@@ -87,7 +91,7 @@ end
87
91
 
88
92
  ## Documentation for API Endpoints
89
93
 
90
- All URIs are relative to *https://pulp*
94
+ All URIs are relative to *http://localhost:24817*
91
95
 
92
96
  Class | Method | HTTP request | Description
93
97
  ------------ | ------------- | ------------- | -------------
@@ -99,13 +103,16 @@ Class | Method | HTTP request | Description
99
103
  *PulpNpmClient::DistributionsNpmApi* | [**list**](docs/DistributionsNpmApi.md#list) | **GET** /pulp/api/v3/distributions/npm/npm/ | List npm distributions
100
104
  *PulpNpmClient::DistributionsNpmApi* | [**partial_update**](docs/DistributionsNpmApi.md#partial_update) | **PATCH** {npm_npm_distribution_href} | Update a npm distribution
101
105
  *PulpNpmClient::DistributionsNpmApi* | [**read**](docs/DistributionsNpmApi.md#read) | **GET** {npm_npm_distribution_href} | Inspect a npm distribution
106
+ *PulpNpmClient::DistributionsNpmApi* | [**set_label**](docs/DistributionsNpmApi.md#set_label) | **POST** {npm_npm_distribution_href}set_label/ | Set a label
107
+ *PulpNpmClient::DistributionsNpmApi* | [**unset_label**](docs/DistributionsNpmApi.md#unset_label) | **POST** {npm_npm_distribution_href}unset_label/ | Unset a label
102
108
  *PulpNpmClient::DistributionsNpmApi* | [**update**](docs/DistributionsNpmApi.md#update) | **PUT** {npm_npm_distribution_href} | Update a npm distribution
103
- *PulpNpmClient::PulpNpmPackagesApi* | [**get**](docs/PulpNpmPackagesApi.md#get) | **GET** /pulp_npm/packages/{name}/ |
104
109
  *PulpNpmClient::RemotesNpmApi* | [**create**](docs/RemotesNpmApi.md#create) | **POST** /pulp/api/v3/remotes/npm/npm/ | Create a npm remote
105
110
  *PulpNpmClient::RemotesNpmApi* | [**delete**](docs/RemotesNpmApi.md#delete) | **DELETE** {npm_npm_remote_href} | Delete a npm remote
106
111
  *PulpNpmClient::RemotesNpmApi* | [**list**](docs/RemotesNpmApi.md#list) | **GET** /pulp/api/v3/remotes/npm/npm/ | List npm remotes
107
112
  *PulpNpmClient::RemotesNpmApi* | [**partial_update**](docs/RemotesNpmApi.md#partial_update) | **PATCH** {npm_npm_remote_href} | Update a npm remote
108
113
  *PulpNpmClient::RemotesNpmApi* | [**read**](docs/RemotesNpmApi.md#read) | **GET** {npm_npm_remote_href} | Inspect a npm remote
114
+ *PulpNpmClient::RemotesNpmApi* | [**set_label**](docs/RemotesNpmApi.md#set_label) | **POST** {npm_npm_remote_href}set_label/ | Set a label
115
+ *PulpNpmClient::RemotesNpmApi* | [**unset_label**](docs/RemotesNpmApi.md#unset_label) | **POST** {npm_npm_remote_href}unset_label/ | Unset a label
109
116
  *PulpNpmClient::RemotesNpmApi* | [**update**](docs/RemotesNpmApi.md#update) | **PUT** {npm_npm_remote_href} | Update a npm remote
110
117
  *PulpNpmClient::RepositoriesNpmApi* | [**create**](docs/RepositoriesNpmApi.md#create) | **POST** /pulp/api/v3/repositories/npm/npm/ | Create a npm repository
111
118
  *PulpNpmClient::RepositoriesNpmApi* | [**delete**](docs/RepositoriesNpmApi.md#delete) | **DELETE** {npm_npm_repository_href} | Delete a npm repository
@@ -113,7 +120,9 @@ Class | Method | HTTP request | Description
113
120
  *PulpNpmClient::RepositoriesNpmApi* | [**modify**](docs/RepositoriesNpmApi.md#modify) | **POST** {npm_npm_repository_href}modify/ | Modify Repository Content
114
121
  *PulpNpmClient::RepositoriesNpmApi* | [**partial_update**](docs/RepositoriesNpmApi.md#partial_update) | **PATCH** {npm_npm_repository_href} | Update a npm repository
115
122
  *PulpNpmClient::RepositoriesNpmApi* | [**read**](docs/RepositoriesNpmApi.md#read) | **GET** {npm_npm_repository_href} | Inspect a npm repository
123
+ *PulpNpmClient::RepositoriesNpmApi* | [**set_label**](docs/RepositoriesNpmApi.md#set_label) | **POST** {npm_npm_repository_href}set_label/ | Set a label
116
124
  *PulpNpmClient::RepositoriesNpmApi* | [**sync**](docs/RepositoriesNpmApi.md#sync) | **POST** {npm_npm_repository_href}sync/ | Sync from remote
125
+ *PulpNpmClient::RepositoriesNpmApi* | [**unset_label**](docs/RepositoriesNpmApi.md#unset_label) | **POST** {npm_npm_repository_href}unset_label/ | Unset a label
117
126
  *PulpNpmClient::RepositoriesNpmApi* | [**update**](docs/RepositoriesNpmApi.md#update) | **PUT** {npm_npm_repository_href} | Update a npm repository
118
127
  *PulpNpmClient::RepositoriesNpmVersionsApi* | [**delete**](docs/RepositoriesNpmVersionsApi.md#delete) | **DELETE** {npm_npm_repository_version_href} | Delete a repository version
119
128
  *PulpNpmClient::RepositoriesNpmVersionsApi* | [**list**](docs/RepositoriesNpmVersionsApi.md#list) | **GET** {npm_npm_repository_href}versions/ | List repository versions
@@ -129,9 +138,9 @@ Class | Method | HTTP request | Description
129
138
  - [PulpNpmClient::NpmNpmDistributionResponse](docs/NpmNpmDistributionResponse.md)
130
139
  - [PulpNpmClient::NpmNpmRemote](docs/NpmNpmRemote.md)
131
140
  - [PulpNpmClient::NpmNpmRemoteResponse](docs/NpmNpmRemoteResponse.md)
141
+ - [PulpNpmClient::NpmNpmRemoteResponseHiddenFieldsInner](docs/NpmNpmRemoteResponseHiddenFieldsInner.md)
132
142
  - [PulpNpmClient::NpmNpmRepository](docs/NpmNpmRepository.md)
133
143
  - [PulpNpmClient::NpmNpmRepositoryResponse](docs/NpmNpmRepositoryResponse.md)
134
- - [PulpNpmClient::NpmPackage](docs/NpmPackage.md)
135
144
  - [PulpNpmClient::NpmPackageResponse](docs/NpmPackageResponse.md)
136
145
  - [PulpNpmClient::PaginatedRepositoryVersionResponseList](docs/PaginatedRepositoryVersionResponseList.md)
137
146
  - [PulpNpmClient::PaginatednpmNpmDistributionResponseList](docs/PaginatednpmNpmDistributionResponseList.md)
@@ -146,11 +155,16 @@ Class | Method | HTTP request | Description
146
155
  - [PulpNpmClient::RepositoryAddRemoveContent](docs/RepositoryAddRemoveContent.md)
147
156
  - [PulpNpmClient::RepositorySyncURL](docs/RepositorySyncURL.md)
148
157
  - [PulpNpmClient::RepositoryVersionResponse](docs/RepositoryVersionResponse.md)
158
+ - [PulpNpmClient::SetLabel](docs/SetLabel.md)
159
+ - [PulpNpmClient::SetLabelResponse](docs/SetLabelResponse.md)
160
+ - [PulpNpmClient::UnsetLabel](docs/UnsetLabel.md)
161
+ - [PulpNpmClient::UnsetLabelResponse](docs/UnsetLabelResponse.md)
149
162
 
150
163
 
151
164
  ## Documentation for Authorization
152
165
 
153
166
 
167
+ Authentication schemes defined for the API:
154
168
  ### basicAuth
155
169
 
156
170
  - **Type**: HTTP basic authentication
@@ -2,16 +2,17 @@
2
2
 
3
3
  ## Properties
4
4
 
5
- Name | Type | Description | Notes
6
- ------------ | ------------- | ------------- | -------------
7
- **task** | **String** | The href of the task. |
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **task** | **String** | The href of the task. | |
8
8
 
9
- ## Code Sample
9
+ ## Example
10
10
 
11
11
  ```ruby
12
- require 'PulpNpmClient'
12
+ require 'pulp_npm_client'
13
13
 
14
- instance = PulpNpmClient::AsyncOperationResponse.new(task: null)
14
+ instance = PulpNpmClient::AsyncOperationResponse.new(
15
+ task: null
16
+ )
15
17
  ```
16
18
 
17
-
@@ -1,27 +1,26 @@
1
1
  # PulpNpmClient::ContentPackagesApi
2
2
 
3
- All URIs are relative to *https://pulp*
4
-
5
- Method | HTTP request | Description
6
- ------------- | ------------- | -------------
7
- [**create**](ContentPackagesApi.md#create) | **POST** /pulp/api/v3/content/npm/packages/ | Create a package
8
- [**list**](ContentPackagesApi.md#list) | **GET** /pulp/api/v3/content/npm/packages/ | List packages
9
- [**read**](ContentPackagesApi.md#read) | **GET** {npm_package_href} | Inspect a package
3
+ All URIs are relative to *http://localhost:24817*
10
4
 
5
+ | Method | HTTP request | Description |
6
+ | ------ | ------------ | ----------- |
7
+ | [**create**](ContentPackagesApi.md#create) | **POST** /pulp/api/v3/content/npm/packages/ | Create a package |
8
+ | [**list**](ContentPackagesApi.md#list) | **GET** /pulp/api/v3/content/npm/packages/ | List packages |
9
+ | [**read**](ContentPackagesApi.md#read) | **GET** {npm_package_href} | Inspect a package |
11
10
 
12
11
 
13
12
  ## create
14
13
 
15
- > NpmPackageResponse create(relative_path, name, version, opts)
14
+ > <NpmPackageResponse> create(relative_path, name, version, opts)
16
15
 
17
16
  Create a package
18
17
 
19
- Perform bookkeeping when saving Content. \"Artifacts\" need to be popped off and saved indpendently, as they are not actually part of the Content model.
18
+ Perform bookkeeping when saving Content. \"Artifacts\" need to be popped off and saved independently, as they are not actually part of the Content model.
20
19
 
21
- ### Example
20
+ ### Examples
22
21
 
23
22
  ```ruby
24
- # load the gem
23
+ require 'time'
25
24
  require 'pulp_npm_client'
26
25
  # setup authorization
27
26
  PulpNpmClient.configure do |config|
@@ -35,33 +34,52 @@ relative_path = 'relative_path_example' # String |
35
34
  name = 'name_example' # String |
36
35
  version = 'version_example' # String |
37
36
  opts = {
38
- artifact: 'artifact_example', # String | Artifact file representing the physical content
39
- file: File.new('/path/to/file'), # File | An uploaded file that may be turned into the artifact of the content unit.
40
37
  repository: 'repository_example', # String | A URI of a repository the new content unit should be associated with.
41
- upload: 'upload_example' # String | An uncommitted upload that may be turned into the artifact of the content unit.
38
+ artifact: 'artifact_example', # String | Artifact file representing the physical content
39
+ file: File.new('/path/to/some/file'), # File | An uploaded file that may be turned into the content unit.
40
+ upload: 'upload_example', # String | An uncommitted upload that may be turned into the content unit.
41
+ file_url: 'file_url_example' # String | A url that Pulp can download and turn into the content unit.
42
42
  }
43
43
 
44
44
  begin
45
- #Create a package
45
+ # Create a package
46
46
  result = api_instance.create(relative_path, name, version, opts)
47
47
  p result
48
48
  rescue PulpNpmClient::ApiError => e
49
- puts "Exception when calling ContentPackagesApi->create: #{e}"
49
+ puts "Error when calling ContentPackagesApi->create: #{e}"
50
50
  end
51
51
  ```
52
52
 
53
- ### Parameters
53
+ #### Using the create_with_http_info variant
54
54
 
55
+ This returns an Array which contains the response data, status code and headers.
55
56
 
56
- Name | Type | Description | Notes
57
- ------------- | ------------- | ------------- | -------------
58
- **relative_path** | **String**| |
59
- **name** | **String**| |
60
- **version** | **String**| |
61
- **artifact** | **String**| Artifact file representing the physical content | [optional]
62
- **file** | **File**| An uploaded file that may be turned into the artifact of the content unit. | [optional]
63
- **repository** | **String**| A URI of a repository the new content unit should be associated with. | [optional]
64
- **upload** | **String**| An uncommitted upload that may be turned into the artifact of the content unit. | [optional]
57
+ > <Array(<NpmPackageResponse>, Integer, Hash)> create_with_http_info(relative_path, name, version, opts)
58
+
59
+ ```ruby
60
+ begin
61
+ # Create a package
62
+ data, status_code, headers = api_instance.create_with_http_info(relative_path, name, version, opts)
63
+ p status_code # => 2xx
64
+ p headers # => { ... }
65
+ p data # => <NpmPackageResponse>
66
+ rescue PulpNpmClient::ApiError => e
67
+ puts "Error when calling ContentPackagesApi->create_with_http_info: #{e}"
68
+ end
69
+ ```
70
+
71
+ ### Parameters
72
+
73
+ | Name | Type | Description | Notes |
74
+ | ---- | ---- | ----------- | ----- |
75
+ | **relative_path** | **String** | | |
76
+ | **name** | **String** | | |
77
+ | **version** | **String** | | |
78
+ | **repository** | **String** | A URI of a repository the new content unit should be associated with. | [optional] |
79
+ | **artifact** | **String** | Artifact file representing the physical content | [optional] |
80
+ | **file** | **File** | An uploaded file that may be turned into the content unit. | [optional] |
81
+ | **upload** | **String** | An uncommitted upload that may be turned into the content unit. | [optional] |
82
+ | **file_url** | **String** | A url that Pulp can download and turn into the content unit. | [optional] |
65
83
 
66
84
  ### Return type
67
85
 
@@ -79,16 +97,16 @@ Name | Type | Description | Notes
79
97
 
80
98
  ## list
81
99
 
82
- > PaginatednpmPackageResponseList list(opts)
100
+ > <PaginatednpmPackageResponseList> list(opts)
83
101
 
84
102
  List packages
85
103
 
86
104
  A ViewSet for Package. Define endpoint name which will appear in the API endpoint for this content type. For example:: http://pulp.example.com/pulp/api/v3/content/npm/units/ Also specify queryset and serializer for Package.
87
105
 
88
- ### Example
106
+ ### Examples
89
107
 
90
108
  ```ruby
91
- # load the gem
109
+ require 'time'
92
110
  require 'pulp_npm_client'
93
111
  # setup authorization
94
112
  PulpNpmClient.configure do |config|
@@ -101,40 +119,67 @@ api_instance = PulpNpmClient::ContentPackagesApi.new
101
119
  opts = {
102
120
  limit: 56, # Integer | Number of results to return per page.
103
121
  name: 'name_example', # String | Filter results where name matches value
104
- name__in: ['name__in_example'], # Array<String> | Filter results where name is in a comma-separated list of values
122
+ name__in: ['inner_example'], # Array<String> | Filter results where name is in a comma-separated list of values
105
123
  offset: 56, # Integer | The initial index from which to return the results.
106
- ordering: ['ordering_example'], # Array<String> | Ordering
107
- repository_version: 'repository_version_example', # String | Repository Version referenced by HREF
108
- repository_version_added: 'repository_version_added_example', # String | Repository Version referenced by HREF
109
- repository_version_removed: 'repository_version_removed_example', # String | Repository Version referenced by HREF
110
- fields: 'fields_example', # String | A list of fields to include in the response.
111
- exclude_fields: 'exclude_fields_example' # String | A list of fields to exclude from the response.
124
+ ordering: ['-name'], # 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) * `pk` - Pk * `-pk` - Pk (descending)
125
+ orphaned_for: 8.14, # Float | Minutes Content has been orphaned for. -1 uses ORPHAN_PROTECTION_TIME.
126
+ prn__in: ['inner_example'], # Array<String> | Multiple values may be separated by commas.
127
+ pulp_href__in: ['inner_example'], # Array<String> | Multiple values may be separated by commas.
128
+ pulp_id__in: ['inner_example'], # Array<String> | Multiple values may be separated by commas.
129
+ q: 'q_example', # String | Filter results by using NOT, AND and OR operations on other filters
130
+ repository_version: 'repository_version_example', # String | Repository Version referenced by HREF/PRN
131
+ repository_version_added: 'repository_version_added_example', # String | Repository Version referenced by HREF/PRN
132
+ repository_version_removed: 'repository_version_removed_example', # String | Repository Version referenced by HREF/PRN
133
+ fields: ['inner_example'], # Array<String> | A list of fields to include in the response.
134
+ exclude_fields: ['inner_example'] # Array<String> | A list of fields to exclude from the response.
112
135
  }
113
136
 
114
137
  begin
115
- #List packages
138
+ # List packages
116
139
  result = api_instance.list(opts)
117
140
  p result
118
141
  rescue PulpNpmClient::ApiError => e
119
- puts "Exception when calling ContentPackagesApi->list: #{e}"
142
+ puts "Error when calling ContentPackagesApi->list: #{e}"
120
143
  end
121
144
  ```
122
145
 
123
- ### Parameters
146
+ #### Using the list_with_http_info variant
124
147
 
148
+ This returns an Array which contains the response data, status code and headers.
125
149
 
126
- Name | Type | Description | Notes
127
- ------------- | ------------- | ------------- | -------------
128
- **limit** | **Integer**| Number of results to return per page. | [optional]
129
- **name** | **String**| Filter results where name matches value | [optional]
130
- **name__in** | [**Array&lt;String&gt;**](String.md)| Filter results where name is in a comma-separated list of values | [optional]
131
- **offset** | **Integer**| The initial index from which to return the results. | [optional]
132
- **ordering** | [**Array&lt;String&gt;**](String.md)| Ordering | [optional]
133
- **repository_version** | **String**| Repository Version referenced by HREF | [optional]
134
- **repository_version_added** | **String**| Repository Version referenced by HREF | [optional]
135
- **repository_version_removed** | **String**| Repository Version referenced by HREF | [optional]
136
- **fields** | **String**| A list of fields to include in the response. | [optional]
137
- **exclude_fields** | **String**| A list of fields to exclude from the response. | [optional]
150
+ > <Array(<PaginatednpmPackageResponseList>, Integer, Hash)> list_with_http_info(opts)
151
+
152
+ ```ruby
153
+ begin
154
+ # List packages
155
+ data, status_code, headers = api_instance.list_with_http_info(opts)
156
+ p status_code # => 2xx
157
+ p headers # => { ... }
158
+ p data # => <PaginatednpmPackageResponseList>
159
+ rescue PulpNpmClient::ApiError => e
160
+ puts "Error when calling ContentPackagesApi->list_with_http_info: #{e}"
161
+ end
162
+ ```
163
+
164
+ ### Parameters
165
+
166
+ | Name | Type | Description | Notes |
167
+ | ---- | ---- | ----------- | ----- |
168
+ | **limit** | **Integer** | Number of results to return per page. | [optional] |
169
+ | **name** | **String** | Filter results where name matches value | [optional] |
170
+ | **name__in** | [**Array&lt;String&gt;**](String.md) | Filter results where name is in a comma-separated list of values | [optional] |
171
+ | **offset** | **Integer** | The initial index from which to return the results. | [optional] |
172
+ | **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;pk&#x60; - Pk * &#x60;-pk&#x60; - Pk (descending) | [optional] |
173
+ | **orphaned_for** | **Float** | Minutes Content has been orphaned for. -1 uses ORPHAN_PROTECTION_TIME. | [optional] |
174
+ | **prn__in** | [**Array&lt;String&gt;**](String.md) | Multiple values may be separated by commas. | [optional] |
175
+ | **pulp_href__in** | [**Array&lt;String&gt;**](String.md) | Multiple values may be separated by commas. | [optional] |
176
+ | **pulp_id__in** | [**Array&lt;String&gt;**](String.md) | Multiple values may be separated by commas. | [optional] |
177
+ | **q** | **String** | Filter results by using NOT, AND and OR operations on other filters | [optional] |
178
+ | **repository_version** | **String** | Repository Version referenced by HREF/PRN | [optional] |
179
+ | **repository_version_added** | **String** | Repository Version referenced by HREF/PRN | [optional] |
180
+ | **repository_version_removed** | **String** | Repository Version referenced by HREF/PRN | [optional] |
181
+ | **fields** | [**Array&lt;String&gt;**](String.md) | A list of fields to include in the response. | [optional] |
182
+ | **exclude_fields** | [**Array&lt;String&gt;**](String.md) | A list of fields to exclude from the response. | [optional] |
138
183
 
139
184
  ### Return type
140
185
 
@@ -152,16 +197,16 @@ Name | Type | Description | Notes
152
197
 
153
198
  ## read
154
199
 
155
- > NpmPackageResponse read(npm_package_href, opts)
200
+ > <NpmPackageResponse> read(npm_package_href, opts)
156
201
 
157
202
  Inspect a package
158
203
 
159
204
  A ViewSet for Package. Define endpoint name which will appear in the API endpoint for this content type. For example:: http://pulp.example.com/pulp/api/v3/content/npm/units/ Also specify queryset and serializer for Package.
160
205
 
161
- ### Example
206
+ ### Examples
162
207
 
163
208
  ```ruby
164
- # load the gem
209
+ require 'time'
165
210
  require 'pulp_npm_client'
166
211
  # setup authorization
167
212
  PulpNpmClient.configure do |config|
@@ -173,27 +218,44 @@ end
173
218
  api_instance = PulpNpmClient::ContentPackagesApi.new
174
219
  npm_package_href = 'npm_package_href_example' # String |
175
220
  opts = {
176
- fields: 'fields_example', # String | A list of fields to include in the response.
177
- exclude_fields: 'exclude_fields_example' # String | A list of fields to exclude from the response.
221
+ fields: ['inner_example'], # Array<String> | A list of fields to include in the response.
222
+ exclude_fields: ['inner_example'] # Array<String> | A list of fields to exclude from the response.
178
223
  }
179
224
 
180
225
  begin
181
- #Inspect a package
226
+ # Inspect a package
182
227
  result = api_instance.read(npm_package_href, opts)
183
228
  p result
184
229
  rescue PulpNpmClient::ApiError => e
185
- puts "Exception when calling ContentPackagesApi->read: #{e}"
230
+ puts "Error when calling ContentPackagesApi->read: #{e}"
186
231
  end
187
232
  ```
188
233
 
189
- ### Parameters
234
+ #### Using the read_with_http_info variant
235
+
236
+ This returns an Array which contains the response data, status code and headers.
190
237
 
238
+ > <Array(<NpmPackageResponse>, Integer, Hash)> read_with_http_info(npm_package_href, opts)
239
+
240
+ ```ruby
241
+ begin
242
+ # Inspect a package
243
+ data, status_code, headers = api_instance.read_with_http_info(npm_package_href, opts)
244
+ p status_code # => 2xx
245
+ p headers # => { ... }
246
+ p data # => <NpmPackageResponse>
247
+ rescue PulpNpmClient::ApiError => e
248
+ puts "Error when calling ContentPackagesApi->read_with_http_info: #{e}"
249
+ end
250
+ ```
251
+
252
+ ### Parameters
191
253
 
192
- Name | Type | Description | Notes
193
- ------------- | ------------- | ------------- | -------------
194
- **npm_package_href** | **String**| |
195
- **fields** | **String**| A list of fields to include in the response. | [optional]
196
- **exclude_fields** | **String**| A list of fields to exclude from the response. | [optional]
254
+ | Name | Type | Description | Notes |
255
+ | ---- | ---- | ----------- | ----- |
256
+ | **npm_package_href** | **String** | | |
257
+ | **fields** | [**Array&lt;String&gt;**](String.md) | A list of fields to include in the response. | [optional] |
258
+ | **exclude_fields** | [**Array&lt;String&gt;**](String.md) | A list of fields to exclude from the response. | [optional] |
197
259
 
198
260
  ### Return type
199
261
 
@@ -2,20 +2,21 @@
2
2
 
3
3
  ## Properties
4
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;** | |
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
10
 
11
- ## Code Sample
11
+ ## Example
12
12
 
13
13
  ```ruby
14
- require 'PulpNpmClient'
14
+ require 'pulp_npm_client'
15
15
 
16
- instance = PulpNpmClient::ContentSummaryResponse.new(added: null,
17
- removed: null,
18
- present: null)
16
+ instance = PulpNpmClient::ContentSummaryResponse.new(
17
+ added: null,
18
+ removed: null,
19
+ present: null
20
+ )
19
21
  ```
20
22
 
21
-