cloudsmith-api 2.0.3 → 2.0.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (29) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile.lock +1 -1
  3. data/README.md +8 -4
  4. data/build.json +1 -1
  5. data/docs/HelmPackageUploadRequest.md +1 -0
  6. data/docs/PackagesApi.md +123 -0
  7. data/docs/StatusBasic.md +1 -1
  8. data/docs/SwiftPackageUpload.md +75 -0
  9. data/docs/SwiftPackageUploadRequest.md +11 -0
  10. data/lib/cloudsmith-api/api/packages_api.rb +123 -0
  11. data/lib/cloudsmith-api/models/helm_package_upload_request.rb +11 -1
  12. data/lib/cloudsmith-api/models/status_basic.rb +1 -1
  13. data/lib/cloudsmith-api/models/swift_package_upload.rb +855 -0
  14. data/lib/cloudsmith-api/models/swift_package_upload_request.rb +225 -0
  15. data/lib/cloudsmith-api/version.rb +1 -1
  16. data/lib/cloudsmith-api.rb +2 -0
  17. data/spec/api/packages_api_spec.rb +28 -0
  18. data/spec/models/helm_package_upload_request_spec.rb +6 -0
  19. data/spec/models/swift_package_upload_request_spec.rb +59 -0
  20. data/spec/models/swift_package_upload_spec.rb +447 -0
  21. data/vendor/bundle/ruby/2.6.0/extensions/x86_64-linux/2.6.0/autotest-fsevent-0.2.20/gem_make.out +1 -1
  22. data/vendor/bundle/ruby/2.6.0/extensions/x86_64-linux/2.6.0/ffi-1.15.5/gem_make.out +2 -2
  23. data/vendor/bundle/ruby/2.6.0/extensions/x86_64-linux/2.6.0/json-2.6.3/gem_make.out +1 -1
  24. data/vendor/bundle/ruby/2.6.0/extensions/x86_64-linux/2.6.0/json-2.6.3/mkmf.log +1 -1
  25. data/vendor/bundle/ruby/2.6.0/gems/ffi-1.15.5/ext/ffi_c/Makefile +2 -2
  26. data/vendor/bundle/ruby/2.6.0/gems/json-2.6.3/ext/json/Makefile +2 -2
  27. data/vendor/bundle/ruby/2.6.0/gems/json-2.6.3/ext/json/ext/generator/Makefile +2 -2
  28. data/vendor/bundle/ruby/2.6.0/gems/json-2.6.3/ext/json/ext/parser/Makefile +2 -2
  29. metadata +10 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 859816e483ff0740c5f73de7f8f544ddc053dd09608a5d9443b7f21dbbf2a880
4
- data.tar.gz: 4f18edf36d923b37af7936c87395b4d4641710d7a82cf95acd659d4a866d43d6
3
+ metadata.gz: 409008601d32dc7995336e188ae63cbabd02413092455dd8e7055704709e42b0
4
+ data.tar.gz: 10dfc97154ea0ca1be17c05e3d72a4abe7bb22306c8ae0b217d6abc01488102b
5
5
  SHA512:
6
- metadata.gz: 7da3447de1bcefc617dbfa321290c8b3d3deff43e9de6f89ebf58a7ef1eefae8a6d28b6aef38bd986dcb6ff61061a80372d9aa629dc173d872ea425e8490f4eb
7
- data.tar.gz: 4851d2fd2e235011ff30c8b0c5daaed4d91a5312fa72bb39d68a8353662ab64a52ce6ef47c13309fe7a58fc1698f094f2e71e886fd19fb2127e8b80b83fb3f85
6
+ metadata.gz: 46d96f8e6087d5cd2b312542df94e3db2a2719a6d051ca44f37c62f626ee968ee7b9e314e362b18fe21edbbd18ce1c011c44d6f95948432742476e618abe1a67
7
+ data.tar.gz: f131a339b42234ccd1c01f11b5ba6b9bd1355b2ad0d1f0f4cd96ab46e4b3ac9e776cea82ddeb772ec3d49103ada99ff7342417c20ab6b9ad1ac248a2a89ad255
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- cloudsmith-api (2.0.3)
4
+ cloudsmith-api (2.0.4)
5
5
  addressable (~> 2.3, >= 2.3.0)
