cloudsmith-api 2.0.1 → 2.0.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (415) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile.lock +7 -7
  3. data/README.md +59 -12
  4. data/build.json +1 -1
  5. data/docs/AllocatedLimitRaw.md +11 -0
  6. data/docs/Eula.md +1 -1
  7. data/docs/HexPackageUpload.md +75 -0
  8. data/docs/HexPackageUploadRequest.md +10 -0
  9. data/docs/History.md +1 -1
  10. data/docs/HistoryFieldset.md +1 -1
  11. data/docs/HistoryFieldsetRaw.md +10 -0
  12. data/docs/NestedLicensePolicy.md +17 -0
  13. data/docs/NestedVulnerabilityPolicy.md +17 -0
  14. data/docs/NestedVulnerabilityScanResults.md +14 -0
  15. data/docs/OrganizationGroupSync.md +1 -1
  16. data/docs/OrganizationGroupSyncRequest.md +1 -1
  17. data/docs/OrganizationPackageLicensePolicy.md +16 -0
  18. data/docs/OrganizationPackageLicensePolicyRequest.md +13 -0
  19. data/docs/OrganizationPackageLicensePolicyRequestPatch.md +13 -0
  20. data/docs/OrganizationPackageVulnerabilityPolicy.md +16 -0
  21. data/docs/OrganizationPackageVulnerabilityPolicyRequest.md +13 -0
  22. data/docs/OrganizationPackageVulnerabilityPolicyRequestPatch.md +13 -0
  23. data/docs/OrgsApi.md +1087 -247
  24. data/docs/PackageDependencies.md +1 -1
  25. data/docs/PackageLicensePolicyViolationLog.md +11 -0
  26. data/docs/PackageLicensePolicyViolationLogCursorPage.md +10 -0
  27. data/docs/PackageTagRequest.md +1 -1
  28. data/docs/PackageVulnerabilityPolicyViolationLog.md +12 -0
  29. data/docs/PackageVulnerabilityPolicyViolationLogCursorPage.md +10 -0
  30. data/docs/PackagesApi.md +127 -4
  31. data/docs/ReposApi.md +196 -10
  32. data/docs/RepositoryGeoIpCidr.md +9 -0
  33. data/docs/RepositoryGeoIpCountryCode.md +9 -0
  34. data/docs/RepositoryGeoIpRules.md +9 -0
  35. data/docs/RepositoryGeoIpRulesRequest.md +9 -0
  36. data/docs/RepositoryGeoIpRulesRequestPatch.md +9 -0
  37. data/docs/RepositoryGeoIpTestAddress.md +8 -0
  38. data/docs/RepositoryGeoIpTestAddressResponse.md +8 -0
  39. data/docs/RepositoryGeoIpTestAddressResponseDict.md +11 -0
  40. data/docs/RepositoryToken.md +2 -2
  41. data/docs/RepositoryTokenRefresh.md +2 -2
  42. data/docs/RepositoryTokenRefreshRequest.md +1 -1
  43. data/docs/RepositoryTokenRequest.md +1 -1
  44. data/docs/RepositoryTokenRequestPatch.md +1 -1
  45. data/docs/RepositoryWebhook.md +1 -1
  46. data/docs/{RespositoryGeoIPEnableDisable.md → RespositoryGeoIpEnableDisable.md} +1 -1
  47. data/docs/{RespositoryGeoIPEnableDisableRequest.md → RespositoryGeoIpEnableDisableRequest.md} +1 -1
  48. data/docs/ServiceTeams.md +1 -1
  49. data/docs/StatusBasic.md +1 -1
  50. data/docs/StorageAllocatedLimit.md +12 -0
  51. data/docs/StorageAllocatedLimitRaw.md +12 -0
  52. data/docs/StorageUsage.md +11 -0
  53. data/docs/StorageUsageRaw.md +11 -0
  54. data/docs/UsageFieldset.md +1 -1
  55. data/docs/UsageLimits.md +1 -1
  56. data/docs/UsageLimitsRaw.md +9 -0
  57. data/docs/UsageRaw.md +10 -0
  58. data/docs/VulnerabilitiesApi.md +8 -8
  59. data/docs/VulnerabilityScanResults.md +1 -1
  60. data/docs/VulnerabilityScanResultsList.md +1 -1
  61. data/lib/cloudsmith-api/api/orgs_api.rb +1289 -451
  62. data/lib/cloudsmith-api/api/packages_api.rb +127 -4
  63. data/lib/cloudsmith-api/api/repos_api.rb +197 -11
  64. data/lib/cloudsmith-api/api/vulnerabilities_api.rb +13 -13
  65. data/lib/cloudsmith-api/models/allocated_limit_raw.rb +211 -0
  66. data/lib/cloudsmith-api/models/eula.rb +0 -5
  67. data/lib/cloudsmith-api/models/hex_package_upload.rb +850 -0
  68. data/lib/cloudsmith-api/models/hex_package_upload_request.rb +210 -0
  69. data/lib/cloudsmith-api/models/history.rb +1 -1
  70. data/lib/cloudsmith-api/models/history_fieldset.rb +1 -1
  71. data/lib/cloudsmith-api/models/history_fieldset_raw.rb +217 -0
  72. data/lib/cloudsmith-api/models/nested_license_policy.rb +272 -0
  73. data/lib/cloudsmith-api/models/nested_vulnerability_policy.rb +302 -0
  74. data/lib/cloudsmith-api/models/nested_vulnerability_scan_results.rb +287 -0
  75. data/lib/cloudsmith-api/models/organization_group_sync.rb +34 -1
  76. data/lib/cloudsmith-api/models/organization_group_sync_request.rb +34 -1
  77. data/lib/cloudsmith-api/models/organization_package_license_policy.rb +268 -0
  78. data/lib/cloudsmith-api/models/organization_package_license_policy_request.rb +241 -0
  79. data/lib/cloudsmith-api/models/organization_package_license_policy_request_patch.rb +231 -0
  80. data/lib/cloudsmith-api/models/organization_package_vulnerability_policy.rb +298 -0
  81. data/lib/cloudsmith-api/models/organization_package_vulnerability_policy_request.rb +271 -0
  82. data/lib/cloudsmith-api/models/organization_package_vulnerability_policy_request_patch.rb +266 -0
  83. data/lib/cloudsmith-api/models/package_dependencies.rb +0 -5
  84. data/lib/cloudsmith-api/models/package_license_policy_violation_log.rb +228 -0
  85. data/lib/cloudsmith-api/models/package_license_policy_violation_log_cursor_page.rb +209 -0
  86. data/lib/cloudsmith-api/models/package_tag_request.rb +37 -1
  87. data/lib/cloudsmith-api/models/package_vulnerability_policy_violation_log.rb +242 -0
  88. data/lib/cloudsmith-api/models/package_vulnerability_policy_violation_log_cursor_page.rb +209 -0
  89. data/lib/cloudsmith-api/models/{inline_response_200_country_code.rb → repository_geo_ip_cidr.rb} +13 -1
  90. data/lib/cloudsmith-api/models/repository_geo_ip_country_code.rb +209 -0
  91. data/lib/cloudsmith-api/models/repository_geo_ip_rules.rb +203 -0
  92. data/lib/cloudsmith-api/models/repository_geo_ip_rules_request.rb +203 -0
  93. data/lib/cloudsmith-api/models/{repository_geo_ip_list.rb → repository_geo_ip_rules_request_patch.rb} +3 -5
  94. data/lib/cloudsmith-api/models/{inline_response_200.rb → repository_geo_ip_test_address.rb} +16 -17
  95. data/lib/cloudsmith-api/models/repository_geo_ip_test_address_response.rb +192 -0
  96. data/lib/cloudsmith-api/models/repository_geo_ip_test_address_response_dict.rb +235 -0
  97. data/lib/cloudsmith-api/models/repository_token.rb +2 -1
  98. data/lib/cloudsmith-api/models/repository_token_refresh.rb +2 -1
  99. data/lib/cloudsmith-api/models/repository_token_refresh_request.rb +1 -1
  100. data/lib/cloudsmith-api/models/repository_token_request.rb +1 -1
  101. data/lib/cloudsmith-api/models/repository_token_request_patch.rb +1 -1
  102. data/lib/cloudsmith-api/models/repository_webhook.rb +1 -0
  103. data/lib/cloudsmith-api/models/respository_geo_ip_enable_disable.rb +1 -1
  104. data/lib/cloudsmith-api/models/respository_geo_ip_enable_disable_request.rb +1 -1
  105. data/lib/cloudsmith-api/models/service_teams.rb +5 -0
  106. data/lib/cloudsmith-api/models/status_basic.rb +1 -1
  107. data/lib/cloudsmith-api/models/storage_allocated_limit.rb +220 -0
  108. data/lib/cloudsmith-api/models/storage_allocated_limit_raw.rb +220 -0
  109. data/lib/cloudsmith-api/models/storage_usage.rb +211 -0
  110. data/lib/cloudsmith-api/models/storage_usage_raw.rb +211 -0
  111. data/lib/cloudsmith-api/models/usage_fieldset.rb +1 -1
  112. data/lib/cloudsmith-api/models/usage_limits.rb +1 -1
  113. data/lib/cloudsmith-api/models/usage_limits_raw.rb +203 -0
  114. data/lib/cloudsmith-api/models/usage_raw.rb +202 -0
  115. data/lib/cloudsmith-api/models/vulnerability_scan_results.rb +1 -0
  116. data/lib/cloudsmith-api/models/vulnerability_scan_results_list.rb +1 -0
  117. data/lib/cloudsmith-api/version.rb +1 -1
  118. data/lib/cloudsmith-api.rb +31 -3
  119. data/spec/api/orgs_api_spec.rb +190 -0
  120. data/spec/api/packages_api_spec.rb +30 -2
  121. data/spec/api/repos_api_spec.rb +47 -5
  122. data/spec/api/vulnerabilities_api_spec.rb +3 -3
  123. data/spec/models/allocated_limit_raw_spec.rb +59 -0
  124. data/spec/models/hex_package_upload_request_spec.rb +53 -0
  125. data/spec/models/hex_package_upload_spec.rb +447 -0
  126. data/spec/models/history_fieldset_raw_spec.rb +53 -0
  127. data/spec/models/nested_license_policy_spec.rb +95 -0
  128. data/spec/models/nested_vulnerability_policy_spec.rb +99 -0
  129. data/spec/models/nested_vulnerability_scan_results_spec.rb +81 -0
  130. data/spec/models/organization_group_sync_request_spec.rb +4 -0
  131. data/spec/models/organization_group_sync_spec.rb +4 -0
  132. data/spec/models/organization_package_license_policy_request_patch_spec.rb +71 -0
  133. data/spec/models/organization_package_license_policy_request_spec.rb +71 -0
  134. data/spec/models/organization_package_license_policy_spec.rb +89 -0
  135. data/spec/models/organization_package_vulnerability_policy_request_patch_spec.rb +75 -0
  136. data/spec/models/organization_package_vulnerability_policy_request_spec.rb +75 -0
  137. data/spec/models/organization_package_vulnerability_policy_spec.rb +93 -0
  138. data/spec/models/package_license_policy_violation_log_cursor_page_spec.rb +53 -0
  139. data/spec/models/package_license_policy_violation_log_spec.rb +59 -0
  140. data/spec/models/package_tag_request_spec.rb +4 -0
  141. data/spec/models/package_vulnerability_policy_violation_log_cursor_page_spec.rb +53 -0
  142. data/spec/models/package_vulnerability_policy_violation_log_spec.rb +65 -0
  143. data/spec/models/{inline_response_200_country_code_spec.rb → repository_geo_ip_cidr_spec.rb} +6 -6
  144. data/spec/models/repository_geo_ip_country_code_spec.rb +47 -0
  145. data/spec/models/repository_geo_ip_rules_request_patch_spec.rb +47 -0
  146. data/spec/models/{inline_response_200_spec.rb → repository_geo_ip_rules_request_spec.rb} +8 -8
  147. data/spec/models/{repository_geo_ip_list_spec.rb → repository_geo_ip_rules_spec.rb} +6 -6
  148. data/spec/models/repository_geo_ip_test_address_response_dict_spec.rb +59 -0
  149. data/spec/models/repository_geo_ip_test_address_response_spec.rb +41 -0
  150. data/spec/models/repository_geo_ip_test_address_spec.rb +41 -0
  151. data/spec/models/respository_geo_ip_enable_disable_request_spec.rb +6 -6
  152. data/spec/models/respository_geo_ip_enable_disable_spec.rb +6 -6
  153. data/spec/models/storage_allocated_limit_raw_spec.rb +65 -0
  154. data/spec/models/storage_allocated_limit_spec.rb +65 -0
  155. data/spec/models/storage_usage_raw_spec.rb +59 -0
  156. data/spec/models/storage_usage_spec.rb +59 -0
  157. data/spec/models/usage_limits_raw_spec.rb +47 -0
  158. data/spec/models/usage_raw_spec.rb +53 -0
  159. data/vendor/bundle/ruby/2.6.0/cache/addressable-2.8.4.gem +0 -0
  160. data/vendor/bundle/ruby/2.6.0/cache/rspec-core-3.12.2.gem +0 -0
  161. data/vendor/bundle/ruby/2.6.0/cache/rspec-expectations-3.12.3.gem +0 -0
  162. data/vendor/bundle/ruby/2.6.0/cache/rspec-mocks-3.12.5.gem +0 -0
  163. data/vendor/bundle/ruby/2.6.0/cache/sys-uname-1.2.3.gem +0 -0
  164. data/vendor/bundle/ruby/2.6.0/extensions/x86_64-linux/2.6.0/autotest-fsevent-0.2.20/gem_make.out +1 -1
  165. data/vendor/bundle/ruby/2.6.0/extensions/x86_64-linux/2.6.0/ffi-1.15.5/gem_make.out +2 -2
  166. data/vendor/bundle/ruby/2.6.0/extensions/x86_64-linux/2.6.0/json-2.6.3/gem_make.out +1 -1
  167. data/vendor/bundle/ruby/2.6.0/extensions/x86_64-linux/2.6.0/json-2.6.3/mkmf.log +1 -1
  168. data/vendor/bundle/ruby/2.6.0/gems/{addressable-2.8.1 → addressable-2.8.4}/CHANGELOG.md +22 -2
  169. data/vendor/bundle/ruby/2.6.0/gems/{addressable-2.8.1 → addressable-2.8.4}/Rakefile +2 -1
  170. data/vendor/bundle/ruby/2.6.0/gems/addressable-2.8.4/addressable.gemspec +28 -0
  171. data/vendor/bundle/ruby/2.6.0/gems/{addressable-2.8.1 → addressable-2.8.4}/lib/addressable/idna/native.rb +8 -2
  172. data/vendor/bundle/ruby/2.6.0/gems/{addressable-2.8.1 → addressable-2.8.4}/lib/addressable/idna/pure.rb +10 -182
  173. data/vendor/bundle/ruby/2.6.0/gems/{addressable-2.8.1 → addressable-2.8.4}/lib/addressable/template.rb +9 -10
  174. data/vendor/bundle/ruby/2.6.0/gems/{addressable-2.8.1 → addressable-2.8.4}/lib/addressable/uri.rb +112 -96
  175. data/vendor/bundle/ruby/2.6.0/gems/{addressable-2.8.1 → addressable-2.8.4}/lib/addressable/version.rb +1 -1
  176. data/vendor/bundle/ruby/2.6.0/gems/{addressable-2.8.1 → addressable-2.8.4}/spec/addressable/idna_spec.rb +6 -5
  177. data/vendor/bundle/ruby/2.6.0/gems/{addressable-2.8.1 → addressable-2.8.4}/spec/addressable/template_spec.rb +60 -264
  178. data/vendor/bundle/ruby/2.6.0/gems/{addressable-2.8.1 → addressable-2.8.4}/spec/addressable/uri_spec.rb +56 -0
  179. data/vendor/bundle/ruby/2.6.0/gems/ffi-1.15.5/ext/ffi_c/Makefile +2 -2
  180. data/vendor/bundle/ruby/2.6.0/gems/json-2.6.3/ext/json/Makefile +2 -2
  181. data/vendor/bundle/ruby/2.6.0/gems/json-2.6.3/ext/json/ext/generator/Makefile +2 -2
  182. data/vendor/bundle/ruby/2.6.0/gems/json-2.6.3/ext/json/ext/parser/Makefile +2 -2
  183. data/vendor/bundle/ruby/2.6.0/gems/{rspec-core-3.12.0 → rspec-core-3.12.2}/Changelog.md +16 -1
  184. data/vendor/bundle/ruby/2.6.0/gems/{rspec-core-3.12.0 → rspec-core-3.12.2}/README.md +2 -2
  185. data/vendor/bundle/ruby/2.6.0/gems/{rspec-core-3.12.0 → rspec-core-3.12.2}/lib/rspec/core/configuration.rb +2 -2
  186. data/vendor/bundle/ruby/2.6.0/gems/{rspec-core-3.12.0 → rspec-core-3.12.2}/lib/rspec/core/example_status_persister.rb +2 -2
  187. data/vendor/bundle/ruby/2.6.0/gems/{rspec-core-3.12.0 → rspec-core-3.12.2}/lib/rspec/core/formatters/exception_presenter.rb +2 -2
  188. data/vendor/bundle/ruby/2.6.0/gems/{rspec-core-3.12.0 → rspec-core-3.12.2}/lib/rspec/core/formatters/html_snippet_extractor.rb +2 -2
  189. data/vendor/bundle/ruby/2.6.0/gems/{rspec-core-3.12.0 → rspec-core-3.12.2}/lib/rspec/core/metadata_filter.rb +1 -1
  190. data/vendor/bundle/ruby/2.6.0/gems/{rspec-core-3.12.0 → rspec-core-3.12.2}/lib/rspec/core/project_initializer/spec/spec_helper.rb +1 -1
  191. data/vendor/bundle/ruby/2.6.0/gems/{rspec-core-3.12.0 → rspec-core-3.12.2}/lib/rspec/core/reporter.rb +1 -1
  192. data/vendor/bundle/ruby/2.6.0/gems/{rspec-core-3.12.0 → rspec-core-3.12.2}/lib/rspec/core/version.rb +1 -1
  193. data/vendor/bundle/ruby/2.6.0/gems/{rspec-expectations-3.12.1 → rspec-expectations-3.12.3}/Changelog.md +20 -5
  194. data/vendor/bundle/ruby/2.6.0/gems/{rspec-expectations-3.12.1 → rspec-expectations-3.12.3}/lib/rspec/expectations/failure_aggregator.rb +1 -1
  195. data/vendor/bundle/ruby/2.6.0/gems/{rspec-expectations-3.12.1 → rspec-expectations-3.12.3}/lib/rspec/expectations/version.rb +1 -1
  196. data/vendor/bundle/ruby/2.6.0/gems/{rspec-expectations-3.12.1 → rspec-expectations-3.12.3}/lib/rspec/matchers/aliased_matcher.rb +3 -3
  197. data/vendor/bundle/ruby/2.6.0/gems/{rspec-expectations-3.12.1 → rspec-expectations-3.12.3}/lib/rspec/matchers/built_in/compound.rb +1 -1
  198. data/vendor/bundle/ruby/2.6.0/gems/{rspec-expectations-3.12.1 → rspec-expectations-3.12.3}/lib/rspec/matchers/built_in/exist.rb +1 -1
  199. data/vendor/bundle/ruby/2.6.0/gems/{rspec-expectations-3.12.1 → rspec-expectations-3.12.3}/lib/rspec/matchers/built_in/include.rb +9 -2
  200. data/vendor/bundle/ruby/2.6.0/gems/{rspec-expectations-3.12.1 → rspec-expectations-3.12.3}/lib/rspec/matchers/composable.rb +1 -1
  201. data/vendor/bundle/ruby/2.6.0/gems/{rspec-expectations-3.12.1 → rspec-expectations-3.12.3}/lib/rspec/matchers/dsl.rb +7 -7
  202. data/vendor/bundle/ruby/2.6.0/gems/{rspec-expectations-3.12.1 → rspec-expectations-3.12.3}/lib/rspec/matchers.rb +1 -1
  203. data/vendor/bundle/ruby/2.6.0/gems/{rspec-mocks-3.12.1 → rspec-mocks-3.12.5}/Changelog.md +36 -1
  204. data/vendor/bundle/ruby/2.6.0/gems/{rspec-mocks-3.12.1 → rspec-mocks-3.12.5}/lib/rspec/mocks/any_instance/proxy.rb +12 -3
  205. data/vendor/bundle/ruby/2.6.0/gems/{rspec-mocks-3.12.1 → rspec-mocks-3.12.5}/lib/rspec/mocks/argument_list_matcher.rb +3 -1
  206. data/vendor/bundle/ruby/2.6.0/gems/{rspec-mocks-3.12.1 → rspec-mocks-3.12.5}/lib/rspec/mocks/matchers/receive.rb +2 -1
  207. data/vendor/bundle/ruby/2.6.0/gems/{rspec-mocks-3.12.1 → rspec-mocks-3.12.5}/lib/rspec/mocks/minitest_integration.rb +1 -1
  208. data/vendor/bundle/ruby/2.6.0/gems/{rspec-mocks-3.12.1 → rspec-mocks-3.12.5}/lib/rspec/mocks/mutate_const.rb +1 -1
  209. data/vendor/bundle/ruby/2.6.0/gems/{rspec-mocks-3.12.1 → rspec-mocks-3.12.5}/lib/rspec/mocks/proxy.rb +1 -0
  210. data/vendor/bundle/ruby/2.6.0/gems/{rspec-mocks-3.12.1 → rspec-mocks-3.12.5}/lib/rspec/mocks/verifying_double.rb +2 -0
  211. data/vendor/bundle/ruby/2.6.0/gems/{rspec-mocks-3.12.1 → rspec-mocks-3.12.5}/lib/rspec/mocks/verifying_proxy.rb +4 -3
  212. data/vendor/bundle/ruby/2.6.0/gems/{rspec-mocks-3.12.1 → rspec-mocks-3.12.5}/lib/rspec/mocks/version.rb +1 -1
  213. data/vendor/bundle/ruby/2.6.0/gems/{sys-uname-1.2.2 → sys-uname-1.2.3}/CHANGES.md +7 -0
  214. data/vendor/bundle/ruby/2.6.0/gems/sys-uname-1.2.3/Gemfile +2 -0
  215. data/vendor/bundle/ruby/2.6.0/gems/{sys-uname-1.2.2 → sys-uname-1.2.3}/README.md +21 -6
  216. data/vendor/bundle/ruby/2.6.0/gems/{sys-uname-1.2.2 → sys-uname-1.2.3}/Rakefile +4 -2
  217. data/vendor/bundle/ruby/2.6.0/gems/{sys-uname-1.2.2 → sys-uname-1.2.3}/doc/uname.rdoc +1 -1
  218. data/vendor/bundle/ruby/2.6.0/gems/{sys-uname-1.2.2 → sys-uname-1.2.3}/lib/sys/platform.rb +17 -13
  219. data/vendor/bundle/ruby/2.6.0/gems/{sys-uname-1.2.2 → sys-uname-1.2.3}/lib/sys/uname.rb +3 -1
  220. data/vendor/bundle/ruby/2.6.0/gems/{sys-uname-1.2.2 → sys-uname-1.2.3}/lib/sys/unix/uname.rb +20 -35
  221. data/vendor/bundle/ruby/2.6.0/gems/sys-uname-1.2.3/lib/sys/windows/uname.rb +499 -0
  222. data/vendor/bundle/ruby/2.6.0/gems/sys-uname-1.2.3/lib/sys-uname.rb +3 -0
  223. data/vendor/bundle/ruby/2.6.0/gems/sys-uname-1.2.3/spec/spec_helper.rb +12 -0
  224. data/vendor/bundle/ruby/2.6.0/gems/sys-uname-1.2.3/spec/sys_platform_spec.rb +69 -0
  225. data/vendor/bundle/ruby/2.6.0/gems/{sys-uname-1.2.2 → sys-uname-1.2.3}/spec/sys_uname_spec.rb +140 -136
  226. data/vendor/bundle/ruby/2.6.0/gems/{sys-uname-1.2.2 → sys-uname-1.2.3}/sys-uname.gemspec +11 -7
  227. data/vendor/bundle/ruby/2.6.0/specifications/{addressable-2.8.1.gemspec → addressable-2.8.4.gemspec} +3 -3
  228. data/vendor/bundle/ruby/2.6.0/specifications/{rspec-core-3.12.0.gemspec → rspec-core-3.12.2.gemspec} +5 -5
  229. data/vendor/bundle/ruby/2.6.0/specifications/{rspec-expectations-3.12.1.gemspec → rspec-expectations-3.12.3.gemspec} +5 -5
  230. data/vendor/bundle/ruby/2.6.0/specifications/{rspec-mocks-3.12.1.gemspec → rspec-mocks-3.12.5.gemspec} +7 -7
  231. data/vendor/bundle/ruby/2.6.0/specifications/{sys-uname-1.2.2.gemspec → sys-uname-1.2.3.gemspec} +8 -4
  232. metadata +364 -250
  233. data/docs/InlineResponse200.md +0 -9
  234. data/docs/InlineResponse200CountryCode.md +0 -9
  235. data/docs/RepositoryGeoIPList.md +0 -9
  236. data/vendor/bundle/ruby/2.6.0/cache/addressable-2.8.1.gem +0 -0
  237. data/vendor/bundle/ruby/2.6.0/cache/rspec-core-3.12.0.gem +0 -0
  238. data/vendor/bundle/ruby/2.6.0/cache/rspec-expectations-3.12.1.gem +0 -0
  239. data/vendor/bundle/ruby/2.6.0/cache/rspec-mocks-3.12.1.gem +0 -0
  240. data/vendor/bundle/ruby/2.6.0/cache/sys-uname-1.2.2.gem +0 -0
  241. data/vendor/bundle/ruby/2.6.0/gems/sys-uname-1.2.2/Gemfile +0 -7
  242. data/vendor/bundle/ruby/2.6.0/gems/sys-uname-1.2.2/lib/sys/windows/uname.rb +0 -515
  243. data/vendor/bundle/ruby/2.6.0/gems/sys-uname-1.2.2/lib/sys-uname.rb +0 -1
  244. data/vendor/bundle/ruby/2.6.0/gems/sys-uname-1.2.2/spec/sys_platform_spec.rb +0 -75
  245. data/vendor/bundle/ruby/2.6.0/gems/{addressable-2.8.1 → addressable-2.8.4}/Gemfile +0 -0
  246. data/vendor/bundle/ruby/2.6.0/gems/{addressable-2.8.1 → addressable-2.8.4}/LICENSE.txt +0 -0
  247. data/vendor/bundle/ruby/2.6.0/gems/{addressable-2.8.1 → addressable-2.8.4}/README.md +0 -0
  248. data/vendor/bundle/ruby/2.6.0/gems/{addressable-2.8.1 → addressable-2.8.4}/data/unicode.data +0 -0
  249. data/vendor/bundle/ruby/2.6.0/gems/{addressable-2.8.1 → addressable-2.8.4}/lib/addressable/idna.rb +0 -0
  250. data/vendor/bundle/ruby/2.6.0/gems/{addressable-2.8.1 → addressable-2.8.4}/lib/addressable.rb +0 -0
  251. data/vendor/bundle/ruby/2.6.0/gems/{addressable-2.8.1 → addressable-2.8.4}/spec/addressable/net_http_compat_spec.rb +0 -0
  252. data/vendor/bundle/ruby/2.6.0/gems/{addressable-2.8.1 → addressable-2.8.4}/spec/addressable/security_spec.rb +0 -0
  253. data/vendor/bundle/ruby/2.6.0/gems/{addressable-2.8.1 → addressable-2.8.4}/spec/spec_helper.rb +0 -0
  254. data/vendor/bundle/ruby/2.6.0/gems/{addressable-2.8.1 → addressable-2.8.4}/tasks/clobber.rake +0 -0
  255. data/vendor/bundle/ruby/2.6.0/gems/{addressable-2.8.1 → addressable-2.8.4}/tasks/gem.rake +0 -0
  256. data/vendor/bundle/ruby/2.6.0/gems/{addressable-2.8.1 → addressable-2.8.4}/tasks/git.rake +0 -0
  257. data/vendor/bundle/ruby/2.6.0/gems/{addressable-2.8.1 → addressable-2.8.4}/tasks/metrics.rake +0 -0
  258. data/vendor/bundle/ruby/2.6.0/gems/{addressable-2.8.1 → addressable-2.8.4}/tasks/profile.rake +0 -0
  259. data/vendor/bundle/ruby/2.6.0/gems/{addressable-2.8.1 → addressable-2.8.4}/tasks/rspec.rake +0 -0
  260. data/vendor/bundle/ruby/2.6.0/gems/{addressable-2.8.1 → addressable-2.8.4}/tasks/yard.rake +0 -0
  261. data/vendor/bundle/ruby/2.6.0/gems/{rspec-core-3.12.0 → rspec-core-3.12.2}/.document +0 -0
  262. data/vendor/bundle/ruby/2.6.0/gems/{rspec-core-3.12.0 → rspec-core-3.12.2}/.yardopts +0 -0
  263. data/vendor/bundle/ruby/2.6.0/gems/{rspec-core-3.12.0 → rspec-core-3.12.2}/LICENSE.md +0 -0
  264. data/vendor/bundle/ruby/2.6.0/gems/{rspec-core-3.12.0 → rspec-core-3.12.2}/exe/rspec +0 -0
  265. data/vendor/bundle/ruby/2.6.0/gems/{rspec-core-3.12.0 → rspec-core-3.12.2}/lib/rspec/autorun.rb +0 -0
  266. data/vendor/bundle/ruby/2.6.0/gems/{rspec-core-3.12.0 → rspec-core-3.12.2}/lib/rspec/core/backtrace_formatter.rb +0 -0
  267. data/vendor/bundle/ruby/2.6.0/gems/{rspec-core-3.12.0 → rspec-core-3.12.2}/lib/rspec/core/bisect/coordinator.rb +0 -0
  268. data/vendor/bundle/ruby/2.6.0/gems/{rspec-core-3.12.0 → rspec-core-3.12.2}/lib/rspec/core/bisect/example_minimizer.rb +0 -0
  269. data/vendor/bundle/ruby/2.6.0/gems/{rspec-core-3.12.0 → rspec-core-3.12.2}/lib/rspec/core/bisect/fork_runner.rb +0 -0
  270. data/vendor/bundle/ruby/2.6.0/gems/{rspec-core-3.12.0 → rspec-core-3.12.2}/lib/rspec/core/bisect/server.rb +0 -0
  271. data/vendor/bundle/ruby/2.6.0/gems/{rspec-core-3.12.0 → rspec-core-3.12.2}/lib/rspec/core/bisect/shell_command.rb +0 -0
  272. data/vendor/bundle/ruby/2.6.0/gems/{rspec-core-3.12.0 → rspec-core-3.12.2}/lib/rspec/core/bisect/shell_runner.rb +0 -0
  273. data/vendor/bundle/ruby/2.6.0/gems/{rspec-core-3.12.0 → rspec-core-3.12.2}/lib/rspec/core/bisect/utilities.rb +0 -0
  274. data/vendor/bundle/ruby/2.6.0/gems/{rspec-core-3.12.0 → rspec-core-3.12.2}/lib/rspec/core/configuration_options.rb +0 -0
  275. data/vendor/bundle/ruby/2.6.0/gems/{rspec-core-3.12.0 → rspec-core-3.12.2}/lib/rspec/core/did_you_mean.rb +0 -0
  276. data/vendor/bundle/ruby/2.6.0/gems/{rspec-core-3.12.0 → rspec-core-3.12.2}/lib/rspec/core/drb.rb +0 -0
  277. data/vendor/bundle/ruby/2.6.0/gems/{rspec-core-3.12.0 → rspec-core-3.12.2}/lib/rspec/core/dsl.rb +0 -0
  278. data/vendor/bundle/ruby/2.6.0/gems/{rspec-core-3.12.0 → rspec-core-3.12.2}/lib/rspec/core/example.rb +0 -0
  279. data/vendor/bundle/ruby/2.6.0/gems/{rspec-core-3.12.0 → rspec-core-3.12.2}/lib/rspec/core/example_group.rb +0 -0
  280. data/vendor/bundle/ruby/2.6.0/gems/{rspec-core-3.12.0 → rspec-core-3.12.2}/lib/rspec/core/filter_manager.rb +0 -0
  281. data/vendor/bundle/ruby/2.6.0/gems/{rspec-core-3.12.0 → rspec-core-3.12.2}/lib/rspec/core/flat_map.rb +0 -0
  282. data/vendor/bundle/ruby/2.6.0/gems/{rspec-core-3.12.0 → rspec-core-3.12.2}/lib/rspec/core/formatters/base_bisect_formatter.rb +0 -0
  283. data/vendor/bundle/ruby/2.6.0/gems/{rspec-core-3.12.0 → rspec-core-3.12.2}/lib/rspec/core/formatters/base_formatter.rb +0 -0
  284. data/vendor/bundle/ruby/2.6.0/gems/{rspec-core-3.12.0 → rspec-core-3.12.2}/lib/rspec/core/formatters/base_text_formatter.rb +0 -0
  285. data/vendor/bundle/ruby/2.6.0/gems/{rspec-core-3.12.0 → rspec-core-3.12.2}/lib/rspec/core/formatters/bisect_drb_formatter.rb +0 -0
  286. data/vendor/bundle/ruby/2.6.0/gems/{rspec-core-3.12.0 → rspec-core-3.12.2}/lib/rspec/core/formatters/bisect_progress_formatter.rb +0 -0
  287. data/vendor/bundle/ruby/2.6.0/gems/{rspec-core-3.12.0 → rspec-core-3.12.2}/lib/rspec/core/formatters/console_codes.rb +0 -0
  288. data/vendor/bundle/ruby/2.6.0/gems/{rspec-core-3.12.0 → rspec-core-3.12.2}/lib/rspec/core/formatters/deprecation_formatter.rb +0 -0
  289. data/vendor/bundle/ruby/2.6.0/gems/{rspec-core-3.12.0 → rspec-core-3.12.2}/lib/rspec/core/formatters/documentation_formatter.rb +0 -0
  290. data/vendor/bundle/ruby/2.6.0/gems/{rspec-core-3.12.0 → rspec-core-3.12.2}/lib/rspec/core/formatters/failure_list_formatter.rb +0 -0
  291. data/vendor/bundle/ruby/2.6.0/gems/{rspec-core-3.12.0 → rspec-core-3.12.2}/lib/rspec/core/formatters/fallback_message_formatter.rb +0 -0
  292. data/vendor/bundle/ruby/2.6.0/gems/{rspec-core-3.12.0 → rspec-core-3.12.2}/lib/rspec/core/formatters/helpers.rb +0 -0
  293. data/vendor/bundle/ruby/2.6.0/gems/{rspec-core-3.12.0 → rspec-core-3.12.2}/lib/rspec/core/formatters/html_formatter.rb +0 -0
  294. data/vendor/bundle/ruby/2.6.0/gems/{rspec-core-3.12.0 → rspec-core-3.12.2}/lib/rspec/core/formatters/html_printer.rb +0 -0
  295. data/vendor/bundle/ruby/2.6.0/gems/{rspec-core-3.12.0 → rspec-core-3.12.2}/lib/rspec/core/formatters/json_formatter.rb +0 -0
  296. data/vendor/bundle/ruby/2.6.0/gems/{rspec-core-3.12.0 → rspec-core-3.12.2}/lib/rspec/core/formatters/profile_formatter.rb +0 -0
  297. data/vendor/bundle/ruby/2.6.0/gems/{rspec-core-3.12.0 → rspec-core-3.12.2}/lib/rspec/core/formatters/progress_formatter.rb +0 -0
  298. data/vendor/bundle/ruby/2.6.0/gems/{rspec-core-3.12.0 → rspec-core-3.12.2}/lib/rspec/core/formatters/protocol.rb +0 -0
  299. data/vendor/bundle/ruby/2.6.0/gems/{rspec-core-3.12.0 → rspec-core-3.12.2}/lib/rspec/core/formatters/snippet_extractor.rb +0 -0
  300. data/vendor/bundle/ruby/2.6.0/gems/{rspec-core-3.12.0 → rspec-core-3.12.2}/lib/rspec/core/formatters/syntax_highlighter.rb +0 -0
  301. data/vendor/bundle/ruby/2.6.0/gems/{rspec-core-3.12.0 → rspec-core-3.12.2}/lib/rspec/core/formatters.rb +0 -0
  302. data/vendor/bundle/ruby/2.6.0/gems/{rspec-core-3.12.0 → rspec-core-3.12.2}/lib/rspec/core/hooks.rb +0 -0
  303. data/vendor/bundle/ruby/2.6.0/gems/{rspec-core-3.12.0 → rspec-core-3.12.2}/lib/rspec/core/invocations.rb +0 -0
  304. data/vendor/bundle/ruby/2.6.0/gems/{rspec-core-3.12.0 → rspec-core-3.12.2}/lib/rspec/core/memoized_helpers.rb +0 -0
  305. data/vendor/bundle/ruby/2.6.0/gems/{rspec-core-3.12.0 → rspec-core-3.12.2}/lib/rspec/core/metadata.rb +0 -0
  306. data/vendor/bundle/ruby/2.6.0/gems/{rspec-core-3.12.0 → rspec-core-3.12.2}/lib/rspec/core/minitest_assertions_adapter.rb +0 -0
  307. data/vendor/bundle/ruby/2.6.0/gems/{rspec-core-3.12.0 → rspec-core-3.12.2}/lib/rspec/core/mocking_adapters/flexmock.rb +0 -0
  308. data/vendor/bundle/ruby/2.6.0/gems/{rspec-core-3.12.0 → rspec-core-3.12.2}/lib/rspec/core/mocking_adapters/mocha.rb +0 -0
  309. data/vendor/bundle/ruby/2.6.0/gems/{rspec-core-3.12.0 → rspec-core-3.12.2}/lib/rspec/core/mocking_adapters/null.rb +0 -0
  310. data/vendor/bundle/ruby/2.6.0/gems/{rspec-core-3.12.0 → rspec-core-3.12.2}/lib/rspec/core/mocking_adapters/rr.rb +0 -0
  311. data/vendor/bundle/ruby/2.6.0/gems/{rspec-core-3.12.0 → rspec-core-3.12.2}/lib/rspec/core/mocking_adapters/rspec.rb +0 -0
  312. data/vendor/bundle/ruby/2.6.0/gems/{rspec-core-3.12.0 → rspec-core-3.12.2}/lib/rspec/core/notifications.rb +0 -0
  313. data/vendor/bundle/ruby/2.6.0/gems/{rspec-core-3.12.0 → rspec-core-3.12.2}/lib/rspec/core/option_parser.rb +0 -0
  314. data/vendor/bundle/ruby/2.6.0/gems/{rspec-core-3.12.0 → rspec-core-3.12.2}/lib/rspec/core/ordering.rb +0 -0
  315. data/vendor/bundle/ruby/2.6.0/gems/{rspec-core-3.12.0 → rspec-core-3.12.2}/lib/rspec/core/output_wrapper.rb +0 -0
  316. data/vendor/bundle/ruby/2.6.0/gems/{rspec-core-3.12.0 → rspec-core-3.12.2}/lib/rspec/core/pending.rb +0 -0
  317. data/vendor/bundle/ruby/2.6.0/gems/{rspec-core-3.12.0 → rspec-core-3.12.2}/lib/rspec/core/profiler.rb +0 -0
  318. data/vendor/bundle/ruby/2.6.0/gems/{rspec-core-3.12.0 → rspec-core-3.12.2}/lib/rspec/core/project_initializer/.rspec +0 -0
  319. data/vendor/bundle/ruby/2.6.0/gems/{rspec-core-3.12.0 → rspec-core-3.12.2}/lib/rspec/core/project_initializer.rb +0 -0
  320. data/vendor/bundle/ruby/2.6.0/gems/{rspec-core-3.12.0 → rspec-core-3.12.2}/lib/rspec/core/rake_task.rb +0 -0
  321. data/vendor/bundle/ruby/2.6.0/gems/{rspec-core-3.12.0 → rspec-core-3.12.2}/lib/rspec/core/ruby_project.rb +0 -0
  322. data/vendor/bundle/ruby/2.6.0/gems/{rspec-core-3.12.0 → rspec-core-3.12.2}/lib/rspec/core/runner.rb +0 -0
  323. data/vendor/bundle/ruby/2.6.0/gems/{rspec-core-3.12.0 → rspec-core-3.12.2}/lib/rspec/core/sandbox.rb +0 -0
  324. data/vendor/bundle/ruby/2.6.0/gems/{rspec-core-3.12.0 → rspec-core-3.12.2}/lib/rspec/core/set.rb +0 -0
  325. data/vendor/bundle/ruby/2.6.0/gems/{rspec-core-3.12.0 → rspec-core-3.12.2}/lib/rspec/core/shared_context.rb +0 -0
  326. data/vendor/bundle/ruby/2.6.0/gems/{rspec-core-3.12.0 → rspec-core-3.12.2}/lib/rspec/core/shared_example_group.rb +0 -0
  327. data/vendor/bundle/ruby/2.6.0/gems/{rspec-core-3.12.0 → rspec-core-3.12.2}/lib/rspec/core/shell_escape.rb +0 -0
  328. data/vendor/bundle/ruby/2.6.0/gems/{rspec-core-3.12.0 → rspec-core-3.12.2}/lib/rspec/core/test_unit_assertions_adapter.rb +0 -0
  329. data/vendor/bundle/ruby/2.6.0/gems/{rspec-core-3.12.0 → rspec-core-3.12.2}/lib/rspec/core/warnings.rb +0 -0
  330. data/vendor/bundle/ruby/2.6.0/gems/{rspec-core-3.12.0 → rspec-core-3.12.2}/lib/rspec/core/world.rb +0 -0
  331. data/vendor/bundle/ruby/2.6.0/gems/{rspec-core-3.12.0 → rspec-core-3.12.2}/lib/rspec/core.rb +0 -0
  332. data/vendor/bundle/ruby/2.6.0/gems/{rspec-expectations-3.12.1 → rspec-expectations-3.12.3}/.document +0 -0
  333. data/vendor/bundle/ruby/2.6.0/gems/{rspec-expectations-3.12.1 → rspec-expectations-3.12.3}/.yardopts +0 -0
  334. data/vendor/bundle/ruby/2.6.0/gems/{rspec-expectations-3.12.1 → rspec-expectations-3.12.3}/LICENSE.md +0 -0
  335. data/vendor/bundle/ruby/2.6.0/gems/{rspec-expectations-3.12.1 → rspec-expectations-3.12.3}/README.md +0 -0
  336. data/vendor/bundle/ruby/2.6.0/gems/{rspec-expectations-3.12.1 → rspec-expectations-3.12.3}/lib/rspec/expectations/block_snippet_extractor.rb +0 -0
  337. data/vendor/bundle/ruby/2.6.0/gems/{rspec-expectations-3.12.1 → rspec-expectations-3.12.3}/lib/rspec/expectations/configuration.rb +0 -0
  338. data/vendor/bundle/ruby/2.6.0/gems/{rspec-expectations-3.12.1 → rspec-expectations-3.12.3}/lib/rspec/expectations/expectation_target.rb +0 -0
  339. data/vendor/bundle/ruby/2.6.0/gems/{rspec-expectations-3.12.1 → rspec-expectations-3.12.3}/lib/rspec/expectations/fail_with.rb +0 -0
  340. data/vendor/bundle/ruby/2.6.0/gems/{rspec-expectations-3.12.1 → rspec-expectations-3.12.3}/lib/rspec/expectations/handler.rb +0 -0
  341. data/vendor/bundle/ruby/2.6.0/gems/{rspec-expectations-3.12.1 → rspec-expectations-3.12.3}/lib/rspec/expectations/minitest_integration.rb +0 -0
  342. data/vendor/bundle/ruby/2.6.0/gems/{rspec-expectations-3.12.1 → rspec-expectations-3.12.3}/lib/rspec/expectations/syntax.rb +0 -0
  343. data/vendor/bundle/ruby/2.6.0/gems/{rspec-expectations-3.12.1 → rspec-expectations-3.12.3}/lib/rspec/expectations.rb +0 -0
  344. data/vendor/bundle/ruby/2.6.0/gems/{rspec-expectations-3.12.1 → rspec-expectations-3.12.3}/lib/rspec/matchers/built_in/all.rb +0 -0
  345. data/vendor/bundle/ruby/2.6.0/gems/{rspec-expectations-3.12.1 → rspec-expectations-3.12.3}/lib/rspec/matchers/built_in/base_matcher.rb +0 -0
  346. data/vendor/bundle/ruby/2.6.0/gems/{rspec-expectations-3.12.1 → rspec-expectations-3.12.3}/lib/rspec/matchers/built_in/be.rb +0 -0
  347. data/vendor/bundle/ruby/2.6.0/gems/{rspec-expectations-3.12.1 → rspec-expectations-3.12.3}/lib/rspec/matchers/built_in/be_between.rb +0 -0
  348. data/vendor/bundle/ruby/2.6.0/gems/{rspec-expectations-3.12.1 → rspec-expectations-3.12.3}/lib/rspec/matchers/built_in/be_instance_of.rb +0 -0
  349. data/vendor/bundle/ruby/2.6.0/gems/{rspec-expectations-3.12.1 → rspec-expectations-3.12.3}/lib/rspec/matchers/built_in/be_kind_of.rb +0 -0
  350. data/vendor/bundle/ruby/2.6.0/gems/{rspec-expectations-3.12.1 → rspec-expectations-3.12.3}/lib/rspec/matchers/built_in/be_within.rb +0 -0
  351. data/vendor/bundle/ruby/2.6.0/gems/{rspec-expectations-3.12.1 → rspec-expectations-3.12.3}/lib/rspec/matchers/built_in/change.rb +0 -0
  352. data/vendor/bundle/ruby/2.6.0/gems/{rspec-expectations-3.12.1 → rspec-expectations-3.12.3}/lib/rspec/matchers/built_in/contain_exactly.rb +0 -0
  353. data/vendor/bundle/ruby/2.6.0/gems/{rspec-expectations-3.12.1 → rspec-expectations-3.12.3}/lib/rspec/matchers/built_in/count_expectation.rb +0 -0
  354. data/vendor/bundle/ruby/2.6.0/gems/{rspec-expectations-3.12.1 → rspec-expectations-3.12.3}/lib/rspec/matchers/built_in/cover.rb +0 -0
  355. data/vendor/bundle/ruby/2.6.0/gems/{rspec-expectations-3.12.1 → rspec-expectations-3.12.3}/lib/rspec/matchers/built_in/eq.rb +0 -0
  356. data/vendor/bundle/ruby/2.6.0/gems/{rspec-expectations-3.12.1 → rspec-expectations-3.12.3}/lib/rspec/matchers/built_in/eql.rb +0 -0
  357. data/vendor/bundle/ruby/2.6.0/gems/{rspec-expectations-3.12.1 → rspec-expectations-3.12.3}/lib/rspec/matchers/built_in/equal.rb +0 -0
  358. data/vendor/bundle/ruby/2.6.0/gems/{rspec-expectations-3.12.1 → rspec-expectations-3.12.3}/lib/rspec/matchers/built_in/has.rb +0 -0
  359. data/vendor/bundle/ruby/2.6.0/gems/{rspec-expectations-3.12.1 → rspec-expectations-3.12.3}/lib/rspec/matchers/built_in/have_attributes.rb +0 -0
  360. data/vendor/bundle/ruby/2.6.0/gems/{rspec-expectations-3.12.1 → rspec-expectations-3.12.3}/lib/rspec/matchers/built_in/match.rb +0 -0
  361. data/vendor/bundle/ruby/2.6.0/gems/{rspec-expectations-3.12.1 → rspec-expectations-3.12.3}/lib/rspec/matchers/built_in/operators.rb +0 -0
  362. data/vendor/bundle/ruby/2.6.0/gems/{rspec-expectations-3.12.1 → rspec-expectations-3.12.3}/lib/rspec/matchers/built_in/output.rb +0 -0
  363. data/vendor/bundle/ruby/2.6.0/gems/{rspec-expectations-3.12.1 → rspec-expectations-3.12.3}/lib/rspec/matchers/built_in/raise_error.rb +0 -0
  364. data/vendor/bundle/ruby/2.6.0/gems/{rspec-expectations-3.12.1 → rspec-expectations-3.12.3}/lib/rspec/matchers/built_in/respond_to.rb +0 -0
  365. data/vendor/bundle/ruby/2.6.0/gems/{rspec-expectations-3.12.1 → rspec-expectations-3.12.3}/lib/rspec/matchers/built_in/satisfy.rb +0 -0
  366. data/vendor/bundle/ruby/2.6.0/gems/{rspec-expectations-3.12.1 → rspec-expectations-3.12.3}/lib/rspec/matchers/built_in/start_or_end_with.rb +0 -0
  367. data/vendor/bundle/ruby/2.6.0/gems/{rspec-expectations-3.12.1 → rspec-expectations-3.12.3}/lib/rspec/matchers/built_in/throw_symbol.rb +0 -0
  368. data/vendor/bundle/ruby/2.6.0/gems/{rspec-expectations-3.12.1 → rspec-expectations-3.12.3}/lib/rspec/matchers/built_in/yield.rb +0 -0
  369. data/vendor/bundle/ruby/2.6.0/gems/{rspec-expectations-3.12.1 → rspec-expectations-3.12.3}/lib/rspec/matchers/built_in.rb +0 -0
  370. data/vendor/bundle/ruby/2.6.0/gems/{rspec-expectations-3.12.1 → rspec-expectations-3.12.3}/lib/rspec/matchers/english_phrasing.rb +0 -0
  371. data/vendor/bundle/ruby/2.6.0/gems/{rspec-expectations-3.12.1 → rspec-expectations-3.12.3}/lib/rspec/matchers/expecteds_for_multiple_diffs.rb +0 -0
  372. data/vendor/bundle/ruby/2.6.0/gems/{rspec-expectations-3.12.1 → rspec-expectations-3.12.3}/lib/rspec/matchers/fail_matchers.rb +0 -0
  373. data/vendor/bundle/ruby/2.6.0/gems/{rspec-expectations-3.12.1 → rspec-expectations-3.12.3}/lib/rspec/matchers/generated_descriptions.rb +0 -0
  374. data/vendor/bundle/ruby/2.6.0/gems/{rspec-expectations-3.12.1 → rspec-expectations-3.12.3}/lib/rspec/matchers/matcher_delegator.rb +0 -0
  375. data/vendor/bundle/ruby/2.6.0/gems/{rspec-expectations-3.12.1 → rspec-expectations-3.12.3}/lib/rspec/matchers/matcher_protocol.rb +0 -0
  376. data/vendor/bundle/ruby/2.6.0/gems/{rspec-mocks-3.12.1 → rspec-mocks-3.12.5}/.document +0 -0
  377. data/vendor/bundle/ruby/2.6.0/gems/{rspec-mocks-3.12.1 → rspec-mocks-3.12.5}/.yardopts +0 -0
  378. data/vendor/bundle/ruby/2.6.0/gems/{rspec-mocks-3.12.1 → rspec-mocks-3.12.5}/LICENSE.md +0 -0
  379. data/vendor/bundle/ruby/2.6.0/gems/{rspec-mocks-3.12.1 → rspec-mocks-3.12.5}/README.md +0 -0
  380. data/vendor/bundle/ruby/2.6.0/gems/{rspec-mocks-3.12.1 → rspec-mocks-3.12.5}/lib/rspec/mocks/any_instance/chain.rb +0 -0
  381. data/vendor/bundle/ruby/2.6.0/gems/{rspec-mocks-3.12.1 → rspec-mocks-3.12.5}/lib/rspec/mocks/any_instance/error_generator.rb +0 -0
  382. data/vendor/bundle/ruby/2.6.0/gems/{rspec-mocks-3.12.1 → rspec-mocks-3.12.5}/lib/rspec/mocks/any_instance/expect_chain_chain.rb +0 -0
  383. data/vendor/bundle/ruby/2.6.0/gems/{rspec-mocks-3.12.1 → rspec-mocks-3.12.5}/lib/rspec/mocks/any_instance/expectation_chain.rb +0 -0
  384. data/vendor/bundle/ruby/2.6.0/gems/{rspec-mocks-3.12.1 → rspec-mocks-3.12.5}/lib/rspec/mocks/any_instance/message_chains.rb +0 -0
  385. data/vendor/bundle/ruby/2.6.0/gems/{rspec-mocks-3.12.1 → rspec-mocks-3.12.5}/lib/rspec/mocks/any_instance/recorder.rb +0 -0
  386. data/vendor/bundle/ruby/2.6.0/gems/{rspec-mocks-3.12.1 → rspec-mocks-3.12.5}/lib/rspec/mocks/any_instance/stub_chain.rb +0 -0
  387. data/vendor/bundle/ruby/2.6.0/gems/{rspec-mocks-3.12.1 → rspec-mocks-3.12.5}/lib/rspec/mocks/any_instance/stub_chain_chain.rb +0 -0
  388. data/vendor/bundle/ruby/2.6.0/gems/{rspec-mocks-3.12.1 → rspec-mocks-3.12.5}/lib/rspec/mocks/any_instance.rb +0 -0
  389. data/vendor/bundle/ruby/2.6.0/gems/{rspec-mocks-3.12.1 → rspec-mocks-3.12.5}/lib/rspec/mocks/argument_matchers.rb +0 -0
  390. data/vendor/bundle/ruby/2.6.0/gems/{rspec-mocks-3.12.1 → rspec-mocks-3.12.5}/lib/rspec/mocks/configuration.rb +0 -0
  391. data/vendor/bundle/ruby/2.6.0/gems/{rspec-mocks-3.12.1 → rspec-mocks-3.12.5}/lib/rspec/mocks/error_generator.rb +0 -0
  392. data/vendor/bundle/ruby/2.6.0/gems/{rspec-mocks-3.12.1 → rspec-mocks-3.12.5}/lib/rspec/mocks/example_methods.rb +0 -0
  393. data/vendor/bundle/ruby/2.6.0/gems/{rspec-mocks-3.12.1 → rspec-mocks-3.12.5}/lib/rspec/mocks/instance_method_stasher.rb +0 -0
  394. data/vendor/bundle/ruby/2.6.0/gems/{rspec-mocks-3.12.1 → rspec-mocks-3.12.5}/lib/rspec/mocks/marshal_extension.rb +0 -0
  395. data/vendor/bundle/ruby/2.6.0/gems/{rspec-mocks-3.12.1 → rspec-mocks-3.12.5}/lib/rspec/mocks/matchers/expectation_customization.rb +0 -0
  396. data/vendor/bundle/ruby/2.6.0/gems/{rspec-mocks-3.12.1 → rspec-mocks-3.12.5}/lib/rspec/mocks/matchers/have_received.rb +0 -0
  397. data/vendor/bundle/ruby/2.6.0/gems/{rspec-mocks-3.12.1 → rspec-mocks-3.12.5}/lib/rspec/mocks/matchers/receive_message_chain.rb +0 -0
  398. data/vendor/bundle/ruby/2.6.0/gems/{rspec-mocks-3.12.1 → rspec-mocks-3.12.5}/lib/rspec/mocks/matchers/receive_messages.rb +0 -0
  399. data/vendor/bundle/ruby/2.6.0/gems/{rspec-mocks-3.12.1 → rspec-mocks-3.12.5}/lib/rspec/mocks/message_chain.rb +0 -0
  400. data/vendor/bundle/ruby/2.6.0/gems/{rspec-mocks-3.12.1 → rspec-mocks-3.12.5}/lib/rspec/mocks/message_expectation.rb +0 -0
  401. data/vendor/bundle/ruby/2.6.0/gems/{rspec-mocks-3.12.1 → rspec-mocks-3.12.5}/lib/rspec/mocks/method_double.rb +0 -0
  402. data/vendor/bundle/ruby/2.6.0/gems/{rspec-mocks-3.12.1 → rspec-mocks-3.12.5}/lib/rspec/mocks/method_reference.rb +0 -0
  403. data/vendor/bundle/ruby/2.6.0/gems/{rspec-mocks-3.12.1 → rspec-mocks-3.12.5}/lib/rspec/mocks/object_reference.rb +0 -0
  404. data/vendor/bundle/ruby/2.6.0/gems/{rspec-mocks-3.12.1 → rspec-mocks-3.12.5}/lib/rspec/mocks/order_group.rb +0 -0
  405. data/vendor/bundle/ruby/2.6.0/gems/{rspec-mocks-3.12.1 → rspec-mocks-3.12.5}/lib/rspec/mocks/space.rb +1 -1
  406. /data/vendor/bundle/ruby/2.6.0/gems/{rspec-mocks-3.12.1 → rspec-mocks-3.12.5}/lib/rspec/mocks/standalone.rb +0 -0
  407. /data/vendor/bundle/ruby/2.6.0/gems/{rspec-mocks-3.12.1 → rspec-mocks-3.12.5}/lib/rspec/mocks/syntax.rb +0 -0
  408. /data/vendor/bundle/ruby/2.6.0/gems/{rspec-mocks-3.12.1 → rspec-mocks-3.12.5}/lib/rspec/mocks/targets.rb +0 -0
  409. /data/vendor/bundle/ruby/2.6.0/gems/{rspec-mocks-3.12.1 → rspec-mocks-3.12.5}/lib/rspec/mocks/test_double.rb +0 -0
  410. /data/vendor/bundle/ruby/2.6.0/gems/{rspec-mocks-3.12.1 → rspec-mocks-3.12.5}/lib/rspec/mocks/verifying_message_expectation.rb +0 -0
  411. /data/vendor/bundle/ruby/2.6.0/gems/{rspec-mocks-3.12.1 → rspec-mocks-3.12.5}/lib/rspec/mocks.rb +0 -0
  412. /data/vendor/bundle/ruby/2.6.0/gems/{sys-uname-1.2.2 → sys-uname-1.2.3}/LICENSE +0 -0
  413. /data/vendor/bundle/ruby/2.6.0/gems/{sys-uname-1.2.2 → sys-uname-1.2.3}/MANIFEST.md +0 -0
  414. /data/vendor/bundle/ruby/2.6.0/gems/{sys-uname-1.2.2 → sys-uname-1.2.3}/certs/djberg96_pub.pem +0 -0
  415. /data/vendor/bundle/ruby/2.6.0/gems/{sys-uname-1.2.2 → sys-uname-1.2.3}/examples/uname_test.rb +0 -0
