cloudsmith-api 2.0.36 → 2.0.37

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (30) 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/ErrorDetail.md +1 -0
  6. data/docs/PackagesApi.md +131 -0
  7. data/docs/SkillsPackageUpload.md +96 -0
  8. data/docs/SkillsPackageUploadRequest.md +12 -0
  9. data/lib/cloudsmith-api/api/packages_api.rb +123 -0
  10. data/lib/cloudsmith-api/models/error_detail.rb +11 -1
  11. data/lib/cloudsmith-api/models/skills_package_upload.rb +1060 -0
  12. data/lib/cloudsmith-api/models/skills_package_upload_request.rb +238 -0
  13. data/lib/cloudsmith-api/version.rb +1 -1
  14. data/lib/cloudsmith-api.rb +2 -0
  15. data/spec/api/packages_api_spec.rb +28 -0
  16. data/spec/models/error_detail_spec.rb +6 -0
  17. data/spec/models/skills_package_upload_request_spec.rb +65 -0
  18. data/spec/models/skills_package_upload_spec.rb +573 -0
  19. data/vendor/bundle/ruby/2.6.0/extensions/x86_64-linux/2.6.0/autotest-fsevent-0.3.2/gem_make.out +1 -1
  20. data/vendor/bundle/ruby/2.6.0/extensions/x86_64-linux/2.6.0/bigdecimal-4.1.3/gem_make.out +2 -2
  21. data/vendor/bundle/ruby/2.6.0/extensions/x86_64-linux/2.6.0/bigdecimal-4.1.3/mkmf.log +4 -4
  22. data/vendor/bundle/ruby/2.6.0/extensions/x86_64-linux/2.6.0/ffi-1.17.4/gem_make.out +2 -2
  23. data/vendor/bundle/ruby/2.6.0/extensions/x86_64-linux/2.6.0/ffi-1.17.4/mkmf.log +1 -1
  24. data/vendor/bundle/ruby/2.6.0/extensions/x86_64-linux/2.6.0/json-2.7.6/gem_make.out +2 -2
  25. data/vendor/bundle/ruby/2.6.0/extensions/x86_64-linux/2.6.0/json-2.7.6/mkmf.log +1 -1
  26. data/vendor/bundle/ruby/2.6.0/gems/bigdecimal-4.1.3/ext/bigdecimal/Makefile +2 -2
  27. data/vendor/bundle/ruby/2.6.0/gems/ffi-1.17.4/ext/ffi_c/Makefile +2 -2
  28. data/vendor/bundle/ruby/2.6.0/gems/json-2.7.6/ext/json/ext/generator/Makefile +2 -2
  29. data/vendor/bundle/ruby/2.6.0/gems/json-2.7.6/ext/json/ext/parser/Makefile +2 -2
  30. metadata +10 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 1a736304a1a3d2852910ce6839c373e7730db167fe6c79045e896bb114fb9c36
4
- data.tar.gz: 8e2591306f370f7185e811a4ce88dc290f8e127f52e89d5c4aec7248efda282f
3
+ metadata.gz: 07f5cb6dc83408c825e253da4cc3bd463ea30d04d02c0bac55ca139116146beb
4
+ data.tar.gz: 502bdbbeb65442482624059246eeadafa9dc647ae755b14a9ab63b9a46350f2b
5
5
  SHA512:
