pulp_rpm_client 3.0.0b4.dev0.1561996773 → 3.0.0b5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (96) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +21 -6
  3. data/docs/Addon.md +27 -0
  4. data/docs/Artifact.md +35 -0
  5. data/docs/Checksum.md +19 -0
  6. data/docs/ContentAdvisoriesApi.md +12 -6
  7. data/docs/ContentPackagesApi.md +12 -6
  8. data/docs/DistributionTree.md +53 -0
  9. data/docs/DistributionTreesDistributionTreesApi.md +179 -0
  10. data/docs/DistributionsRpmApi.md +14 -8
  11. data/docs/Image.md +23 -0
  12. data/docs/InlineResponse200.md +3 -3
  13. data/docs/InlineResponse2001.md +3 -3
  14. data/docs/InlineResponse2002.md +4 -4
  15. data/docs/InlineResponse2003.md +4 -4
  16. data/docs/InlineResponse2004.md +4 -4
  17. data/docs/InlineResponse2005.md +23 -0
  18. data/docs/InlineResponse2006.md +23 -0
  19. data/docs/Package.md +9 -7
  20. data/docs/PublicationsRpmApi.md +14 -8
  21. data/docs/RemotesRpmApi.md +14 -8
  22. data/docs/RepoMetadataFile.md +31 -0
  23. data/docs/RepoMetadataFilesRepoMetadataFilesApi.md +179 -0
  24. data/docs/Variant.md +37 -0
  25. data/git_push.sh +10 -7
  26. data/lib/pulp_rpm_client/api/content_advisories_api.rb +15 -9
  27. data/lib/pulp_rpm_client/api/content_packages_api.rb +15 -9
  28. data/lib/pulp_rpm_client/api/distribution_trees_distribution_trees_api.rb +212 -0
  29. data/lib/pulp_rpm_client/api/distributions_rpm_api.rb +21 -15
  30. data/lib/pulp_rpm_client/api/publications_rpm_api.rb +19 -13
  31. data/lib/pulp_rpm_client/api/remotes_rpm_api.rb +22 -16
  32. data/lib/pulp_rpm_client/api/repo_metadata_files_repo_metadata_files_api.rb +212 -0
  33. data/lib/pulp_rpm_client/api/rpm_copy_api.rb +2 -2
  34. data/lib/pulp_rpm_client/api/rpm_upload_api.rb +2 -2
  35. data/lib/pulp_rpm_client/api_client.rb +77 -62
  36. data/lib/pulp_rpm_client/api_error.rb +1 -1
  37. data/lib/pulp_rpm_client/configuration.rb +13 -21
  38. data/lib/pulp_rpm_client/models/addon.rb +372 -0
  39. data/lib/pulp_rpm_client/models/artifact.rb +376 -0
  40. data/lib/pulp_rpm_client/models/async_operation_response.rb +1 -1
  41. data/lib/pulp_rpm_client/models/checksum.rb +255 -0
  42. data/lib/pulp_rpm_client/models/distribution_tree.rb +660 -0
  43. data/lib/pulp_rpm_client/models/image.rb +303 -0
  44. data/lib/pulp_rpm_client/models/inline_response200.rb +11 -11
  45. data/lib/pulp_rpm_client/models/inline_response2001.rb +11 -11
  46. data/lib/pulp_rpm_client/models/inline_response2002.rb +12 -12
  47. data/lib/pulp_rpm_client/models/inline_response2003.rb +12 -12
  48. data/lib/pulp_rpm_client/models/inline_response2004.rb +12 -12
  49. data/lib/pulp_rpm_client/models/inline_response2005.rb +235 -0
  50. data/lib/pulp_rpm_client/models/inline_response2006.rb +235 -0
  51. data/lib/pulp_rpm_client/models/package.rb +70 -41
  52. data/lib/pulp_rpm_client/models/repo_metadata_file.rb +381 -0
  53. data/lib/pulp_rpm_client/models/repository_sync_url.rb +1 -1
  54. data/lib/pulp_rpm_client/models/rpm_distribution.rb +1 -1
  55. data/lib/pulp_rpm_client/models/rpm_publication.rb +1 -1
  56. data/lib/pulp_rpm_client/models/rpm_remote.rb +1 -1
  57. data/lib/pulp_rpm_client/models/update_record.rb +1 -1
  58. data/lib/pulp_rpm_client/models/variant.rb +542 -0
  59. data/lib/pulp_rpm_client/version.rb +2 -2
  60. data/lib/pulp_rpm_client.rb +12 -1
  61. data/pulp_rpm_client.gemspec +3 -9
  62. data/spec/api/content_advisories_api_spec.rb +5 -3
  63. data/spec/api/content_packages_api_spec.rb +5 -3
  64. data/spec/api/distribution_trees_distribution_trees_api_spec.rb +74 -0
  65. data/spec/api/distributions_rpm_api_spec.rb +6 -4
  66. data/spec/api/publications_rpm_api_spec.rb +6 -4
  67. data/spec/api/remotes_rpm_api_spec.rb +6 -4
  68. data/spec/api/repo_metadata_files_repo_metadata_files_api_spec.rb +74 -0
  69. data/spec/api/rpm_copy_api_spec.rb +1 -1
  70. data/spec/api/rpm_upload_api_spec.rb +1 -1
  71. data/spec/api_client_spec.rb +1 -39
  72. data/spec/configuration_spec.rb +1 -1
  73. data/spec/models/addon_spec.rb +71 -0
  74. data/spec/models/artifact_spec.rb +95 -0
  75. data/spec/models/async_operation_response_spec.rb +1 -1
  76. data/spec/models/checksum_spec.rb +47 -0
  77. data/spec/models/distribution_tree_spec.rb +149 -0
  78. data/spec/models/image_spec.rb +59 -0
  79. data/spec/models/inline_response2001_spec.rb +4 -4
  80. data/spec/models/inline_response2002_spec.rb +4 -4
  81. data/spec/models/inline_response2003_spec.rb +4 -4
  82. data/spec/models/inline_response2004_spec.rb +4 -4
  83. data/spec/models/inline_response2005_spec.rb +59 -0
  84. data/spec/models/inline_response2006_spec.rb +59 -0
  85. data/spec/models/inline_response200_spec.rb +4 -4
  86. data/spec/models/package_spec.rb +16 -10
  87. data/spec/models/repo_metadata_file_spec.rb +83 -0
  88. data/spec/models/repository_sync_url_spec.rb +1 -1
  89. data/spec/models/rpm_distribution_spec.rb +1 -1
  90. data/spec/models/rpm_publication_spec.rb +1 -1
  91. data/spec/models/rpm_remote_spec.rb +1 -1
  92. data/spec/models/update_record_spec.rb +1 -1
  93. data/spec/models/variant_spec.rb +101 -0
  94. data/spec/spec_helper.rb +1 -1
  95. metadata +50 -133
  96. data/Gemfile.lock +0 -79
