cloudsmith-api 2.0.12 → 2.0.13

Sign up to get free protection for your applications and to get access to all the features.
Files changed (134) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile.lock +1 -1
  3. data/README.md +14 -5
  4. data/build.json +1 -1
  5. data/docs/AlpinePackageUpload.md +7 -0
  6. data/docs/CargoPackageUpload.md +7 -0
  7. data/docs/CocoapodsPackageUpload.md +7 -0
  8. data/docs/ComposerPackageUpload.md +7 -0
  9. data/docs/ConanPackageUpload.md +7 -0
  10. data/docs/CondaPackageUpload.md +7 -0
  11. data/docs/CranPackageUpload.md +7 -0
  12. data/docs/DartPackageUpload.md +7 -0
  13. data/docs/DebPackageUpload.md +7 -0
  14. data/docs/DockerPackageUpload.md +7 -0
  15. data/docs/GoPackageUpload.md +7 -0
  16. data/docs/HelmPackageUpload.md +7 -0
  17. data/docs/HexPackageUpload.md +7 -0
  18. data/docs/LuarocksPackageUpload.md +7 -0
  19. data/docs/MavenPackageUpload.md +7 -0
  20. data/docs/NpmPackageUpload.md +7 -0
  21. data/docs/NugetPackageUpload.md +7 -0
  22. data/docs/OrganizationMembership.md +1 -1
  23. data/docs/OrgsApi.md +358 -0
  24. data/docs/P2PackageUpload.md +7 -0
  25. data/docs/Package.md +7 -0
  26. data/docs/PackageCopy.md +7 -0
  27. data/docs/PackageMove.md +7 -0
  28. data/docs/PackageQuarantine.md +7 -0
  29. data/docs/PackageResync.md +7 -0
  30. data/docs/PackageStatus.md +7 -0
  31. data/docs/PackageTag.md +7 -0
  32. data/docs/PackagesApi.md +4 -4
  33. data/docs/ProviderSettings.md +14 -0
  34. data/docs/ProviderSettingsRequest.md +12 -0
  35. data/docs/ProviderSettingsRequestPatch.md +12 -0
  36. data/docs/PythonPackageUpload.md +7 -0
  37. data/docs/RawPackageUpload.md +7 -0
  38. data/docs/RpmPackageUpload.md +7 -0
  39. data/docs/RubyPackageUpload.md +7 -0
  40. data/docs/StatusBasic.md +1 -1
  41. data/docs/SwiftPackageUpload.md +7 -0
  42. data/docs/TerraformPackageUpload.md +7 -0
  43. data/docs/VagrantPackageUpload.md +7 -0
  44. data/lib/cloudsmith-api/api/orgs_api.rb +358 -0
  45. data/lib/cloudsmith-api/api/packages_api.rb +4 -4
  46. data/lib/cloudsmith-api/models/alpine_package_upload.rb +64 -1
  47. data/lib/cloudsmith-api/models/cargo_package_upload.rb +64 -1
  48. data/lib/cloudsmith-api/models/cocoapods_package_upload.rb +64 -1
  49. data/lib/cloudsmith-api/models/composer_package_upload.rb +64 -1
  50. data/lib/cloudsmith-api/models/conan_package_upload.rb +64 -1
  51. data/lib/cloudsmith-api/models/conda_package_upload.rb +64 -1
  52. data/lib/cloudsmith-api/models/cran_package_upload.rb +64 -1
  53. data/lib/cloudsmith-api/models/dart_package_upload.rb +64 -1
  54. data/lib/cloudsmith-api/models/deb_package_upload.rb +64 -1
  55. data/lib/cloudsmith-api/models/docker_package_upload.rb +64 -1
  56. data/lib/cloudsmith-api/models/go_package_upload.rb +64 -1
  57. data/lib/cloudsmith-api/models/helm_package_upload.rb +64 -1
  58. data/lib/cloudsmith-api/models/hex_package_upload.rb +64 -1
  59. data/lib/cloudsmith-api/models/luarocks_package_upload.rb +64 -1
  60. data/lib/cloudsmith-api/models/maven_package_upload.rb +64 -1
  61. data/lib/cloudsmith-api/models/npm_package_upload.rb +64 -1
  62. data/lib/cloudsmith-api/models/nuget_package_upload.rb +64 -1
  63. data/lib/cloudsmith-api/models/organization_membership.rb +1 -1
  64. data/lib/cloudsmith-api/models/p2_package_upload.rb +64 -1
  65. data/lib/cloudsmith-api/models/package.rb +64 -1
  66. data/lib/cloudsmith-api/models/package_copy.rb +64 -1
  67. data/lib/cloudsmith-api/models/package_move.rb +64 -1
  68. data/lib/cloudsmith-api/models/package_quarantine.rb +64 -1
  69. data/lib/cloudsmith-api/models/package_resync.rb +64 -1
  70. data/lib/cloudsmith-api/models/package_status.rb +64 -1
  71. data/lib/cloudsmith-api/models/package_tag.rb +64 -1
  72. data/lib/cloudsmith-api/models/provider_settings.rb +272 -0
  73. data/lib/cloudsmith-api/models/provider_settings_request.rb +252 -0
  74. data/lib/cloudsmith-api/models/provider_settings_request_patch.rb +227 -0
  75. data/lib/cloudsmith-api/models/python_package_upload.rb +64 -1
  76. data/lib/cloudsmith-api/models/raw_package_upload.rb +64 -1
  77. data/lib/cloudsmith-api/models/rpm_package_upload.rb +64 -1
  78. data/lib/cloudsmith-api/models/ruby_package_upload.rb +64 -1
  79. data/lib/cloudsmith-api/models/status_basic.rb +1 -1
  80. data/lib/cloudsmith-api/models/swift_package_upload.rb +64 -1
  81. data/lib/cloudsmith-api/models/terraform_package_upload.rb +64 -1
  82. data/lib/cloudsmith-api/models/vagrant_package_upload.rb +64 -1
  83. data/lib/cloudsmith-api/version.rb +1 -1
  84. data/lib/cloudsmith-api.rb +3 -0
  85. data/spec/api/orgs_api_spec.rb +81 -0
  86. data/spec/api/packages_api_spec.rb +2 -2
  87. data/spec/models/alpine_package_upload_spec.rb +42 -0
  88. data/spec/models/cargo_package_upload_spec.rb +42 -0
  89. data/spec/models/cocoapods_package_upload_spec.rb +42 -0
  90. data/spec/models/composer_package_upload_spec.rb +42 -0
  91. data/spec/models/conan_package_upload_spec.rb +42 -0
  92. data/spec/models/conda_package_upload_spec.rb +42 -0
  93. data/spec/models/cran_package_upload_spec.rb +42 -0
  94. data/spec/models/dart_package_upload_spec.rb +42 -0
  95. data/spec/models/deb_package_upload_spec.rb +42 -0
  96. data/spec/models/docker_package_upload_spec.rb +42 -0
  97. data/spec/models/go_package_upload_spec.rb +42 -0
  98. data/spec/models/helm_package_upload_spec.rb +42 -0
  99. data/spec/models/hex_package_upload_spec.rb +42 -0
  100. data/spec/models/luarocks_package_upload_spec.rb +42 -0
  101. data/spec/models/maven_package_upload_spec.rb +42 -0
  102. data/spec/models/npm_package_upload_spec.rb +42 -0
  103. data/spec/models/nuget_package_upload_spec.rb +42 -0
  104. data/spec/models/p2_package_upload_spec.rb +42 -0
  105. data/spec/models/package_copy_spec.rb +42 -0
  106. data/spec/models/package_move_spec.rb +42 -0
  107. data/spec/models/package_quarantine_spec.rb +42 -0
  108. data/spec/models/package_resync_spec.rb +42 -0
  109. data/spec/models/package_spec.rb +42 -0
  110. data/spec/models/package_status_spec.rb +42 -0
  111. data/spec/models/package_tag_spec.rb +42 -0
  112. data/spec/models/provider_settings_request_patch_spec.rb +65 -0
  113. data/spec/models/provider_settings_request_spec.rb +65 -0
  114. data/spec/models/provider_settings_spec.rb +77 -0
  115. data/spec/models/python_package_upload_spec.rb +42 -0
  116. data/spec/models/raw_package_upload_spec.rb +42 -0
  117. data/spec/models/rpm_package_upload_spec.rb +42 -0
  118. data/spec/models/ruby_package_upload_spec.rb +42 -0
  119. data/spec/models/swift_package_upload_spec.rb +42 -0
  120. data/spec/models/terraform_package_upload_spec.rb +42 -0
  121. data/spec/models/vagrant_package_upload_spec.rb +42 -0
  122. data/vendor/bundle/ruby/2.6.0/extensions/x86_64-linux/2.6.0/autotest-fsevent-0.2.21/gem_make.out +1 -1
  123. data/vendor/bundle/ruby/2.6.0/extensions/x86_64-linux/2.6.0/bigdecimal-3.1.7/gem_make.out +2 -2
  124. data/vendor/bundle/ruby/2.6.0/extensions/x86_64-linux/2.6.0/bigdecimal-3.1.7/mkmf.log +5 -5
  125. data/vendor/bundle/ruby/2.6.0/extensions/x86_64-linux/2.6.0/ffi-1.16.3/gem_make.out +2 -2
  126. data/vendor/bundle/ruby/2.6.0/extensions/x86_64-linux/2.6.0/ffi-1.16.3/mkmf.log +1 -1
  127. data/vendor/bundle/ruby/2.6.0/extensions/x86_64-linux/2.6.0/json-2.7.2/gem_make.out +1 -1
  128. data/vendor/bundle/ruby/2.6.0/extensions/x86_64-linux/2.6.0/json-2.7.2/mkmf.log +1 -1
  129. data/vendor/bundle/ruby/2.6.0/gems/bigdecimal-3.1.7/ext/bigdecimal/Makefile +2 -2
  130. data/vendor/bundle/ruby/2.6.0/gems/ffi-1.16.3/ext/ffi_c/Makefile +2 -2
  131. data/vendor/bundle/ruby/2.6.0/gems/json-2.7.2/ext/json/Makefile +2 -2
  132. data/vendor/bundle/ruby/2.6.0/gems/json-2.7.2/ext/json/ext/generator/Makefile +2 -2
  133. data/vendor/bundle/ruby/2.6.0/gems/json-2.7.2/ext/json/ext/parser/Makefile +2 -2
  134. metadata +15 -3