@@ -376,34 +376,36 @@ module CloudsmithApi
376
376
  end
377
377
  return data, status_code, headers
378
378
  end
379
- # Get a list of all the organizations you are associated with.
380
- # Get a list of all the organizations you are associated with.
379
+ # Create a package license policy.
380
+ # Create a package license policy.
381
+ # @param org
381
382
  # @param [Hash] opts the optional parameters
382
- # @option opts [Integer] :page A page number within the paginated result set.
383
- # @option opts [Integer] :page_size Number of results to return per page.
384
- # @return [Array<Organization>]
385
- def orgs_list(opts = {})
386
- data, _status_code, _headers = orgs_list_with_http_info(opts)
383
+ # @option opts [OrganizationPackageLicensePolicyRequest] :data
384
+ # @return [OrganizationPackageLicensePolicy]
385
+ def orgs_license_policy_create(org, opts = {})
386
+ data, _status_code, _headers = orgs_license_policy_create_with_http_info(org, opts)
387
387
  data
388
388
  end
389
389
 
390
- # Get a list of all the organizations you are associated with.
391
- # Get a list of all the organizations you are associated with.
390
+ # Create a package license policy.
391
+ # Create a package license policy.
392
+ # @param org
392
393
  # @param [Hash] opts the optional parameters