@@ -4,19 +4,19 @@
4
4
 
5
5
  Name | Type | Description | Notes
6
6
  ------------ | ------------- | ------------- | -------------
7
+ **count** | **Integer** | |
7
8
  **_next** | **String** | | [optional]
8
9
  **previous** | **String** | | [optional]
9
- **count** | **Integer** | |
10
- **results** | [**Array<RpmDistribution>**](RpmDistribution.md) | |
10
+ **results** | [**Array<DistributionTree>**](DistributionTree.md) | |
11
11
 
12
12
  ## Code Sample
13
13
 
14
14
  ```ruby
15
15
  require 'PulpRpmClient'
16
16
 
17
- instance = PulpRpmClient::InlineResponse2002.new(_next: null,
17
+ instance = PulpRpmClient::InlineResponse2002.new(count: null,
18
+ _next: null,
18
19
  previous: null,
19
- count: null,
20
20
  results: null)
21
21
  ```
22
22
 
@@ -4,19 +4,19 @@
4
4
 
5
5
  Name | Type | Description | Notes
6
6
  ------------ | ------------- | ------------- | -------------
7
+ **count** | **Integer** | |
7
8
  **_next** | **String** | | [optional]
8
9
  **previous** | **String** | | [optional]
9
- **count** | **Integer** | |
10
- **results** | [**Array<RpmPublication>**](RpmPublication.md) | |
10
+ **results** | [**Array<RpmDistribution>**](RpmDistribution.md) | |
11
11
 