@@ -58,10 +58,24 @@ class PackageResync
58
58
 
59
59
  attr_accessor :indexed
60
60
 
61
+ attr_accessor :is_cancellable
62
+
63
+ attr_accessor :is_copyable
64
+
65
+ attr_accessor :is_deleteable
66
+
61
67
  attr_accessor :is_downloadable
62
68
 
69
+ attr_accessor :is_moveable
70
+
71
+ attr_accessor :is_quarantinable
72
+
63
73
  attr_accessor :is_quarantined
64
74
 
75
+ attr_accessor :is_resyncable
76
+
77
+ attr_accessor :is_security_scannable
78
+
65
79
  attr_accessor :is_sync_awaiting
66
80
 
67
81
  attr_accessor :is_sync_completed
@@ -220,8 +234,15 @@ class PackageResync
220
234
  :'format_url' => :'format_url',
221
235
  :'identifier_perm' => :'identifier_perm',
222
236
  :'indexed' => :'indexed',
237
+ :'is_cancellable' => :'is_cancellable',
238
+ :'is_copyable' => :'is_copyable',
239
+ :'is_deleteable' => :'is_deleteable',
223
240
  :'is_downloadable' => :'is_downloadable',
241
+ :'is_moveable' => :'is_moveable',
242
+ :'is_quarantinable' => :'is_quarantinable',
224
243
  :'is_quarantined' => :'is_quarantined',