393
- # @option opts [Integer] :page A page number within the paginated result set.
394
- # @option opts [Integer] :page_size Number of results to return per page.
395
- # @return [Array<(Array<Organization>, Fixnum, Hash)>] Array<Organization> data, response status code and response headers
396
- def orgs_list_with_http_info(opts = {})
394
+ # @option opts [OrganizationPackageLicensePolicyRequest] :data
395
+ # @return [Array<(OrganizationPackageLicensePolicy, Fixnum, Hash)>] OrganizationPackageLicensePolicy data, response status code and response headers
396
+ def orgs_license_policy_create_with_http_info(org, opts = {})
397
397
  if @api_client.config.debugging
398
- @api_client.config.logger.debug 'Calling API: OrgsApi.orgs_list ...'
398
+ @api_client.config.logger.debug 'Calling API: OrgsApi.orgs_license_policy_create ...'
399
+ end
400
+ # verify the required parameter 'org' is set
401
+ if @api_client.config.client_side_validation && org.nil?
402
+ fail ArgumentError, "Missing the required parameter 'org' when calling OrgsApi.orgs_license_policy_create"
399
403
  end
400
404
  # resource path
401
- local_var_path = '/orgs/'
405
+ local_var_path = '/orgs/{org}/license-policy/'.sub('{' + 'org' + '}', org.to_s)
402
406
 
403
407
  # query parameters
404
408
  query_params = {}
405
- query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil?
406
- query_params[:'page_size'] = opts[:'page_size'] if !opts[:'page_size'].nil?
407
409
 
408
410
  # header parameters
409
411
  header_params = {}
@@ -416,51 +418,51 @@ module CloudsmithApi
416
418
  form_params = {}
417
419
 
418
420
  # http body (model)
419
- post_body = nil
421
+ post_body = @api_client.object_to_http_body(opts[:'data'])
420
422
  auth_names = ['apikey']
421
- data, status_code, headers = @api_client.call_api(:GET, local_var_path,
423
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
422
424
  :header_params => header_params,
423
425
  :query_params => query_params,
424
426
  :form_params => form_params,
425
427
  :body => post_body,
426
428
  :auth_names => auth_names,
427
- :return_type => 'Array<Organization>')
429
+ :return_type => 'OrganizationPackageLicensePolicy')
428
430
  if @api_client.config.debugging
429
- @api_client.config.logger.debug "API called: OrgsApi#orgs_list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
431
+ @api_client.config.logger.debug "API called: OrgsApi#orgs_license_policy_create\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
430
432
  end
431
433
  return data, status_code, headers
432
434
  end
433
- # Removes a member from the organization.
434
- # Removes a member from the organization.
435
+ # Delete a package license policy.
436
+ # Delete a package license policy.
435
437
  # @param org
436
- # @param member
438
+ # @param slug_perm
437
439
  # @param [Hash] opts the optional parameters
438
440
  # @return [nil]
439
- def orgs_members_delete(org, member, opts = {})
440
- orgs_members_delete_with_http_info(org, member, opts)
441
+ def orgs_license_policy_delete(org, slug_perm, opts = {})
442
+ orgs_license_policy_delete_with_http_info(org, slug_perm, opts)
441
443
  nil
442
444
  end
443
445
 
444
- # Removes a member from the organization.
445
- # Removes a member from the organization.
446
+ # Delete a package license policy.
447
+ # Delete a package license policy.
446
448
  # @param org
447
- # @param member
449
+ # @param slug_perm
448
450
  # @param [Hash] opts the optional parameters
449
451
  # @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
450
- def orgs_members_delete_with_http_info(org, member, opts = {})
452
+ def orgs_license_policy_delete_with_http_info(org, slug_perm, opts = {})
451
453
  if @api_client.config.debugging
452
- @api_client.config.logger.debug 'Calling API: OrgsApi.orgs_members_delete ...'
454
+ @api_client.config.logger.debug 'Calling API: OrgsApi.orgs_license_policy_delete ...'
453
455
  end
454
456
  # verify the required parameter 'org' is set
455
457
  if @api_client.config.client_side_validation && org.nil?
456
- fail ArgumentError, "Missing the required parameter 'org' when calling OrgsApi.orgs_members_delete"
458
+ fail ArgumentError, "Missing the required parameter 'org' when calling OrgsApi.orgs_license_policy_delete"
457
459
  end
458
- # verify the required parameter 'member' is set
459
- if @api_client.config.client_side_validation && member.nil?
460
- fail ArgumentError, "Missing the required parameter 'member' when calling OrgsApi.orgs_members_delete"
460
+ # verify the required parameter 'slug_perm' is set
461
+ if @api_client.config.client_side_validation && slug_perm.nil?
462
+ fail ArgumentError, "Missing the required parameter 'slug_perm' when calling OrgsApi.orgs_license_policy_delete"
461
463
  end
462
464
  # resource path
463
- local_var_path = '/orgs/{org}/members/{member}/'.sub('{' + 'org' + '}', org.to_s).sub('{' + 'member' + '}', member.to_s)
465
+ local_var_path = '/orgs/{org}/license-policy/{slug_perm}/'.sub('{' + 'org' + '}', org.to_s).sub('{' + 'slug_perm' + '}', slug_perm.to_s)
464
466
 
465
467
  # query parameters
466
468
  query_params = {}
@@ -485,39 +487,39 @@ module CloudsmithApi
485
487
  :body => post_body,
486
488
  :auth_names => auth_names)
487
489
  if @api_client.config.debugging
488
- @api_client.config.logger.debug "API called: OrgsApi#orgs_members_delete\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
490
+ @api_client.config.logger.debug "API called: OrgsApi#orgs_license_policy_delete\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
489
491
  end
490
492
  return data, status_code, headers
491
493
  end
492
- # Get the details for all organization members.
493
- # Get the details for all organization members.
494
+ # Get a list of all package license policies.
495
+ # Get a list of all package license policies.
494
496
  # @param org
495
497
  # @param [Hash] opts the optional parameters
496
498
  # @option opts [Integer] :page A page number within the paginated result set.
497
499
  # @option opts [Integer] :page_size Number of results to return per page.
498
- # @return [Array<OrganizationMembership>]
499
- def orgs_members_list(org, opts = {})
500
- data, _status_code, _headers = orgs_members_list_with_http_info(org, opts)
500
+ # @return [Array<OrganizationPackageLicensePolicy>]
501
+ def orgs_license_policy_list(org, opts = {})
502
+ data, _status_code, _headers = orgs_license_policy_list_with_http_info(org, opts)
501
503
  data
502
504
  end
503
505
 
504
- # Get the details for all organization members.
505
- # Get the details for all organization members.
506
+ # Get a list of all package license policies.
507
+ # Get a list of all package license policies.
506
508
  # @param org
507
509
  # @param [Hash] opts the optional parameters
508
510
  # @option opts [Integer] :page A page number within the paginated result set.
509
511
  # @option opts [Integer] :page_size Number of results to return per page.
510
- # @return [Array<(Array<OrganizationMembership>, Fixnum, Hash)>] Array<OrganizationMembership> data, response status code and response headers
511
- def orgs_members_list_with_http_info(org, opts = {})
512
+ # @return [Array<(Array<OrganizationPackageLicensePolicy>, Fixnum, Hash)>] Array<OrganizationPackageLicensePolicy> data, response status code and response headers
513
+ def orgs_license_policy_list_with_http_info(org, opts = {})
512
514
  if @api_client.config.debugging
513
- @api_client.config.logger.debug 'Calling API: OrgsApi.orgs_members_list ...'
515
+ @api_client.config.logger.debug 'Calling API: OrgsApi.orgs_license_policy_list ...'
514
516
  end
515
517
  # verify the required parameter 'org' is set
516
518
  if @api_client.config.client_side_validation && org.nil?
517
- fail ArgumentError, "Missing the required parameter 'org' when calling OrgsApi.orgs_members_list"
519
+ fail ArgumentError, "Missing the required parameter 'org' when calling OrgsApi.orgs_license_policy_list"
518
520
  end
519
521
  # resource path
520
- local_var_path = '/orgs/{org}/members/'.sub('{' + 'org' + '}', org.to_s)
522
+ local_var_path = '/orgs/{org}/license-policy/'.sub('{' + 'org' + '}', org.to_s)
521
523
 
522
524
  # query parameters
523
525
  query_params = {}
@@ -543,43 +545,45 @@ module CloudsmithApi
543
545
  :form_params => form_params,
544
546
  :body => post_body,
545
547
  :auth_names => auth_names,
546
- :return_type => 'Array<OrganizationMembership>')
548
+ :return_type => 'Array<OrganizationPackageLicensePolicy>')
547
549
  if @api_client.config.debugging
548
- @api_client.config.logger.debug "API called: OrgsApi#orgs_members_list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
550
+ @api_client.config.logger.debug "API called: OrgsApi#orgs_license_policy_list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
549
551
  end
550
552
  return data, status_code, headers
551
553
  end
552
- # Get the details for a specific organization member.
553
- # Get the details for a specific organization member.
554
+ # Partially update a package license policy.
555
+ # Partially update a package license policy.
554
556
  # @param org
555
- # @param member
557
+ # @param slug_perm
556
558
  # @param [Hash] opts the optional parameters