12
12
  ## Code Sample
13
13
 
14
14
  ```ruby
15
15
  require 'PulpRpmClient'
16
16
 
17
- instance = PulpRpmClient::InlineResponse2003.new(_next: null,
17
+ instance = PulpRpmClient::InlineResponse2003.new(count: null,
18
+ _next: null,
18
19
  previous: null,
19
- count: null,
20
20
  results: null)
21
21
  ```
22
22
 
@@ -4,19 +4,19 @@
4
4
 
5
5
  Name | Type | Description | Notes
6
6
  ------------ | ------------- | ------------- | -------------
7
+ **count** | **Integer** | |
7
8
  **_next** | **String** | | [optional]
8
9
  **previous** | **String** | | [optional]
9
- **count** | **Integer** | |
10
- **results** | [**Array<RpmRemote>**](RpmRemote.md) | |
10
+ **results** | [**Array<RpmPublication>**](RpmPublication.md) | |
11
11
 
12
12
  ## Code Sample
13
13
 
14
14
  ```ruby
15
15
  require 'PulpRpmClient'
16
16
 
17
- instance = PulpRpmClient::InlineResponse2004.new(_next: null,
17
+ instance = PulpRpmClient::InlineResponse2004.new(count: null,
18
+ _next: null,
18
19
  previous: null,
19
- count: null,
20
20
  results: null)
21
21
  ```
22
22
 
@@ -0,0 +1,23 @@
1
+ # PulpRpmClient::InlineResponse2005
2
+
3
+ ## Properties
4
+
5
+ Name | Type | Description | Notes
6
+ ------------ | ------------- | ------------- | -------------
7
+ **count** | **Integer** | |
8
+ **_next** | **String** | | [optional]
9
+ **previous** | **String** | | [optional]
10
+ **results** | [**Array<RpmRemote>**](RpmRemote.md) | |
11
+
12
+ ## Code Sample
13
+
14
+ ```ruby
15
+ require 'PulpRpmClient'
16
+
17
+ instance = PulpRpmClient::InlineResponse2005.new(count: null,
18
+ _next: null,
19
+ previous: null,
20
+ results: null)
21
+ ```
22
+
23
+
@@ -0,0 +1,23 @@
1
+ # PulpRpmClient::InlineResponse2006
2
+
3
+ ## Properties
4
+
5
+ Name | Type | Description | Notes
6
+ ------------ | ------------- | ------------- | -------------
7
+ **count** | **Integer** | |
8
+ **_next** | **String** | | [optional]
9
+ **previous** | **String** | | [optional]
10
+ **results** | [**Array<RepoMetadataFile>**](RepoMetadataFile.md) | |
11
+
12
+ ## Code Sample
13
+
14
+ ```ruby
15
+ require 'PulpRpmClient'
16
+
17
+ instance = PulpRpmClient::InlineResponse2006.new(count: null,
18
+ _next: null,
19
+ previous: null,
20
+ results: null)
21
+ ```
22
+
23
+
data/docs/Package.md CHANGED
@@ -4,10 +4,11 @@
4
4
 
5
5
  Name | Type | Description | Notes
6
6
  ------------ | ------------- | ------------- | -------------
7
- **_created** | **DateTime** | Timestamp of creation. | [optional]
7
+ **relative_path** | **String** | File name of the package |
8
8
  **_href** | **String** | | [optional]
9
+ **_created** | **DateTime** | Timestamp of creation. | [optional]
10
+ **artifact** | **String** | Artifact file representing the physical content |
9
11
  **_type** | **String** | | [optional]
10
- **_artifact** | **String** | Artifact file representing the physical content |
11
12
  **name** | **String** | Name of the package |
12
13
  **epoch** | **String** | The package's epoch | [optional]
13
14
  **version** | **String** | The version of the package. For example, '2.8.0' |
@@ -38,22 +39,23 @@ Name | Type | Description | Notes
38
39
  **rpm_vendor** | **String** | Name of the organization that produced the package | [optional]