6
6
  json (~> 2.1, >= 2.1.0)
7
7
  typhoeus (~> 1.0, >= 1.0.1)
data/README.md CHANGED
@@ -7,7 +7,7 @@ The API to the Cloudsmith Service
7
7
  This SDK is automatically generated by the [Swagger Codegen](https://github.com/swagger-api/swagger-codegen) project:
8
8
 
9
9
  - API version: v1
10
- - Package version: 2.0.3
10
+ - Package version: 2.0.4
11
11
  - Build package: io.swagger.codegen.languages.RubyClientCodegen
12
12
  For more information, please visit [https://help.cloudsmith.io](https://help.cloudsmith.io)
13
13
 
@@ -24,15 +24,15 @@ gem build cloudsmith-api.gemspec
24
24
  Then either install the gem locally:
25
25
 
26
26
  ```shell
27
- gem install ./cloudsmith-api-2.0.3.gem
27
+ gem install ./cloudsmith-api-2.0.4.gem
28
28
  ```
29
- (for development, run `gem install --dev ./cloudsmith-api-2.0.3.gem` to install the development dependencies)
29
+ (for development, run `gem install --dev ./cloudsmith-api-2.0.4.gem` to install the development dependencies)
30
30
 
31
31
  or publish the gem to a gem hosting service, e.g. [RubyGems](https://rubygems.org/).
32
32
 
33
33
  Finally add this to the Gemfile:
34
34
 
35
- gem 'cloudsmith-api', '~> 2.0.3'
35
+ gem 'cloudsmith-api', '~> 2.0.4'
36
36
 
37
37
  ### Install from Git
38
38
 
@@ -192,6 +192,7 @@ Class | Method | HTTP request | Description
192
192
  *CloudsmithApi::PackagesApi* | [**packages_upload_raw**](docs/PackagesApi.md#packages_upload_raw) | **POST** /packages/{owner}/{repo}/upload/raw/ | Create a new Raw package
193
193
  *CloudsmithApi::PackagesApi* | [**packages_upload_rpm**](docs/PackagesApi.md#packages_upload_rpm) | **POST** /packages/{owner}/{repo}/upload/rpm/ | Create a new RedHat package
194
194
  *CloudsmithApi::PackagesApi* | [**packages_upload_ruby**](docs/PackagesApi.md#packages_upload_ruby) | **POST** /packages/{owner}/{repo}/upload/ruby/ | Create a new Ruby package
195
+ *CloudsmithApi::PackagesApi* | [**packages_upload_swift**](docs/PackagesApi.md#packages_upload_swift) | **POST** /packages/{owner}/{repo}/upload/swift/ | Create a new Swift package
195
196
  *CloudsmithApi::PackagesApi* | [**packages_upload_terraform**](docs/PackagesApi.md#packages_upload_terraform) | **POST** /packages/{owner}/{repo}/upload/terraform/ | Create a new Terraform package
196
197
  *CloudsmithApi::PackagesApi* | [**packages_upload_vagrant**](docs/PackagesApi.md#packages_upload_vagrant) | **POST** /packages/{owner}/{repo}/upload/vagrant/ | Create a new Vagrant package
197
198
  *CloudsmithApi::PackagesApi* | [**packages_validate_upload_alpine**](docs/PackagesApi.md#packages_validate_upload_alpine) | **POST** /packages/{owner}/{repo}/validate-upload/alpine/ | Validate parameters for create Alpine package
@@ -216,6 +217,7 @@ Class | Method | HTTP request | Description
216
217
  *CloudsmithApi::PackagesApi* | [**packages_validate_upload_raw**](docs/PackagesApi.md#packages_validate_upload_raw) | **POST** /packages/{owner}/{repo}/validate-upload/raw/ | Validate parameters for create Raw package
217
218
  *CloudsmithApi::PackagesApi* | [**packages_validate_upload_rpm**](docs/PackagesApi.md#packages_validate_upload_rpm) | **POST** /packages/{owner}/{repo}/validate-upload/rpm/ | Validate parameters for create RedHat package
218
219
  *CloudsmithApi::PackagesApi* | [**packages_validate_upload_ruby**](docs/PackagesApi.md#packages_validate_upload_ruby) | **POST** /packages/{owner}/{repo}/validate-upload/ruby/ | Validate parameters for create Ruby package
220
+ *CloudsmithApi::PackagesApi* | [**packages_validate_upload_swift**](docs/PackagesApi.md#packages_validate_upload_swift) | **POST** /packages/{owner}/{repo}/validate-upload/swift/ | Validate parameters for create Swift package
219
221
  *CloudsmithApi::PackagesApi* | [**packages_validate_upload_terraform**](docs/PackagesApi.md#packages_validate_upload_terraform) | **POST** /packages/{owner}/{repo}/validate-upload/terraform/ | Validate parameters for create Terraform package
220
222
  *CloudsmithApi::PackagesApi* | [**packages_validate_upload_vagrant**](docs/PackagesApi.md#packages_validate_upload_vagrant) | **POST** /packages/{owner}/{repo}/validate-upload/vagrant/ | Validate parameters for create Vagrant package
221
223
  *CloudsmithApi::QuotaApi* | [**quota_history_read**](docs/QuotaApi.md#quota_history_read) | **GET** /quota/history/{owner}/ | Quota history for a given namespace.
@@ -424,6 +426,8 @@ Class | Method | HTTP request | Description
424
426
  - [CloudsmithApi::StorageRegion](docs/StorageRegion.md)
425
427
  - [CloudsmithApi::StorageUsage](docs/StorageUsage.md)
426
428
  - [CloudsmithApi::StorageUsageRaw](docs/StorageUsageRaw.md)
429
+ - [CloudsmithApi::SwiftPackageUpload](docs/SwiftPackageUpload.md)
430
+ - [CloudsmithApi::SwiftPackageUploadRequest](docs/SwiftPackageUploadRequest.md)
427
431
  - [CloudsmithApi::Tags](docs/Tags.md)
428
432
  - [CloudsmithApi::TerraformPackageUpload](docs/TerraformPackageUpload.md)
429
433
  - [CloudsmithApi::TerraformPackageUploadRequest](docs/TerraformPackageUploadRequest.md)
data/build.json CHANGED
@@ -8,7 +8,7 @@
8
8
  "gemName": "cloudsmith-api",
9
9
  "gemRequiredRubyVersion": ">= 1.9",
10
10
  "gemSummary": "Cloudsmith API",
11
- "gemVersion": "2.0.3",
11
+ "gemVersion": "2.0.4",
12
12
  "hideGenerationTimestamp": true,
13
13
  "moduleName": "CloudsmithApi",
14
14
  "sortParamsByRequiredFlag": true
@@ -4,6 +4,7 @@
4
4
  Name | Type | Description | Notes
5
5
  ------------ | ------------- | ------------- | -------------
6
6
  **package_file** | **String** | The primary file for the package. |
7
+ **provenance_file** | **String** | The provenance file containing the signature for the chart. If one is not provided, it will be generated automatically. | [optional]
7
8
  **republish** | **BOOLEAN** | If true, the uploaded package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate. | [optional]
8
9
  **tags** | **String** | A comma-separated values list of tags to add to the package. | [optional]
9
10
 
data/docs/PackagesApi.md CHANGED
@@ -37,6 +37,7 @@ Method | HTTP request | Description
37
37
  [**packages_upload_raw**](PackagesApi.md#packages_upload_raw) | **POST** /packages/{owner}/{repo}/upload/raw/ | Create a new Raw package
38
38
  [**packages_upload_rpm**](PackagesApi.md#packages_upload_rpm) | **POST** /packages/{owner}/{repo}/upload/rpm/ | Create a new RedHat package
39
39
  [**packages_upload_ruby**](PackagesApi.md#packages_upload_ruby) | **POST** /packages/{owner}/{repo}/upload/ruby/ | Create a new Ruby package
40
+ [**packages_upload_swift**](PackagesApi.md#packages_upload_swift) | **POST** /packages/{owner}/{repo}/upload/swift/ | Create a new Swift package
40
41
  [**packages_upload_terraform**](PackagesApi.md#packages_upload_terraform) | **POST** /packages/{owner}/{repo}/upload/terraform/ | Create a new Terraform package
41
42
  [**packages_upload_vagrant**](PackagesApi.md#packages_upload_vagrant) | **POST** /packages/{owner}/{repo}/upload/vagrant/ | Create a new Vagrant package
42
43
  [**packages_validate_upload_alpine**](PackagesApi.md#packages_validate_upload_alpine) | **POST** /packages/{owner}/{repo}/validate-upload/alpine/ | Validate parameters for create Alpine package
@@ -61,6 +62,7 @@ Method | HTTP request | Description
61
62
  [**packages_validate_upload_raw**](PackagesApi.md#packages_validate_upload_raw) | **POST** /packages/{owner}/{repo}/validate-upload/raw/ | Validate parameters for create Raw package
62
63
  [**packages_validate_upload_rpm**](PackagesApi.md#packages_validate_upload_rpm) | **POST** /packages/{owner}/{repo}/validate-upload/rpm/ | Validate parameters for create RedHat package
63
64
  [**packages_validate_upload_ruby**](PackagesApi.md#packages_validate_upload_ruby) | **POST** /packages/{owner}/{repo}/validate-upload/ruby/ | Validate parameters for create Ruby package
65
+ [**packages_validate_upload_swift**](PackagesApi.md#packages_validate_upload_swift) | **POST** /packages/{owner}/{repo}/validate-upload/swift/ | Validate parameters for create Swift package
64
66
  [**packages_validate_upload_terraform**](PackagesApi.md#packages_validate_upload_terraform) | **POST** /packages/{owner}/{repo}/validate-upload/terraform/ | Validate parameters for create Terraform package
65
67
  [**packages_validate_upload_vagrant**](PackagesApi.md#packages_validate_upload_vagrant) | **POST** /packages/{owner}/{repo}/validate-upload/vagrant/ | Validate parameters for create Vagrant package
66
68
 
@@ -2089,6 +2091,67 @@ Name | Type | Description | Notes
2089
2091
 
2090
2092
 
2091
2093
 
2094
+ # **packages_upload_swift**
2095
+ > SwiftPackageUpload packages_upload_swift(owner, repo, opts)
2096
+
2097
+ Create a new Swift package
2098
+
2099
+ Create a new Swift package
2100
+
2101
+ ### Example
2102
+ ```ruby
2103
+ # load the gem
2104
+ require 'cloudsmith-api'
2105
+ # setup authorization
2106
+ CloudsmithApi.configure do |config|
2107
+ # Configure API key authorization: apikey
2108
+ config.api_key['X-Api-Key'] = 'YOUR API KEY'
2109
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
2110
+ #config.api_key_prefix['X-Api-Key'] = 'Bearer'
2111
+ end
2112
+
2113
+ api_instance = CloudsmithApi::PackagesApi.new
2114
+
2115
+ owner = 'owner_example' # String |
2116
+
2117
+ repo = 'repo_example' # String |
2118
+
2119
+ opts = {
2120
+ data: CloudsmithApi::SwiftPackageUploadRequest.new # SwiftPackageUploadRequest |
2121
+ }
2122
+
2123
+ begin
2124
+ #Create a new Swift package
2125
+ result = api_instance.packages_upload_swift(owner, repo, opts)
2126
+ p result
2127
+ rescue CloudsmithApi::ApiError => e
2128
+ puts "Exception when calling PackagesApi->packages_upload_swift: #{e}"
2129
+ end
2130
+ ```
2131
+
2132
+ ### Parameters
2133
+
2134
+ Name | Type | Description | Notes
2135
+ ------------- | ------------- | ------------- | -------------
2136
+ **owner** | **String**| |
2137
+ **repo** | **String**| |
2138
+ **data** | [**SwiftPackageUploadRequest**](SwiftPackageUploadRequest.md)| | [optional]
2139
+
2140
+ ### Return type
2141
+
2142
+ [**SwiftPackageUpload**](SwiftPackageUpload.md)
2143
+
2144
+ ### Authorization
2145
+
2146
+ [apikey](../README.md#apikey)
2147
+
2148
+ ### HTTP request headers
2149
+
2150
+ - **Content-Type**: application/json
2151
+ - **Accept**: application/json
2152
+
2153
+
2154
+
2092
2155
  # **packages_upload_terraform**
2093
2156
  > TerraformPackageUpload packages_upload_terraform(owner, repo, opts)
2094
2157
 
@@ -3531,6 +3594,66 @@ nil (empty response body)
3531
3594
 
3532
3595
 
3533
3596
 
3597
+ # **packages_validate_upload_swift**
3598
+ > packages_validate_upload_swift(owner, repo, opts)
3599
+
3600
+ Validate parameters for create Swift package
3601
+
3602
+ Validate parameters for create Swift package
3603
+
3604
+ ### Example
3605
+ ```ruby
3606
+ # load the gem
3607
+ require 'cloudsmith-api'
3608
+ # setup authorization
3609
+ CloudsmithApi.configure do |config|
3610
+ # Configure API key authorization: apikey
3611
+ config.api_key['X-Api-Key'] = 'YOUR API KEY'
3612
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
3613
+ #config.api_key_prefix['X-Api-Key'] = 'Bearer'
3614
+ end
3615
+
3616
+ api_instance = CloudsmithApi::PackagesApi.new
3617
+
3618
+ owner = 'owner_example' # String |
3619
+
3620
+ repo = 'repo_example' # String |
3621
+
3622
+ opts = {
3623
+ data: CloudsmithApi::SwiftPackageUploadRequest.new # SwiftPackageUploadRequest |
3624
+ }
3625
+
3626
+ begin
3627
+ #Validate parameters for create Swift package
3628
+ api_instance.packages_validate_upload_swift(owner, repo, opts)
3629
+ rescue CloudsmithApi::ApiError => e
3630
+ puts "Exception when calling PackagesApi->packages_validate_upload_swift: #{e}"
3631
+ end
3632
+ ```
3633
+
3634
+ ### Parameters
3635
+
3636
+ Name | Type | Description | Notes
3637
+ ------------- | ------------- | ------------- | -------------
3638
+ **owner** | **String**| |
3639
+ **repo** | **String**| |
3640
+ **data** | [**SwiftPackageUploadRequest**](SwiftPackageUploadRequest.md)| | [optional]
3641
+
3642
+ ### Return type
3643
+
3644
+ nil (empty response body)
3645
+
3646
+ ### Authorization
3647
+
3648
+ [apikey](../README.md#apikey)
3649
+
3650
+ ### HTTP request headers
3651
+
3652
+ - **Content-Type**: application/json
3653
+ - **Accept**: application/json
3654
+
3655
+
3656
+
3534
3657
  # **packages_validate_upload_terraform**
3535
3658
  > packages_validate_upload_terraform(owner, repo, opts)
3536
3659
 
data/docs/StatusBasic.md CHANGED
@@ -4,6 +4,6 @@
4
4
  Name | Type | Description | Notes
5
5
  ------------ | ------------- | ------------- | -------------
6
6
  **detail** | **String** | The message describing the state of the API. | [optional] [default to 'Cloudsmith API is operational.']
7
- **version** | **String** | The current version for the Cloudsmith service. | [optional] [default to '1.263.0']
7
+ **version** | **String** | The current version for the Cloudsmith service. | [optional] [default to '1.273.0']
8
8
 
9
9
 
@@ -0,0 +1,75 @@
1
+ # CloudsmithApi::SwiftPackageUpload
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **architectures** | [**Array<Architecture>**](Architecture.md) | | [optional]
7
+ **cdn_url** | **String** | | [optional]
8
+ **checksum_md5** | **String** | | [optional]
9
+ **checksum_sha1** | **String** | | [optional]
10
+ **checksum_sha256** | **String** | | [optional]
11
+ **checksum_sha512** | **String** | | [optional]
12
+ **dependencies_checksum_md5** | **String** | A checksum of all of the package's dependencies. | [optional]
13
+ **dependencies_url** | **String** | | [optional]
14
+ **description** | **String** | A textual description of this package. | [optional]
15
+ **distro** | [**Distribution**](Distribution.md) | | [optional]
16
+ **distro_version** | [**DistributionVersion**](DistributionVersion.md) | | [optional]
17
+ **downloads** | **Integer** | | [optional]
18
+ **epoch** | **Integer** | The epoch of the package version (if any). | [optional]
19
+ **extension** | **String** | | [optional]
20
+ **filename** | **String** | | [optional]
21
+ **files** | [**Array<PackageFile>**](PackageFile.md) | | [optional]
22
+ **format** | **String** | | [optional]
23
+ **format_url** | **String** | | [optional]
24
+ **identifier_perm** | **String** | Unique and permanent identifier for the package. | [optional]
25
+ **indexed** | **BOOLEAN** | | [optional]
26
+ **is_downloadable** | **BOOLEAN** | | [optional]
27
+ **is_quarantined** | **BOOLEAN** | | [optional]
28
+ **is_sync_awaiting** | **BOOLEAN** | | [optional]
29
+ **is_sync_completed** | **BOOLEAN** | | [optional]
30
+ **is_sync_failed** | **BOOLEAN** | | [optional]
31
+ **is_sync_in_flight** | **BOOLEAN** | | [optional]
32
+ **is_sync_in_progress** | **BOOLEAN** | | [optional]
33
+ **license** | **String** | The license of this package. | [optional]
34
+ **name** | **String** | The name of this package. | [optional]
35
+ **namespace** | **String** | | [optional]
36
+ **namespace_url** | **String** | | [optional]
37
+ **num_files** | **Integer** | | [optional]
38
+ **origin_repository** | **String** | | [optional]
39
+ **origin_repository_url** | **String** | | [optional]
40
+ **package_type** | **Integer** | The type of package contents. | [optional]
41
+ **release** | **String** | The release of the package version (if any). | [optional]
42
+ **repository** | **String** | | [optional]
43
+ **repository_url** | **String** | | [optional]
44
+ **security_scan_completed_at** | **DateTime** | The datetime the security scanning was completed. | [optional]
45
+ **security_scan_started_at** | **DateTime** | The datetime the security scanning was started. | [optional]
46
+ **security_scan_status** | **String** | | [optional] [default to 'Awaiting Security Scan']
47
+ **security_scan_status_updated_at** | **DateTime** | The datetime the security scanning status was updated. | [optional]
48
+ **self_html_url** | **String** | | [optional]
49
+ **self_url** | **String** | | [optional]
50
+ **signature_url** | **String** | | [optional]
51
+ **size** | **Integer** | The calculated size of the package. | [optional]
52
+ **slug** | **String** | The public unique identifier for the package. | [optional]
53
+ **slug_perm** | **String** | | [optional]
54
+ **stage** | **Integer** | The synchronisation (in progress) stage of the package. | [optional]
55
+ **stage_str** | **String** | | [optional]
56
+ **stage_updated_at** | **DateTime** | The datetime the package stage was updated at. | [optional]
57
+ **status** | **Integer** | The synchronisation status of the package. | [optional]
58
+ **status_reason** | **String** | A textual description for the synchronous status reason (if any | [optional]
59
+ **status_str** | **String** | | [optional]
60
+ **status_updated_at** | **DateTime** | The datetime the package status was updated at. | [optional]
61
+ **status_url** | **String** | | [optional]
62
+ **subtype** | **String** | | [optional]
63
+ **summary** | **String** | A one-liner synopsis of this package. | [optional]
64
+ **sync_finished_at** | **DateTime** | The datetime the package sync was finished at. | [optional]
65
+ **sync_progress** | **Integer** | Synchronisation progress (from 0-100) | [optional]
66
+ **tags_immutable** | [**Tags**](Tags.md) | | [optional]
67
+ **type_display** | **String** | | [optional]
68
+ **uploaded_at** | **DateTime** | The date this package was uploaded. | [optional]
69
+ **uploader** | **String** | | [optional]
70
+ **uploader_url** | **String** | | [optional]
71
+ **version** | **String** | The raw version for this package. |
72
+ **version_orig** | **String** | | [optional]
73
+ **vulnerability_scan_results_url** | **String** | | [optional]
74
+
75
+
@@ -0,0 +1,11 @@
1
+ # CloudsmithApi::SwiftPackageUploadRequest
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **package_file** | **String** | The primary file for the package. |
7
+ **republish** | **BOOLEAN** | If true, the uploaded package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate. | [optional]
8
+ **tags** | **String** | A comma-separated values list of tags to add to the package. | [optional]
9
+ **version** | **String** | The raw version for this package. |
10
+
11
+
@@ -2122,6 +2122,68 @@ module CloudsmithApi
2122
2122
  end
2123
2123
  return data, status_code, headers
2124
2124
  end
2125
+ # Create a new Swift package
2126
+ # Create a new Swift package
2127
+ # @param owner
2128
+ # @param repo
2129
+ # @param [Hash] opts the optional parameters
2130
+ # @option opts [SwiftPackageUploadRequest] :data
2131
+ # @return [SwiftPackageUpload]
2132
+ def packages_upload_swift(owner, repo, opts = {})
2133
+ data, _status_code, _headers = packages_upload_swift_with_http_info(owner, repo, opts)
2134
+ data
2135
+ end
2136
+
2137
+ # Create a new Swift package
2138
+ # Create a new Swift package
2139
+ # @param owner
2140
+ # @param repo
2141
+ # @param [Hash] opts the optional parameters
2142
+ # @option opts [SwiftPackageUploadRequest] :data
2143
+ # @return [Array<(SwiftPackageUpload, Fixnum, Hash)>] SwiftPackageUpload data, response status code and response headers
2144
+ def packages_upload_swift_with_http_info(owner, repo, opts = {})
2145
+ if @api_client.config.debugging
2146
+ @api_client.config.logger.debug 'Calling API: PackagesApi.packages_upload_swift ...'
2147
+ end
2148
+ # verify the required parameter 'owner' is set
2149
+ if @api_client.config.client_side_validation && owner.nil?
2150
+ fail ArgumentError, "Missing the required parameter 'owner' when calling PackagesApi.packages_upload_swift"
2151
+ end
2152
+ # verify the required parameter 'repo' is set
2153
+ if @api_client.config.client_side_validation && repo.nil?
2154
+ fail ArgumentError, "Missing the required parameter 'repo' when calling PackagesApi.packages_upload_swift"
2155
+ end
2156
+ # resource path
2157
+ local_var_path = '/packages/{owner}/{repo}/upload/swift/'.sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'repo' + '}', repo.to_s)
2158
+
2159
+ # query parameters
2160
+ query_params = {}
2161
+
2162
+ # header parameters
2163
+ header_params = {}
2164
+ # HTTP header 'Accept' (if needed)
2165
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
2166
+ # HTTP header 'Content-Type'
2167
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
2168
+
2169
+ # form parameters
2170
+ form_params = {}
2171
+
2172
+ # http body (model)
2173
+ post_body = @api_client.object_to_http_body(opts[:'data'])
2174
+ auth_names = ['apikey']
2175
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
2176
+ :header_params => header_params,
2177
+ :query_params => query_params,
2178
+ :form_params => form_params,
2179
+ :body => post_body,
2180
+ :auth_names => auth_names,
2181
+ :return_type => 'SwiftPackageUpload')
2182
+ if @api_client.config.debugging
2183
+ @api_client.config.logger.debug "API called: PackagesApi#packages_upload_swift\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2184
+ end
2185
+ return data, status_code, headers
2186
+ end
2125
2187
  # Create a new Terraform package
2126
2188
  # Create a new Terraform package
2127
2189
  # @param owner
@@ -3588,6 +3650,67 @@ module CloudsmithApi
3588
3650
  end
3589
3651
  return data, status_code, headers
3590
3652
  end
3653
+ # Validate parameters for create Swift package
3654
+ # Validate parameters for create Swift package
3655
+ # @param owner
3656
+ # @param repo
3657
+ # @param [Hash] opts the optional parameters
3658
+ # @option opts [SwiftPackageUploadRequest] :data
3659
+ # @return [nil]
3660
+ def packages_validate_upload_swift(owner, repo, opts = {})
3661
+ packages_validate_upload_swift_with_http_info(owner, repo, opts)
3662
+ nil
3663
+ end
3664
+
3665
+ # Validate parameters for create Swift package
3666
+ # Validate parameters for create Swift package
3667
+ # @param owner
3668
+ # @param repo
3669
+ # @param [Hash] opts the optional parameters
3670
+ # @option opts [SwiftPackageUploadRequest] :data
3671
+ # @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
3672
+ def packages_validate_upload_swift_with_http_info(owner, repo, opts = {})
3673
+ if @api_client.config.debugging
3674
+ @api_client.config.logger.debug 'Calling API: PackagesApi.packages_validate_upload_swift ...'
3675
+ end
3676
+ # verify the required parameter 'owner' is set
3677
+ if @api_client.config.client_side_validation && owner.nil?
3678
+ fail ArgumentError, "Missing the required parameter 'owner' when calling PackagesApi.packages_validate_upload_swift"
3679
+ end
3680
+ # verify the required parameter 'repo' is set
3681
+ if @api_client.config.client_side_validation && repo.nil?
3682
+ fail ArgumentError, "Missing the required parameter 'repo' when calling PackagesApi.packages_validate_upload_swift"
3683
+ end
3684
+ # resource path
3685
+ local_var_path = '/packages/{owner}/{repo}/validate-upload/swift/'.sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'repo' + '}', repo.to_s)
3686
+
3687
+ # query parameters
3688
+ query_params = {}
3689
+
3690
+ # header parameters
3691
+ header_params = {}
3692
+ # HTTP header 'Accept' (if needed)
3693
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
3694
+ # HTTP header 'Content-Type'
3695
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
3696
+
3697
+ # form parameters
3698
+ form_params = {}
3699
+
3700
+ # http body (model)
3701
+ post_body = @api_client.object_to_http_body(opts[:'data'])
3702
+ auth_names = ['apikey']
3703
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
3704
+ :header_params => header_params,
3705
+ :query_params => query_params,
3706
+ :form_params => form_params,
3707
+ :body => post_body,
3708
+ :auth_names => auth_names)
3709
+ if @api_client.config.debugging
3710
+ @api_client.config.logger.debug "API called: PackagesApi#packages_validate_upload_swift\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
3711
+ end
3712
+ return data, status_code, headers
3713
+ end
3591
3714
  # Validate parameters for create Terraform package
3592
3715
  # Validate parameters for create Terraform package
3593
3716
  # @param owner
@@ -17,6 +17,9 @@ class HelmPackageUploadRequest
17
17
  # The primary file for the package.
18
18
  attr_accessor :package_file
19
19
 
20
+ # The provenance file containing the signature for the chart. If one is not provided, it will be generated automatically.
21
+ attr_accessor :provenance_file
22
+
20
23
  # If true, the uploaded package will overwrite any others with the same attributes (e.g. same version); otherwise, it will be flagged as a duplicate.
21
24
  attr_accessor :republish
22
25
 
@@ -27,6 +30,7 @@ class HelmPackageUploadRequest
27
30
  def self.attribute_map
28
31
  {
29
32
  :'package_file' => :'package_file',
33
+ :'provenance_file' => :'provenance_file',
30
34
  :'republish' => :'republish',
31
35
  :'tags' => :'tags'
32
36
  }
@@ -36,6 +40,7 @@ class HelmPackageUploadRequest
36
40
  def self.swagger_types
37
41
  {
38
42
  :'package_file' => :'String',
43
+ :'provenance_file' => :'String',
39
44
  :'republish' => :'BOOLEAN',
40
45
  :'tags' => :'String'
41
46
  }
@@ -53,6 +58,10 @@ class HelmPackageUploadRequest
53
58
  self.package_file = attributes[:'package_file']
54
59
  end
55
60
 
61
+ if attributes.has_key?(:'provenance_file')
62
+ self.provenance_file = attributes[:'provenance_file']
63
+ end
64
+
56
65
  if attributes.has_key?(:'republish')
57
66
  self.republish = attributes[:'republish']
58
67
  end
@@ -86,6 +95,7 @@ class HelmPackageUploadRequest
86
95
  return true if self.equal?(o)
87
96
  self.class == o.class &&
88
97
  package_file == o.package_file &&
98
+ provenance_file == o.provenance_file &&
89
99
  republish == o.republish &&
90
100
  tags == o.tags
91
101
  end
@@ -99,7 +109,7 @@ class HelmPackageUploadRequest
99
109
  # Calculates hash code according to all attributes.
100
110
  # @return [Fixnum] Hash code
101
111
  def hash
102
- [package_file, republish, tags].hash
112
+ [package_file, provenance_file, republish, tags].hash
103
113
  end
104
114
 
105
115
  # Builds the object from hash
@@ -53,7 +53,7 @@ class StatusBasic
53
53
  if attributes.has_key?(:'version')
54
54
  self.version = attributes[:'version']
55
55
  else
56
- self.version = '1.263.0'
56
+ self.version = '1.273.0'
57
57
  end
58
58
  end
59
59