557
- # @return [OrganizationMembership]
558
- def orgs_members_read(org, member, opts = {})
559
- data, _status_code, _headers = orgs_members_read_with_http_info(org, member, opts)
559
+ # @option opts [OrganizationPackageLicensePolicyRequestPatch] :data
560
+ # @return [OrganizationPackageLicensePolicy]
561
+ def orgs_license_policy_partial_update(org, slug_perm, opts = {})
562
+ data, _status_code, _headers = orgs_license_policy_partial_update_with_http_info(org, slug_perm, opts)
560
563
  data
561
564
  end
562
565
 
563
- # Get the details for a specific organization member.
564
- # Get the details for a specific organization member.
566
+ # Partially update a package license policy.
567
+ # Partially update a package license policy.
565
568
  # @param org
566
- # @param member
569
+ # @param slug_perm
567
570
  # @param [Hash] opts the optional parameters
568
- # @return [Array<(OrganizationMembership, Fixnum, Hash)>] OrganizationMembership data, response status code and response headers
569
- def orgs_members_read_with_http_info(org, member, opts = {})
571
+ # @option opts [OrganizationPackageLicensePolicyRequestPatch] :data
572
+ # @return [Array<(OrganizationPackageLicensePolicy, Fixnum, Hash)>] OrganizationPackageLicensePolicy data, response status code and response headers
573
+ def orgs_license_policy_partial_update_with_http_info(org, slug_perm, opts = {})
570
574
  if @api_client.config.debugging
571
- @api_client.config.logger.debug 'Calling API: OrgsApi.orgs_members_read ...'
575
+ @api_client.config.logger.debug 'Calling API: OrgsApi.orgs_license_policy_partial_update ...'
572
576
  end
573
577
  # verify the required parameter 'org' is set
574
578
  if @api_client.config.client_side_validation && org.nil?
575
- fail ArgumentError, "Missing the required parameter 'org' when calling OrgsApi.orgs_members_read"
579
+ fail ArgumentError, "Missing the required parameter 'org' when calling OrgsApi.orgs_license_policy_partial_update"
576
580
  end
577
- # verify the required parameter 'member' is set
578
- if @api_client.config.client_side_validation && member.nil?
579
- fail ArgumentError, "Missing the required parameter 'member' when calling OrgsApi.orgs_members_read"
581
+ # verify the required parameter 'slug_perm' is set
582
+ if @api_client.config.client_side_validation && slug_perm.nil?
583
+ fail ArgumentError, "Missing the required parameter 'slug_perm' when calling OrgsApi.orgs_license_policy_partial_update"
580
584
  end
581
585
  # resource path
582
- local_var_path = '/orgs/{org}/members/{member}/'.sub('{' + 'org' + '}', org.to_s).sub('{' + 'member' + '}', member.to_s)
586
+ local_var_path = '/orgs/{org}/license-policy/{slug_perm}/'.sub('{' + 'org' + '}', org.to_s).sub('{' + 'slug_perm' + '}', slug_perm.to_s)
583
587
 
584
588
  # query parameters
585
589
  query_params = {}
@@ -595,51 +599,51 @@ module CloudsmithApi
595
599
  form_params = {}
596
600
 
597
601
  # http body (model)
598
- post_body = nil
602
+ post_body = @api_client.object_to_http_body(opts[:'data'])
599
603
  auth_names = ['apikey']
600
- data, status_code, headers = @api_client.call_api(:GET, local_var_path,
604
+ data, status_code, headers = @api_client.call_api(:PATCH, local_var_path,
601
605
  :header_params => header_params,
602
606
  :query_params => query_params,
603
607
  :form_params => form_params,
604
608
  :body => post_body,
605
609
  :auth_names => auth_names,
606
- :return_type => 'OrganizationMembership')
610
+ :return_type => 'OrganizationPackageLicensePolicy')
607
611
  if @api_client.config.debugging
608
- @api_client.config.logger.debug "API called: OrgsApi#orgs_members_read\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
612
+ @api_client.config.logger.debug "API called: OrgsApi#orgs_license_policy_partial_update\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
609
613
  end
610
614
  return data, status_code, headers
611
615
  end
612
- # Removes a member from the organization (deprecated, use DELETE instead).
613
- # Removes a member from the organization (deprecated, use DELETE instead).
616
+ # Get a package license policy.
617
+ # Get a package license policy.
614
618
  # @param org
615
- # @param member
619
+ # @param slug_perm
616
620
  # @param [Hash] opts the optional parameters
617
- # @return [nil]
618
- def orgs_members_remove(org, member, opts = {})
619
- orgs_members_remove_with_http_info(org, member, opts)
620
- nil
621
+ # @return [OrganizationPackageLicensePolicy]
622
+ def orgs_license_policy_read(org, slug_perm, opts = {})
623
+ data, _status_code, _headers = orgs_license_policy_read_with_http_info(org, slug_perm, opts)
624
+ data
621
625
  end
622
626
 
623
- # Removes a member from the organization (deprecated, use DELETE instead).
624
- # Removes a member from the organization (deprecated, use DELETE instead).
627
+ # Get a package license policy.
628
+ # Get a package license policy.
625
629
  # @param org
626
- # @param member
630
+ # @param slug_perm
627
631
  # @param [Hash] opts the optional parameters
628
- # @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
629
- def orgs_members_remove_with_http_info(org, member, opts = {})
632
+ # @return [Array<(OrganizationPackageLicensePolicy, Fixnum, Hash)>] OrganizationPackageLicensePolicy data, response status code and response headers
633
+ def orgs_license_policy_read_with_http_info(org, slug_perm, opts = {})
630
634
  if @api_client.config.debugging
631
- @api_client.config.logger.debug 'Calling API: OrgsApi.orgs_members_remove ...'
635
+ @api_client.config.logger.debug 'Calling API: OrgsApi.orgs_license_policy_read ...'
632
636
  end
633
637
  # verify the required parameter 'org' is set
634
638
  if @api_client.config.client_side_validation && org.nil?
635
- fail ArgumentError, "Missing the required parameter 'org' when calling OrgsApi.orgs_members_remove"
639
+ fail ArgumentError, "Missing the required parameter 'org' when calling OrgsApi.orgs_license_policy_read"
636
640
  end
637
- # verify the required parameter 'member' is set
638
- if @api_client.config.client_side_validation && member.nil?
639
- fail ArgumentError, "Missing the required parameter 'member' when calling OrgsApi.orgs_members_remove"
641
+ # verify the required parameter 'slug_perm' is set
642
+ if @api_client.config.client_side_validation && slug_perm.nil?
643
+ fail ArgumentError, "Missing the required parameter 'slug_perm' when calling OrgsApi.orgs_license_policy_read"
640
644
  end
641
645
  # resource path
642
- local_var_path = '/orgs/{org}/members/{member}/remove/'.sub('{' + 'org' + '}', org.to_s).sub('{' + 'member' + '}', member.to_s)
646
+ local_var_path = '/orgs/{org}/license-policy/{slug_perm}/'.sub('{' + 'org' + '}', org.to_s).sub('{' + 'slug_perm' + '}', slug_perm.to_s)
643
647
 
644
648
  # query parameters
645
649
  query_params = {}
@@ -662,37 +666,46 @@ module CloudsmithApi
662
666
  :query_params => query_params,
663
667
  :form_params => form_params,
664
668
  :body => post_body,
665
- :auth_names => auth_names)
669
+ :auth_names => auth_names,
670
+ :return_type => 'OrganizationPackageLicensePolicy')
666
671
  if @api_client.config.debugging
667
- @api_client.config.logger.debug "API called: OrgsApi#orgs_members_remove\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
672
+ @api_client.config.logger.debug "API called: OrgsApi#orgs_license_policy_read\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
668
673
  end
669
674
  return data, status_code, headers
670
675
  end
671
- # Get the details for the specific organization.
672
- # Get the details for the specific organization.
676
+ # Update a package license policy.
677
+ # Update a package license policy.
673
678
  # @param org
679
+ # @param slug_perm
674
680
  # @param [Hash] opts the optional parameters
675
- # @return [Organization]
676
- def orgs_read(org, opts = {})
677
- data, _status_code, _headers = orgs_read_with_http_info(org, opts)
681
+ # @option opts [OrganizationPackageLicensePolicyRequest] :data
682
+ # @return [OrganizationPackageLicensePolicy]
683
+ def orgs_license_policy_update(org, slug_perm, opts = {})
684
+ data, _status_code, _headers = orgs_license_policy_update_with_http_info(org, slug_perm, opts)
678
685
  data
679
686
  end
680
687
 
681
- # Get the details for the specific organization.
682
- # Get the details for the specific organization.
688
+ # Update a package license policy.
689
+ # Update a package license policy.
683
690
  # @param org
691
+ # @param slug_perm
684
692
  # @param [Hash] opts the optional parameters
685
- # @return [Array<(Organization, Fixnum, Hash)>] Organization data, response status code and response headers
686
- def orgs_read_with_http_info(org, opts = {})
693
+ # @option opts [OrganizationPackageLicensePolicyRequest] :data
694
+ # @return [Array<(OrganizationPackageLicensePolicy, Fixnum, Hash)>] OrganizationPackageLicensePolicy data, response status code and response headers
695
+ def orgs_license_policy_update_with_http_info(org, slug_perm, opts = {})
687
696
  if @api_client.config.debugging
688
- @api_client.config.logger.debug 'Calling API: OrgsApi.orgs_read ...'
697
+ @api_client.config.logger.debug 'Calling API: OrgsApi.orgs_license_policy_update ...'
689
698
  end
690
699
  # verify the required parameter 'org' is set
691
700
  if @api_client.config.client_side_validation && org.nil?
692
- fail ArgumentError, "Missing the required parameter 'org' when calling OrgsApi.orgs_read"
701
+ fail ArgumentError, "Missing the required parameter 'org' when calling OrgsApi.orgs_license_policy_update"
702
+ end
703
+ # verify the required parameter 'slug_perm' is set
704
+ if @api_client.config.client_side_validation && slug_perm.nil?
705
+ fail ArgumentError, "Missing the required parameter 'slug_perm' when calling OrgsApi.orgs_license_policy_update"
693
706
  end
694
707
  # resource path
695
- local_var_path = '/orgs/{org}/'.sub('{' + 'org' + '}', org.to_s)
708
+ local_var_path = '/orgs/{org}/license-policy/{slug_perm}/'.sub('{' + 'org' + '}', org.to_s).sub('{' + 'slug_perm' + '}', slug_perm.to_s)
696
709
 
697
710
  # query parameters
698
711
  query_params = {}
@@ -708,50 +721,54 @@ module CloudsmithApi
708
721
  form_params = {}
709
722
 
710
723
  # http body (model)
711
- post_body = nil
724
+ post_body = @api_client.object_to_http_body(opts[:'data'])
712
725
  auth_names = ['apikey']
713
- data, status_code, headers = @api_client.call_api(:GET, local_var_path,
726
+ data, status_code, headers = @api_client.call_api(:PUT, local_var_path,
714
727
  :header_params => header_params,
715
728
  :query_params => query_params,
716
729
  :form_params => form_params,
717
730
  :body => post_body,
718
731
  :auth_names => auth_names,
719
- :return_type => 'Organization')
732
+ :return_type => 'OrganizationPackageLicensePolicy')
720
733
  if @api_client.config.debugging
721
- @api_client.config.logger.debug "API called: OrgsApi#orgs_read\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
734
+ @api_client.config.logger.debug "API called: OrgsApi#orgs_license_policy_update\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
722
735
  end
723
736
  return data, status_code, headers
724
737
  end
725
- # Create a new SAML Group Sync mapping within an organization.
726
- # Create a new SAML Group Sync mapping within an organization.
738
+ # List all current license policy violations for this Organization.
739
+ # List all current license policy violations for this Organization.
727
740
  # @param org
728
741
  # @param [Hash] opts the optional parameters
729
- # @option opts [OrganizationGroupSyncRequest] :data
730
- # @return [OrganizationGroupSync]
731
- def orgs_saml_group_sync_create(org, opts = {})
732
- data, _status_code, _headers = orgs_saml_group_sync_create_with_http_info(org, opts)
742
+ # @option opts [String] :cursor The pagination cursor value.
743
+ # @option opts [Integer] :page_size Number of results to return per page.
744
+ # @return [PackageLicensePolicyViolationLogCursorPage]
745
+ def orgs_license_policy_violation_list(org, opts = {})
746
+ data, _status_code, _headers = orgs_license_policy_violation_list_with_http_info(org, opts)
733
747
  data
734
748
  end
735
749
 
736
- # Create a new SAML Group Sync mapping within an organization.
737
- # Create a new SAML Group Sync mapping within an organization.
750
+ # List all current license policy violations for this Organization.
751
+ # List all current license policy violations for this Organization.
738
752
  # @param org
739
753
  # @param [Hash] opts the optional parameters
740
- # @option opts [OrganizationGroupSyncRequest] :data
741
- # @return [Array<(OrganizationGroupSync, Fixnum, Hash)>] OrganizationGroupSync data, response status code and response headers
742
- def orgs_saml_group_sync_create_with_http_info(org, opts = {})
754
+ # @option opts [String] :cursor The pagination cursor value.
755
+ # @option opts [Integer] :page_size Number of results to return per page.
756
+ # @return [Array<(PackageLicensePolicyViolationLogCursorPage, Fixnum, Hash)>] PackageLicensePolicyViolationLogCursorPage data, response status code and response headers
757
+ def orgs_license_policy_violation_list_with_http_info(org, opts = {})
743
758
  if @api_client.config.debugging
744
- @api_client.config.logger.debug 'Calling API: OrgsApi.orgs_saml_group_sync_create ...'
759
+ @api_client.config.logger.debug 'Calling API: OrgsApi.orgs_license_policy_violation_list ...'
745
760
  end
746
761
  # verify the required parameter 'org' is set
747
762
  if @api_client.config.client_side_validation && org.nil?
748
- fail ArgumentError, "Missing the required parameter 'org' when calling OrgsApi.orgs_saml_group_sync_create"
763
+ fail ArgumentError, "Missing the required parameter 'org' when calling OrgsApi.orgs_license_policy_violation_list"
749
764
  end
750
765
  # resource path
751
- local_var_path = '/orgs/{org}/saml-group-sync/'.sub('{' + 'org' + '}', org.to_s)
766
+ local_var_path = '/orgs/{org}/license-policy-violation/'.sub('{' + 'org' + '}', org.to_s)
752
767
 
753
768
  # query parameters
754
769
  query_params = {}
770
+ query_params[:'cursor'] = opts[:'cursor'] if !opts[:'cursor'].nil?
771
+ query_params[:'page_size'] = opts[:'page_size'] if !opts[:'page_size'].nil?
755
772
 
756
773
  # header parameters
757
774
  header_params = {}
@@ -764,54 +781,48 @@ module CloudsmithApi
764
781
  form_params = {}
765
782
 
766
783
  # http body (model)
767
- post_body = @api_client.object_to_http_body(opts[:'data'])
784
+ post_body = nil
768
785
  auth_names = ['apikey']
769
- data, status_code, headers = @api_client.call_api(:POST, local_var_path,
786
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
770
787
  :header_params => header_params,
771
788
  :query_params => query_params,
772
789
  :form_params => form_params,
773
790
  :body => post_body,
774
791
  :auth_names => auth_names,
775
- :return_type => 'OrganizationGroupSync')
792
+ :return_type => 'PackageLicensePolicyViolationLogCursorPage')
776
793
  if @api_client.config.debugging
777
- @api_client.config.logger.debug "API called: OrgsApi#orgs_saml_group_sync_create\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
794
+ @api_client.config.logger.debug "API called: OrgsApi#orgs_license_policy_violation_list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
778
795
  end
779
796
  return data, status_code, headers
780
797
  end
781
- # Delete a SAML Group Sync mapping from an organization.
782
- # Delete a SAML Group Sync mapping from an organization.
783
- # @param org
784
- # @param slug_perm
798
+ # Get a list of all the organizations you are associated with.
799
+ # Get a list of all the organizations you are associated with.
785
800
  # @param [Hash] opts the optional parameters
786
- # @return [nil]
787
- def orgs_saml_group_sync_delete(org, slug_perm, opts = {})
788
- orgs_saml_group_sync_delete_with_http_info(org, slug_perm, opts)
789
- nil
801
+ # @option opts [Integer] :page A page number within the paginated result set.
802
+ # @option opts [Integer] :page_size Number of results to return per page.
803
+ # @return [Array<Organization>]
804
+ def orgs_list(opts = {})
805
+ data, _status_code, _headers = orgs_list_with_http_info(opts)
806
+ data
790
807
  end
791
808
 
792
- # Delete a SAML Group Sync mapping from an organization.
793
- # Delete a SAML Group Sync mapping from an organization.
794
- # @param org
795
- # @param slug_perm
809
+ # Get a list of all the organizations you are associated with.
810
+ # Get a list of all the organizations you are associated with.
796
811
  # @param [Hash] opts the optional parameters
797
- # @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
798
- def orgs_saml_group_sync_delete_with_http_info(org, slug_perm, opts = {})
812
+ # @option opts [Integer] :page A page number within the paginated result set.
813
+ # @option opts [Integer] :page_size Number of results to return per page.
814
+ # @return [Array<(Array<Organization>, Fixnum, Hash)>] Array<Organization> data, response status code and response headers
815
+ def orgs_list_with_http_info(opts = {})
799
816
  if @api_client.config.debugging
800
- @api_client.config.logger.debug 'Calling API: OrgsApi.orgs_saml_group_sync_delete ...'
801
- end
802
- # verify the required parameter 'org' is set
803
- if @api_client.config.client_side_validation && org.nil?
804
- fail ArgumentError, "Missing the required parameter 'org' when calling OrgsApi.orgs_saml_group_sync_delete"
805
- end
806
- # verify the required parameter 'slug_perm' is set
807
- if @api_client.config.client_side_validation && slug_perm.nil?
808
- fail ArgumentError, "Missing the required parameter 'slug_perm' when calling OrgsApi.orgs_saml_group_sync_delete"
817
+ @api_client.config.logger.debug 'Calling API: OrgsApi.orgs_list ...'
809
818
  end
810
819
  # resource path
811
- local_var_path = '/orgs/{org}/saml-group-sync/{slug_perm}/'.sub('{' + 'org' + '}', org.to_s).sub('{' + 'slug_perm' + '}', slug_perm.to_s)
820
+ local_var_path = '/orgs/'
812
821
 
813
822
  # query parameters
814
823
  query_params = {}
824
+ query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil?
825
+ query_params[:'page_size'] = opts[:'page_size'] if !opts[:'page_size'].nil?
815
826
 
816
827
  # header parameters
817
828
  header_params = {}
@@ -826,51 +837,52 @@ module CloudsmithApi
826
837
  # http body (model)
827
838
  post_body = nil
828
839
  auth_names = ['apikey']
829
- data, status_code, headers = @api_client.call_api(:DELETE, local_var_path,
840
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
830
841
  :header_params => header_params,
831
842
  :query_params => query_params,
832
843
  :form_params => form_params,
833
844
  :body => post_body,
834
- :auth_names => auth_names)
845
+ :auth_names => auth_names,
846
+ :return_type => 'Array<Organization>')
835
847
  if @api_client.config.debugging
836
- @api_client.config.logger.debug "API called: OrgsApi#orgs_saml_group_sync_delete\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
848
+ @api_client.config.logger.debug "API called: OrgsApi#orgs_list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
837
849
  end
838
850
  return data, status_code, headers
839
851
  end
840
- # Get the details of all SAML Group Sync mapping within an organization.
841
- # Get the details of all SAML Group Sync mapping within an organization.
852
+ # Removes a member from the organization.
853
+ # Removes a member from the organization.
842
854
  # @param org
855
+ # @param member
843
856
  # @param [Hash] opts the optional parameters
844
- # @option opts [Integer] :page A page number within the paginated result set.
845
- # @option opts [Integer] :page_size Number of results to return per page.
846
- # @return [Array<OrganizationGroupSync>]
847
- def orgs_saml_group_sync_list(org, opts = {})
848
- data, _status_code, _headers = orgs_saml_group_sync_list_with_http_info(org, opts)
849
- data
857
+ # @return [nil]
858
+ def orgs_members_delete(org, member, opts = {})
859
+ orgs_members_delete_with_http_info(org, member, opts)
860
+ nil
850
861
  end
851
862
 
852
- # Get the details of all SAML Group Sync mapping within an organization.
853
- # Get the details of all SAML Group Sync mapping within an organization.
863
+ # Removes a member from the organization.
864
+ # Removes a member from the organization.
854
865
  # @param org
866
+ # @param member
855
867
  # @param [Hash] opts the optional parameters
856
- # @option opts [Integer] :page A page number within the paginated result set.
857
- # @option opts [Integer] :page_size Number of results to return per page.
858
- # @return [Array<(Array<OrganizationGroupSync>, Fixnum, Hash)>] Array<OrganizationGroupSync> data, response status code and response headers
859
- def orgs_saml_group_sync_list_with_http_info(org, opts = {})
868
+ # @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
869
+ def orgs_members_delete_with_http_info(org, member, opts = {})
860
870
  if @api_client.config.debugging
861
- @api_client.config.logger.debug 'Calling API: OrgsApi.orgs_saml_group_sync_list ...'
871
+ @api_client.config.logger.debug 'Calling API: OrgsApi.orgs_members_delete ...'
862
872
  end
863
873
  # verify the required parameter 'org' is set
864
874
  if @api_client.config.client_side_validation && org.nil?
865
- fail ArgumentError, "Missing the required parameter 'org' when calling OrgsApi.orgs_saml_group_sync_list"
875
+ fail ArgumentError, "Missing the required parameter 'org' when calling OrgsApi.orgs_members_delete"
876
+ end
877
+ # verify the required parameter 'member' is set
878
+ if @api_client.config.client_side_validation && member.nil?
879
+ fail ArgumentError, "Missing the required parameter 'member' when calling OrgsApi.orgs_members_delete"
866
880
  end
867
881
  # resource path
868
- local_var_path = '/orgs/{org}/saml-group-sync/'.sub('{' + 'org' + '}', org.to_s)
882
+ local_var_path = '/orgs/{org}/members/{member}/'.sub('{' + 'org' + '}', org.to_s).sub('{' + 'member' + '}', member.to_s)
869
883
 
870
884
  # query parameters
871
885
  query_params = {}
872
- query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil?
873
- query_params[:'page_size'] = opts[:'page_size'] if !opts[:'page_size'].nil?
874
886
 
875
887
  # header parameters
876
888
  header_params = {}
@@ -885,45 +897,809 @@ module CloudsmithApi
885
897
  # http body (model)
886
898
  post_body = nil
887
899
  auth_names = ['apikey']
888
- data, status_code, headers = @api_client.call_api(:GET, local_var_path,
900
+ data, status_code, headers = @api_client.call_api(:DELETE, local_var_path,
889
901
  :header_params => header_params,
890
902
  :query_params => query_params,
891
903
  :form_params => form_params,
892
904
  :body => post_body,
893
- :auth_names => auth_names,
894
- :return_type => 'Array<OrganizationGroupSync>')
905
+ :auth_names => auth_names)
895
906
  if @api_client.config.debugging