244
+ :'is_resyncable' => :'is_resyncable',
245
+ :'is_security_scannable' => :'is_security_scannable',
225
246
  :'is_sync_awaiting' => :'is_sync_awaiting',
226
247
  :'is_sync_completed' => :'is_sync_completed',
227
248
  :'is_sync_failed' => :'is_sync_failed',
@@ -295,8 +316,15 @@ class PackageResync
295
316
  :'format_url' => :'String',
296
317
  :'identifier_perm' => :'String',
297
318
  :'indexed' => :'BOOLEAN',
319
+ :'is_cancellable' => :'BOOLEAN',
320
+ :'is_copyable' => :'BOOLEAN',
321
+ :'is_deleteable' => :'BOOLEAN',
298
322
  :'is_downloadable' => :'BOOLEAN',
323
+ :'is_moveable' => :'BOOLEAN',
324
+ :'is_quarantinable' => :'BOOLEAN',
299
325
  :'is_quarantined' => :'BOOLEAN',
326
+ :'is_resyncable' => :'BOOLEAN',
327
+ :'is_security_scannable' => :'BOOLEAN',
300
328
  :'is_sync_awaiting' => :'BOOLEAN',
301
329
  :'is_sync_completed' => :'BOOLEAN',
302
330
  :'is_sync_failed' => :'BOOLEAN',
@@ -439,14 +467,42 @@ class PackageResync
439
467
  self.indexed = attributes[:'indexed']
440
468
  end
441
469
 
470
+ if attributes.has_key?(:'is_cancellable')
471
+ self.is_cancellable = attributes[:'is_cancellable']
472
+ end
473
+
474
+ if attributes.has_key?(:'is_copyable')
475
+ self.is_copyable = attributes[:'is_copyable']
476
+ end
477
+
478
+ if attributes.has_key?(:'is_deleteable')
479
+ self.is_deleteable = attributes[:'is_deleteable']
480
+ end
481
+
442
482
  if attributes.has_key?(:'is_downloadable')
443
483
  self.is_downloadable = attributes[:'is_downloadable']
444
484
  end
445
485
 
486
+ if attributes.has_key?(:'is_moveable')
487
+ self.is_moveable = attributes[:'is_moveable']
488
+ end
489
+
490
+ if attributes.has_key?(:'is_quarantinable')
491
+ self.is_quarantinable = attributes[:'is_quarantinable']
492
+ end
493
+
446
494
  if attributes.has_key?(:'is_quarantined')
447
495
  self.is_quarantined = attributes[:'is_quarantined']
448
496
  end
449
497
 
498
+ if attributes.has_key?(:'is_resyncable')
499
+ self.is_resyncable = attributes[:'is_resyncable']
500
+ end
501
+
502
+ if attributes.has_key?(:'is_security_scannable')
503
+ self.is_security_scannable = attributes[:'is_security_scannable']
504
+ end
505
+
450
506
  if attributes.has_key?(:'is_sync_awaiting')
451
507
  self.is_sync_awaiting = attributes[:'is_sync_awaiting']
452
508
  end
@@ -688,8 +744,15 @@ class PackageResync
688
744
  format_url == o.format_url &&
689
745
  identifier_perm == o.identifier_perm &&
690
746
  indexed == o.indexed &&
747
+ is_cancellable == o.is_cancellable &&
748
+ is_copyable == o.is_copyable &&
749
+ is_deleteable == o.is_deleteable &&
691
750
  is_downloadable == o.is_downloadable &&
751
+ is_moveable == o.is_moveable &&
752
+ is_quarantinable == o.is_quarantinable &&
692
753
  is_quarantined == o.is_quarantined &&
754
+ is_resyncable == o.is_resyncable &&
755
+ is_security_scannable == o.is_security_scannable &&
693
756
  is_sync_awaiting == o.is_sync_awaiting &&
