cloudsmith-api 1.61.3 → 1.120.3
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 +4 -4
- data/Gemfile.lock +2 -2
- data/README.md +51 -30
- data/build.json +1 -1
- data/docs/AuditLogApi.md +137 -0
- data/docs/FilesApi.md +13 -6
- data/docs/NamespaceAuditLog.md +23 -0
- data/docs/OrganizationGroupSync.md +12 -0
- data/docs/OrganizationInvite.md +16 -0
- data/docs/OrganizationTeam.md +12 -0
- data/docs/OrgsApi.md +713 -0
- data/docs/OrgsInvitesCreate.md +12 -0
- data/docs/OrgsInvitesExtend.md +11 -0
- data/docs/OrgsSamlgroupsyncCreate.md +12 -0
- data/docs/OrgsTeamsCreate.md +11 -0
- data/docs/OrgsTeamsPartialUpdate.md +11 -0
- data/docs/ReposApi.md +586 -0
- data/docs/ReposCreate.md +29 -1
- data/docs/ReposGpgCreate.md +9 -0
- data/docs/ReposPartialUpdate.md +28 -0
- data/docs/ReposRsaCreate.md +9 -0
- data/docs/Repository.md +28 -0
- data/docs/RepositoryAuditLog.md +20 -0
- data/docs/RepositoryCreate.md +29 -1
- data/docs/RepositoryGpgKey.md +14 -0
- data/docs/RepositoryPrivilegeList.md +8 -0
- data/docs/RepositoryRsaKey.md +13 -0
- data/lib/cloudsmith-api/api/audit_log_api.rb +147 -0
- data/lib/cloudsmith-api/api/files_api.rb +17 -7
- data/lib/cloudsmith-api/api/orgs_api.rb +671 -0
- data/lib/cloudsmith-api/api/repos_api.rb +566 -0
- data/lib/cloudsmith-api/models/alpine_package_upload.rb +34 -0
- data/lib/cloudsmith-api/models/conan_package_upload.rb +34 -0
- data/lib/cloudsmith-api/models/entitlements_create.rb +46 -0
- data/lib/cloudsmith-api/models/entitlements_partial_update.rb +46 -0
- data/lib/cloudsmith-api/models/entitlements_refresh.rb +46 -0
- data/lib/cloudsmith-api/models/files_abort.rb +34 -0
- data/lib/cloudsmith-api/models/files_complete.rb +34 -0
- data/lib/cloudsmith-api/models/files_create.rb +34 -0
- data/lib/cloudsmith-api/models/files_validate.rb +34 -0
- data/lib/cloudsmith-api/models/maven_package_upload.rb +34 -0
- data/lib/cloudsmith-api/models/namespace_audit_log.rb +395 -0
- data/lib/cloudsmith-api/models/organization_group_sync.rb +240 -0
- data/lib/cloudsmith-api/models/organization_invite.rb +299 -0
- data/lib/cloudsmith-api/models/organization_membership.rb +46 -0
- data/lib/cloudsmith-api/models/organization_team.rb +264 -0
- data/lib/cloudsmith-api/models/orgs_invites_create.rb +259 -0
- data/lib/cloudsmith-api/models/orgs_invites_extend.rb +249 -0
- data/lib/cloudsmith-api/models/orgs_samlgroupsync_create.rb +245 -0
- data/lib/cloudsmith-api/models/orgs_teams_create.rb +254 -0
- data/lib/cloudsmith-api/models/orgs_teams_partial_update.rb +249 -0
- data/lib/cloudsmith-api/models/package.rb +34 -0
- data/lib/cloudsmith-api/models/package_copy.rb +34 -0
- data/lib/cloudsmith-api/models/package_move.rb +34 -0
- data/lib/cloudsmith-api/models/packages_tag.rb +34 -0
- data/lib/cloudsmith-api/models/raw_package_upload.rb +34 -0
- data/lib/cloudsmith-api/models/repos_create.rb +403 -5
- data/lib/cloudsmith-api/models/repos_gpg_create.rb +200 -0
- data/lib/cloudsmith-api/models/repos_partial_update.rb +414 -4
- data/lib/cloudsmith-api/models/repos_rsa_create.rb +200 -0
- data/lib/cloudsmith-api/models/repository.rb +414 -4
- data/lib/cloudsmith-api/models/repository_audit_log.rb +355 -0
- data/lib/cloudsmith-api/models/repository_create.rb +403 -5
- data/lib/cloudsmith-api/models/repository_gpg_key.rb +250 -0
- data/lib/cloudsmith-api/models/repository_privilege_list.rb +185 -0
- data/lib/cloudsmith-api/models/repository_rsa_key.rb +235 -0
- data/lib/cloudsmith-api/models/repository_token.rb +46 -0
- data/lib/cloudsmith-api/models/repository_token_refresh.rb +46 -0
- data/lib/cloudsmith-api/models/vagrant_package_upload.rb +34 -0
- data/lib/cloudsmith-api/models/vulnerability_scan_results.rb +34 -0
- data/lib/cloudsmith-api/models/vulnerability_scan_results_list.rb +34 -0
- data/lib/cloudsmith-api/version.rb +1 -1
- data/lib/cloudsmith-api.rb +16 -0
- data/spec/api/audit_log_api_spec.rb +66 -0
- data/spec/api/files_api_spec.rb +4 -2
- data/spec/api/orgs_api_spec.rb +161 -0
- data/spec/api/repos_api_spec.rb +132 -0
- data/spec/models/alpine_package_upload_spec.rb +4 -0
- data/spec/models/conan_package_upload_spec.rb +4 -0
- data/spec/models/entitlements_create_spec.rb +8 -0
- data/spec/models/entitlements_partial_update_spec.rb +8 -0
- data/spec/models/entitlements_refresh_spec.rb +8 -0
- data/spec/models/files_abort_spec.rb +4 -0
- data/spec/models/files_complete_spec.rb +4 -0
- data/spec/models/files_create_spec.rb +4 -0
- data/spec/models/files_validate_spec.rb +4 -0
- data/spec/models/maven_package_upload_spec.rb +4 -0
- data/spec/models/namespace_audit_log_spec.rb +131 -0
- data/spec/models/organization_group_sync_spec.rb +65 -0
- data/spec/models/organization_invite_spec.rb +93 -0
- data/spec/models/organization_membership_spec.rb +8 -0
- data/spec/models/organization_team_spec.rb +69 -0
- data/spec/models/orgs_invites_create_spec.rb +69 -0
- data/spec/models/orgs_invites_extend_spec.rb +63 -0
- data/spec/models/orgs_samlgroupsync_create_spec.rb +65 -0
- data/spec/models/orgs_teams_create_spec.rb +63 -0
- data/spec/models/orgs_teams_partial_update_spec.rb +63 -0
- data/spec/models/package_copy_spec.rb +4 -0
- data/spec/models/package_move_spec.rb +4 -0
- data/spec/models/package_spec.rb +4 -0
- data/spec/models/packages_tag_spec.rb +4 -0
- data/spec/models/raw_package_upload_spec.rb +4 -0
- data/spec/models/repos_create_spec.rb +200 -0
- data/spec/models/repos_gpg_create_spec.rb +47 -0
- data/spec/models/repos_partial_update_spec.rb +204 -0
- data/spec/models/repos_rsa_create_spec.rb +47 -0
- data/spec/models/repository_audit_log_spec.rb +113 -0
- data/spec/models/repository_create_spec.rb +200 -0
- data/spec/models/repository_gpg_key_spec.rb +77 -0
- data/spec/models/repository_privilege_list_spec.rb +41 -0
- data/spec/models/repository_rsa_key_spec.rb +71 -0
- data/spec/models/repository_spec.rb +204 -0
- data/spec/models/repository_token_refresh_spec.rb +8 -0
- data/spec/models/repository_token_spec.rb +8 -0
- data/spec/models/vagrant_package_upload_spec.rb +4 -0
- data/spec/models/vulnerability_scan_results_list_spec.rb +4 -0
- data/spec/models/vulnerability_scan_results_spec.rb +4 -0
- data/vendor/bundle/ruby/2.6.0/bin/htmldiff +3 -3
- data/vendor/bundle/ruby/2.6.0/bin/ldiff +3 -3
- data/vendor/bundle/ruby/2.6.0/bin/multigem +3 -3
- data/vendor/bundle/ruby/2.6.0/bin/multiruby +3 -3
- data/vendor/bundle/ruby/2.6.0/bin/rake +2 -0
- data/vendor/bundle/ruby/2.6.0/bin/rspec +2 -0
- data/vendor/bundle/ruby/2.6.0/bin/unit_diff +3 -3
- data/vendor/bundle/ruby/2.6.0/bin/zentest +3 -3
- data/vendor/bundle/ruby/2.6.0/extensions/x86_64-linux/2.6.0/autotest-fsevent-0.2.19/gem_make.out +4 -4
- data/vendor/bundle/ruby/2.6.0/extensions/x86_64-linux/2.6.0/ffi-1.15.5/ffi_c.so +0 -0
- data/vendor/bundle/ruby/2.6.0/extensions/x86_64-linux/2.6.0/ffi-1.15.5/gem_make.out +5 -5
- data/vendor/bundle/ruby/2.6.0/extensions/x86_64-linux/2.6.0/ffi-1.15.5/mkmf.log +9 -9
- data/vendor/bundle/ruby/2.6.0/extensions/x86_64-linux/2.6.0/json-2.6.2/gem_make.out +4 -4
- data/vendor/bundle/ruby/2.6.0/extensions/x86_64-linux/2.6.0/json-2.6.2/json/ext/generator.so +0 -0
- data/vendor/bundle/ruby/2.6.0/extensions/x86_64-linux/2.6.0/json-2.6.2/json/ext/parser.so +0 -0
- data/vendor/bundle/ruby/2.6.0/extensions/x86_64-linux/2.6.0/json-2.6.2/mkmf.log +7 -7
- data/vendor/bundle/ruby/2.6.0/gems/ffi-1.15.5/ext/ffi_c/AbstractMemory.o +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/ffi-1.15.5/ext/ffi_c/ArrayType.o +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/ffi-1.15.5/ext/ffi_c/Buffer.o +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/ffi-1.15.5/ext/ffi_c/Call.o +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/ffi-1.15.5/ext/ffi_c/ClosurePool.o +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/ffi-1.15.5/ext/ffi_c/DynamicLibrary.o +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/ffi-1.15.5/ext/ffi_c/Function.o +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/ffi-1.15.5/ext/ffi_c/FunctionInfo.o +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/ffi-1.15.5/ext/ffi_c/LastError.o +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/ffi-1.15.5/ext/ffi_c/LongDouble.o +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/ffi-1.15.5/ext/ffi_c/Makefile +3 -3
- data/vendor/bundle/ruby/2.6.0/gems/ffi-1.15.5/ext/ffi_c/MappedType.o +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/ffi-1.15.5/ext/ffi_c/MemoryPointer.o +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/ffi-1.15.5/ext/ffi_c/MethodHandle.o +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/ffi-1.15.5/ext/ffi_c/Platform.o +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/ffi-1.15.5/ext/ffi_c/Pointer.o +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/ffi-1.15.5/ext/ffi_c/Struct.o +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/ffi-1.15.5/ext/ffi_c/StructByValue.o +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/ffi-1.15.5/ext/ffi_c/StructLayout.o +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/ffi-1.15.5/ext/ffi_c/Thread.o +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/ffi-1.15.5/ext/ffi_c/Type.o +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/ffi-1.15.5/ext/ffi_c/Types.o +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/ffi-1.15.5/ext/ffi_c/Variadic.o +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/ffi-1.15.5/ext/ffi_c/ffi.o +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/ffi-1.15.5/ext/ffi_c/ffi_c.so +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/ffi-1.15.5/lib/ffi_c.so +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/json-2.6.2/ext/json/Makefile +3 -3
- data/vendor/bundle/ruby/2.6.0/gems/json-2.6.2/ext/json/ext/generator/Makefile +3 -3
- data/vendor/bundle/ruby/2.6.0/gems/json-2.6.2/ext/json/ext/generator/generator.o +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/json-2.6.2/ext/json/ext/generator/generator.so +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/json-2.6.2/ext/json/ext/parser/Makefile +3 -3
- data/vendor/bundle/ruby/2.6.0/gems/json-2.6.2/ext/json/ext/parser/parser.o +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/json-2.6.2/ext/json/ext/parser/parser.so +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/json-2.6.2/lib/json/ext/generator.so +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/json-2.6.2/lib/json/ext/parser.so +0 -0
- data/vendor/bundle/ruby/2.6.0/specifications/ZenTest-4.12.1.gemspec +6 -9
- data/vendor/bundle/ruby/2.6.0/specifications/addressable-2.8.0.gemspec +6 -9
- data/vendor/bundle/ruby/2.6.0/specifications/autotest-4.4.6.gemspec +8 -13
- data/vendor/bundle/ruby/2.6.0/specifications/autotest-fsevent-0.2.19.gemspec +8 -13
- data/vendor/bundle/ruby/2.6.0/specifications/autotest-growl-0.2.16.gemspec +7 -11
- data/vendor/bundle/ruby/2.6.0/specifications/autotest-rails-pure-4.1.2.gemspec +2 -2
- data/vendor/bundle/ruby/2.6.0/specifications/crack-0.4.5.gemspec +5 -7
- data/vendor/bundle/ruby/2.6.0/specifications/diff-lcs-1.5.0.gemspec +12 -21
- data/vendor/bundle/ruby/2.6.0/specifications/ethon-0.15.0.gemspec +5 -7
- data/vendor/bundle/ruby/2.6.0/specifications/ffi-1.15.5.gemspec +8 -13
- data/vendor/bundle/ruby/2.6.0/specifications/hashdiff-1.0.1.gemspec +9 -15
- data/vendor/bundle/ruby/2.6.0/specifications/json-2.6.2.gemspec +0 -0
- data/vendor/bundle/ruby/2.6.0/specifications/public_suffix-4.0.7.gemspec +2 -2
- data/vendor/bundle/ruby/2.6.0/specifications/rake-12.3.3.gemspec +9 -15
- data/vendor/bundle/ruby/2.6.0/specifications/rexml-3.2.5.gemspec +7 -11
- data/vendor/bundle/ruby/2.6.0/specifications/rspec-3.11.0.gemspec +7 -11
- data/vendor/bundle/ruby/2.6.0/specifications/rspec-core-3.11.0.gemspec +13 -23
- data/vendor/bundle/ruby/2.6.0/specifications/rspec-expectations-3.11.0.gemspec +10 -17
- data/vendor/bundle/ruby/2.6.0/specifications/rspec-mocks-3.11.1.gemspec +10 -17
- data/vendor/bundle/ruby/2.6.0/specifications/rspec-support-3.11.0.gemspec +6 -9
- data/vendor/bundle/ruby/2.6.0/specifications/sys-uname-1.2.2.gemspec +7 -11
- data/vendor/bundle/ruby/2.6.0/specifications/typhoeus-1.4.0.gemspec +5 -7
- data/vendor/bundle/ruby/2.6.0/specifications/vcr-3.0.3.gemspec +26 -49
- data/vendor/bundle/ruby/2.6.0/specifications/webmock-1.24.6.gemspec +19 -35
- metadata +85 -21
@@ -0,0 +1,12 @@
|
|
1
|
+
# CloudsmithApi::OrgsInvitesCreate
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
Name | Type | Description | Notes
|
5
|
+
------------ | ------------- | ------------- | -------------
|
6
|
+
**email** | **String** | None | [optional]
|
7
|
+
**inviter** | **String** | None | [optional]
|
8
|
+
**role** | **String** | None | [optional]
|
9
|
+
**slug_perm** | **String** | None | [optional]
|
10
|
+
**user** | **String** | None | [optional]
|
11
|
+
|
12
|
+
|
@@ -0,0 +1,11 @@
|
|
1
|
+
# CloudsmithApi::OrgsInvitesExtend
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
Name | Type | Description | Notes
|
5
|
+
------------ | ------------- | ------------- | -------------
|
6
|
+
**email** | **String** | None | [optional]
|
7
|
+
**inviter** | **String** | None | [optional]
|
8
|
+
**role** | **String** | None | [optional]
|
9
|
+
**user** | **String** | None | [optional]
|
10
|
+
|
11
|
+
|
@@ -0,0 +1,12 @@
|
|
1
|
+
# CloudsmithApi::OrgsSamlgroupsyncCreate
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
Name | Type | Description | Notes
|
5
|
+
------------ | ------------- | ------------- | -------------
|
6
|
+
**idp_key** | **String** | None |
|
7
|
+
**idp_value** | **String** | None |
|
8
|
+
**organization** | **String** | None |
|
9
|
+
**role** | **String** | User role within the team. A `manager` is capable of adding/removing others to/from the team, and can set the role of other users and other settings pertaining to the team. A 'member' is a normal user that inherits the settings and privileges assigned to the team. | [optional]
|
10
|
+
**team** | **String** | None |
|
11
|
+
|
12
|
+
|
@@ -0,0 +1,11 @@
|
|
1
|
+
# CloudsmithApi::OrgsTeamsCreate
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
Name | Type | Description | Notes
|
5
|
+
------------ | ------------- | ------------- | -------------
|
6
|
+
**description** | **String** | None | [optional]
|
7
|
+
**name** | **String** | None |
|
8
|
+
**slug** | **String** | None | [optional]
|
9
|
+
**visibility** | **String** | None | [optional]
|
10
|
+
|
11
|
+
|
@@ -0,0 +1,11 @@
|
|
1
|
+
# CloudsmithApi::OrgsTeamsPartialUpdate
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
Name | Type | Description | Notes
|
5
|
+
------------ | ------------- | ------------- | -------------
|
6
|
+
**description** | **String** | None | [optional]
|
7
|
+
**name** | **String** | None | [optional]
|
8
|
+
**slug** | **String** | None | [optional]
|
9
|
+
**visibility** | **String** | None | [optional]
|
10
|
+
|
11
|
+
|
data/docs/ReposApi.md
CHANGED
@@ -7,9 +7,19 @@ Method | HTTP request | Description
|
|
7
7
|
[**repos_all_list**](ReposApi.md#repos_all_list) | **GET** /repos/ | Get a list of all repositories associated with current user.
|
8
8
|
[**repos_create**](ReposApi.md#repos_create) | **POST** /repos/{owner}/ | Create a new repository in a given namespace.
|
9
9
|
[**repos_delete**](ReposApi.md#repos_delete) | **DELETE** /repos/{owner}/{identifier}/ | Delete a repository in a given namespace.
|
10
|
+
[**repos_gpg_create**](ReposApi.md#repos_gpg_create) | **POST** /repos/{owner}/{identifier}/gpg/ | Set the active GPG key for the Repository.
|
11
|
+
[**repos_gpg_list**](ReposApi.md#repos_gpg_list) | **GET** /repos/{owner}/{identifier}/gpg/ | Retrieve the active GPG key for the Repository.
|
12
|
+
[**repos_gpg_regenerate**](ReposApi.md#repos_gpg_regenerate) | **POST** /repos/{owner}/{identifier}/gpg/regenerate/ | Regenerate GPG Key for the Repository.
|
10
13
|
[**repos_list**](ReposApi.md#repos_list) | **GET** /repos/{owner}/ | Get a list of all repositories within a namespace.
|
11
14
|
[**repos_partial_update**](ReposApi.md#repos_partial_update) | **PATCH** /repos/{owner}/{identifier}/ | Update details about a repository in a given namespace.
|
15
|
+
[**repos_privileges_delete**](ReposApi.md#repos_privileges_delete) | **DELETE** /repos/{owner}/{identifier}/privileges | Remove the specified repository privileges.
|
16
|
+
[**repos_privileges_list**](ReposApi.md#repos_privileges_list) | **GET** /repos/{owner}/{identifier}/privileges | List all explicity created privileges for the repository.
|
17
|
+
[**repos_privileges_partial_update**](ReposApi.md#repos_privileges_partial_update) | **PATCH** /repos/{owner}/{identifier}/privileges | Update the specified repository privileges.
|
18
|
+
[**repos_privileges_update**](ReposApi.md#repos_privileges_update) | **PUT** /repos/{owner}/{identifier}/privileges | Replace all existing repository privileges with those specified.
|
12
19
|
[**repos_read**](ReposApi.md#repos_read) | **GET** /repos/{owner}/{identifier}/ | Get a specific repository.
|
20
|
+
[**repos_rsa_create**](ReposApi.md#repos_rsa_create) | **POST** /repos/{owner}/{identifier}/rsa/ | Set the active RSA key for the Repository.
|
21
|
+
[**repos_rsa_list**](ReposApi.md#repos_rsa_list) | **GET** /repos/{owner}/{identifier}/rsa/ | Retrieve the active RSA key for the Repository.
|
22
|
+
[**repos_rsa_regenerate**](ReposApi.md#repos_rsa_regenerate) | **POST** /repos/{owner}/{identifier}/rsa/regenerate/ | Regenerate RSA Key for the Repository.
|
13
23
|
|
14
24
|
|
15
25
|
# **repos_all_list**
|
@@ -183,6 +193,181 @@ nil (empty response body)
|
|
183
193
|
|
184
194
|
|
185
195
|
|
196
|
+
# **repos_gpg_create**
|
197
|
+
> RepositoryGpgKey repos_gpg_create(owner, identifier, opts)
|
198
|
+
|
199
|
+
Set the active GPG key for the Repository.
|
200
|
+
|
201
|
+
Set the active GPG key for the Repository.
|
202
|
+
|
203
|
+
### Example
|
204
|
+
```ruby
|
205
|
+
# load the gem
|
206
|
+
require 'cloudsmith-api'
|
207
|
+
# setup authorization
|
208
|
+
CloudsmithApi.configure do |config|
|
209
|
+
# Configure API key authorization: apikey
|
210
|
+
config.api_key['X-Api-Key'] = 'YOUR API KEY'
|
211
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
212
|
+
#config.api_key_prefix['X-Api-Key'] = 'Bearer'
|
213
|
+
end
|
214
|
+
|
215
|
+
api_instance = CloudsmithApi::ReposApi.new
|
216
|
+
|
217
|
+
owner = 'owner_example' # String |
|
218
|
+
|
219
|
+
identifier = 'identifier_example' # String |
|
220
|
+
|
221
|
+
opts = {
|
222
|
+
data: CloudsmithApi::ReposGpgCreate.new # ReposGpgCreate |
|
223
|
+
}
|
224
|
+
|
225
|
+
begin
|
226
|
+
#Set the active GPG key for the Repository.
|
227
|
+
result = api_instance.repos_gpg_create(owner, identifier, opts)
|
228
|
+
p result
|
229
|
+
rescue CloudsmithApi::ApiError => e
|
230
|
+
puts "Exception when calling ReposApi->repos_gpg_create: #{e}"
|
231
|
+
end
|
232
|
+
```
|
233
|
+
|
234
|
+
### Parameters
|
235
|
+
|
236
|
+
Name | Type | Description | Notes
|
237
|
+
------------- | ------------- | ------------- | -------------
|
238
|
+
**owner** | **String**| |
|
239
|
+
**identifier** | **String**| |
|
240
|
+
**data** | [**ReposGpgCreate**](ReposGpgCreate.md)| | [optional]
|
241
|
+
|
242
|
+
### Return type
|
243
|
+
|
244
|
+
[**RepositoryGpgKey**](RepositoryGpgKey.md)
|
245
|
+
|
246
|
+
### Authorization
|
247
|
+
|
248
|
+
[apikey](../README.md#apikey)
|
249
|
+
|
250
|
+
### HTTP request headers
|
251
|
+
|
252
|
+
- **Content-Type**: application/json
|
253
|
+
- **Accept**: Not defined
|
254
|
+
|
255
|
+
|
256
|
+
|
257
|
+
# **repos_gpg_list**
|
258
|
+
> RepositoryGpgKey repos_gpg_list(owner, identifier)
|
259
|
+
|
260
|
+
Retrieve the active GPG key for the Repository.
|
261
|
+
|
262
|
+
Retrieve the active GPG key for the Repository.
|
263
|
+
|
264
|
+
### Example
|
265
|
+
```ruby
|
266
|
+
# load the gem
|
267
|
+
require 'cloudsmith-api'
|
268
|
+
# setup authorization
|
269
|
+
CloudsmithApi.configure do |config|
|
270
|
+
# Configure API key authorization: apikey
|
271
|
+
config.api_key['X-Api-Key'] = 'YOUR API KEY'
|
272
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
273
|
+
#config.api_key_prefix['X-Api-Key'] = 'Bearer'
|
274
|
+
end
|
275
|
+
|
276
|
+
api_instance = CloudsmithApi::ReposApi.new
|
277
|
+
|
278
|
+
owner = 'owner_example' # String |
|
279
|
+
|
280
|
+
identifier = 'identifier_example' # String |
|
281
|
+
|
282
|
+
|
283
|
+
begin
|
284
|
+
#Retrieve the active GPG key for the Repository.
|
285
|
+
result = api_instance.repos_gpg_list(owner, identifier)
|
286
|
+
p result
|
287
|
+
rescue CloudsmithApi::ApiError => e
|
288
|
+
puts "Exception when calling ReposApi->repos_gpg_list: #{e}"
|
289
|
+
end
|
290
|
+
```
|
291
|
+
|
292
|
+
### Parameters
|
293
|
+
|
294
|
+
Name | Type | Description | Notes
|
295
|
+
------------- | ------------- | ------------- | -------------
|
296
|
+
**owner** | **String**| |
|
297
|
+
**identifier** | **String**| |
|
298
|
+
|
299
|
+
### Return type
|
300
|
+
|
301
|
+
[**RepositoryGpgKey**](RepositoryGpgKey.md)
|
302
|
+
|
303
|
+
### Authorization
|
304
|
+
|
305
|
+
[apikey](../README.md#apikey)
|
306
|
+
|
307
|
+
### HTTP request headers
|
308
|
+
|
309
|
+
- **Content-Type**: Not defined
|
310
|
+
- **Accept**: Not defined
|
311
|
+
|
312
|
+
|
313
|
+
|
314
|
+
# **repos_gpg_regenerate**
|
315
|
+
> RepositoryGpgKey repos_gpg_regenerate(owner, identifier)
|
316
|
+
|
317
|
+
Regenerate GPG Key for the Repository.
|
318
|
+
|
319
|
+
Regenerate GPG Key for the Repository.
|
320
|
+
|
321
|
+
### Example
|
322
|
+
```ruby
|
323
|
+
# load the gem
|
324
|
+
require 'cloudsmith-api'
|
325
|
+
# setup authorization
|
326
|
+
CloudsmithApi.configure do |config|
|
327
|
+
# Configure API key authorization: apikey
|
328
|
+
config.api_key['X-Api-Key'] = 'YOUR API KEY'
|
329
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
330
|
+
#config.api_key_prefix['X-Api-Key'] = 'Bearer'
|
331
|
+
end
|
332
|
+
|
333
|
+
api_instance = CloudsmithApi::ReposApi.new
|
334
|
+
|
335
|
+
owner = 'owner_example' # String |
|
336
|
+
|
337
|
+
identifier = 'identifier_example' # String |
|
338
|
+
|
339
|
+
|
340
|
+
begin
|
341
|
+
#Regenerate GPG Key for the Repository.
|
342
|
+
result = api_instance.repos_gpg_regenerate(owner, identifier)
|
343
|
+
p result
|
344
|
+
rescue CloudsmithApi::ApiError => e
|
345
|
+
puts "Exception when calling ReposApi->repos_gpg_regenerate: #{e}"
|
346
|
+
end
|
347
|
+
```
|
348
|
+
|
349
|
+
### Parameters
|
350
|
+
|
351
|
+
Name | Type | Description | Notes
|
352
|
+
------------- | ------------- | ------------- | -------------
|
353
|
+
**owner** | **String**| |
|
354
|
+
**identifier** | **String**| |
|
355
|
+
|
356
|
+
### Return type
|
357
|
+
|
358
|
+
[**RepositoryGpgKey**](RepositoryGpgKey.md)
|
359
|
+
|
360
|
+
### Authorization
|
361
|
+
|
362
|
+
[apikey](../README.md#apikey)
|
363
|
+
|
364
|
+
### HTTP request headers
|
365
|
+
|
366
|
+
- **Content-Type**: Not defined
|
367
|
+
- **Accept**: Not defined
|
368
|
+
|
369
|
+
|
370
|
+
|
186
371
|
# **repos_list**
|
187
372
|
> Array<Repository> repos_list(owner, opts)
|
188
373
|
|
@@ -304,6 +489,232 @@ Name | Type | Description | Notes
|
|
304
489
|
|
305
490
|
|
306
491
|
|
492
|
+
# **repos_privileges_delete**
|
493
|
+
> repos_privileges_delete(owner, identifier)
|
494
|
+
|
495
|
+
Remove the specified repository privileges.
|
496
|
+
|
497
|
+
Remove the specified repository privileges.
|
498
|
+
|
499
|
+
### Example
|
500
|
+
```ruby
|
501
|
+
# load the gem
|
502
|
+
require 'cloudsmith-api'
|
503
|
+
# setup authorization
|
504
|
+
CloudsmithApi.configure do |config|
|
505
|
+
# Configure API key authorization: apikey
|
506
|
+
config.api_key['X-Api-Key'] = 'YOUR API KEY'
|
507
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
508
|
+
#config.api_key_prefix['X-Api-Key'] = 'Bearer'
|
509
|
+
end
|
510
|
+
|
511
|
+
api_instance = CloudsmithApi::ReposApi.new
|
512
|
+
|
513
|
+
owner = 'owner_example' # String |
|
514
|
+
|
515
|
+
identifier = 'identifier_example' # String |
|
516
|
+
|
517
|
+
|
518
|
+
begin
|
519
|
+
#Remove the specified repository privileges.
|
520
|
+
api_instance.repos_privileges_delete(owner, identifier)
|
521
|
+
rescue CloudsmithApi::ApiError => e
|
522
|
+
puts "Exception when calling ReposApi->repos_privileges_delete: #{e}"
|
523
|
+
end
|
524
|
+
```
|
525
|
+
|
526
|
+
### Parameters
|
527
|
+
|
528
|
+
Name | Type | Description | Notes
|
529
|
+
------------- | ------------- | ------------- | -------------
|
530
|
+
**owner** | **String**| |
|
531
|
+
**identifier** | **String**| |
|
532
|
+
|
533
|
+
### Return type
|
534
|
+
|
535
|
+
nil (empty response body)
|
536
|
+
|
537
|
+
### Authorization
|
538
|
+
|
539
|
+
[apikey](../README.md#apikey)
|
540
|
+
|
541
|
+
### HTTP request headers
|
542
|
+
|
543
|
+
- **Content-Type**: Not defined
|
544
|
+
- **Accept**: Not defined
|
545
|
+
|
546
|
+
|
547
|
+
|
548
|
+
# **repos_privileges_list**
|
549
|
+
> Array<RepositoryPrivilegeList> repos_privileges_list(owner, identifier)
|
550
|
+
|
551
|
+
List all explicity created privileges for the repository.
|
552
|
+
|
553
|
+
List all explicity created privileges for the repository.
|
554
|
+
|
555
|
+
### Example
|
556
|
+
```ruby
|
557
|
+
# load the gem
|
558
|
+
require 'cloudsmith-api'
|
559
|
+
# setup authorization
|
560
|
+
CloudsmithApi.configure do |config|
|
561
|
+
# Configure API key authorization: apikey
|
562
|
+
config.api_key['X-Api-Key'] = 'YOUR API KEY'
|
563
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
564
|
+
#config.api_key_prefix['X-Api-Key'] = 'Bearer'
|
565
|
+
end
|
566
|
+
|
567
|
+
api_instance = CloudsmithApi::ReposApi.new
|
568
|
+
|
569
|
+
owner = 'owner_example' # String |
|
570
|
+
|
571
|
+
identifier = 'identifier_example' # String |
|
572
|
+
|
573
|
+
|
574
|
+
begin
|
575
|
+
#List all explicity created privileges for the repository.
|
576
|
+
result = api_instance.repos_privileges_list(owner, identifier)
|
577
|
+
p result
|
578
|
+
rescue CloudsmithApi::ApiError => e
|
579
|
+
puts "Exception when calling ReposApi->repos_privileges_list: #{e}"
|
580
|
+
end
|
581
|
+
```
|
582
|
+
|
583
|
+
### Parameters
|
584
|
+
|
585
|
+
Name | Type | Description | Notes
|
586
|
+
------------- | ------------- | ------------- | -------------
|
587
|
+
**owner** | **String**| |
|
588
|
+
**identifier** | **String**| |
|
589
|
+
|
590
|
+
### Return type
|
591
|
+
|
592
|
+
[**Array<RepositoryPrivilegeList>**](RepositoryPrivilegeList.md)
|
593
|
+
|
594
|
+
### Authorization
|
595
|
+
|
596
|
+
[apikey](../README.md#apikey)
|
597
|
+
|
598
|
+
### HTTP request headers
|
599
|
+
|
600
|
+
- **Content-Type**: Not defined
|
601
|
+
- **Accept**: Not defined
|
602
|
+
|
603
|
+
|
604
|
+
|
605
|
+
# **repos_privileges_partial_update**
|
606
|
+
> repos_privileges_partial_update(owner, identifier)
|
607
|
+
|
608
|
+
Update the specified repository privileges.
|
609
|
+
|
610
|
+
Update the specified repository privileges.
|
611
|
+
|
612
|
+
### Example
|
613
|
+
```ruby
|
614
|
+
# load the gem
|
615
|
+
require 'cloudsmith-api'
|
616
|
+
# setup authorization
|
617
|
+
CloudsmithApi.configure do |config|
|
618
|
+
# Configure API key authorization: apikey
|
619
|
+
config.api_key['X-Api-Key'] = 'YOUR API KEY'
|
620
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
621
|
+
#config.api_key_prefix['X-Api-Key'] = 'Bearer'
|
622
|
+
end
|
623
|
+
|
624
|
+
api_instance = CloudsmithApi::ReposApi.new
|
625
|
+
|
626
|
+
owner = 'owner_example' # String |
|
627
|
+
|
628
|
+
identifier = 'identifier_example' # String |
|
629
|
+
|
630
|
+
|
631
|
+
begin
|
632
|
+
#Update the specified repository privileges.
|
633
|
+
api_instance.repos_privileges_partial_update(owner, identifier)
|
634
|
+
rescue CloudsmithApi::ApiError => e
|
635
|
+
puts "Exception when calling ReposApi->repos_privileges_partial_update: #{e}"
|
636
|
+
end
|
637
|
+
```
|
638
|
+
|
639
|
+
### Parameters
|
640
|
+
|
641
|
+
Name | Type | Description | Notes
|
642
|
+
------------- | ------------- | ------------- | -------------
|
643
|
+
**owner** | **String**| |
|
644
|
+
**identifier** | **String**| |
|
645
|
+
|
646
|
+
### Return type
|
647
|
+
|
648
|
+
nil (empty response body)
|
649
|
+
|
650
|
+
### Authorization
|
651
|
+
|
652
|
+
[apikey](../README.md#apikey)
|
653
|
+
|
654
|
+
### HTTP request headers
|
655
|
+
|
656
|
+
- **Content-Type**: Not defined
|
657
|
+
- **Accept**: Not defined
|
658
|
+
|
659
|
+
|
660
|
+
|
661
|
+
# **repos_privileges_update**
|
662
|
+
> RepositoryPrivilegeList repos_privileges_update(owner, identifier)
|
663
|
+
|
664
|
+
Replace all existing repository privileges with those specified.
|
665
|
+
|
666
|
+
Replace all existing repository privileges with those specified.
|
667
|
+
|
668
|
+
### Example
|
669
|
+
```ruby
|
670
|
+
# load the gem
|
671
|
+
require 'cloudsmith-api'
|
672
|
+
# setup authorization
|
673
|
+
CloudsmithApi.configure do |config|
|
674
|
+
# Configure API key authorization: apikey
|
675
|
+
config.api_key['X-Api-Key'] = 'YOUR API KEY'
|
676
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
677
|
+
#config.api_key_prefix['X-Api-Key'] = 'Bearer'
|
678
|
+
end
|
679
|
+
|
680
|
+
api_instance = CloudsmithApi::ReposApi.new
|
681
|
+
|
682
|
+
owner = 'owner_example' # String |
|
683
|
+
|
684
|
+
identifier = 'identifier_example' # String |
|
685
|
+
|
686
|
+
|
687
|
+
begin
|
688
|
+
#Replace all existing repository privileges with those specified.
|
689
|
+
result = api_instance.repos_privileges_update(owner, identifier)
|
690
|
+
p result
|
691
|
+
rescue CloudsmithApi::ApiError => e
|
692
|
+
puts "Exception when calling ReposApi->repos_privileges_update: #{e}"
|
693
|
+
end
|
694
|
+
```
|
695
|
+
|
696
|
+
### Parameters
|
697
|
+
|
698
|
+
Name | Type | Description | Notes
|
699
|
+
------------- | ------------- | ------------- | -------------
|
700
|
+
**owner** | **String**| |
|
701
|
+
**identifier** | **String**| |
|
702
|
+
|
703
|
+
### Return type
|
704
|
+
|
705
|
+
[**RepositoryPrivilegeList**](RepositoryPrivilegeList.md)
|
706
|
+
|
707
|
+
### Authorization
|
708
|
+
|
709
|
+
[apikey](../README.md#apikey)
|
710
|
+
|
711
|
+
### HTTP request headers
|
712
|
+
|
713
|
+
- **Content-Type**: Not defined
|
714
|
+
- **Accept**: Not defined
|
715
|
+
|
716
|
+
|
717
|
+
|
307
718
|
# **repos_read**
|
308
719
|
> Repository repos_read(owner, identifier)
|
309
720
|
|
@@ -361,3 +772,178 @@ Name | Type | Description | Notes
|
|
361
772
|
|
362
773
|
|
363
774
|
|
775
|
+
# **repos_rsa_create**
|
776
|
+
> RepositoryRsaKey repos_rsa_create(owner, identifier, opts)
|
777
|
+
|
778
|
+
Set the active RSA key for the Repository.
|
779
|
+
|
780
|
+
Set the active RSA key for the Repository.
|
781
|
+
|
782
|
+
### Example
|
783
|
+
```ruby
|
784
|
+
# load the gem
|
785
|
+
require 'cloudsmith-api'
|
786
|
+
# setup authorization
|
787
|
+
CloudsmithApi.configure do |config|
|
788
|
+
# Configure API key authorization: apikey
|
789
|
+
config.api_key['X-Api-Key'] = 'YOUR API KEY'
|
790
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
791
|
+
#config.api_key_prefix['X-Api-Key'] = 'Bearer'
|
792
|
+
end
|
793
|
+
|
794
|
+
api_instance = CloudsmithApi::ReposApi.new
|
795
|
+
|
796
|
+
owner = 'owner_example' # String |
|
797
|
+
|
798
|
+
identifier = 'identifier_example' # String |
|
799
|
+
|
800
|
+
opts = {
|
801
|
+
data: CloudsmithApi::ReposRsaCreate.new # ReposRsaCreate |
|
802
|
+
}
|
803
|
+
|
804
|
+
begin
|
805
|
+
#Set the active RSA key for the Repository.
|
806
|
+
result = api_instance.repos_rsa_create(owner, identifier, opts)
|
807
|
+
p result
|
808
|
+
rescue CloudsmithApi::ApiError => e
|
809
|
+
puts "Exception when calling ReposApi->repos_rsa_create: #{e}"
|
810
|
+
end
|
811
|
+
```
|
812
|
+
|
813
|
+
### Parameters
|
814
|
+
|
815
|
+
Name | Type | Description | Notes
|
816
|
+
------------- | ------------- | ------------- | -------------
|
817
|
+
**owner** | **String**| |
|
818
|
+
**identifier** | **String**| |
|
819
|
+
**data** | [**ReposRsaCreate**](ReposRsaCreate.md)| | [optional]
|
820
|
+
|
821
|
+
### Return type
|
822
|
+
|
823
|
+
[**RepositoryRsaKey**](RepositoryRsaKey.md)
|
824
|
+
|
825
|
+
### Authorization
|
826
|
+
|
827
|
+
[apikey](../README.md#apikey)
|
828
|
+
|
829
|
+
### HTTP request headers
|
830
|
+
|
831
|
+
- **Content-Type**: application/json
|
832
|
+
- **Accept**: Not defined
|
833
|
+
|
834
|
+
|
835
|
+
|
836
|
+
# **repos_rsa_list**
|
837
|
+
> RepositoryRsaKey repos_rsa_list(owner, identifier)
|
838
|
+
|
839
|
+
Retrieve the active RSA key for the Repository.
|
840
|
+
|
841
|
+
Retrieve the active RSA key for the Repository.
|
842
|
+
|
843
|
+
### Example
|
844
|
+
```ruby
|
845
|
+
# load the gem
|
846
|
+
require 'cloudsmith-api'
|
847
|
+
# setup authorization
|
848
|
+
CloudsmithApi.configure do |config|
|
849
|
+
# Configure API key authorization: apikey
|
850
|
+
config.api_key['X-Api-Key'] = 'YOUR API KEY'
|
851
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
852
|
+
#config.api_key_prefix['X-Api-Key'] = 'Bearer'
|
853
|
+
end
|
854
|
+
|
855
|
+
api_instance = CloudsmithApi::ReposApi.new
|
856
|
+
|
857
|
+
owner = 'owner_example' # String |
|
858
|
+
|
859
|
+
identifier = 'identifier_example' # String |
|
860
|
+
|
861
|
+
|
862
|
+
begin
|
863
|
+
#Retrieve the active RSA key for the Repository.
|
864
|
+
result = api_instance.repos_rsa_list(owner, identifier)
|
865
|
+
p result
|
866
|
+
rescue CloudsmithApi::ApiError => e
|
867
|
+
puts "Exception when calling ReposApi->repos_rsa_list: #{e}"
|
868
|
+
end
|
869
|
+
```
|
870
|
+
|
871
|
+
### Parameters
|
872
|
+
|
873
|
+
Name | Type | Description | Notes
|
874
|
+
------------- | ------------- | ------------- | -------------
|
875
|
+
**owner** | **String**| |
|
876
|
+
**identifier** | **String**| |
|
877
|
+
|
878
|
+
### Return type
|
879
|
+
|
880
|
+
[**RepositoryRsaKey**](RepositoryRsaKey.md)
|
881
|
+
|
882
|
+
### Authorization
|
883
|
+
|
884
|
+
[apikey](../README.md#apikey)
|
885
|
+
|
886
|
+
### HTTP request headers
|
887
|
+
|
888
|
+
- **Content-Type**: Not defined
|
889
|
+
- **Accept**: Not defined
|
890
|
+
|
891
|
+
|
892
|
+
|
893
|
+
# **repos_rsa_regenerate**
|
894
|
+
> RepositoryRsaKey repos_rsa_regenerate(owner, identifier)
|
895
|
+
|
896
|
+
Regenerate RSA Key for the Repository.
|
897
|
+
|
898
|
+
Regenerate RSA Key for the Repository.
|
899
|
+
|
900
|
+
### Example
|
901
|
+
```ruby
|
902
|
+
# load the gem
|
903
|
+
require 'cloudsmith-api'
|
904
|
+
# setup authorization
|
905
|
+
CloudsmithApi.configure do |config|
|
906
|
+
# Configure API key authorization: apikey
|
907
|
+
config.api_key['X-Api-Key'] = 'YOUR API KEY'
|
908
|
+
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
|
909
|
+
#config.api_key_prefix['X-Api-Key'] = 'Bearer'
|
910
|
+
end
|
911
|
+
|
912
|
+
api_instance = CloudsmithApi::ReposApi.new
|
913
|
+
|
914
|
+
owner = 'owner_example' # String |
|
915
|
+
|
916
|
+
identifier = 'identifier_example' # String |
|
917
|
+
|
918
|
+
|
919
|
+
begin
|
920
|
+
#Regenerate RSA Key for the Repository.
|
921
|
+
result = api_instance.repos_rsa_regenerate(owner, identifier)
|
922
|
+
p result
|
923
|
+
rescue CloudsmithApi::ApiError => e
|
924
|
+
puts "Exception when calling ReposApi->repos_rsa_regenerate: #{e}"
|
925
|
+
end
|
926
|
+
```
|
927
|
+
|
928
|
+
### Parameters
|
929
|
+
|
930
|
+
Name | Type | Description | Notes
|
931
|
+
------------- | ------------- | ------------- | -------------
|
932
|
+
**owner** | **String**| |
|
933
|
+
**identifier** | **String**| |
|
934
|
+
|
935
|
+
### Return type
|
936
|
+
|
937
|
+
[**RepositoryRsaKey**](RepositoryRsaKey.md)
|
938
|
+
|
939
|
+
### Authorization
|
940
|
+
|
941
|
+
[apikey](../README.md#apikey)
|
942
|
+
|
943
|
+
### HTTP request headers
|
944
|
+
|
945
|
+
- **Content-Type**: Not defined
|
946
|
+
- **Accept**: Not defined
|
947
|
+
|
948
|
+
|
949
|
+
|