896
- @api_client.config.logger.debug "API called: OrgsApi#orgs_saml_group_sync_list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
907
+ @api_client.config.logger.debug "API called: OrgsApi#orgs_members_delete\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
897
908
  end
898
909
  return data, status_code, headers
899
910
  end
911
+ # Get the details for all organization members.
912
+ # Get the details for all organization members.
913
+ # @param org
914
+ # @param [Hash] opts the optional parameters
915
+ # @option opts [Integer] :page A page number within the paginated result set.
916
+ # @option opts [Integer] :page_size Number of results to return per page.
917
+ # @return [Array<OrganizationMembership>]
918
+ def orgs_members_list(org, opts = {})
919
+ data, _status_code, _headers = orgs_members_list_with_http_info(org, opts)
920
+ data
921
+ end
922
+
923
+ # Get the details for all organization members.
924
+ # Get the details for all organization members.
925
+ # @param org
926
+ # @param [Hash] opts the optional parameters
927
+ # @option opts [Integer] :page A page number within the paginated result set.
928
+ # @option opts [Integer] :page_size Number of results to return per page.
929
+ # @return [Array<(Array<OrganizationMembership>, Fixnum, Hash)>] Array<OrganizationMembership> data, response status code and response headers
930
+ def orgs_members_list_with_http_info(org, opts = {})
931
+ if @api_client.config.debugging
932
+ @api_client.config.logger.debug 'Calling API: OrgsApi.orgs_members_list ...'
933
+ end
934
+ # verify the required parameter 'org' is set
935
+ if @api_client.config.client_side_validation && org.nil?
936
+ fail ArgumentError, "Missing the required parameter 'org' when calling OrgsApi.orgs_members_list"
937
+ end
938
+ # resource path
939
+ local_var_path = '/orgs/{org}/members/'.sub('{' + 'org' + '}', org.to_s)
940
+
941
+ # query parameters
942
+ query_params = {}
943
+ query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil?
944
+ query_params[:'page_size'] = opts[:'page_size'] if !opts[:'page_size'].nil?
945
+
946
+ # header parameters
947
+ header_params = {}
948
+ # HTTP header 'Accept' (if needed)
949
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
950
+ # HTTP header 'Content-Type'
951
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
952
+
953
+ # form parameters
954
+ form_params = {}
955
+
956
+ # http body (model)
957
+ post_body = nil
958
+ auth_names = ['apikey']
959
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
960
+ :header_params => header_params,
961
+ :query_params => query_params,
962
+ :form_params => form_params,
963
+ :body => post_body,
964
+ :auth_names => auth_names,
965
+ :return_type => 'Array<OrganizationMembership>')
966
+ if @api_client.config.debugging
967
+ @api_client.config.logger.debug "API called: OrgsApi#orgs_members_list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
968
+ end
969
+ return data, status_code, headers
970
+ end
971
+ # Get the details for a specific organization member.
972
+ # Get the details for a specific organization member.
973
+ # @param org
974
+ # @param member
975
+ # @param [Hash] opts the optional parameters
976
+ # @return [OrganizationMembership]
977
+ def orgs_members_read(org, member, opts = {})
978
+ data, _status_code, _headers = orgs_members_read_with_http_info(org, member, opts)
979
+ data
980
+ end
981
+
982
+ # Get the details for a specific organization member.
983
+ # Get the details for a specific organization member.
984
+ # @param org
985
+ # @param member
986
+ # @param [Hash] opts the optional parameters
987
+ # @return [Array<(OrganizationMembership, Fixnum, Hash)>] OrganizationMembership data, response status code and response headers
988
+ def orgs_members_read_with_http_info(org, member, opts = {})
989
+ if @api_client.config.debugging
990
+ @api_client.config.logger.debug 'Calling API: OrgsApi.orgs_members_read ...'
991
+ end
992
+ # verify the required parameter 'org' is set
993
+ if @api_client.config.client_side_validation && org.nil?
994
+ fail ArgumentError, "Missing the required parameter 'org' when calling OrgsApi.orgs_members_read"
995
+ end
996
+ # verify the required parameter 'member' is set
997
+ if @api_client.config.client_side_validation && member.nil?
998
+ fail ArgumentError, "Missing the required parameter 'member' when calling OrgsApi.orgs_members_read"
999
+ end
1000
+ # resource path
1001
+ local_var_path = '/orgs/{org}/members/{member}/'.sub('{' + 'org' + '}', org.to_s).sub('{' + 'member' + '}', member.to_s)
1002
+
1003
+ # query parameters
1004
+ query_params = {}
1005
+
1006
+ # header parameters
1007
+ header_params = {}
1008
+ # HTTP header 'Accept' (if needed)
1009
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
1010
+ # HTTP header 'Content-Type'
1011
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
1012
+
1013
+ # form parameters
1014
+ form_params = {}
1015
+
1016
+ # http body (model)
1017
+ post_body = nil
1018
+ auth_names = ['apikey']
1019
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
1020
+ :header_params => header_params,
1021
+ :query_params => query_params,
1022
+ :form_params => form_params,
1023
+ :body => post_body,
1024
+ :auth_names => auth_names,
1025
+ :return_type => 'OrganizationMembership')
1026
+ if @api_client.config.debugging
1027
+ @api_client.config.logger.debug "API called: OrgsApi#orgs_members_read\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1028
+ end
1029
+ return data, status_code, headers
1030
+ end
1031
+ # Removes a member from the organization (deprecated, use DELETE instead).
1032
+ # Removes a member from the organization (deprecated, use DELETE instead).
1033
+ # @param org
1034
+ # @param member
1035
+ # @param [Hash] opts the optional parameters
1036
+ # @return [nil]
1037
+ def orgs_members_remove(org, member, opts = {})
1038
+ orgs_members_remove_with_http_info(org, member, opts)
1039
+ nil
1040
+ end
1041
+
1042
+ # Removes a member from the organization (deprecated, use DELETE instead).
1043
+ # Removes a member from the organization (deprecated, use DELETE instead).
1044
+ # @param org
1045
+ # @param member
1046
+ # @param [Hash] opts the optional parameters
1047
+ # @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
1048
+ def orgs_members_remove_with_http_info(org, member, opts = {})
1049
+ if @api_client.config.debugging
1050
+ @api_client.config.logger.debug 'Calling API: OrgsApi.orgs_members_remove ...'
1051
+ end
1052
+ # verify the required parameter 'org' is set
1053
+ if @api_client.config.client_side_validation && org.nil?
1054
+ fail ArgumentError, "Missing the required parameter 'org' when calling OrgsApi.orgs_members_remove"
1055
+ end
1056
+ # verify the required parameter 'member' is set
1057
+ if @api_client.config.client_side_validation && member.nil?
1058
+ fail ArgumentError, "Missing the required parameter 'member' when calling OrgsApi.orgs_members_remove"
1059
+ end
1060
+ # resource path
1061
+ local_var_path = '/orgs/{org}/members/{member}/remove/'.sub('{' + 'org' + '}', org.to_s).sub('{' + 'member' + '}', member.to_s)
1062
+
1063
+ # query parameters
1064
+ query_params = {}
1065
+
1066
+ # header parameters
1067
+ header_params = {}
1068
+ # HTTP header 'Accept' (if needed)
1069
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
1070
+ # HTTP header 'Content-Type'
1071
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
1072
+
1073
+ # form parameters
1074
+ form_params = {}
1075
+
1076
+ # http body (model)
1077
+ post_body = nil
1078
+ auth_names = ['apikey']
1079
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
1080
+ :header_params => header_params,
1081
+ :query_params => query_params,
1082
+ :form_params => form_params,
1083
+ :body => post_body,
1084
+ :auth_names => auth_names)
1085
+ if @api_client.config.debugging
1086
+ @api_client.config.logger.debug "API called: OrgsApi#orgs_members_remove\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1087
+ end
1088
+ return data, status_code, headers
1089
+ end
1090
+ # Get the details for the specific organization.
1091
+ # Get the details for the specific organization.
1092
+ # @param org
1093
+ # @param [Hash] opts the optional parameters
1094
+ # @return [Organization]
1095
+ def orgs_read(org, opts = {})
1096
+ data, _status_code, _headers = orgs_read_with_http_info(org, opts)
1097
+ data
1098
+ end
1099
+
1100
+ # Get the details for the specific organization.
1101
+ # Get the details for the specific organization.
1102
+ # @param org
1103
+ # @param [Hash] opts the optional parameters
1104
+ # @return [Array<(Organization, Fixnum, Hash)>] Organization data, response status code and response headers
1105
+ def orgs_read_with_http_info(org, opts = {})
1106
+ if @api_client.config.debugging
1107
+ @api_client.config.logger.debug 'Calling API: OrgsApi.orgs_read ...'
1108
+ end
1109
+ # verify the required parameter 'org' is set
1110
+ if @api_client.config.client_side_validation && org.nil?
1111
+ fail ArgumentError, "Missing the required parameter 'org' when calling OrgsApi.orgs_read"
1112
+ end
1113
+ # resource path
1114
+ local_var_path = '/orgs/{org}/'.sub('{' + 'org' + '}', org.to_s)
1115
+
1116
+ # query parameters
1117
+ query_params = {}
1118
+
1119
+ # header parameters
1120
+ header_params = {}
1121
+ # HTTP header 'Accept' (if needed)
1122
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
1123
+ # HTTP header 'Content-Type'
1124
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
1125
+
1126
+ # form parameters
1127
+ form_params = {}
1128
+
1129
+ # http body (model)
1130
+ post_body = nil
1131
+ auth_names = ['apikey']
1132
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
1133
+ :header_params => header_params,
1134
+ :query_params => query_params,
1135
+ :form_params => form_params,
1136
+ :body => post_body,
1137
+ :auth_names => auth_names,
1138
+ :return_type => 'Organization')
1139
+ if @api_client.config.debugging
1140
+ @api_client.config.logger.debug "API called: OrgsApi#orgs_read\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1141
+ end
1142
+ return data, status_code, headers
1143
+ end
1144
+ # Create a new SAML Group Sync mapping within an organization.
1145
+ # Create a new SAML Group Sync mapping within an organization.
1146
+ # @param org
1147
+ # @param [Hash] opts the optional parameters
1148
+ # @option opts [OrganizationGroupSyncRequest] :data
1149
+ # @return [OrganizationGroupSync]
1150
+ def orgs_saml_group_sync_create(org, opts = {})
1151
+ data, _status_code, _headers = orgs_saml_group_sync_create_with_http_info(org, opts)
1152
+ data
1153
+ end
1154
+
1155
+ # Create a new SAML Group Sync mapping within an organization.
1156
+ # Create a new SAML Group Sync mapping within an organization.
1157
+ # @param org
1158
+ # @param [Hash] opts the optional parameters
1159
+ # @option opts [OrganizationGroupSyncRequest] :data
1160
+ # @return [Array<(OrganizationGroupSync, Fixnum, Hash)>] OrganizationGroupSync data, response status code and response headers
1161
+ def orgs_saml_group_sync_create_with_http_info(org, opts = {})
1162
+ if @api_client.config.debugging
1163
+ @api_client.config.logger.debug 'Calling API: OrgsApi.orgs_saml_group_sync_create ...'
1164
+ end
1165
+ # verify the required parameter 'org' is set
1166
+ if @api_client.config.client_side_validation && org.nil?
1167
+ fail ArgumentError, "Missing the required parameter 'org' when calling OrgsApi.orgs_saml_group_sync_create"
1168
+ end
1169
+ # resource path
1170
+ local_var_path = '/orgs/{org}/saml-group-sync/'.sub('{' + 'org' + '}', org.to_s)
1171
+
1172
+ # query parameters
1173
+ query_params = {}
1174
+
1175
+ # header parameters
1176
+ header_params = {}
1177
+ # HTTP header 'Accept' (if needed)
1178
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
1179
+ # HTTP header 'Content-Type'
1180
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
1181
+
1182
+ # form parameters
1183
+ form_params = {}
1184
+
1185
+ # http body (model)
1186
+ post_body = @api_client.object_to_http_body(opts[:'data'])
1187
+ auth_names = ['apikey']
1188
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
1189
+ :header_params => header_params,
1190
+ :query_params => query_params,
1191
+ :form_params => form_params,
1192
+ :body => post_body,
1193
+ :auth_names => auth_names,
1194
+ :return_type => 'OrganizationGroupSync')
1195
+ if @api_client.config.debugging
1196
+ @api_client.config.logger.debug "API called: OrgsApi#orgs_saml_group_sync_create\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1197
+ end
1198
+ return data, status_code, headers
1199
+ end
1200
+ # Delete a SAML Group Sync mapping from an organization.
1201
+ # Delete a SAML Group Sync mapping from an organization.
1202
+ # @param org
1203
+ # @param slug_perm
1204
+ # @param [Hash] opts the optional parameters
1205
+ # @return [nil]
1206
+ def orgs_saml_group_sync_delete(org, slug_perm, opts = {})
1207
+ orgs_saml_group_sync_delete_with_http_info(org, slug_perm, opts)
1208
+ nil
1209
+ end
1210
+
1211
+ # Delete a SAML Group Sync mapping from an organization.
1212
+ # Delete a SAML Group Sync mapping from an organization.
1213
+ # @param org
1214
+ # @param slug_perm
1215
+ # @param [Hash] opts the optional parameters
1216
+ # @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
1217
+ def orgs_saml_group_sync_delete_with_http_info(org, slug_perm, opts = {})
1218
+ if @api_client.config.debugging
1219
+ @api_client.config.logger.debug 'Calling API: OrgsApi.orgs_saml_group_sync_delete ...'
1220
+ end
1221
+ # verify the required parameter 'org' is set
1222
+ if @api_client.config.client_side_validation && org.nil?
1223
+ fail ArgumentError, "Missing the required parameter 'org' when calling OrgsApi.orgs_saml_group_sync_delete"
1224
+ end
1225
+ # verify the required parameter 'slug_perm' is set
1226
+ if @api_client.config.client_side_validation && slug_perm.nil?
1227
+ fail ArgumentError, "Missing the required parameter 'slug_perm' when calling OrgsApi.orgs_saml_group_sync_delete"
1228
+ end
1229
+ # resource path
1230
+ local_var_path = '/orgs/{org}/saml-group-sync/{slug_perm}/'.sub('{' + 'org' + '}', org.to_s).sub('{' + 'slug_perm' + '}', slug_perm.to_s)
1231
+
1232
+ # query parameters
1233
+ query_params = {}
1234
+
1235
+ # header parameters
1236
+ header_params = {}
1237
+ # HTTP header 'Accept' (if needed)
1238
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
1239
+ # HTTP header 'Content-Type'
1240
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
1241
+
1242
+ # form parameters
1243
+ form_params = {}
1244
+
1245
+ # http body (model)
1246
+ post_body = nil
1247
+ auth_names = ['apikey']
1248
+ data, status_code, headers = @api_client.call_api(:DELETE, local_var_path,
1249
+ :header_params => header_params,
1250
+ :query_params => query_params,
1251
+ :form_params => form_params,
1252
+ :body => post_body,
1253
+ :auth_names => auth_names)
1254
+ if @api_client.config.debugging
1255
+ @api_client.config.logger.debug "API called: OrgsApi#orgs_saml_group_sync_delete\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1256
+ end
1257
+ return data, status_code, headers
1258
+ end
1259
+ # Get the details of all SAML Group Sync mapping within an organization.
1260
+ # Get the details of all SAML Group Sync mapping within an organization.
1261
+ # @param org
1262
+ # @param [Hash] opts the optional parameters
1263
+ # @option opts [Integer] :page A page number within the paginated result set.
1264
+ # @option opts [Integer] :page_size Number of results to return per page.
1265
+ # @return [Array<OrganizationGroupSync>]
1266
+ def orgs_saml_group_sync_list(org, opts = {})
1267
+ data, _status_code, _headers = orgs_saml_group_sync_list_with_http_info(org, opts)
1268
+ data
1269
+ end
1270
+
1271
+ # Get the details of all SAML Group Sync mapping within an organization.
1272
+ # Get the details of all SAML Group Sync mapping within an organization.
1273
+ # @param org
1274
+ # @param [Hash] opts the optional parameters
1275
+ # @option opts [Integer] :page A page number within the paginated result set.
1276
+ # @option opts [Integer] :page_size Number of results to return per page.
1277
+ # @return [Array<(Array<OrganizationGroupSync>, Fixnum, Hash)>] Array<OrganizationGroupSync> data, response status code and response headers
1278
+ def orgs_saml_group_sync_list_with_http_info(org, opts = {})
1279
+ if @api_client.config.debugging
1280
+ @api_client.config.logger.debug 'Calling API: OrgsApi.orgs_saml_group_sync_list ...'
1281
+ end
1282
+ # verify the required parameter 'org' is set
1283
+ if @api_client.config.client_side_validation && org.nil?
1284
+ fail ArgumentError, "Missing the required parameter 'org' when calling OrgsApi.orgs_saml_group_sync_list"
1285
+ end
1286
+ # resource path
1287
+ local_var_path = '/orgs/{org}/saml-group-sync/'.sub('{' + 'org' + '}', org.to_s)
1288
+
1289
+ # query parameters
1290
+ query_params = {}
1291
+ query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil?
1292
+ query_params[:'page_size'] = opts[:'page_size'] if !opts[:'page_size'].nil?
1293
+
1294
+ # header parameters
1295
+ header_params = {}
1296
+ # HTTP header 'Accept' (if needed)
1297
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
1298
+ # HTTP header 'Content-Type'
1299
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
1300
+
1301
+ # form parameters
1302
+ form_params = {}
1303
+
1304
+ # http body (model)
1305
+ post_body = nil
1306
+ auth_names = ['apikey']
1307
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
1308
+ :header_params => header_params,
1309
+ :query_params => query_params,
1310
+ :form_params => form_params,
1311
+ :body => post_body,
1312
+ :auth_names => auth_names,
1313
+ :return_type => 'Array<OrganizationGroupSync>')
1314
+ if @api_client.config.debugging
1315
+ @api_client.config.logger.debug "API called: OrgsApi#orgs_saml_group_sync_list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1316
+ end
1317
+ return data, status_code, headers
1318
+ end
1319
+ # Create a service within an organization.
1320
+ # Create a service within an organization.
1321
+ # @param org
1322
+ # @param [Hash] opts the optional parameters
1323
+ # @option opts [ServiceRequest] :data
1324
+ # @return [Service]
1325
+ def orgs_services_create(org, opts = {})
1326
+ data, _status_code, _headers = orgs_services_create_with_http_info(org, opts)
1327
+ data
1328
+ end
1329
+
900
1330
  # Create a service within an organization.