39
40
  **rpm_header_start** | **Integer** | First byte of the header |
40
41
  **rpm_header_end** | **Integer** | Last byte of the header |
42
+ **is_modular** | **Boolean** | Flag to identify if the package is modular | [optional]
41
43
  **size_archive** | **Integer** | Size, in bytes, of the archive portion of the original package file |
42
44
  **size_installed** | **Integer** | Total size, in bytes, of every file installed by this package |
43
45
  **size_package** | **Integer** | Size, in bytes, of the package |
44
46
  **time_build** | **Integer** | Time the package was built in seconds since the epoch |
45
47
  **time_file** | **Integer** | The 'file' time attribute in the primary XML - file mtime in seconds since the epoch. |
46
- **relative_path** | **String** | File name of the package |
47
48
 
48
49
  ## Code Sample
49
50
 
50
51
  ```ruby
51
52
  require 'PulpRpmClient'
52
53
 
53
- instance = PulpRpmClient::Package.new(_created: null,
54
+ instance = PulpRpmClient::Package.new(relative_path: null,
54
55
  _href: null,
56
+ _created: null,
57
+ artifact: null,
55
58
  _type: null,
56
- _artifact: null,
57
59
  name: null,
58
60
  epoch: null,
59
61
  version: null,
@@ -84,12 +86,12 @@ instance = PulpRpmClient::Package.new(_created: null,
84
86
  rpm_vendor: null,
85
87
  rpm_header_start: null,
86
88
  rpm_header_end: null,
89
+ is_modular: null,
87
90
  size_archive: null,
88
91
  size_installed: null,
89
92
  size_package: null,
90
93
  time_build: null,
91
- time_file: null,
92
- relative_path: null)
94
+ time_file: null)
93
95
  ```
94
96
 
95
97
 
@@ -118,7 +118,7 @@ nil (empty response body)
118
118
 
119
119
  ## list
120
120
 
121
- > InlineResponse2003 list(opts)
121
+ > InlineResponse2004 list(opts)
122
122
 
123
123
  List rpm publications
124
124
 
@@ -139,8 +139,9 @@ end
139
139
  api_instance = PulpRpmClient::PublicationsRpmApi.new
140
140
  opts = {
141
141
  ordering: 'ordering_example', # String | Which field to use when ordering the results.
142
- page: 56, # Integer | A page number within the paginated result set.
143
- page_size: 56 # Integer | Number of results to return per page.
142
+ limit: 56, # Integer | Number of results to return per page.
143
+ offset: 56, # Integer | The initial index from which to return the results.
144
+ fields: 'fields_example' # String | A list of fields to include in the response.
144
145
  }
145
146
 
146
147
  begin
@@ -158,12 +159,13 @@ end
158
159
  Name | Type | Description | Notes
159
160
  ------------- | ------------- | ------------- | -------------
160
161
  **ordering** | **String**| Which field to use when ordering the results. | [optional]
161
- **page** | **Integer**| A page number within the paginated result set. | [optional]
162
- **page_size** | **Integer**| Number of results to return per page. | [optional]
162
+ **limit** | **Integer**| Number of results to return per page. | [optional]
163
+ **offset** | **Integer**| The initial index from which to return the results. | [optional]
164
+ **fields** | **String**| A list of fields to include in the response. | [optional]
163
165
 
164
166
  ### Return type
165
167
 
166
- [**InlineResponse2003**](InlineResponse2003.md)
168
+ [**InlineResponse2004**](InlineResponse2004.md)
167
169
 
168
170
  ### Authorization
169
171
 
@@ -177,7 +179,7 @@ Name | Type | Description | Notes
177
179
 
178
180
  ## read
179
181
 
180
- > RpmPublication read(rpm_publication_href)
182
+ > RpmPublication read(rpm_publication_href, opts)
181
183
 
182
184
  Inspect a rpm publication
183
185
 
@@ -197,10 +199,13 @@ end
197
199
 
198
200
  api_instance = PulpRpmClient::PublicationsRpmApi.new
199
201
  rpm_publication_href = 'rpm_publication_href_example' # String | URI of Rpm Publication. e.g.: /pulp/api/v3/publications/rpm/rpm/1/
