cdp-sdk 0.14.2

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.
@@ -0,0 +1,176 @@
1
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
2
+ # source: persistency.proto
3
+
4
+ require 'google/protobuf'
5
+
6
+ require 'google/protobuf/any_pb'
7
+ require 'google/rpc/status_pb'
8
+ require 'google/protobuf/timestamp_pb'
9
+ require 'value_pb'
10
+ require 'common_pb'
11
+ require 'legacy_pb'
12
+
13
+ Google::Protobuf::DescriptorPool.generated_pool.build do
14
+ add_file("persistency.proto", :syntax => :proto3) do
15
+ add_message "cdp.ValidationError" do
16
+ map :details, :string, :message, 1, "google.protobuf.Any"
17
+ end
18
+ add_message "cdp.CreateEntity" do
19
+ optional :entity_type, :string, 1
20
+ optional :entity_uuid, :string, 2
21
+ map :payload, :string, :message, 3, "cdp.Value"
22
+ optional :timestamp, :message, 4, "google.protobuf.Timestamp"
23
+ end
24
+ add_message "cdp.DeleteEntity" do
25
+ optional :entity_type, :string, 1
26
+ optional :timestamp, :message, 4, "google.protobuf.Timestamp"
27
+ oneof :condition do
28
+ optional :field_condition, :message, 2, "cdp.FieldCondition"
29
+ end
30
+ end
31
+ add_message "cdp.UpdateEntity" do
32
+ optional :entity_type, :string, 1
33
+ map :payload, :string, :message, 2, "cdp.Value"
34
+ optional :timestamp, :message, 4, "google.protobuf.Timestamp"
35
+ oneof :condition do
36
+ optional :field_condition, :message, 3, "cdp.FieldCondition"
37
+ end
38
+ end
39
+ add_message "cdp.UpsertEntity" do
40
+ optional :entity_type, :string, 1
41
+ map :payload, :string, :message, 2, "cdp.Value"
42
+ repeated :unique_by, :string, 3
43
+ optional :timestamp, :message, 4, "google.protobuf.Timestamp"
44
+ repeated :if_created_relate_with, :message, 5, "cdp.Command"
45
+ repeated :if_created_create_event, :message, 6, "cdp.Command"
46
+ end
47
+ add_message "cdp.CreateIfNotExistsEntity" do
48
+ optional :entity_type, :string, 1
49
+ map :payload, :string, :message, 2, "cdp.Value"
50
+ repeated :unique_by, :string, 3
51
+ optional :timestamp, :message, 4, "google.protobuf.Timestamp"
52
+ end
53
+ add_message "cdp.AppendValuesToEntitySet" do
54
+ optional :entity_type, :string, 1
55
+ optional :field_name, :string, 2
56
+ optional :values, :message, 4, "platformmodel.ArrayValue"
57
+ optional :timestamp, :message, 5, "google.protobuf.Timestamp"
58
+ oneof :condition do
59
+ optional :field_condition, :message, 3, "cdp.FieldCondition"
60
+ end
61
+ end
62
+ add_message "cdp.DeleteValuesFromEntitySet" do
63
+ optional :entity_type, :string, 1
64
+ optional :field_name, :string, 2
65
+ optional :values, :message, 4, "platformmodel.ArrayValue"
66
+ optional :timestamp, :message, 5, "google.protobuf.Timestamp"
67
+ oneof :condition do
68
+ optional :field_condition, :message, 3, "cdp.FieldCondition"
69
+ end
70
+ end
71
+ add_message "cdp.CreateEntityRelation" do
72
+ optional :target_entity_type, :string, 1
73
+ optional :target_entity_id, :string, 2
74
+ optional :source_entity_type, :string, 3
75
+ optional :source_entity_id, :string, 4
76
+ optional :timestamp, :message, 5, "google.protobuf.Timestamp"
77
+ end
78
+ add_message "cdp.DeleteEntityRelation" do
79
+ optional :target_entity_type, :string, 1
80
+ optional :target_entity_id, :string, 2
81
+ optional :source_entity_type, :string, 3
82
+ optional :source_entity_id, :string, 4
83
+ optional :timestamp, :message, 5, "google.protobuf.Timestamp"
84
+ end
85
+ add_message "cdp.CreateEvent" do
86
+ optional :entity_uuid, :string, 1
87
+ optional :event_type, :string, 2
88
+ optional :event_uuid, :string, 3
89
+ optional :event_identifier, :string, 4
90
+ optional :event_timestamp, :message, 5, "google.protobuf.Timestamp"
91
+ map :payload, :string, :message, 6, "cdp.Value"
92
+ end
93
+ add_message "cdp.Command" do
94
+ optional :id, :string, 10
95
+ oneof :command_type do
96
+ optional :create_event, :message, 1, "cdp.CreateEvent"
97
+ optional :create_entity, :message, 2, "cdp.CreateEntity"
98
+ optional :delete_entity, :message, 3, "cdp.DeleteEntity"
99
+ optional :update_entity, :message, 4, "cdp.UpdateEntity"
100
+ optional :upsert_entity, :message, 9, "cdp.UpsertEntity"
101
+ optional :create_if_not_exists_entity, :message, 11, "cdp.CreateIfNotExistsEntity"
102
+ optional :create_entity_relation, :message, 5, "cdp.CreateEntityRelation"
103
+ optional :delete_entity_relation, :message, 6, "cdp.DeleteEntityRelation"
104
+ optional :append_values_to_entity_set, :message, 7, "cdp.AppendValuesToEntitySet"
105
+ optional :delete_values_from_entity_set, :message, 8, "cdp.DeleteValuesFromEntitySet"
106
+ end
107
+ end
108
+ add_message "cdp.Transaction" do
109
+ optional :id, :string, 1
110
+ optional :tenant_id, :int64, 2
111
+ repeated :commands, :message, 3, "cdp.Command"
112
+ optional :parent_transaction_timestamp, :message, 4, "google.protobuf.Timestamp"
113
+ end
114
+ add_message "cdp.CommandResult" do
115
+ optional :reference, :message, 1, "cdp.CommandReference"
116
+ map :payload, :string, :message, 2, "platformmodel.Value"
117
+ optional :operation, :string, 3
118
+ end
119
+ add_message "cdp.Response" do
120
+ optional :id, :string, 1
121
+ optional :status, :message, 2, "google.rpc.Status"
122
+ repeated :errors, :message, 3, "cdp.ValidationError"
123
+ repeated :results, :message, 4, "cdp.CommandResult"
124
+ end
125
+ add_message "cdp.SearchRequest" do
126
+ optional :tenant_id, :int64, 1
127
+ oneof :search_type do
128
+ optional :exists, :message, 2, "cdp.Exists"
129
+ optional :distinct, :message, 3, "cdp.Distinct"
130
+ end
131
+ end
132
+ add_message "cdp.Exists" do
133
+ optional :type, :string, 1
134
+ oneof :condition do
135
+ optional :field_condition, :message, 2, "cdp.FieldCondition"
136
+ end
137
+ end
138
+ add_message "cdp.Distinct" do
139
+ optional :type, :string, 1
140
+ repeated :fields, :string, 2
141
+ oneof :condition do
142
+ optional :field_condition, :message, 3, "cdp.FieldCondition"
143
+ end
144
+ end
145
+ add_message "cdp.SearchResponse" do
146
+ optional :status, :message, 1, "google.rpc.Status"
147
+ repeated :result, :message, 2, "cdp.SearchResult"
148
+ end
149
+ add_message "cdp.SearchResult" do
150
+ map :payload, :string, :message, 1, "platformmodel.Value"
151
+ end
152
+ end
153
+ end
154
+
155
+ module CDP
156
+ ValidationError = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("cdp.ValidationError").msgclass
157
+ CreateEntity = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("cdp.CreateEntity").msgclass
158
+ DeleteEntity = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("cdp.DeleteEntity").msgclass
159
+ UpdateEntity = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("cdp.UpdateEntity").msgclass
160
+ UpsertEntity = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("cdp.UpsertEntity").msgclass
161
+ CreateIfNotExistsEntity = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("cdp.CreateIfNotExistsEntity").msgclass
162
+ AppendValuesToEntitySet = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("cdp.AppendValuesToEntitySet").msgclass
163
+ DeleteValuesFromEntitySet = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("cdp.DeleteValuesFromEntitySet").msgclass
164
+ CreateEntityRelation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("cdp.CreateEntityRelation").msgclass
165
+ DeleteEntityRelation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("cdp.DeleteEntityRelation").msgclass
166
+ CreateEvent = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("cdp.CreateEvent").msgclass
167
+ Command = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("cdp.Command").msgclass
168
+ Transaction = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("cdp.Transaction").msgclass
169
+ CommandResult = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("cdp.CommandResult").msgclass
170
+ Response = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("cdp.Response").msgclass
171
+ SearchRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("cdp.SearchRequest").msgclass
172
+ Exists = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("cdp.Exists").msgclass
173
+ Distinct = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("cdp.Distinct").msgclass
174
+ SearchResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("cdp.SearchResponse").msgclass
175
+ SearchResult = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("cdp.SearchResult").msgclass
176
+ end
@@ -0,0 +1,51 @@
1
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
2
+ # Source: persistency.proto for package 'CDP'
3
+
4
+ require 'grpc'
5
+ require 'persistency_pb'
6
+
7
+ module CDP
8
+ module PersistencyService
9
+ class Service
10
+
11
+ include ::GRPC::GenericService
12
+
13
+ self.marshal_class_method = :encode
14
+ self.unmarshal_class_method = :decode
15
+ self.service_name = 'cdp.PersistencyService'
16
+
17
+ rpc :Execute, stream(::CDP::Transaction), stream(::CDP::Response)
18
+ end
19
+
20
+ Stub = Service.rpc_stub_class
21
+ end
22
+ module Service
23
+ class Service
24
+
25
+ include ::GRPC::GenericService
26
+
27
+ self.marshal_class_method = :encode
28
+ self.unmarshal_class_method = :decode
29
+ self.service_name = 'cdp.Service'
30
+
31
+ rpc :ExecuteSync, ::CDP::Transaction, ::CDP::Response
32
+ rpc :ExecuteAsync, ::CDP::Transaction, ::CDP::Response
33
+ end
34
+
35
+ Stub = Service.rpc_stub_class
36
+ end
37
+ module SearchService
38
+ class Service
39
+
40
+ include ::GRPC::GenericService
41
+
42
+ self.marshal_class_method = :encode
43
+ self.unmarshal_class_method = :decode
44
+ self.service_name = 'cdp.SearchService'
45
+
46
+ rpc :Execute, ::CDP::SearchRequest, ::CDP::SearchResponse
47
+ end
48
+
49
+ Stub = Service.rpc_stub_class
50
+ end
51
+ end
data/lib/search_pb.rb ADDED
@@ -0,0 +1,29 @@
1
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
2
+ # source: search.proto
3
+
4
+ require 'google/protobuf'
5
+
6
+ require 'common_pb'
7
+
8
+ Google::Protobuf::DescriptorPool.generated_pool.build do
9
+ add_file("search.proto", :syntax => :proto3) do
10
+ add_message "cdp.search.Query" do
11
+ optional :type, :string, 1
12
+ repeated :projection, :message, 2, "cdp.search.QueryProjection"
13
+ repeated :field_condition, :message, 3, "cdp.FieldCondition"
14
+ end
15
+ add_message "cdp.search.QueryProjection" do
16
+ oneof :projection do
17
+ optional :field, :string, 1
18
+ optional :query, :message, 2, "cdp.search.Query"
19
+ end
20
+ end
21
+ end
22
+ end
23
+
24
+ module CDP
25
+ module Search
26
+ Query = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("cdp.search.Query").msgclass
27
+ QueryProjection = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("cdp.search.QueryProjection").msgclass
28
+ end
29
+ end
metadata ADDED
@@ -0,0 +1,203 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: cdp-sdk
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.14.2
5
+ platform: ruby
6
+ authors:
7
+ - RDStation
8
+ autorequire:
9
+ bindir: exe
10
+ cert_chain: []
11
+ date: 2022-07-28 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: google-protobuf
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - ">="
18
+ - !ruby/object:Gem::Version
19
+ version: '3.11'
20
+ - - "<"
21
+ - !ruby/object:Gem::Version
22
+ version: '4'
23
+ type: :runtime
24
+ prerelease: false
25
+ version_requirements: !ruby/object:Gem::Requirement
26
+ requirements:
27
+ - - ">="
28
+ - !ruby/object:Gem::Version
29
+ version: '3.11'
30
+ - - "<"
31
+ - !ruby/object:Gem::Version
32
+ version: '4'
33
+ - !ruby/object:Gem::Dependency
34
+ name: grpc
35
+ requirement: !ruby/object:Gem::Requirement
36
+ requirements:
37
+ - - ">="
38
+ - !ruby/object:Gem::Version
39
+ version: 1.24.0
40
+ - - "<"
41
+ - !ruby/object:Gem::Version
42
+ version: '2'
43
+ type: :runtime
44
+ prerelease: false
45
+ version_requirements: !ruby/object:Gem::Requirement
46
+ requirements:
47
+ - - ">="
48
+ - !ruby/object:Gem::Version
49
+ version: 1.24.0
50
+ - - "<"
51
+ - !ruby/object:Gem::Version
52
+ version: '2'
53
+ - !ruby/object:Gem::Dependency
54
+ name: platform-model
55
+ requirement: !ruby/object:Gem::Requirement
56
+ requirements:
57
+ - - ">="
58
+ - !ruby/object:Gem::Version
59
+ version: '1.19'
60
+ - - "<"
61
+ - !ruby/object:Gem::Version
62
+ version: '2'
63
+ type: :runtime
64
+ prerelease: false
65
+ version_requirements: !ruby/object:Gem::Requirement
66
+ requirements:
67
+ - - ">="
68
+ - !ruby/object:Gem::Version
69
+ version: '1.19'
70
+ - - "<"
71
+ - !ruby/object:Gem::Version
72
+ version: '2'
73
+ - !ruby/object:Gem::Dependency
74
+ name: valid_kit
75
+ requirement: !ruby/object:Gem::Requirement
76
+ requirements:
77
+ - - ">="
78
+ - !ruby/object:Gem::Version
79
+ version: 1.6.3
80
+ - - "<"
81
+ - !ruby/object:Gem::Version
82
+ version: '2'
83
+ type: :runtime
84
+ prerelease: false
85
+ version_requirements: !ruby/object:Gem::Requirement
86
+ requirements:
87
+ - - ">="
88
+ - !ruby/object:Gem::Version
89
+ version: 1.6.3
90
+ - - "<"
91
+ - !ruby/object:Gem::Version
92
+ version: '2'
93
+ - !ruby/object:Gem::Dependency
94
+ name: cdp-schema_client
95
+ requirement: !ruby/object:Gem::Requirement
96
+ requirements:
97
+ - - ">="
98
+ - !ruby/object:Gem::Version
99
+ version: 3.8.1
100
+ - - "<"
101
+ - !ruby/object:Gem::Version
102
+ version: '4'
103
+ type: :runtime
104
+ prerelease: false
105
+ version_requirements: !ruby/object:Gem::Requirement
106
+ requirements:
107
+ - - ">="
108
+ - !ruby/object:Gem::Version
109
+ version: 3.8.1
110
+ - - "<"
111
+ - !ruby/object:Gem::Version
112
+ version: '4'
113
+ - !ruby/object:Gem::Dependency
114
+ name: timeline-swagger-client
115
+ requirement: !ruby/object:Gem::Requirement
116
+ requirements:
117
+ - - ">="
118
+ - !ruby/object:Gem::Version
119
+ version: 0.5.0
120
+ - - "<"
121
+ - !ruby/object:Gem::Version
122
+ version: '1'
123
+ type: :runtime
124
+ prerelease: false
125
+ version_requirements: !ruby/object:Gem::Requirement
126
+ requirements:
127
+ - - ">="
128
+ - !ruby/object:Gem::Version
129
+ version: 0.5.0
130
+ - - "<"
131
+ - !ruby/object:Gem::Version
132
+ version: '1'
133
+ - !ruby/object:Gem::Dependency
134
+ name: webmock
135
+ requirement: !ruby/object:Gem::Requirement
136
+ requirements:
137
+ - - ">="
138
+ - !ruby/object:Gem::Version
139
+ version: '0'
140
+ type: :development
141
+ prerelease: false
142
+ version_requirements: !ruby/object:Gem::Requirement
143
+ requirements:
144
+ - - ">="
145
+ - !ruby/object:Gem::Version
146
+ version: '0'
147
+ description:
148
+ email:
149
+ - dev@rdstation.com
150
+ executables: []
151
+ extensions: []
152
+ extra_rdoc_files: []
153
+ files:
154
+ - lib/cdp.rb
155
+ - lib/cdp/builder.rb
156
+ - lib/cdp/builders/after_created.rb
157
+ - lib/cdp/builders/entity.rb
158
+ - lib/cdp/builders/event.rb
159
+ - lib/cdp/builders/value.rb
160
+ - lib/cdp/client.rb
161
+ - lib/cdp/persistency.rb
162
+ - lib/cdp/query/actions.rb
163
+ - lib/cdp/retryable.rb
164
+ - lib/cdp/timeline.rb
165
+ - lib/cdp/timeline/client/swagger/client.rb
166
+ - lib/cdp/timeline/client/swagger/configuration.rb
167
+ - lib/cdp/timeline/event.rb
168
+ - lib/cdp/timeline/response.rb
169
+ - lib/cdp/timeline/summary_response.rb
170
+ - lib/cdp/transaction.rb
171
+ - lib/cdp/validator.rb
172
+ - lib/cdp/value.rb
173
+ - lib/cdp/version.rb
174
+ - lib/common_pb.rb
175
+ - lib/configuration.rb
176
+ - lib/legacy_pb.rb
177
+ - lib/legacy_services_pb.rb
178
+ - lib/persistency_pb.rb
179
+ - lib/persistency_services_pb.rb
180
+ - lib/search_pb.rb
181
+ homepage:
182
+ licenses: []
183
+ metadata: {}
184
+ post_install_message:
185
+ rdoc_options: []
186
+ require_paths:
187
+ - lib
188
+ required_ruby_version: !ruby/object:Gem::Requirement
189
+ requirements:
190
+ - - ">="
191
+ - !ruby/object:Gem::Version
192
+ version: 2.6.0
193
+ required_rubygems_version: !ruby/object:Gem::Requirement
194
+ requirements:
195
+ - - ">="
196
+ - !ruby/object:Gem::Version
197
+ version: '0'
198
+ requirements: []
199
+ rubygems_version: 3.1.4
200
+ signing_key:
201
+ specification_version: 4
202
+ summary: CDP SDK Toolkit
203
+ test_files: []