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.
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
@@ -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
- OpenAPI Generator version: 4.3.1
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://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
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://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
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 * &#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;name&#x60; - Name * &#x60;-name&#x60; - Name (descending) * &#x60;pulp_labels&#x60; - Pulp labels * &#x60;-pulp_labels&#x60; - Pulp labels (descending) * &#x60;base_path&#x60; - Base path * &#x60;-base_path&#x60; - Base path (descending) * &#x60;hidden&#x60; - Hidden * &#x60;-hidden&#x60; - Hidden (descending) * &#x60;pk&#x60; - Pk * &#x60;-pk&#x60; - 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] :fields A list of fields to include in the response.
77
- # @option opts [String] :exclude_fields A list of fields to exclude from the response.
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://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
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://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
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://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
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://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
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
- OpenAPI Generator version: 4.3.1
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://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
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://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
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 * &#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;name&#x60; - Name * &#x60;-name&#x60; - Name (descending) * &#x60;pulp_labels&#x60; - Pulp labels * &#x60;-pulp_labels&#x60; - Pulp labels (descending) * &#x60;url&#x60; - Url * &#x60;-url&#x60; - Url (descending) * &#x60;ca_cert&#x60; - Ca cert * &#x60;-ca_cert&#x60; - Ca cert (descending) * &#x60;client_cert&#x60; - Client cert * &#x60;-client_cert&#x60; - Client cert (descending) * &#x60;client_key&#x60; - Client key * &#x60;-client_key&#x60; - Client key (descending) * &#x60;tls_validation&#x60; - Tls validation * &#x60;-tls_validation&#x60; - Tls validation (descending) * &#x60;username&#x60; - Username * &#x60;-username&#x60; - Username (descending) * &#x60;password&#x60; - Password * &#x60;-password&#x60; - Password (descending) * &#x60;proxy_url&#x60; - Proxy url * &#x60;-proxy_url&#x60; - Proxy url (descending) * &#x60;proxy_username&#x60; - Proxy username * &#x60;-proxy_username&#x60; - Proxy username (descending) * &#x60;proxy_password&#x60; - Proxy password * &#x60;-proxy_password&#x60; - Proxy password (descending) * &#x60;download_concurrency&#x60; - Download concurrency * &#x60;-download_concurrency&#x60; - Download concurrency (descending) * &#x60;max_retries&#x60; - Max retries * &#x60;-max_retries&#x60; - Max retries (descending) * &#x60;policy&#x60; - Policy * &#x60;-policy&#x60; - Policy (descending) * &#x60;total_timeout&#x60; - Total timeout * &#x60;-total_timeout&#x60; - Total timeout (descending) * &#x60;connect_timeout&#x60; - Connect timeout * &#x60;-connect_timeout&#x60; - Connect timeout (descending) * &#x60;sock_connect_timeout&#x60; - Sock connect timeout * &#x60;-sock_connect_timeout&#x60; - Sock connect timeout (descending) * &#x60;sock_read_timeout&#x60; - Sock read timeout * &#x60;-sock_read_timeout&#x60; - Sock read timeout (descending) * &#x60;headers&#x60; - Headers * &#x60;-headers&#x60; - Headers (descending) * &#x60;rate_limit&#x60; - Rate limit * &#x60;-rate_limit&#x60; - Rate limit (descending) * &#x60;pk&#x60; - Pk * &#x60;-pk&#x60; - 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 [DateTime] :pulp_last_updated ISO 8601 formatted dates are supported
73
- # @option opts [DateTime] :pulp_last_updated__gt Filter results where pulp_last_updated is greater than value
74
- # @option opts [DateTime] :pulp_last_updated__gte Filter results where pulp_last_updated is greater than or equal to value
75
- # @option opts [DateTime] :pulp_last_updated__lt Filter results where pulp_last_updated is less than value
76
- # @option opts [DateTime] :pulp_last_updated__lte Filter results where pulp_last_updated is less than or equal to value
77
- # @option opts [Array<DateTime>] :pulp_last_updated__range Filter results where pulp_last_updated is between two comma separated values
78
- # @option opts [String] :fields A list of fields to include in the response.
79
- # @option opts [String] :exclude_fields A list of fields to exclude from the response.
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://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
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://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
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://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
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://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
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
- OpenAPI Generator version: 4.3.1
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://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
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://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
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 * &#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;name&#x60; - Name * &#x60;-name&#x60; - Name (descending) * &#x60;pulp_labels&#x60; - Pulp labels * &#x60;-pulp_labels&#x60; - Pulp labels (descending) * &#x60;description&#x60; - Description * &#x60;-description&#x60; - Description (descending) * &#x60;next_version&#x60; - Next version * &#x60;-next_version&#x60; - Next version (descending) * &#x60;retain_repo_versions&#x60; - Retain repo versions * &#x60;-retain_repo_versions&#x60; - Retain repo versions (descending) * &#x60;user_hidden&#x60; - User hidden * &#x60;-user_hidden&#x60; - User hidden (descending) * &#x60;pk&#x60; - Pk * &#x60;-pk&#x60; - 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] :fields A list of fields to include in the response.
73
- # @option opts [String] :exclude_fields A list of fields to exclude from the response.
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://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
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://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
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://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
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://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
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://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
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://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
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
- OpenAPI Generator version: 4.3.1
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://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
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 Content Unit referenced by HREF
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 [DateTime] :pulp_created ISO 8601 formatted dates are supported
64
- # @option opts [DateTime] :pulp_created__gt Filter results where pulp_created is greater than value
65
- # @option opts [DateTime] :pulp_created__gte Filter results where pulp_created is greater than or equal to value
66
- # @option opts [DateTime] :pulp_created__lt Filter results where pulp_created is less than value
67
- # @option opts [DateTime] :pulp_created__lte Filter results where pulp_created is less than or equal to value
68
- # @option opts [Array<DateTime>] :pulp_created__range Filter results where pulp_created is between two comma separated values
69
- # @option opts [String] :fields A list of fields to include in the response.
70
- # @option opts [String] :exclude_fields A list of fields to exclude from the response.
62
+ # @option opts [Array<String>] :ordering Ordering * &#x60;pulp_id&#x60; - Pulp id * &#x60;-pulp_id&#x60; - Pulp id (descending) * &#x60;pulp_created&#x60; - Pulp created * &#x60;-pulp_created&#x60; - Pulp created (descending) * &#x60;pulp_last_updated&#x60; - Pulp last updated * &#x60;-pulp_last_updated&#x60; - Pulp last updated (descending) * &#x60;number&#x60; - Number * &#x60;-number&#x60; - Number (descending) * &#x60;complete&#x60; - Complete * &#x60;-complete&#x60; - Complete (descending) * &#x60;info&#x60; - Info * &#x60;-info&#x60; - Info (descending) * &#x60;pk&#x60; - Pk * &#x60;-pk&#x60; - 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://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
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://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
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://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
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
- OpenAPI Generator version: 4.3.1
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 'AsyncOperationResponse' do
21
- before do
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
- expect(@instance).to be_instance_of(PulpNpmClient::AsyncOperationResponse)
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://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
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
- OpenAPI Generator version: 4.3.1
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 'ContentSummaryResponse' do
21
- before do
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
- expect(@instance).to be_instance_of(PulpNpmClient::ContentSummaryResponse)
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://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
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://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
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://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
44
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
50
45
  end
51
46
  end
52
47