202
+ opts = {
203
+ fields: 'fields_example' # String | A list of fields to include in the response.
204
+ }
200
205
 
201
206
  begin
202
207
  #Inspect a rpm publication
203
- result = api_instance.read(rpm_publication_href)
208
+ result = api_instance.read(rpm_publication_href, opts)
204
209
  p result
205
210
  rescue PulpRpmClient::ApiError => e
206
211
  puts "Exception when calling PublicationsRpmApi->read: #{e}"
@@ -213,6 +218,7 @@ end
213
218
  Name | Type | Description | Notes
214
219
  ------------- | ------------- | ------------- | -------------
215
220
  **rpm_publication_href** | **String**| URI of Rpm Publication. e.g.: /pulp/api/v3/publications/rpm/rpm/1/ |
221
+ **fields** | **String**| A list of fields to include in the response. | [optional]
216
222
 
217
223
  ### Return type
218
224
 
@@ -122,7 +122,7 @@ Name | Type | Description | Notes
122
122
 
123
123
  ## list
124
124
 
125
- > InlineResponse2004 list(opts)
125
+ > InlineResponse2005 list(opts)
126
126
 
127
127
  List rpm remotes
128
128
 
@@ -150,8 +150,9 @@ opts = {
150
150
  _last_updated__gte: '_last_updated__gte_example', # String | Filter results where _last_updated is greater than or equal to value
151
151
  _last_updated__range: '_last_updated__range_example', # String | Filter results where _last_updated is between two comma separated values
152
152
  _last_updated: '_last_updated_example', # String | ISO 8601 formatted dates are supported
153
- page: 56, # Integer | A page number within the paginated result set.
154
- page_size: 56 # Integer | Number of results to return per page.
153
+ limit: 56, # Integer | Number of results to return per page.
154
+ offset: 56, # Integer | The initial index from which to return the results.
155
+ fields: 'fields_example' # String | A list of fields to include in the response.
155
156
  }
156
157
 
157
158
  begin
@@ -176,12 +177,13 @@ Name | Type | Description | Notes
176
177
  **_last_updated__gte** | **String**| Filter results where _last_updated is greater than or equal to value | [optional]
177
178
  **_last_updated__range** | **String**| Filter results where _last_updated is between two comma separated values | [optional]
178
179
  **_last_updated** | **String**| ISO 8601 formatted dates are supported | [optional]
179
- **page** | **Integer**| A page number within the paginated result set. | [optional]
180
- **page_size** | **Integer**| Number of results to return per page. | [optional]
180
+ **limit** | **Integer**| Number of results to return per page. | [optional]
181
+ **offset** | **Integer**| The initial index from which to return the results. | [optional]
182
+ **fields** | **String**| A list of fields to include in the response. | [optional]
181
183
 
182
184
  ### Return type
183
185
 
184
- [**InlineResponse2004**](InlineResponse2004.md)
186
+ [**InlineResponse2005**](InlineResponse2005.md)
185
187
 
186
188
  ### Authorization
187
189
 
@@ -250,7 +252,7 @@ Name | Type | Description | Notes
250
252
 
251
253
  ## read
252
254
 
253
- > RpmRemote read(rpm_remote_href)
255
+ > RpmRemote read(rpm_remote_href, opts)
254
256
 
255
257
  Inspect a rpm remote
256
258
 
@@ -270,10 +272,13 @@ end
270
272
 
271
273
  api_instance = PulpRpmClient::RemotesRpmApi.new
272
274
  rpm_remote_href = 'rpm_remote_href_example' # String | URI of Rpm Remote. e.g.: /pulp/api/v3/remotes/rpm/rpm/1/
275
+ opts = {
276
+ fields: 'fields_example' # String | A list of fields to include in the response.
277
+ }
273
278
 
274
279
  begin
275
280
  #Inspect a rpm remote
276
- result = api_instance.read(rpm_remote_href)
281
+ result = api_instance.read(rpm_remote_href, opts)
277
282
  p result
278
283
  rescue PulpRpmClient::ApiError => e
279
284
  puts "Exception when calling RemotesRpmApi->read: #{e}"
@@ -286,6 +291,7 @@ end
286
291
  Name | Type | Description | Notes