694
757
  is_sync_completed == o.is_sync_completed &&
695
758
  is_sync_failed == o.is_sync_failed &&
@@ -748,7 +811,7 @@ class PackageResync
748
811
  # Calculates hash code according to all attributes.
749
812
  # @return [Fixnum] Hash code
750
813
  def hash
751
- [architectures, cdn_url, checksum_md5, checksum_sha1, checksum_sha256, checksum_sha512, dependencies_checksum_md5, dependencies_url, description, distro, distro_version, downloads, epoch, extension, filename, files, format, format_url, identifier_perm, indexed, is_downloadable, is_quarantined, is_sync_awaiting, is_sync_completed, is_sync_failed, is_sync_in_flight, is_sync_in_progress, license, name, namespace, namespace_url, num_files, origin_repository, origin_repository_url, package_type, release, repository, repository_url, security_scan_completed_at, security_scan_started_at, security_scan_status, security_scan_status_updated_at, self_html_url, self_url, signature_url, size, slug, slug_perm, stage, stage_str, stage_updated_at, status, status_reason, status_str, status_updated_at, status_url, subtype, summary, sync_finished_at, sync_progress, tags, tags_immutable, type_display, uploaded_at, uploader, uploader_url, version, version_orig, vulnerability_scan_results_url].hash
814
+ [architectures, cdn_url, checksum_md5, checksum_sha1, checksum_sha256, checksum_sha512, dependencies_checksum_md5, dependencies_url, description, distro, distro_version, downloads, epoch, extension, filename, files, format, format_url, identifier_perm, indexed, is_cancellable, is_copyable, is_deleteable, is_downloadable, is_moveable, is_quarantinable, is_quarantined, is_resyncable, is_security_scannable, is_sync_awaiting, is_sync_completed, is_sync_failed, is_sync_in_flight, is_sync_in_progress, license, name, namespace, namespace_url, num_files, origin_repository, origin_repository_url, package_type, release, repository, repository_url, security_scan_completed_at, security_scan_started_at, security_scan_status, security_scan_status_updated_at, self_html_url, self_url, signature_url, size, slug, slug_perm, stage, stage_str, stage_updated_at, status, status_reason, status_str, status_updated_at, status_url, subtype, summary, sync_finished_at, sync_progress, tags, tags_immutable, type_display, uploaded_at, uploader, uploader_url, version, version_orig, vulnerability_scan_results_url].hash
752
815
  end
753
816
 
754
817
  # Builds the object from hash
@@ -14,10 +14,24 @@ require 'date'
14
14
 
15
15
  module CloudsmithApi
16
16
  class PackageStatus
17
+ attr_accessor :is_cancellable
18
+
19
+ attr_accessor :is_copyable
20
+
21
+ attr_accessor :is_deleteable
22
+
17
23
  attr_accessor :is_downloadable
18
24
 
25
+ attr_accessor :is_moveable
26
+
27
+ attr_accessor :is_quarantinable
28
+
19
29
  attr_accessor :is_quarantined
20
30
 
31
+ attr_accessor :is_resyncable
32
+
33
+ attr_accessor :is_security_scannable
34
+
21
35
  attr_accessor :is_sync_awaiting
22
36
 
23
37
  attr_accessor :is_sync_completed
@@ -58,8 +72,15 @@ class PackageStatus
58
72
  # Attribute mapping from ruby-style variable name to JSON key.
59
73
  def self.attribute_map
