pulp_maven_client 0.13.0 → 0.15.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 2ecd9a2111555c17113eb52b2ec15537b3caf4aa0f7a149ed79ea3eb35d72197
4
- data.tar.gz: fd7d31bb34c3bea433e909da9b0a5d1cf764729f6bd45bbc93e8b6cb03263b4d
3
+ metadata.gz: d45224724d8a990989192786764bc604b2a6c5f197f038c9bbf02da41155e6ad
4
+ data.tar.gz: a4853a052fc1ce417fc8d82c086ba2fc8d54e2c05ce29ff51a388c445a50f4d4
5
5
  SHA512:
6
- metadata.gz: a689166e8420e0d18b71d7bcfd9869152455d3411d63d1bc1148d9ca7aced866aa9f2443cf2000f37bba90523ee97038f4135d0b55fc140320b271890b1e4656
7
- data.tar.gz: e96f7eb72e0c19900107c5276f9cbd2cfb50ac67e3c570b2671bdad61d20b4a4c7a2255cfc08373e20acc79d41aab0e521e48c9a2c4f7f62d3ddda8eef08a584
6
+ metadata.gz: 86aab0ce92617e5e0661f9d2ac0f7ab46552d560a2aaa43091422b808f1ae6a6425f907cdf52e29550b799a0d50d5572d2d02a3118222623c13ce82177cf9f5f
7
+ data.tar.gz: 7c4cc8d459c7ddc6ac8e618b20ca7eef0f9d59303b22a4fe4ae205478c94b6c654adbb50dcb0d639dcd7be6b1a01968b9c162c9566eda0f44f2aacc523c677d5
data/README.md CHANGED
@@ -7,7 +7,7 @@ Fetch, Upload, Organize, and Distribute Software Packages
7
7
  This SDK is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
8
8
 
9
9
  - API version: v3
10
- - Package version: 0.13.0
10
+ - Package version: 0.15.0
11
11
  - Generator version: 7.10.0
12
12
  - Build package: org.openapitools.codegen.languages.RubyClientCodegen