6
- metadata.gz: 54ffe320f5cff016683890d4684bfe74a31445a7d42aa7e448b736f4ea09eec2194fa706f42472e49dcb475d4c3438143c8198d4471c1041a53a6f0135fac2ec
7
- data.tar.gz: 44c96775f27be0318ed6db0070476b7f60423013dc2b5f451a8f9e15d17ebe7e45ee0949bcfd16e053ae9b4db48804d11c54e513e5e97a844035e2aaa58d96f4
6
+ metadata.gz: fd5b6c8f67a2be6c38888dac56071b298774be8819f29ce679df84d4664a6eb197612dbd65052250f6ebe3a96f00a6dce086543bad1d5710b2f71d581983b2bc
7
+ data.tar.gz: 0b4c118f4e4dcfaa877f8dca3e1d46ea9c798cbf34a1bf4b60af08a8d1229a53381dbbc244070b5c83a71620e464acf8b3ab2c8882d9279c53eda61d8827f7c9
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- cloudsmith-api (2.0.36)
4
+ cloudsmith-api (2.0.37)
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.36
10
+ - Package version: 2.0.37
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.36.gem
27
+ gem install ./cloudsmith-api-2.0.37.gem
28
28
  ```
29
- (for development, run `gem install --dev ./cloudsmith-api-2.0.36.gem` to install the development dependencies)
29
+ (for development, run `gem install --dev ./cloudsmith-api-2.0.37.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.36'
35
+ gem 'cloudsmith-api', '~> 2.0.37'
36
36
 
37
37
  ### Install from Git
38
38
 
