pulp_npm_client 0.1.0a4 → 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.
- checksums.yaml +4 -4
- data/README.md +24 -10
- data/docs/AsyncOperationResponse.md +8 -7
- data/docs/ContentPackagesApi.md +126 -64
- data/docs/ContentSummaryResponse.md +12 -11
- data/docs/DistributionsNpmApi.md +362 -93
- data/docs/NpmNpmDistribution.md +18 -15
- data/docs/NpmNpmDistributionResponse.md +30 -21
- data/docs/NpmNpmRemote.md +48 -47
- data/docs/NpmNpmRemoteResponse.md +48 -43
- data/docs/NpmNpmRemoteResponseHiddenFieldsInner.md +20 -0
- data/docs/NpmNpmRepository.md +16 -15
- data/docs/NpmNpmRepositoryResponse.md +28 -23
- data/docs/NpmPackageResponse.md +22 -17
- data/docs/PaginatedRepositoryVersionResponseList.md +14 -13
- data/docs/PaginatednpmNpmDistributionResponseList.md +14 -13
- data/docs/PaginatednpmNpmRemoteResponseList.md +14 -13
- data/docs/PaginatednpmNpmRepositoryResponseList.md +14 -13
- data/docs/PaginatednpmPackageResponseList.md +14 -13
- data/docs/PatchednpmNpmDistribution.md +18 -15
- data/docs/PatchednpmNpmRemote.md +48 -47
- data/docs/PatchednpmNpmRepository.md +16 -15
- data/docs/PolicyEnum.md +4 -5
- data/docs/RemotesNpmApi.md +364 -99
- data/docs/Repair.md +8 -7
- data/docs/RepositoriesNpmApi.md +429 -110
- data/docs/RepositoriesNpmVersionsApi.md +156 -80
- data/docs/RepositoryAddRemoveContent.md +12 -11
- data/docs/RepositorySyncURL.md +10 -9
- data/docs/RepositoryVersionResponse.md +22 -17
- data/docs/SetLabel.md +20 -0
- data/docs/SetLabelResponse.md +20 -0
- data/docs/UnsetLabel.md +18 -0
- data/docs/UnsetLabelResponse.md +20 -0
- data/lib/pulp_npm_client/api/content_packages_api.rb +72 -44
- data/lib/pulp_npm_client/api/distributions_npm_api.rb +243 -47
- data/lib/pulp_npm_client/api/remotes_npm_api.rb +247 -57
- data/lib/pulp_npm_client/api/repositories_npm_api.rb +283 -55
- data/lib/pulp_npm_client/api/repositories_npm_versions_api.rb +71 -52
- data/lib/pulp_npm_client/api_client.rb +137 -102
- data/lib/pulp_npm_client/api_error.rb +2 -1
- data/lib/pulp_npm_client/configuration.rb +163 -22
- data/lib/pulp_npm_client/models/async_operation_response.rb +32 -22
- data/lib/pulp_npm_client/models/content_summary_response.rb +36 -22
- data/lib/pulp_npm_client/models/npm_npm_distribution.rb +51 -25
- data/lib/pulp_npm_client/models/npm_npm_distribution_response.rb +83 -27
- data/lib/pulp_npm_client/models/npm_npm_remote.rb +61 -25
- data/lib/pulp_npm_client/models/npm_npm_remote_response.rb +99 -41
- data/lib/pulp_npm_client/models/npm_npm_remote_response_hidden_fields_inner.rb +237 -0
- data/lib/pulp_npm_client/models/npm_npm_repository.rb +37 -25
- data/lib/pulp_npm_client/models/npm_npm_repository_response.rb +59 -27
- data/lib/pulp_npm_client/models/npm_package_response.rb +58 -24
- data/lib/pulp_npm_client/models/paginated_repository_version_response_list.rb +44 -22
- data/lib/pulp_npm_client/models/paginatednpm_npm_distribution_response_list.rb +44 -22
- data/lib/pulp_npm_client/models/paginatednpm_npm_remote_response_list.rb +44 -22
- data/lib/pulp_npm_client/models/paginatednpm_npm_repository_response_list.rb +44 -22
- data/lib/pulp_npm_client/models/paginatednpm_package_response_list.rb +44 -22
- data/lib/pulp_npm_client/models/patchednpm_npm_distribution.rb +57 -27
- data/lib/pulp_npm_client/models/patchednpm_npm_remote.rb +67 -27
- data/lib/pulp_npm_client/models/patchednpm_npm_repository.rb +40 -26
- data/lib/pulp_npm_client/models/policy_enum.rb +8 -4
- data/lib/pulp_npm_client/models/repair.rb +30 -22
- data/lib/pulp_npm_client/models/repository_add_remove_content.rb +33 -25
- data/lib/pulp_npm_client/models/repository_sync_url.rb +30 -22
- data/lib/pulp_npm_client/models/repository_version_response.rb +53 -25
- data/lib/pulp_npm_client/models/set_label.rb +264 -0
- data/lib/pulp_npm_client/models/set_label_response.rb +255 -0
- data/lib/pulp_npm_client/models/unset_label.rb +252 -0
- data/lib/pulp_npm_client/models/unset_label_response.rb +252 -0
- data/lib/pulp_npm_client/version.rb +2 -2
- data/lib/pulp_npm_client.rb +6 -3
- data/pulp_npm_client.gemspec +10 -7
- data/spec/api/content_packages_api_spec.rb +22 -16
- data/spec/api/distributions_npm_api_spec.rb +51 -14
- data/spec/api/remotes_npm_api_spec.rb +54 -19
- data/spec/api/repositories_npm_api_spec.rb +60 -15
- data/spec/api/repositories_npm_versions_api_spec.rb +23 -19
- data/spec/models/async_operation_response_spec.rb +7 -12
- data/spec/models/content_summary_response_spec.rb +9 -14
- data/spec/models/npm_npm_distribution_response_spec.rb +38 -19
- data/spec/models/npm_npm_distribution_spec.rb +17 -16
- data/spec/models/npm_npm_remote_response_hidden_fields_inner_spec.rb +42 -0
- data/spec/models/npm_npm_remote_response_spec.rb +42 -35
- data/spec/models/npm_npm_remote_spec.rb +27 -32
- data/spec/models/npm_npm_repository_response_spec.rb +27 -20
- data/spec/models/npm_npm_repository_spec.rb +11 -16
- data/spec/models/npm_package_response_spec.rb +24 -17
- data/spec/models/paginated_repository_version_response_list_spec.rb +10 -15
- data/spec/models/paginatednpm_npm_distribution_response_list_spec.rb +10 -15
- data/spec/models/paginatednpm_npm_remote_response_list_spec.rb +10 -15
- data/spec/models/paginatednpm_npm_repository_response_list_spec.rb +10 -15
- data/spec/models/paginatednpm_package_response_list_spec.rb +10 -15
- data/spec/models/patchednpm_npm_distribution_spec.rb +17 -16
- data/spec/models/patchednpm_npm_remote_spec.rb +27 -32
- data/spec/models/patchednpm_npm_repository_spec.rb +11 -16
- data/spec/models/policy_enum_spec.rb +6 -11
- data/spec/models/repair_spec.rb +7 -12
- data/spec/models/repository_add_remove_content_spec.rb +9 -14
- data/spec/models/repository_sync_url_spec.rb +8 -13
- data/spec/models/repository_version_response_spec.rb +24 -17
- data/spec/models/set_label_response_spec.rb +42 -0
- data/spec/models/set_label_spec.rb +42 -0
- data/spec/models/unset_label_response_spec.rb +42 -0
- data/spec/models/unset_label_spec.rb +36 -0
- data/spec/spec_helper.rb +1 -1
- metadata +94 -59
- data/docs/NpmPackage.md +0 -29
- data/docs/PulpNpmPackagesApi.md +0 -60
- data/git_push.sh +0 -58
- data/lib/pulp_npm_client/api/pulp_npm_packages_api.rb +0 -86
- data/lib/pulp_npm_client/models/npm_package.rb +0 -337
- data/spec/api/pulp_npm_packages_api_spec.rb +0 -48
- data/spec/api_client_spec.rb +0 -188
- data/spec/configuration_spec.rb +0 -42
- data/spec/models/npm_package_spec.rb +0 -77
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 119e880b645d5ae43a04c69fb8189160df80d0722e85dee931fb003414e523fd
|
|
4
|
+
data.tar.gz: 5d2877c5c6920f9c5fea88aa89fa9dd4d5336a79d7520af04fa2ac06a104ee47
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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
|
-
|
|
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 *
|
|
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
|
-
##
|
|
9
|
+
## Example
|
|
10
10
|
|
|
11
11
|
```ruby
|
|
12
|
-
require '
|
|
12
|
+
require 'pulp_npm_client'
|
|
13
13
|
|
|
14
|
-
instance = PulpNpmClient::AsyncOperationResponse.new(
|
|
14
|
+
instance = PulpNpmClient::AsyncOperationResponse.new(
|
|
15
|
+
task: null
|
|
16
|
+
)
|
|
15
17
|
```
|
|
16
18
|
|
|
17
|
-
|
data/docs/ContentPackagesApi.md
CHANGED
|
@@ -1,27 +1,26 @@
|
|
|
1
1
|
# PulpNpmClient::ContentPackagesApi
|
|
2
2
|
|
|
3
|
-
All URIs are relative to *
|
|
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
|
|
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
|
-
###
|
|
20
|
+
### Examples
|
|
22
21
|
|
|
23
22
|
```ruby
|
|
24
|
-
|
|
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
|
-
|
|
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 "
|
|
49
|
+
puts "Error when calling ContentPackagesApi->create: #{e}"
|
|
50
50
|
end
|
|
51
51
|
```
|
|
52
52
|
|
|
53
|
-
|
|
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
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
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
|
-
###
|
|
106
|
+
### Examples
|
|
89
107
|
|
|
90
108
|
```ruby
|
|
91
|
-
|
|
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: ['
|
|
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: ['
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
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 "
|
|
142
|
+
puts "Error when calling ContentPackagesApi->list: #{e}"
|
|
120
143
|
end
|
|
121
144
|
```
|
|
122
145
|
|
|
123
|
-
|
|
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
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
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<String>**](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<String>**](String.md) | 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) | [optional] |
|
|
173
|
+
| **orphaned_for** | **Float** | Minutes Content has been orphaned for. -1 uses ORPHAN_PROTECTION_TIME. | [optional] |
|
|
174
|
+
| **prn__in** | [**Array<String>**](String.md) | Multiple values may be separated by commas. | [optional] |
|
|
175
|
+
| **pulp_href__in** | [**Array<String>**](String.md) | Multiple values may be separated by commas. | [optional] |
|
|
176
|
+
| **pulp_id__in** | [**Array<String>**](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<String>**](String.md) | A list of fields to include in the response. | [optional] |
|
|
182
|
+
| **exclude_fields** | [**Array<String>**](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
|
-
###
|
|
206
|
+
### Examples
|
|
162
207
|
|
|
163
208
|
```ruby
|
|
164
|
-
|
|
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: '
|
|
177
|
-
exclude_fields: '
|
|
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 "
|
|
230
|
+
puts "Error when calling ContentPackagesApi->read: #{e}"
|
|
186
231
|
end
|
|
187
232
|
```
|
|
188
233
|
|
|
189
|
-
|
|
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
|
|
193
|
-
|
|
194
|
-
**npm_package_href** | **String
|
|
195
|
-
**fields** | **String
|
|
196
|
-
**exclude_fields** | **String
|
|
254
|
+
| Name | Type | Description | Notes |
|
|
255
|
+
| ---- | ---- | ----------- | ----- |
|
|
256
|
+
| **npm_package_href** | **String** | | |
|
|
257
|
+
| **fields** | [**Array<String>**](String.md) | A list of fields to include in the response. | [optional] |
|
|
258
|
+
| **exclude_fields** | [**Array<String>**](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<String, Object>** | |
|
|
8
|
-
**removed** | **Hash<String, Object>** | |
|
|
9
|
-
**present** | **Hash<String, Object>** | |
|
|
5
|
+
| Name | Type | Description | Notes |
|
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
|
7
|
+
| **added** | **Hash<String, Object>** | | |
|
|
8
|
+
| **removed** | **Hash<String, Object>** | | |
|
|
9
|
+
| **present** | **Hash<String, Object>** | | |
|
|
10
10
|
|
|
11
|
-
##
|
|
11
|
+
## Example
|
|
12
12
|
|
|
13
13
|
```ruby
|
|
14
|
-
require '
|
|
14
|
+
require 'pulp_npm_client'
|
|
15
15
|
|
|
16
|
-
instance = PulpNpmClient::ContentSummaryResponse.new(
|
|
17
|
-
|
|
18
|
-
|
|
16
|
+
instance = PulpNpmClient::ContentSummaryResponse.new(
|
|
17
|
+
added: null,
|
|
18
|
+
removed: null,
|
|
19
|
+
present: null
|
|
20
|
+
)
|
|
19
21
|
```
|
|
20
22
|
|
|
21
|
-
|