cloudsmith-api 2.0.5 → 2.0.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/Gemfile.lock +3 -3
- data/README.md +105 -4
- data/build.json +1 -1
- data/docs/DartUpstream.md +23 -0
- data/docs/DartUpstreamRequest.md +20 -0
- data/docs/DartUpstreamRequestPatch.md +20 -0
- data/docs/DebUpstream.md +27 -0
- data/docs/DebUpstreamRequest.md +24 -0
- data/docs/DebUpstreamRequestPatch.md +24 -0
- data/docs/DockerUpstream.md +23 -0
- data/docs/DockerUpstreamRequest.md +20 -0
- data/docs/DockerUpstreamRequestPatch.md +20 -0
- data/docs/HelmUpstream.md +23 -0
- data/docs/HelmUpstreamRequest.md +20 -0
- data/docs/HelmUpstreamRequestPatch.md +20 -0
- data/docs/MavenPackageUpload.md +2 -0
- data/docs/MavenPackageUploadRequest.md +2 -0
- data/docs/MavenUpstream.md +23 -0
- data/docs/MavenUpstreamRequest.md +20 -0
- data/docs/MavenUpstreamRequestPatch.md +20 -0
- data/docs/NpmUpstream.md +23 -0
- data/docs/NpmUpstreamRequest.md +20 -0
- data/docs/NpmUpstreamRequestPatch.md +20 -0
- data/docs/NugetUpstream.md +23 -0
- data/docs/NugetUpstreamRequest.md +20 -0
- data/docs/NugetUpstreamRequestPatch.md +20 -0
- data/docs/OrgsApi.md +431 -0
- data/docs/PackageLicensePolicyEvaluationRequest.md +14 -0
- data/docs/PackageLicensePolicyEvaluationRequestRequest.md +7 -0
- data/docs/PackageVulnerabilityPolicyEvaluationRequest.md +14 -0
- data/docs/PackageVulnerabilityPolicyEvaluationRequestRequest.md +7 -0
- data/docs/PythonUpstream.md +23 -0
- data/docs/PythonUpstreamRequest.md +20 -0
- data/docs/PythonUpstreamRequestPatch.md +20 -0
- data/docs/ReposApi.md +3770 -0
- data/docs/RpmUpstream.md +25 -0
- data/docs/RpmUpstreamRequest.md +22 -0
- data/docs/RpmUpstreamRequestPatch.md +22 -0
- data/docs/RubyUpstream.md +23 -0
- data/docs/RubyUpstreamRequest.md +20 -0
- data/docs/RubyUpstreamRequestPatch.md +20 -0
- data/docs/StatusBasic.md +1 -1
- data/lib/cloudsmith-api/api/orgs_api.rb +447 -0
- data/lib/cloudsmith-api/api/repos_api.rb +3950 -0
- data/lib/cloudsmith-api/models/dart_upstream.rb +393 -0
- data/lib/cloudsmith-api/models/dart_upstream_request.rb +365 -0
- data/lib/cloudsmith-api/models/dart_upstream_request_patch.rb +355 -0
- data/lib/cloudsmith-api/models/deb_upstream.rb +440 -0
- data/lib/cloudsmith-api/models/deb_upstream_request.rb +412 -0
- data/lib/cloudsmith-api/models/deb_upstream_request_patch.rb +397 -0
- data/lib/cloudsmith-api/models/docker_upstream.rb +393 -0
- data/lib/cloudsmith-api/models/docker_upstream_request.rb +365 -0
- data/lib/cloudsmith-api/models/docker_upstream_request_patch.rb +355 -0
- data/lib/cloudsmith-api/models/helm_upstream.rb +393 -0
- data/lib/cloudsmith-api/models/helm_upstream_request.rb +365 -0
- data/lib/cloudsmith-api/models/helm_upstream_request_patch.rb +355 -0
- data/lib/cloudsmith-api/models/maven_package_upload.rb +19 -1
- data/lib/cloudsmith-api/models/maven_package_upload_request.rb +19 -1
- data/lib/cloudsmith-api/models/maven_upstream.rb +393 -0
- data/lib/cloudsmith-api/models/maven_upstream_request.rb +365 -0
- data/lib/cloudsmith-api/models/maven_upstream_request_patch.rb +355 -0
- data/lib/cloudsmith-api/models/npm_upstream.rb +393 -0
- data/lib/cloudsmith-api/models/npm_upstream_request.rb +365 -0
- data/lib/cloudsmith-api/models/npm_upstream_request_patch.rb +355 -0
- data/lib/cloudsmith-api/models/nuget_upstream.rb +393 -0
- data/lib/cloudsmith-api/models/nuget_upstream_request.rb +365 -0
- data/lib/cloudsmith-api/models/nuget_upstream_request_patch.rb +355 -0
- data/lib/cloudsmith-api/models/package_license_policy_evaluation_request.rb +274 -0
- data/lib/cloudsmith-api/models/package_license_policy_evaluation_request_request.rb +175 -0
- data/lib/cloudsmith-api/models/package_vulnerability_policy_evaluation_request.rb +274 -0
- data/lib/cloudsmith-api/models/package_vulnerability_policy_evaluation_request_request.rb +175 -0
- data/lib/cloudsmith-api/models/python_upstream.rb +393 -0
- data/lib/cloudsmith-api/models/python_upstream_request.rb +365 -0
- data/lib/cloudsmith-api/models/python_upstream_request_patch.rb +355 -0
- data/lib/cloudsmith-api/models/rpm_upstream.rb +418 -0
- data/lib/cloudsmith-api/models/rpm_upstream_request.rb +390 -0
- data/lib/cloudsmith-api/models/rpm_upstream_request_patch.rb +375 -0
- data/lib/cloudsmith-api/models/ruby_upstream.rb +393 -0
- data/lib/cloudsmith-api/models/ruby_upstream_request.rb +365 -0
- data/lib/cloudsmith-api/models/ruby_upstream_request_patch.rb +355 -0
- data/lib/cloudsmith-api/models/status_basic.rb +1 -1
- data/lib/cloudsmith-api/version.rb +1 -1
- data/lib/cloudsmith-api.rb +34 -0
- data/spec/api/orgs_api_spec.rb +99 -0
- data/spec/api/repos_api_spec.rb +870 -0
- data/spec/models/dart_upstream_request_patch_spec.rb +121 -0
- data/spec/models/dart_upstream_request_spec.rb +121 -0
- data/spec/models/dart_upstream_spec.rb +139 -0
- data/spec/models/deb_upstream_request_patch_spec.rb +145 -0
- data/spec/models/deb_upstream_request_spec.rb +145 -0
- data/spec/models/deb_upstream_spec.rb +163 -0
- data/spec/models/docker_upstream_request_patch_spec.rb +121 -0
- data/spec/models/docker_upstream_request_spec.rb +121 -0
- data/spec/models/docker_upstream_spec.rb +139 -0
- data/spec/models/helm_upstream_request_patch_spec.rb +121 -0
- data/spec/models/helm_upstream_request_spec.rb +121 -0
- data/spec/models/helm_upstream_spec.rb +139 -0
- data/spec/models/maven_package_upload_request_spec.rb +12 -0
- data/spec/models/maven_package_upload_spec.rb +12 -0
- data/spec/models/maven_upstream_request_patch_spec.rb +121 -0
- data/spec/models/maven_upstream_request_spec.rb +121 -0
- data/spec/models/maven_upstream_spec.rb +139 -0
- data/spec/models/npm_upstream_request_patch_spec.rb +121 -0
- data/spec/models/npm_upstream_request_spec.rb +121 -0
- data/spec/models/npm_upstream_spec.rb +139 -0
- data/spec/models/nuget_upstream_request_patch_spec.rb +121 -0
- data/spec/models/nuget_upstream_request_spec.rb +121 -0
- data/spec/models/nuget_upstream_spec.rb +139 -0
- data/spec/models/package_license_policy_evaluation_request_request_spec.rb +35 -0
- data/spec/models/package_license_policy_evaluation_request_spec.rb +81 -0
- data/spec/models/package_vulnerability_policy_evaluation_request_request_spec.rb +35 -0
- data/spec/models/package_vulnerability_policy_evaluation_request_spec.rb +81 -0
- data/spec/models/python_upstream_request_patch_spec.rb +121 -0
- data/spec/models/python_upstream_request_spec.rb +121 -0
- data/spec/models/python_upstream_spec.rb +139 -0
- data/spec/models/rpm_upstream_request_patch_spec.rb +133 -0
- data/spec/models/rpm_upstream_request_spec.rb +133 -0
- data/spec/models/rpm_upstream_spec.rb +151 -0
- data/spec/models/ruby_upstream_request_patch_spec.rb +121 -0
- data/spec/models/ruby_upstream_request_spec.rb +121 -0
- data/spec/models/ruby_upstream_spec.rb +139 -0
- data/vendor/bundle/ruby/2.6.0/cache/rspec-support-3.12.1.gem +0 -0
- data/vendor/bundle/ruby/2.6.0/extensions/x86_64-linux/2.6.0/autotest-fsevent-0.2.20/gem_make.out +1 -1
- data/vendor/bundle/ruby/2.6.0/extensions/x86_64-linux/2.6.0/ffi-1.15.5/gem_make.out +2 -2
- data/vendor/bundle/ruby/2.6.0/extensions/x86_64-linux/2.6.0/json-2.6.3/gem_make.out +1 -1
- data/vendor/bundle/ruby/2.6.0/extensions/x86_64-linux/2.6.0/json-2.6.3/mkmf.log +1 -1
- data/vendor/bundle/ruby/2.6.0/gems/ffi-1.15.5/ext/ffi_c/Makefile +2 -2
- data/vendor/bundle/ruby/2.6.0/gems/json-2.6.3/ext/json/Makefile +2 -2
- data/vendor/bundle/ruby/2.6.0/gems/json-2.6.3/ext/json/ext/generator/Makefile +2 -2
- data/vendor/bundle/ruby/2.6.0/gems/json-2.6.3/ext/json/ext/parser/Makefile +2 -2
- data/vendor/bundle/ruby/2.6.0/gems/{rspec-support-3.12.0 → rspec-support-3.12.1}/Changelog.md +9 -1
- data/vendor/bundle/ruby/2.6.0/gems/{rspec-support-3.12.0 → rspec-support-3.12.1}/lib/rspec/support/spec/shell_out.rb +3 -0
- data/vendor/bundle/ruby/2.6.0/gems/{rspec-support-3.12.0 → rspec-support-3.12.1}/lib/rspec/support/version.rb +1 -1
- data/vendor/bundle/ruby/2.6.0/gems/{rspec-support-3.12.0 → rspec-support-3.12.1}/lib/rspec/support.rb +8 -2
- data/vendor/bundle/ruby/2.6.0/specifications/{rspec-support-3.12.0.gemspec → rspec-support-3.12.1.gemspec} +5 -5
- metadata +176 -40
- data/vendor/bundle/ruby/2.6.0/cache/rspec-support-3.12.0.gem +0 -0
- /data/vendor/bundle/ruby/2.6.0/gems/{rspec-support-3.12.0 → rspec-support-3.12.1}/LICENSE.md +0 -0
- /data/vendor/bundle/ruby/2.6.0/gems/{rspec-support-3.12.0 → rspec-support-3.12.1}/README.md +0 -0
- /data/vendor/bundle/ruby/2.6.0/gems/{rspec-support-3.12.0 → rspec-support-3.12.1}/lib/rspec/support/caller_filter.rb +0 -0
- /data/vendor/bundle/ruby/2.6.0/gems/{rspec-support-3.12.0 → rspec-support-3.12.1}/lib/rspec/support/comparable_version.rb +0 -0
- /data/vendor/bundle/ruby/2.6.0/gems/{rspec-support-3.12.0 → rspec-support-3.12.1}/lib/rspec/support/differ.rb +0 -0
- /data/vendor/bundle/ruby/2.6.0/gems/{rspec-support-3.12.0 → rspec-support-3.12.1}/lib/rspec/support/directory_maker.rb +0 -0
- /data/vendor/bundle/ruby/2.6.0/gems/{rspec-support-3.12.0 → rspec-support-3.12.1}/lib/rspec/support/encoded_string.rb +0 -0
- /data/vendor/bundle/ruby/2.6.0/gems/{rspec-support-3.12.0 → rspec-support-3.12.1}/lib/rspec/support/fuzzy_matcher.rb +0 -0
- /data/vendor/bundle/ruby/2.6.0/gems/{rspec-support-3.12.0 → rspec-support-3.12.1}/lib/rspec/support/hunk_generator.rb +0 -0
- /data/vendor/bundle/ruby/2.6.0/gems/{rspec-support-3.12.0 → rspec-support-3.12.1}/lib/rspec/support/matcher_definition.rb +0 -0
- /data/vendor/bundle/ruby/2.6.0/gems/{rspec-support-3.12.0 → rspec-support-3.12.1}/lib/rspec/support/method_signature_verifier.rb +0 -0
- /data/vendor/bundle/ruby/2.6.0/gems/{rspec-support-3.12.0 → rspec-support-3.12.1}/lib/rspec/support/mutex.rb +0 -0
- /data/vendor/bundle/ruby/2.6.0/gems/{rspec-support-3.12.0 → rspec-support-3.12.1}/lib/rspec/support/object_formatter.rb +0 -0
- /data/vendor/bundle/ruby/2.6.0/gems/{rspec-support-3.12.0 → rspec-support-3.12.1}/lib/rspec/support/recursive_const_methods.rb +0 -0
- /data/vendor/bundle/ruby/2.6.0/gems/{rspec-support-3.12.0 → rspec-support-3.12.1}/lib/rspec/support/reentrant_mutex.rb +0 -0
- /data/vendor/bundle/ruby/2.6.0/gems/{rspec-support-3.12.0 → rspec-support-3.12.1}/lib/rspec/support/ruby_features.rb +0 -0
- /data/vendor/bundle/ruby/2.6.0/gems/{rspec-support-3.12.0 → rspec-support-3.12.1}/lib/rspec/support/source/location.rb +0 -0
- /data/vendor/bundle/ruby/2.6.0/gems/{rspec-support-3.12.0 → rspec-support-3.12.1}/lib/rspec/support/source/node.rb +0 -0
- /data/vendor/bundle/ruby/2.6.0/gems/{rspec-support-3.12.0 → rspec-support-3.12.1}/lib/rspec/support/source/token.rb +0 -0
- /data/vendor/bundle/ruby/2.6.0/gems/{rspec-support-3.12.0 → rspec-support-3.12.1}/lib/rspec/support/source.rb +0 -0
- /data/vendor/bundle/ruby/2.6.0/gems/{rspec-support-3.12.0 → rspec-support-3.12.1}/lib/rspec/support/spec/deprecation_helpers.rb +0 -0
- /data/vendor/bundle/ruby/2.6.0/gems/{rspec-support-3.12.0 → rspec-support-3.12.1}/lib/rspec/support/spec/diff_helpers.rb +0 -0
- /data/vendor/bundle/ruby/2.6.0/gems/{rspec-support-3.12.0 → rspec-support-3.12.1}/lib/rspec/support/spec/formatting_support.rb +0 -0
- /data/vendor/bundle/ruby/2.6.0/gems/{rspec-support-3.12.0 → rspec-support-3.12.1}/lib/rspec/support/spec/in_sub_process.rb +0 -0
- /data/vendor/bundle/ruby/2.6.0/gems/{rspec-support-3.12.0 → rspec-support-3.12.1}/lib/rspec/support/spec/library_wide_checks.rb +0 -0
- /data/vendor/bundle/ruby/2.6.0/gems/{rspec-support-3.12.0 → rspec-support-3.12.1}/lib/rspec/support/spec/stderr_splitter.rb +0 -0
- /data/vendor/bundle/ruby/2.6.0/gems/{rspec-support-3.12.0 → rspec-support-3.12.1}/lib/rspec/support/spec/string_matcher.rb +0 -0
- /data/vendor/bundle/ruby/2.6.0/gems/{rspec-support-3.12.0 → rspec-support-3.12.1}/lib/rspec/support/spec/with_isolated_directory.rb +0 -0
- /data/vendor/bundle/ruby/2.6.0/gems/{rspec-support-3.12.0 → rspec-support-3.12.1}/lib/rspec/support/spec/with_isolated_stderr.rb +0 -0
- /data/vendor/bundle/ruby/2.6.0/gems/{rspec-support-3.12.0 → rspec-support-3.12.1}/lib/rspec/support/spec.rb +0 -0
- /data/vendor/bundle/ruby/2.6.0/gems/{rspec-support-3.12.0 → rspec-support-3.12.1}/lib/rspec/support/warnings.rb +0 -0
- /data/vendor/bundle/ruby/2.6.0/gems/{rspec-support-3.12.0 → rspec-support-3.12.1}/lib/rspec/support/with_keywords_when_needed.rb +0 -0
|
@@ -0,0 +1,355 @@
|
|
|
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 RubyUpstreamRequestPatch
|
|
17
|
+
# The authentication mode to use when accessing this upstream.
|
|
18
|
+
attr_accessor :auth_mode
|
|
19
|
+
|
|
20
|
+
# Secret to provide with requests to upstream.
|
|
21
|
+
attr_accessor :auth_secret
|
|
22
|
+
|
|
23
|
+
# Username to provide with requests to upstream.
|
|
24
|
+
attr_accessor :auth_username
|
|
25
|
+
|
|
26
|
+
# The key for extra header #1 to send to upstream.
|
|
27
|
+
attr_accessor :extra_header_1
|
|
28
|
+
|
|
29
|
+
# The key for extra header #2 to send to upstream.
|
|
30
|
+
attr_accessor :extra_header_2
|
|
31
|
+
|
|
32
|
+
# The value for extra header #1 to send to upstream. This is stored as plaintext, and is NOT encrypted.
|
|
33
|
+
attr_accessor :extra_value_1
|
|
34
|
+
|
|
35
|
+
# The value for extra header #2 to send to upstream. This is stored as plaintext, and is NOT encrypted.
|
|
36
|
+
attr_accessor :extra_value_2
|
|
37
|
+
|
|
38
|
+
# Whether or not this upstream is active and ready for requests.
|
|
39
|
+
attr_accessor :is_active
|
|
40
|
+
|
|
41
|
+
# The mode that this upstream should operate in. Upstream sources can be used to proxy resolved packages, as well as operate in a proxy/cache or cache only mode.
|
|
42
|
+
attr_accessor :mode
|
|
43
|
+
|
|
44
|
+
# A descriptive name for this upstream source. A shortened version of this name will be used for tagging cached packages retrieved from this upstream.
|
|
45
|
+
attr_accessor :name
|
|
46
|
+
|
|
47
|
+
# Upstream sources are selected for resolving requests by sequential order (1..n), followed by creation date.
|
|
48
|
+
attr_accessor :priority
|
|
49
|
+
|
|
50
|
+
# The URL for this upstream source. This must be a fully qualified URL including any path elements required to reach the root of the repository.
|
|
51
|
+
attr_accessor :upstream_url
|
|
52
|
+
|
|
53
|
+
# If enabled, SSL certificates are verified when requests are made to this upstream. It's recommended to leave this enabled for all public sources to help mitigate Man-In-The-Middle (MITM) attacks. Please note this only applies to HTTPS upstreams.
|
|
54
|
+
attr_accessor :verify_ssl
|
|
55
|
+
|
|
56
|
+
class EnumAttributeValidator
|
|
57
|
+
attr_reader :datatype
|
|
58
|
+
attr_reader :allowable_values
|
|
59
|
+
|
|
60
|
+
def initialize(datatype, allowable_values)
|
|
61
|
+
@allowable_values = allowable_values.map do |value|
|
|
62
|
+
case datatype.to_s
|
|
63
|
+
when /Integer/i
|
|
64
|
+
value.to_i
|
|
65
|
+
when /Float/i
|
|
66
|
+
value.to_f
|
|
67
|
+
else
|
|
68
|
+
value
|
|
69
|
+
end
|
|
70
|
+
end
|
|
71
|
+
end
|
|
72
|
+
|
|
73
|
+
def valid?(value)
|
|
74
|
+
!value || allowable_values.include?(value)
|
|
75
|
+
end
|
|
76
|
+
end
|
|
77
|
+
|
|
78
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
|
79
|
+
def self.attribute_map
|
|
80
|
+
{
|
|
81
|
+
:'auth_mode' => :'auth_mode',
|
|
82
|
+
:'auth_secret' => :'auth_secret',
|
|
83
|
+
:'auth_username' => :'auth_username',
|
|
84
|
+
:'extra_header_1' => :'extra_header_1',
|
|
85
|
+
:'extra_header_2' => :'extra_header_2',
|
|
86
|
+
:'extra_value_1' => :'extra_value_1',
|
|
87
|
+
:'extra_value_2' => :'extra_value_2',
|
|
88
|
+
:'is_active' => :'is_active',
|
|
89
|
+
:'mode' => :'mode',
|
|
90
|
+
:'name' => :'name',
|
|
91
|
+
:'priority' => :'priority',
|
|
92
|
+
:'upstream_url' => :'upstream_url',
|
|
93
|
+
:'verify_ssl' => :'verify_ssl'
|
|
94
|
+
}
|
|
95
|
+
end
|
|
96
|
+
|
|
97
|
+
# Attribute type mapping.
|
|
98
|
+
def self.swagger_types
|
|
99
|
+
{
|
|
100
|
+
:'auth_mode' => :'String',
|
|
101
|
+
:'auth_secret' => :'String',
|
|
102
|
+
:'auth_username' => :'String',
|
|
103
|
+
:'extra_header_1' => :'String',
|
|
104
|
+
:'extra_header_2' => :'String',
|
|
105
|
+
:'extra_value_1' => :'String',
|
|
106
|
+
:'extra_value_2' => :'String',
|
|
107
|
+
:'is_active' => :'BOOLEAN',
|
|
108
|
+
:'mode' => :'String',
|
|
109
|
+
:'name' => :'String',
|
|
110
|
+
:'priority' => :'Integer',
|
|
111
|
+
:'upstream_url' => :'String',
|
|
112
|
+
:'verify_ssl' => :'BOOLEAN'
|
|
113
|
+
}
|
|
114
|
+
end
|
|
115
|
+
|
|
116
|
+
# Initializes the object
|
|
117
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
118
|
+
def initialize(attributes = {})
|
|
119
|
+
return unless attributes.is_a?(Hash)
|
|
120
|
+
|
|
121
|
+
# convert string to symbol for hash key
|
|
122
|
+
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
|
123
|
+
|
|
124
|
+
if attributes.has_key?(:'auth_mode')
|
|
125
|
+
self.auth_mode = attributes[:'auth_mode']
|
|
126
|
+
else
|
|
127
|
+
self.auth_mode = 'None'
|
|
128
|
+
end
|
|
129
|
+
|
|
130
|
+
if attributes.has_key?(:'auth_secret')
|
|
131
|
+
self.auth_secret = attributes[:'auth_secret']
|
|
132
|
+
end
|
|
133
|
+
|
|
134
|
+
if attributes.has_key?(:'auth_username')
|
|
135
|
+
self.auth_username = attributes[:'auth_username']
|
|
136
|
+
end
|
|
137
|
+
|
|
138
|
+
if attributes.has_key?(:'extra_header_1')
|
|
139
|
+
self.extra_header_1 = attributes[:'extra_header_1']
|
|
140
|
+
end
|
|
141
|
+
|
|
142
|
+
if attributes.has_key?(:'extra_header_2')
|
|
143
|
+
self.extra_header_2 = attributes[:'extra_header_2']
|
|
144
|
+
end
|
|
145
|
+
|
|
146
|
+
if attributes.has_key?(:'extra_value_1')
|
|
147
|
+
self.extra_value_1 = attributes[:'extra_value_1']
|
|
148
|
+
end
|
|
149
|
+
|
|
150
|
+
if attributes.has_key?(:'extra_value_2')
|
|
151
|
+
self.extra_value_2 = attributes[:'extra_value_2']
|
|
152
|
+
end
|
|
153
|
+
|
|
154
|
+
if attributes.has_key?(:'is_active')
|
|
155
|
+
self.is_active = attributes[:'is_active']
|
|
156
|
+
end
|
|
157
|
+
|
|
158
|
+
if attributes.has_key?(:'mode')
|
|
159
|
+
self.mode = attributes[:'mode']
|
|
160
|
+
else
|
|
161
|
+
self.mode = 'Proxy Only'
|
|
162
|
+
end
|
|
163
|
+
|
|
164
|
+
if attributes.has_key?(:'name')
|
|
165
|
+
self.name = attributes[:'name']
|
|
166
|
+
end
|
|
167
|
+
|
|
168
|
+
if attributes.has_key?(:'priority')
|
|
169
|
+
self.priority = attributes[:'priority']
|
|
170
|
+
end
|
|
171
|
+
|
|
172
|
+
if attributes.has_key?(:'upstream_url')
|
|
173
|
+
self.upstream_url = attributes[:'upstream_url']
|
|
174
|
+
end
|
|
175
|
+
|
|
176
|
+
if attributes.has_key?(:'verify_ssl')
|
|
177
|
+
self.verify_ssl = attributes[:'verify_ssl']
|
|
178
|
+
end
|
|
179
|
+
end
|
|
180
|
+
|
|
181
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
|
182
|
+
# @return Array for valid properties with the reasons
|
|
183
|
+
def list_invalid_properties
|
|
184
|
+
invalid_properties = Array.new
|
|
185
|
+
invalid_properties
|
|
186
|
+
end
|
|
187
|
+
|
|
188
|
+
# Check to see if the all the properties in the model are valid
|
|
189
|
+
# @return true if the model is valid
|
|
190
|
+
def valid?
|
|
191
|
+
auth_mode_validator = EnumAttributeValidator.new('String', ['None', 'Username and Password'])
|
|
192
|
+
return false unless auth_mode_validator.valid?(@auth_mode)
|
|
193
|
+
mode_validator = EnumAttributeValidator.new('String', ['Proxy Only', 'Cache and Proxy'])
|
|
194
|
+
return false unless mode_validator.valid?(@mode)
|
|
195
|
+
true
|
|
196
|
+
end
|
|
197
|
+
|
|
198
|
+
# Custom attribute writer method checking allowed values (enum).
|
|
199
|
+
# @param [Object] auth_mode Object to be assigned
|
|
200
|
+
def auth_mode=(auth_mode)
|
|
201
|
+
validator = EnumAttributeValidator.new('String', ['None', 'Username and Password'])
|
|
202
|
+
unless validator.valid?(auth_mode)
|
|
203
|
+
fail ArgumentError, 'invalid value for "auth_mode", must be one of #{validator.allowable_values}.'
|
|
204
|
+
end
|
|
205
|
+
@auth_mode = auth_mode
|
|
206
|
+
end
|
|
207
|
+
|
|
208
|
+
# Custom attribute writer method checking allowed values (enum).
|
|
209
|
+
# @param [Object] mode Object to be assigned
|
|
210
|
+
def mode=(mode)
|
|
211
|
+
validator = EnumAttributeValidator.new('String', ['Proxy Only', 'Cache and Proxy'])
|
|
212
|
+
unless validator.valid?(mode)
|
|
213
|
+
fail ArgumentError, 'invalid value for "mode", must be one of #{validator.allowable_values}.'
|
|
214
|
+
end
|
|
215
|
+
@mode = mode
|
|
216
|
+
end
|
|
217
|
+
|
|
218
|
+
# Checks equality by comparing each attribute.
|
|
219
|
+
# @param [Object] Object to be compared
|
|
220
|
+
def ==(o)
|
|
221
|
+
return true if self.equal?(o)
|
|
222
|
+
self.class == o.class &&
|
|
223
|
+
auth_mode == o.auth_mode &&
|
|
224
|
+
auth_secret == o.auth_secret &&
|
|
225
|
+
auth_username == o.auth_username &&
|
|
226
|
+
extra_header_1 == o.extra_header_1 &&
|
|
227
|
+
extra_header_2 == o.extra_header_2 &&
|
|
228
|
+
extra_value_1 == o.extra_value_1 &&
|
|
229
|
+
extra_value_2 == o.extra_value_2 &&
|
|
230
|
+
is_active == o.is_active &&
|
|
231
|
+
mode == o.mode &&
|
|
232
|
+
name == o.name &&
|
|
233
|
+
priority == o.priority &&
|
|
234
|
+
upstream_url == o.upstream_url &&
|
|
235
|
+
verify_ssl == o.verify_ssl
|
|
236
|
+
end
|
|
237
|
+
|
|
238
|
+
# @see the `==` method
|
|
239
|
+
# @param [Object] Object to be compared
|
|
240
|
+
def eql?(o)
|
|
241
|
+
self == o
|
|
242
|
+
end
|
|
243
|
+
|
|
244
|
+
# Calculates hash code according to all attributes.
|
|
245
|
+
# @return [Fixnum] Hash code
|
|
246
|
+
def hash
|
|
247
|
+
[auth_mode, auth_secret, auth_username, extra_header_1, extra_header_2, extra_value_1, extra_value_2, is_active, mode, name, priority, upstream_url, verify_ssl].hash
|
|
248
|
+
end
|
|
249
|
+
|
|
250
|
+
# Builds the object from hash
|
|
251
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
252
|
+
# @return [Object] Returns the model itself
|
|
253
|
+
def build_from_hash(attributes)
|
|
254
|
+
return nil unless attributes.is_a?(Hash)
|
|
255
|
+
self.class.swagger_types.each_pair do |key, type|
|
|
256
|
+
if type =~ /\AArray<(.*)>/i
|
|
257
|
+
# check to ensure the input is an array given that the attribute
|
|
258
|
+
# is documented as an array but the input is not
|
|
259
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
|
260
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
|
261
|
+
end
|
|
262
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
|
263
|
+
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
|
264
|
+
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
|
265
|
+
end
|
|
266
|
+
|
|
267
|
+
self
|
|
268
|
+
end
|
|
269
|
+
|
|
270
|
+
# Deserializes the data based on type
|
|
271
|
+
# @param string type Data type
|
|
272
|
+
# @param string value Value to be deserialized
|
|
273
|
+
# @return [Object] Deserialized data
|
|
274
|
+
def _deserialize(type, value)
|
|
275
|
+
case type.to_sym
|
|
276
|
+
when :DateTime
|
|
277
|
+
DateTime.parse(value)
|
|
278
|
+
when :Date
|
|
279
|
+
Date.parse(value)
|
|
280
|
+
when :String
|
|
281
|
+
value.to_s
|
|
282
|
+
when :Integer
|
|
283
|
+
value.to_i
|
|
284
|
+
when :Float
|
|
285
|
+
value.to_f
|
|
286
|
+
when :BOOLEAN
|
|
287
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
|
288
|
+
true
|
|
289
|
+
else
|
|
290
|
+
false
|
|
291
|
+
end
|
|
292
|
+
when :Object
|
|
293
|
+
# generic object (usually a Hash), return directly
|
|
294
|
+
value
|
|
295
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
|
296
|
+
inner_type = Regexp.last_match[:inner_type]
|
|
297
|
+
value.map { |v| _deserialize(inner_type, v) }
|
|
298
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
|
299
|
+
k_type = Regexp.last_match[:k_type]
|
|
300
|
+
v_type = Regexp.last_match[:v_type]
|
|
301
|
+
{}.tap do |hash|
|
|
302
|
+
value.each do |k, v|
|
|
303
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
|
304
|
+
end
|
|
305
|
+
end
|
|
306
|
+
else # model
|
|
307
|
+
temp_model = CloudsmithApi.const_get(type).new
|
|
308
|
+
temp_model.build_from_hash(value)
|
|
309
|
+
end
|
|
310
|
+
end
|
|
311
|
+
|
|
312
|
+
# Returns the string representation of the object
|
|
313
|
+
# @return [String] String presentation of the object
|
|
314
|
+
def to_s
|
|
315
|
+
to_hash.to_s
|
|
316
|
+
end
|
|
317
|
+
|
|
318
|
+
# to_body is an alias to to_hash (backward compatibility)
|
|
319
|
+
# @return [Hash] Returns the object in the form of hash
|
|
320
|
+
def to_body
|
|
321
|
+
to_hash
|
|
322
|
+
end
|
|
323
|
+
|
|
324
|
+
# Returns the object in the form of hash
|
|
325
|
+
# @return [Hash] Returns the object in the form of hash
|
|
326
|
+
def to_hash
|
|
327
|
+
hash = {}
|
|
328
|
+
self.class.attribute_map.each_pair do |attr, param|
|
|
329
|
+
value = self.send(attr)
|
|
330
|
+
next if value.nil?
|
|
331
|
+
hash[param] = _to_hash(value)
|
|
332
|
+
end
|
|
333
|
+
hash
|
|
334
|
+
end
|
|
335
|
+
|
|
336
|
+
# Outputs non-array value in the form of hash
|
|
337
|
+
# For object, use to_hash. Otherwise, just return the value
|
|
338
|
+
# @param [Object] value Any valid value
|
|
339
|
+
# @return [Hash] Returns the value in the form of hash
|
|
340
|
+
def _to_hash(value)
|
|
341
|
+
if value.is_a?(Array)
|
|
342
|
+
value.compact.map { |v| _to_hash(v) }
|
|
343
|
+
elsif value.is_a?(Hash)
|
|
344
|
+
{}.tap do |hash|
|
|
345
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
|
346
|
+
end
|
|
347
|
+
elsif value.respond_to? :to_hash
|
|
348
|
+
value.to_hash
|
|
349
|
+
else
|
|
350
|
+
value
|
|
351
|
+
end
|
|
352
|
+
end
|
|
353
|
+
|
|
354
|
+
end
|
|
355
|
+
end
|
data/lib/cloudsmith-api.rb
CHANGED
|
@@ -41,13 +41,22 @@ require 'cloudsmith-api/models/cran_package_upload'
|
|
|
41
41
|
require 'cloudsmith-api/models/cran_package_upload_request'
|
|
42
42
|
require 'cloudsmith-api/models/dart_package_upload'
|
|
43
43
|
require 'cloudsmith-api/models/dart_package_upload_request'
|
|
44
|
+
require 'cloudsmith-api/models/dart_upstream'
|
|
45
|
+
require 'cloudsmith-api/models/dart_upstream_request'
|
|
46
|
+
require 'cloudsmith-api/models/dart_upstream_request_patch'
|
|
44
47
|
require 'cloudsmith-api/models/deb_package_upload'
|
|
45
48
|
require 'cloudsmith-api/models/deb_package_upload_request'
|
|
49
|
+
require 'cloudsmith-api/models/deb_upstream'
|
|
50
|
+
require 'cloudsmith-api/models/deb_upstream_request'
|
|
51
|
+
require 'cloudsmith-api/models/deb_upstream_request_patch'
|
|
46
52
|
require 'cloudsmith-api/models/distribution'
|
|
47
53
|
require 'cloudsmith-api/models/distribution_full'
|
|
48
54
|
require 'cloudsmith-api/models/distribution_version'
|
|
49
55
|
require 'cloudsmith-api/models/docker_package_upload'
|
|
50
56
|
require 'cloudsmith-api/models/docker_package_upload_request'
|
|
57
|
+
require 'cloudsmith-api/models/docker_upstream'
|
|
58
|
+
require 'cloudsmith-api/models/docker_upstream_request'
|
|
59
|
+
require 'cloudsmith-api/models/docker_upstream_request_patch'
|
|
51
60
|
require 'cloudsmith-api/models/entitlement_usage_metrics'
|
|
52
61
|
require 'cloudsmith-api/models/error_detail'
|
|
53
62
|
require 'cloudsmith-api/models/eula'
|
|
@@ -58,6 +67,9 @@ require 'cloudsmith-api/models/go_package_upload'
|
|
|
58
67
|
require 'cloudsmith-api/models/go_package_upload_request'
|
|
59
68
|
require 'cloudsmith-api/models/helm_package_upload'
|
|
60
69
|
require 'cloudsmith-api/models/helm_package_upload_request'
|
|
70
|
+
require 'cloudsmith-api/models/helm_upstream'
|
|
71
|
+
require 'cloudsmith-api/models/helm_upstream_request'
|
|
72
|
+
require 'cloudsmith-api/models/helm_upstream_request_patch'
|
|
61
73
|
require 'cloudsmith-api/models/hex_package_upload'
|
|
62
74
|
require 'cloudsmith-api/models/hex_package_upload_request'
|
|
63
75
|
require 'cloudsmith-api/models/history'
|
|
@@ -67,6 +79,9 @@ require 'cloudsmith-api/models/luarocks_package_upload'
|
|
|
67
79
|
require 'cloudsmith-api/models/luarocks_package_upload_request'
|
|
68
80
|
require 'cloudsmith-api/models/maven_package_upload'
|
|
69
81
|
require 'cloudsmith-api/models/maven_package_upload_request'
|
|
82
|
+
require 'cloudsmith-api/models/maven_upstream'
|
|
83
|
+
require 'cloudsmith-api/models/maven_upstream_request'
|
|
84
|
+
require 'cloudsmith-api/models/maven_upstream_request_patch'
|
|
70
85
|
require 'cloudsmith-api/models/namespace'
|
|
71
86
|
require 'cloudsmith-api/models/namespace_audit_log'
|
|
72
87
|
require 'cloudsmith-api/models/nested_license_policy'
|
|
@@ -74,8 +89,14 @@ require 'cloudsmith-api/models/nested_vulnerability_policy'
|
|
|
74
89
|
require 'cloudsmith-api/models/nested_vulnerability_scan_results'
|
|
75
90
|
require 'cloudsmith-api/models/npm_package_upload'
|
|
76
91
|
require 'cloudsmith-api/models/npm_package_upload_request'
|
|
92
|
+
require 'cloudsmith-api/models/npm_upstream'
|
|
93
|
+
require 'cloudsmith-api/models/npm_upstream_request'
|
|
94
|
+
require 'cloudsmith-api/models/npm_upstream_request_patch'
|
|
77
95
|
require 'cloudsmith-api/models/nuget_package_upload'
|
|
78
96
|
require 'cloudsmith-api/models/nuget_package_upload_request'
|
|
97
|
+
require 'cloudsmith-api/models/nuget_upstream'
|
|
98
|
+
require 'cloudsmith-api/models/nuget_upstream_request'
|
|
99
|
+
require 'cloudsmith-api/models/nuget_upstream_request_patch'
|
|
79
100
|
require 'cloudsmith-api/models/organization'
|
|
80
101
|
require 'cloudsmith-api/models/organization_group_sync'
|
|
81
102
|
require 'cloudsmith-api/models/organization_group_sync_request'
|
|
@@ -107,6 +128,8 @@ require 'cloudsmith-api/models/package_file'
|
|
|
107
128
|
require 'cloudsmith-api/models/package_file_parts_upload'
|
|
108
129
|
require 'cloudsmith-api/models/package_file_upload'
|
|
109
130
|
require 'cloudsmith-api/models/package_file_upload_request'
|
|
131
|
+
require 'cloudsmith-api/models/package_license_policy_evaluation_request'
|
|
132
|
+
require 'cloudsmith-api/models/package_license_policy_evaluation_request_request'
|
|
110
133
|
require 'cloudsmith-api/models/package_license_policy_violation_log'
|
|
111
134
|
require 'cloudsmith-api/models/package_license_policy_violation_log_cursor_page'
|
|
112
135
|
require 'cloudsmith-api/models/package_move'
|
|
@@ -120,10 +143,15 @@ require 'cloudsmith-api/models/package_tag_request'
|
|
|
120
143
|
require 'cloudsmith-api/models/package_usage_metrics'
|
|
121
144
|
require 'cloudsmith-api/models/package_version_badge'
|
|
122
145
|
require 'cloudsmith-api/models/package_vulnerability'
|
|
146
|
+
require 'cloudsmith-api/models/package_vulnerability_policy_evaluation_request'
|
|
147
|
+
require 'cloudsmith-api/models/package_vulnerability_policy_evaluation_request_request'
|
|
123
148
|
require 'cloudsmith-api/models/package_vulnerability_policy_violation_log'
|
|
124
149
|
require 'cloudsmith-api/models/package_vulnerability_policy_violation_log_cursor_page'
|
|
125
150
|
require 'cloudsmith-api/models/python_package_upload'
|
|
126
151
|
require 'cloudsmith-api/models/python_package_upload_request'
|
|
152
|
+
require 'cloudsmith-api/models/python_upstream'
|
|
153
|
+
require 'cloudsmith-api/models/python_upstream_request'
|
|
154
|
+
require 'cloudsmith-api/models/python_upstream_request_patch'
|
|
127
155
|
require 'cloudsmith-api/models/quota'
|
|
128
156
|
require 'cloudsmith-api/models/quota_history'
|
|
129
157
|
require 'cloudsmith-api/models/rate_check'
|
|
@@ -166,8 +194,14 @@ require 'cloudsmith-api/models/respository_geo_ip_enable_disable'
|
|
|
166
194
|
require 'cloudsmith-api/models/respository_geo_ip_enable_disable_request'
|
|
167
195
|
require 'cloudsmith-api/models/rpm_package_upload'
|
|
168
196
|
require 'cloudsmith-api/models/rpm_package_upload_request'
|
|
197
|
+
require 'cloudsmith-api/models/rpm_upstream'
|
|
198
|
+
require 'cloudsmith-api/models/rpm_upstream_request'
|
|
199
|
+
require 'cloudsmith-api/models/rpm_upstream_request_patch'
|
|
169
200
|
require 'cloudsmith-api/models/ruby_package_upload'
|
|
170
201
|
require 'cloudsmith-api/models/ruby_package_upload_request'
|
|
202
|
+
require 'cloudsmith-api/models/ruby_upstream'
|
|
203
|
+
require 'cloudsmith-api/models/ruby_upstream_request'
|
|
204
|
+
require 'cloudsmith-api/models/ruby_upstream_request_patch'
|
|
171
205
|
require 'cloudsmith-api/models/service'
|
|
172
206
|
require 'cloudsmith-api/models/service_request'
|
|
173
207
|
require 'cloudsmith-api/models/service_request_patch'
|
data/spec/api/orgs_api_spec.rb
CHANGED
|
@@ -138,6 +138,49 @@ describe 'OrgsApi' do
|
|
|
138
138
|
end
|
|
139
139
|
end
|
|
140
140
|
|
|
141
|
+
# unit tests for orgs_license_policy_evaluation_create
|
|
142
|
+
# Create an evaluation request for this policy.
|
|
143
|
+
# Create an evaluation request for this policy.
|
|
144
|
+
# @param org
|
|
145
|
+
# @param policy_slug_perm
|
|
146
|
+
# @param [Hash] opts the optional parameters
|
|
147
|
+
# @option opts [PackageLicensePolicyEvaluationRequestRequest] :data
|
|
148
|
+
# @return [PackageLicensePolicyEvaluationRequest]
|
|
149
|
+
describe 'orgs_license_policy_evaluation_create test' do
|
|
150
|
+
it 'should work' do
|
|
151
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
152
|
+
end
|
|
153
|
+
end
|
|
154
|
+
|
|
155
|
+
# unit tests for orgs_license_policy_evaluation_list
|
|
156
|
+
# List evaluation requests for this policy.
|
|
157
|
+
# List evaluation requests for this policy.
|
|
158
|
+
# @param org
|
|
159
|
+
# @param policy_slug_perm
|
|
160
|
+
# @param [Hash] opts the optional parameters
|
|
161
|
+
# @option opts [Integer] :page A page number within the paginated result set.
|
|
162
|
+
# @option opts [Integer] :page_size Number of results to return per page.
|
|
163
|
+
# @return [Array<PackageLicensePolicyEvaluationRequest>]
|
|
164
|
+
describe 'orgs_license_policy_evaluation_list test' do
|
|
165
|
+
it 'should work' do
|
|
166
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
167
|
+
end
|
|
168
|
+
end
|
|
169
|
+
|
|
170
|
+
# unit tests for orgs_license_policy_evaluation_read
|
|
171
|
+
# Retrieve an evaluation request for this policy.
|
|
172
|
+
# Retrieve an evaluation request for this policy.
|
|
173
|
+
# @param org
|
|
174
|
+
# @param policy_slug_perm
|
|
175
|
+
# @param slug_perm
|
|
176
|
+
# @param [Hash] opts the optional parameters
|
|
177
|
+
# @return [PackageLicensePolicyEvaluationRequest]
|
|
178
|
+
describe 'orgs_license_policy_evaluation_read test' do
|
|
179
|
+
it 'should work' do
|
|
180
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
181
|
+
end
|
|
182
|
+
end
|
|
183
|
+
|
|
141
184
|
# unit tests for orgs_license_policy_list
|
|
142
185
|
# Get a list of all package license policies.
|
|
143
186
|
# Get a list of all package license policies.
|
|
@@ -260,6 +303,19 @@ describe 'OrgsApi' do
|
|
|
260
303
|
end
|
|
261
304
|
end
|
|
262
305
|
|
|
306
|
+
# unit tests for orgs_members_refresh
|
|
307
|
+
# Refresh a member of the organization's API key.
|
|
308
|
+
# Refresh a member of the organization's API key.
|
|
309
|
+
# @param org
|
|
310
|
+
# @param member
|
|
311
|
+
# @param [Hash] opts the optional parameters
|
|
312
|
+
# @return [nil]
|
|
313
|
+
describe 'orgs_members_refresh test' do
|
|
314
|
+
it 'should work' do
|
|
315
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
316
|
+
end
|
|
317
|
+
end
|
|
318
|
+
|
|
263
319
|
# unit tests for orgs_members_remove
|
|
264
320
|
# Removes a member from the organization (deprecated, use DELETE instead).
|
|
265
321
|
# Removes a member from the organization (deprecated, use DELETE instead).
|
|
@@ -538,6 +594,49 @@ describe 'OrgsApi' do
|
|
|
538
594
|
end
|
|
539
595
|
end
|
|
540
596
|
|
|
597
|
+
# unit tests for orgs_vulnerability_policy_evaluation_create
|
|
598
|
+
# Create an evaluation request for this policy.
|
|
599
|
+
# Create an evaluation request for this policy.
|
|
600
|
+
# @param org
|
|
601
|
+
# @param policy_slug_perm
|
|
602
|
+
# @param [Hash] opts the optional parameters
|
|
603
|
+
# @option opts [PackageVulnerabilityPolicyEvaluationRequestRequest] :data
|
|
604
|
+
# @return [PackageVulnerabilityPolicyEvaluationRequest]
|
|
605
|
+
describe 'orgs_vulnerability_policy_evaluation_create test' do
|
|
606
|
+
it 'should work' do
|
|
607
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
608
|
+
end
|
|
609
|
+
end
|
|
610
|
+
|
|
611
|
+
# unit tests for orgs_vulnerability_policy_evaluation_list
|
|
612
|
+
# List evaluation requests for this policy.
|
|
613
|
+
# List evaluation requests for this policy.
|
|
614
|
+
# @param org
|
|
615
|
+
# @param policy_slug_perm
|
|
616
|
+
# @param [Hash] opts the optional parameters
|
|
617
|
+
# @option opts [Integer] :page A page number within the paginated result set.
|
|
618
|
+
# @option opts [Integer] :page_size Number of results to return per page.
|
|
619
|
+
# @return [Array<PackageVulnerabilityPolicyEvaluationRequest>]
|
|
620
|
+
describe 'orgs_vulnerability_policy_evaluation_list test' do
|
|
621
|
+
it 'should work' do
|
|
622
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
623
|
+
end
|
|
624
|
+
end
|
|
625
|
+
|
|
626
|
+
# unit tests for orgs_vulnerability_policy_evaluation_read
|
|
627
|
+
# Retrieve an evaluation request for this policy.
|
|
628
|
+
# Retrieve an evaluation request for this policy.
|
|
629
|
+
# @param org
|
|
630
|
+
# @param policy_slug_perm
|
|
631
|
+
# @param slug_perm
|
|
632
|
+
# @param [Hash] opts the optional parameters
|
|
633
|
+
# @return [PackageVulnerabilityPolicyEvaluationRequest]
|
|
634
|
+
describe 'orgs_vulnerability_policy_evaluation_read test' do
|
|
635
|
+
it 'should work' do
|
|
636
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
637
|
+
end
|
|
638
|
+
end
|
|
639
|
+
|
|
541
640
|
# unit tests for orgs_vulnerability_policy_list
|
|
542
641
|
# Get a list of all package vulnerability policies.
|
|
543
642
|
# Get a list of all package vulnerability policies.
|