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.
- 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
@@ -6,7 +6,7 @@
|
|
6
6
|
The version of the OpenAPI document: v3
|
7
7
|
Contact: pulp-list@redhat.com
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
|
9
|
+
Generator version: 7.10.0
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -40,7 +40,7 @@ describe 'DistributionsNpmApi' do
|
|
40
40
|
# @return [AsyncOperationResponse]
|
41
41
|
describe 'create test' do
|
42
42
|
it 'should work' do
|
43
|
-
# assertion here. ref: https://
|
43
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
44
44
|
end
|
45
45
|
end
|
46
46
|
|
@@ -52,7 +52,7 @@ describe 'DistributionsNpmApi' do
|
|
52
52
|
# @return [AsyncOperationResponse]
|
53
53
|
describe 'delete test' do
|
54
54
|
it 'should work' do
|
55
|
-
# assertion here. ref: https://
|
55
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
56
56
|
end
|
57
57
|
end
|
58
58
|
|
@@ -60,25 +60,36 @@ describe 'DistributionsNpmApi' do
|
|
60
60
|
# List npm distributions
|
61
61
|
# ViewSet for NPM Distributions.
|
62
62
|
# @param [Hash] opts the optional parameters
|
63
|
-
# @option opts [String] :base_path
|
63
|
+
# @option opts [String] :base_path Filter results where base_path matches value
|
64
64
|
# @option opts [String] :base_path__contains Filter results where base_path contains value
|
65
65
|
# @option opts [String] :base_path__icontains Filter results where base_path contains value
|
66
66
|
# @option opts [Array<String>] :base_path__in Filter results where base_path is in a comma-separated list of values
|
67
67
|
# @option opts [Integer] :limit Number of results to return per page.
|
68
|
-
# @option opts [String] :name
|
68
|
+
# @option opts [String] :name Filter results where name matches value
|
69
69
|
# @option opts [String] :name__contains Filter results where name contains value
|
70
70
|
# @option opts [String] :name__icontains Filter results where name contains value
|
71
|
+
# @option opts [String] :name__iexact Filter results where name matches value
|
71
72
|
# @option opts [Array<String>] :name__in Filter results where name is in a comma-separated list of values
|
73
|
+
# @option opts [String] :name__iregex Filter results where name matches regex value
|
74
|
+
# @option opts [String] :name__istartswith Filter results where name starts with value
|
75
|
+
# @option opts [String] :name__regex Filter results where name matches regex value
|
72
76
|
# @option opts [String] :name__startswith Filter results where name starts with value
|
73
77
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
74
|
-
# @option opts [Array<String>] :ordering Ordering
|
78
|
+
# @option opts [Array<String>] :ordering 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) * `name` - Name * `-name` - Name (descending) * `pulp_labels` - Pulp labels * `-pulp_labels` - Pulp labels (descending) * `base_path` - Base path * `-base_path` - Base path (descending) * `hidden` - Hidden * `-hidden` - Hidden (descending) * `pk` - Pk * `-pk` - Pk (descending)
|
79
|
+
# @option opts [Array<String>] :prn__in Multiple values may be separated by commas.
|
80
|
+
# @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
|
81
|
+
# @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
|
75
82
|
# @option opts [String] :pulp_label_select Filter labels by search string
|
76
|
-
# @option opts [String] :
|
77
|
-
# @option opts [String] :
|
83
|
+
# @option opts [String] :q Filter results by using NOT, AND and OR operations on other filters
|
84
|
+
# @option opts [String] :repository Filter results where repository matches value
|
85
|
+
# @option opts [Array<String>] :repository__in Filter results where repository is in a comma-separated list of values
|
86
|
+
# @option opts [String] :with_content Filter distributions based on the content served by them
|
87
|
+
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
88
|
+
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
78
89
|
# @return [PaginatednpmNpmDistributionResponseList]
|
79
90
|
describe 'list test' do
|
80
91
|
it 'should work' do
|
81
|
-
# assertion here. ref: https://
|
92
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
82
93
|
end
|
83
94
|
end
|
84
95
|
|
@@ -91,7 +102,7 @@ describe 'DistributionsNpmApi' do
|
|
91
102
|
# @return [AsyncOperationResponse]
|
92
103
|
describe 'partial_update test' do
|
93
104
|
it 'should work' do
|
94
|
-
# assertion here. ref: https://
|
105
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
95
106
|
end
|
96
107
|
end
|
97
108
|
|
@@ -100,12 +111,38 @@ describe 'DistributionsNpmApi' do
|
|
100
111
|
# ViewSet for NPM Distributions.
|
101
112
|
# @param npm_npm_distribution_href
|
102
113
|
# @param [Hash] opts the optional parameters
|
103
|
-
# @option opts [String] :fields A list of fields to include in the response.
|
104
|
-
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
114
|
+
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
115
|
+
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
105
116
|
# @return [NpmNpmDistributionResponse]
|
106
117
|
describe 'read test' do
|
107
118
|
it 'should work' do
|
108
|
-
# assertion here. ref: https://
|
119
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
120
|
+
end
|
121
|
+
end
|
122
|
+
|
123
|
+
# unit tests for set_label
|
124
|
+
# Set a label
|
125
|
+
# Set a single pulp_label on the object to a specific value or null.
|
126
|
+
# @param npm_npm_distribution_href
|
127
|
+
# @param set_label
|
128
|
+
# @param [Hash] opts the optional parameters
|
129
|
+
# @return [SetLabelResponse]
|
130
|
+
describe 'set_label test' do
|
131
|
+
it 'should work' do
|
132
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
133
|
+
end
|
134
|
+
end
|
135
|
+
|
136
|
+
# unit tests for unset_label
|
137
|
+
# Unset a label
|
138
|
+
# Unset a single pulp_label on the object.
|
139
|
+
# @param npm_npm_distribution_href
|
140
|
+
# @param unset_label
|
141
|
+
# @param [Hash] opts the optional parameters
|
142
|
+
# @return [UnsetLabelResponse]
|
143
|
+
describe 'unset_label test' do
|
144
|
+
it 'should work' do
|
145
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
109
146
|
end
|
110
147
|
end
|
111
148
|
|
@@ -118,7 +155,7 @@ describe 'DistributionsNpmApi' do
|
|
118
155
|
# @return [AsyncOperationResponse]
|
119
156
|
describe 'update test' do
|
120
157
|
it 'should work' do
|
121
|
-
# assertion here. ref: https://
|
158
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
122
159
|
end
|
123
160
|
end
|
124
161
|
|
@@ -6,7 +6,7 @@
|
|
6
6
|
The version of the OpenAPI document: v3
|
7
7
|
Contact: pulp-list@redhat.com
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
|
9
|
+
Generator version: 7.10.0
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -40,7 +40,7 @@ describe 'RemotesNpmApi' do
|
|
40
40
|
# @return [NpmNpmRemoteResponse]
|
41
41
|
describe 'create test' do
|
42
42
|
it 'should work' do
|
43
|
-
# assertion here. ref: https://
|
43
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
44
44
|
end
|
45
45
|
end
|
46
46
|
|
@@ -52,7 +52,7 @@ describe 'RemotesNpmApi' do
|
|
52
52
|
# @return [AsyncOperationResponse]
|
53
53
|
describe 'delete test' do
|
54
54
|
it 'should work' do
|
55
|
-
# assertion here. ref: https://
|
55
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
56
56
|
end
|
57
57
|
end
|
58
58
|
|
@@ -61,26 +61,35 @@ describe 'RemotesNpmApi' do
|
|
61
61
|
# A ViewSet for NpmRemote. Similar to the PackageViewSet above, define endpoint_name, queryset and serializer, at a minimum.
|
62
62
|
# @param [Hash] opts the optional parameters
|
63
63
|
# @option opts [Integer] :limit Number of results to return per page.
|
64
|
-
# @option opts [String] :name
|
64
|
+
# @option opts [String] :name Filter results where name matches value
|
65
65
|
# @option opts [String] :name__contains Filter results where name contains value
|
66
66
|
# @option opts [String] :name__icontains Filter results where name contains value
|
67
|
+
# @option opts [String] :name__iexact Filter results where name matches value
|
67
68
|
# @option opts [Array<String>] :name__in Filter results where name is in a comma-separated list of values
|
69
|
+
# @option opts [String] :name__iregex Filter results where name matches regex value
|
70
|
+
# @option opts [String] :name__istartswith Filter results where name starts with value
|
71
|
+
# @option opts [String] :name__regex Filter results where name matches regex value
|
68
72
|
# @option opts [String] :name__startswith Filter results where name starts with value
|
69
73
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
70
|
-
# @option opts [Array<String>] :ordering Ordering
|
74
|
+
# @option opts [Array<String>] :ordering 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) * `name` - Name * `-name` - Name (descending) * `pulp_labels` - Pulp labels * `-pulp_labels` - Pulp labels (descending) * `url` - Url * `-url` - Url (descending) * `ca_cert` - Ca cert * `-ca_cert` - Ca cert (descending) * `client_cert` - Client cert * `-client_cert` - Client cert (descending) * `client_key` - Client key * `-client_key` - Client key (descending) * `tls_validation` - Tls validation * `-tls_validation` - Tls validation (descending) * `username` - Username * `-username` - Username (descending) * `password` - Password * `-password` - Password (descending) * `proxy_url` - Proxy url * `-proxy_url` - Proxy url (descending) * `proxy_username` - Proxy username * `-proxy_username` - Proxy username (descending) * `proxy_password` - Proxy password * `-proxy_password` - Proxy password (descending) * `download_concurrency` - Download concurrency * `-download_concurrency` - Download concurrency (descending) * `max_retries` - Max retries * `-max_retries` - Max retries (descending) * `policy` - Policy * `-policy` - Policy (descending) * `total_timeout` - Total timeout * `-total_timeout` - Total timeout (descending) * `connect_timeout` - Connect timeout * `-connect_timeout` - Connect timeout (descending) * `sock_connect_timeout` - Sock connect timeout * `-sock_connect_timeout` - Sock connect timeout (descending) * `sock_read_timeout` - Sock read timeout * `-sock_read_timeout` - Sock read timeout (descending) * `headers` - Headers * `-headers` - Headers (descending) * `rate_limit` - Rate limit * `-rate_limit` - Rate limit (descending) * `pk` - Pk * `-pk` - Pk (descending)
|
75
|
+
# @option opts [Array<String>] :prn__in Multiple values may be separated by commas.
|
76
|
+
# @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
|
77
|
+
# @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
|
71
78
|
# @option opts [String] :pulp_label_select Filter labels by search string
|
72
|
-
# @option opts [
|
73
|
-
# @option opts [
|
74
|
-
# @option opts [
|
75
|
-
# @option opts [
|
76
|
-
# @option opts [
|
77
|
-
# @option opts [
|
78
|
-
# @option opts [
|
79
|
-
# @option opts [String] :
|
79
|
+
# @option opts [Time] :pulp_last_updated Filter results where pulp_last_updated matches value
|
80
|
+
# @option opts [Time] :pulp_last_updated__gt Filter results where pulp_last_updated is greater than value
|
81
|
+
# @option opts [Time] :pulp_last_updated__gte Filter results where pulp_last_updated is greater than or equal to value
|
82
|
+
# @option opts [Boolean] :pulp_last_updated__isnull Filter results where pulp_last_updated has a null value
|
83
|
+
# @option opts [Time] :pulp_last_updated__lt Filter results where pulp_last_updated is less than value
|
84
|
+
# @option opts [Time] :pulp_last_updated__lte Filter results where pulp_last_updated is less than or equal to value
|
85
|
+
# @option opts [Array<Time>] :pulp_last_updated__range Filter results where pulp_last_updated is between two comma separated values
|
86
|
+
# @option opts [String] :q Filter results by using NOT, AND and OR operations on other filters
|
87
|
+
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
88
|
+
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
80
89
|
# @return [PaginatednpmNpmRemoteResponseList]
|
81
90
|
describe 'list test' do
|
82
91
|
it 'should work' do
|
83
|
-
# assertion here. ref: https://
|
92
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
84
93
|
end
|
85
94
|
end
|
86
95
|
|
@@ -93,7 +102,7 @@ describe 'RemotesNpmApi' do
|
|
93
102
|
# @return [AsyncOperationResponse]
|
94
103
|
describe 'partial_update test' do
|
95
104
|
it 'should work' do
|
96
|
-
# assertion here. ref: https://
|
105
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
97
106
|
end
|
98
107
|
end
|
99
108
|
|
@@ -102,12 +111,38 @@ describe 'RemotesNpmApi' do
|
|
102
111
|
# A ViewSet for NpmRemote. Similar to the PackageViewSet above, define endpoint_name, queryset and serializer, at a minimum.
|
103
112
|
# @param npm_npm_remote_href
|
104
113
|
# @param [Hash] opts the optional parameters
|
105
|
-
# @option opts [String] :fields A list of fields to include in the response.
|
106
|
-
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
114
|
+
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
115
|
+
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
107
116
|
# @return [NpmNpmRemoteResponse]
|
108
117
|
describe 'read test' do
|
109
118
|
it 'should work' do
|
110
|
-
# assertion here. ref: https://
|
119
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
120
|
+
end
|
121
|
+
end
|
122
|
+
|
123
|
+
# unit tests for set_label
|
124
|
+
# Set a label
|
125
|
+
# Set a single pulp_label on the object to a specific value or null.
|
126
|
+
# @param npm_npm_remote_href
|
127
|
+
# @param set_label
|
128
|
+
# @param [Hash] opts the optional parameters
|
129
|
+
# @return [SetLabelResponse]
|
130
|
+
describe 'set_label test' do
|
131
|
+
it 'should work' do
|
132
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
133
|
+
end
|
134
|
+
end
|
135
|
+
|
136
|
+
# unit tests for unset_label
|
137
|
+
# Unset a label
|
138
|
+
# Unset a single pulp_label on the object.
|
139
|
+
# @param npm_npm_remote_href
|
140
|
+
# @param unset_label
|
141
|
+
# @param [Hash] opts the optional parameters
|
142
|
+
# @return [UnsetLabelResponse]
|
143
|
+
describe 'unset_label test' do
|
144
|
+
it 'should work' do
|
145
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
111
146
|
end
|
112
147
|
end
|
113
148
|
|
@@ -120,7 +155,7 @@ describe 'RemotesNpmApi' do
|
|
120
155
|
# @return [AsyncOperationResponse]
|
121
156
|
describe 'update test' do
|
122
157
|
it 'should work' do
|
123
|
-
# assertion here. ref: https://
|
158
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
124
159
|
end
|
125
160
|
end
|
126
161
|
|
@@ -6,7 +6,7 @@
|
|
6
6
|
The version of the OpenAPI document: v3
|
7
7
|
Contact: pulp-list@redhat.com
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
|
9
|
+
Generator version: 7.10.0
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -40,7 +40,7 @@ describe 'RepositoriesNpmApi' do
|
|
40
40
|
# @return [NpmNpmRepositoryResponse]
|
41
41
|
describe 'create test' do
|
42
42
|
it 'should work' do
|
43
|
-
# assertion here. ref: https://
|
43
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
44
44
|
end
|
45
45
|
end
|
46
46
|
|
@@ -52,7 +52,7 @@ describe 'RepositoriesNpmApi' do
|
|
52
52
|
# @return [AsyncOperationResponse]
|
53
53
|
describe 'delete test' do
|
54
54
|
it 'should work' do
|
55
|
-
# assertion here. ref: https://
|
55
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
56
56
|
end
|
57
57
|
end
|
58
58
|
|
@@ -60,21 +60,40 @@ describe 'RepositoriesNpmApi' do
|
|
60
60
|
# List npm repositorys
|
61
61
|
# A ViewSet for NpmRepository. Similar to the PackageViewSet above, define endpoint_name, queryset and serializer, at a minimum.
|
62
62
|
# @param [Hash] opts the optional parameters
|
63
|
+
# @option opts [String] :latest_with_content Content Unit referenced by HREF/PRN
|
63
64
|
# @option opts [Integer] :limit Number of results to return per page.
|
64
|
-
# @option opts [String] :name
|
65
|
+
# @option opts [String] :name Filter results where name matches value
|
65
66
|
# @option opts [String] :name__contains Filter results where name contains value
|
66
67
|
# @option opts [String] :name__icontains Filter results where name contains value
|
68
|
+
# @option opts [String] :name__iexact Filter results where name matches value
|
67
69
|
# @option opts [Array<String>] :name__in Filter results where name is in a comma-separated list of values
|
70
|
+
# @option opts [String] :name__iregex Filter results where name matches regex value
|
71
|
+
# @option opts [String] :name__istartswith Filter results where name starts with value
|
72
|
+
# @option opts [String] :name__regex Filter results where name matches regex value
|
68
73
|
# @option opts [String] :name__startswith Filter results where name starts with value
|
69
74
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
70
|
-
# @option opts [Array<String>] :ordering Ordering
|
75
|
+
# @option opts [Array<String>] :ordering 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) * `name` - Name * `-name` - Name (descending) * `pulp_labels` - Pulp labels * `-pulp_labels` - Pulp labels (descending) * `description` - Description * `-description` - Description (descending) * `next_version` - Next version * `-next_version` - Next version (descending) * `retain_repo_versions` - Retain repo versions * `-retain_repo_versions` - Retain repo versions (descending) * `user_hidden` - User hidden * `-user_hidden` - User hidden (descending) * `pk` - Pk * `-pk` - Pk (descending)
|
76
|
+
# @option opts [Array<String>] :prn__in Multiple values may be separated by commas.
|
77
|
+
# @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
|
78
|
+
# @option opts [Array<String>] :pulp_id__in Multiple values may be separated by commas.
|
71
79
|
# @option opts [String] :pulp_label_select Filter labels by search string
|
72
|
-
# @option opts [String] :
|
73
|
-
# @option opts [String] :
|
80
|
+
# @option opts [String] :q Filter results by using NOT, AND and OR operations on other filters
|
81
|
+
# @option opts [String] :remote Foreign Key referenced by HREF
|
82
|
+
# @option opts [Integer] :retain_repo_versions Filter results where retain_repo_versions matches value
|
83
|
+
# @option opts [Integer] :retain_repo_versions__gt Filter results where retain_repo_versions is greater than value
|
84
|
+
# @option opts [Integer] :retain_repo_versions__gte Filter results where retain_repo_versions is greater than or equal to value
|
85
|
+
# @option opts [Boolean] :retain_repo_versions__isnull Filter results where retain_repo_versions has a null value
|
86
|
+
# @option opts [Integer] :retain_repo_versions__lt Filter results where retain_repo_versions is less than value
|
87
|
+
# @option opts [Integer] :retain_repo_versions__lte Filter results where retain_repo_versions is less than or equal to value
|
88
|
+
# @option opts [Integer] :retain_repo_versions__ne Filter results where retain_repo_versions not equal to value
|
89
|
+
# @option opts [Array<Integer>] :retain_repo_versions__range Filter results where retain_repo_versions is between two comma separated values
|
90
|
+
# @option opts [String] :with_content Content Unit referenced by HREF/PRN
|
91
|
+
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
92
|
+
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
74
93
|
# @return [PaginatednpmNpmRepositoryResponseList]
|
75
94
|
describe 'list test' do
|
76
95
|
it 'should work' do
|
77
|
-
# assertion here. ref: https://
|
96
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
78
97
|
end
|
79
98
|
end
|
80
99
|
|
@@ -87,7 +106,7 @@ describe 'RepositoriesNpmApi' do
|
|
87
106
|
# @return [AsyncOperationResponse]
|
88
107
|
describe 'modify test' do
|
89
108
|
it 'should work' do
|
90
|
-
# assertion here. ref: https://
|
109
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
91
110
|
end
|
92
111
|
end
|
93
112
|
|
@@ -100,7 +119,7 @@ describe 'RepositoriesNpmApi' do
|
|
100
119
|
# @return [AsyncOperationResponse]
|
101
120
|
describe 'partial_update test' do
|
102
121
|
it 'should work' do
|
103
|
-
# assertion here. ref: https://
|
122
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
104
123
|
end
|
105
124
|
end
|
106
125
|
|
@@ -109,12 +128,25 @@ describe 'RepositoriesNpmApi' do
|
|
109
128
|
# A ViewSet for NpmRepository. Similar to the PackageViewSet above, define endpoint_name, queryset and serializer, at a minimum.
|
110
129
|
# @param npm_npm_repository_href
|
111
130
|
# @param [Hash] opts the optional parameters
|
112
|
-
# @option opts [String] :fields A list of fields to include in the response.
|
113
|
-
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
131
|
+
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
132
|
+
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
114
133
|
# @return [NpmNpmRepositoryResponse]
|
115
134
|
describe 'read test' do
|
116
135
|
it 'should work' do
|
117
|
-
# assertion here. ref: https://
|
136
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
137
|
+
end
|
138
|
+
end
|
139
|
+
|
140
|
+
# unit tests for set_label
|
141
|
+
# Set a label
|
142
|
+
# Set a single pulp_label on the object to a specific value or null.
|
143
|
+
# @param npm_npm_repository_href
|
144
|
+
# @param set_label
|
145
|
+
# @param [Hash] opts the optional parameters
|
146
|
+
# @return [SetLabelResponse]
|
147
|
+
describe 'set_label test' do
|
148
|
+
it 'should work' do
|
149
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
118
150
|
end
|
119
151
|
end
|
120
152
|
|
@@ -127,7 +159,20 @@ describe 'RepositoriesNpmApi' do
|
|
127
159
|
# @return [AsyncOperationResponse]
|
128
160
|
describe 'sync test' do
|
129
161
|
it 'should work' do
|
130
|
-
# assertion here. ref: https://
|
162
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
163
|
+
end
|
164
|
+
end
|
165
|
+
|
166
|
+
# unit tests for unset_label
|
167
|
+
# Unset a label
|
168
|
+
# Unset a single pulp_label on the object.
|
169
|
+
# @param npm_npm_repository_href
|
170
|
+
# @param unset_label
|
171
|
+
# @param [Hash] opts the optional parameters
|
172
|
+
# @return [UnsetLabelResponse]
|
173
|
+
describe 'unset_label test' do
|
174
|
+
it 'should work' do
|
175
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
131
176
|
end
|
132
177
|
end
|
133
178
|
|
@@ -140,7 +185,7 @@ describe 'RepositoriesNpmApi' do
|
|
140
185
|
# @return [AsyncOperationResponse]
|
141
186
|
describe 'update test' do
|
142
187
|
it 'should work' do
|
143
|
-
# assertion here. ref: https://
|
188
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
144
189
|
end
|
145
190
|
end
|
146
191
|
|
@@ -6,7 +6,7 @@
|
|
6
6
|
The version of the OpenAPI document: v3
|
7
7
|
Contact: pulp-list@redhat.com
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
|
9
|
+
Generator version: 7.10.0
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -40,7 +40,7 @@ describe 'RepositoriesNpmVersionsApi' do
|
|
40
40
|
# @return [AsyncOperationResponse]
|
41
41
|
describe 'delete test' do
|
42
42
|
it 'should work' do
|
43
|
-
# assertion here. ref: https://
|
43
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
44
44
|
end
|
45
45
|
end
|
46
46
|
|
@@ -49,29 +49,33 @@ describe 'RepositoriesNpmVersionsApi' do
|
|
49
49
|
# A ViewSet for a NpmRepositoryVersion represents a single Npm repository version.
|
50
50
|
# @param npm_npm_repository_href
|
51
51
|
# @param [Hash] opts the optional parameters
|
52
|
-
# @option opts [String] :content Content Unit referenced by HREF
|
53
|
-
# @option opts [String] :content__in
|
52
|
+
# @option opts [String] :content Content Unit referenced by HREF/PRN
|
53
|
+
# @option opts [Array<String>] :content__in Multiple values may be separated by commas.
|
54
54
|
# @option opts [Integer] :limit Number of results to return per page.
|
55
|
-
# @option opts [Integer] :number
|
55
|
+
# @option opts [Integer] :number Filter results where number matches value
|
56
56
|
# @option opts [Integer] :number__gt Filter results where number is greater than value
|
57
57
|
# @option opts [Integer] :number__gte Filter results where number is greater than or equal to value
|
58
58
|
# @option opts [Integer] :number__lt Filter results where number is less than value
|
59
59
|
# @option opts [Integer] :number__lte Filter results where number is less than or equal to value
|
60
60
|
# @option opts [Array<Integer>] :number__range Filter results where number is between two comma separated values
|
61
61
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
62
|
-
# @option opts [Array<String>] :ordering Ordering
|
63
|
-
# @option opts [
|
64
|
-
# @option opts [
|
65
|
-
# @option opts [
|
66
|
-
# @option opts [
|
67
|
-
# @option opts [
|
68
|
-
# @option opts [
|
69
|
-
# @option opts [
|
70
|
-
# @option opts [
|
62
|
+
# @option opts [Array<String>] :ordering 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) * `number` - Number * `-number` - Number (descending) * `complete` - Complete * `-complete` - Complete (descending) * `info` - Info * `-info` - Info (descending) * `pk` - Pk * `-pk` - Pk (descending)
|
63
|
+
# @option opts [Array<String>] :prn__in Multiple values may be separated by commas.
|
64
|
+
# @option opts [Time] :pulp_created Filter results where pulp_created matches value
|
65
|
+
# @option opts [Time] :pulp_created__gt Filter results where pulp_created is greater than value
|
66
|
+
# @option opts [Time] :pulp_created__gte Filter results where pulp_created is greater than or equal to value
|
67
|
+
# @option opts [Boolean] :pulp_created__isnull Filter results where pulp_created has a null value
|
68
|
+
# @option opts [Time] :pulp_created__lt Filter results where pulp_created is less than value
|
69
|
+
# @option opts [Time] :pulp_created__lte Filter results where pulp_created is less than or equal to value
|
70
|
+
# @option opts [Array<Time>] :pulp_created__range Filter results where pulp_created is between two comma separated values
|
71
|
+
# @option opts [Array<String>] :pulp_href__in Multiple values may be separated by commas.
|
72
|
+
# @option opts [String] :q Filter results by using NOT, AND and OR operations on other filters
|
73
|
+
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
74
|
+
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
71
75
|
# @return [PaginatedRepositoryVersionResponseList]
|
72
76
|
describe 'list test' do
|
73
77
|
it 'should work' do
|
74
|
-
# assertion here. ref: https://
|
78
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
75
79
|
end
|
76
80
|
end
|
77
81
|
|
@@ -80,12 +84,12 @@ describe 'RepositoriesNpmVersionsApi' do
|
|
80
84
|
# A ViewSet for a NpmRepositoryVersion represents a single Npm repository version.
|
81
85
|
# @param npm_npm_repository_version_href
|
82
86
|
# @param [Hash] opts the optional parameters
|
83
|
-
# @option opts [String] :fields A list of fields to include in the response.
|
84
|
-
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
87
|
+
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
88
|
+
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
85
89
|
# @return [RepositoryVersionResponse]
|
86
90
|
describe 'read test' do
|
87
91
|
it 'should work' do
|
88
|
-
# assertion here. ref: https://
|
92
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
89
93
|
end
|
90
94
|
end
|
91
95
|
|
@@ -97,7 +101,7 @@ describe 'RepositoriesNpmVersionsApi' do
|
|
97
101
|
# @return [AsyncOperationResponse]
|
98
102
|
describe 'repair test' do
|
99
103
|
it 'should work' do
|
100
|
-
# assertion here. ref: https://
|
104
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
101
105
|
end
|
102
106
|
end
|
103
107
|
|
@@ -6,7 +6,7 @@
|
|
6
6
|
The version of the OpenAPI document: v3
|
7
7
|
Contact: pulp-list@redhat.com
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
|
9
|
+
Generator version: 7.10.0
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -17,24 +17,19 @@ require 'date'
|
|
17
17
|
# Unit tests for PulpNpmClient::AsyncOperationResponse
|
18
18
|
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
19
19
|
# Please update as you see appropriate
|
20
|
-
describe
|
21
|
-
|
22
|
-
# run before each test
|
23
|
-
@instance = PulpNpmClient::AsyncOperationResponse.new
|
24
|
-
end
|
25
|
-
|
26
|
-
after do
|
27
|
-
# run after each test
|
28
|
-
end
|
20
|
+
describe PulpNpmClient::AsyncOperationResponse do
|
21
|
+
let(:instance) { PulpNpmClient::AsyncOperationResponse.new }
|
29
22
|
|
30
23
|
describe 'test an instance of AsyncOperationResponse' do
|
31
24
|
it 'should create an instance of AsyncOperationResponse' do
|
32
|
-
|
25
|
+
# uncomment below to test the instance creation
|
26
|
+
#expect(instance).to be_instance_of(PulpNpmClient::AsyncOperationResponse)
|
33
27
|
end
|
34
28
|
end
|
29
|
+
|
35
30
|
describe 'test attribute "task"' do
|
36
31
|
it 'should work' do
|
37
|
-
# assertion here. ref: https://
|
32
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
38
33
|
end
|
39
34
|
end
|
40
35
|
|
@@ -6,7 +6,7 @@
|
|
6
6
|
The version of the OpenAPI document: v3
|
7
7
|
Contact: pulp-list@redhat.com
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
|
-
|
9
|
+
Generator version: 7.10.0
|
10
10
|
|
11
11
|
=end
|
12
12
|
|
@@ -17,36 +17,31 @@ require 'date'
|
|
17
17
|
# Unit tests for PulpNpmClient::ContentSummaryResponse
|
18
18
|
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
19
19
|
# Please update as you see appropriate
|
20
|
-
describe
|
21
|
-
|
22
|
-
# run before each test
|
23
|
-
@instance = PulpNpmClient::ContentSummaryResponse.new
|
24
|
-
end
|
25
|
-
|
26
|
-
after do
|
27
|
-
# run after each test
|
28
|
-
end
|
20
|
+
describe PulpNpmClient::ContentSummaryResponse do
|
21
|
+
let(:instance) { PulpNpmClient::ContentSummaryResponse.new }
|
29
22
|
|
30
23
|
describe 'test an instance of ContentSummaryResponse' do
|
31
24
|
it 'should create an instance of ContentSummaryResponse' do
|
32
|
-
|
25
|
+
# uncomment below to test the instance creation
|
26
|
+
#expect(instance).to be_instance_of(PulpNpmClient::ContentSummaryResponse)
|
33
27
|
end
|
34
28
|
end
|
29
|
+
|
35
30
|
describe 'test attribute "added"' do
|
36
31
|
it 'should work' do
|
37
|
-
# assertion here. ref: https://
|
32
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
38
33
|
end
|
39
34
|
end
|
40
35
|
|
41
36
|
describe 'test attribute "removed"' do
|
42
37
|
it 'should work' do
|
43
|
-
# assertion here. ref: https://
|
38
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
44
39
|
end
|
45
40
|
end
|
46
41
|
|
47
42
|
describe 'test attribute "present"' do
|
48
43
|
it 'should work' do
|
49
|
-
# assertion here. ref: https://
|
44
|
+
# assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
|
50
45
|
end
|
51
46
|
end
|
52
47
|
|