ali_ots 0.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 +7 -0
- data/lib/ali_ots.rb +127 -0
- data/lib/ali_ots/client.rb +183 -0
- data/lib/ali_ots/connection.rb +118 -0
- data/lib/ali_ots/metas/batch_get_row_request.rb +17 -0
- data/lib/ali_ots/metas/batch_get_row_response.rb +17 -0
- data/lib/ali_ots/metas/batch_write_row_request.rb +17 -0
- data/lib/ali_ots/metas/batch_write_row_response.rb +17 -0
- data/lib/ali_ots/metas/capacity_unit.rb +19 -0
- data/lib/ali_ots/metas/column.rb +19 -0
- data/lib/ali_ots/metas/column_schema.rb +18 -0
- data/lib/ali_ots/metas/column_update.rb +21 -0
- data/lib/ali_ots/metas/column_value.rb +27 -0
- data/lib/ali_ots/metas/condition.rb +16 -0
- data/lib/ali_ots/metas/consumed_capacity.rb +17 -0
- data/lib/ali_ots/metas/create_table_request.rb +18 -0
- data/lib/ali_ots/metas/delete_row_in_batch_write_row_request.rb +19 -0
- data/lib/ali_ots/metas/delete_row_request.rb +21 -0
- data/lib/ali_ots/metas/delete_row_response.rb +17 -0
- data/lib/ali_ots/metas/delete_table_request.rb +17 -0
- data/lib/ali_ots/metas/describe_table_request.rb +16 -0
- data/lib/ali_ots/metas/describe_table_response.rb +18 -0
- data/lib/ali_ots/metas/enums/column_type.rb +32 -0
- data/lib/ali_ots/metas/enums/direction.rb +21 -0
- data/lib/ali_ots/metas/enums/operation_type.rb +22 -0
- data/lib/ali_ots/metas/enums/row_existence_expectation.rb +21 -0
- data/lib/ali_ots/metas/error.rb +19 -0
- data/lib/ali_ots/metas/get_range_request.rb +27 -0
- data/lib/ali_ots/metas/get_range_response.rb +21 -0
- data/lib/ali_ots/metas/get_row_request.rb +21 -0
- data/lib/ali_ots/metas/get_row_response.rb +18 -0
- data/lib/ali_ots/metas/list_table_request.rb +14 -0
- data/lib/ali_ots/metas/list_table_response.rb +16 -0
- data/lib/ali_ots/metas/put_row_in_batch_write_row_request.rb +21 -0
- data/lib/ali_ots/metas/put_row_request.rb +22 -0
- data/lib/ali_ots/metas/put_row_response.rb +17 -0
- data/lib/ali_ots/metas/reserved_throughput.rb +16 -0
- data/lib/ali_ots/metas/reserved_throughput_details.rb +22 -0
- data/lib/ali_ots/metas/row.rb +19 -0
- data/lib/ali_ots/metas/row_in_batch_get_row_request.rb +17 -0
- data/lib/ali_ots/metas/row_in_batch_get_row_response.rb +23 -0
- data/lib/ali_ots/metas/row_in_batch_write_row_response.rb +21 -0
- data/lib/ali_ots/metas/table_in_batch_get_row_request.rb +21 -0
- data/lib/ali_ots/metas/table_in_batch_get_row_response.rb +20 -0
- data/lib/ali_ots/metas/table_in_batch_write_row_request.rb +23 -0
- data/lib/ali_ots/metas/table_in_batch_write_row_response.rb +23 -0
- data/lib/ali_ots/metas/table_meta.rb +18 -0
- data/lib/ali_ots/metas/table_primary_key.rb +21 -0
- data/lib/ali_ots/metas/update_row_in_batch_write_row_request.rb +21 -0
- data/lib/ali_ots/metas/update_row_request.rb +22 -0
- data/lib/ali_ots/metas/update_row_response.rb +17 -0
- data/lib/ali_ots/metas/update_table_request.rb +18 -0
- data/lib/ali_ots/metas/update_table_response.rb +16 -0
- data/lib/ali_ots/version.rb +3 -0
- metadata +138 -0
@@ -0,0 +1,21 @@
|
|
1
|
+
module AliOts
|
2
|
+
module Metas
|
3
|
+
class TablePrimaryKey
|
4
|
+
attr_accessor :name
|
5
|
+
attr_accessor :type
|
6
|
+
|
7
|
+
def initialize(name, type)
|
8
|
+
self.name = name
|
9
|
+
self.type = type
|
10
|
+
end
|
11
|
+
|
12
|
+
def to_s
|
13
|
+
%Q{primary_key {
|
14
|
+
name: "#{name}"
|
15
|
+
type: #{type}
|
16
|
+
}
|
17
|
+
}
|
18
|
+
end
|
19
|
+
end
|
20
|
+
end
|
21
|
+
end
|
@@ -0,0 +1,21 @@
|
|
1
|
+
module AliOts
|
2
|
+
module Metas
|
3
|
+
#在BatchWriteRow操作中,表示要插入的一行信息。
|
4
|
+
class UpdateRowInBatchWriteRowRequest < ::Protobuf::Message
|
5
|
+
required AliOts::Metas::Condition, :condition, 1
|
6
|
+
repeated AliOts::Metas::Column, :primary_key, 2
|
7
|
+
repeated AliOts::Metas::ColumnUpdate, :attribute_columns, 3
|
8
|
+
end
|
9
|
+
end
|
10
|
+
end
|
11
|
+
|
12
|
+
|
13
|
+
|
14
|
+
=begin
|
15
|
+
message UpdateRowInBatchWriteRowRequest {
|
16
|
+
required Condition condition = 1;
|
17
|
+
repeated Column primary_key = 2;
|
18
|
+
repeated ColumnUpdate attribute_columns = 3;
|
19
|
+
}
|
20
|
+
|
21
|
+
=end
|
@@ -0,0 +1,22 @@
|
|
1
|
+
module AliOts
|
2
|
+
module Metas
|
3
|
+
#更新指定行的数据,如果该行不存在,则新增一行;若该行存在,则根据请求的内容在这一行中新增、修改或者删除指定列的值。
|
4
|
+
class UpdateRowRequest < ::Protobuf::Message
|
5
|
+
required :string, :table_name, 1
|
6
|
+
required AliOts::Metas::Condition, :condition, 2
|
7
|
+
repeated AliOts::Metas::Column, :primary_key, 3
|
8
|
+
repeated AliOts::Metas::ColumnUpdate, :attribute_columns, 4
|
9
|
+
end
|
10
|
+
end
|
11
|
+
end
|
12
|
+
|
13
|
+
|
14
|
+
|
15
|
+
=begin
|
16
|
+
message UpdateRowRequest {
|
17
|
+
required string table_name = 1;
|
18
|
+
required Condition condition = 2;
|
19
|
+
repeated Column primary_key = 3;
|
20
|
+
repeated ColumnUpdate attribute_columns = 4;
|
21
|
+
}
|
22
|
+
=end
|
@@ -0,0 +1,17 @@
|
|
1
|
+
module AliOts
|
2
|
+
module Metas
|
3
|
+
#更新指定行的数据,如果该行不存在,则新增一行;若该行存在,则根据请求的内容在这一行中新增、修改或者删除指定列的值。
|
4
|
+
class UpdateRowResponse < ::Protobuf::Message
|
5
|
+
required AliOts::Metas::ConsumedCapacity, :consumed, 1
|
6
|
+
end
|
7
|
+
end
|
8
|
+
end
|
9
|
+
|
10
|
+
|
11
|
+
|
12
|
+
=begin
|
13
|
+
message UpdateRowResponse {
|
14
|
+
required ConsumedCapacity consumed = 1;
|
15
|
+
}
|
16
|
+
|
17
|
+
=end
|
@@ -0,0 +1,18 @@
|
|
1
|
+
module AliOts
|
2
|
+
module Metas
|
3
|
+
#更新指定表的预留读吞吐量或预留写吞吐量设置,新设定将于更新成功一分钟内生效。
|
4
|
+
class UpdateTableRequest < ::Protobuf::Message
|
5
|
+
required :string, :table_name, 1
|
6
|
+
required AliOts::Metas::ReservedThroughput, :reserved_throughput, 2
|
7
|
+
end
|
8
|
+
end
|
9
|
+
end
|
10
|
+
|
11
|
+
|
12
|
+
|
13
|
+
=begin
|
14
|
+
message UpdateTableRequest {
|
15
|
+
required string table_name = 1;
|
16
|
+
required ReservedThroughput reserved_throughput = 2;
|
17
|
+
}
|
18
|
+
=end
|
@@ -0,0 +1,16 @@
|
|
1
|
+
module AliOts
|
2
|
+
module Metas
|
3
|
+
#更新指定表的预留读吞吐量或预留写吞吐量设置,新设定将于更新成功一分钟内生效。
|
4
|
+
class UpdateTableResponse < ::Protobuf::Message
|
5
|
+
required AliOts::Metas::ReservedThroughputDetails, :reserved_throughput_details, 1
|
6
|
+
end
|
7
|
+
end
|
8
|
+
end
|
9
|
+
|
10
|
+
|
11
|
+
|
12
|
+
=begin
|
13
|
+
message UpdateTableResponse {
|
14
|
+
required ReservedThroughputDetails reserved_throughput_details = 1;
|
15
|
+
}
|
16
|
+
=end
|
metadata
ADDED
@@ -0,0 +1,138 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: ali_ots
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.0.1
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Backkom
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2015-09-21 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: faraday
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - ">="
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '0.9'
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - ">="
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '0.9'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: protobuf
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - ">="
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '3.5'
|
34
|
+
type: :runtime
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - ">="
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '3.5'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: addressable
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - ">="
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '2.3'
|
48
|
+
type: :runtime
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - ">="
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '2.3'
|
55
|
+
description: Aliyun OTS from ruby client
|
56
|
+
email: 99866770@qq.com
|
57
|
+
executables: []
|
58
|
+
extensions: []
|
59
|
+
extra_rdoc_files: []
|
60
|
+
files:
|
61
|
+
- lib/ali_ots.rb
|
62
|
+
- lib/ali_ots/client.rb
|
63
|
+
- lib/ali_ots/connection.rb
|
64
|
+
- lib/ali_ots/metas/batch_get_row_request.rb
|
65
|
+
- lib/ali_ots/metas/batch_get_row_response.rb
|
66
|
+
- lib/ali_ots/metas/batch_write_row_request.rb
|
67
|
+
- lib/ali_ots/metas/batch_write_row_response.rb
|
68
|
+
- lib/ali_ots/metas/capacity_unit.rb
|
69
|
+
- lib/ali_ots/metas/column.rb
|
70
|
+
- lib/ali_ots/metas/column_schema.rb
|
71
|
+
- lib/ali_ots/metas/column_update.rb
|
72
|
+
- lib/ali_ots/metas/column_value.rb
|
73
|
+
- lib/ali_ots/metas/condition.rb
|
74
|
+
- lib/ali_ots/metas/consumed_capacity.rb
|
75
|
+
- lib/ali_ots/metas/create_table_request.rb
|
76
|
+
- lib/ali_ots/metas/delete_row_in_batch_write_row_request.rb
|
77
|
+
- lib/ali_ots/metas/delete_row_request.rb
|
78
|
+
- lib/ali_ots/metas/delete_row_response.rb
|
79
|
+
- lib/ali_ots/metas/delete_table_request.rb
|
80
|
+
- lib/ali_ots/metas/describe_table_request.rb
|
81
|
+
- lib/ali_ots/metas/describe_table_response.rb
|
82
|
+
- lib/ali_ots/metas/enums/column_type.rb
|
83
|
+
- lib/ali_ots/metas/enums/direction.rb
|
84
|
+
- lib/ali_ots/metas/enums/operation_type.rb
|
85
|
+
- lib/ali_ots/metas/enums/row_existence_expectation.rb
|
86
|
+
- lib/ali_ots/metas/error.rb
|
87
|
+
- lib/ali_ots/metas/get_range_request.rb
|
88
|
+
- lib/ali_ots/metas/get_range_response.rb
|
89
|
+
- lib/ali_ots/metas/get_row_request.rb
|
90
|
+
- lib/ali_ots/metas/get_row_response.rb
|
91
|
+
- lib/ali_ots/metas/list_table_request.rb
|
92
|
+
- lib/ali_ots/metas/list_table_response.rb
|
93
|
+
- lib/ali_ots/metas/put_row_in_batch_write_row_request.rb
|
94
|
+
- lib/ali_ots/metas/put_row_request.rb
|
95
|
+
- lib/ali_ots/metas/put_row_response.rb
|
96
|
+
- lib/ali_ots/metas/reserved_throughput.rb
|
97
|
+
- lib/ali_ots/metas/reserved_throughput_details.rb
|
98
|
+
- lib/ali_ots/metas/row.rb
|
99
|
+
- lib/ali_ots/metas/row_in_batch_get_row_request.rb
|
100
|
+
- lib/ali_ots/metas/row_in_batch_get_row_response.rb
|
101
|
+
- lib/ali_ots/metas/row_in_batch_write_row_response.rb
|
102
|
+
- lib/ali_ots/metas/table_in_batch_get_row_request.rb
|
103
|
+
- lib/ali_ots/metas/table_in_batch_get_row_response.rb
|
104
|
+
- lib/ali_ots/metas/table_in_batch_write_row_request.rb
|
105
|
+
- lib/ali_ots/metas/table_in_batch_write_row_response.rb
|
106
|
+
- lib/ali_ots/metas/table_meta.rb
|
107
|
+
- lib/ali_ots/metas/table_primary_key.rb
|
108
|
+
- lib/ali_ots/metas/update_row_in_batch_write_row_request.rb
|
109
|
+
- lib/ali_ots/metas/update_row_request.rb
|
110
|
+
- lib/ali_ots/metas/update_row_response.rb
|
111
|
+
- lib/ali_ots/metas/update_table_request.rb
|
112
|
+
- lib/ali_ots/metas/update_table_response.rb
|
113
|
+
- lib/ali_ots/version.rb
|
114
|
+
homepage: https://github.com/zhaoxl/ali_ots
|
115
|
+
licenses:
|
116
|
+
- MIT
|
117
|
+
metadata: {}
|
118
|
+
post_install_message:
|
119
|
+
rdoc_options: []
|
120
|
+
require_paths:
|
121
|
+
- lib
|
122
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
123
|
+
requirements:
|
124
|
+
- - ">="
|
125
|
+
- !ruby/object:Gem::Version
|
126
|
+
version: '0'
|
127
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
128
|
+
requirements:
|
129
|
+
- - ">="
|
130
|
+
- !ruby/object:Gem::Version
|
131
|
+
version: '0'
|
132
|
+
requirements: []
|
133
|
+
rubyforge_project:
|
134
|
+
rubygems_version: 2.4.8
|
135
|
+
signing_key:
|
136
|
+
specification_version: 4
|
137
|
+
summary: AliOts
|
138
|
+
test_files: []
|