901
- # Create a service within an organization.
1331
+ # Create a service within an organization.
1332
+ # @param org
1333
+ # @param [Hash] opts the optional parameters
1334
+ # @option opts [ServiceRequest] :data
1335
+ # @return [Array<(Service, Fixnum, Hash)>] Service data, response status code and response headers
1336
+ def orgs_services_create_with_http_info(org, opts = {})
1337
+ if @api_client.config.debugging
1338
+ @api_client.config.logger.debug 'Calling API: OrgsApi.orgs_services_create ...'
1339
+ end
1340
+ # verify the required parameter 'org' is set
1341
+ if @api_client.config.client_side_validation && org.nil?
1342
+ fail ArgumentError, "Missing the required parameter 'org' when calling OrgsApi.orgs_services_create"
1343
+ end
1344
+ # resource path
1345
+ local_var_path = '/orgs/{org}/services/'.sub('{' + 'org' + '}', org.to_s)
1346
+
1347
+ # query parameters
1348
+ query_params = {}
1349
+
1350
+ # header parameters
1351
+ header_params = {}
1352
+ # HTTP header 'Accept' (if needed)
1353
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
1354
+ # HTTP header 'Content-Type'
1355
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
1356
+
1357
+ # form parameters
1358
+ form_params = {}
1359
+
1360
+ # http body (model)
1361
+ post_body = @api_client.object_to_http_body(opts[:'data'])
1362
+ auth_names = ['apikey']
1363
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
1364
+ :header_params => header_params,
1365
+ :query_params => query_params,
1366
+ :form_params => form_params,
1367
+ :body => post_body,
1368
+ :auth_names => auth_names,
1369
+ :return_type => 'Service')
1370
+ if @api_client.config.debugging
1371
+ @api_client.config.logger.debug "API called: OrgsApi#orgs_services_create\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1372
+ end
1373
+ return data, status_code, headers
1374
+ end
1375
+ # Delete a specific service
1376
+ # Delete a specific service
1377
+ # @param org
1378
+ # @param service
1379
+ # @param [Hash] opts the optional parameters
1380
+ # @return [nil]
1381
+ def orgs_services_delete(org, service, opts = {})
1382
+ orgs_services_delete_with_http_info(org, service, opts)
1383
+ nil
1384
+ end
1385
+
1386
+ # Delete a specific service
1387
+ # Delete a specific service
1388
+ # @param org
1389
+ # @param service
1390
+ # @param [Hash] opts the optional parameters
1391
+ # @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
1392
+ def orgs_services_delete_with_http_info(org, service, opts = {})
1393
+ if @api_client.config.debugging
1394
+ @api_client.config.logger.debug 'Calling API: OrgsApi.orgs_services_delete ...'
1395
+ end
1396
+ # verify the required parameter 'org' is set
1397
+ if @api_client.config.client_side_validation && org.nil?
1398
+ fail ArgumentError, "Missing the required parameter 'org' when calling OrgsApi.orgs_services_delete"
1399
+ end
1400
+ # verify the required parameter 'service' is set
1401
+ if @api_client.config.client_side_validation && service.nil?
1402
+ fail ArgumentError, "Missing the required parameter 'service' when calling OrgsApi.orgs_services_delete"
1403
+ end
1404
+ # resource path
1405
+ local_var_path = '/orgs/{org}/services/{service}/'.sub('{' + 'org' + '}', org.to_s).sub('{' + 'service' + '}', service.to_s)
1406
+
1407
+ # query parameters
1408
+ query_params = {}
1409
+
1410
+ # header parameters
1411
+ header_params = {}
1412
+ # HTTP header 'Accept' (if needed)
1413
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
1414
+ # HTTP header 'Content-Type'
1415
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
1416
+
1417
+ # form parameters
1418
+ form_params = {}
1419
+
1420
+ # http body (model)
1421
+ post_body = nil
1422
+ auth_names = ['apikey']
1423
+ data, status_code, headers = @api_client.call_api(:DELETE, local_var_path,
1424
+ :header_params => header_params,
1425
+ :query_params => query_params,
1426
+ :form_params => form_params,
1427
+ :body => post_body,
1428
+ :auth_names => auth_names)
1429
+ if @api_client.config.debugging
1430
+ @api_client.config.logger.debug "API called: OrgsApi#orgs_services_delete\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1431
+ end
1432
+ return data, status_code, headers
1433
+ end
1434
+ # Get a list of all services within an organization.
1435
+ # Get a list of all services within an organization.
1436
+ # @param org
1437
+ # @param [Hash] opts the optional parameters
1438
+ # @option opts [Integer] :page A page number within the paginated result set.
1439
+ # @option opts [Integer] :page_size Number of results to return per page.
1440
+ # @return [Array<Service>]
1441
+ def orgs_services_list(org, opts = {})
1442
+ data, _status_code, _headers = orgs_services_list_with_http_info(org, opts)
1443
+ data
1444
+ end
1445
+
1446
+ # Get a list of all services within an organization.
1447
+ # Get a list of all services within an organization.
1448
+ # @param org
1449
+ # @param [Hash] opts the optional parameters
1450
+ # @option opts [Integer] :page A page number within the paginated result set.
1451
+ # @option opts [Integer] :page_size Number of results to return per page.
1452
+ # @return [Array<(Array<Service>, Fixnum, Hash)>] Array<Service> data, response status code and response headers
1453
+ def orgs_services_list_with_http_info(org, opts = {})
1454
+ if @api_client.config.debugging
1455
+ @api_client.config.logger.debug 'Calling API: OrgsApi.orgs_services_list ...'
1456
+ end
1457
+ # verify the required parameter 'org' is set
1458
+ if @api_client.config.client_side_validation && org.nil?
1459
+ fail ArgumentError, "Missing the required parameter 'org' when calling OrgsApi.orgs_services_list"
1460
+ end
1461
+ # resource path
1462
+ local_var_path = '/orgs/{org}/services/'.sub('{' + 'org' + '}', org.to_s)
1463
+
1464
+ # query parameters
1465
+ query_params = {}
1466
+ query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil?
1467
+ query_params[:'page_size'] = opts[:'page_size'] if !opts[:'page_size'].nil?
1468
+
1469
+ # header parameters
1470
+ header_params = {}
1471
+ # HTTP header 'Accept' (if needed)
1472
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
1473
+ # HTTP header 'Content-Type'
1474
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
1475
+
1476
+ # form parameters
1477
+ form_params = {}
1478
+
1479
+ # http body (model)
1480
+ post_body = nil
1481
+ auth_names = ['apikey']
1482
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
1483
+ :header_params => header_params,
1484
+ :query_params => query_params,
1485
+ :form_params => form_params,
1486
+ :body => post_body,
1487
+ :auth_names => auth_names,
1488
+ :return_type => 'Array<Service>')
1489
+ if @api_client.config.debugging
1490
+ @api_client.config.logger.debug "API called: OrgsApi#orgs_services_list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1491
+ end
1492
+ return data, status_code, headers
1493
+ end
1494
+ # Update a service within an organization.
1495
+ # Update a service within an organization.
1496
+ # @param org
1497
+ # @param service
1498
+ # @param [Hash] opts the optional parameters
1499
+ # @option opts [ServiceRequestPatch] :data
1500
+ # @return [Service]
1501
+ def orgs_services_partial_update(org, service, opts = {})
1502
+ data, _status_code, _headers = orgs_services_partial_update_with_http_info(org, service, opts)
1503
+ data
1504
+ end
1505
+
1506
+ # Update a service within an organization.
1507
+ # Update a service within an organization.
1508
+ # @param org
1509
+ # @param service
1510
+ # @param [Hash] opts the optional parameters
1511
+ # @option opts [ServiceRequestPatch] :data
1512
+ # @return [Array<(Service, Fixnum, Hash)>] Service data, response status code and response headers
1513
+ def orgs_services_partial_update_with_http_info(org, service, opts = {})
1514
+ if @api_client.config.debugging
1515
+ @api_client.config.logger.debug 'Calling API: OrgsApi.orgs_services_partial_update ...'
1516
+ end
1517
+ # verify the required parameter 'org' is set
1518
+ if @api_client.config.client_side_validation && org.nil?
1519
+ fail ArgumentError, "Missing the required parameter 'org' when calling OrgsApi.orgs_services_partial_update"
1520
+ end
1521
+ # verify the required parameter 'service' is set
1522
+ if @api_client.config.client_side_validation && service.nil?
1523
+ fail ArgumentError, "Missing the required parameter 'service' when calling OrgsApi.orgs_services_partial_update"
1524
+ end
1525
+ # resource path
1526
+ local_var_path = '/orgs/{org}/services/{service}/'.sub('{' + 'org' + '}', org.to_s).sub('{' + 'service' + '}', service.to_s)
1527
+
1528
+ # query parameters
1529
+ query_params = {}
1530
+
1531
+ # header parameters
1532
+ header_params = {}
1533
+ # HTTP header 'Accept' (if needed)
1534
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
1535
+ # HTTP header 'Content-Type'
1536
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
1537
+
1538
+ # form parameters
1539
+ form_params = {}
1540
+
1541
+ # http body (model)
1542
+ post_body = @api_client.object_to_http_body(opts[:'data'])
1543
+ auth_names = ['apikey']
1544
+ data, status_code, headers = @api_client.call_api(:PATCH, local_var_path,
1545
+ :header_params => header_params,
1546
+ :query_params => query_params,
1547
+ :form_params => form_params,
1548
+ :body => post_body,
1549
+ :auth_names => auth_names,
1550
+ :return_type => 'Service')
1551
+ if @api_client.config.debugging
1552
+ @api_client.config.logger.debug "API called: OrgsApi#orgs_services_partial_update\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1553
+ end
1554
+ return data, status_code, headers
1555
+ end
1556
+ # Retrieve details of a single service within an organization.
1557
+ # Retrieve details of a single service within an organization.
1558
+ # @param org
1559
+ # @param service
1560
+ # @param [Hash] opts the optional parameters
1561
+ # @return [Service]
1562
+ def orgs_services_read(org, service, opts = {})
1563
+ data, _status_code, _headers = orgs_services_read_with_http_info(org, service, opts)
1564
+ data
1565
+ end
1566
+
1567
+ # Retrieve details of a single service within an organization.
1568
+ # Retrieve details of a single service within an organization.
1569
+ # @param org
1570
+ # @param service
1571
+ # @param [Hash] opts the optional parameters
1572
+ # @return [Array<(Service, Fixnum, Hash)>] Service data, response status code and response headers
1573
+ def orgs_services_read_with_http_info(org, service, opts = {})
1574
+ if @api_client.config.debugging
1575
+ @api_client.config.logger.debug 'Calling API: OrgsApi.orgs_services_read ...'
1576
+ end
1577
+ # verify the required parameter 'org' is set
1578
+ if @api_client.config.client_side_validation && org.nil?
1579
+ fail ArgumentError, "Missing the required parameter 'org' when calling OrgsApi.orgs_services_read"
1580
+ end
1581
+ # verify the required parameter 'service' is set
1582
+ if @api_client.config.client_side_validation && service.nil?
1583
+ fail ArgumentError, "Missing the required parameter 'service' when calling OrgsApi.orgs_services_read"
1584
+ end
1585
+ # resource path
1586
+ local_var_path = '/orgs/{org}/services/{service}/'.sub('{' + 'org' + '}', org.to_s).sub('{' + 'service' + '}', service.to_s)
1587
+
1588
+ # query parameters
1589
+ query_params = {}
1590
+
1591
+ # header parameters
1592
+ header_params = {}
1593
+ # HTTP header 'Accept' (if needed)
1594
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
1595
+ # HTTP header 'Content-Type'
1596
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
1597
+
1598
+ # form parameters
1599
+ form_params = {}
1600
+
1601
+ # http body (model)
1602
+ post_body = nil
1603
+ auth_names = ['apikey']
1604
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
1605
+ :header_params => header_params,
1606
+ :query_params => query_params,
1607
+ :form_params => form_params,
1608
+ :body => post_body,
1609
+ :auth_names => auth_names,
1610
+ :return_type => 'Service')
1611
+ if @api_client.config.debugging
1612
+ @api_client.config.logger.debug "API called: OrgsApi#orgs_services_read\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1613
+ end
1614
+ return data, status_code, headers
1615
+ end
1616
+ # Refresh service API token.
1617
+ # Refresh service API token.
1618
+ # @param org
1619
+ # @param service
1620
+ # @param [Hash] opts the optional parameters
1621
+ # @return [Service]
1622
+ def orgs_services_refresh(org, service, opts = {})
1623
+ data, _status_code, _headers = orgs_services_refresh_with_http_info(org, service, opts)
1624
+ data
1625
+ end
1626
+
1627
+ # Refresh service API token.
1628
+ # Refresh service API token.
1629
+ # @param org
1630
+ # @param service
1631
+ # @param [Hash] opts the optional parameters
1632
+ # @return [Array<(Service, Fixnum, Hash)>] Service data, response status code and response headers
1633
+ def orgs_services_refresh_with_http_info(org, service, opts = {})
1634
+ if @api_client.config.debugging
1635
+ @api_client.config.logger.debug 'Calling API: OrgsApi.orgs_services_refresh ...'
1636
+ end
1637
+ # verify the required parameter 'org' is set
1638
+ if @api_client.config.client_side_validation && org.nil?
1639
+ fail ArgumentError, "Missing the required parameter 'org' when calling OrgsApi.orgs_services_refresh"
1640
+ end
1641
+ # verify the required parameter 'service' is set
1642
+ if @api_client.config.client_side_validation && service.nil?
1643
+ fail ArgumentError, "Missing the required parameter 'service' when calling OrgsApi.orgs_services_refresh"
1644
+ end
1645
+ # resource path
1646
+ local_var_path = '/orgs/{org}/services/{service}/refresh/'.sub('{' + 'org' + '}', org.to_s).sub('{' + 'service' + '}', service.to_s)
1647
+
1648
+ # query parameters
1649
+ query_params = {}
1650
+
1651
+ # header parameters
1652
+ header_params = {}
1653
+ # HTTP header 'Accept' (if needed)
1654
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
1655
+ # HTTP header 'Content-Type'
1656
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
1657
+
1658
+ # form parameters
1659
+ form_params = {}
1660
+
1661
+ # http body (model)
1662
+ post_body = nil
1663
+ auth_names = ['apikey']
1664
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
1665
+ :header_params => header_params,
1666
+ :query_params => query_params,
1667
+ :form_params => form_params,
1668
+ :body => post_body,
1669
+ :auth_names => auth_names,
1670
+ :return_type => 'Service')
1671
+ if @api_client.config.debugging
1672
+ @api_client.config.logger.debug "API called: OrgsApi#orgs_services_refresh\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1673
+ end
1674
+ return data, status_code, headers
1675
+ end
1676
+ # Create a team for this organization.
1677
+ # Create a team for this organization.
902
1678
  # @param org
903
1679
  # @param [Hash] opts the optional parameters
904
- # @option opts [ServiceRequest] :data
905
- # @return [Service]
906
- def orgs_services_create(org, opts = {})
907
- data, _status_code, _headers = orgs_services_create_with_http_info(org, opts)
1680
+ # @option opts [OrganizationTeamRequest] :data
1681
+ # @return [OrganizationTeam]
1682
+ def orgs_teams_create(org, opts = {})
1683
+ data, _status_code, _headers = orgs_teams_create_with_http_info(org, opts)
908
1684
  data
909
1685
  end
910
1686
 
911
- # Create a service within an organization.
912
- # Create a service within an organization.
1687
+ # Create a team for this organization.
1688
+ # Create a team for this organization.
913
1689
  # @param org
914
1690
  # @param [Hash] opts the optional parameters
915
- # @option opts [ServiceRequest] :data
916
- # @return [Array<(Service, Fixnum, Hash)>] Service data, response status code and response headers
917
- def orgs_services_create_with_http_info(org, opts = {})
1691
+ # @option opts [OrganizationTeamRequest] :data
1692
+ # @return [Array<(OrganizationTeam, Fixnum, Hash)>] OrganizationTeam data, response status code and response headers
1693
+ def orgs_teams_create_with_http_info(org, opts = {})
918
1694
  if @api_client.config.debugging
919
- @api_client.config.logger.debug 'Calling API: OrgsApi.orgs_services_create ...'
1695
+ @api_client.config.logger.debug 'Calling API: OrgsApi.orgs_teams_create ...'
920
1696
  end
921
1697
  # verify the required parameter 'org' is set
922
1698
  if @api_client.config.client_side_validation && org.nil?
923
- fail ArgumentError, "Missing the required parameter 'org' when calling OrgsApi.orgs_services_create"
1699
+ fail ArgumentError, "Missing the required parameter 'org' when calling OrgsApi.orgs_teams_create"
924
1700
  end
925
1701
  # resource path
926
- local_var_path = '/orgs/{org}/services/'.sub('{' + 'org' + '}', org.to_s)
1702
+ local_var_path = '/orgs/{org}/teams/'.sub('{' + 'org' + '}', org.to_s)
927
1703
 
928
1704
  # query parameters
929
1705
  query_params = {}
@@ -947,43 +1723,43 @@ module CloudsmithApi
947
1723
  :form_params => form_params,
948
1724
  :body => post_body,
949
1725
  :auth_names => auth_names,
950
- :return_type => 'Service')
1726
+ :return_type => 'OrganizationTeam')
951
1727
  if @api_client.config.debugging
952
- @api_client.config.logger.debug "API called: OrgsApi#orgs_services_create\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1728
+ @api_client.config.logger.debug "API called: OrgsApi#orgs_teams_create\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
953
1729
  end
954
1730
  return data, status_code, headers
955
1731
  end
956
- # Delete a specific service
957
- # Delete a specific service
1732
+ # Delete a specific team in a organization.
1733
+ # Delete a specific team in a organization.
958
1734
  # @param org
959
- # @param service
1735
+ # @param team
960
1736
  # @param [Hash] opts the optional parameters
961
1737
  # @return [nil]
962
- def orgs_services_delete(org, service, opts = {})
963
- orgs_services_delete_with_http_info(org, service, opts)
1738
+ def orgs_teams_delete(org, team, opts = {})
1739
+ orgs_teams_delete_with_http_info(org, team, opts)
964
1740
  nil
965
1741
  end
966
1742
 
967
- # Delete a specific service
968
- # Delete a specific service
1743
+ # Delete a specific team in a organization.
1744
+ # Delete a specific team in a organization.
969
1745
  # @param org
970
- # @param service
1746
+ # @param team
971
1747
  # @param [Hash] opts the optional parameters
972
1748
  # @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
973
- def orgs_services_delete_with_http_info(org, service, opts = {})
1749
+ def orgs_teams_delete_with_http_info(org, team, opts = {})
974
1750
  if @api_client.config.debugging
975
- @api_client.config.logger.debug 'Calling API: OrgsApi.orgs_services_delete ...'
1751
+ @api_client.config.logger.debug 'Calling API: OrgsApi.orgs_teams_delete ...'
976
1752
  end
977
1753
  # verify the required parameter 'org' is set
978
1754
  if @api_client.config.client_side_validation && org.nil?
979
- fail ArgumentError, "Missing the required parameter 'org' when calling OrgsApi.orgs_services_delete"
1755
+ fail ArgumentError, "Missing the required parameter 'org' when calling OrgsApi.orgs_teams_delete"
980
1756
  end
981
- # verify the required parameter 'service' is set
982
- if @api_client.config.client_side_validation && service.nil?
983
- fail ArgumentError, "Missing the required parameter 'service' when calling OrgsApi.orgs_services_delete"
1757
+ # verify the required parameter 'team' is set
1758
+ if @api_client.config.client_side_validation && team.nil?
1759
+ fail ArgumentError, "Missing the required parameter 'team' when calling OrgsApi.orgs_teams_delete"
984
1760
  end
985
1761
  # resource path
986
- local_var_path = '/orgs/{org}/services/{service}/'.sub('{' + 'org' + '}', org.to_s).sub('{' + 'service' + '}', service.to_s)
1762
+ local_var_path = '/orgs/{org}/teams/{team}/'.sub('{' + 'org' + '}', org.to_s).sub('{' + 'team' + '}', team.to_s)
987
1763
 
988
1764
  # query parameters
989
1765
  query_params = {}
@@ -1008,39 +1784,39 @@ module CloudsmithApi
1008
1784
  :body => post_body,
1009
1785
  :auth_names => auth_names)
1010
1786
  if @api_client.config.debugging
1011
- @api_client.config.logger.debug "API called: OrgsApi#orgs_services_delete\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1787
+ @api_client.config.logger.debug "API called: OrgsApi#orgs_teams_delete\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1012
1788
  end
1013
1789
  return data, status_code, headers
1014
1790
  end
1015
- # Get a list of all services within an organization.
1016
- # Get a list of all services within an organization.
1791
+ # Get the details of all teams within an organization.
1792
+ # Get the details of all teams within an organization.
1017
1793
  # @param org
1018
1794
  # @param [Hash] opts the optional parameters
1019
1795
  # @option opts [Integer] :page A page number within the paginated result set.
1020
1796
  # @option opts [Integer] :page_size Number of results to return per page.
1021
- # @return [Array<Service>]
1022
- def orgs_services_list(org, opts = {})
1023
- data, _status_code, _headers = orgs_services_list_with_http_info(org, opts)
1797
+ # @return [Array<OrganizationTeam>]
1798
+ def orgs_teams_list(org, opts = {})
1799
+ data, _status_code, _headers = orgs_teams_list_with_http_info(org, opts)
1024
1800
  data
1025
1801
  end
1026
1802
 
1027
- # Get a list of all services within an organization.
1028
- # Get a list of all services within an organization.
1803
+ # Get the details of all teams within an organization.
1804
+ # Get the details of all teams within an organization.
1029
1805
  # @param org
1030
1806
  # @param [Hash] opts the optional parameters
1031
1807
  # @option opts [Integer] :page A page number within the paginated result set.
1032
1808
  # @option opts [Integer] :page_size Number of results to return per page.
1033
- # @return [Array<(Array<Service>, Fixnum, Hash)>] Array<Service> data, response status code and response headers
1034
- def orgs_services_list_with_http_info(org, opts = {})
1809
+ # @return [Array<(Array<OrganizationTeam>, Fixnum, Hash)>] Array<OrganizationTeam> data, response status code and response headers
1810
+ def orgs_teams_list_with_http_info(org, opts = {})
1035
1811
  if @api_client.config.debugging
1036
- @api_client.config.logger.debug 'Calling API: OrgsApi.orgs_services_list ...'
1812
+ @api_client.config.logger.debug 'Calling API: OrgsApi.orgs_teams_list ...'
1037
1813
  end
1038
1814
  # verify the required parameter 'org' is set
1039
1815
  if @api_client.config.client_side_validation && org.nil?
1040
- fail ArgumentError, "Missing the required parameter 'org' when calling OrgsApi.orgs_services_list"
1816
+ fail ArgumentError, "Missing the required parameter 'org' when calling OrgsApi.orgs_teams_list"
1041
1817
  end
1042
1818
  # resource path
1043
- local_var_path = '/orgs/{org}/services/'.sub('{' + 'org' + '}', org.to_s)
1819
+ local_var_path = '/orgs/{org}/teams/'.sub('{' + 'org' + '}', org.to_s)
1044
1820
 
1045
1821
  # query parameters
1046
1822
  query_params = {}
@@ -1066,45 +1842,45 @@ module CloudsmithApi
1066
1842
  :form_params => form_params,
1067
1843
  :body => post_body,
1068
1844
  :auth_names => auth_names,
1069
- :return_type => 'Array<Service>')
1845
+ :return_type => 'Array<OrganizationTeam>')
1070
1846
  if @api_client.config.debugging
1071
- @api_client.config.logger.debug "API called: OrgsApi#orgs_services_list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1847
+ @api_client.config.logger.debug "API called: OrgsApi#orgs_teams_list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1072
1848
  end
1073
1849
  return data, status_code, headers
1074
1850
  end
1075
- # Update a service within an organization.
1076
- # Update a service within an organization.
1851
+ # Add users to a team.
1852
+ # Add users to a team.
1077
1853
  # @param org
1078
- # @param service
1854
+ # @param team
1079
1855
  # @param [Hash] opts the optional parameters
1080
- # @option opts [ServiceRequestPatch] :data
1081
- # @return [Service]
1082
- def orgs_services_partial_update(org, service, opts = {})
1083
- data, _status_code, _headers = orgs_services_partial_update_with_http_info(org, service, opts)
1856
+ # @option opts [OrganizationTeamMembers] :data
1857
+ # @return [OrganizationTeamMembers]
1858
+ def orgs_teams_members_create(org, team, opts = {})
1859
+ data, _status_code, _headers = orgs_teams_members_create_with_http_info(org, team, opts)
1084
1860
  data
1085
1861
  end
1086
1862
 
1087
- # Update a service within an organization.
1088
- # Update a service within an organization.
1863
+ # Add users to a team.
1864
+ # Add users to a team.
1089
1865
  # @param org
1090
- # @param service
1866
+ # @param team
1091
1867
  # @param [Hash] opts the optional parameters
1092
- # @option opts [ServiceRequestPatch] :data
1093
- # @return [Array<(Service, Fixnum, Hash)>] Service data, response status code and response headers
1094
- def orgs_services_partial_update_with_http_info(org, service, opts = {})
1868
+ # @option opts [OrganizationTeamMembers] :data
1869
+ # @return [Array<(OrganizationTeamMembers, Fixnum, Hash)>] OrganizationTeamMembers data, response status code and response headers
1870
+ def orgs_teams_members_create_with_http_info(org, team, opts = {})
1095
1871
  if @api_client.config.debugging
1096
- @api_client.config.logger.debug 'Calling API: OrgsApi.orgs_services_partial_update ...'
1872
+ @api_client.config.logger.debug 'Calling API: OrgsApi.orgs_teams_members_create ...'
1097
1873
  end
1098
1874
  # verify the required parameter 'org' is set
1099
1875
  if @api_client.config.client_side_validation && org.nil?
1100
- fail ArgumentError, "Missing the required parameter 'org' when calling OrgsApi.orgs_services_partial_update"
1876
+ fail ArgumentError, "Missing the required parameter 'org' when calling OrgsApi.orgs_teams_members_create"
1101
1877
  end
1102
- # verify the required parameter 'service' is set
1103
- if @api_client.config.client_side_validation && service.nil?
1104
- fail ArgumentError, "Missing the required parameter 'service' when calling OrgsApi.orgs_services_partial_update"
1878
+ # verify the required parameter 'team' is set
1879
+ if @api_client.config.client_side_validation && team.nil?
1880
+ fail ArgumentError, "Missing the required parameter 'team' when calling OrgsApi.orgs_teams_members_create"
1105
1881
  end
1106
1882
  # resource path
1107
- local_var_path = '/orgs/{org}/services/{service}/'.sub('{' + 'org' + '}', org.to_s).sub('{' + 'service' + '}', service.to_s)
1883
+ local_var_path = '/orgs/{org}/teams/{team}/members'.sub('{' + 'org' + '}', org.to_s).sub('{' + 'team' + '}', team.to_s)
1108
1884
 
1109
1885
  # query parameters
1110
1886
  query_params = {}
@@ -1122,49 +1898,49 @@ module CloudsmithApi
1122
1898
  # http body (model)
1123
1899
  post_body = @api_client.object_to_http_body(opts[:'data'])