287
292
  ------------- | ------------- | ------------- | -------------
288
293
  **rpm_remote_href** | **String**| URI of Rpm Remote. e.g.: /pulp/api/v3/remotes/rpm/rpm/1/ |
294
+ **fields** | **String**| A list of fields to include in the response. | [optional]
289
295
 
290
296
  ### Return type
291
297
 
@@ -0,0 +1,31 @@
1
+ # PulpRpmClient::RepoMetadataFile
2
+
3
+ ## Properties
4
+
5
+ Name | Type | Description | Notes
6
+ ------------ | ------------- | ------------- | -------------
7
+ **_href** | **String** | | [optional]
8
+ **_created** | **DateTime** | Timestamp of creation. | [optional]
9
+ **_type** | **String** | | [optional]
10
+ **artifact** | **String** | Artifact file representing the physical content |
11
+ **relative_path** | **String** | Path where the artifact is located relative to distributions base_path |
12
+ **data_type** | **String** | Metadata type. |
13
+ **checksum_type** | **String** | Checksum type for the file. |
14
+ **checksum** | **String** | Checksum for the file. |
15
+
16
+ ## Code Sample
17
+
18
+ ```ruby
19
+ require 'PulpRpmClient'
20
+
21
+ instance = PulpRpmClient::RepoMetadataFile.new(_href: null,
22
+ _created: null,
23
+ _type: null,
24
+ artifact: null,
25
+ relative_path: null,
26
+ data_type: null,
27
+ checksum_type: null,
28
+ checksum: null)
29
+ ```
30
+
31
+
@@ -0,0 +1,179 @@
1
+ # PulpRpmClient::RepoMetadataFilesRepoMetadataFilesApi
2
+
3
+ All URIs are relative to *http://localhost:24817*
4
+
5
+ Method | HTTP request | Description
6
+ ------------- | ------------- | -------------
7
+ [**delete**](RepoMetadataFilesRepoMetadataFilesApi.md#delete) | **DELETE** {repo_metadata_file_href} | Delete a repo metadata file
8
+ [**list**](RepoMetadataFilesRepoMetadataFilesApi.md#list) | **GET** /pulp/api/v3/repo_metadata_files/rpm/repo_metadata_files/ | List repo metadata files
9
+ [**read**](RepoMetadataFilesRepoMetadataFilesApi.md#read) | **GET** {repo_metadata_file_href} | Inspect a repo metadata file
10
+
11
+
12
+
13
+ ## delete
14
+
15
+ > delete(repo_metadata_file_href)
16
+
17
+ Delete a repo metadata file
18
+
19
+ RepoMetadataFile Viewset.
20
+
21
+ ### Example
22
+
23
+ ```ruby
24
+ # load the gem
25
+ require 'pulp_rpm_client'
26
+ # setup authorization
27
+ PulpRpmClient.configure do |config|
28
+ # Configure HTTP basic authorization: Basic
29
+ config.username = 'YOUR USERNAME'
30
+ config.password = 'YOUR PASSWORD'
31
+ end
32
+
33
+ api_instance = PulpRpmClient::RepoMetadataFilesRepoMetadataFilesApi.new
34
+ repo_metadata_file_href = 'repo_metadata_file_href_example' # String | URI of Repo Metadata File. e.g.: /pulp/api/v3/repo_metadata_files/rpm/repo_metadata_files/1/
35
+
36
+ begin
37
+ #Delete a repo metadata file
38
+ api_instance.delete(repo_metadata_file_href)
39
+ rescue PulpRpmClient::ApiError => e
40
+ puts "Exception when calling RepoMetadataFilesRepoMetadataFilesApi->delete: #{e}"
41
+ end
42
+ ```
43
+
44
+ ### Parameters
45
+
46
+
47
+ Name | Type | Description | Notes
48
+ ------------- | ------------- | ------------- | -------------
49
+ **repo_metadata_file_href** | **String**| URI of Repo Metadata File. e.g.: /pulp/api/v3/repo_metadata_files/rpm/repo_metadata_files/1/ |
50
+
51
+ ### Return type
52
+
53
+ nil (empty response body)
54
+
55
+ ### Authorization
56
+
57
+ [Basic](../README.md#Basic)
58
+
59
+ ### HTTP request headers
60
+
61
+ - **Content-Type**: Not defined
62
+ - **Accept**: Not defined
63
+
64
+
65
+ ## list
66
+
67
+ > InlineResponse2006 list(opts)
68
+
69
+ List repo metadata files
70
+
71
+ RepoMetadataFile Viewset.
72
+
73
+ ### Example
74
+
75
+ ```ruby
76
+ # load the gem
77
+ require 'pulp_rpm_client'
78
+ # setup authorization
79
+ PulpRpmClient.configure do |config|
80
+ # Configure HTTP basic authorization: Basic
81
+ config.username = 'YOUR USERNAME'
82
+ config.password = 'YOUR PASSWORD'
83
+ end
84
+
85
+ api_instance = PulpRpmClient::RepoMetadataFilesRepoMetadataFilesApi.new
86
+ opts = {
87
+ limit: 56, # Integer | Number of results to return per page.
88
+ offset: 56, # Integer | The initial index from which to return the results.
89
+ fields: 'fields_example' # String | A list of fields to include in the response.
90
+ }
91
+
92
+ begin
93
+ #List repo metadata files
94
+ result = api_instance.list(opts)
95
+ p result
96
+ rescue PulpRpmClient::ApiError => e
97
+ puts "Exception when calling RepoMetadataFilesRepoMetadataFilesApi->list: #{e}"
98
+ end
99
+ ```
100
+
101
+ ### Parameters
102
+
103
+
104
+ Name | Type | Description | Notes
105
+ ------------- | ------------- | ------------- | -------------
106
+ **limit** | **Integer**| Number of results to return per page. | [optional]
107
+ **offset** | **Integer**| The initial index from which to return the results. | [optional]
108
+ **fields** | **String**| A list of fields to include in the response. | [optional]
109
+
110
+ ### Return type
111
+
112
+ [**InlineResponse2006**](InlineResponse2006.md)
113
+
114
+ ### Authorization
115
+
116
+ [Basic](../README.md#Basic)
117
+
118
+ ### HTTP request headers
119
+
120
+ - **Content-Type**: Not defined
121
+ - **Accept**: application/json
122
+
123
+
124
+ ## read
125
+
126
+ > RepoMetadataFile read(repo_metadata_file_href, opts)
127
+
128
+ Inspect a repo metadata file
129
+
130
+ RepoMetadataFile Viewset.
131
+
132
+ ### Example
133
+
134
+ ```ruby
135
+ # load the gem
136
+ require 'pulp_rpm_client'
137
+ # setup authorization
138
+ PulpRpmClient.configure do |config|
139
+ # Configure HTTP basic authorization: Basic
140
+ config.username = 'YOUR USERNAME'
141
+ config.password = 'YOUR PASSWORD'
142
+ end
143
+
144
+ api_instance = PulpRpmClient::RepoMetadataFilesRepoMetadataFilesApi.new
145
+ repo_metadata_file_href = 'repo_metadata_file_href_example' # String | URI of Repo Metadata File. e.g.: /pulp/api/v3/repo_metadata_files/rpm/repo_metadata_files/1/
146
+ opts = {
147
+ fields: 'fields_example' # String | A list of fields to include in the response.
148
+ }
149
+
150
+ begin
151
+ #Inspect a repo metadata file
152
+ result = api_instance.read(repo_metadata_file_href, opts)
153
+ p result
154
+ rescue PulpRpmClient::ApiError => e
155
+ puts "Exception when calling RepoMetadataFilesRepoMetadataFilesApi->read: #{e}"
156
+ end
157
+ ```
158
+
159
+ ### Parameters
160
+
161
+
162
+ Name | Type | Description | Notes
163
+ ------------- | ------------- | ------------- | -------------
164
+ **repo_metadata_file_href** | **String**| URI of Repo Metadata File. e.g.: /pulp/api/v3/repo_metadata_files/rpm/repo_metadata_files/1/ |
165
+ **fields** | **String**| A list of fields to include in the response. | [optional]
166
+
167
+ ### Return type
168
+
169
+ [**RepoMetadataFile**](RepoMetadataFile.md)
170
+
171
+ ### Authorization
172
+
173
+ [Basic](../README.md#Basic)
174
+
175
+ ### HTTP request headers
176
+
177
+ - **Content-Type**: Not defined
178
+ - **Accept**: application/json
179
+
data/docs/Variant.md ADDED
@@ -0,0 +1,37 @@
1
+ # PulpRpmClient::Variant
2
+
3
+ ## Properties
4
+
5
+ Name | Type | Description | Notes
6
+ ------------ | ------------- | ------------- | -------------
7
+ **variant_id** | **String** | Variant id. |
8
+ **uid** | **String** | Variant uid. |
9
+ **name** | **String** | Variant name. |
10
+ **type** | **String** | Variant type. |
11
+ **packages** | **String** | Relative path to directory with binary RPMs. |
12
+ **repository** | **String** | A URI of the repository containing the content for this Variant. |
13
+ **source_packages** | **String** | Relative path to directory with source RPMs. |
14
+ **source_repository** | **String** | Relative path to YUM repository with source RPMs. |
15
+ **debug_packages** | **String** | Relative path to directory with debug RPMs. |
16
+ **debug_repository** | **String** | Relative path to YUM repository with debug RPMs. |
17
+ **identity** | **String** | Relative path to a pem file that identifies a product. |
18
+
19
+ ## Code Sample
20
+
21
+ ```ruby
22
+ require 'PulpRpmClient'
23
+
24
+ instance = PulpRpmClient::Variant.new(variant_id: null,
25
+ uid: null,
26
+ name: null,
27
+ type: null,
28
+ packages: null,
29
+ repository: null,
30
+ source_packages: null,
31
+ source_repository: null,
32
+ debug_packages: null,
33
+ debug_repository: null,
34
+ identity: null)
35
+ ```
36
+
37
+
data/git_push.sh CHANGED
@@ -1,14 +1,17 @@
1
1
  #!/bin/sh
2
- #
3
- # Generated by: https://openapi-generator.tech
4
- #
5
2
  # ref: https://help.github.com/articles/adding-an-existing-project-to-github-using-the-command-line/
6
3
  #
7
- # Usage example: /bin/sh ./git_push.sh wing328 openapi-pestore-perl "minor update"
4
+ # Usage example: /bin/sh ./git_push.sh wing328 openapi-pestore-perl "minor update" "gitlab.com"
8
5
 
9
6
  git_user_id=$1
10
7
  git_repo_id=$2
11
8
  release_note=$3
9
+ git_host=$4
10
+
11
+ if [ "$git_host" = "" ]; then
12
+ git_host="github.com"
13
+ echo "[INFO] No command line input provided. Set \$git_host to $git_host"
14
+ fi
12
15
 
13
16
  if [ "$git_user_id" = "" ]; then
14
17
  git_user_id="GIT_USER_ID"
@@ -40,9 +43,9 @@ if [ "$git_remote" = "" ]; then # git remote not defined
40
43
 
41
44
  if [ "$GIT_TOKEN" = "" ]; then
42
45
  echo "[INFO] \$GIT_TOKEN (environment variable) is not set. Using the git credential in your environment."
43
- git remote add origin https://github.com/${git_user_id}/${git_repo_id}.git
46
+ git remote add origin https://${git_host}/${git_user_id}/${git_repo_id}.git
44
47
  else
45
- git remote add origin https://${git_user_id}:${GIT_TOKEN}@github.com/${git_user_id}/${git_repo_id}.git
48
+ git remote add origin https://${git_user_id}:${GIT_TOKEN}@${git_host}/${git_user_id}/${git_repo_id}.git
46
49
  fi
47
50
 
48
51
  fi
@@ -50,6 +53,6 @@ fi
50
53
  git pull origin master
51
54
 
52
55
  # Pushes (Forces) the changes in the local repository up to the remote repository
53
- echo "Git pushing to https://github.com/${git_user_id}/${git_repo_id}.git"
56
+ echo "Git pushing to https://${git_host}/${git_user_id}/${git_repo_id}.git"
54
57
  git push origin master 2>&1 | grep -v 'To https'
55
58