60
74
  {
75
+ :'is_cancellable' => :'is_cancellable',
76
+ :'is_copyable' => :'is_copyable',
77
+ :'is_deleteable' => :'is_deleteable',
61
78
  :'is_downloadable' => :'is_downloadable',
79
+ :'is_moveable' => :'is_moveable',
80
+ :'is_quarantinable' => :'is_quarantinable',
62
81
  :'is_quarantined' => :'is_quarantined',
82
+ :'is_resyncable' => :'is_resyncable',
83
+ :'is_security_scannable' => :'is_security_scannable',
63
84
  :'is_sync_awaiting' => :'is_sync_awaiting',
64
85
  :'is_sync_completed' => :'is_sync_completed',
65
86
  :'is_sync_failed' => :'is_sync_failed',
@@ -81,8 +102,15 @@ class PackageStatus
81
102
  # Attribute type mapping.
82
103
  def self.swagger_types
83
104
  {
105
+ :'is_cancellable' => :'BOOLEAN',
106
+ :'is_copyable' => :'BOOLEAN',
107
+ :'is_deleteable' => :'BOOLEAN',
84
108
  :'is_downloadable' => :'BOOLEAN',
109
+ :'is_moveable' => :'BOOLEAN',
110
+ :'is_quarantinable' => :'BOOLEAN',
85
111
  :'is_quarantined' => :'BOOLEAN',
112
+ :'is_resyncable' => :'BOOLEAN',
113
+ :'is_security_scannable' => :'BOOLEAN',
86
114
  :'is_sync_awaiting' => :'BOOLEAN',
87
115
  :'is_sync_completed' => :'BOOLEAN',
88
116
  :'is_sync_failed' => :'BOOLEAN',
@@ -109,14 +137,42 @@ class PackageStatus
109
137
  # convert string to symbol for hash key
110
138
  attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
111
139
 
140
+ if attributes.has_key?(:'is_cancellable')
141
+ self.is_cancellable = attributes[:'is_cancellable']
142
+ end
143
+
144
+ if attributes.has_key?(:'is_copyable')
145
+ self.is_copyable = attributes[:'is_copyable']
146
+ end
147
+
148
+ if attributes.has_key?(:'is_deleteable')
149
+ self.is_deleteable = attributes[:'is_deleteable']
150
+ end
151
+
112
152
  if attributes.has_key?(:'is_downloadable')
113
153
  self.is_downloadable = attributes[:'is_downloadable']
114
154
  end
115
155
 
156
+ if attributes.has_key?(:'is_moveable')
157
+ self.is_moveable = attributes[:'is_moveable']
158
+ end
159
+
160
+ if attributes.has_key?(:'is_quarantinable')
161
+ self.is_quarantinable = attributes[:'is_quarantinable']
162
+ end
163
+
116
164
  if attributes.has_key?(:'is_quarantined')
117
165
  self.is_quarantined = attributes[:'is_quarantined']
118
166
  end
119
167
 
168
+ if attributes.has_key?(:'is_resyncable')
169
+ self.is_resyncable = attributes[:'is_resyncable']
170
+ end
171
+
172
+ if attributes.has_key?(:'is_security_scannable')
173
+ self.is_security_scannable = attributes[:'is_security_scannable']
174
+ end
175
+
120
176
  if attributes.has_key?(:'is_sync_awaiting')
121
177
  self.is_sync_awaiting = attributes[:'is_sync_awaiting']
122
178
  end
@@ -196,8 +252,15 @@ class PackageStatus
196
252
  def ==(o)
197
253
  return true if self.equal?(o)
198
254
  self.class == o.class &&
255
+ is_cancellable == o.is_cancellable &&
256
+ is_copyable == o.is_copyable &&
257
+ is_deleteable == o.is_deleteable &&
199
258
  is_downloadable == o.is_downloadable &&
259
+ is_moveable == o.is_moveable &&
260
+ is_quarantinable == o.is_quarantinable &&
200
261
  is_quarantined == o.is_quarantined &&
262
+ is_resyncable == o.is_resyncable &&
263
+ is_security_scannable == o.is_security_scannable &&
201
264
  is_sync_awaiting == o.is_sync_awaiting &&
202
265
  is_sync_completed == o.is_sync_completed &&
203
266
  is_sync_failed == o.is_sync_failed &&
@@ -224,7 +287,7 @@ class PackageStatus
224
287
  # Calculates hash code according to all attributes.
225
288
  # @return [Fixnum] Hash code
226
289
  def hash
227
- [is_downloadable, is_quarantined, is_sync_awaiting, is_sync_completed, is_sync_failed, is_sync_in_flight, is_sync_in_progress, self_url, stage, stage_str, stage_updated_at, status, status_reason, status_str, status_updated_at, sync_finished_at, sync_progress].hash
290
+ [is_cancellable, is_copyable, is_deleteable, is_downloadable, is_moveable, is_quarantinable, is_quarantined, is_resyncable, is_security_scannable, is_sync_awaiting, is_sync_completed, is_sync_failed, is_sync_in_flight, is_sync_in_progress, self_url, stage, stage_str, stage_updated_at, status, status_reason, status_str, status_updated_at, sync_finished_at, sync_progress].hash
228
291
  end
229
292
 
230
293
  # Builds the object from hash
@@ -58,13 +58,27 @@ class PackageTag
58
58
 
59
59
  attr_accessor :indexed
60
60
 
61
+ attr_accessor :is_cancellable
62
+
63
+ attr_accessor :is_copyable
64
+
65
+ attr_accessor :is_deleteable
66
+
61
67
  attr_accessor :is_downloadable
62
68
 
63
69
  # If true, created tags will be immutable. An immutable flag is a tag that cannot be removed from a package.
64
70
  attr_accessor :is_immutable
65
71
 
72
+ attr_accessor :is_moveable
73
+
74
+ attr_accessor :is_quarantinable
75
+
66
76
  attr_accessor :is_quarantined
67
77
 
78
+ attr_accessor :is_resyncable
79
+
80
+ attr_accessor :is_security_scannable
81
+
68
82
  attr_accessor :is_sync_awaiting
69
83
 
70
84
  attr_accessor :is_sync_completed
@@ -221,9 +235,16 @@ class PackageTag
221
235
  :'format_url' => :'format_url',
222
236
  :'identifier_perm' => :'identifier_perm',
223
237
  :'indexed' => :'indexed',
238
+ :'is_cancellable' => :'is_cancellable',
239
+ :'is_copyable' => :'is_copyable',
240
+ :'is_deleteable' => :'is_deleteable',
224
241
  :'is_downloadable' => :'is_downloadable',
225
242
  :'is_immutable' => :'is_immutable',
243
+ :'is_moveable' => :'is_moveable',
244
+ :'is_quarantinable' => :'is_quarantinable',
226
245
  :'is_quarantined' => :'is_quarantined',
246
+ :'is_resyncable' => :'is_resyncable',
247
+ :'is_security_scannable' => :'is_security_scannable',
227
248
  :'is_sync_awaiting' => :'is_sync_awaiting',
228
249
  :'is_sync_completed' => :'is_sync_completed',
229
250
  :'is_sync_failed' => :'is_sync_failed',
@@ -296,9 +317,16 @@ class PackageTag
296
317
  :'format_url' => :'String',
297
318
  :'identifier_perm' => :'String',
298
319
  :'indexed' => :'BOOLEAN',
320
+ :'is_cancellable' => :'BOOLEAN',
321
+ :'is_copyable' => :'BOOLEAN',
322
+ :'is_deleteable' => :'BOOLEAN',
299
323
  :'is_downloadable' => :'BOOLEAN',
300
324
  :'is_immutable' => :'BOOLEAN',
325
+ :'is_moveable' => :'BOOLEAN',
326
+ :'is_quarantinable' => :'BOOLEAN',
301
327
  :'is_quarantined' => :'BOOLEAN',
328
+ :'is_resyncable' => :'BOOLEAN',
329
+ :'is_security_scannable' => :'BOOLEAN',
302
330
  :'is_sync_awaiting' => :'BOOLEAN',
303
331
  :'is_sync_completed' => :'BOOLEAN',
304
332
  :'is_sync_failed' => :'BOOLEAN',
@@ -440,6 +468,18 @@ class PackageTag
440
468
  self.indexed = attributes[:'indexed']
441
469
  end
442
470
 
471
+ if attributes.has_key?(:'is_cancellable')
472
+ self.is_cancellable = attributes[:'is_cancellable']
473
+ end
474
+
475
+ if attributes.has_key?(:'is_copyable')
476
+ self.is_copyable = attributes[:'is_copyable']
477
+ end
478
+
479
+ if attributes.has_key?(:'is_deleteable')
480
+ self.is_deleteable = attributes[:'is_deleteable']
481
+ end
482
+
443
483
  if attributes.has_key?(:'is_downloadable')
444
484
  self.is_downloadable = attributes[:'is_downloadable']
445
485
  end
@@ -450,10 +490,26 @@ class PackageTag
450
490
  self.is_immutable = false
451
491
  end
452
492
 
493
+ if attributes.has_key?(:'is_moveable')
494
+ self.is_moveable = attributes[:'is_moveable']
495
+ end
496
+
497
+ if attributes.has_key?(:'is_quarantinable')
498
+ self.is_quarantinable = attributes[:'is_quarantinable']
499
+ end
500
+
453
501
  if attributes.has_key?(:'is_quarantined')
454
502
  self.is_quarantined = attributes[:'is_quarantined']
455
503
  end
456
504
 
505
+ if attributes.has_key?(:'is_resyncable')
506
+ self.is_resyncable = attributes[:'is_resyncable']
507
+ end
508
+
509
+ if attributes.has_key?(:'is_security_scannable')
510
+ self.is_security_scannable = attributes[:'is_security_scannable']
511
+ end
512
+
457
513
  if attributes.has_key?(:'is_sync_awaiting')
458
514
  self.is_sync_awaiting = attributes[:'is_sync_awaiting']
459
515
  end
@@ -691,9 +747,16 @@ class PackageTag
691
747
  format_url == o.format_url &&
692
748
  identifier_perm == o.identifier_perm &&
693
749
  indexed == o.indexed &&
750
+ is_cancellable == o.is_cancellable &&
751
+ is_copyable == o.is_copyable &&
752
+ is_deleteable == o.is_deleteable &&
694
753
  is_downloadable == o.is_downloadable &&
695
754
  is_immutable == o.is_immutable &&
755
+ is_moveable == o.is_moveable &&
756
+ is_quarantinable == o.is_quarantinable &&
696
757
  is_quarantined == o.is_quarantined &&
758
+ is_resyncable == o.is_resyncable &&
759
+ is_security_scannable == o.is_security_scannable &&
697
760
  is_sync_awaiting == o.is_sync_awaiting &&
698
761
  is_sync_completed == o.is_sync_completed &&
699
762
  is_sync_failed == o.is_sync_failed &&
@@ -751,7 +814,7 @@ class PackageTag
751
814
  # Calculates hash code according to all attributes.
752
815
  # @return [Fixnum] Hash code
753
816
  def hash
754
- [architectures, cdn_url, checksum_md5, checksum_sha1, checksum_sha256, checksum_sha512, dependencies_checksum_md5, dependencies_url, description, distro, distro_version, downloads, epoch, extension, filename, files, format, format_url, identifier_perm, indexed, is_downloadable, is_immutable, is_quarantined, is_sync_awaiting, is_sync_completed, is_sync_failed, is_sync_in_flight, is_sync_in_progress, license, name, namespace, namespace_url, num_files, origin_repository, origin_repository_url, package_type, release, repository, repository_url, security_scan_completed_at, security_scan_started_at, security_scan_status, security_scan_status_updated_at, self_html_url, self_url, signature_url, size, slug, slug_perm, stage, stage_str, stage_updated_at, status, status_reason, status_str, status_updated_at, status_url, subtype, summary, sync_finished_at, sync_progress, tags_immutable, type_display, uploaded_at, uploader, uploader_url, version, version_orig, vulnerability_scan_results_url].hash
817
+ [architectures, cdn_url, checksum_md5, checksum_sha1, checksum_sha256, checksum_sha512, dependencies_checksum_md5, dependencies_url, description, distro, distro_version, downloads, epoch, extension, filename, files, format, format_url, identifier_perm, indexed, is_cancellable, is_copyable, is_deleteable, is_downloadable, is_immutable, is_moveable, is_quarantinable, is_quarantined, is_resyncable, is_security_scannable, is_sync_awaiting, is_sync_completed, is_sync_failed, is_sync_in_flight, is_sync_in_progress, license, name, namespace, namespace_url, num_files, origin_repository, origin_repository_url, package_type, release, repository, repository_url, security_scan_completed_at, security_scan_started_at, security_scan_status, security_scan_status_updated_at, self_html_url, self_url, signature_url, size, slug, slug_perm, stage, stage_str, stage_updated_at, status, status_reason, status_str, status_updated_at, status_url, subtype, summary, sync_finished_at, sync_progress, tags_immutable, type_display, uploaded_at, uploader, uploader_url, version, version_orig, vulnerability_scan_results_url].hash
755
818
  end
756
819
 
757
820
  # Builds the object from hash
@@ -0,0 +1,272 @@
1
+ =begin
2
+ #Cloudsmith API (v1)
3
+
4
+ #The API to the Cloudsmith Service
5
+
6
+ OpenAPI spec version: v1
7
+ Contact: support@cloudsmith.io
8
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
9
+ Swagger Codegen version: 2.4.26
10
+
11
+ =end
12
+
13
+ require 'date'
14
+
15
+ module CloudsmithApi
16
+ class ProviderSettings
17
+ # The set of claims that any received tokens from the provider must contain to authenticate as the configured service account.
18
+ attr_accessor :claims
19
+
20
+ # Whether the provider settings should be used for incoming OIDC requests.
21
+ attr_accessor :enabled
22
+
23
+ # The name of the provider settings are being configured for
24
+ attr_accessor :name
25
+
26
+ # The URL from the provider that serves as the base for the OpenID configuration. For example, if the OpenID configuration is available at https://token.actions.githubusercontent.com/.well-known/openid-configuration, the provider URL would be https://token.actions.githubusercontent.com/
27
+ attr_accessor :provider_url
28
+
29
+ # The service accounts associated with these provider settings
30
+ attr_accessor :service_accounts
31
+
32
+ # The slug of the provider settings
33
+ attr_accessor :slug
34
+
35
+ # The unique, immutable identifier of the provider settings.
36
+ attr_accessor :slug_perm
37
+
38
+ # Attribute mapping from ruby-style variable name to JSON key.
39
+ def self.attribute_map
40
+ {
41
+ :'claims' => :'claims',
42
+ :'enabled' => :'enabled',
43
+ :'name' => :'name',
44
+ :'provider_url' => :'provider_url',
45
+ :'service_accounts' => :'service_accounts',
46
+ :'slug' => :'slug',
47
+ :'slug_perm' => :'slug_perm'
48
+ }
49
+ end
50
+
51
+ # Attribute type mapping.
52
+ def self.swagger_types
53
+ {
54
+ :'claims' => :'Object',
55
+ :'enabled' => :'BOOLEAN',
56
+ :'name' => :'String',
57
+ :'provider_url' => :'String',
58
+ :'service_accounts' => :'Array<String>',
59
+ :'slug' => :'String',
60
+ :'slug_perm' => :'String'
61
+ }
62
+ end
63
+
64
+ # Initializes the object
65
+ # @param [Hash] attributes Model attributes in the form of hash
66
+ def initialize(attributes = {})
67
+ return unless attributes.is_a?(Hash)
68
+
69
+ # convert string to symbol for hash key
70
+ attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
71
+
72
+ if attributes.has_key?(:'claims')
73
+ self.claims = attributes[:'claims']
74
+ end
75
+
76
+ if attributes.has_key?(:'enabled')
77
+ self.enabled = attributes[:'enabled']
78
+ end
79
+
80
+ if attributes.has_key?(:'name')
81
+ self.name = attributes[:'name']
82
+ end
83
+
84
+ if attributes.has_key?(:'provider_url')
85
+ self.provider_url = attributes[:'provider_url']
86
+ end
87
+
88
+ if attributes.has_key?(:'service_accounts')
89
+ if (value = attributes[:'service_accounts']).is_a?(Array)
90
+ self.service_accounts = value
91
+ end
92
+ end
93
+
94
+ if attributes.has_key?(:'slug')
95
+ self.slug = attributes[:'slug']
96
+ end
97
+
98
+ if attributes.has_key?(:'slug_perm')
99
+ self.slug_perm = attributes[:'slug_perm']
100
+ end
101
+ end
102
+
103
+ # Show invalid properties with the reasons. Usually used together with valid?
104
+ # @return Array for valid properties with the reasons
105
+ def list_invalid_properties
106
+ invalid_properties = Array.new
107
+ if @claims.nil?
108
+ invalid_properties.push('invalid value for "claims", claims cannot be nil.')
109
+ end
110
+
111
+ if @enabled.nil?
112
+ invalid_properties.push('invalid value for "enabled", enabled cannot be nil.')
113
+ end
114
+
115
+ if @name.nil?
116
+ invalid_properties.push('invalid value for "name", name cannot be nil.')
117
+ end
118
+
119
+ if @provider_url.nil?
120
+ invalid_properties.push('invalid value for "provider_url", provider_url cannot be nil.')
121
+ end
122
+
123
+ if @service_accounts.nil?
124
+ invalid_properties.push('invalid value for "service_accounts", service_accounts cannot be nil.')
125
+ end
126
+
127
+ invalid_properties
128
+ end
129
+
130
+ # Check to see if the all the properties in the model are valid
131
+ # @return true if the model is valid
132
+ def valid?
133
+ return false if @claims.nil?
134
+ return false if @enabled.nil?
135
+ return false if @name.nil?
136
+ return false if @provider_url.nil?
137
+ return false if @service_accounts.nil?
138
+ true
139
+ end
140
+
141
+ # Checks equality by comparing each attribute.
142
+ # @param [Object] Object to be compared
143
+ def ==(o)
144
+ return true if self.equal?(o)
145
+ self.class == o.class &&
146
+ claims == o.claims &&
147
+ enabled == o.enabled &&
148
+ name == o.name &&
149
+ provider_url == o.provider_url &&
150
+ service_accounts == o.service_accounts &&
151
+ slug == o.slug &&
152
+ slug_perm == o.slug_perm
153
+ end
154
+
155
+ # @see the `==` method
156
+ # @param [Object] Object to be compared
157
+ def eql?(o)
158
+ self == o
159
+ end
160
+
161
+ # Calculates hash code according to all attributes.
162
+ # @return [Fixnum] Hash code
163
+ def hash
164
+ [claims, enabled, name, provider_url, service_accounts, slug, slug_perm].hash
165
+ end
166
+
167
+ # Builds the object from hash
168
+ # @param [Hash] attributes Model attributes in the form of hash
169
+ # @return [Object] Returns the model itself
170
+ def build_from_hash(attributes)
171
+ return nil unless attributes.is_a?(Hash)
172
+ self.class.swagger_types.each_pair do |key, type|
173
+ if type =~ /\AArray<(.*)>/i
174
+ # check to ensure the input is an array given that the attribute
175
+ # is documented as an array but the input is not
176
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
177
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
178
+ end
179
+ elsif !attributes[self.class.attribute_map[key]].nil?
180
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
181
+ end # or else data not found in attributes(hash), not an issue as the data can be optional
182
+ end
183
+
184
+ self
185
+ end
186
+
187
+ # Deserializes the data based on type
188
+ # @param string type Data type
189
+ # @param string value Value to be deserialized
190
+ # @return [Object] Deserialized data
191
+ def _deserialize(type, value)
192
+ case type.to_sym
193
+ when :DateTime
194
+ DateTime.parse(value)
195
+ when :Date
196
+ Date.parse(value)
197
+ when :String
198
+ value.to_s
199
+ when :Integer
200
+ value.to_i
201
+ when :Float
202
+ value.to_f
203
+ when :BOOLEAN
204
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
205
+ true
206
+ else
207
+ false
208
+ end
209
+ when :Object
210
+ # generic object (usually a Hash), return directly
211
+ value
212
+ when /\AArray<(?<inner_type>.+)>\z/
213
+ inner_type = Regexp.last_match[:inner_type]
214
+ value.map { |v| _deserialize(inner_type, v) }
215
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
216
+ k_type = Regexp.last_match[:k_type]
217
+ v_type = Regexp.last_match[:v_type]
218
+ {}.tap do |hash|
219
+ value.each do |k, v|
220
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
221
+ end
222
+ end
223
+ else # model
224
+ temp_model = CloudsmithApi.const_get(type).new
225
+ temp_model.build_from_hash(value)
226
+ end
227
+ end
228
+
229
+ # Returns the string representation of the object
230
+ # @return [String] String presentation of the object
231
+ def to_s
232
+ to_hash.to_s
233
+ end
234
+
235
+ # to_body is an alias to to_hash (backward compatibility)
236
+ # @return [Hash] Returns the object in the form of hash
237
+ def to_body
238
+ to_hash
239
+ end
240
+
241
+ # Returns the object in the form of hash
242
+ # @return [Hash] Returns the object in the form of hash
243
+ def to_hash
244
+ hash = {}
245
+ self.class.attribute_map.each_pair do |attr, param|
246
+ value = self.send(attr)
247
+ next if value.nil?
248
+ hash[param] = _to_hash(value)
249
+ end
250
+ hash
251
+ end
252
+
253
+ # Outputs non-array value in the form of hash
254
+ # For object, use to_hash. Otherwise, just return the value
255
+ # @param [Object] value Any valid value
256
+ # @return [Hash] Returns the value in the form of hash
257
+ def _to_hash(value)
258
+ if value.is_a?(Array)
259
+ value.compact.map { |v| _to_hash(v) }
260
+ elsif value.is_a?(Hash)
261
+ {}.tap do |hash|
262
+ value.each { |k, v| hash[k] = _to_hash(v) }
263
+ end
264
+ elsif value.respond_to? :to_hash
265
+ value.to_hash
266
+ else
267
+ value
268
+ end
269
+ end
270
+
271
+ end
272
+ end