1124
1900
  auth_names = ['apikey']
1125
- data, status_code, headers = @api_client.call_api(:PATCH, local_var_path,
1901
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
1126
1902
  :header_params => header_params,
1127
1903
  :query_params => query_params,
1128
1904
  :form_params => form_params,
1129
1905
  :body => post_body,
1130
1906
  :auth_names => auth_names,
1131
- :return_type => 'Service')
1907
+ :return_type => 'OrganizationTeamMembers')
1132
1908
  if @api_client.config.debugging
1133
- @api_client.config.logger.debug "API called: OrgsApi#orgs_services_partial_update\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1909
+ @api_client.config.logger.debug "API called: OrgsApi#orgs_teams_members_create\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1134
1910
  end
1135
1911
  return data, status_code, headers
1136
1912
  end
1137
- # Retrieve details of a single service within an organization.
1138
- # Retrieve details of a single service within an organization.
1913
+ # List all members for the team.
1914
+ # List all members for the team.
1139
1915
  # @param org
1140
- # @param service
1916
+ # @param team
1141
1917
  # @param [Hash] opts the optional parameters
1142
- # @return [Service]
1143
- def orgs_services_read(org, service, opts = {})
1144
- data, _status_code, _headers = orgs_services_read_with_http_info(org, service, opts)
1918
+ # @return [OrganizationTeamMembers]
1919
+ def orgs_teams_members_list(org, team, opts = {})
1920
+ data, _status_code, _headers = orgs_teams_members_list_with_http_info(org, team, opts)
1145
1921
  data
1146
1922
  end
1147
1923
 
1148
- # Retrieve details of a single service within an organization.
1149
- # Retrieve details of a single service within an organization.
1924
+ # List all members for the team.
1925
+ # List all members for the team.
1150
1926
  # @param org
1151
- # @param service
1927
+ # @param team
1152
1928
  # @param [Hash] opts the optional parameters
1153
- # @return [Array<(Service, Fixnum, Hash)>] Service data, response status code and response headers
1154
- def orgs_services_read_with_http_info(org, service, opts = {})
1929
+ # @return [Array<(OrganizationTeamMembers, Fixnum, Hash)>] OrganizationTeamMembers data, response status code and response headers
1930
+ def orgs_teams_members_list_with_http_info(org, team, opts = {})
1155
1931
  if @api_client.config.debugging
1156
- @api_client.config.logger.debug 'Calling API: OrgsApi.orgs_services_read ...'
1932
+ @api_client.config.logger.debug 'Calling API: OrgsApi.orgs_teams_members_list ...'
1157
1933
  end
1158
1934
  # verify the required parameter 'org' is set
1159
1935
  if @api_client.config.client_side_validation && org.nil?
1160
- fail ArgumentError, "Missing the required parameter 'org' when calling OrgsApi.orgs_services_read"
1936
+ fail ArgumentError, "Missing the required parameter 'org' when calling OrgsApi.orgs_teams_members_list"
1161
1937
  end
1162
- # verify the required parameter 'service' is set
1163
- if @api_client.config.client_side_validation && service.nil?
1164
- fail ArgumentError, "Missing the required parameter 'service' when calling OrgsApi.orgs_services_read"
1938
+ # verify the required parameter 'team' is set
1939
+ if @api_client.config.client_side_validation && team.nil?
1940
+ fail ArgumentError, "Missing the required parameter 'team' when calling OrgsApi.orgs_teams_members_list"
1165
1941
  end
1166
1942
  # resource path
1167
- local_var_path = '/orgs/{org}/services/{service}/'.sub('{' + 'org' + '}', org.to_s).sub('{' + 'service' + '}', service.to_s)
1943
+ local_var_path = '/orgs/{org}/teams/{team}/members'.sub('{' + 'org' + '}', org.to_s).sub('{' + 'team' + '}', team.to_s)
1168
1944
 
1169
1945
  # query parameters
1170
1946
  query_params = {}
@@ -1188,43 +1964,105 @@ module CloudsmithApi
1188
1964
  :form_params => form_params,
1189
1965
  :body => post_body,
1190
1966
  :auth_names => auth_names,
1191
- :return_type => 'Service')
1967
+ :return_type => 'OrganizationTeamMembers')
1192
1968
  if @api_client.config.debugging
1193
- @api_client.config.logger.debug "API called: OrgsApi#orgs_services_read\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1969
+ @api_client.config.logger.debug "API called: OrgsApi#orgs_teams_members_list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1194
1970
  end
1195
1971
  return data, status_code, headers
1196
1972
  end
1197
- # Refresh service API token.
1198
- # Refresh service API token.
1973
+ # Replace all team members.
1974
+ # Replace all team members.
1199
1975
  # @param org
1200
- # @param service
1976
+ # @param team
1201
1977
  # @param [Hash] opts the optional parameters
1202
- # @return [Service]
1203
- def orgs_services_refresh(org, service, opts = {})
1204
- data, _status_code, _headers = orgs_services_refresh_with_http_info(org, service, opts)
1978
+ # @return [OrganizationTeamMembers]
1979
+ def orgs_teams_members_update(org, team, opts = {})
1980
+ data, _status_code, _headers = orgs_teams_members_update_with_http_info(org, team, opts)
1205
1981
  data
1206
1982
  end
1207
1983
 
1208
- # Refresh service API token.
1209
- # Refresh service API token.
1984
+ # Replace all team members.
1985
+ # Replace all team members.
1986
+ # @param org
1987
+ # @param team
1988
+ # @param [Hash] opts the optional parameters
1989
+ # @return [Array<(OrganizationTeamMembers, Fixnum, Hash)>] OrganizationTeamMembers data, response status code and response headers
1990
+ def orgs_teams_members_update_with_http_info(org, team, opts = {})
1991
+ if @api_client.config.debugging
1992
+ @api_client.config.logger.debug 'Calling API: OrgsApi.orgs_teams_members_update ...'
1993
+ end
1994
+ # verify the required parameter 'org' is set
1995
+ if @api_client.config.client_side_validation && org.nil?
1996
+ fail ArgumentError, "Missing the required parameter 'org' when calling OrgsApi.orgs_teams_members_update"
1997
+ end
1998
+ # verify the required parameter 'team' is set
1999
+ if @api_client.config.client_side_validation && team.nil?
2000
+ fail ArgumentError, "Missing the required parameter 'team' when calling OrgsApi.orgs_teams_members_update"
2001
+ end
2002
+ # resource path
2003
+ local_var_path = '/orgs/{org}/teams/{team}/members'.sub('{' + 'org' + '}', org.to_s).sub('{' + 'team' + '}', team.to_s)
2004
+
2005
+ # query parameters
2006
+ query_params = {}
2007
+
2008
+ # header parameters
2009
+ header_params = {}
2010
+ # HTTP header 'Accept' (if needed)
2011
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
2012
+ # HTTP header 'Content-Type'
2013
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
2014
+
2015
+ # form parameters
2016
+ form_params = {}
2017
+
2018
+ # http body (model)
2019
+ post_body = nil
2020
+ auth_names = ['apikey']
2021
+ data, status_code, headers = @api_client.call_api(:PUT, local_var_path,
2022
+ :header_params => header_params,
2023
+ :query_params => query_params,
2024
+ :form_params => form_params,
2025
+ :body => post_body,
2026
+ :auth_names => auth_names,
2027
+ :return_type => 'OrganizationTeamMembers')
2028
+ if @api_client.config.debugging
2029
+ @api_client.config.logger.debug "API called: OrgsApi#orgs_teams_members_update\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2030
+ end
2031
+ return data, status_code, headers
2032
+ end
2033
+ # Update a specific team in a organization.
2034
+ # Update a specific team in a organization.
2035
+ # @param org
2036
+ # @param team
2037
+ # @param [Hash] opts the optional parameters
2038
+ # @option opts [OrganizationTeamRequestPatch] :data
2039
+ # @return [OrganizationTeam]
2040
+ def orgs_teams_partial_update(org, team, opts = {})
2041
+ data, _status_code, _headers = orgs_teams_partial_update_with_http_info(org, team, opts)
2042
+ data
2043
+ end
2044
+
2045
+ # Update a specific team in a organization.
2046
+ # Update a specific team in a organization.
1210
2047
  # @param org
1211
- # @param service
2048
+ # @param team
1212
2049
  # @param [Hash] opts the optional parameters
1213
- # @return [Array<(Service, Fixnum, Hash)>] Service data, response status code and response headers
1214
- def orgs_services_refresh_with_http_info(org, service, opts = {})
2050
+ # @option opts [OrganizationTeamRequestPatch] :data
2051
+ # @return [Array<(OrganizationTeam, Fixnum, Hash)>] OrganizationTeam data, response status code and response headers
2052
+ def orgs_teams_partial_update_with_http_info(org, team, opts = {})
1215
2053
  if @api_client.config.debugging
1216
- @api_client.config.logger.debug 'Calling API: OrgsApi.orgs_services_refresh ...'
2054
+ @api_client.config.logger.debug 'Calling API: OrgsApi.orgs_teams_partial_update ...'
1217
2055
  end
1218
2056
  # verify the required parameter 'org' is set
1219
2057
  if @api_client.config.client_side_validation && org.nil?
1220
- fail ArgumentError, "Missing the required parameter 'org' when calling OrgsApi.orgs_services_refresh"
2058
+ fail ArgumentError, "Missing the required parameter 'org' when calling OrgsApi.orgs_teams_partial_update"
1221
2059
  end
1222
- # verify the required parameter 'service' is set
1223
- if @api_client.config.client_side_validation && service.nil?
1224
- fail ArgumentError, "Missing the required parameter 'service' when calling OrgsApi.orgs_services_refresh"
2060
+ # verify the required parameter 'team' is set
2061
+ if @api_client.config.client_side_validation && team.nil?
2062
+ fail ArgumentError, "Missing the required parameter 'team' when calling OrgsApi.orgs_teams_partial_update"
1225
2063
  end
1226
2064
  # resource path
1227
- local_var_path = '/orgs/{org}/services/{service}/refresh/'.sub('{' + 'org' + '}', org.to_s).sub('{' + 'service' + '}', service.to_s)
2065
+ local_var_path = '/orgs/{org}/teams/{team}/'.sub('{' + 'org' + '}', org.to_s).sub('{' + 'team' + '}', team.to_s)
1228
2066
 
1229
2067
  # query parameters
1230
2068
  query_params = {}
@@ -1240,47 +2078,51 @@ module CloudsmithApi
1240
2078
  form_params = {}
1241
2079
 
1242
2080
  # http body (model)
1243
- post_body = nil
2081
+ post_body = @api_client.object_to_http_body(opts[:'data'])
1244
2082
  auth_names = ['apikey']
1245
- data, status_code, headers = @api_client.call_api(:POST, local_var_path,
2083
+ data, status_code, headers = @api_client.call_api(:PATCH, local_var_path,
1246
2084
  :header_params => header_params,
1247
2085
  :query_params => query_params,
1248
2086
  :form_params => form_params,
1249
2087
  :body => post_body,
1250
2088
  :auth_names => auth_names,
1251
- :return_type => 'Service')
2089
+ :return_type => 'OrganizationTeam')
1252
2090
  if @api_client.config.debugging
1253
- @api_client.config.logger.debug "API called: OrgsApi#orgs_services_refresh\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2091
+ @api_client.config.logger.debug "API called: OrgsApi#orgs_teams_partial_update\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1254
2092
  end
1255
2093
  return data, status_code, headers
1256
2094
  end
1257
- # Create a team for this organization.
1258
- # Create a team for this organization.
2095
+ # Get the details of a specific team within an organization.
2096
+ # Get the details of a specific team within an organization.
1259
2097
  # @param org
2098
+ # @param team
1260
2099
  # @param [Hash] opts the optional parameters
1261
- # @option opts [OrganizationTeamRequest] :data
1262
2100
  # @return [OrganizationTeam]
1263
- def orgs_teams_create(org, opts = {})
1264
- data, _status_code, _headers = orgs_teams_create_with_http_info(org, opts)
2101
+ def orgs_teams_read(org, team, opts = {})
2102
+ data, _status_code, _headers = orgs_teams_read_with_http_info(org, team, opts)
1265
2103
  data
1266
2104
  end
1267
2105
 
1268
- # Create a team for this organization.
1269
- # Create a team for this organization.
2106
+ # Get the details of a specific team within an organization.
2107
+ # Get the details of a specific team within an organization.
1270
2108
  # @param org
2109
+ # @param team
1271
2110
  # @param [Hash] opts the optional parameters
1272
- # @option opts [OrganizationTeamRequest] :data
1273
2111
  # @return [Array<(OrganizationTeam, Fixnum, Hash)>] OrganizationTeam data, response status code and response headers
1274
- def orgs_teams_create_with_http_info(org, opts = {})
2112
+ def orgs_teams_read_with_http_info(org, team, opts = {})
1275
2113
  if @api_client.config.debugging
1276
- @api_client.config.logger.debug 'Calling API: OrgsApi.orgs_teams_create ...'
2114
+ @api_client.config.logger.debug 'Calling API: OrgsApi.orgs_teams_read ...'
1277
2115
  end
1278
2116
  # verify the required parameter 'org' is set
1279
2117
  if @api_client.config.client_side_validation && org.nil?
1280
- fail ArgumentError, "Missing the required parameter 'org' when calling OrgsApi.orgs_teams_create"
2118
+ fail ArgumentError, "Missing the required parameter 'org' when calling OrgsApi.orgs_teams_read"
2119
+ end
2120
+ # verify the required parameter 'team' is set
2121
+ if @api_client.config.client_side_validation && team.nil?
2122
+ fail ArgumentError, "Missing the required parameter 'team' when calling OrgsApi.orgs_teams_read"
1281
2123
  end
1282
2124
  # resource path
1283
- local_var_path = '/orgs/{org}/teams/'.sub('{' + 'org' + '}', org.to_s)
2125
+ local_var_path = '/orgs/{org}/teams/{team}/'.sub('{' + 'org' + '}', org.to_s).sub('{' + 'team' + '}', team.to_s)
1284
2126
 
1285
2127
  # query parameters
1286
2128
  query_params = {}
@@ -1296,9 +2138,9 @@ module CloudsmithApi
1296
2138
  form_params = {}
1297
2139
 
1298
2140
  # http body (model)
1299
- post_body = @api_client.object_to_http_body(opts[:'data'])
2141
+ post_body = nil
1300
2142
  auth_names = ['apikey']
1301
- data, status_code, headers = @api_client.call_api(:POST, local_var_path,
2143
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
1302
2144
  :header_params => header_params,
1303
2145
  :query_params => query_params,
1304
2146
  :form_params => form_params,
@@ -1306,41 +2148,37 @@ module CloudsmithApi
1306
2148
  :auth_names => auth_names,
1307
2149
  :return_type => 'OrganizationTeam')
1308
2150
  if @api_client.config.debugging
1309
- @api_client.config.logger.debug "API called: OrgsApi#orgs_teams_create\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2151
+ @api_client.config.logger.debug "API called: OrgsApi#orgs_teams_read\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1310
2152
  end
1311
2153
  return data, status_code, headers
1312
2154
  end
1313
- # Delete a specific team in a organization.
1314
- # Delete a specific team in a organization.
2155
+ # Create a package vulnerability policy.
2156
+ # Create a package vulnerability policy.
1315
2157
  # @param org
1316
- # @param team
1317
2158
  # @param [Hash] opts the optional parameters
1318
- # @return [nil]
1319
- def orgs_teams_delete(org, team, opts = {})
1320
- orgs_teams_delete_with_http_info(org, team, opts)
1321
- nil
2159
+ # @option opts [OrganizationPackageVulnerabilityPolicyRequest] :data
2160
+ # @return [OrganizationPackageVulnerabilityPolicy]
2161
+ def orgs_vulnerability_policy_create(org, opts = {})
2162
+ data, _status_code, _headers = orgs_vulnerability_policy_create_with_http_info(org, opts)
2163
+ data
1322
2164
  end
1323
2165
 
1324
- # Delete a specific team in a organization.
1325
- # Delete a specific team in a organization.
2166
+ # Create a package vulnerability policy.
2167
+ # Create a package vulnerability policy.
1326
2168
  # @param org
1327
- # @param team
1328
2169
  # @param [Hash] opts the optional parameters
1329
- # @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
1330
- def orgs_teams_delete_with_http_info(org, team, opts = {})
2170
+ # @option opts [OrganizationPackageVulnerabilityPolicyRequest] :data
2171
+ # @return [Array<(OrganizationPackageVulnerabilityPolicy, Fixnum, Hash)>] OrganizationPackageVulnerabilityPolicy data, response status code and response headers
2172
+ def orgs_vulnerability_policy_create_with_http_info(org, opts = {})
1331
2173
  if @api_client.config.debugging
1332
- @api_client.config.logger.debug 'Calling API: OrgsApi.orgs_teams_delete ...'
2174
+ @api_client.config.logger.debug 'Calling API: OrgsApi.orgs_vulnerability_policy_create ...'
1333
2175
  end
1334
2176
  # verify the required parameter 'org' is set
1335
2177
  if @api_client.config.client_side_validation && org.nil?
1336
- fail ArgumentError, "Missing the required parameter 'org' when calling OrgsApi.orgs_teams_delete"
1337
- end
1338
- # verify the required parameter 'team' is set
1339
- if @api_client.config.client_side_validation && team.nil?
1340
- fail ArgumentError, "Missing the required parameter 'team' when calling OrgsApi.orgs_teams_delete"
2178
+ fail ArgumentError, "Missing the required parameter 'org' when calling OrgsApi.orgs_vulnerability_policy_create"
1341
2179
  end
1342
2180
  # resource path
1343
- local_var_path = '/orgs/{org}/teams/{team}/'.sub('{' + 'org' + '}', org.to_s).sub('{' + 'team' + '}', team.to_s)
2181
+ local_var_path = '/orgs/{org}/vulnerability-policy/'.sub('{' + 'org' + '}', org.to_s)
1344
2182
 
1345
2183
  # query parameters
1346
2184
  query_params = {}
@@ -1356,53 +2194,54 @@ module CloudsmithApi
1356
2194
  form_params = {}
1357
2195
 
1358
2196
  # http body (model)
1359
- post_body = nil
2197
+ post_body = @api_client.object_to_http_body(opts[:'data'])
1360
2198
  auth_names = ['apikey']
1361
- data, status_code, headers = @api_client.call_api(:DELETE, local_var_path,
2199
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
1362
2200
  :header_params => header_params,
1363
2201
  :query_params => query_params,
1364
2202
  :form_params => form_params,
1365
2203
  :body => post_body,
1366
- :auth_names => auth_names)
2204
+ :auth_names => auth_names,
2205
+ :return_type => 'OrganizationPackageVulnerabilityPolicy')
1367
2206
  if @api_client.config.debugging
1368
- @api_client.config.logger.debug "API called: OrgsApi#orgs_teams_delete\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2207
+ @api_client.config.logger.debug "API called: OrgsApi#orgs_vulnerability_policy_create\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1369
2208
  end
1370
2209
  return data, status_code, headers
1371
2210
  end
1372
- # Get the details of all teams within an organization.
1373
- # Get the details of all teams within an organization.
2211
+ # Delete a package vulnerability policy.
2212
+ # Delete a package vulnerability policy.
1374
2213
  # @param org
2214
+ # @param slug_perm
1375
2215
  # @param [Hash] opts the optional parameters
1376
- # @option opts [Integer] :page A page number within the paginated result set.
1377
- # @option opts [Integer] :page_size Number of results to return per page.
1378
- # @return [Array<OrganizationTeam>]
1379
- def orgs_teams_list(org, opts = {})
1380
- data, _status_code, _headers = orgs_teams_list_with_http_info(org, opts)
1381
- data
2216
+ # @return [nil]
2217
+ def orgs_vulnerability_policy_delete(org, slug_perm, opts = {})
2218
+ orgs_vulnerability_policy_delete_with_http_info(org, slug_perm, opts)
2219
+ nil
1382
2220
  end
1383
2221
 
1384
- # Get the details of all teams within an organization.
1385
- # Get the details of all teams within an organization.
2222
+ # Delete a package vulnerability policy.
2223
+ # Delete a package vulnerability policy.
1386
2224
  # @param org
2225
+ # @param slug_perm
1387
2226
  # @param [Hash] opts the optional parameters
1388
- # @option opts [Integer] :page A page number within the paginated result set.
1389
- # @option opts [Integer] :page_size Number of results to return per page.
1390
- # @return [Array<(Array<OrganizationTeam>, Fixnum, Hash)>] Array<OrganizationTeam> data, response status code and response headers
1391
- def orgs_teams_list_with_http_info(org, opts = {})
2227
+ # @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
2228
+ def orgs_vulnerability_policy_delete_with_http_info(org, slug_perm, opts = {})
1392
2229
  if @api_client.config.debugging
1393
- @api_client.config.logger.debug 'Calling API: OrgsApi.orgs_teams_list ...'
2230
+ @api_client.config.logger.debug 'Calling API: OrgsApi.orgs_vulnerability_policy_delete ...'
1394
2231
  end
1395
2232
  # verify the required parameter 'org' is set
1396
2233
  if @api_client.config.client_side_validation && org.nil?
1397
- fail ArgumentError, "Missing the required parameter 'org' when calling OrgsApi.orgs_teams_list"
2234
+ fail ArgumentError, "Missing the required parameter 'org' when calling OrgsApi.orgs_vulnerability_policy_delete"
2235
+ end
2236
+ # verify the required parameter 'slug_perm' is set
2237
+ if @api_client.config.client_side_validation && slug_perm.nil?
2238
+ fail ArgumentError, "Missing the required parameter 'slug_perm' when calling OrgsApi.orgs_vulnerability_policy_delete"
1398
2239
  end
1399
2240
  # resource path
1400
- local_var_path = '/orgs/{org}/teams/'.sub('{' + 'org' + '}', org.to_s)
2241
+ local_var_path = '/orgs/{org}/vulnerability-policy/{slug_perm}/'.sub('{' + 'org' + '}', org.to_s).sub('{' + 'slug_perm' + '}', slug_perm.to_s)
1401
2242
 
1402
2243
  # query parameters
1403
2244
  query_params = {}
1404
- query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil?
1405
- query_params[:'page_size'] = opts[:'page_size'] if !opts[:'page_size'].nil?
1406
2245
 
1407
2246
  # header parameters
1408
2247
  header_params = {}
@@ -1417,54 +2256,51 @@ module CloudsmithApi
1417
2256
  # http body (model)
1418
2257
  post_body = nil
1419
2258
  auth_names = ['apikey']
1420
- data, status_code, headers = @api_client.call_api(:GET, local_var_path,
2259
+ data, status_code, headers = @api_client.call_api(:DELETE, local_var_path,
1421
2260
  :header_params => header_params,
1422
2261
  :query_params => query_params,
1423
2262
  :form_params => form_params,
1424
2263
  :body => post_body,
1425
- :auth_names => auth_names,
1426
- :return_type => 'Array<OrganizationTeam>')
2264
+ :auth_names => auth_names)
1427
2265
  if @api_client.config.debugging