13
13
  For more information, please visit [https://pulpproject.org](https://pulpproject.org)
@@ -25,16 +25,16 @@ gem build pulp_maven_client.gemspec
25
25
  Then either install the gem locally:
26
26
 
27
27
  ```shell
28
- gem install ./pulp_maven_client-0.13.0.gem
28
+ gem install ./pulp_maven_client-0.15.0.gem
29
29
  ```
30
30
 
31
- (for development, run `gem install --dev ./pulp_maven_client-0.13.0.gem` to install the development dependencies)
31
+ (for development, run `gem install --dev ./pulp_maven_client-0.15.0.gem` to install the development dependencies)
32
32
 
33
33
  or publish the gem to a gem hosting service, e.g. [RubyGems](https://rubygems.org/).
34
34
 
35
35
  Finally add this to the Gemfile:
36
36
 
37
- gem 'pulp_maven_client', '~> 0.13.0'
37
+ gem 'pulp_maven_client', '~> 0.15.0'
38
38
 
39
39
  ### Install from Git
40
40
 
@@ -68,14 +68,19 @@ PulpMavenClient.configure do |config|
68
68
  end
69
69
 
70
70
  api_instance = PulpMavenClient::ContentArtifactApi.new
71
- maven_maven_artifact = PulpMavenClient::MavenMavenArtifact.new({artifact: 'artifact_example', relative_path: 'relative_path_example'}) # MavenMavenArtifact |
71
+ relative_path = 'relative_path_example' # String | Path where the artifact is located relative to distributions base_path
72
72
  opts = {
73
- x_task_diagnostics: ['inner_example'] # Array<String> | List of profilers to use on tasks.
73
+ x_task_diagnostics: ['inner_example'], # Array<String> | List of profilers to use on tasks.
74
+ repository: 'repository_example', # String | A URI of a repository the new content unit should be associated with.
75
+ overwrite: true, # Boolean | When set to true, existing content in the repository with the same unique key will be silently overwritten. When set to false, the task will fail if content would be overwritten. Only used when 'repository' is specified. Defaults to true.
76
+ pulp_labels: { key: 'inner_example'}, # Hash<String, String> | A dictionary of arbitrary key/value pairs used to describe a specific Content instance.
77
+ artifact: 'artifact_example', # String | Artifact file representing the physical content
78
+ file: File.new('/path/to/some/file') # File | An uploaded file that may be turned into the content unit.
74
79
  }
75
80
 
76
81
  begin
77
82
  #Create a maven artifact
78
- result = api_instance.create(maven_maven_artifact, opts)
83
+ result = api_instance.create(relative_path, opts)
79
84
  p result
80
85
  rescue PulpMavenClient::ApiError => e
81
86
  puts "Exception when calling ContentArtifactApi->create: #{e}"
@@ -116,6 +121,7 @@ Class | Method | HTTP request | Description
116
121
  *PulpMavenClient::RepositoriesMavenApi* | [**create**](docs/RepositoriesMavenApi.md#create) | **POST** /pulp/api/v3/repositories/maven/maven/ | Create a maven repository
117
122
  *PulpMavenClient::RepositoriesMavenApi* | [**delete**](docs/RepositoriesMavenApi.md#delete) | **DELETE** {maven_maven_repository_href} | Delete a maven repository
118
123
  *PulpMavenClient::RepositoriesMavenApi* | [**list**](docs/RepositoriesMavenApi.md#list) | **GET** /pulp/api/v3/repositories/maven/maven/ | List maven repositorys
124
+ *PulpMavenClient::RepositoriesMavenApi* | [**modify**](docs/RepositoriesMavenApi.md#modify) | **POST** {maven_maven_repository_href}modify/ | Modify Repository Content
119
125
  *PulpMavenClient::RepositoriesMavenApi* | [**partial_update**](docs/RepositoriesMavenApi.md#partial_update) | **PATCH** {maven_maven_repository_href} | Update a maven repository
120
126
  *PulpMavenClient::RepositoriesMavenApi* | [**read**](docs/RepositoriesMavenApi.md#read) | **GET** {maven_maven_repository_href} | Inspect a maven repository
121
127
  *PulpMavenClient::RepositoriesMavenApi* | [**set_label**](docs/RepositoriesMavenApi.md#set_label) | **POST** {maven_maven_repository_href}set_label/ | Set a label
@@ -131,7 +137,6 @@ Class | Method | HTTP request | Description
131
137
 
132
138
  - [PulpMavenClient::AsyncOperationResponse](docs/AsyncOperationResponse.md)
133
139
  - [PulpMavenClient::ContentSummaryResponse](docs/ContentSummaryResponse.md)
134
- - [PulpMavenClient::MavenMavenArtifact](docs/MavenMavenArtifact.md)
135
140
  - [PulpMavenClient::MavenMavenArtifactResponse](docs/MavenMavenArtifactResponse.md)
136
141
  - [PulpMavenClient::MavenMavenDistribution](docs/MavenMavenDistribution.md)
137
142
  - [PulpMavenClient::MavenMavenDistributionResponse](docs/MavenMavenDistributionResponse.md)
@@ -151,6 +156,7 @@ Class | Method | HTTP request | Description
151
156
  - [PulpMavenClient::PolicyEnum](docs/PolicyEnum.md)
152
157
  - [PulpMavenClient::Repair](docs/Repair.md)
153
158
  - [PulpMavenClient::RepositoryAddCachedContent](docs/RepositoryAddCachedContent.md)
159
+ - [PulpMavenClient::RepositoryAddRemoveContent](docs/RepositoryAddRemoveContent.md)
154
160
  - [PulpMavenClient::RepositoryVersionResponse](docs/RepositoryVersionResponse.md)
155
161
  - [PulpMavenClient::SetLabel](docs/SetLabel.md)
156
162
  - [PulpMavenClient::SetLabelResponse](docs/SetLabelResponse.md)
@@ -13,7 +13,7 @@ All URIs are relative to *http://localhost:24817*
13
13
 
14
14
  ## create
15
15
 
16
- > <MavenMavenArtifactResponse> create(maven_maven_artifact, opts)
16
+ > <MavenMavenArtifactResponse> create(relative_path, opts)
17
17
 
18
18
  Create a maven artifact
19
19
 
@@ -32,14 +32,19 @@ PulpMavenClient.configure do |config|
32
32
  end
33
33
 
34
34
  api_instance = PulpMavenClient::ContentArtifactApi.new
35
- maven_maven_artifact = PulpMavenClient::MavenMavenArtifact.new({artifact: 'artifact_example', relative_path: 'relative_path_example'}) # MavenMavenArtifact |
35
+ relative_path = 'relative_path_example' # String | Path where the artifact is located relative to distributions base_path
36
36
  opts = {
37
- x_task_diagnostics: ['inner_example'] # Array<String> | List of profilers to use on tasks.
37
+ x_task_diagnostics: ['inner_example'], # Array<String> | List of profilers to use on tasks.
38
+ repository: 'repository_example', # String | A URI of a repository the new content unit should be associated with.
39
+ overwrite: true, # Boolean | When set to true, existing content in the repository with the same unique key will be silently overwritten. When set to false, the task will fail if content would be overwritten. Only used when 'repository' is specified. Defaults to true.
40
+ pulp_labels: { key: 'inner_example'}, # Hash<String, String> | A dictionary of arbitrary key/value pairs used to describe a specific Content instance.
41
+ artifact: 'artifact_example', # String | Artifact file representing the physical content
42
+ file: File.new('/path/to/some/file') # File | An uploaded file that may be turned into the content unit.
38
43
  }
39
44
 
40
45
  begin
41
46
  # Create a maven artifact
42
- result = api_instance.create(maven_maven_artifact, opts)
47
+ result = api_instance.create(relative_path, opts)
43
48
  p result
44
49
  rescue PulpMavenClient::ApiError => e
45
50
  puts "Error when calling ContentArtifactApi->create: #{e}"
@@ -50,12 +55,12 @@ end
50
55
 
51
56
  This returns an Array which contains the response data, status code and headers.
52
57
 
53
- > <Array(<MavenMavenArtifactResponse>, Integer, Hash)> create_with_http_info(maven_maven_artifact, opts)
58
+ > <Array(<MavenMavenArtifactResponse>, Integer, Hash)> create_with_http_info(relative_path, opts)
54
59
 
55
60
  ```ruby
56
61
  begin
57
62
  # Create a maven artifact
58
- data, status_code, headers = api_instance.create_with_http_info(maven_maven_artifact, opts)
63
+ data, status_code, headers = api_instance.create_with_http_info(relative_path, opts)
59
64
  p status_code # => 2xx
60
65
  p headers # => { ... }
61
66
  p data # => <MavenMavenArtifactResponse>
@@ -68,8 +73,13 @@ end
68
73
 
69
74
  | Name | Type | Description | Notes |
70
75
  | ---- | ---- | ----------- | ----- |
71
- | **maven_maven_artifact** | [**MavenMavenArtifact**](MavenMavenArtifact.md) | | |
76
+ | **relative_path** | **String** | Path where the artifact is located relative to distributions base_path | |
72
77
  | **x_task_diagnostics** | [**Array&lt;String&gt;**](String.md) | List of profilers to use on tasks. | [optional] |
78
+ | **repository** | **String** | A URI of a repository the new content unit should be associated with. | [optional] |
79
+ | **overwrite** | **Boolean** | When set to true, existing content in the repository with the same unique key will be silently overwritten. When set to false, the task will fail if content would be overwritten. Only used when &#39;repository&#39; is specified. Defaults to true. | [optional] |
80
+ | **pulp_labels** | [**Hash&lt;String, String&gt;**](Hash.md) | A dictionary of arbitrary key/value pairs used to describe a specific Content instance. | [optional] |
81
+ | **artifact** | **String** | Artifact file representing the physical content | [optional] |
82
+ | **file** | **File** | An uploaded file that may be turned into the content unit. | [optional] |
73
83
 
74
84
  ### Return type
75
85
 
@@ -81,7 +91,7 @@ end
81
91
 
82
92
  ### HTTP request headers
83
93
 
84
- - **Content-Type**: application/json, application/x-www-form-urlencoded, multipart/form-data
94
+ - **Content-Type**: multipart/form-data, application/x-www-form-urlencoded
85
95
  - **Accept**: application/json
86
96
 
87
97
 
@@ -10,7 +10,7 @@
10
10
  | **pulp_last_updated** | **Time** | Timestamp of the last time this resource was updated. Note: for immutable resources - like content, repository versions, and publication - pulp_created and pulp_last_updated dates will be the same. | [optional][readonly] |
11
11
  | **pulp_labels** | **Hash&lt;String, String&gt;** | A dictionary of arbitrary key/value pairs used to describe a specific Content instance. | [optional] |
12
12
  | **vuln_report** | **String** | | [optional][readonly] |
13
- | **artifact** | **String** | Artifact file representing the physical content | |
13
+ | **artifact** | **String** | Artifact file representing the physical content | [optional] |
14
14
  | **group_id** | **String** | Group Id of the artifact&#39;s package. | [optional][readonly] |
15
15
  | **artifact_id** | **String** | Artifact Id of the artifact&#39;s package. | [optional][readonly] |
16
16
  | **version** | **String** | Version of the artifact&#39;s package. | [optional][readonly] |
@@ -8,6 +8,7 @@ All URIs are relative to *http://localhost:24817*
8
8
  | [**create**](RepositoriesMavenApi.md#create) | **POST** /pulp/api/v3/repositories/maven/maven/ | Create a maven repository |
9
9
  | [**delete**](RepositoriesMavenApi.md#delete) | **DELETE** {maven_maven_repository_href} | Delete a maven repository |
10
10
  | [**list**](RepositoriesMavenApi.md#list) | **GET** /pulp/api/v3/repositories/maven/maven/ | List maven repositorys |
11
+ | [**modify**](RepositoriesMavenApi.md#modify) | **POST** {maven_maven_repository_href}modify/ | Modify Repository Content |
11
12
  | [**partial_update**](RepositoriesMavenApi.md#partial_update) | **PATCH** {maven_maven_repository_href} | Update a maven repository |
12
13
  | [**read**](RepositoriesMavenApi.md#read) | **GET** {maven_maven_repository_href} | Inspect a maven repository |
13
14
  | [**set_label**](RepositoriesMavenApi.md#set_label) | **POST** {maven_maven_repository_href}set_label/ | Set a label |
@@ -387,6 +388,82 @@ end
387
388
  - **Accept**: application/json
388
389
 
389
390
 
391
+ ## modify
392
+
393
+ > <AsyncOperationResponse> modify(maven_maven_repository_href, repository_add_remove_content, opts)
394
+
395
+ Modify Repository Content
396
+
397
+ Trigger an asynchronous task to create a new repository version.
398
+
399
+ ### Examples
400
+
401
+ ```ruby
402
+ require 'time'
403
+ require 'pulp_maven_client'
404
+ # setup authorization
405
+ PulpMavenClient.configure do |config|
406
+ # Configure HTTP basic authorization: basicAuth
407
+ config.username = 'YOUR USERNAME'
408
+ config.password = 'YOUR PASSWORD'
409
+ end
410
+
411
+ api_instance = PulpMavenClient::RepositoriesMavenApi.new
412
+ maven_maven_repository_href = 'maven_maven_repository_href_example' # String |
413
+ repository_add_remove_content = PulpMavenClient::RepositoryAddRemoveContent.new # RepositoryAddRemoveContent |
414
+ opts = {
415
+ x_task_diagnostics: ['inner_example'] # Array<String> | List of profilers to use on tasks.
416
+ }
417
+
418
+ begin
419
+ # Modify Repository Content
420
+ result = api_instance.modify(maven_maven_repository_href, repository_add_remove_content, opts)
421
+ p result
422
+ rescue PulpMavenClient::ApiError => e
423
+ puts "Error when calling RepositoriesMavenApi->modify: #{e}"
424
+ end
425
+ ```
426
+
427
+ #### Using the modify_with_http_info variant
428
+
429
+ This returns an Array which contains the response data, status code and headers.
430
+
431
+ > <Array(<AsyncOperationResponse>, Integer, Hash)> modify_with_http_info(maven_maven_repository_href, repository_add_remove_content, opts)
432
+
433
+ ```ruby
434
+ begin
435
+ # Modify Repository Content
436
+ data, status_code, headers = api_instance.modify_with_http_info(maven_maven_repository_href, repository_add_remove_content, opts)
437
+ p status_code # => 2xx
438
+ p headers # => { ... }
439
+ p data # => <AsyncOperationResponse>
440
+ rescue PulpMavenClient::ApiError => e
441
+ puts "Error when calling RepositoriesMavenApi->modify_with_http_info: #{e}"
442
+ end
443
+ ```
444
+
445
+ ### Parameters
446
+
447
+ | Name | Type | Description | Notes |
448
+ | ---- | ---- | ----------- | ----- |
449
+ | **maven_maven_repository_href** | **String** | | |
450
+ | **repository_add_remove_content** | [**RepositoryAddRemoveContent**](RepositoryAddRemoveContent.md) | | |
451
+ | **x_task_diagnostics** | [**Array&lt;String&gt;**](String.md) | List of profilers to use on tasks. | [optional] |
452
+
453
+ ### Return type
454
+
455
+ [**AsyncOperationResponse**](AsyncOperationResponse.md)
456
+
457
+ ### Authorization
458
+
459
+ [basicAuth](../README.md#basicAuth)
460
+
461
+ ### HTTP request headers
462
+
463
+ - **Content-Type**: application/json, application/x-www-form-urlencoded, multipart/form-data
464
+ - **Accept**: application/json
465
+
466
+
390
467
  ## partial_update
391
468
 
392
469
  > <MavenMavenRepositoryResponse> partial_update(maven_maven_repository_href, patchedmaven_maven_repository, opts)
@@ -0,0 +1,24 @@
1
+ # PulpMavenClient::RepositoryAddRemoveContent
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **add_content_units** | **Array&lt;String&gt;** | A list of content units to add to a new repository version. This content is added after remove_content_units are removed. | [optional] |
8
+ | **remove_content_units** | **Array&lt;String&gt;** | A list of content units to remove from the latest repository version. You may also specify &#39;*&#39; as an entry to remove all content. This content is removed before add_content_units are added. | [optional] |
9
+ | **base_version** | **String** | A repository version whose content will be used as the initial set of content for the new repository version | [optional] |
10
+ | **overwrite** | **Boolean** | When set to true, existing content in the repository with the same unique key will be silently overwritten. When set to false, the task will fail if content would be overwritten. Defaults to true. | [optional][default to true] |
11
+
12
+ ## Example
13
+
14
+ ```ruby
15
+ require 'pulp_maven_client'
16
+
17
+ instance = PulpMavenClient::RepositoryAddRemoveContent.new(
18
+ add_content_units: null,
19
+ remove_content_units: null,
20
+ base_version: null,
21
+ overwrite: null
22
+ )
23
+ ```
24
+
@@ -21,29 +21,43 @@ module PulpMavenClient
21
21
  end
22
22
  # Create a maven artifact
23
23
  # A ViewSet for MavenArtifact.
24
- # @param maven_maven_artifact [MavenMavenArtifact]
24
+ # @param relative_path [String] Path where the artifact is located relative to distributions base_path
25
25
  # @param [Hash] opts the optional parameters
26
26
  # @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
27
+ # @option opts [String] :repository A URI of a repository the new content unit should be associated with.
28
+ # @option opts [Boolean] :overwrite When set to true, existing content in the repository with the same unique key will be silently overwritten. When set to false, the task will fail if content would be overwritten. Only used when &#39;repository&#39; is specified. Defaults to true.
29
+ # @option opts [Hash<String, String>] :pulp_labels A dictionary of arbitrary key/value pairs used to describe a specific Content instance.
30
+ # @option opts [String] :artifact Artifact file representing the physical content
31
+ # @option opts [File] :file An uploaded file that may be turned into the content unit.
27
32
  # @return [MavenMavenArtifactResponse]
28
- def create(maven_maven_artifact, opts = {})
29
- data, _status_code, _headers = create_with_http_info(maven_maven_artifact, opts)
33
+ def create(relative_path, opts = {})
34
+ data, _status_code, _headers = create_with_http_info(relative_path, opts)
30
35
  data
31
36
  end
32
37
 
33
38
  # Create a maven artifact
34
39
  # A ViewSet for MavenArtifact.
35
- # @param maven_maven_artifact [MavenMavenArtifact]
40
+ # @param relative_path [String] Path where the artifact is located relative to distributions base_path
36
41
  # @param [Hash] opts the optional parameters
37
42
  # @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
43
+ # @option opts [String] :repository A URI of a repository the new content unit should be associated with.
44
+ # @option opts [Boolean] :overwrite When set to true, existing content in the repository with the same unique key will be silently overwritten. When set to false, the task will fail if content would be overwritten. Only used when &#39;repository&#39; is specified. Defaults to true.
45
+ # @option opts [Hash<String, String>] :pulp_labels A dictionary of arbitrary key/value pairs used to describe a specific Content instance.
46
+ # @option opts [String] :artifact Artifact file representing the physical content
47
+ # @option opts [File] :file An uploaded file that may be turned into the content unit.
38
48
  # @return [Array<(MavenMavenArtifactResponse, Integer, Hash)>] MavenMavenArtifactResponse data, response status code and response headers
39
- def create_with_http_info(maven_maven_artifact, opts = {})
49
+ def create_with_http_info(relative_path, opts = {})
40
50
  if @api_client.config.debugging
41
51
  @api_client.config.logger.debug 'Calling API: ContentArtifactApi.create ...'
42
52
  end
43
- # verify the required parameter 'maven_maven_artifact' is set
44
- if @api_client.config.client_side_validation && maven_maven_artifact.nil?
45
- fail ArgumentError, "Missing the required parameter 'maven_maven_artifact' when calling ContentArtifactApi.create"
53
+ # verify the required parameter 'relative_path' is set
54
+ if @api_client.config.client_side_validation && relative_path.nil?
55
+ fail ArgumentError, "Missing the required parameter 'relative_path' when calling ContentArtifactApi.create"
46
56
  end
57
+ if @api_client.config.client_side_validation && relative_path.to_s.length < 1
58
+ fail ArgumentError, 'invalid value for "relative_path" when calling ContentArtifactApi.create, the character length must be great than or equal to 1.'
59
+ end
60
+
47
61
  # resource path
48
62
  local_var_path = '/pulp/api/v3/content/maven/artifact/'
49
63
 
@@ -55,7 +69,7 @@ module PulpMavenClient
55
69
  # HTTP header 'Accept' (if needed)
56
70
  header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
57
71
  # HTTP header 'Content-Type'
58
- content_type = @api_client.select_header_content_type(['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'])
72
+ content_type = @api_client.select_header_content_type(['multipart/form-data', 'application/x-www-form-urlencoded'])
59
73
  if !content_type.nil?
60
74
  header_params['Content-Type'] = content_type
61
75
  end
@@ -63,9 +77,15 @@ module PulpMavenClient
63
77
 
64
78
  # form parameters
65
79
  form_params = opts[:form_params] || {}
80
+ form_params['relative_path'] = relative_path
81
+ form_params['repository'] = opts[:'repository'] if !opts[:'repository'].nil?
82
+ form_params['overwrite'] = opts[:'overwrite'] if !opts[:'overwrite'].nil?
83
+ form_params['pulp_labels'] = opts[:'pulp_labels'] if !opts[:'pulp_labels'].nil?
84
+ form_params['artifact'] = opts[:'artifact'] if !opts[:'artifact'].nil?
85
+ form_params['file'] = opts[:'file'] if !opts[:'file'].nil?
66
86
 
67
87
  # http body (model)
68
- post_body = opts[:debug_body] || @api_client.object_to_http_body(maven_maven_artifact)
88
+ post_body = opts[:debug_body]
69
89
 
70
90
  # return_type
71
91
  return_type = opts[:debug_return_type] || 'MavenMavenArtifactResponse'
@@ -411,6 +411,83 @@ module PulpMavenClient
411
411
  return data, status_code, headers
412
412
  end
413
413
 
414
+ # Modify Repository Content
415
+ # Trigger an asynchronous task to create a new repository version.
416
+ # @param maven_maven_repository_href [String]
417
+ # @param repository_add_remove_content [RepositoryAddRemoveContent]
418
+ # @param [Hash] opts the optional parameters
419
+ # @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
420
+ # @return [AsyncOperationResponse]
421
+ def modify(maven_maven_repository_href, repository_add_remove_content, opts = {})
422
+ data, _status_code, _headers = modify_with_http_info(maven_maven_repository_href, repository_add_remove_content, opts)
423
+ data
424
+ end
425
+
426
+ # Modify Repository Content
427
+ # Trigger an asynchronous task to create a new repository version.
428
+ # @param maven_maven_repository_href [String]
429
+ # @param repository_add_remove_content [RepositoryAddRemoveContent]
430
+ # @param [Hash] opts the optional parameters
431
+ # @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
432
+ # @return [Array<(AsyncOperationResponse, Integer, Hash)>] AsyncOperationResponse data, response status code and response headers
433
+ def modify_with_http_info(maven_maven_repository_href, repository_add_remove_content, opts = {})
434
+ if @api_client.config.debugging
435
+ @api_client.config.logger.debug 'Calling API: RepositoriesMavenApi.modify ...'
436
+ end
437
+ # verify the required parameter 'maven_maven_repository_href' is set
438
+ if @api_client.config.client_side_validation && maven_maven_repository_href.nil?
439
+ fail ArgumentError, "Missing the required parameter 'maven_maven_repository_href' when calling RepositoriesMavenApi.modify"
440
+ end
441
+ # verify the required parameter 'repository_add_remove_content' is set
442
+ if @api_client.config.client_side_validation && repository_add_remove_content.nil?
443
+ fail ArgumentError, "Missing the required parameter 'repository_add_remove_content' when calling RepositoriesMavenApi.modify"
444
+ end
445
+ # resource path
446
+ local_var_path = '{maven_maven_repository_href}modify/'.sub('{' + 'maven_maven_repository_href' + '}', CGI.escape(maven_maven_repository_href.to_s).gsub('%2F', '/'))
447
+
448
+ # query parameters
449
+ query_params = opts[:query_params] || {}
450
+
451
+ # header parameters
452
+ header_params = opts[:header_params] || {}
453
+ # HTTP header 'Accept' (if needed)
454
+ header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
455
+ # HTTP header 'Content-Type'
456
+ content_type = @api_client.select_header_content_type(['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'])
457
+ if !content_type.nil?
458
+ header_params['Content-Type'] = content_type
459
+ end
460
+ header_params[:'X-Task-Diagnostics'] = @api_client.build_collection_param(opts[:'x_task_diagnostics'], :csv) if !opts[:'x_task_diagnostics'].nil?
461
+
462
+ # form parameters
463
+ form_params = opts[:form_params] || {}
464
+
465
+ # http body (model)
466
+ post_body = opts[:debug_body] || @api_client.object_to_http_body(repository_add_remove_content)
467
+
468
+ # return_type
469
+ return_type = opts[:debug_return_type] || 'AsyncOperationResponse'
470
+
471
+ # auth_names
472
+ auth_names = opts[:debug_auth_names] || ['basicAuth']
473
+
474
+ new_options = opts.merge(
475
+ :operation => :"RepositoriesMavenApi.modify",
476
+ :header_params => header_params,
477
+ :query_params => query_params,
478
+ :form_params => form_params,
479
+ :body => post_body,
480
+ :auth_names => auth_names,
481
+ :return_type => return_type
482
+ )
483
+
484
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
485
+ if @api_client.config.debugging
486
+ @api_client.config.logger.debug "API called: RepositoriesMavenApi#modify\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
487
+ end
488
+ return data, status_code, headers
489
+ end
490
+
414
491
  # Update a maven repository
415
492
  # Update the entity partially and trigger an asynchronous task if necessary
416
493
  # @param maven_maven_repository_href [String]
@@ -135,8 +135,6 @@ module PulpMavenClient
135
135
 
136
136
  if attributes.key?(:'artifact')
137
137
  self.artifact = attributes[:'artifact']
138
- else
139
- self.artifact = nil
140
138
  end
141
139
 
142
140
  if attributes.key?(:'group_id')
@@ -161,10 +159,6 @@ module PulpMavenClient
161
159
  def list_invalid_properties
162
160
  warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
163
161
  invalid_properties = Array.new
164
- if @artifact.nil?
165
- invalid_properties.push('invalid value for "artifact", artifact cannot be nil.')
166
- end
167
-
168
162
  invalid_properties
169
163
  end
170
164
 
@@ -172,7 +166,6 @@ module PulpMavenClient
172
166
  # @return true if the model is valid
173
167
  def valid?
174
168
  warn '[DEPRECATED] the `valid?` method is obsolete'
175
- return false if @artifact.nil?
176
169
  true
177
170
  end
178
171
 
@@ -14,31 +14,27 @@ require 'date'
14
14
  require 'time'
15
15
 
16
16
  module PulpMavenClient
17
- # A Serializer for MavenArtifact.
18
- class MavenMavenArtifact
19
- # A URI of a repository the new content unit should be associated with.
20
- attr_accessor :repository
17
+ # Base serializer for use with [pulpcore.app.models.Model][] This ensures that all Serializers provide values for the 'pulp_href` field. The class provides a default for the ``ref_name`` attribute in the ModelSerializers's ``Meta`` class. This ensures that the OpenAPI definitions of plugins are namespaced properly.
18
+ class RepositoryAddRemoveContent
19
+ # A list of content units to add to a new repository version. This content is added after remove_content_units are removed.
20
+ attr_accessor :add_content_units
21
21
 
22
- # When set to true, existing content in the repository with the same unique key will be silently overwritten. When set to false, the task will fail if content would be overwritten. Only used when 'repository' is specified. Defaults to true.
23
- attr_accessor :overwrite
24
-
25
- # A dictionary of arbitrary key/value pairs used to describe a specific Content instance.
26
- attr_accessor :pulp_labels
22
+ # A list of content units to remove from the latest repository version. You may also specify '*' as an entry to remove all content. This content is removed before add_content_units are added.
23
+ attr_accessor :remove_content_units
27
24
 
28
- # Artifact file representing the physical content
29
- attr_accessor :artifact
25
+ # A repository version whose content will be used as the initial set of content for the new repository version
26
+ attr_accessor :base_version
30
27
 
31
- # Path where the artifact is located relative to distributions base_path
32
- attr_accessor :relative_path
28
+ # When set to true, existing content in the repository with the same unique key will be silently overwritten. When set to false, the task will fail if content would be overwritten. Defaults to true.
29
+ attr_accessor :overwrite
33
30
 
34
31
  # Attribute mapping from ruby-style variable name to JSON key.
35
32
  def self.attribute_map
36
33
  {
37
- :'repository' => :'repository',
38
- :'overwrite' => :'overwrite',
39
- :'pulp_labels' => :'pulp_labels',
40
- :'artifact' => :'artifact',
41
- :'relative_path' => :'relative_path'
34
+ :'add_content_units' => :'add_content_units',
35
+ :'remove_content_units' => :'remove_content_units',
36
+ :'base_version' => :'base_version',
37
+ :'overwrite' => :'overwrite'
42
38
  }
43
39
  end
44
40
 
@@ -50,11 +46,10 @@ module PulpMavenClient
50
46
  # Attribute type mapping.
51
47
  def self.openapi_types
52
48
  {
53
- :'repository' => :'String',
54
- :'overwrite' => :'Boolean',
55
- :'pulp_labels' => :'Hash<String, String>',
56
- :'artifact' => :'String',
57
- :'relative_path' => :'String'
49
+ :'add_content_units' => :'Array<String>',
50
+ :'remove_content_units' => :'Array<String>',
51
+ :'base_version' => :'String',
52
+ :'overwrite' => :'Boolean'
58
53
  }
59
54
  end
60
55
 
@@ -68,41 +63,37 @@ module PulpMavenClient
68
63
  # @param [Hash] attributes Model attributes in the form of hash
69
64
  def initialize(attributes = {})
70
65
  if (!attributes.is_a?(Hash))
71
- fail ArgumentError, "The input argument (attributes) must be a hash in `PulpMavenClient::MavenMavenArtifact` initialize method"
66
+ fail ArgumentError, "The input argument (attributes) must be a hash in `PulpMavenClient::RepositoryAddRemoveContent` initialize method"
72
67
  end
73
68
 
74
69
  # check to see if the attribute exists and convert string to symbol for hash key
75
70
  attributes = attributes.each_with_object({}) { |(k, v), h|
76
71
  if (!self.class.attribute_map.key?(k.to_sym))
77
- fail ArgumentError, "`#{k}` is not a valid attribute in `PulpMavenClient::MavenMavenArtifact`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
72
+ fail ArgumentError, "`#{k}` is not a valid attribute in `PulpMavenClient::RepositoryAddRemoveContent`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
78
73
  end
79
74
  h[k.to_sym] = v
80
75
  }
81
76
 
82
- if attributes.key?(:'repository')
83
- self.repository = attributes[:'repository']
84
- end
85
-
86
- if attributes.key?(:'overwrite')
87
- self.overwrite = attributes[:'overwrite']
77
+ if attributes.key?(:'add_content_units')
78
+ if (value = attributes[:'add_content_units']).is_a?(Array)
79
+ self.add_content_units = value
80
+ end
88
81
  end
89
82
 
90
- if attributes.key?(:'pulp_labels')
91
- if (value = attributes[:'pulp_labels']).is_a?(Hash)
92
- self.pulp_labels = value
83
+ if attributes.key?(:'remove_content_units')
84
+ if (value = attributes[:'remove_content_units']).is_a?(Array)
85
+ self.remove_content_units = value
93
86
  end
94
87
  end
95
88
 
96
- if attributes.key?(:'artifact')
97
- self.artifact = attributes[:'artifact']
98
- else
99
- self.artifact = nil
89
+ if attributes.key?(:'base_version')
90
+ self.base_version = attributes[:'base_version']
100
91
  end
101
92
 
102
- if attributes.key?(:'relative_path')
103
- self.relative_path = attributes[:'relative_path']
93
+ if attributes.key?(:'overwrite')
94
+ self.overwrite = attributes[:'overwrite']
104
95
  else
105
- self.relative_path = nil
96
+ self.overwrite = true
106
97
  end
107
98
  end
108
99
 
@@ -111,18 +102,6 @@ module PulpMavenClient
111
102
  def list_invalid_properties
112
103
  warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
113
104
  invalid_properties = Array.new
114
- if @artifact.nil?
115
- invalid_properties.push('invalid value for "artifact", artifact cannot be nil.')
116
- end
117
-
118
- if @relative_path.nil?
119
- invalid_properties.push('invalid value for "relative_path", relative_path cannot be nil.')
120
- end
121
-
122
- if @relative_path.to_s.length < 1
123
- invalid_properties.push('invalid value for "relative_path", the character length must be great than or equal to 1.')
124
- end
125
-
126
105
  invalid_properties
127
106
  end
128
107
 
@@ -130,36 +109,18 @@ module PulpMavenClient
130
109
  # @return true if the model is valid
131
110
  def valid?
132
111
  warn '[DEPRECATED] the `valid?` method is obsolete'
133
- return false if @artifact.nil?
134
- return false if @relative_path.nil?
135
- return false if @relative_path.to_s.length < 1
136
112
  true
137
113
  end
138
114
 
139
- # Custom attribute writer method with validation
140
- # @param [Object] relative_path Value to be assigned
141
- def relative_path=(relative_path)
142
- if relative_path.nil?
143
- fail ArgumentError, 'relative_path cannot be nil'
144
- end
145
-
146
- if relative_path.to_s.length < 1
147
- fail ArgumentError, 'invalid value for "relative_path", the character length must be great than or equal to 1.'
148
- end
149
-
150
- @relative_path = relative_path
151
- end
152
-
153
115
  # Checks equality by comparing each attribute.
154
116
  # @param [Object] Object to be compared
155
117
  def ==(o)
156
118
  return true if self.equal?(o)
157
119
  self.class == o.class &&
158
- repository == o.repository &&
159
- overwrite == o.overwrite &&
160
- pulp_labels == o.pulp_labels &&
161
- artifact == o.artifact &&
162
- relative_path == o.relative_path
120
+ add_content_units == o.add_content_units &&
121
+ remove_content_units == o.remove_content_units &&
122
+ base_version == o.base_version &&
123
+ overwrite == o.overwrite
163
124
  end
164
125
 
165
126
  # @see the `==` method
@@ -171,7 +132,7 @@ module PulpMavenClient
171
132
  # Calculates hash code according to all attributes.
172
133
  # @return [Integer] Hash code
173
134
  def hash
174
- [repository, overwrite, pulp_labels, artifact, relative_path].hash
135
+ [add_content_units, remove_content_units, base_version, overwrite].hash
175
136
  end
176
137
 
177
138
  # Builds the object from hash
@@ -11,5 +11,5 @@ Generator version: 7.10.0
11
11
  =end
12
12
 
13
13
  module PulpMavenClient
14
- VERSION = '0.13.0'
14
+ VERSION = '0.15.0'
15
15
  end
@@ -19,7 +19,6 @@ require 'pulp_maven_client/configuration'
19
19
  # Models
20
20
  require 'pulp_maven_client/models/async_operation_response'
21
21
  require 'pulp_maven_client/models/content_summary_response'
22
- require 'pulp_maven_client/models/maven_maven_artifact'
23
22
  require 'pulp_maven_client/models/maven_maven_artifact_response'
24
23
  require 'pulp_maven_client/models/maven_maven_distribution'
25
24
  require 'pulp_maven_client/models/maven_maven_distribution_response'
@@ -39,6 +38,7 @@ require 'pulp_maven_client/models/patchedmaven_maven_repository'
39
38
  require 'pulp_maven_client/models/policy_enum'
40
39
  require 'pulp_maven_client/models/repair'
41
40
  require 'pulp_maven_client/models/repository_add_cached_content'
41
+ require 'pulp_maven_client/models/repository_add_remove_content'
42
42
  require 'pulp_maven_client/models/repository_version_response'
43
43
  require 'pulp_maven_client/models/set_label'
44
44
  require 'pulp_maven_client/models/set_label_response'
@@ -35,9 +35,14 @@ describe 'ContentArtifactApi' do
35
35
  # unit tests for create
36
36
  # Create a maven artifact
37
37
  # A ViewSet for MavenArtifact.
38
- # @param maven_maven_artifact
38
+ # @param relative_path Path where the artifact is located relative to distributions base_path
39
39
  # @param [Hash] opts the optional parameters
40
40
  # @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
41
+ # @option opts [String] :repository A URI of a repository the new content unit should be associated with.
42
+ # @option opts [Boolean] :overwrite When set to true, existing content in the repository with the same unique key will be silently overwritten. When set to false, the task will fail if content would be overwritten. Only used when &#39;repository&#39; is specified. Defaults to true.
43
+ # @option opts [Hash<String, String>] :pulp_labels A dictionary of arbitrary key/value pairs used to describe a specific Content instance.
44
+ # @option opts [String] :artifact Artifact file representing the physical content
45
+ # @option opts [File] :file An uploaded file that may be turned into the content unit.
41
46
  # @return [MavenMavenArtifactResponse]
42
47
  describe 'create test' do
43
48
  it 'should work' do
@@ -122,6 +122,20 @@ describe 'RepositoriesMavenApi' do
122
122
  end
123
123
  end
124
124
 
125
+ # unit tests for modify
126
+ # Modify Repository Content
127
+ # Trigger an asynchronous task to create a new repository version.
128
+ # @param maven_maven_repository_href
129
+ # @param repository_add_remove_content
130
+ # @param [Hash] opts the optional parameters
131
+ # @option opts [Array<String>] :x_task_diagnostics List of profilers to use on tasks.
132
+ # @return [AsyncOperationResponse]
133
+ describe 'modify test' do
134
+ it 'should work' do
135
+ # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
136
+ end
137
+ end
138
+
125
139
  # unit tests for partial_update
126
140
  # Update a maven repository
127
141
  # Update the entity partially and trigger an asynchronous task if necessary
@@ -14,44 +14,38 @@ require 'spec_helper'
14
14
  require 'json'
15
15
  require 'date'
16
16
 
17
- # Unit tests for PulpMavenClient::MavenMavenArtifact
17
+ # Unit tests for PulpMavenClient::RepositoryAddRemoveContent
18
18
  # Automatically generated by openapi-generator (https://openapi-generator.tech)
19
19
  # Please update as you see appropriate
20
- describe PulpMavenClient::MavenMavenArtifact do
21
- let(:instance) { PulpMavenClient::MavenMavenArtifact.new }
20
+ describe PulpMavenClient::RepositoryAddRemoveContent do
21
+ let(:instance) { PulpMavenClient::RepositoryAddRemoveContent.new }
22
22
 
23
- describe 'test an instance of MavenMavenArtifact' do
24
- it 'should create an instance of MavenMavenArtifact' do
23
+ describe 'test an instance of RepositoryAddRemoveContent' do
24
+ it 'should create an instance of RepositoryAddRemoveContent' do
25
25
  # uncomment below to test the instance creation
26
- #expect(instance).to be_instance_of(PulpMavenClient::MavenMavenArtifact)
26
+ #expect(instance).to be_instance_of(PulpMavenClient::RepositoryAddRemoveContent)
27
27
  end
28
28
  end
29
29
 
30
- describe 'test attribute "repository"' do
30
+ describe 'test attribute "add_content_units"' do
31
31
  it 'should work' do
32
32
  # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
33
33
  end
34
34
  end
35
35
 
36
- describe 'test attribute "overwrite"' do
36
+ describe 'test attribute "remove_content_units"' do
37
37
  it 'should work' do
38
38
  # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
39
39
  end
40
40
  end
41
41
 
42
- describe 'test attribute "pulp_labels"' do
42
+ describe 'test attribute "base_version"' do
43
43
  it 'should work' do
44
44
  # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
45
45
  end
46
46
  end
47
47
 
48
- describe 'test attribute "artifact"' do
49
- it 'should work' do
50
- # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
51
- end
52
- end
53
-
54
- describe 'test attribute "relative_path"' do
48
+ describe 'test attribute "overwrite"' do
55
49
  it 'should work' do
56
50
  # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/
57
51
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pulp_maven_client
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.13.0
4
+ version: 0.15.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - OpenAPI-Generator
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2026-06-12 00:00:00.000000000 Z
11
+ date: 2026-06-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday
@@ -92,7 +92,6 @@ files:
92
92
  - docs/ContentArtifactApi.md
93
93
  - docs/ContentSummaryResponse.md
94
94
  - docs/DistributionsMavenApi.md
95
- - docs/MavenMavenArtifact.md
96
95
  - docs/MavenMavenArtifactResponse.md
97
96
  - docs/MavenMavenDistribution.md
98
97
  - docs/MavenMavenDistributionResponse.md
@@ -116,6 +115,7 @@ files:
116
115
  - docs/RepositoriesMavenApi.md
117
116
  - docs/RepositoriesMavenVersionsApi.md
118
117
  - docs/RepositoryAddCachedContent.md
118
+ - docs/RepositoryAddRemoveContent.md
119
119
  - docs/RepositoryVersionResponse.md
120
120
  - docs/SetLabel.md
121
121
  - docs/SetLabelResponse.md
@@ -133,7 +133,6 @@ files:
133
133
  - lib/pulp_maven_client/configuration.rb
134
134
  - lib/pulp_maven_client/models/async_operation_response.rb
135
135
  - lib/pulp_maven_client/models/content_summary_response.rb
136
- - lib/pulp_maven_client/models/maven_maven_artifact.rb
137
136
  - lib/pulp_maven_client/models/maven_maven_artifact_response.rb
138
137
  - lib/pulp_maven_client/models/maven_maven_distribution.rb
139
138
  - lib/pulp_maven_client/models/maven_maven_distribution_response.rb
@@ -153,6 +152,7 @@ files:
153
152
  - lib/pulp_maven_client/models/policy_enum.rb
154
153
  - lib/pulp_maven_client/models/repair.rb
155
154
  - lib/pulp_maven_client/models/repository_add_cached_content.rb
155
+ - lib/pulp_maven_client/models/repository_add_remove_content.rb
156
156
  - lib/pulp_maven_client/models/repository_version_response.rb
157
157
  - lib/pulp_maven_client/models/set_label.rb
158
158
  - lib/pulp_maven_client/models/set_label_response.rb
@@ -169,7 +169,6 @@ files:
169
169
  - spec/models/async_operation_response_spec.rb
170
170
  - spec/models/content_summary_response_spec.rb
171
171
  - spec/models/maven_maven_artifact_response_spec.rb
172
- - spec/models/maven_maven_artifact_spec.rb
173
172
  - spec/models/maven_maven_distribution_response_spec.rb
174
173
  - spec/models/maven_maven_distribution_spec.rb
175
174
  - spec/models/maven_maven_remote_response_hidden_fields_inner_spec.rb
@@ -188,6 +187,7 @@ files:
188
187
  - spec/models/policy_enum_spec.rb
189
188
  - spec/models/repair_spec.rb
190
189
  - spec/models/repository_add_cached_content_spec.rb
190
+ - spec/models/repository_add_remove_content_spec.rb
191
191
  - spec/models/repository_version_response_spec.rb
192
192
  - spec/models/set_label_response_spec.rb
193
193
  - spec/models/set_label_spec.rb
@@ -224,13 +224,13 @@ test_files:
224
224
  - spec/api/remotes_maven_api_spec.rb
225
225
  - spec/api/repositories_maven_versions_api_spec.rb
226
226
  - spec/api/pulp_maven_api_spec.rb
227
- - spec/models/maven_maven_artifact_spec.rb
228
227
  - spec/models/content_summary_response_spec.rb
229
228
  - spec/models/maven_maven_repository_response_spec.rb
230
229
  - spec/models/unset_label_spec.rb
231
230
  - spec/models/paginatedmaven_maven_distribution_response_list_spec.rb
232
231
  - spec/models/maven_maven_remote_response_hidden_fields_inner_spec.rb
233
232
  - spec/models/maven_maven_remote_spec.rb
233
+ - spec/models/repository_add_remove_content_spec.rb
234
234
  - spec/models/paginatedmaven_maven_remote_response_list_spec.rb
235
235
  - spec/models/maven_maven_artifact_response_spec.rb
236
236
  - spec/models/set_label_spec.rb
@@ -1,26 +0,0 @@
1
- # PulpMavenClient::MavenMavenArtifact
2
-
3
- ## Properties
4
-
5
- | Name | Type | Description | Notes |
6
- | ---- | ---- | ----------- | ----- |
7
- | **repository** | **String** | A URI of a repository the new content unit should be associated with. | [optional] |
8
- | **overwrite** | **Boolean** | When set to true, existing content in the repository with the same unique key will be silently overwritten. When set to false, the task will fail if content would be overwritten. Only used when &#39;repository&#39; is specified. Defaults to true. | [optional] |
9
- | **pulp_labels** | **Hash&lt;String, String&gt;** | A dictionary of arbitrary key/value pairs used to describe a specific Content instance. | [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
-
13
- ## Example
14
-
15
- ```ruby
16
- require 'pulp_maven_client'
17
-
18
- instance = PulpMavenClient::MavenMavenArtifact.new(
19
- repository: null,
20
- overwrite: null,
21
- pulp_labels: null,
22
- artifact: null,
23
- relative_path: null
24
- )
25
- ```
26
-