cloudsmith-api 2.0.0 → 2.0.1
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 +12 -4
- data/build.json +1 -1
- data/docs/InlineResponse200.md +9 -0
- data/docs/InlineResponse200CountryCode.md +9 -0
- data/docs/ReposApi.md +180 -0
- data/docs/RepositoryGeoIPList.md +9 -0
- data/docs/RespositoryGeoIPEnableDisable.md +7 -0
- data/docs/RespositoryGeoIPEnableDisableRequest.md +7 -0
- data/docs/StatusBasic.md +1 -1
- data/lib/cloudsmith-api/api/repos_api.rb +182 -0
- data/lib/cloudsmith-api/models/inline_response_200.rb +193 -0
- data/lib/cloudsmith-api/models/inline_response_200_country_code.rb +197 -0
- data/lib/cloudsmith-api/models/repository_geo_ip_list.rb +195 -0
- data/lib/cloudsmith-api/models/respository_geo_ip_enable_disable.rb +175 -0
- data/lib/cloudsmith-api/models/respository_geo_ip_enable_disable_request.rb +175 -0
- data/lib/cloudsmith-api/models/status_basic.rb +1 -1
- data/lib/cloudsmith-api/version.rb +1 -1
- data/lib/cloudsmith-api.rb +5 -0
- data/spec/api/repos_api_spec.rb +41 -0
- data/spec/models/inline_response_200_country_code_spec.rb +47 -0
- data/spec/models/inline_response_200_spec.rb +47 -0
- data/spec/models/repository_geo_ip_list_spec.rb +47 -0
- data/spec/models/respository_geo_ip_enable_disable_request_spec.rb +35 -0
- data/spec/models/respository_geo_ip_enable_disable_spec.rb +35 -0
- data/vendor/bundle/ruby/2.6.0/cache/rspec-expectations-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-expectations-3.12.0 → rspec-expectations-3.12.1}/.document +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/{rspec-expectations-3.12.0 → rspec-expectations-3.12.1}/.yardopts +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/{rspec-expectations-3.12.0 → rspec-expectations-3.12.1}/Changelog.md +10 -1
- data/vendor/bundle/ruby/2.6.0/gems/{rspec-expectations-3.12.0 → rspec-expectations-3.12.1}/LICENSE.md +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/{rspec-expectations-3.12.0 → rspec-expectations-3.12.1}/README.md +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/{rspec-expectations-3.12.0 → rspec-expectations-3.12.1}/lib/rspec/expectations/block_snippet_extractor.rb +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/{rspec-expectations-3.12.0 → rspec-expectations-3.12.1}/lib/rspec/expectations/configuration.rb +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/{rspec-expectations-3.12.0 → rspec-expectations-3.12.1}/lib/rspec/expectations/expectation_target.rb +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/{rspec-expectations-3.12.0 → rspec-expectations-3.12.1}/lib/rspec/expectations/fail_with.rb +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/{rspec-expectations-3.12.0 → rspec-expectations-3.12.1}/lib/rspec/expectations/failure_aggregator.rb +17 -0
- data/vendor/bundle/ruby/2.6.0/gems/{rspec-expectations-3.12.0 → rspec-expectations-3.12.1}/lib/rspec/expectations/handler.rb +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/{rspec-expectations-3.12.0 → rspec-expectations-3.12.1}/lib/rspec/expectations/minitest_integration.rb +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/{rspec-expectations-3.12.0 → rspec-expectations-3.12.1}/lib/rspec/expectations/syntax.rb +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/{rspec-expectations-3.12.0 → rspec-expectations-3.12.1}/lib/rspec/expectations/version.rb +1 -1
- data/vendor/bundle/ruby/2.6.0/gems/{rspec-expectations-3.12.0 → rspec-expectations-3.12.1}/lib/rspec/expectations.rb +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/{rspec-expectations-3.12.0 → rspec-expectations-3.12.1}/lib/rspec/matchers/aliased_matcher.rb +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/{rspec-expectations-3.12.0 → rspec-expectations-3.12.1}/lib/rspec/matchers/built_in/all.rb +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/{rspec-expectations-3.12.0 → rspec-expectations-3.12.1}/lib/rspec/matchers/built_in/base_matcher.rb +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/{rspec-expectations-3.12.0 → rspec-expectations-3.12.1}/lib/rspec/matchers/built_in/be.rb +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/{rspec-expectations-3.12.0 → rspec-expectations-3.12.1}/lib/rspec/matchers/built_in/be_between.rb +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/{rspec-expectations-3.12.0 → rspec-expectations-3.12.1}/lib/rspec/matchers/built_in/be_instance_of.rb +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/{rspec-expectations-3.12.0 → rspec-expectations-3.12.1}/lib/rspec/matchers/built_in/be_kind_of.rb +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/{rspec-expectations-3.12.0 → rspec-expectations-3.12.1}/lib/rspec/matchers/built_in/be_within.rb +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/{rspec-expectations-3.12.0 → rspec-expectations-3.12.1}/lib/rspec/matchers/built_in/change.rb +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/{rspec-expectations-3.12.0 → rspec-expectations-3.12.1}/lib/rspec/matchers/built_in/compound.rb +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/{rspec-expectations-3.12.0 → rspec-expectations-3.12.1}/lib/rspec/matchers/built_in/contain_exactly.rb +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/{rspec-expectations-3.12.0 → rspec-expectations-3.12.1}/lib/rspec/matchers/built_in/count_expectation.rb +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/{rspec-expectations-3.12.0 → rspec-expectations-3.12.1}/lib/rspec/matchers/built_in/cover.rb +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/{rspec-expectations-3.12.0 → rspec-expectations-3.12.1}/lib/rspec/matchers/built_in/eq.rb +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/{rspec-expectations-3.12.0 → rspec-expectations-3.12.1}/lib/rspec/matchers/built_in/eql.rb +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/{rspec-expectations-3.12.0 → rspec-expectations-3.12.1}/lib/rspec/matchers/built_in/equal.rb +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/{rspec-expectations-3.12.0 → rspec-expectations-3.12.1}/lib/rspec/matchers/built_in/exist.rb +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/{rspec-expectations-3.12.0 → rspec-expectations-3.12.1}/lib/rspec/matchers/built_in/has.rb +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/{rspec-expectations-3.12.0 → rspec-expectations-3.12.1}/lib/rspec/matchers/built_in/have_attributes.rb +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/{rspec-expectations-3.12.0 → rspec-expectations-3.12.1}/lib/rspec/matchers/built_in/include.rb +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/{rspec-expectations-3.12.0 → rspec-expectations-3.12.1}/lib/rspec/matchers/built_in/match.rb +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/{rspec-expectations-3.12.0 → rspec-expectations-3.12.1}/lib/rspec/matchers/built_in/operators.rb +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/{rspec-expectations-3.12.0 → rspec-expectations-3.12.1}/lib/rspec/matchers/built_in/output.rb +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/{rspec-expectations-3.12.0 → rspec-expectations-3.12.1}/lib/rspec/matchers/built_in/raise_error.rb +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/{rspec-expectations-3.12.0 → rspec-expectations-3.12.1}/lib/rspec/matchers/built_in/respond_to.rb +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/{rspec-expectations-3.12.0 → rspec-expectations-3.12.1}/lib/rspec/matchers/built_in/satisfy.rb +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/{rspec-expectations-3.12.0 → rspec-expectations-3.12.1}/lib/rspec/matchers/built_in/start_or_end_with.rb +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/{rspec-expectations-3.12.0 → rspec-expectations-3.12.1}/lib/rspec/matchers/built_in/throw_symbol.rb +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/{rspec-expectations-3.12.0 → rspec-expectations-3.12.1}/lib/rspec/matchers/built_in/yield.rb +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/{rspec-expectations-3.12.0 → rspec-expectations-3.12.1}/lib/rspec/matchers/built_in.rb +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/{rspec-expectations-3.12.0 → rspec-expectations-3.12.1}/lib/rspec/matchers/composable.rb +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/{rspec-expectations-3.12.0 → rspec-expectations-3.12.1}/lib/rspec/matchers/dsl.rb +1 -0
- data/vendor/bundle/ruby/2.6.0/gems/{rspec-expectations-3.12.0 → rspec-expectations-3.12.1}/lib/rspec/matchers/english_phrasing.rb +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/{rspec-expectations-3.12.0 → rspec-expectations-3.12.1}/lib/rspec/matchers/expecteds_for_multiple_diffs.rb +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/{rspec-expectations-3.12.0 → rspec-expectations-3.12.1}/lib/rspec/matchers/fail_matchers.rb +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/{rspec-expectations-3.12.0 → rspec-expectations-3.12.1}/lib/rspec/matchers/generated_descriptions.rb +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/{rspec-expectations-3.12.0 → rspec-expectations-3.12.1}/lib/rspec/matchers/matcher_delegator.rb +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/{rspec-expectations-3.12.0 → rspec-expectations-3.12.1}/lib/rspec/matchers/matcher_protocol.rb +0 -0
- data/vendor/bundle/ruby/2.6.0/gems/{rspec-expectations-3.12.0 → rspec-expectations-3.12.1}/lib/rspec/matchers.rb +0 -0
- data/vendor/bundle/ruby/2.6.0/specifications/{rspec-expectations-3.12.0.gemspec → rspec-expectations-3.12.1.gemspec} +5 -5
- metadata +78 -58
- data/vendor/bundle/ruby/2.6.0/cache/rspec-expectations-3.12.0.gem +0 -0
@@ -0,0 +1,175 @@
|
|
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 RespositoryGeoIPEnableDisable
|
17
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
18
|
+
def self.attribute_map
|
19
|
+
{
|
20
|
+
}
|
21
|
+
end
|
22
|
+
|
23
|
+
# Attribute type mapping.
|
24
|
+
def self.swagger_types
|
25
|
+
{
|
26
|
+
}
|
27
|
+
end
|
28
|
+
|
29
|
+
# Initializes the object
|
30
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
31
|
+
def initialize(attributes = {})
|
32
|
+
return unless attributes.is_a?(Hash)
|
33
|
+
|
34
|
+
# convert string to symbol for hash key
|
35
|
+
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
36
|
+
end
|
37
|
+
|
38
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
39
|
+
# @return Array for valid properties with the reasons
|
40
|
+
def list_invalid_properties
|
41
|
+
invalid_properties = Array.new
|
42
|
+
invalid_properties
|
43
|
+
end
|
44
|
+
|
45
|
+
# Check to see if the all the properties in the model are valid
|
46
|
+
# @return true if the model is valid
|
47
|
+
def valid?
|
48
|
+
true
|
49
|
+
end
|
50
|
+
|
51
|
+
# Checks equality by comparing each attribute.
|
52
|
+
# @param [Object] Object to be compared
|
53
|
+
def ==(o)
|
54
|
+
return true if self.equal?(o)
|
55
|
+
self.class == o.class
|
56
|
+
end
|
57
|
+
|
58
|
+
# @see the `==` method
|
59
|
+
# @param [Object] Object to be compared
|
60
|
+
def eql?(o)
|
61
|
+
self == o
|
62
|
+
end
|
63
|
+
|
64
|
+
# Calculates hash code according to all attributes.
|
65
|
+
# @return [Fixnum] Hash code
|
66
|
+
def hash
|
67
|
+
[].hash
|
68
|
+
end
|
69
|
+
|
70
|
+
# Builds the object from hash
|
71
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
72
|
+
# @return [Object] Returns the model itself
|
73
|
+
def build_from_hash(attributes)
|
74
|
+
return nil unless attributes.is_a?(Hash)
|
75
|
+
self.class.swagger_types.each_pair do |key, type|
|
76
|
+
if type =~ /\AArray<(.*)>/i
|
77
|
+
# check to ensure the input is an array given that the attribute
|
78
|
+
# is documented as an array but the input is not
|
79
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
80
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
81
|
+
end
|
82
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
83
|
+
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
84
|
+
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
85
|
+
end
|
86
|
+
|
87
|
+
self
|
88
|
+
end
|
89
|
+
|
90
|
+
# Deserializes the data based on type
|
91
|
+
# @param string type Data type
|
92
|
+
# @param string value Value to be deserialized
|
93
|
+
# @return [Object] Deserialized data
|
94
|
+
def _deserialize(type, value)
|
95
|
+
case type.to_sym
|
96
|
+
when :DateTime
|
97
|
+
DateTime.parse(value)
|
98
|
+
when :Date
|
99
|
+
Date.parse(value)
|
100
|
+
when :String
|
101
|
+
value.to_s
|
102
|
+
when :Integer
|
103
|
+
value.to_i
|
104
|
+
when :Float
|
105
|
+
value.to_f
|
106
|
+
when :BOOLEAN
|
107
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
108
|
+
true
|
109
|
+
else
|
110
|
+
false
|
111
|
+
end
|
112
|
+
when :Object
|
113
|
+
# generic object (usually a Hash), return directly
|
114
|
+
value
|
115
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
116
|
+
inner_type = Regexp.last_match[:inner_type]
|
117
|
+
value.map { |v| _deserialize(inner_type, v) }
|
118
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
119
|
+
k_type = Regexp.last_match[:k_type]
|
120
|
+
v_type = Regexp.last_match[:v_type]
|
121
|
+
{}.tap do |hash|
|
122
|
+
value.each do |k, v|
|
123
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
124
|
+
end
|
125
|
+
end
|
126
|
+
else # model
|
127
|
+
temp_model = CloudsmithApi.const_get(type).new
|
128
|
+
temp_model.build_from_hash(value)
|
129
|
+
end
|
130
|
+
end
|
131
|
+
|
132
|
+
# Returns the string representation of the object
|
133
|
+
# @return [String] String presentation of the object
|
134
|
+
def to_s
|
135
|
+
to_hash.to_s
|
136
|
+
end
|
137
|
+
|
138
|
+
# to_body is an alias to to_hash (backward compatibility)
|
139
|
+
# @return [Hash] Returns the object in the form of hash
|
140
|
+
def to_body
|
141
|
+
to_hash
|
142
|
+
end
|
143
|
+
|
144
|
+
# Returns the object in the form of hash
|
145
|
+
# @return [Hash] Returns the object in the form of hash
|
146
|
+
def to_hash
|
147
|
+
hash = {}
|
148
|
+
self.class.attribute_map.each_pair do |attr, param|
|
149
|
+
value = self.send(attr)
|
150
|
+
next if value.nil?
|
151
|
+
hash[param] = _to_hash(value)
|
152
|
+
end
|
153
|
+
hash
|
154
|
+
end
|
155
|
+
|
156
|
+
# Outputs non-array value in the form of hash
|
157
|
+
# For object, use to_hash. Otherwise, just return the value
|
158
|
+
# @param [Object] value Any valid value
|
159
|
+
# @return [Hash] Returns the value in the form of hash
|
160
|
+
def _to_hash(value)
|
161
|
+
if value.is_a?(Array)
|
162
|
+
value.compact.map { |v| _to_hash(v) }
|
163
|
+
elsif value.is_a?(Hash)
|
164
|
+
{}.tap do |hash|
|
165
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
166
|
+
end
|
167
|
+
elsif value.respond_to? :to_hash
|
168
|
+
value.to_hash
|
169
|
+
else
|
170
|
+
value
|
171
|
+
end
|
172
|
+
end
|
173
|
+
|
174
|
+
end
|
175
|
+
end
|
@@ -0,0 +1,175 @@
|
|
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 RespositoryGeoIPEnableDisableRequest
|
17
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
18
|
+
def self.attribute_map
|
19
|
+
{
|
20
|
+
}
|
21
|
+
end
|
22
|
+
|
23
|
+
# Attribute type mapping.
|
24
|
+
def self.swagger_types
|
25
|
+
{
|
26
|
+
}
|
27
|
+
end
|
28
|
+
|
29
|
+
# Initializes the object
|
30
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
31
|
+
def initialize(attributes = {})
|
32
|
+
return unless attributes.is_a?(Hash)
|
33
|
+
|
34
|
+
# convert string to symbol for hash key
|
35
|
+
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
36
|
+
end
|
37
|
+
|
38
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
39
|
+
# @return Array for valid properties with the reasons
|
40
|
+
def list_invalid_properties
|
41
|
+
invalid_properties = Array.new
|
42
|
+
invalid_properties
|
43
|
+
end
|
44
|
+
|
45
|
+
# Check to see if the all the properties in the model are valid
|
46
|
+
# @return true if the model is valid
|
47
|
+
def valid?
|
48
|
+
true
|
49
|
+
end
|
50
|
+
|
51
|
+
# Checks equality by comparing each attribute.
|
52
|
+
# @param [Object] Object to be compared
|
53
|
+
def ==(o)
|
54
|
+
return true if self.equal?(o)
|
55
|
+
self.class == o.class
|
56
|
+
end
|
57
|
+
|
58
|
+
# @see the `==` method
|
59
|
+
# @param [Object] Object to be compared
|
60
|
+
def eql?(o)
|
61
|
+
self == o
|
62
|
+
end
|
63
|
+
|
64
|
+
# Calculates hash code according to all attributes.
|
65
|
+
# @return [Fixnum] Hash code
|
66
|
+
def hash
|
67
|
+
[].hash
|
68
|
+
end
|
69
|
+
|
70
|
+
# Builds the object from hash
|
71
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
72
|
+
# @return [Object] Returns the model itself
|
73
|
+
def build_from_hash(attributes)
|
74
|
+
return nil unless attributes.is_a?(Hash)
|
75
|
+
self.class.swagger_types.each_pair do |key, type|
|
76
|
+
if type =~ /\AArray<(.*)>/i
|
77
|
+
# check to ensure the input is an array given that the attribute
|
78
|
+
# is documented as an array but the input is not
|
79
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
80
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
81
|
+
end
|
82
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
83
|
+
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
84
|
+
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
85
|
+
end
|
86
|
+
|
87
|
+
self
|
88
|
+
end
|
89
|
+
|
90
|
+
# Deserializes the data based on type
|
91
|
+
# @param string type Data type
|
92
|
+
# @param string value Value to be deserialized
|
93
|
+
# @return [Object] Deserialized data
|
94
|
+
def _deserialize(type, value)
|
95
|
+
case type.to_sym
|
96
|
+
when :DateTime
|
97
|
+
DateTime.parse(value)
|
98
|
+
when :Date
|
99
|
+
Date.parse(value)
|
100
|
+
when :String
|
101
|
+
value.to_s
|
102
|
+
when :Integer
|
103
|
+
value.to_i
|
104
|
+
when :Float
|
105
|
+
value.to_f
|
106
|
+
when :BOOLEAN
|
107
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
108
|
+
true
|
109
|
+
else
|
110
|
+
false
|
111
|
+
end
|
112
|
+
when :Object
|
113
|
+
# generic object (usually a Hash), return directly
|
114
|
+
value
|
115
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
116
|
+
inner_type = Regexp.last_match[:inner_type]
|
117
|
+
value.map { |v| _deserialize(inner_type, v) }
|
118
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
119
|
+
k_type = Regexp.last_match[:k_type]
|
120
|
+
v_type = Regexp.last_match[:v_type]
|
121
|
+
{}.tap do |hash|
|
122
|
+
value.each do |k, v|
|
123
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
124
|
+
end
|
125
|
+
end
|
126
|
+
else # model
|
127
|
+
temp_model = CloudsmithApi.const_get(type).new
|
128
|
+
temp_model.build_from_hash(value)
|
129
|
+
end
|
130
|
+
end
|
131
|
+
|
132
|
+
# Returns the string representation of the object
|
133
|
+
# @return [String] String presentation of the object
|
134
|
+
def to_s
|
135
|
+
to_hash.to_s
|
136
|
+
end
|
137
|
+
|
138
|
+
# to_body is an alias to to_hash (backward compatibility)
|
139
|
+
# @return [Hash] Returns the object in the form of hash
|
140
|
+
def to_body
|
141
|
+
to_hash
|
142
|
+
end
|
143
|
+
|
144
|
+
# Returns the object in the form of hash
|
145
|
+
# @return [Hash] Returns the object in the form of hash
|
146
|
+
def to_hash
|
147
|
+
hash = {}
|
148
|
+
self.class.attribute_map.each_pair do |attr, param|
|
149
|
+
value = self.send(attr)
|
150
|
+
next if value.nil?
|
151
|
+
hash[param] = _to_hash(value)
|
152
|
+
end
|
153
|
+
hash
|
154
|
+
end
|
155
|
+
|
156
|
+
# Outputs non-array value in the form of hash
|
157
|
+
# For object, use to_hash. Otherwise, just return the value
|
158
|
+
# @param [Object] value Any valid value
|
159
|
+
# @return [Hash] Returns the value in the form of hash
|
160
|
+
def _to_hash(value)
|
161
|
+
if value.is_a?(Array)
|
162
|
+
value.compact.map { |v| _to_hash(v) }
|
163
|
+
elsif value.is_a?(Hash)
|
164
|
+
{}.tap do |hash|
|
165
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
166
|
+
end
|
167
|
+
elsif value.respond_to? :to_hash
|
168
|
+
value.to_hash
|
169
|
+
else
|
170
|
+
value
|
171
|
+
end
|
172
|
+
end
|
173
|
+
|
174
|
+
end
|
175
|
+
end
|
data/lib/cloudsmith-api.rb
CHANGED
@@ -59,6 +59,8 @@ require 'cloudsmith-api/models/helm_package_upload'
|
|
59
59
|
require 'cloudsmith-api/models/helm_package_upload_request'
|
60
60
|
require 'cloudsmith-api/models/history'
|
61
61
|
require 'cloudsmith-api/models/history_fieldset'
|
62
|
+
require 'cloudsmith-api/models/inline_response_200'
|
63
|
+
require 'cloudsmith-api/models/inline_response_200_country_code'
|
62
64
|
require 'cloudsmith-api/models/luarocks_package_upload'
|
63
65
|
require 'cloudsmith-api/models/luarocks_package_upload_request'
|
64
66
|
require 'cloudsmith-api/models/maven_package_upload'
|
@@ -116,6 +118,7 @@ require 'cloudsmith-api/models/repository'
|
|
116
118
|
require 'cloudsmith-api/models/repository_audit_log'
|
117
119
|
require 'cloudsmith-api/models/repository_create'
|
118
120
|
require 'cloudsmith-api/models/repository_create_request'
|
121
|
+
require 'cloudsmith-api/models/repository_geo_ip_list'
|
119
122
|
require 'cloudsmith-api/models/repository_gpg_key'
|
120
123
|
require 'cloudsmith-api/models/repository_gpg_key_create'
|
121
124
|
require 'cloudsmith-api/models/repository_privilege_dict'
|
@@ -137,6 +140,8 @@ require 'cloudsmith-api/models/repository_webhook'
|
|
137
140
|
require 'cloudsmith-api/models/repository_webhook_request'
|
138
141
|
require 'cloudsmith-api/models/repository_webhook_request_patch'
|
139
142
|
require 'cloudsmith-api/models/resources_rate_check'
|
143
|
+
require 'cloudsmith-api/models/respository_geo_ip_enable_disable'
|
144
|
+
require 'cloudsmith-api/models/respository_geo_ip_enable_disable_request'
|
140
145
|
require 'cloudsmith-api/models/rpm_package_upload'
|
141
146
|
require 'cloudsmith-api/models/rpm_package_upload_request'
|
142
147
|
require 'cloudsmith-api/models/ruby_package_upload'
|
data/spec/api/repos_api_spec.rb
CHANGED
@@ -58,6 +58,47 @@ describe 'ReposApi' do
|
|
58
58
|
end
|
59
59
|
end
|
60
60
|
|
61
|
+
# unit tests for repos_geoip_disable
|
62
|
+
# Disable GeoIP for this repository.
|
63
|
+
# Disable GeoIP for this repository.
|
64
|
+
# @param owner
|
65
|
+
# @param identifier
|
66
|
+
# @param [Hash] opts the optional parameters
|
67
|
+
# @option opts [RespositoryGeoIPEnableDisableRequest] :data
|
68
|
+
# @return [nil]
|
69
|
+
describe 'repos_geoip_disable test' do
|
70
|
+
it 'should work' do
|
71
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
72
|
+
end
|
73
|
+
end
|
74
|
+
|
75
|
+
# unit tests for repos_geoip_enable
|
76
|
+
# Enable GeoIP for this repository.
|
77
|
+
# Enable GeoIP for this repository.
|
78
|
+
# @param owner
|
79
|
+
# @param identifier
|
80
|
+
# @param [Hash] opts the optional parameters
|
81
|
+
# @option opts [RespositoryGeoIPEnableDisableRequest] :data
|
82
|
+
# @return [nil]
|
83
|
+
describe 'repos_geoip_enable test' do
|
84
|
+
it 'should work' do
|
85
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
86
|
+
end
|
87
|
+
end
|
88
|
+
|
89
|
+
# unit tests for repos_geoip_read
|
90
|
+
# List all created GeoIP rules for the repository.
|
91
|
+
# List all created GeoIP rules for the repository.
|
92
|
+
# @param owner
|
93
|
+
# @param identifier
|
94
|
+
# @param [Hash] opts the optional parameters
|
95
|
+
# @return [InlineResponse200]
|
96
|
+
describe 'repos_geoip_read test' do
|
97
|
+
it 'should work' do
|
98
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
99
|
+
end
|
100
|
+
end
|
101
|
+
|
61
102
|
# unit tests for repos_gpg_create
|
62
103
|
# Set the active GPG key for the Repository.
|
63
104
|
# Set the active GPG key for the Repository.
|
@@ -0,0 +1,47 @@
|
|
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 'spec_helper'
|
14
|
+
require 'json'
|
15
|
+
require 'date'
|
16
|
+
|
17
|
+
# Unit tests for CloudsmithApi::InlineResponse200CountryCode
|
18
|
+
# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
|
19
|
+
# Please update as you see appropriate
|
20
|
+
describe 'InlineResponse200CountryCode' do
|
21
|
+
before do
|
22
|
+
# run before each test
|
23
|
+
@instance = CloudsmithApi::InlineResponse200CountryCode.new
|
24
|
+
end
|
25
|
+
|
26
|
+
after do
|
27
|
+
# run after each test
|
28
|
+
end
|
29
|
+
|
30
|
+
describe 'test an instance of InlineResponse200CountryCode' do
|
31
|
+
it 'should create an instance of InlineResponse200CountryCode' do
|
32
|
+
expect(@instance).to be_instance_of(CloudsmithApi::InlineResponse200CountryCode)
|
33
|
+
end
|
34
|
+
end
|
35
|
+
describe 'test attribute "allow"' do
|
36
|
+
it 'should work' do
|
37
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
38
|
+
end
|
39
|
+
end
|
40
|
+
|
41
|
+
describe 'test attribute "deny"' do
|
42
|
+
it 'should work' do
|
43
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
44
|
+
end
|
45
|
+
end
|
46
|
+
|
47
|
+
end
|
@@ -0,0 +1,47 @@
|
|
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 'spec_helper'
|
14
|
+
require 'json'
|
15
|
+
require 'date'
|
16
|
+
|
17
|
+
# Unit tests for CloudsmithApi::InlineResponse200
|
18
|
+
# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
|
19
|
+
# Please update as you see appropriate
|
20
|
+
describe 'InlineResponse200' do
|
21
|
+
before do
|
22
|
+
# run before each test
|
23
|
+
@instance = CloudsmithApi::InlineResponse200.new
|
24
|
+
end
|
25
|
+
|
26
|
+
after do
|
27
|
+
# run after each test
|
28
|
+
end
|
29
|
+
|
30
|
+
describe 'test an instance of InlineResponse200' do
|
31
|
+
it 'should create an instance of InlineResponse200' do
|
32
|
+
expect(@instance).to be_instance_of(CloudsmithApi::InlineResponse200)
|
33
|
+
end
|
34
|
+
end
|
35
|
+
describe 'test attribute "country_code"' do
|
36
|
+
it 'should work' do
|
37
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
38
|
+
end
|
39
|
+
end
|
40
|
+
|
41
|
+
describe 'test attribute "cidr"' do
|
42
|
+
it 'should work' do
|
43
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
44
|
+
end
|
45
|
+
end
|
46
|
+
|
47
|
+
end
|
@@ -0,0 +1,47 @@
|
|
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 'spec_helper'
|
14
|
+
require 'json'
|
15
|
+
require 'date'
|
16
|
+
|
17
|
+
# Unit tests for CloudsmithApi::RepositoryGeoIPList
|
18
|
+
# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
|
19
|
+
# Please update as you see appropriate
|
20
|
+
describe 'RepositoryGeoIPList' do
|
21
|
+
before do
|
22
|
+
# run before each test
|
23
|
+
@instance = CloudsmithApi::RepositoryGeoIPList.new
|
24
|
+
end
|
25
|
+
|
26
|
+
after do
|
27
|
+
# run after each test
|
28
|
+
end
|
29
|
+
|
30
|
+
describe 'test an instance of RepositoryGeoIPList' do
|
31
|
+
it 'should create an instance of RepositoryGeoIPList' do
|
32
|
+
expect(@instance).to be_instance_of(CloudsmithApi::RepositoryGeoIPList)
|
33
|
+
end
|
34
|
+
end
|
35
|
+
describe 'test attribute "cidr"' do
|
36
|
+
it 'should work' do
|
37
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
38
|
+
end
|
39
|
+
end
|
40
|
+
|
41
|
+
describe 'test attribute "country_code"' do
|
42
|
+
it 'should work' do
|
43
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
44
|
+
end
|
45
|
+
end
|
46
|
+
|
47
|
+
end
|
@@ -0,0 +1,35 @@
|
|
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 'spec_helper'
|
14
|
+
require 'json'
|
15
|
+
require 'date'
|
16
|
+
|
17
|
+
# Unit tests for CloudsmithApi::RespositoryGeoIPEnableDisableRequest
|
18
|
+
# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
|
19
|
+
# Please update as you see appropriate
|
20
|
+
describe 'RespositoryGeoIPEnableDisableRequest' do
|
21
|
+
before do
|
22
|
+
# run before each test
|
23
|
+
@instance = CloudsmithApi::RespositoryGeoIPEnableDisableRequest.new
|
24
|
+
end
|
25
|
+
|
26
|
+
after do
|
27
|
+
# run after each test
|
28
|
+
end
|
29
|
+
|
30
|
+
describe 'test an instance of RespositoryGeoIPEnableDisableRequest' do
|
31
|
+
it 'should create an instance of RespositoryGeoIPEnableDisableRequest' do
|
32
|
+
expect(@instance).to be_instance_of(CloudsmithApi::RespositoryGeoIPEnableDisableRequest)
|
33
|
+
end
|
34
|
+
end
|
35
|
+
end
|
@@ -0,0 +1,35 @@
|
|
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 'spec_helper'
|
14
|
+
require 'json'
|
15
|
+
require 'date'
|
16
|
+
|
17
|
+
# Unit tests for CloudsmithApi::RespositoryGeoIPEnableDisable
|
18
|
+
# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
|
19
|
+
# Please update as you see appropriate
|
20
|
+
describe 'RespositoryGeoIPEnableDisable' do
|
21
|
+
before do
|
22
|
+
# run before each test
|
23
|
+
@instance = CloudsmithApi::RespositoryGeoIPEnableDisable.new
|
24
|
+
end
|
25
|
+
|
26
|
+
after do
|
27
|
+
# run after each test
|
28
|
+
end
|
29
|
+
|
30
|
+
describe 'test an instance of RespositoryGeoIPEnableDisable' do
|
31
|
+
it 'should create an instance of RespositoryGeoIPEnableDisable' do
|
32
|
+
expect(@instance).to be_instance_of(CloudsmithApi::RespositoryGeoIPEnableDisable)
|
33
|
+
end
|
34
|
+
end
|
35
|
+
end
|
Binary file
|
data/vendor/bundle/ruby/2.6.0/extensions/x86_64-linux/2.6.0/autotest-fsevent-0.2.20/gem_make.out
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
current directory: /home/circleci/project/bindings/ruby/src/vendor/bundle/ruby/2.6.0/gems/autotest-fsevent-0.2.20/ext/fsevent
|
2
|
-
/usr/local/bin/ruby -I /usr/local/lib/ruby/site_ruby/2.6.0 -r ./
|
2
|
+
/usr/local/bin/ruby -I /usr/local/lib/ruby/site_ruby/2.6.0 -r ./siteconf20230103-851-13nakdp.rb extconf.rb
|
3
3
|
|
4
4
|
current directory: /home/circleci/project/bindings/ruby/src/vendor/bundle/ruby/2.6.0/gems/autotest-fsevent-0.2.20/ext/fsevent
|
5
5
|
make DESTDIR\= clean
|
@@ -1,5 +1,5 @@
|
|
1
1
|
current directory: /home/circleci/project/bindings/ruby/src/vendor/bundle/ruby/2.6.0/gems/ffi-1.15.5/ext/ffi_c
|
2
|
-
/usr/local/bin/ruby -I /usr/local/lib/ruby/site_ruby/2.6.0 -r ./
|
2
|
+
/usr/local/bin/ruby -I /usr/local/lib/ruby/site_ruby/2.6.0 -r ./siteconf20230103-851-11zyprp.rb extconf.rb
|
3
3
|
checking for ffi_prep_closure_loc() in -lffi... yes
|
4
4
|
checking for ffi_prep_cif_var()... yes
|
5
5
|
checking for ffi_raw_call()... yes
|
@@ -40,4 +40,4 @@ linking shared-object ffi_c.so
|
|
40
40
|
|
41
41
|
current directory: /home/circleci/project/bindings/ruby/src/vendor/bundle/ruby/2.6.0/gems/ffi-1.15.5/ext/ffi_c
|
42
42
|
make DESTDIR\= install
|
43
|
-
/usr/bin/install -c -m 0755 ffi_c.so ./.gem.
|
43
|
+
/usr/bin/install -c -m 0755 ffi_c.so ./.gem.20230103-851-4zh4eo
|
@@ -1,5 +1,5 @@
|
|
1
1
|
current directory: /home/circleci/project/bindings/ruby/src/vendor/bundle/ruby/2.6.0/gems/json-2.6.3/ext/json
|
2
|
-
/usr/local/bin/ruby -I /usr/local/lib/ruby/site_ruby/2.6.0 -r ./
|
2
|
+
/usr/local/bin/ruby -I /usr/local/lib/ruby/site_ruby/2.6.0 -r ./siteconf20230103-851-by1dyp.rb extconf.rb
|
3
3
|
creating Makefile
|
4
4
|
|
5
5
|
current directory: /home/circleci/project/bindings/ruby/src/vendor/bundle/ruby/2.6.0/gems/json-2.6.3/ext/json
|