1428
- @api_client.config.logger.debug "API called: OrgsApi#orgs_teams_list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2266
+ @api_client.config.logger.debug "API called: OrgsApi#orgs_vulnerability_policy_delete\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1429
2267
  end
1430
2268
  return data, status_code, headers
1431
2269
  end
1432
- # Add users to a team.
1433
- # Add users to a team.
2270
+ # Get a list of all package vulnerability policies.
2271
+ # Get a list of all package vulnerability policies.
1434
2272
  # @param org
1435
- # @param team
1436
2273
  # @param [Hash] opts the optional parameters
1437
- # @option opts [OrganizationTeamMembers] :data
1438
- # @return [OrganizationTeamMembers]
1439
- def orgs_teams_members_create(org, team, opts = {})
1440
- data, _status_code, _headers = orgs_teams_members_create_with_http_info(org, team, opts)
2274
+ # @option opts [Integer] :page A page number within the paginated result set.
2275
+ # @option opts [Integer] :page_size Number of results to return per page.
2276
+ # @return [Array<OrganizationPackageVulnerabilityPolicy>]
2277
+ def orgs_vulnerability_policy_list(org, opts = {})
2278
+ data, _status_code, _headers = orgs_vulnerability_policy_list_with_http_info(org, opts)
1441
2279
  data
1442
2280
  end
1443
2281
 
1444
- # Add users to a team.
1445
- # Add users to a team.
2282
+ # Get a list of all package vulnerability policies.
2283
+ # Get a list of all package vulnerability policies.
1446
2284
  # @param org
1447
- # @param team
1448
2285
  # @param [Hash] opts the optional parameters
1449
- # @option opts [OrganizationTeamMembers] :data
1450
- # @return [Array<(OrganizationTeamMembers, Fixnum, Hash)>] OrganizationTeamMembers data, response status code and response headers
1451
- def orgs_teams_members_create_with_http_info(org, team, opts = {})
2286
+ # @option opts [Integer] :page A page number within the paginated result set.
2287
+ # @option opts [Integer] :page_size Number of results to return per page.
2288
+ # @return [Array<(Array<OrganizationPackageVulnerabilityPolicy>, Fixnum, Hash)>] Array<OrganizationPackageVulnerabilityPolicy> data, response status code and response headers
2289
+ def orgs_vulnerability_policy_list_with_http_info(org, opts = {})
1452
2290
  if @api_client.config.debugging
1453
- @api_client.config.logger.debug 'Calling API: OrgsApi.orgs_teams_members_create ...'
2291
+ @api_client.config.logger.debug 'Calling API: OrgsApi.orgs_vulnerability_policy_list ...'
1454
2292
  end
1455
2293
  # verify the required parameter 'org' is set
1456
2294
  if @api_client.config.client_side_validation && org.nil?
1457
- fail ArgumentError, "Missing the required parameter 'org' when calling OrgsApi.orgs_teams_members_create"
1458
- end
1459
- # verify the required parameter 'team' is set
1460
- if @api_client.config.client_side_validation && team.nil?
1461
- fail ArgumentError, "Missing the required parameter 'team' when calling OrgsApi.orgs_teams_members_create"
2295
+ fail ArgumentError, "Missing the required parameter 'org' when calling OrgsApi.orgs_vulnerability_policy_list"
1462
2296
  end
1463
2297
  # resource path
1464
- local_var_path = '/orgs/{org}/teams/{team}/members'.sub('{' + 'org' + '}', org.to_s).sub('{' + 'team' + '}', team.to_s)
2298
+ local_var_path = '/orgs/{org}/vulnerability-policy/'.sub('{' + 'org' + '}', org.to_s)
1465
2299
 
1466
2300
  # query parameters
1467
2301
  query_params = {}
2302
+ query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil?
2303
+ query_params[:'page_size'] = opts[:'page_size'] if !opts[:'page_size'].nil?
1468
2304
 
1469
2305
  # header parameters
1470
2306
  header_params = {}
@@ -1477,51 +2313,53 @@ module CloudsmithApi
1477
2313
  form_params = {}
1478
2314
 
1479
2315
  # http body (model)
1480
- post_body = @api_client.object_to_http_body(opts[:'data'])
2316
+ post_body = nil
1481
2317
  auth_names = ['apikey']
1482
- data, status_code, headers = @api_client.call_api(:POST, local_var_path,
2318
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
1483
2319
  :header_params => header_params,
1484
2320
  :query_params => query_params,
1485
2321
  :form_params => form_params,
1486
2322
  :body => post_body,
1487
2323
  :auth_names => auth_names,
1488
- :return_type => 'OrganizationTeamMembers')
2324
+ :return_type => 'Array<OrganizationPackageVulnerabilityPolicy>')
1489
2325
  if @api_client.config.debugging
1490
- @api_client.config.logger.debug "API called: OrgsApi#orgs_teams_members_create\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2326
+ @api_client.config.logger.debug "API called: OrgsApi#orgs_vulnerability_policy_list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1491
2327
  end
1492
2328
  return data, status_code, headers
1493
2329
  end
1494
- # List all members for the team.
1495
- # List all members for the team.
2330
+ # Partially update a package vulnerability policy.
2331
+ # Partially update a package vulnerability policy.
1496
2332
  # @param org
1497
- # @param team
2333
+ # @param slug_perm
1498
2334
  # @param [Hash] opts the optional parameters
1499
- # @return [OrganizationTeamMembers]
1500
- def orgs_teams_members_list(org, team, opts = {})
1501
- data, _status_code, _headers = orgs_teams_members_list_with_http_info(org, team, opts)
2335
+ # @option opts [OrganizationPackageVulnerabilityPolicyRequestPatch] :data
2336
+ # @return [OrganizationPackageVulnerabilityPolicy]
2337
+ def orgs_vulnerability_policy_partial_update(org, slug_perm, opts = {})
2338
+ data, _status_code, _headers = orgs_vulnerability_policy_partial_update_with_http_info(org, slug_perm, opts)
1502
2339
  data
1503
2340
  end
1504
2341
 
1505
- # List all members for the team.
1506
- # List all members for the team.
2342
+ # Partially update a package vulnerability policy.
2343
+ # Partially update a package vulnerability policy.
1507
2344
  # @param org
1508
- # @param team
2345
+ # @param slug_perm
1509
2346
  # @param [Hash] opts the optional parameters
1510
- # @return [Array<(OrganizationTeamMembers, Fixnum, Hash)>] OrganizationTeamMembers data, response status code and response headers
1511
- def orgs_teams_members_list_with_http_info(org, team, opts = {})
2347
+ # @option opts [OrganizationPackageVulnerabilityPolicyRequestPatch] :data
2348
+ # @return [Array<(OrganizationPackageVulnerabilityPolicy, Fixnum, Hash)>] OrganizationPackageVulnerabilityPolicy data, response status code and response headers
2349
+ def orgs_vulnerability_policy_partial_update_with_http_info(org, slug_perm, opts = {})
1512
2350
  if @api_client.config.debugging
1513
- @api_client.config.logger.debug 'Calling API: OrgsApi.orgs_teams_members_list ...'
2351
+ @api_client.config.logger.debug 'Calling API: OrgsApi.orgs_vulnerability_policy_partial_update ...'
1514
2352
  end
1515
2353
  # verify the required parameter 'org' is set
1516
2354
  if @api_client.config.client_side_validation && org.nil?
1517
- fail ArgumentError, "Missing the required parameter 'org' when calling OrgsApi.orgs_teams_members_list"
2355
+ fail ArgumentError, "Missing the required parameter 'org' when calling OrgsApi.orgs_vulnerability_policy_partial_update"
1518
2356
  end
1519
- # verify the required parameter 'team' is set
1520
- if @api_client.config.client_side_validation && team.nil?
1521
- fail ArgumentError, "Missing the required parameter 'team' when calling OrgsApi.orgs_teams_members_list"
2357
+ # verify the required parameter 'slug_perm' is set
2358
+ if @api_client.config.client_side_validation && slug_perm.nil?
2359
+ fail ArgumentError, "Missing the required parameter 'slug_perm' when calling OrgsApi.orgs_vulnerability_policy_partial_update"
1522
2360
  end
1523
2361
  # resource path
1524
- local_var_path = '/orgs/{org}/teams/{team}/members'.sub('{' + 'org' + '}', org.to_s).sub('{' + 'team' + '}', team.to_s)
2362
+ local_var_path = '/orgs/{org}/vulnerability-policy/{slug_perm}/'.sub('{' + 'org' + '}', org.to_s).sub('{' + 'slug_perm' + '}', slug_perm.to_s)
1525
2363
 
1526
2364
  # query parameters
1527
2365
  query_params = {}
@@ -1537,51 +2375,51 @@ module CloudsmithApi
1537
2375
  form_params = {}
1538
2376
 
1539
2377
  # http body (model)
1540
- post_body = nil
2378
+ post_body = @api_client.object_to_http_body(opts[:'data'])
1541
2379
  auth_names = ['apikey']
1542
- data, status_code, headers = @api_client.call_api(:GET, local_var_path,
2380
+ data, status_code, headers = @api_client.call_api(:PATCH, local_var_path,
1543
2381
  :header_params => header_params,
1544
2382
  :query_params => query_params,
1545
2383
  :form_params => form_params,
1546
2384
  :body => post_body,
1547
2385
  :auth_names => auth_names,
1548
- :return_type => 'OrganizationTeamMembers')
2386
+ :return_type => 'OrganizationPackageVulnerabilityPolicy')
1549
2387
  if @api_client.config.debugging
1550
- @api_client.config.logger.debug "API called: OrgsApi#orgs_teams_members_list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2388
+ @api_client.config.logger.debug "API called: OrgsApi#orgs_vulnerability_policy_partial_update\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1551
2389
  end
1552
2390
  return data, status_code, headers
1553
2391
  end
1554
- # Replace all team members.
1555
- # Replace all team members.
2392
+ # Get a package vulnerability policy.
2393
+ # Get a package vulnerability policy.
1556
2394
  # @param org
1557
- # @param team
2395
+ # @param slug_perm
1558
2396
  # @param [Hash] opts the optional parameters
1559
- # @return [OrganizationTeamMembers]
1560
- def orgs_teams_members_update(org, team, opts = {})
1561
- data, _status_code, _headers = orgs_teams_members_update_with_http_info(org, team, opts)
2397
+ # @return [OrganizationPackageVulnerabilityPolicy]
2398
+ def orgs_vulnerability_policy_read(org, slug_perm, opts = {})
2399
+ data, _status_code, _headers = orgs_vulnerability_policy_read_with_http_info(org, slug_perm, opts)
1562
2400
  data
1563
2401
  end
1564
2402
 
1565
- # Replace all team members.
1566
- # Replace all team members.
2403
+ # Get a package vulnerability policy.
2404
+ # Get a package vulnerability policy.
1567
2405
  # @param org
1568
- # @param team
2406
+ # @param slug_perm
1569
2407
  # @param [Hash] opts the optional parameters
1570
- # @return [Array<(OrganizationTeamMembers, Fixnum, Hash)>] OrganizationTeamMembers data, response status code and response headers
1571
- def orgs_teams_members_update_with_http_info(org, team, opts = {})
2408
+ # @return [Array<(OrganizationPackageVulnerabilityPolicy, Fixnum, Hash)>] OrganizationPackageVulnerabilityPolicy data, response status code and response headers
2409
+ def orgs_vulnerability_policy_read_with_http_info(org, slug_perm, opts = {})
1572
2410
  if @api_client.config.debugging
1573
- @api_client.config.logger.debug 'Calling API: OrgsApi.orgs_teams_members_update ...'
2411
+ @api_client.config.logger.debug 'Calling API: OrgsApi.orgs_vulnerability_policy_read ...'
1574
2412
  end
1575
2413
  # verify the required parameter 'org' is set
1576
2414
  if @api_client.config.client_side_validation && org.nil?
1577
- fail ArgumentError, "Missing the required parameter 'org' when calling OrgsApi.orgs_teams_members_update"
2415
+ fail ArgumentError, "Missing the required parameter 'org' when calling OrgsApi.orgs_vulnerability_policy_read"
1578
2416
  end
1579
- # verify the required parameter 'team' is set
1580
- if @api_client.config.client_side_validation && team.nil?
1581
- fail ArgumentError, "Missing the required parameter 'team' when calling OrgsApi.orgs_teams_members_update"
2417
+ # verify the required parameter 'slug_perm' is set
2418
+ if @api_client.config.client_side_validation && slug_perm.nil?
2419
+ fail ArgumentError, "Missing the required parameter 'slug_perm' when calling OrgsApi.orgs_vulnerability_policy_read"
1582
2420
  end
1583
2421
  # resource path
1584
- local_var_path = '/orgs/{org}/teams/{team}/members'.sub('{' + 'org' + '}', org.to_s).sub('{' + 'team' + '}', team.to_s)
2422
+ local_var_path = '/orgs/{org}/vulnerability-policy/{slug_perm}/'.sub('{' + 'org' + '}', org.to_s).sub('{' + 'slug_perm' + '}', slug_perm.to_s)
1585
2423
 
1586
2424
  # query parameters
1587
2425
  query_params = {}
@@ -1599,51 +2437,51 @@ module CloudsmithApi
1599
2437
  # http body (model)
1600
2438
  post_body = nil
1601
2439
  auth_names = ['apikey']
1602
- data, status_code, headers = @api_client.call_api(:PUT, local_var_path,
2440
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
1603
2441
  :header_params => header_params,
1604
2442
  :query_params => query_params,
1605
2443
  :form_params => form_params,
1606
2444
  :body => post_body,
1607
2445
  :auth_names => auth_names,
1608
- :return_type => 'OrganizationTeamMembers')
2446
+ :return_type => 'OrganizationPackageVulnerabilityPolicy')
1609
2447
  if @api_client.config.debugging
1610
- @api_client.config.logger.debug "API called: OrgsApi#orgs_teams_members_update\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2448
+ @api_client.config.logger.debug "API called: OrgsApi#orgs_vulnerability_policy_read\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1611
2449
  end
1612
2450
  return data, status_code, headers
1613
2451
  end
1614
- # Update a specific team in a organization.
1615
- # Update a specific team in a organization.
2452
+ # Update a package vulnerability policy.
2453
+ # Update a package vulnerability policy.
1616
2454
  # @param org
1617
- # @param team
2455
+ # @param slug_perm
1618
2456
  # @param [Hash] opts the optional parameters
1619
- # @option opts [OrganizationTeamRequestPatch] :data
1620
- # @return [OrganizationTeam]
1621
- def orgs_teams_partial_update(org, team, opts = {})
1622
- data, _status_code, _headers = orgs_teams_partial_update_with_http_info(org, team, opts)
2457
+ # @option opts [OrganizationPackageVulnerabilityPolicyRequest] :data
2458
+ # @return [OrganizationPackageVulnerabilityPolicy]
2459
+ def orgs_vulnerability_policy_update(org, slug_perm, opts = {})
2460
+ data, _status_code, _headers = orgs_vulnerability_policy_update_with_http_info(org, slug_perm, opts)
1623
2461
  data
1624
2462
  end
1625
2463
 
1626
- # Update a specific team in a organization.
1627
- # Update a specific team in a organization.
2464
+ # Update a package vulnerability policy.
2465
+ # Update a package vulnerability policy.
1628
2466
  # @param org
1629
- # @param team
2467
+ # @param slug_perm
1630
2468
  # @param [Hash] opts the optional parameters
1631
- # @option opts [OrganizationTeamRequestPatch] :data
1632
- # @return [Array<(OrganizationTeam, Fixnum, Hash)>] OrganizationTeam data, response status code and response headers
1633
- def orgs_teams_partial_update_with_http_info(org, team, opts = {})
2469
+ # @option opts [OrganizationPackageVulnerabilityPolicyRequest] :data
2470
+ # @return [Array<(OrganizationPackageVulnerabilityPolicy, Fixnum, Hash)>] OrganizationPackageVulnerabilityPolicy data, response status code and response headers
2471
+ def orgs_vulnerability_policy_update_with_http_info(org, slug_perm, opts = {})
1634
2472
  if @api_client.config.debugging
1635
- @api_client.config.logger.debug 'Calling API: OrgsApi.orgs_teams_partial_update ...'
2473
+ @api_client.config.logger.debug 'Calling API: OrgsApi.orgs_vulnerability_policy_update ...'
1636
2474
  end
1637
2475
  # verify the required parameter 'org' is set
1638
2476
  if @api_client.config.client_side_validation && org.nil?
1639
- fail ArgumentError, "Missing the required parameter 'org' when calling OrgsApi.orgs_teams_partial_update"
2477
+ fail ArgumentError, "Missing the required parameter 'org' when calling OrgsApi.orgs_vulnerability_policy_update"
1640
2478
  end
1641
- # verify the required parameter 'team' is set
1642
- if @api_client.config.client_side_validation && team.nil?
1643
- fail ArgumentError, "Missing the required parameter 'team' when calling OrgsApi.orgs_teams_partial_update"
2479
+ # verify the required parameter 'slug_perm' is set
2480
+ if @api_client.config.client_side_validation && slug_perm.nil?
2481
+ fail ArgumentError, "Missing the required parameter 'slug_perm' when calling OrgsApi.orgs_vulnerability_policy_update"
1644
2482
  end
1645
2483
  # resource path
1646
- local_var_path = '/orgs/{org}/teams/{team}/'.sub('{' + 'org' + '}', org.to_s).sub('{' + 'team' + '}', team.to_s)
2484
+ local_var_path = '/orgs/{org}/vulnerability-policy/{slug_perm}/'.sub('{' + 'org' + '}', org.to_s).sub('{' + 'slug_perm' + '}', slug_perm.to_s)
1647
2485
 
1648
2486
  # query parameters
1649
2487
  query_params = {}
@@ -1661,52 +2499,52 @@ module CloudsmithApi
1661
2499
  # http body (model)
1662
2500
  post_body = @api_client.object_to_http_body(opts[:'data'])
1663
2501
  auth_names = ['apikey']
1664
- data, status_code, headers = @api_client.call_api(:PATCH, local_var_path,
2502
+ data, status_code, headers = @api_client.call_api(:PUT, local_var_path,
1665
2503
  :header_params => header_params,
1666
2504
  :query_params => query_params,
1667
2505
  :form_params => form_params,
1668
2506
  :body => post_body,
1669
2507
  :auth_names => auth_names,
1670
- :return_type => 'OrganizationTeam')
2508
+ :return_type => 'OrganizationPackageVulnerabilityPolicy')
1671
2509
  if @api_client.config.debugging
1672
- @api_client.config.logger.debug "API called: OrgsApi#orgs_teams_partial_update\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2510
+ @api_client.config.logger.debug "API called: OrgsApi#orgs_vulnerability_policy_update\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1673
2511
  end
1674
2512
  return data, status_code, headers
1675
2513
  end
1676
- # Get the details of a specific team within an organization.
1677
- # Get the details of a specific team within an organization.
2514
+ # List all current vulnerability policy violations for this Organization.
2515
+ # List all current vulnerability policy violations for this Organization.
1678
2516
  # @param org
1679
- # @param team
1680
2517
  # @param [Hash] opts the optional parameters
1681
- # @return [OrganizationTeam]
1682
- def orgs_teams_read(org, team, opts = {})
1683
- data, _status_code, _headers = orgs_teams_read_with_http_info(org, team, opts)
2518
+ # @option opts [String] :cursor The pagination cursor value.
2519
+ # @option opts [Integer] :page_size Number of results to return per page.
2520
+ # @return [PackageVulnerabilityPolicyViolationLogCursorPage]
2521
+ def orgs_vulnerability_policy_violation_list(org, opts = {})
2522
+ data, _status_code, _headers = orgs_vulnerability_policy_violation_list_with_http_info(org, opts)
1684
2523
  data
1685
2524
  end
1686
2525
 
1687
- # Get the details of a specific team within an organization.
1688
- # Get the details of a specific team within an organization.
2526
+ # List all current vulnerability policy violations for this Organization.
2527
+ # List all current vulnerability policy violations for this Organization.
1689
2528
  # @param org
1690
- # @param team
1691
2529
  # @param [Hash] opts the optional parameters
1692
- # @return [Array<(OrganizationTeam, Fixnum, Hash)>] OrganizationTeam data, response status code and response headers
1693
- def orgs_teams_read_with_http_info(org, team, opts = {})
2530
+ # @option opts [String] :cursor The pagination cursor value.
2531
+ # @option opts [Integer] :page_size Number of results to return per page.
2532
+ # @return [Array<(PackageVulnerabilityPolicyViolationLogCursorPage, Fixnum, Hash)>] PackageVulnerabilityPolicyViolationLogCursorPage data, response status code and response headers
2533
+ def orgs_vulnerability_policy_violation_list_with_http_info(org, opts = {})
1694
2534
  if @api_client.config.debugging
1695
- @api_client.config.logger.debug 'Calling API: OrgsApi.orgs_teams_read ...'
2535
+ @api_client.config.logger.debug 'Calling API: OrgsApi.orgs_vulnerability_policy_violation_list ...'
1696
2536
  end
1697
2537
  # verify the required parameter 'org' is set
1698
2538
  if @api_client.config.client_side_validation && org.nil?
1699
- fail ArgumentError, "Missing the required parameter 'org' when calling OrgsApi.orgs_teams_read"
1700
- end
1701
- # verify the required parameter 'team' is set
1702
- if @api_client.config.client_side_validation && team.nil?
1703
- fail ArgumentError, "Missing the required parameter 'team' when calling OrgsApi.orgs_teams_read"
2539
+ fail ArgumentError, "Missing the required parameter 'org' when calling OrgsApi.orgs_vulnerability_policy_violation_list"
1704
2540
  end
1705
2541
  # resource path
1706
- local_var_path = '/orgs/{org}/teams/{team}/'.sub('{' + 'org' + '}', org.to_s).sub('{' + 'team' + '}', team.to_s)
2542
+ local_var_path = '/orgs/{org}/vulnerability-policy-violation/'.sub('{' + 'org' + '}', org.to_s)
1707
2543
 
1708
2544
  # query parameters
1709
2545
  query_params = {}
2546
+ query_params[:'cursor'] = opts[:'cursor'] if !opts[:'cursor'].nil?
2547
+ query_params[:'page_size'] = opts[:'page_size'] if !opts[:'page_size'].nil?
1710
2548
 
1711
2549
  # header parameters
1712
2550
  header_params = {}
@@ -1727,9 +2565,9 @@ module CloudsmithApi
1727
2565
  :form_params => form_params,
1728
2566
  :body => post_body,
1729
2567
  :auth_names => auth_names,
1730
- :return_type => 'OrganizationTeam')
2568
+ :return_type => 'PackageVulnerabilityPolicyViolationLogCursorPage')
1731
2569
  if @api_client.config.debugging
1732
- @api_client.config.logger.debug "API called: OrgsApi#orgs_teams_read\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2570
+ @api_client.config.logger.debug "API called: OrgsApi#orgs_vulnerability_policy_violation_list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1733
2571
  end
1734
2572
  return data, status_code, headers
1735
2573
  end