@@ -245,6 +245,7 @@ Class | Method | HTTP request | Description
245
245
  *CloudsmithApi::PackagesApi* | [**packages_upload_raw**](docs/PackagesApi.md#packages_upload_raw) | **POST** /packages/{owner}/{repo}/upload/raw/ | Create a new Raw package
246
246
  *CloudsmithApi::PackagesApi* | [**packages_upload_rpm**](docs/PackagesApi.md#packages_upload_rpm) | **POST** /packages/{owner}/{repo}/upload/rpm/ | Create a new RedHat package
247
247
  *CloudsmithApi::PackagesApi* | [**packages_upload_ruby**](docs/PackagesApi.md#packages_upload_ruby) | **POST** /packages/{owner}/{repo}/upload/ruby/ | Create a new Ruby package
248
+ *CloudsmithApi::PackagesApi* | [**packages_upload_skills**](docs/PackagesApi.md#packages_upload_skills) | **POST** /packages/{owner}/{repo}/upload/skills/ | Create a new AI Skills package
248
249
  *CloudsmithApi::PackagesApi* | [**packages_upload_swift**](docs/PackagesApi.md#packages_upload_swift) | **POST** /packages/{owner}/{repo}/upload/swift/ | Create a new Swift package
249
250
  *CloudsmithApi::PackagesApi* | [**packages_upload_terraform**](docs/PackagesApi.md#packages_upload_terraform) | **POST** /packages/{owner}/{repo}/upload/terraform/ | Create a new Terraform package
250
251
  *CloudsmithApi::PackagesApi* | [**packages_upload_vagrant**](docs/PackagesApi.md#packages_upload_vagrant) | **POST** /packages/{owner}/{repo}/upload/vagrant/ | Create a new Vagrant package
@@ -275,6 +276,7 @@ Class | Method | HTTP request | Description
275
276
  *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
276
277
  *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
277
278
  *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
279
+ *CloudsmithApi::PackagesApi* | [**packages_validate_upload_skills**](docs/PackagesApi.md#packages_validate_upload_skills) | **POST** /packages/{owner}/{repo}/validate-upload/skills/ | Validate parameters for create AI Skills package
278
280
  *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
279
281
  *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
280
282
  *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
@@ -763,6 +765,8 @@ Class | Method | HTTP request | Description
763
765
  - [CloudsmithApi::ServiceRequest](docs/ServiceRequest.md)
764
766
  - [CloudsmithApi::ServiceRequestPatch](docs/ServiceRequestPatch.md)
765
767
  - [CloudsmithApi::ServiceTeams](docs/ServiceTeams.md)
768
+ - [CloudsmithApi::SkillsPackageUpload](docs/SkillsPackageUpload.md)
769
+ - [CloudsmithApi::SkillsPackageUploadRequest](docs/SkillsPackageUploadRequest.md)
766
770
  - [CloudsmithApi::StatusBasic](docs/StatusBasic.md)
767
771
  - [CloudsmithApi::StorageAllocatedLimit](docs/StorageAllocatedLimit.md)
768
772
  - [CloudsmithApi::StorageAllocatedLimitRaw](docs/StorageAllocatedLimitRaw.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.36",
11
+ "gemVersion": "2.0.37",
12
12
  "hideGenerationTimestamp": true,
13
13
  "moduleName": "CloudsmithApi",
14
14
  "sortParamsByRequiredFlag": true
data/docs/ErrorDetail.md CHANGED
@@ -3,6 +3,7 @@
3
3
  ## Properties
4
4
  Name | Type | Description | Notes
5
5
  ------------ | ------------- | ------------- | -------------
6
+ **code** | **String** | A machine-readable code for the error. Only set for validation errors. | [optional]
6
7
  **detail** | **String** | An extended message for the response. |
7
8
  **fields** | **Hash<String, Array<String>>** | A Dictionary of related errors where key: Field and value: Array of Errors related to that field | [optional]
8
9
 
data/docs/PackagesApi.md CHANGED
@@ -43,6 +43,7 @@ Method | HTTP request | Description
43
43
  [**packages_upload_raw**](PackagesApi.md#packages_upload_raw) | **POST** /packages/{owner}/{repo}/upload/raw/ | Create a new Raw package
44
44
  [**packages_upload_rpm**](PackagesApi.md#packages_upload_rpm) | **POST** /packages/{owner}/{repo}/upload/rpm/ | Create a new RedHat package
45
45
  [**packages_upload_ruby**](PackagesApi.md#packages_upload_ruby) | **POST** /packages/{owner}/{repo}/upload/ruby/ | Create a new Ruby package
46
+ [**packages_upload_skills**](PackagesApi.md#packages_upload_skills) | **POST** /packages/{owner}/{repo}/upload/skills/ | Create a new AI Skills package
46
47
  [**packages_upload_swift**](PackagesApi.md#packages_upload_swift) | **POST** /packages/{owner}/{repo}/upload/swift/ | Create a new Swift package
47
48
  [**packages_upload_terraform**](PackagesApi.md#packages_upload_terraform) | **POST** /packages/{owner}/{repo}/upload/terraform/ | Create a new Terraform package
48
49
  [**packages_upload_vagrant**](PackagesApi.md#packages_upload_vagrant) | **POST** /packages/{owner}/{repo}/upload/vagrant/ | Create a new Vagrant package
@@ -73,6 +74,7 @@ Method | HTTP request | Description
73
74
  [**packages_validate_upload_raw**](PackagesApi.md#packages_validate_upload_raw) | **POST** /packages/{owner}/{repo}/validate-upload/raw/ | Validate parameters for create Raw package
74
75
  [**packages_validate_upload_rpm**](PackagesApi.md#packages_validate_upload_rpm) | **POST** /packages/{owner}/{repo}/validate-upload/rpm/ | Validate parameters for create RedHat package
75
76
  [**packages_validate_upload_ruby**](PackagesApi.md#packages_validate_upload_ruby) | **POST** /packages/{owner}/{repo}/validate-upload/ruby/ | Validate parameters for create Ruby package
77
+ [**packages_validate_upload_skills**](PackagesApi.md#packages_validate_upload_skills) | **POST** /packages/{owner}/{repo}/validate-upload/skills/ | Validate parameters for create AI Skills package
76
78
  [**packages_validate_upload_swift**](PackagesApi.md#packages_validate_upload_swift) | **POST** /packages/{owner}/{repo}/validate-upload/swift/ | Validate parameters for create Swift package
77
79
  [**packages_validate_upload_terraform**](PackagesApi.md#packages_validate_upload_terraform) | **POST** /packages/{owner}/{repo}/validate-upload/terraform/ | Validate parameters for create Terraform package
78
80
  [**packages_validate_upload_vagrant**](PackagesApi.md#packages_validate_upload_vagrant) | **POST** /packages/{owner}/{repo}/validate-upload/vagrant/ | Validate parameters for create Vagrant package
@@ -2654,6 +2656,71 @@ Name | Type | Description | Notes
2654
2656
 
2655
2657
 
2656
2658
 
2659
+ # **packages_upload_skills**
2660
+ > SkillsPackageUpload packages_upload_skills(owner, repo, opts)
2661
+
2662
+ Create a new AI Skills package
2663
+
2664
+ Create a new AI Skills package
2665
+
2666
+ ### Example
2667
+ ```ruby
2668
+ # load the gem
2669
+ require 'cloudsmith-api'
2670
+ # setup authorization
2671
+ CloudsmithApi.configure do |config|
2672
+ # Configure API key authorization: apikey
2673
+ config.api_key['X-Api-Key'] = 'YOUR API KEY'
2674
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
2675
+ #config.api_key_prefix['X-Api-Key'] = 'Bearer'
2676
+
2677
+ # Configure HTTP basic authorization: basic
2678
+ config.username = 'YOUR USERNAME'
2679
+ config.password = 'YOUR PASSWORD'
2680
+ end
2681
+
2682
+ api_instance = CloudsmithApi::PackagesApi.new
2683
+
2684
+ owner = 'owner_example' # String |
2685
+
2686
+ repo = 'repo_example' # String |
2687
+
2688
+ opts = {
2689
+ data: CloudsmithApi::SkillsPackageUploadRequest.new # SkillsPackageUploadRequest |
2690
+ }
2691
+
2692
+ begin
2693
+ #Create a new AI Skills package
2694
+ result = api_instance.packages_upload_skills(owner, repo, opts)
2695
+ p result
2696
+ rescue CloudsmithApi::ApiError => e
2697
+ puts "Exception when calling PackagesApi->packages_upload_skills: #{e}"
2698
+ end
2699
+ ```
2700
+
2701
+ ### Parameters
2702
+
2703
+ Name | Type | Description | Notes
2704
+ ------------- | ------------- | ------------- | -------------
2705
+ **owner** | **String**| |
2706
+ **repo** | **String**| |
2707
+ **data** | [**SkillsPackageUploadRequest**](SkillsPackageUploadRequest.md)| | [optional]
2708
+
2709
+ ### Return type
2710
+
2711
+ [**SkillsPackageUpload**](SkillsPackageUpload.md)
2712
+
2713
+ ### Authorization
2714
+
2715
+ [apikey](../README.md#apikey), [basic](../README.md#basic)
2716
+
2717
+ ### HTTP request headers
2718
+
2719
+ - **Content-Type**: application/json
2720
+ - **Accept**: application/json
2721
+
2722
+
2723
+
2657
2724
  # **packages_upload_swift**
2658
2725
  > SwiftPackageUpload packages_upload_swift(owner, repo, opts)
2659
2726
 
@@ -4578,6 +4645,70 @@ nil (empty response body)
4578
4645
 
4579
4646
 
4580
4647
 
4648
+ # **packages_validate_upload_skills**
4649
+ > packages_validate_upload_skills(owner, repo, opts)
4650
+
4651
+ Validate parameters for create AI Skills package
4652
+
4653
+ Validate parameters for create AI Skills package
4654
+
4655
+ ### Example
4656
+ ```ruby
4657
+ # load the gem
4658
+ require 'cloudsmith-api'
4659
+ # setup authorization
4660
+ CloudsmithApi.configure do |config|
4661
+ # Configure API key authorization: apikey
4662
+ config.api_key['X-Api-Key'] = 'YOUR API KEY'
4663
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
4664
+ #config.api_key_prefix['X-Api-Key'] = 'Bearer'
4665
+
4666
+ # Configure HTTP basic authorization: basic
4667
+ config.username = 'YOUR USERNAME'
4668
+ config.password = 'YOUR PASSWORD'
4669
+ end
4670
+
4671
+ api_instance = CloudsmithApi::PackagesApi.new
4672
+
4673
+ owner = 'owner_example' # String |
4674
+
4675
+ repo = 'repo_example' # String |
4676
+
4677
+ opts = {
4678
+ data: CloudsmithApi::SkillsPackageUploadRequest.new # SkillsPackageUploadRequest |
4679
+ }
4680
+
4681
+ begin
4682
+ #Validate parameters for create AI Skills package
4683
+ api_instance.packages_validate_upload_skills(owner, repo, opts)
4684
+ rescue CloudsmithApi::ApiError => e
4685
+ puts "Exception when calling PackagesApi->packages_validate_upload_skills: #{e}"
4686
+ end
4687
+ ```
4688
+
4689
+ ### Parameters
4690
+
4691
+ Name | Type | Description | Notes
4692
+ ------------- | ------------- | ------------- | -------------
4693
+ **owner** | **String**| |
4694
+ **repo** | **String**| |
4695
+ **data** | [**SkillsPackageUploadRequest**](SkillsPackageUploadRequest.md)| | [optional]
4696
+
4697
+ ### Return type
4698
+
4699
+ nil (empty response body)
4700
+
4701
+ ### Authorization
4702
+
4703
+ [apikey](../README.md#apikey), [basic](../README.md#basic)
4704
+
4705
+ ### HTTP request headers
4706
+
4707
+ - **Content-Type**: application/json
4708
+ - **Accept**: application/json
4709
+
4710
+
4711
+
4581
4712
  # **packages_validate_upload_swift**
4582
4713
  > packages_validate_upload_swift(owner, repo, opts)
4583
4714
 
@@ -0,0 +1,96 @@
1
+ # CloudsmithApi::SkillsPackageUpload
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
+ **display_name** | **String** | | [optional]
16
+ **display_source** | **String** | Where the package originated, for example: 'upstream' (proxied/cached from a configured upstream), 'connected_repository' (blended in from a connected target repository), or 'manual_upload' (uploaded directly to Cloudsmith). | [optional]
17
+ **distro** | [**Distribution**](Distribution.md) | | [optional]
18
+ **distro_version** | [**DistributionVersion**](DistributionVersion.md) | | [optional]
19
+ **downloads** | **Integer** | | [optional]
20
+ **epoch** | **Integer** | The epoch of the package version (if any). | [optional]
21
+ **extension** | **String** | | [optional]
22
+ **filename** | **String** | | [optional]
23
+ **files** | [**Array<PackageFile>**](PackageFile.md) | | [optional]
24
+ **format** | **String** | | [optional]
25
+ **format_url** | **String** | | [optional]
26
+ **freeable_storage** | **Integer** | Amount of storage that will be freed if this package is deleted | [optional]
27
+ **fully_qualified_name** | **String** | | [optional]
28
+ **identifier_perm** | **String** | Unique and permanent identifier for the package. | [optional]
29
+ **identifiers** | **Hash<String, String>** | Return a map of identifier field names and their values. | [optional]
30
+ **indexed** | **BOOLEAN** | | [optional]
31
+ **is_cancellable** | **BOOLEAN** | | [optional]
32
+ **is_copyable** | **BOOLEAN** | | [optional]
33
+ **is_deleteable** | **BOOLEAN** | | [optional]
34
+ **is_downloadable** | **BOOLEAN** | | [optional]
35
+ **is_hidden** | **BOOLEAN** | | [optional]
36
+ **is_moveable** | **BOOLEAN** | | [optional]
37
+ **is_quarantinable** | **BOOLEAN** | | [optional]
38
+ **is_quarantined** | **BOOLEAN** | | [optional]
39
+ **is_resyncable** | **BOOLEAN** | | [optional]
40
+ **is_security_scannable** | **BOOLEAN** | | [optional]
41
+ **is_sync_awaiting** | **BOOLEAN** | | [optional]
42
+ **is_sync_completed** | **BOOLEAN** | | [optional]
43
+ **is_sync_failed** | **BOOLEAN** | | [optional]
44
+ **is_sync_in_flight** | **BOOLEAN** | | [optional]
45
+ **is_sync_in_progress** | **BOOLEAN** | | [optional]
46
+ **license** | **String** | The license of this package. | [optional]
47
+ **name** | **String** | |
48
+ **namespace** | **String** | | [optional]
49
+ **namespace_url** | **String** | | [optional]
50
+ **num_files** | **Integer** | | [optional]
51
+ **origin_repository** | **String** | | [optional]
52
+ **origin_repository_url** | **String** | | [optional]
53
+ **osi_approved** | **BOOLEAN** | Whether the package's SPDX license is OSI-approved. | [optional]
54
+ **package_type** | **Integer** | The type of package contents. | [optional]
55
+ **policy_violated** | **BOOLEAN** | Whether or not the package has violated any policy. | [optional]
56
+ **raw_license** | **String** | The raw license string. | [optional]
57
+ **release** | **String** | The release of the package version (if any). | [optional]
58
+ **repository** | **String** | | [optional]
59
+ **repository_url** | **String** | | [optional]
60
+ **security_scan_completed_at** | **DateTime** | The datetime the security scanning was completed. | [optional]
61
+ **security_scan_started_at** | **DateTime** | The datetime the security scanning was started. | [optional]
62
+ **security_scan_status** | **String** | | [optional] [default to 'Awaiting Security Scan']
63
+ **security_scan_status_updated_at** | **DateTime** | The datetime the security scanning status was updated. | [optional]
64
+ **self_html_url** | **String** | | [optional]
65
+ **self_url** | **String** | | [optional]
66
+ **self_webapp_url** | **String** | | [optional]
67
+ **signature_url** | **String** | | [optional]
68
+ **size** | **Integer** | The calculated size of the package. | [optional]
69
+ **slug** | **String** | The public unique identifier for the package. | [optional]
70
+ **slug_perm** | **String** | | [optional]
71
+ **spdx_license** | **String** | The SPDX license identifier for this package. | [optional]
72
+ **stage** | **Integer** | The synchronisation (in progress) stage of the package. | [optional]
73
+ **stage_str** | **String** | | [optional]
74
+ **stage_updated_at** | **DateTime** | The datetime the package stage was updated at. | [optional]
75
+ **status** | **Integer** | The synchronisation status of the package. | [optional]
76
+ **status_reason** | **String** | A textual description for the synchronous status reason (if any | [optional]
77
+ **status_str** | **String** | | [optional]
78
+ **status_updated_at** | **DateTime** | The datetime the package status was updated at. | [optional]
79
+ **status_url** | **String** | | [optional]
80
+ **store_path** | **String** | Absolute store path for the package, including store hash and name. | [optional]
81
+ **subtype** | **String** | | [optional]
82
+ **summary** | **String** | A one-liner synopsis of this package. | [optional]
83
+ **sync_finished_at** | **DateTime** | The datetime the package sync was finished at. | [optional]
84
+ **sync_progress** | **Integer** | Synchronisation progress (from 0-100) | [optional]
85
+ **tags_automatic** | [**Tags**](Tags.md) | | [optional]
86
+ **tags_immutable** | [**Tags**](Tags.md) | | [optional]
87
+ **tags_static** | **Hash<String, Array<String>>** | All static tags on the package, grouped by context. Static tags are derived from the package's properties at request time and carry a 'context' (rather than a tag type). Includes format-specific badges and the package's architecture, subtype, and extension. | [optional]
88
+ **type_display** | **String** | | [optional]
89
+ **uploaded_at** | **DateTime** | The date this package was uploaded. | [optional]
90
+ **uploader** | **String** | | [optional]
91
+ **uploader_url** | **String** | | [optional]
92
+ **version** | **String** | |
93
+ **version_orig** | **String** | | [optional]
94
+ **vulnerability_scan_results_url** | **String** | | [optional]
95
+
96
+
@@ -0,0 +1,12 @@
1
+ # CloudsmithApi::SkillsPackageUploadRequest
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **name** | **String** | |
7
+ **package_file** | **String** | The primary file for the package. |
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]
9
+ **tags** | **String** | A comma-separated values list of tags to add to the package. | [optional]
10
+ **version** | **String** | |
11
+
12
+
@@ -2531,6 +2531,68 @@ module CloudsmithApi
2531
2531
  end
2532
2532
  return data, status_code, headers
2533
2533
  end
2534
+ # Create a new AI Skills package
2535
+ # Create a new AI Skills package
2536
+ # @param owner
2537
+ # @param repo
2538
+ # @param [Hash] opts the optional parameters
2539
+ # @option opts [SkillsPackageUploadRequest] :data
2540
+ # @return [SkillsPackageUpload]
2541
+ def packages_upload_skills(owner, repo, opts = {})
2542
+ data, _status_code, _headers = packages_upload_skills_with_http_info(owner, repo, opts)
2543
+ data
2544
+ end
2545
+
2546
+ # Create a new AI Skills package
2547
+ # Create a new AI Skills package
2548
+ # @param owner
2549
+ # @param repo
2550
+ # @param [Hash] opts the optional parameters
2551
+ # @option opts [SkillsPackageUploadRequest] :data
2552
+ # @return [Array<(SkillsPackageUpload, Fixnum, Hash)>] SkillsPackageUpload data, response status code and response headers
2553
+ def packages_upload_skills_with_http_info(owner, repo, opts = {})
2554
+ if @api_client.config.debugging
2555
+ @api_client.config.logger.debug 'Calling API: PackagesApi.packages_upload_skills ...'
2556
+ end
2557
+ # verify the required parameter 'owner' is set
2558
+ if @api_client.config.client_side_validation && owner.nil?
2559
+ fail ArgumentError, "Missing the required parameter 'owner' when calling PackagesApi.packages_upload_skills"
2560
+ end
2561
+ # verify the required parameter 'repo' is set
2562
+ if @api_client.config.client_side_validation && repo.nil?
2563
+ fail ArgumentError, "Missing the required parameter 'repo' when calling PackagesApi.packages_upload_skills"
2564
+ end
2565
+ # resource path
2566
+ local_var_path = '/packages/{owner}/{repo}/upload/skills/'.sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'repo' + '}', repo.to_s)
2567
+
2568
+ # query parameters
2569
+ query_params = {}
2570
+
2571
+ # header parameters
2572
+ header_params = {}
2573
+ # HTTP header 'Accept' (if needed)
2574
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
2575
+ # HTTP header 'Content-Type'
2576
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
2577
+
2578
+ # form parameters
2579
+ form_params = {}
2580
+
2581
+ # http body (model)
2582
+ post_body = @api_client.object_to_http_body(opts[:'data'])
2583
+ auth_names = ['apikey', 'basic']
2584
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
2585
+ :header_params => header_params,
2586
+ :query_params => query_params,
2587
+ :form_params => form_params,
2588
+ :body => post_body,
2589
+ :auth_names => auth_names,
2590
+ :return_type => 'SkillsPackageUpload')
2591
+ if @api_client.config.debugging
2592
+ @api_client.config.logger.debug "API called: PackagesApi#packages_upload_skills\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2593
+ end
2594
+ return data, status_code, headers
2595
+ end
2534
2596
  # Create a new Swift package
2535
2597
  # Create a new Swift package
2536
2598
  # @param owner
@@ -4365,6 +4427,67 @@ module CloudsmithApi
4365
4427
  end
4366
4428
  return data, status_code, headers
4367
4429
  end
4430
+ # Validate parameters for create AI Skills package
4431
+ # Validate parameters for create AI Skills package
4432
+ # @param owner
4433
+ # @param repo
4434
+ # @param [Hash] opts the optional parameters
4435
+ # @option opts [SkillsPackageUploadRequest] :data
4436
+ # @return [nil]
4437
+ def packages_validate_upload_skills(owner, repo, opts = {})
4438
+ packages_validate_upload_skills_with_http_info(owner, repo, opts)
4439
+ nil
4440
+ end
4441
+
4442
+ # Validate parameters for create AI Skills package
4443
+ # Validate parameters for create AI Skills package
4444
+ # @param owner
4445
+ # @param repo
4446
+ # @param [Hash] opts the optional parameters
4447
+ # @option opts [SkillsPackageUploadRequest] :data
4448
+ # @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
4449
+ def packages_validate_upload_skills_with_http_info(owner, repo, opts = {})
4450
+ if @api_client.config.debugging
4451
+ @api_client.config.logger.debug 'Calling API: PackagesApi.packages_validate_upload_skills ...'
4452
+ end
4453
+ # verify the required parameter 'owner' is set
4454
+ if @api_client.config.client_side_validation && owner.nil?
4455
+ fail ArgumentError, "Missing the required parameter 'owner' when calling PackagesApi.packages_validate_upload_skills"
4456
+ end
4457
+ # verify the required parameter 'repo' is set
4458
+ if @api_client.config.client_side_validation && repo.nil?
4459
+ fail ArgumentError, "Missing the required parameter 'repo' when calling PackagesApi.packages_validate_upload_skills"
4460
+ end
4461
+ # resource path
4462
+ local_var_path = '/packages/{owner}/{repo}/validate-upload/skills/'.sub('{' + 'owner' + '}', owner.to_s).sub('{' + 'repo' + '}', repo.to_s)
4463
+
4464
+ # query parameters
4465
+ query_params = {}
4466
+
4467
+ # header parameters
4468
+ header_params = {}
4469
+ # HTTP header 'Accept' (if needed)
4470
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
4471
+ # HTTP header 'Content-Type'
4472
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
4473
+
4474
+ # form parameters
4475
+ form_params = {}
4476
+
4477
+ # http body (model)
4478
+ post_body = @api_client.object_to_http_body(opts[:'data'])
4479
+ auth_names = ['apikey', 'basic']
4480
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
4481
+ :header_params => header_params,
4482
+ :query_params => query_params,
4483
+ :form_params => form_params,
4484
+ :body => post_body,
4485
+ :auth_names => auth_names)
4486
+ if @api_client.config.debugging
4487
+ @api_client.config.logger.debug "API called: PackagesApi#packages_validate_upload_skills\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
4488
+ end
4489
+ return data, status_code, headers
4490
+ end
4368
4491
  # Validate parameters for create Swift package
4369
4492
  # Validate parameters for create Swift package
4370
4493
  # @param owner
@@ -14,6 +14,9 @@ require 'date'
14
14
 
15
15
  module CloudsmithApi
16
16
  class ErrorDetail
17
+ # A machine-readable code for the error. Only set for validation errors.
18
+ attr_accessor :code
19
+
17
20
  # An extended message for the response.
18
21
  attr_accessor :detail
19
22
 
@@ -23,6 +26,7 @@ class ErrorDetail
23
26
  # Attribute mapping from ruby-style variable name to JSON key.
24
27
  def self.attribute_map
25
28
  {
29
+ :'code' => :'code',
26
30
  :'detail' => :'detail',
27
31
  :'fields' => :'fields'
28
32
  }
@@ -31,6 +35,7 @@ class ErrorDetail
31
35
  # Attribute type mapping.
32
36
  def self.swagger_types
33
37
  {
38
+ :'code' => :'String',
34
39
  :'detail' => :'String',
35
40
  :'fields' => :'Hash<String, Array<String>>'
36
41
  }
@@ -44,6 +49,10 @@ class ErrorDetail
44
49
  # convert string to symbol for hash key
45
50
  attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
46
51
 
52
+ if attributes.has_key?(:'code')
53
+ self.code = attributes[:'code']
54
+ end
55
+
47
56
  if attributes.has_key?(:'detail')
48
57
  self.detail = attributes[:'detail']
49
58
  end
@@ -78,6 +87,7 @@ class ErrorDetail
78
87
  def ==(o)
79
88
  return true if self.equal?(o)
80
89
  self.class == o.class &&
90
+ code == o.code &&
81
91
  detail == o.detail &&
82
92
  fields == o.fields
83
93
  end
@@ -91,7 +101,7 @@ class ErrorDetail
91
101
  # Calculates hash code according to all attributes.
92
102
  # @return [Fixnum] Hash code
93
103
  def hash
94
- [detail, fields].hash
104
+ [code, detail, fields].hash
95
105
  end
96
106
 
97
107
  # Builds the object from hash