pharmaobservatory 0.1.13 → 0.1.14
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/README.md +21 -4
- data/docs/BiomarkerValidationRow.md +1 -1
- data/docs/ChangesList200Response.md +26 -0
- data/docs/ChangesList200ResponseBuildState.md +20 -0
- data/docs/ChangesList200ResponseItemsInner.md +48 -0
- data/docs/ChangesList200ResponseItemsInnerEntryKeys.md +18 -0
- data/docs/CompanyFinancialsRow.md +18 -0
- data/docs/ConditionAdverseEventsRow.md +5 -1
- data/docs/SubscriptionsApi.md +282 -0
- data/docs/SubscriptionsCreate201Response.md +22 -0
- data/docs/SubscriptionsCreate201ResponseSubscription.md +28 -0
- data/docs/SubscriptionsCreate201ResponseSubscriptionTarget.md +22 -0
- data/docs/SubscriptionsCreateRequest.md +20 -0
- data/docs/SubscriptionsDelete200Response.md +24 -0
- data/docs/SubscriptionsList200Response.md +22 -0
- data/docs/SubscriptionsList200ResponseSubscriptionsInner.md +28 -0
- data/docs/SubscriptionsList200ResponseSubscriptionsInnerTarget.md +26 -0
- data/docs/SubscriptionsList200ResponseSubscriptionsInnerTargetFilters.md +18 -0
- data/lib/pharmaobservatory/api/subscriptions_api.rb +261 -0
- data/lib/pharmaobservatory/models/biomarker_validation_row.rb +1 -1
- data/lib/pharmaobservatory/models/changes_list200_response.rb +343 -0
- data/lib/pharmaobservatory/models/changes_list200_response_build_state.rb +263 -0
- data/lib/pharmaobservatory/models/changes_list200_response_items_inner.rb +627 -0
- data/lib/pharmaobservatory/models/changes_list200_response_items_inner_entry_keys.rb +237 -0
- data/lib/pharmaobservatory/models/company_financials_row.rb +100 -1
- data/lib/pharmaobservatory/models/condition_adverse_events_row.rb +27 -5
- data/lib/pharmaobservatory/models/subscriptions_create201_response.rb +289 -0
- data/lib/pharmaobservatory/models/subscriptions_create201_response_subscription.rb +369 -0
- data/lib/pharmaobservatory/models/subscriptions_create201_response_subscription_target.rb +289 -0
- data/lib/pharmaobservatory/models/subscriptions_create_request.rb +263 -0
- data/lib/pharmaobservatory/models/subscriptions_delete200_response.rb +315 -0
- data/lib/pharmaobservatory/models/subscriptions_list200_response.rb +291 -0
- data/lib/pharmaobservatory/models/subscriptions_list200_response_subscriptions_inner.rb +369 -0
- data/lib/pharmaobservatory/models/subscriptions_list200_response_subscriptions_inner_target.rb +277 -0
- data/lib/pharmaobservatory/models/subscriptions_list200_response_subscriptions_inner_target_filters.rb +237 -0
- data/lib/pharmaobservatory/version.rb +1 -1
- data/lib/pharmaobservatory.rb +14 -0
- metadata +30 -2
|
@@ -0,0 +1,237 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
#Pharma Observatory Public REST API
|
|
3
|
+
|
|
4
|
+
#Read-only REST API over the Pharma Observatory biomedical data platform. Reference: https://pharmaobservatory.com/api-reference
|
|
5
|
+
|
|
6
|
+
The version of the OpenAPI document: 1.0.0
|
|
7
|
+
|
|
8
|
+
Generated by: https://openapi-generator.tech
|
|
9
|
+
Generator version: 7.13.0
|
|
10
|
+
|
|
11
|
+
=end
|
|
12
|
+
|
|
13
|
+
require 'date'
|
|
14
|
+
require 'time'
|
|
15
|
+
|
|
16
|
+
module PharmaObservatory
|
|
17
|
+
class SubscriptionsList200ResponseSubscriptionsInnerTargetFilters
|
|
18
|
+
attr_accessor :phase
|
|
19
|
+
|
|
20
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
|
21
|
+
def self.attribute_map
|
|
22
|
+
{
|
|
23
|
+
:'phase' => :'phase'
|
|
24
|
+
}
|
|
25
|
+
end
|
|
26
|
+
|
|
27
|
+
# Returns attribute mapping this model knows about
|
|
28
|
+
def self.acceptable_attribute_map
|
|
29
|
+
attribute_map
|
|
30
|
+
end
|
|
31
|
+
|
|
32
|
+
# Returns all the JSON keys this model knows about
|
|
33
|
+
def self.acceptable_attributes
|
|
34
|
+
acceptable_attribute_map.values
|
|
35
|
+
end
|
|
36
|
+
|
|
37
|
+
# Attribute type mapping.
|
|
38
|
+
def self.openapi_types
|
|
39
|
+
{
|
|
40
|
+
:'phase' => :'String'
|
|
41
|
+
}
|
|
42
|
+
end
|
|
43
|
+
|
|
44
|
+
# List of attributes with nullable: true
|
|
45
|
+
def self.openapi_nullable
|
|
46
|
+
Set.new([
|
|
47
|
+
])
|
|
48
|
+
end
|
|
49
|
+
|
|
50
|
+
# Initializes the object
|
|
51
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
52
|
+
def initialize(attributes = {})
|
|
53
|
+
if (!attributes.is_a?(Hash))
|
|
54
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `PharmaObservatory::SubscriptionsList200ResponseSubscriptionsInnerTargetFilters` initialize method"
|
|
55
|
+
end
|
|
56
|
+
|
|
57
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
|
58
|
+
acceptable_attribute_map = self.class.acceptable_attribute_map
|
|
59
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
60
|
+
if (!acceptable_attribute_map.key?(k.to_sym))
|
|
61
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `PharmaObservatory::SubscriptionsList200ResponseSubscriptionsInnerTargetFilters`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
|
|
62
|
+
end
|
|
63
|
+
h[k.to_sym] = v
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
if attributes.key?(:'phase')
|
|
67
|
+
self.phase = attributes[:'phase']
|
|
68
|
+
else
|
|
69
|
+
self.phase = nil
|
|
70
|
+
end
|
|
71
|
+
end
|
|
72
|
+
|
|
73
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
|
74
|
+
# @return Array for valid properties with the reasons
|
|
75
|
+
def list_invalid_properties
|
|
76
|
+
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
|
77
|
+
invalid_properties = Array.new
|
|
78
|
+
if @phase.nil?
|
|
79
|
+
invalid_properties.push('invalid value for "phase", phase cannot be nil.')
|
|
80
|
+
end
|
|
81
|
+
|
|
82
|
+
invalid_properties
|
|
83
|
+
end
|
|
84
|
+
|
|
85
|
+
# Check to see if the all the properties in the model are valid
|
|
86
|
+
# @return true if the model is valid
|
|
87
|
+
def valid?
|
|
88
|
+
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
89
|
+
return false if @phase.nil?
|
|
90
|
+
true
|
|
91
|
+
end
|
|
92
|
+
|
|
93
|
+
# Custom attribute writer method with validation
|
|
94
|
+
# @param [Object] phase Value to be assigned
|
|
95
|
+
def phase=(phase)
|
|
96
|
+
if phase.nil?
|
|
97
|
+
fail ArgumentError, 'phase cannot be nil'
|
|
98
|
+
end
|
|
99
|
+
|
|
100
|
+
@phase = phase
|
|
101
|
+
end
|
|
102
|
+
|
|
103
|
+
# Checks equality by comparing each attribute.
|
|
104
|
+
# @param [Object] Object to be compared
|
|
105
|
+
def ==(o)
|
|
106
|
+
return true if self.equal?(o)
|
|
107
|
+
self.class == o.class &&
|
|
108
|
+
phase == o.phase
|
|
109
|
+
end
|
|
110
|
+
|
|
111
|
+
# @see the `==` method
|
|
112
|
+
# @param [Object] Object to be compared
|
|
113
|
+
def eql?(o)
|
|
114
|
+
self == o
|
|
115
|
+
end
|
|
116
|
+
|
|
117
|
+
# Calculates hash code according to all attributes.
|
|
118
|
+
# @return [Integer] Hash code
|
|
119
|
+
def hash
|
|
120
|
+
[phase].hash
|
|
121
|
+
end
|
|
122
|
+
|
|
123
|
+
# Builds the object from hash
|
|
124
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
125
|
+
# @return [Object] Returns the model itself
|
|
126
|
+
def self.build_from_hash(attributes)
|
|
127
|
+
return nil unless attributes.is_a?(Hash)
|
|
128
|
+
attributes = attributes.transform_keys(&:to_sym)
|
|
129
|
+
transformed_hash = {}
|
|
130
|
+
openapi_types.each_pair do |key, type|
|
|
131
|
+
if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
|
|
132
|
+
transformed_hash["#{key}"] = nil
|
|
133
|
+
elsif type =~ /\AArray<(.*)>/i
|
|
134
|
+
# check to ensure the input is an array given that the attribute
|
|
135
|
+
# is documented as an array but the input is not
|
|
136
|
+
if attributes[attribute_map[key]].is_a?(Array)
|
|
137
|
+
transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
|
|
138
|
+
end
|
|
139
|
+
elsif !attributes[attribute_map[key]].nil?
|
|
140
|
+
transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
|
|
141
|
+
end
|
|
142
|
+
end
|
|
143
|
+
new(transformed_hash)
|
|
144
|
+
end
|
|
145
|
+
|
|
146
|
+
# Deserializes the data based on type
|
|
147
|
+
# @param string type Data type
|
|
148
|
+
# @param string value Value to be deserialized
|
|
149
|
+
# @return [Object] Deserialized data
|
|
150
|
+
def self._deserialize(type, value)
|
|
151
|
+
case type.to_sym
|
|
152
|
+
when :Time
|
|
153
|
+
Time.parse(value)
|
|
154
|
+
when :Date
|
|
155
|
+
Date.parse(value)
|
|
156
|
+
when :String
|
|
157
|
+
value.to_s
|
|
158
|
+
when :Integer
|
|
159
|
+
value.to_i
|
|
160
|
+
when :Float
|
|
161
|
+
value.to_f
|
|
162
|
+
when :Boolean
|
|
163
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
|
164
|
+
true
|
|
165
|
+
else
|
|
166
|
+
false
|
|
167
|
+
end
|
|
168
|
+
when :Object
|
|
169
|
+
# generic object (usually a Hash), return directly
|
|
170
|
+
value
|
|
171
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
|
172
|
+
inner_type = Regexp.last_match[:inner_type]
|
|
173
|
+
value.map { |v| _deserialize(inner_type, v) }
|
|
174
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
|
175
|
+
k_type = Regexp.last_match[:k_type]
|
|
176
|
+
v_type = Regexp.last_match[:v_type]
|
|
177
|
+
{}.tap do |hash|
|
|
178
|
+
value.each do |k, v|
|
|
179
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
|
180
|
+
end
|
|
181
|
+
end
|
|
182
|
+
else # model
|
|
183
|
+
# models (e.g. Pet) or oneOf
|
|
184
|
+
klass = PharmaObservatory.const_get(type)
|
|
185
|
+
klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
|
186
|
+
end
|
|
187
|
+
end
|
|
188
|
+
|
|
189
|
+
# Returns the string representation of the object
|
|
190
|
+
# @return [String] String presentation of the object
|
|
191
|
+
def to_s
|
|
192
|
+
to_hash.to_s
|
|
193
|
+
end
|
|
194
|
+
|
|
195
|
+
# to_body is an alias to to_hash (backward compatibility)
|
|
196
|
+
# @return [Hash] Returns the object in the form of hash
|
|
197
|
+
def to_body
|
|
198
|
+
to_hash
|
|
199
|
+
end
|
|
200
|
+
|
|
201
|
+
# Returns the object in the form of hash
|
|
202
|
+
# @return [Hash] Returns the object in the form of hash
|
|
203
|
+
def to_hash
|
|
204
|
+
hash = {}
|
|
205
|
+
self.class.attribute_map.each_pair do |attr, param|
|
|
206
|
+
value = self.send(attr)
|
|
207
|
+
if value.nil?
|
|
208
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
|
209
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
|
210
|
+
end
|
|
211
|
+
|
|
212
|
+
hash[param] = _to_hash(value)
|
|
213
|
+
end
|
|
214
|
+
hash
|
|
215
|
+
end
|
|
216
|
+
|
|
217
|
+
# Outputs non-array value in the form of hash
|
|
218
|
+
# For object, use to_hash. Otherwise, just return the value
|
|
219
|
+
# @param [Object] value Any valid value
|
|
220
|
+
# @return [Hash] Returns the value in the form of hash
|
|
221
|
+
def _to_hash(value)
|
|
222
|
+
if value.is_a?(Array)
|
|
223
|
+
value.compact.map { |v| _to_hash(v) }
|
|
224
|
+
elsif value.is_a?(Hash)
|
|
225
|
+
{}.tap do |hash|
|
|
226
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
|
227
|
+
end
|
|
228
|
+
elsif value.respond_to? :to_hash
|
|
229
|
+
value.to_hash
|
|
230
|
+
else
|
|
231
|
+
value
|
|
232
|
+
end
|
|
233
|
+
end
|
|
234
|
+
|
|
235
|
+
end
|
|
236
|
+
|
|
237
|
+
end
|
data/lib/pharmaobservatory.rb
CHANGED
|
@@ -72,6 +72,10 @@ require 'pharmaobservatory/models/catalysts_row'
|
|
|
72
72
|
require 'pharmaobservatory/models/cell_lines_record'
|
|
73
73
|
require 'pharmaobservatory/models/cell_lines_response'
|
|
74
74
|
require 'pharmaobservatory/models/cell_lines_row'
|
|
75
|
+
require 'pharmaobservatory/models/changes_list200_response'
|
|
76
|
+
require 'pharmaobservatory/models/changes_list200_response_build_state'
|
|
77
|
+
require 'pharmaobservatory/models/changes_list200_response_items_inner'
|
|
78
|
+
require 'pharmaobservatory/models/changes_list200_response_items_inner_entry_keys'
|
|
75
79
|
require 'pharmaobservatory/models/clia_certificates_response'
|
|
76
80
|
require 'pharmaobservatory/models/clia_certificates_row'
|
|
77
81
|
require 'pharmaobservatory/models/companies_record'
|
|
@@ -405,6 +409,15 @@ require 'pharmaobservatory/models/sponsor_trial_start_forecast_response'
|
|
|
405
409
|
require 'pharmaobservatory/models/sponsor_trial_start_forecast_row'
|
|
406
410
|
require 'pharmaobservatory/models/sponsor_trials_response'
|
|
407
411
|
require 'pharmaobservatory/models/sponsor_trials_row'
|
|
412
|
+
require 'pharmaobservatory/models/subscriptions_create201_response'
|
|
413
|
+
require 'pharmaobservatory/models/subscriptions_create201_response_subscription'
|
|
414
|
+
require 'pharmaobservatory/models/subscriptions_create201_response_subscription_target'
|
|
415
|
+
require 'pharmaobservatory/models/subscriptions_create_request'
|
|
416
|
+
require 'pharmaobservatory/models/subscriptions_delete200_response'
|
|
417
|
+
require 'pharmaobservatory/models/subscriptions_list200_response'
|
|
418
|
+
require 'pharmaobservatory/models/subscriptions_list200_response_subscriptions_inner'
|
|
419
|
+
require 'pharmaobservatory/models/subscriptions_list200_response_subscriptions_inner_target'
|
|
420
|
+
require 'pharmaobservatory/models/subscriptions_list200_response_subscriptions_inner_target_filters'
|
|
408
421
|
require 'pharmaobservatory/models/supplier_capability_esg_response'
|
|
409
422
|
require 'pharmaobservatory/models/supplier_capability_esg_row'
|
|
410
423
|
require 'pharmaobservatory/models/supplier_services_response'
|
|
@@ -498,6 +511,7 @@ require 'pharmaobservatory/api/rwd_registers_api'
|
|
|
498
511
|
require 'pharmaobservatory/api/rwd_sources_api'
|
|
499
512
|
require 'pharmaobservatory/api/rwd_studies_api'
|
|
500
513
|
require 'pharmaobservatory/api/sites_api'
|
|
514
|
+
require 'pharmaobservatory/api/subscriptions_api'
|
|
501
515
|
require 'pharmaobservatory/api/suppliers_api'
|
|
502
516
|
require 'pharmaobservatory/api/targets_api'
|
|
503
517
|
require 'pharmaobservatory/api/trials_api'
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: pharmaobservatory
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.1.
|
|
4
|
+
version: 0.1.14
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Scientist.com
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2026-11-
|
|
11
|
+
date: 2026-11-04 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: faraday
|
|
@@ -145,6 +145,10 @@ files:
|
|
|
145
145
|
- docs/CellLinesRecord.md
|
|
146
146
|
- docs/CellLinesResponse.md
|
|
147
147
|
- docs/CellLinesRow.md
|
|
148
|
+
- docs/ChangesList200Response.md
|
|
149
|
+
- docs/ChangesList200ResponseBuildState.md
|
|
150
|
+
- docs/ChangesList200ResponseItemsInner.md
|
|
151
|
+
- docs/ChangesList200ResponseItemsInnerEntryKeys.md
|
|
148
152
|
- docs/CliaCertificatesResponse.md
|
|
149
153
|
- docs/CliaCertificatesRow.md
|
|
150
154
|
- docs/CompaniesApi.md
|
|
@@ -496,6 +500,16 @@ files:
|
|
|
496
500
|
- docs/SponsorTrialStartForecastRow.md
|
|
497
501
|
- docs/SponsorTrialsResponse.md
|
|
498
502
|
- docs/SponsorTrialsRow.md
|
|
503
|
+
- docs/SubscriptionsApi.md
|
|
504
|
+
- docs/SubscriptionsCreate201Response.md
|
|
505
|
+
- docs/SubscriptionsCreate201ResponseSubscription.md
|
|
506
|
+
- docs/SubscriptionsCreate201ResponseSubscriptionTarget.md
|
|
507
|
+
- docs/SubscriptionsCreateRequest.md
|
|
508
|
+
- docs/SubscriptionsDelete200Response.md
|
|
509
|
+
- docs/SubscriptionsList200Response.md
|
|
510
|
+
- docs/SubscriptionsList200ResponseSubscriptionsInner.md
|
|
511
|
+
- docs/SubscriptionsList200ResponseSubscriptionsInnerTarget.md
|
|
512
|
+
- docs/SubscriptionsList200ResponseSubscriptionsInnerTargetFilters.md
|
|
499
513
|
- docs/SupplierCapabilityEsgResponse.md
|
|
500
514
|
- docs/SupplierCapabilityEsgRow.md
|
|
501
515
|
- docs/SupplierServicesResponse.md
|
|
@@ -591,6 +605,7 @@ files:
|
|
|
591
605
|
- lib/pharmaobservatory/api/rwd_sources_api.rb
|
|
592
606
|
- lib/pharmaobservatory/api/rwd_studies_api.rb
|
|
593
607
|
- lib/pharmaobservatory/api/sites_api.rb
|
|
608
|
+
- lib/pharmaobservatory/api/subscriptions_api.rb
|
|
594
609
|
- lib/pharmaobservatory/api/suppliers_api.rb
|
|
595
610
|
- lib/pharmaobservatory/api/targets_api.rb
|
|
596
611
|
- lib/pharmaobservatory/api/trials_api.rb
|
|
@@ -652,6 +667,10 @@ files:
|
|
|
652
667
|
- lib/pharmaobservatory/models/cell_lines_record.rb
|
|
653
668
|
- lib/pharmaobservatory/models/cell_lines_response.rb
|
|
654
669
|
- lib/pharmaobservatory/models/cell_lines_row.rb
|
|
670
|
+
- lib/pharmaobservatory/models/changes_list200_response.rb
|
|
671
|
+
- lib/pharmaobservatory/models/changes_list200_response_build_state.rb
|
|
672
|
+
- lib/pharmaobservatory/models/changes_list200_response_items_inner.rb
|
|
673
|
+
- lib/pharmaobservatory/models/changes_list200_response_items_inner_entry_keys.rb
|
|
655
674
|
- lib/pharmaobservatory/models/clia_certificates_response.rb
|
|
656
675
|
- lib/pharmaobservatory/models/clia_certificates_row.rb
|
|
657
676
|
- lib/pharmaobservatory/models/companies_record.rb
|
|
@@ -985,6 +1004,15 @@ files:
|
|
|
985
1004
|
- lib/pharmaobservatory/models/sponsor_trial_start_forecast_row.rb
|
|
986
1005
|
- lib/pharmaobservatory/models/sponsor_trials_response.rb
|
|
987
1006
|
- lib/pharmaobservatory/models/sponsor_trials_row.rb
|
|
1007
|
+
- lib/pharmaobservatory/models/subscriptions_create201_response.rb
|
|
1008
|
+
- lib/pharmaobservatory/models/subscriptions_create201_response_subscription.rb
|
|
1009
|
+
- lib/pharmaobservatory/models/subscriptions_create201_response_subscription_target.rb
|
|
1010
|
+
- lib/pharmaobservatory/models/subscriptions_create_request.rb
|
|
1011
|
+
- lib/pharmaobservatory/models/subscriptions_delete200_response.rb
|
|
1012
|
+
- lib/pharmaobservatory/models/subscriptions_list200_response.rb
|
|
1013
|
+
- lib/pharmaobservatory/models/subscriptions_list200_response_subscriptions_inner.rb
|
|
1014
|
+
- lib/pharmaobservatory/models/subscriptions_list200_response_subscriptions_inner_target.rb
|
|
1015
|
+
- lib/pharmaobservatory/models/subscriptions_list200_response_subscriptions_inner_target_filters.rb
|
|
988
1016
|
- lib/pharmaobservatory/models/supplier_capability_esg_response.rb
|
|
989
1017
|
- lib/pharmaobservatory/models/supplier_capability_esg_row.rb
|
|
990
1018
|
- lib/pharmaobservatory/models/supplier_services_response.rb
|