couchbase 3.9.0-aarch64-linux-musl

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.
Files changed (149) hide show
  1. checksums.yaml +7 -0
  2. data/LICENSE.txt +202 -0
  3. data/README.md +154 -0
  4. data/ext/extconf.rb +0 -0
  5. data/lib/active_support/cache/couchbase_store.rb +407 -0
  6. data/lib/couchbase/3.2/libcouchbase.so +0 -0
  7. data/lib/couchbase/3.3/libcouchbase.so +0 -0
  8. data/lib/couchbase/3.4/libcouchbase.so +0 -0
  9. data/lib/couchbase/4.0/libcouchbase.so +0 -0
  10. data/lib/couchbase/analytics_options.rb +109 -0
  11. data/lib/couchbase/authenticator.rb +80 -0
  12. data/lib/couchbase/binary_collection.rb +145 -0
  13. data/lib/couchbase/binary_collection_options.rb +26 -0
  14. data/lib/couchbase/bucket.rb +173 -0
  15. data/lib/couchbase/cluster.rb +555 -0
  16. data/lib/couchbase/cluster_registry.rb +49 -0
  17. data/lib/couchbase/collection.rb +770 -0
  18. data/lib/couchbase/collection_options.rb +401 -0
  19. data/lib/couchbase/config_profiles.rb +57 -0
  20. data/lib/couchbase/configuration.rb +58 -0
  21. data/lib/couchbase/datastructures/couchbase_list.rb +192 -0
  22. data/lib/couchbase/datastructures/couchbase_map.rb +231 -0
  23. data/lib/couchbase/datastructures/couchbase_queue.rb +161 -0
  24. data/lib/couchbase/datastructures/couchbase_set.rb +145 -0
  25. data/lib/couchbase/datastructures.rb +26 -0
  26. data/lib/couchbase/deprecations.rb +61 -0
  27. data/lib/couchbase/diagnostics.rb +183 -0
  28. data/lib/couchbase/errors.rb +438 -0
  29. data/lib/couchbase/fork_hooks.rb +41 -0
  30. data/lib/couchbase/get_replica_strategy.rb +89 -0
  31. data/lib/couchbase/json_transcoder.rb +41 -0
  32. data/lib/couchbase/key_value_scan.rb +119 -0
  33. data/lib/couchbase/libcouchbase.rb +6 -0
  34. data/lib/couchbase/logger.rb +87 -0
  35. data/lib/couchbase/management/analytics_index_manager.rb +1160 -0
  36. data/lib/couchbase/management/bucket_manager.rb +479 -0
  37. data/lib/couchbase/management/collection_manager.rb +515 -0
  38. data/lib/couchbase/management/collection_query_index_manager.rb +247 -0
  39. data/lib/couchbase/management/query_index_manager.rb +671 -0
  40. data/lib/couchbase/management/scope_search_index_manager.rb +267 -0
  41. data/lib/couchbase/management/search_index_manager.rb +649 -0
  42. data/lib/couchbase/management/user_manager.rb +639 -0
  43. data/lib/couchbase/management/view_index_manager.rb +332 -0
  44. data/lib/couchbase/management.rb +31 -0
  45. data/lib/couchbase/metrics/logging_meter.rb +108 -0
  46. data/lib/couchbase/metrics/logging_value_recorder.rb +50 -0
  47. data/lib/couchbase/metrics/meter.rb +27 -0
  48. data/lib/couchbase/metrics/noop_meter.rb +30 -0
  49. data/lib/couchbase/metrics/noop_value_recorder.rb +27 -0
  50. data/lib/couchbase/metrics/value_recorder.rb +25 -0
  51. data/lib/couchbase/mutation_state.rb +65 -0
  52. data/lib/couchbase/options.rb +3097 -0
  53. data/lib/couchbase/protostellar/binary_collection.rb +55 -0
  54. data/lib/couchbase/protostellar/bucket.rb +59 -0
  55. data/lib/couchbase/protostellar/client.rb +97 -0
  56. data/lib/couchbase/protostellar/cluster.rb +182 -0
  57. data/lib/couchbase/protostellar/collection.rb +156 -0
  58. data/lib/couchbase/protostellar/connect_options.rb +63 -0
  59. data/lib/couchbase/protostellar/error_handling.rb +204 -0
  60. data/lib/couchbase/protostellar/generated/admin/analytics/v1/analytics_pb.rb +54 -0
  61. data/lib/couchbase/protostellar/generated/admin/analytics/v1/analytics_services_pb.rb +51 -0
  62. data/lib/couchbase/protostellar/generated/admin/bucket/v1/bucket_pb.rb +42 -0
  63. data/lib/couchbase/protostellar/generated/admin/bucket/v1/bucket_services_pb.rb +51 -0
  64. data/lib/couchbase/protostellar/generated/admin/collection/v1/collection_pb.rb +38 -0
  65. data/lib/couchbase/protostellar/generated/admin/collection/v1/collection_services_pb.rb +52 -0
  66. data/lib/couchbase/protostellar/generated/admin/query/v1/query_pb.rb +42 -0
  67. data/lib/couchbase/protostellar/generated/admin/query/v1/query_services_pb.rb +55 -0
  68. data/lib/couchbase/protostellar/generated/admin/search/v1/search_pb.rb +51 -0
  69. data/lib/couchbase/protostellar/generated/admin/search/v1/search_services_pb.rb +67 -0
  70. data/lib/couchbase/protostellar/generated/analytics/v1/analytics_pb.rb +31 -0
  71. data/lib/couchbase/protostellar/generated/analytics/v1/analytics_services_pb.rb +40 -0
  72. data/lib/couchbase/protostellar/generated/internal/hooks/v1/hooks_pb.rb +51 -0
  73. data/lib/couchbase/protostellar/generated/internal/hooks/v1/hooks_services_pb.rb +54 -0
  74. data/lib/couchbase/protostellar/generated/internal/xdcr/v1/xdcr_pb.rb +46 -0
  75. data/lib/couchbase/protostellar/generated/internal/xdcr/v1/xdcr_services_pb.rb +56 -0
  76. data/lib/couchbase/protostellar/generated/kv/v1/kv_pb.rb +74 -0
  77. data/lib/couchbase/protostellar/generated/kv/v1/kv_services_pb.rb +93 -0
  78. data/lib/couchbase/protostellar/generated/query/v1/query_pb.rb +35 -0
  79. data/lib/couchbase/protostellar/generated/query/v1/query_services_pb.rb +40 -0
  80. data/lib/couchbase/protostellar/generated/routing/v2/routing_pb.rb +26 -0
  81. data/lib/couchbase/protostellar/generated/routing/v2/routing_services_pb.rb +43 -0
  82. data/lib/couchbase/protostellar/generated/search/v1/search_pb.rb +78 -0
  83. data/lib/couchbase/protostellar/generated/search/v1/search_services_pb.rb +41 -0
  84. data/lib/couchbase/protostellar/generated/transactions/v1/transactions_pb.rb +36 -0
  85. data/lib/couchbase/protostellar/generated/transactions/v1/transactions_services_pb.rb +66 -0
  86. data/lib/couchbase/protostellar/generated/view/v1/view_pb.rb +30 -0
  87. data/lib/couchbase/protostellar/generated/view/v1/view_services_pb.rb +39 -0
  88. data/lib/couchbase/protostellar/generated.rb +9 -0
  89. data/lib/couchbase/protostellar/management/bucket_manager.rb +67 -0
  90. data/lib/couchbase/protostellar/management/collection_manager.rb +94 -0
  91. data/lib/couchbase/protostellar/management/collection_query_index_manager.rb +124 -0
  92. data/lib/couchbase/protostellar/management/query_index_manager.rb +112 -0
  93. data/lib/couchbase/protostellar/management.rb +24 -0
  94. data/lib/couchbase/protostellar/request.rb +79 -0
  95. data/lib/couchbase/protostellar/request_behaviour.rb +42 -0
  96. data/lib/couchbase/protostellar/request_generator/admin/bucket.rb +124 -0
  97. data/lib/couchbase/protostellar/request_generator/admin/collection.rb +96 -0
  98. data/lib/couchbase/protostellar/request_generator/admin/query.rb +132 -0
  99. data/lib/couchbase/protostellar/request_generator/admin.rb +24 -0
  100. data/lib/couchbase/protostellar/request_generator/kv.rb +488 -0
  101. data/lib/couchbase/protostellar/request_generator/query.rb +133 -0
  102. data/lib/couchbase/protostellar/request_generator/search.rb +403 -0
  103. data/lib/couchbase/protostellar/request_generator.rb +26 -0
  104. data/lib/couchbase/protostellar/response_converter/admin/bucket.rb +55 -0
  105. data/lib/couchbase/protostellar/response_converter/admin/collection.rb +42 -0
  106. data/lib/couchbase/protostellar/response_converter/admin/query.rb +59 -0
  107. data/lib/couchbase/protostellar/response_converter/admin.rb +24 -0
  108. data/lib/couchbase/protostellar/response_converter/kv.rb +151 -0
  109. data/lib/couchbase/protostellar/response_converter/query.rb +84 -0
  110. data/lib/couchbase/protostellar/response_converter/search.rb +136 -0
  111. data/lib/couchbase/protostellar/response_converter.rb +26 -0
  112. data/lib/couchbase/protostellar/retry/action.rb +38 -0
  113. data/lib/couchbase/protostellar/retry/orchestrator.rb +61 -0
  114. data/lib/couchbase/protostellar/retry/reason.rb +67 -0
  115. data/lib/couchbase/protostellar/retry/strategies/best_effort.rb +49 -0
  116. data/lib/couchbase/protostellar/retry/strategies/fail_fast.rb +33 -0
  117. data/lib/couchbase/protostellar/retry/strategies.rb +27 -0
  118. data/lib/couchbase/protostellar/retry.rb +28 -0
  119. data/lib/couchbase/protostellar/scope.rb +61 -0
  120. data/lib/couchbase/protostellar/timeout_defaults.rb +30 -0
  121. data/lib/couchbase/protostellar/timeouts.rb +83 -0
  122. data/lib/couchbase/protostellar.rb +29 -0
  123. data/lib/couchbase/query_options.rb +122 -0
  124. data/lib/couchbase/railtie.rb +47 -0
  125. data/lib/couchbase/raw_binary_transcoder.rb +39 -0
  126. data/lib/couchbase/raw_json_transcoder.rb +40 -0
  127. data/lib/couchbase/raw_string_transcoder.rb +42 -0
  128. data/lib/couchbase/scope.rb +272 -0
  129. data/lib/couchbase/search_options.rb +1744 -0
  130. data/lib/couchbase/subdoc.rb +293 -0
  131. data/lib/couchbase/tracing/noop_span.rb +29 -0
  132. data/lib/couchbase/tracing/noop_tracer.rb +29 -0
  133. data/lib/couchbase/tracing/request_span.rb +34 -0
  134. data/lib/couchbase/tracing/request_tracer.rb +28 -0
  135. data/lib/couchbase/tracing/threshold_logging_span.rb +112 -0
  136. data/lib/couchbase/tracing/threshold_logging_tracer.rb +231 -0
  137. data/lib/couchbase/transcoder_flags.rb +64 -0
  138. data/lib/couchbase/utils/generic_logger_adapter.rb +40 -0
  139. data/lib/couchbase/utils/hdr_histogram.rb +55 -0
  140. data/lib/couchbase/utils/observability.rb +263 -0
  141. data/lib/couchbase/utils/observability_constants.rb +200 -0
  142. data/lib/couchbase/utils/stdlib_logger_adapter.rb +65 -0
  143. data/lib/couchbase/utils/time.rb +71 -0
  144. data/lib/couchbase/utils.rb +23 -0
  145. data/lib/couchbase/version.rb +25 -0
  146. data/lib/couchbase/view_options.rb +67 -0
  147. data/lib/couchbase.rb +32 -0
  148. data/lib/rails/generators/couchbase/config/config_generator.rb +29 -0
  149. metadata +228 -0
@@ -0,0 +1,204 @@
1
+ # Copyright 2023. Couchbase, Inc.
2
+ #
3
+ # Licensed under the Apache License, Version 2.0 (the "License");
4
+ # you may not use this file except in compliance with the License.
5
+ # You may obtain a copy of the License at
6
+ #
7
+ # http://www.apache.org/licenses/LICENSE-2.0
8
+ #
9
+ # Unless required by applicable law or agreed to in writing, software
10
+ # distributed under the License is distributed on an "AS IS" BASIS,
11
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ # See the License for the specific language governing permissions and
13
+ # limitations under the License.
14
+
15
+ # frozen_string_literal: true
16
+
17
+ require "couchbase/errors"
18
+ require "google/rpc/error_details_pb"
19
+ require "google/rpc/code_pb"
20
+
21
+ require_relative "request_behaviour"
22
+ require_relative "retry/orchestrator"
23
+ require_relative "retry/reason"
24
+
25
+ module Couchbase
26
+ module Protostellar
27
+ # @api private
28
+ class ErrorHandling
29
+ TYPE_URL_PRECONDITION_FAILURE = "type.googleapis.com/google.rpc.PreconditionFailure"
30
+ TYPE_URL_RESOURCE_INFO = "type.googleapis.com/google.rpc.ResourceInfo"
31
+ TYPE_URL_ERROR_INFO = "type.googleapis.com/google.rpc.ErrorInfo"
32
+ TYPE_URL_BAD_REQUEST = "type.googleapis.com/google.rpc.BadRequest"
33
+
34
+ def self.convert_rpc_status(rpc_status, request)
35
+ handle_rpc_status(rpc_status, request, set_context: false).error
36
+ end
37
+
38
+ def self.handle_grpc_error(grpc_error, request, set_context: true)
39
+ request.context = {} if request.context.nil? && set_context
40
+
41
+ rpc_status = grpc_error.to_rpc_status
42
+ if rpc_status.nil?
43
+ # Binary RPC status not provided, create an RPC status with the code and message from the error
44
+ rpc_status = Google::Rpc::Status.new(code: grpc_error.code, message: grpc_error.details)
45
+ end
46
+
47
+ handle_rpc_status(rpc_status, request, set_context: set_context) unless rpc_status.nil?
48
+ end
49
+
50
+ def self.populate_context(rpc_status, detail_block, request)
51
+ request.context[:server] = rpc_status.message
52
+
53
+ unless detail_block[:precondition_failure].nil?
54
+ request.context[:precondition_violation] = detail_block[:precondition_failure].violations[0].type
55
+ end
56
+
57
+ unless detail_block[:resource_info].nil?
58
+ request.context[:resource_type] = detail_block[:resource_info].resource_type
59
+ unless detail_block[:resource_info].resource_name.empty?
60
+ request.context[:resource_name] =
61
+ detail_block[:resource_info].resource_name
62
+ end
63
+ end
64
+
65
+ return if detail_block[:error_info].nil?
66
+
67
+ request.context[:reason] = detail_block[:error_info].reason
68
+ end
69
+
70
+ def self.handle_rpc_status(rpc_status, request, set_context: true)
71
+ detail_block = {}
72
+ message = rpc_status.message
73
+
74
+ # Decode the detail block
75
+ rpc_status.details&.each do |d|
76
+ type_url = d.type_url
77
+
78
+ if type_url == TYPE_URL_PRECONDITION_FAILURE
79
+ precondition_failure = Google::Rpc::PreconditionFailure.decode(d.value)
80
+ detail_block[:precondition_failure] = precondition_failure
81
+ end
82
+
83
+ if type_url == TYPE_URL_RESOURCE_INFO
84
+ resource_info = Google::Rpc::ResourceInfo.decode(d.value)
85
+ detail_block[:resource_info] = resource_info
86
+ end
87
+
88
+ if type_url == TYPE_URL_ERROR_INFO
89
+ error_info = Google::Rpc::ErrorInfo.decode(d.value)
90
+ detail_block[:error_info] = error_info
91
+ end
92
+
93
+ if type_url == TYPE_URL_BAD_REQUEST
94
+ bad_request = Google::Rpc::BadRequest.decode(d.value)
95
+ detail_block[:bad_request] = bad_request
96
+ end
97
+ end
98
+
99
+ populate_context(rpc_status, detail_block, request) if set_context
100
+
101
+ behaviour =
102
+ case rpc_status.code
103
+ when Google::Rpc::Code::NOT_FOUND
104
+ case detail_block[:resource_info].resource_type
105
+ when "document"
106
+ RequestBehaviour.fail(Couchbase::Error::DocumentNotFound.new(message, request.error_context))
107
+ when "queryindex", "searchindex"
108
+ RequestBehaviour.fail(Couchbase::Error::IndexNotFound.new(message, request.error_context))
109
+ when "bucket"
110
+ RequestBehaviour.fail(Couchbase::Error::BucketNotFound.new(message, request.error_context))
111
+ when "scope"
112
+ RequestBehaviour.fail(Couchbase::Error::ScopeNotFound.new(message, request.error_context))
113
+ when "collection"
114
+ RequestBehaviour.fail(Couchbase::Error::CollectionNotFound.new(message, request.error_context))
115
+ when "path"
116
+ RequestBehaviour.fail(Couchbase::Error::PathNotFound.new(message, request.error_context))
117
+ end
118
+
119
+ when Google::Rpc::Code::ALREADY_EXISTS
120
+ case detail_block[:resource_info].resource_type
121
+ when "document"
122
+ RequestBehaviour.fail(Couchbase::Error::DocumentExists.new(message, request.error_context))
123
+ when "queryindex", "searchindex"
124
+ RequestBehaviour.fail(Couchbase::Error::IndexExists.new(message, request.error_context))
125
+ when "bucket"
126
+ RequestBehaviour.fail(Couchbase::Error::BucketExists.new(message, request.error_context))
127
+ when "scope"
128
+ RequestBehaviour.fail(Couchbase::Error::ScopeExists.new(message, request.error_context))
129
+ when "collection"
130
+ RequestBehaviour.fail(Couchbase::Error::CollectionExists.new(message, request.error_context))
131
+ when "path"
132
+ RequestBehaviour.fail(Couchbase::Error::PathExists.new(message, request.error_context))
133
+ end
134
+
135
+ when Google::Rpc::Code::INVALID_ARGUMENT
136
+ RequestBehaviour.fail(Couchbase::Error::InvalidArgument.new(message, request.error_context))
137
+
138
+ when Google::Rpc::Code::ABORTED
139
+ case detail_block[:error_info].reason
140
+ when "CAS_MISMATCH"
141
+ RequestBehaviour.fail(Couchbase::Error::CasMismatch.new(message, request.error_context))
142
+ end
143
+
144
+ when Google::Rpc::Code::FAILED_PRECONDITION
145
+ case detail_block[:precondition_failure].violations[0].type
146
+ when "LOCKED"
147
+ Retry::Orchestrator.maybe_retry(request, Retry::Reason::KV_LOCKED,
148
+ Couchbase::Error::DocumentLocked.new(message, request.error_context))
149
+ when "DOC_TOO_DEEP"
150
+ RequestBehaviour.fail(Couchbase::Error::PathTooDeep.new(message, request.error_context))
151
+ when "DOC_NOT_JSON"
152
+ RequestBehaviour.fail(Couchbase::Error::DocumentNotJson.new(message, request.error_context))
153
+ when "PATH_MISMATCH"
154
+ RequestBehaviour.fail(Couchbase::Error::PathMismatch.new(message, request.error_context))
155
+ when "WOULD_INVALIDATE_JSON"
156
+ RequestBehaviour.fail(Couchbase::Error::ValueInvalid.new(message, request.error_context))
157
+ when "PATH_VALUE_OUT_OF_RANGE"
158
+ RequestBehaviour.fail(Couchbase::Error::NumberTooBig.new(message, request.error_context))
159
+ when "VALUE_TOO_LARGE"
160
+ RequestBehaviour.fail(Couchbase::Error::ValueTooLarge.new(message, request.error_context))
161
+ end
162
+
163
+ when Google::Rpc::Code::UNIMPLEMENTED
164
+ RequestBehaviour.fail(Couchbase::Error::FeatureNotAvailable.new(message, request.error_context))
165
+
166
+ when Google::Rpc::Code::UNAUTHENTICATED
167
+ RequestBehaviour.fail(Couchbase::Error::AuthenticationFailure.new(message, request.error_context))
168
+
169
+ when Google::Rpc::Code::PERMISSION_DENIED
170
+ if detail_block[:resource_info].resource_type == "user"
171
+ RequestBehaviour.fail(Couchbase::Error::AuthenticationFailure.new(message, request.error_context))
172
+ else
173
+ RequestBehaviour.fail(Couchbase::Error::PermissionDenied.new(message, request.error_context))
174
+ end
175
+
176
+ when Google::Rpc::Code::CANCELLED
177
+ RequestBehaviour.fail(Couchbase::Error::RequestCanceled.new(message, request.error_context))
178
+
179
+ when Google::Rpc::Code::DEADLINE_EXCEEDED
180
+ if request.idempotent
181
+ RequestBehaviour.fail(Couchbase::Error::UnambiguousTimeout.new(message, request.error_context))
182
+ else
183
+ RequestBehaviour.fail(Couchbase::Error::AmbiguousTimeout.new(message, request.error_context))
184
+ end
185
+
186
+ when Google::Rpc::Code::INTERNAL
187
+ RequestBehaviour.fail(Couchbase::Error::InternalServerFailure.new(message, request.error_context))
188
+
189
+ when Google::Rpc::Code::UNAVAILABLE
190
+ Retry::Orchestrator.maybe_retry(request, Retry::Reason::SOCKET_NOT_AVAILABLE)
191
+
192
+ when Google::Rpc::Code::OK
193
+ RequestBehaviour.success
194
+ end
195
+
196
+ if behaviour.nil?
197
+ RequestBehaviour.fail(Couchbase::Error::CouchbaseError.new(message, request.error_context))
198
+ else
199
+ behaviour
200
+ end
201
+ end
202
+ end
203
+ end
204
+ end
@@ -0,0 +1,54 @@
1
+ # frozen_string_literal: true
2
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
3
+ # source: couchbase/admin/analytics/v1/analytics.proto
4
+
5
+ require 'google/protobuf'
6
+
7
+ require 'google/protobuf/timestamp_pb'
8
+
9
+
10
+ descriptor_data = "\n,couchbase/admin/analytics/v1/analytics.proto\x12\x1c\x63ouchbase.admin.analytics.v1\x1a\x1fgoogle/protobuf/timestamp.proto\"\x96\x0b\n\x11\x43reateLinkRequest\x12\x1c\n\x14\x61nalytics_scope_name\x18\x01 \x01(\t\x12\x11\n\tlink_name\x18\x02 \x01(\t\x12W\n\x0e\x63ouchbase_link\x18\x03 \x01(\x0b\x32=.couchbase.admin.analytics.v1.CreateLinkRequest.CouchbaseLinkH\x00\x12I\n\x07s3_link\x18\x04 \x01(\x0b\x32\x36.couchbase.admin.analytics.v1.CreateLinkRequest.S3LinkH\x00\x12W\n\x0e\x61zureblob_link\x18\x05 \x01(\x0b\x32=.couchbase.admin.analytics.v1.CreateLinkRequest.AzureBlobLinkH\x00\x12K\n\x08gcs_link\x18\x06 \x01(\x0b\x32\x37.couchbase.admin.analytics.v1.CreateLinkRequest.GcsLinkH\x00\x1a\xc3\x02\n\rCouchbaseLink\x12\x10\n\x08hostname\x18\x01 \x01(\t\x12N\n\x0f\x65ncryption_mode\x18\x02 \x01(\x0e\x32\x35.couchbase.admin.analytics.v1.CouchbaseEncryptionMode\x12\x15\n\x08username\x18\x03 \x01(\tH\x00\x88\x01\x01\x12\x15\n\x08password\x18\x04 \x01(\tH\x01\x88\x01\x01\x12\x18\n\x0b\x63\x65rtificate\x18\x05 \x01(\tH\x02\x88\x01\x01\x12\x1f\n\x12\x63lient_certificate\x18\x06 \x01(\tH\x03\x88\x01\x01\x12\x17\n\nclient_key\x18\x07 \x01(\tH\x04\x88\x01\x01\x42\x0b\n\t_usernameB\x0b\n\t_passwordB\x0e\n\x0c_certificateB\x15\n\x13_client_certificateB\r\n\x0b_client_key\x1a\xac\x01\n\x06S3Link\x12\x15\n\raccess_key_id\x18\x01 \x01(\t\x12\x19\n\x11secret_access_key\x18\x02 \x01(\t\x12\x1a\n\rsession_token\x18\x03 \x01(\tH\x00\x88\x01\x01\x12\x0e\n\x06region\x18\x04 \x01(\t\x12\x1d\n\x10service_endpoint\x18\x05 \x01(\tH\x01\x88\x01\x01\x42\x10\n\x0e_session_tokenB\x13\n\x11_service_endpoint\x1a\xc9\x03\n\rAzureBlobLink\x12\x19\n\x0c\x61\x63\x63ount_name\x18\x01 \x01(\tH\x00\x88\x01\x01\x12\x18\n\x0b\x61\x63\x63ount_key\x18\x02 \x01(\tH\x01\x88\x01\x01\x12$\n\x17shared_access_signature\x18\x03 \x01(\tH\x02\x88\x01\x01\x12 \n\x13managed_identity_id\x18\x04 \x01(\tH\x03\x88\x01\x01\x12\x16\n\tclient_id\x18\x05 \x01(\tH\x04\x88\x01\x01\x12\x16\n\ttenant_id\x18\x06 \x01(\tH\x05\x88\x01\x01\x12\x1a\n\rclient_secret\x18\x07 \x01(\tH\x06\x88\x01\x01\x12(\n\x1b\x63lient_certificate_password\x18\x08 \x01(\tH\x07\x88\x01\x01\x12\x15\n\x08\x65ndpoint\x18\t \x01(\tH\x08\x88\x01\x01\x42\x0f\n\r_account_nameB\x0e\n\x0c_account_keyB\x1a\n\x18_shared_access_signatureB\x16\n\x14_managed_identity_idB\x0c\n\n_client_idB\x0c\n\n_tenant_idB\x10\n\x0e_client_secretB\x1e\n\x1c_client_certificate_passwordB\x0b\n\t_endpoint\x1a=\n\x07GcsLink\x12\x1d\n\x10json_credentials\x18\x01 \x01(\tH\x00\x88\x01\x01\x42\x13\n\x11_json_credentialsB\x06\n\x04link\"\x14\n\x12\x43reateLinkResponse\"A\n\x0eGetLinkRequest\x12\x1c\n\x14\x61nalytics_scope_name\x18\x01 \x01(\t\x12\x11\n\tlink_name\x18\x02 \x01(\t\"\xe9\x07\n\x0fGetLinkResponse\x12U\n\x0e\x63ouchbase_link\x18\x01 \x01(\x0b\x32;.couchbase.admin.analytics.v1.GetLinkResponse.CouchbaseLinkH\x00\x12G\n\x07s3_link\x18\x02 \x01(\x0b\x32\x34.couchbase.admin.analytics.v1.GetLinkResponse.S3LinkH\x00\x12U\n\x0e\x61zureblob_link\x18\x03 \x01(\x0b\x32;.couchbase.admin.analytics.v1.GetLinkResponse.AzureBlobLinkH\x00\x12I\n\x08gcs_link\x18\x04 \x01(\x0b\x32\x35.couchbase.admin.analytics.v1.GetLinkResponse.GcsLinkH\x00\x1a\x86\x02\n\rCouchbaseLink\x12\x0c\n\x04uuid\x18\x01 \x01(\t\x12\x17\n\x0f\x61\x63tive_hostname\x18\x02 \x01(\t\x12\x1a\n\x12\x62ootstrap_hostname\x18\x03 \x01(\t\x12&\n\x1eis_bootstrap_alternate_address\x18\x04 \x01(\x08\x12\x18\n\x0b\x63\x65rtificate\x18\x05 \x01(\tH\x00\x88\x01\x01\x12N\n\x0f\x65ncryption_mode\x18\x06 \x01(\x0e\x32\x35.couchbase.admin.analytics.v1.CouchbaseEncryptionMode\x12\x10\n\x08username\x18\x07 \x01(\tB\x0e\n\x0c_certificate\x1a\x63\n\x06S3Link\x12\x15\n\raccess_key_id\x18\x01 \x01(\t\x12\x0e\n\x06region\x18\x02 \x01(\t\x12\x1d\n\x10service_endpoint\x18\x03 \x01(\tH\x00\x88\x01\x01\x42\x13\n\x11_service_endpoint\x1a\xd3\x01\n\rAzureBlobLink\x12\x19\n\x0c\x61\x63\x63ount_name\x18\x01 \x01(\tH\x00\x88\x01\x01\x12\x16\n\tclient_id\x18\x02 \x01(\tH\x01\x88\x01\x01\x12\x10\n\x08\x65ndpoint\x18\x03 \x01(\t\x12 \n\x13managed_identity_id\x18\x04 \x01(\tH\x02\x88\x01\x01\x12\x16\n\ttenant_id\x18\x05 \x01(\tH\x03\x88\x01\x01\x42\x0f\n\r_account_nameB\x0c\n\n_client_idB\x16\n\x14_managed_identity_idB\x0c\n\n_tenant_id\x1aH\n\x07GcsLink\x12+\n#use_application_default_credentials\x18\x01 \x01(\x08\x12\x10\n\x08\x65ndpoint\x18\x02 \x01(\tB\x06\n\x04link\"\x96\x0b\n\x11UpdateLinkRequest\x12\x1c\n\x14\x61nalytics_scope_name\x18\x01 \x01(\t\x12\x11\n\tlink_name\x18\x02 \x01(\t\x12W\n\x0e\x63ouchbase_link\x18\x03 \x01(\x0b\x32=.couchbase.admin.analytics.v1.UpdateLinkRequest.CouchbaseLinkH\x00\x12I\n\x07s3_link\x18\x04 \x01(\x0b\x32\x36.couchbase.admin.analytics.v1.UpdateLinkRequest.S3LinkH\x00\x12W\n\x0e\x61zureblob_link\x18\x05 \x01(\x0b\x32=.couchbase.admin.analytics.v1.UpdateLinkRequest.AzureBlobLinkH\x00\x12K\n\x08gcs_link\x18\x06 \x01(\x0b\x32\x37.couchbase.admin.analytics.v1.UpdateLinkRequest.GcsLinkH\x00\x1a\xc3\x02\n\rCouchbaseLink\x12\x10\n\x08hostname\x18\x01 \x01(\t\x12N\n\x0f\x65ncryption_mode\x18\x02 \x01(\x0e\x32\x35.couchbase.admin.analytics.v1.CouchbaseEncryptionMode\x12\x15\n\x08username\x18\x03 \x01(\tH\x00\x88\x01\x01\x12\x15\n\x08password\x18\x04 \x01(\tH\x01\x88\x01\x01\x12\x18\n\x0b\x63\x65rtificate\x18\x05 \x01(\tH\x02\x88\x01\x01\x12\x1f\n\x12\x63lient_certificate\x18\x06 \x01(\tH\x03\x88\x01\x01\x12\x17\n\nclient_key\x18\x07 \x01(\tH\x04\x88\x01\x01\x42\x0b\n\t_usernameB\x0b\n\t_passwordB\x0e\n\x0c_certificateB\x15\n\x13_client_certificateB\r\n\x0b_client_key\x1a\xac\x01\n\x06S3Link\x12\x15\n\raccess_key_id\x18\x01 \x01(\t\x12\x19\n\x11secret_access_key\x18\x02 \x01(\t\x12\x1a\n\rsession_token\x18\x03 \x01(\tH\x00\x88\x01\x01\x12\x0e\n\x06region\x18\x04 \x01(\t\x12\x1d\n\x10service_endpoint\x18\x05 \x01(\tH\x01\x88\x01\x01\x42\x10\n\x0e_session_tokenB\x13\n\x11_service_endpoint\x1a\xc9\x03\n\rAzureBlobLink\x12\x19\n\x0c\x61\x63\x63ount_name\x18\x01 \x01(\tH\x00\x88\x01\x01\x12\x18\n\x0b\x61\x63\x63ount_key\x18\x02 \x01(\tH\x01\x88\x01\x01\x12$\n\x17shared_access_signature\x18\x03 \x01(\tH\x02\x88\x01\x01\x12 \n\x13managed_identity_id\x18\x04 \x01(\tH\x03\x88\x01\x01\x12\x16\n\tclient_id\x18\x05 \x01(\tH\x04\x88\x01\x01\x12\x16\n\ttenant_id\x18\x06 \x01(\tH\x05\x88\x01\x01\x12\x1a\n\rclient_secret\x18\x07 \x01(\tH\x06\x88\x01\x01\x12(\n\x1b\x63lient_certificate_password\x18\x08 \x01(\tH\x07\x88\x01\x01\x12\x15\n\x08\x65ndpoint\x18\t \x01(\tH\x08\x88\x01\x01\x42\x0f\n\r_account_nameB\x0e\n\x0c_account_keyB\x1a\n\x18_shared_access_signatureB\x16\n\x14_managed_identity_idB\x0c\n\n_client_idB\x0c\n\n_tenant_idB\x10\n\x0e_client_secretB\x1e\n\x1c_client_certificate_passwordB\x0b\n\t_endpoint\x1a=\n\x07GcsLink\x12\x1d\n\x10json_credentials\x18\x01 \x01(\tH\x00\x88\x01\x01\x42\x13\n\x11_json_credentialsB\x06\n\x04link\"\x14\n\x12UpdateLinkResponse\"D\n\x11\x44\x65leteLinkRequest\x12\x1c\n\x14\x61nalytics_scope_name\x18\x01 \x01(\t\x12\x11\n\tlink_name\x18\x02 \x01(\t\"\x14\n\x12\x44\x65leteLinkResponse\"\x1b\n\x19GetIngestionStatusRequest\"\x95\x06\n\x1aGetIngestionStatusResponse\x12L\n\x05links\x18\x01 \x03(\x0b\x32=.couchbase.admin.analytics.v1.GetIngestionStatusResponse.Link\x1a\xa8\x05\n\x04Link\x12\x11\n\tlink_name\x18\x01 \x01(\t\x12\x1c\n\x14\x61nalytics_scope_name\x18\x02 \x01(\t\x12\x38\n\x06status\x18\x03 \x01(\x0e\x32(.couchbase.admin.analytics.v1.LinkStatus\x12S\n\x06states\x18\x04 \x03(\x0b\x32\x43.couchbase.admin.analytics.v1.GetIngestionStatusResponse.Link.State\x1a\xdf\x03\n\x05State\x12-\n\ttimestamp\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x10\n\x08progress\x18\x02 \x01(\x01\x12\x18\n\x0btime_lag_ms\x18\x03 \x01(\x03H\x00\x88\x01\x01\x12\x1c\n\x0fitems_processed\x18\x04 \x01(\x03H\x01\x88\x01\x01\x12\x1b\n\x0eseqno_advances\x18\x05 \x01(\x03H\x02\x88\x01\x01\x12Y\n\x06scopes\x18\x06 \x03(\x0b\x32I.couchbase.admin.analytics.v1.GetIngestionStatusResponse.Link.State.Scope\x1a\xad\x01\n\x05Scope\x12\x12\n\nscope_name\x18\x01 \x01(\t\x12i\n\x0b\x63ollections\x18\x02 \x03(\x0b\x32T.couchbase.admin.analytics.v1.GetIngestionStatusResponse.Link.State.Scope.Collection\x1a%\n\nCollection\x12\x17\n\x0f\x63ollection_name\x18\x01 \x01(\tB\x0e\n\x0c_time_lag_msB\x12\n\x10_items_processedB\x11\n\x0f_seqno_advances*\x8d\x01\n\nLinkStatus\x12\x17\n\x13LINK_STATUS_UNKNOWN\x10\x00\x12\x17\n\x13LINK_STATUS_HEALTHY\x10\x01\x12\x17\n\x13LINK_STATUS_STOPPED\x10\x02\x12\x19\n\x15LINK_STATUS_UNHEALTHY\x10\x03\x12\x19\n\x15LINK_STATUS_SUSPENDED\x10\x04*\x85\x01\n\x17\x43ouchbaseEncryptionMode\x12\"\n\x1e\x43OUCHBASE_ENCRYPTION_MODE_NONE\x10\x00\x12\"\n\x1e\x43OUCHBASE_ENCRYPTION_MODE_HALF\x10\x01\x12\"\n\x1e\x43OUCHBASE_ENCRYPTION_MODE_FULL\x10\x02\x32\xe6\x04\n\x15\x41nalyticsAdminService\x12q\n\nCreateLink\x12/.couchbase.admin.analytics.v1.CreateLinkRequest\x1a\x30.couchbase.admin.analytics.v1.CreateLinkResponse\"\x00\x12h\n\x07GetLink\x12,.couchbase.admin.analytics.v1.GetLinkRequest\x1a-.couchbase.admin.analytics.v1.GetLinkResponse\"\x00\x12q\n\nUpdateLink\x12/.couchbase.admin.analytics.v1.UpdateLinkRequest\x1a\x30.couchbase.admin.analytics.v1.UpdateLinkResponse\"\x00\x12q\n\nDeleteLink\x12/.couchbase.admin.analytics.v1.DeleteLinkRequest\x1a\x30.couchbase.admin.analytics.v1.DeleteLinkResponse\"\x00\x12\x89\x01\n\x12GetIngestionStatus\x12\x37.couchbase.admin.analytics.v1.GetIngestionStatusRequest\x1a\x38.couchbase.admin.analytics.v1.GetIngestionStatusResponse\"\x00\x42\xa9\x02\n4com.couchbase.client.protostellar.admin.analytics.v1P\x01ZRgithub.com/couchbase/goprotostellar/genproto/admin_analytics_v1;admin_analytics_v1\xaa\x02)Couchbase.Protostellar.Admin.Analytics.V1\xca\x02\x33\x43ouchbase\\Protostellar\\Generated\\Admin\\Analytics\\V1\xea\x02\x38\x43ouchbase::Protostellar::Generated::Admin::Analytics::V1b\x06proto3"
11
+
12
+ pool = ::Google::Protobuf::DescriptorPool.generated_pool
13
+ pool.add_serialized_file(descriptor_data)
14
+
15
+ module Couchbase
16
+ module Protostellar
17
+ module Generated
18
+ module Admin
19
+ module Analytics
20
+ module V1
21
+ CreateLinkRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("couchbase.admin.analytics.v1.CreateLinkRequest").msgclass
22
+ CreateLinkRequest::CouchbaseLink = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("couchbase.admin.analytics.v1.CreateLinkRequest.CouchbaseLink").msgclass
23
+ CreateLinkRequest::S3Link = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("couchbase.admin.analytics.v1.CreateLinkRequest.S3Link").msgclass
24
+ CreateLinkRequest::AzureBlobLink = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("couchbase.admin.analytics.v1.CreateLinkRequest.AzureBlobLink").msgclass
25
+ CreateLinkRequest::GcsLink = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("couchbase.admin.analytics.v1.CreateLinkRequest.GcsLink").msgclass
26
+ CreateLinkResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("couchbase.admin.analytics.v1.CreateLinkResponse").msgclass
27
+ GetLinkRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("couchbase.admin.analytics.v1.GetLinkRequest").msgclass
28
+ GetLinkResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("couchbase.admin.analytics.v1.GetLinkResponse").msgclass
29
+ GetLinkResponse::CouchbaseLink = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("couchbase.admin.analytics.v1.GetLinkResponse.CouchbaseLink").msgclass
30
+ GetLinkResponse::S3Link = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("couchbase.admin.analytics.v1.GetLinkResponse.S3Link").msgclass
31
+ GetLinkResponse::AzureBlobLink = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("couchbase.admin.analytics.v1.GetLinkResponse.AzureBlobLink").msgclass
32
+ GetLinkResponse::GcsLink = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("couchbase.admin.analytics.v1.GetLinkResponse.GcsLink").msgclass
33
+ UpdateLinkRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("couchbase.admin.analytics.v1.UpdateLinkRequest").msgclass
34
+ UpdateLinkRequest::CouchbaseLink = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("couchbase.admin.analytics.v1.UpdateLinkRequest.CouchbaseLink").msgclass
35
+ UpdateLinkRequest::S3Link = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("couchbase.admin.analytics.v1.UpdateLinkRequest.S3Link").msgclass
36
+ UpdateLinkRequest::AzureBlobLink = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("couchbase.admin.analytics.v1.UpdateLinkRequest.AzureBlobLink").msgclass
37
+ UpdateLinkRequest::GcsLink = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("couchbase.admin.analytics.v1.UpdateLinkRequest.GcsLink").msgclass
38
+ UpdateLinkResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("couchbase.admin.analytics.v1.UpdateLinkResponse").msgclass
39
+ DeleteLinkRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("couchbase.admin.analytics.v1.DeleteLinkRequest").msgclass
40
+ DeleteLinkResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("couchbase.admin.analytics.v1.DeleteLinkResponse").msgclass
41
+ GetIngestionStatusRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("couchbase.admin.analytics.v1.GetIngestionStatusRequest").msgclass
42
+ GetIngestionStatusResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("couchbase.admin.analytics.v1.GetIngestionStatusResponse").msgclass
43
+ GetIngestionStatusResponse::Link = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("couchbase.admin.analytics.v1.GetIngestionStatusResponse.Link").msgclass
44
+ GetIngestionStatusResponse::Link::State = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("couchbase.admin.analytics.v1.GetIngestionStatusResponse.Link.State").msgclass
45
+ GetIngestionStatusResponse::Link::State::Scope = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("couchbase.admin.analytics.v1.GetIngestionStatusResponse.Link.State.Scope").msgclass
46
+ GetIngestionStatusResponse::Link::State::Scope::Collection = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("couchbase.admin.analytics.v1.GetIngestionStatusResponse.Link.State.Scope.Collection").msgclass
47
+ LinkStatus = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("couchbase.admin.analytics.v1.LinkStatus").enummodule
48
+ CouchbaseEncryptionMode = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("couchbase.admin.analytics.v1.CouchbaseEncryptionMode").enummodule
49
+ end
50
+ end
51
+ end
52
+ end
53
+ end
54
+ end
@@ -0,0 +1,51 @@
1
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
2
+ # Source: couchbase/admin/analytics/v1/analytics.proto for package 'Couchbase.Protostellar.Generated.Admin.Analytics.V1'
3
+ # Original file comments:
4
+ # Analytics Admin Service
5
+ #
6
+ # Provides analytics link lifecycle management and ingestion status
7
+ # monitoring. Analytics links connect the analytics service to external
8
+ # data sources (remote Couchbase clusters, S3, Azure Blob, GCS).
9
+
10
+ require 'grpc'
11
+ require 'couchbase/protostellar/generated/admin/analytics/v1/analytics_pb'
12
+
13
+ module Couchbase
14
+ module Protostellar
15
+ module Generated
16
+ module Admin
17
+ module Analytics
18
+ module V1
19
+ module AnalyticsAdminService
20
+ # AnalyticsAdminService provides CRUD for analytics links and
21
+ # ingestion status monitoring.
22
+ class Service
23
+
24
+ include ::GRPC::GenericService
25
+
26
+ self.marshal_class_method = :encode
27
+ self.unmarshal_class_method = :decode
28
+ self.service_name = 'couchbase.admin.analytics.v1.AnalyticsAdminService'
29
+
30
+ # CreateLink creates a new analytics link.
31
+ rpc :CreateLink, ::Couchbase::Protostellar::Generated::Admin::Analytics::V1::CreateLinkRequest, ::Couchbase::Protostellar::Generated::Admin::Analytics::V1::CreateLinkResponse
32
+ # GetLink retrieves an analytics link's configuration.
33
+ # Sensitive fields (passwords, secret keys) are omitted from the response.
34
+ rpc :GetLink, ::Couchbase::Protostellar::Generated::Admin::Analytics::V1::GetLinkRequest, ::Couchbase::Protostellar::Generated::Admin::Analytics::V1::GetLinkResponse
35
+ # UpdateLink updates an existing analytics link's configuration.
36
+ rpc :UpdateLink, ::Couchbase::Protostellar::Generated::Admin::Analytics::V1::UpdateLinkRequest, ::Couchbase::Protostellar::Generated::Admin::Analytics::V1::UpdateLinkResponse
37
+ # DeleteLink removes an analytics link.
38
+ rpc :DeleteLink, ::Couchbase::Protostellar::Generated::Admin::Analytics::V1::DeleteLinkRequest, ::Couchbase::Protostellar::Generated::Admin::Analytics::V1::DeleteLinkResponse
39
+ # GetIngestionStatus returns the current ingestion status for all links,
40
+ # including progress, time lag, and scope/collection details.
41
+ rpc :GetIngestionStatus, ::Couchbase::Protostellar::Generated::Admin::Analytics::V1::GetIngestionStatusRequest, ::Couchbase::Protostellar::Generated::Admin::Analytics::V1::GetIngestionStatusResponse
42
+ end
43
+
44
+ Stub = Service.rpc_stub_class
45
+ end
46
+ end
47
+ end
48
+ end
49
+ end
50
+ end
51
+ end
@@ -0,0 +1,42 @@
1
+ # frozen_string_literal: true
2
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
3
+ # source: couchbase/admin/bucket/v1/bucket.proto
4
+
5
+ require 'google/protobuf'
6
+
7
+ require 'couchbase/protostellar/generated/kv/v1/kv_pb'
8
+
9
+
10
+ descriptor_data = "\n&couchbase/admin/bucket/v1/bucket.proto\x12\x19\x63ouchbase.admin.bucket.v1\x1a\x18\x63ouchbase/kv/v1/kv.proto\"\x14\n\x12ListBucketsRequest\"\xbc\x07\n\x13ListBucketsResponse\x12\x46\n\x07\x62uckets\x18\x01 \x03(\x0b\x32\x35.couchbase.admin.bucket.v1.ListBucketsResponse.Bucket\x1a\xdc\x06\n\x06\x42ucket\x12\x13\n\x0b\x62ucket_name\x18\x01 \x01(\t\x12\x15\n\rflush_enabled\x18\x02 \x01(\x08\x12\x14\n\x0cram_quota_mb\x18\x03 \x01(\x04\x12\x14\n\x0cnum_replicas\x18\x04 \x01(\r\x12\x17\n\x0freplica_indexes\x18\x05 \x01(\x08\x12:\n\x0b\x62ucket_type\x18\x06 \x01(\x0e\x32%.couchbase.admin.bucket.v1.BucketType\x12>\n\reviction_mode\x18\x07 \x01(\x0e\x32\'.couchbase.admin.bucket.v1.EvictionMode\x12\x17\n\x0fmax_expiry_secs\x18\x08 \x01(\r\x12\x44\n\x10\x63ompression_mode\x18\t \x01(\x0e\x32*.couchbase.admin.bucket.v1.CompressionMode\x12G\n\x18minimum_durability_level\x18\n \x01(\x0e\x32 .couchbase.kv.v1.DurabilityLevelH\x00\x88\x01\x01\x12G\n\x0fstorage_backend\x18\x0b \x01(\x0e\x32).couchbase.admin.bucket.v1.StorageBackendH\x01\x88\x01\x01\x12S\n\x18\x63onflict_resolution_type\x18\x0c \x01(\x0e\x32\x31.couchbase.admin.bucket.v1.ConflictResolutionType\x12\x31\n$history_retention_collection_default\x18\r \x01(\x08H\x02\x88\x01\x01\x12$\n\x17history_retention_bytes\x18\x0e \x01(\x04H\x03\x88\x01\x01\x12,\n\x1fhistory_retention_duration_secs\x18\x0f \x01(\rH\x04\x88\x01\x01\x42\x1b\n\x19_minimum_durability_levelB\x12\n\x10_storage_backendB\'\n%_history_retention_collection_defaultB\x1a\n\x18_history_retention_bytesB\"\n _history_retention_duration_secs\"\xb1\x08\n\x13\x43reateBucketRequest\x12\x13\n\x0b\x62ucket_name\x18\x01 \x01(\t\x12:\n\x0b\x62ucket_type\x18\x02 \x01(\x0e\x32%.couchbase.admin.bucket.v1.BucketType\x12\x19\n\x0cram_quota_mb\x18\x03 \x01(\x04H\x00\x88\x01\x01\x12\x19\n\x0cnum_replicas\x18\x04 \x01(\rH\x01\x88\x01\x01\x12\x1a\n\rflush_enabled\x18\x05 \x01(\x08H\x02\x88\x01\x01\x12\x1c\n\x0freplica_indexes\x18\x06 \x01(\x08H\x03\x88\x01\x01\x12\x43\n\reviction_mode\x18\x07 \x01(\x0e\x32\'.couchbase.admin.bucket.v1.EvictionModeH\x04\x88\x01\x01\x12\x1c\n\x0fmax_expiry_secs\x18\x08 \x01(\rH\x05\x88\x01\x01\x12I\n\x10\x63ompression_mode\x18\t \x01(\x0e\x32*.couchbase.admin.bucket.v1.CompressionModeH\x06\x88\x01\x01\x12G\n\x18minimum_durability_level\x18\n \x01(\x0e\x32 .couchbase.kv.v1.DurabilityLevelH\x07\x88\x01\x01\x12G\n\x0fstorage_backend\x18\x0b \x01(\x0e\x32).couchbase.admin.bucket.v1.StorageBackendH\x08\x88\x01\x01\x12X\n\x18\x63onflict_resolution_type\x18\x0c \x01(\x0e\x32\x31.couchbase.admin.bucket.v1.ConflictResolutionTypeH\t\x88\x01\x01\x12\x31\n$history_retention_collection_default\x18\r \x01(\x08H\n\x88\x01\x01\x12$\n\x17history_retention_bytes\x18\x0e \x01(\x04H\x0b\x88\x01\x01\x12,\n\x1fhistory_retention_duration_secs\x18\x0f \x01(\rH\x0c\x88\x01\x01\x42\x0f\n\r_ram_quota_mbB\x0f\n\r_num_replicasB\x10\n\x0e_flush_enabledB\x12\n\x10_replica_indexesB\x10\n\x0e_eviction_modeB\x12\n\x10_max_expiry_secsB\x13\n\x11_compression_modeB\x1b\n\x19_minimum_durability_levelB\x12\n\x10_storage_backendB\x1b\n\x19_conflict_resolution_typeB\'\n%_history_retention_collection_defaultB\x1a\n\x18_history_retention_bytesB\"\n _history_retention_duration_secs\"+\n\x14\x43reateBucketResponse\x12\x13\n\x0b\x62ucket_uuid\x18\x01 \x01(\t\"\xef\x05\n\x13UpdateBucketRequest\x12\x13\n\x0b\x62ucket_name\x18\x01 \x01(\t\x12\x19\n\x0cram_quota_mb\x18\x02 \x01(\x04H\x00\x88\x01\x01\x12\x19\n\x0cnum_replicas\x18\x03 \x01(\rH\x01\x88\x01\x01\x12\x1a\n\rflush_enabled\x18\x04 \x01(\x08H\x02\x88\x01\x01\x12\x43\n\reviction_mode\x18\x05 \x01(\x0e\x32\'.couchbase.admin.bucket.v1.EvictionModeH\x03\x88\x01\x01\x12\x1c\n\x0fmax_expiry_secs\x18\x06 \x01(\rH\x04\x88\x01\x01\x12I\n\x10\x63ompression_mode\x18\x07 \x01(\x0e\x32*.couchbase.admin.bucket.v1.CompressionModeH\x05\x88\x01\x01\x12G\n\x18minimum_durability_level\x18\x08 \x01(\x0e\x32 .couchbase.kv.v1.DurabilityLevelH\x06\x88\x01\x01\x12\x31\n$history_retention_collection_default\x18\n \x01(\x08H\x07\x88\x01\x01\x12$\n\x17history_retention_bytes\x18\x0b \x01(\x04H\x08\x88\x01\x01\x12,\n\x1fhistory_retention_duration_secs\x18\x0c \x01(\rH\t\x88\x01\x01\x42\x0f\n\r_ram_quota_mbB\x0f\n\r_num_replicasB\x10\n\x0e_flush_enabledB\x10\n\x0e_eviction_modeB\x12\n\x10_max_expiry_secsB\x13\n\x11_compression_modeB\x1b\n\x19_minimum_durability_levelB\'\n%_history_retention_collection_defaultB\x1a\n\x18_history_retention_bytesB\"\n _history_retention_duration_secs\"\x16\n\x14UpdateBucketResponse\"*\n\x13\x44\x65leteBucketRequest\x12\x13\n\x0b\x62ucket_name\x18\x01 \x01(\t\"\x16\n\x14\x44\x65leteBucketResponse\")\n\x12\x46lushBucketRequest\x12\x13\n\x0b\x62ucket_name\x18\x01 \x01(\t\"\x15\n\x13\x46lushBucketResponse*B\n\nBucketType\x12\x19\n\x15\x42UCKET_TYPE_COUCHBASE\x10\x00\x12\x19\n\x15\x42UCKET_TYPE_EPHEMERAL\x10\x01*\x81\x01\n\x0c\x45victionMode\x12\x16\n\x12\x45VICTION_MODE_FULL\x10\x00\x12#\n\x1f\x45VICTION_MODE_NOT_RECENTLY_USED\x10\x01\x12\x1c\n\x18\x45VICTION_MODE_VALUE_ONLY\x10\x02\x12\x16\n\x12\x45VICTION_MODE_NONE\x10\x03*f\n\x0f\x43ompressionMode\x12\x18\n\x14\x43OMPRESSION_MODE_OFF\x10\x00\x12\x1c\n\x18\x43OMPRESSION_MODE_PASSIVE\x10\x01\x12\x1b\n\x17\x43OMPRESSION_MODE_ACTIVE\x10\x02*K\n\x0eStorageBackend\x12\x1e\n\x1aSTORAGE_BACKEND_COUCHSTORE\x10\x00\x12\x19\n\x15STORAGE_BACKEND_MAGMA\x10\x01*\x93\x01\n\x16\x43onflictResolutionType\x12&\n\"CONFLICT_RESOLUTION_TYPE_TIMESTAMP\x10\x00\x12,\n(CONFLICT_RESOLUTION_TYPE_SEQUENCE_NUMBER\x10\x01\x12#\n\x1f\x43ONFLICT_RESOLUTION_TYPE_CUSTOM\x10\x02\x32\xcd\x04\n\x12\x42ucketAdminService\x12n\n\x0bListBuckets\x12-.couchbase.admin.bucket.v1.ListBucketsRequest\x1a..couchbase.admin.bucket.v1.ListBucketsResponse\"\x00\x12q\n\x0c\x43reateBucket\x12..couchbase.admin.bucket.v1.CreateBucketRequest\x1a/.couchbase.admin.bucket.v1.CreateBucketResponse\"\x00\x12q\n\x0cUpdateBucket\x12..couchbase.admin.bucket.v1.UpdateBucketRequest\x1a/.couchbase.admin.bucket.v1.UpdateBucketResponse\"\x00\x12q\n\x0c\x44\x65leteBucket\x12..couchbase.admin.bucket.v1.DeleteBucketRequest\x1a/.couchbase.admin.bucket.v1.DeleteBucketResponse\"\x00\x12n\n\x0b\x46lushBucket\x12-.couchbase.admin.bucket.v1.FlushBucketRequest\x1a..couchbase.admin.bucket.v1.FlushBucketResponse\"\x00\x42\x97\x02\n1com.couchbase.client.protostellar.admin.bucket.v1P\x01ZLgithub.com/couchbase/goprotostellar/genproto/admin_bucket_v1;admin_bucket_v1\xaa\x02&Couchbase.Protostellar.Admin.Bucket.V1\xca\x02\x30\x43ouchbase\\Protostellar\\Generated\\Admin\\Bucket\\V1\xea\x02\x35\x43ouchbase::Protostellar::Generated::Admin::Bucket::V1b\x06proto3"
11
+
12
+ pool = ::Google::Protobuf::DescriptorPool.generated_pool
13
+ pool.add_serialized_file(descriptor_data)
14
+
15
+ module Couchbase
16
+ module Protostellar
17
+ module Generated
18
+ module Admin
19
+ module Bucket
20
+ module V1
21
+ ListBucketsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("couchbase.admin.bucket.v1.ListBucketsRequest").msgclass
22
+ ListBucketsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("couchbase.admin.bucket.v1.ListBucketsResponse").msgclass
23
+ ListBucketsResponse::Bucket = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("couchbase.admin.bucket.v1.ListBucketsResponse.Bucket").msgclass
24
+ CreateBucketRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("couchbase.admin.bucket.v1.CreateBucketRequest").msgclass
25
+ CreateBucketResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("couchbase.admin.bucket.v1.CreateBucketResponse").msgclass
26
+ UpdateBucketRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("couchbase.admin.bucket.v1.UpdateBucketRequest").msgclass
27
+ UpdateBucketResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("couchbase.admin.bucket.v1.UpdateBucketResponse").msgclass
28
+ DeleteBucketRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("couchbase.admin.bucket.v1.DeleteBucketRequest").msgclass
29
+ DeleteBucketResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("couchbase.admin.bucket.v1.DeleteBucketResponse").msgclass
30
+ FlushBucketRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("couchbase.admin.bucket.v1.FlushBucketRequest").msgclass
31
+ FlushBucketResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("couchbase.admin.bucket.v1.FlushBucketResponse").msgclass
32
+ BucketType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("couchbase.admin.bucket.v1.BucketType").enummodule
33
+ EvictionMode = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("couchbase.admin.bucket.v1.EvictionMode").enummodule
34
+ CompressionMode = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("couchbase.admin.bucket.v1.CompressionMode").enummodule
35
+ StorageBackend = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("couchbase.admin.bucket.v1.StorageBackend").enummodule
36
+ ConflictResolutionType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("couchbase.admin.bucket.v1.ConflictResolutionType").enummodule
37
+ end
38
+ end
39
+ end
40
+ end
41
+ end
42
+ end
@@ -0,0 +1,51 @@
1
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
2
+ # Source: couchbase/admin/bucket/v1/bucket.proto for package 'Couchbase.Protostellar.Generated.Admin.Bucket.V1'
3
+ # Original file comments:
4
+ # Bucket Admin Service
5
+ #
6
+ # Provides bucket lifecycle management for a Couchbase cluster, including
7
+ # creating, updating, deleting, listing, and flushing buckets. Bucket
8
+ # configuration includes type, memory quota, replicas, eviction, compression,
9
+ # storage backend, conflict resolution, and history retention settings.
10
+
11
+ require 'grpc'
12
+ require 'couchbase/protostellar/generated/admin/bucket/v1/bucket_pb'
13
+
14
+ module Couchbase
15
+ module Protostellar
16
+ module Generated
17
+ module Admin
18
+ module Bucket
19
+ module V1
20
+ module BucketAdminService
21
+ # BucketAdminService provides CRUD operations for Couchbase buckets.
22
+ class Service
23
+
24
+ include ::GRPC::GenericService
25
+
26
+ self.marshal_class_method = :encode
27
+ self.unmarshal_class_method = :decode
28
+ self.service_name = 'couchbase.admin.bucket.v1.BucketAdminService'
29
+
30
+ # ListBuckets returns all buckets in the cluster with their configurations.
31
+ rpc :ListBuckets, ::Couchbase::Protostellar::Generated::Admin::Bucket::V1::ListBucketsRequest, ::Couchbase::Protostellar::Generated::Admin::Bucket::V1::ListBucketsResponse
32
+ # CreateBucket creates a new bucket with the specified configuration.
33
+ rpc :CreateBucket, ::Couchbase::Protostellar::Generated::Admin::Bucket::V1::CreateBucketRequest, ::Couchbase::Protostellar::Generated::Admin::Bucket::V1::CreateBucketResponse
34
+ # UpdateBucket modifies the configuration of an existing bucket.
35
+ # Only mutable properties can be changed (e.g., ram_quota, replicas).
36
+ rpc :UpdateBucket, ::Couchbase::Protostellar::Generated::Admin::Bucket::V1::UpdateBucketRequest, ::Couchbase::Protostellar::Generated::Admin::Bucket::V1::UpdateBucketResponse
37
+ # DeleteBucket permanently removes a bucket and all its data.
38
+ rpc :DeleteBucket, ::Couchbase::Protostellar::Generated::Admin::Bucket::V1::DeleteBucketRequest, ::Couchbase::Protostellar::Generated::Admin::Bucket::V1::DeleteBucketResponse
39
+ # FlushBucket removes all documents from a bucket while preserving its
40
+ # configuration. Requires flush_enabled to be true on the bucket.
41
+ rpc :FlushBucket, ::Couchbase::Protostellar::Generated::Admin::Bucket::V1::FlushBucketRequest, ::Couchbase::Protostellar::Generated::Admin::Bucket::V1::FlushBucketResponse
42
+ end
43
+
44
+ Stub = Service.rpc_stub_class
45
+ end
46
+ end
47
+ end
48
+ end
49
+ end
50
+ end
51
+ end
@@ -0,0 +1,38 @@
1
+ # frozen_string_literal: true
2
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
3
+ # source: couchbase/admin/collection/v1/collection.proto
4
+
5
+ require 'google/protobuf'
6
+
7
+
8
+ descriptor_data = "\n.couchbase/admin/collection/v1/collection.proto\x12\x1d\x63ouchbase.admin.collection.v1\"-\n\x16ListCollectionsRequest\x12\x13\n\x0b\x62ucket_name\x18\x01 \x01(\t\"\x81\x03\n\x17ListCollectionsResponse\x12L\n\x06scopes\x18\x01 \x03(\x0b\x32<.couchbase.admin.collection.v1.ListCollectionsResponse.Scope\x12\x14\n\x0cmanifest_uid\x18\x02 \x01(\x04\x1a\x92\x01\n\nCollection\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x1c\n\x0fmax_expiry_secs\x18\x02 \x01(\rH\x00\x88\x01\x01\x12&\n\x19history_retention_enabled\x18\x03 \x01(\x08H\x01\x88\x01\x01\x42\x12\n\x10_max_expiry_secsB\x1c\n\x1a_history_retention_enabled\x1am\n\x05Scope\x12\x0c\n\x04name\x18\x01 \x01(\t\x12V\n\x0b\x63ollections\x18\x02 \x03(\x0b\x32\x41.couchbase.admin.collection.v1.ListCollectionsResponse.Collection\"=\n\x12\x43reateScopeRequest\x12\x13\n\x0b\x62ucket_name\x18\x01 \x01(\t\x12\x12\n\nscope_name\x18\x02 \x01(\t\"+\n\x13\x43reateScopeResponse\x12\x14\n\x0cmanifest_uid\x18\x01 \x01(\x04\"=\n\x12\x44\x65leteScopeRequest\x12\x13\n\x0b\x62ucket_name\x18\x01 \x01(\t\x12\x12\n\nscope_name\x18\x02 \x01(\t\"+\n\x13\x44\x65leteScopeResponse\x12\x14\n\x0cmanifest_uid\x18\x01 \x01(\x04\"\xd3\x01\n\x17\x43reateCollectionRequest\x12\x13\n\x0b\x62ucket_name\x18\x01 \x01(\t\x12\x12\n\nscope_name\x18\x02 \x01(\t\x12\x17\n\x0f\x63ollection_name\x18\x03 \x01(\t\x12\x1c\n\x0fmax_expiry_secs\x18\x04 \x01(\rH\x00\x88\x01\x01\x12&\n\x19history_retention_enabled\x18\x05 \x01(\x08H\x01\x88\x01\x01\x42\x12\n\x10_max_expiry_secsB\x1c\n\x1a_history_retention_enabled\"0\n\x18\x43reateCollectionResponse\x12\x14\n\x0cmanifest_uid\x18\x01 \x01(\x04\"\xd3\x01\n\x17UpdateCollectionRequest\x12\x13\n\x0b\x62ucket_name\x18\x01 \x01(\t\x12\x12\n\nscope_name\x18\x02 \x01(\t\x12\x17\n\x0f\x63ollection_name\x18\x03 \x01(\t\x12\x1c\n\x0fmax_expiry_secs\x18\x04 \x01(\rH\x00\x88\x01\x01\x12&\n\x19history_retention_enabled\x18\x05 \x01(\x08H\x01\x88\x01\x01\x42\x12\n\x10_max_expiry_secsB\x1c\n\x1a_history_retention_enabled\"0\n\x18UpdateCollectionResponse\x12\x14\n\x0cmanifest_uid\x18\x01 \x01(\x04\"[\n\x17\x44\x65leteCollectionRequest\x12\x13\n\x0b\x62ucket_name\x18\x01 \x01(\t\x12\x12\n\nscope_name\x18\x02 \x01(\t\x12\x17\n\x0f\x63ollection_name\x18\x03 \x01(\t\"0\n\x18\x44\x65leteCollectionResponse\x12\x14\n\x0cmanifest_uid\x18\x01 \x01(\x04\x32\xa5\x06\n\x16\x43ollectionAdminService\x12\x82\x01\n\x0fListCollections\x12\x35.couchbase.admin.collection.v1.ListCollectionsRequest\x1a\x36.couchbase.admin.collection.v1.ListCollectionsResponse\"\x00\x12v\n\x0b\x43reateScope\x12\x31.couchbase.admin.collection.v1.CreateScopeRequest\x1a\x32.couchbase.admin.collection.v1.CreateScopeResponse\"\x00\x12v\n\x0b\x44\x65leteScope\x12\x31.couchbase.admin.collection.v1.DeleteScopeRequest\x1a\x32.couchbase.admin.collection.v1.DeleteScopeResponse\"\x00\x12\x85\x01\n\x10\x43reateCollection\x12\x36.couchbase.admin.collection.v1.CreateCollectionRequest\x1a\x37.couchbase.admin.collection.v1.CreateCollectionResponse\"\x00\x12\x85\x01\n\x10UpdateCollection\x12\x36.couchbase.admin.collection.v1.UpdateCollectionRequest\x1a\x37.couchbase.admin.collection.v1.UpdateCollectionResponse\"\x00\x12\x85\x01\n\x10\x44\x65leteCollection\x12\x36.couchbase.admin.collection.v1.DeleteCollectionRequest\x1a\x37.couchbase.admin.collection.v1.DeleteCollectionResponse\"\x00\x42\xaf\x02\n5com.couchbase.client.protostellar.admin.collection.v1P\x01ZTgithub.com/couchbase/goprotostellar/genproto/admin_collection_v1;admin_collection_v1\xaa\x02*Couchbase.Protostellar.Admin.Collection.V1\xca\x02\x34\x43ouchbase\\Protostellar\\Generated\\Admin\\Collection\\V1\xea\x02\x39\x43ouchbase::Protostellar::Generated::Admin::Collection::V1b\x06proto3"
9
+
10
+ pool = ::Google::Protobuf::DescriptorPool.generated_pool
11
+ pool.add_serialized_file(descriptor_data)
12
+
13
+ module Couchbase
14
+ module Protostellar
15
+ module Generated
16
+ module Admin
17
+ module Collection
18
+ module V1
19
+ ListCollectionsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("couchbase.admin.collection.v1.ListCollectionsRequest").msgclass
20
+ ListCollectionsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("couchbase.admin.collection.v1.ListCollectionsResponse").msgclass
21
+ ListCollectionsResponse::Collection = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("couchbase.admin.collection.v1.ListCollectionsResponse.Collection").msgclass
22
+ ListCollectionsResponse::Scope = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("couchbase.admin.collection.v1.ListCollectionsResponse.Scope").msgclass
23
+ CreateScopeRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("couchbase.admin.collection.v1.CreateScopeRequest").msgclass
24
+ CreateScopeResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("couchbase.admin.collection.v1.CreateScopeResponse").msgclass
25
+ DeleteScopeRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("couchbase.admin.collection.v1.DeleteScopeRequest").msgclass
26
+ DeleteScopeResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("couchbase.admin.collection.v1.DeleteScopeResponse").msgclass
27
+ CreateCollectionRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("couchbase.admin.collection.v1.CreateCollectionRequest").msgclass
28
+ CreateCollectionResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("couchbase.admin.collection.v1.CreateCollectionResponse").msgclass
29
+ UpdateCollectionRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("couchbase.admin.collection.v1.UpdateCollectionRequest").msgclass
30
+ UpdateCollectionResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("couchbase.admin.collection.v1.UpdateCollectionResponse").msgclass
31
+ DeleteCollectionRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("couchbase.admin.collection.v1.DeleteCollectionRequest").msgclass
32
+ DeleteCollectionResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("couchbase.admin.collection.v1.DeleteCollectionResponse").msgclass
33
+ end
34
+ end
35
+ end
36
+ end
37
+ end
38
+ end
@@ -0,0 +1,52 @@
1
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
2
+ # Source: couchbase/admin/collection/v1/collection.proto for package 'Couchbase.Protostellar.Generated.Admin.Collection.V1'
3
+ # Original file comments:
4
+ # Collection Admin Service
5
+ #
6
+ # Provides scope and collection lifecycle management within a Couchbase
7
+ # bucket. Scopes provide a logical grouping of collections (similar to
8
+ # schemas in SQL databases). Each mutation returns a manifest_uid that
9
+ # tracks the version of the scope/collection configuration.
10
+
11
+ require 'grpc'
12
+ require 'couchbase/protostellar/generated/admin/collection/v1/collection_pb'
13
+
14
+ module Couchbase
15
+ module Protostellar
16
+ module Generated
17
+ module Admin
18
+ module Collection
19
+ module V1
20
+ module CollectionAdminService
21
+ # CollectionAdminService provides CRUD for scopes and collections.
22
+ class Service
23
+
24
+ include ::GRPC::GenericService
25
+
26
+ self.marshal_class_method = :encode
27
+ self.unmarshal_class_method = :decode
28
+ self.service_name = 'couchbase.admin.collection.v1.CollectionAdminService'
29
+
30
+ # ListCollections returns all scopes and collections within a bucket,
31
+ # along with the current manifest_uid.
32
+ rpc :ListCollections, ::Couchbase::Protostellar::Generated::Admin::Collection::V1::ListCollectionsRequest, ::Couchbase::Protostellar::Generated::Admin::Collection::V1::ListCollectionsResponse
33
+ # CreateScope creates a new scope within a bucket.
34
+ rpc :CreateScope, ::Couchbase::Protostellar::Generated::Admin::Collection::V1::CreateScopeRequest, ::Couchbase::Protostellar::Generated::Admin::Collection::V1::CreateScopeResponse
35
+ # DeleteScope removes a scope and all its collections from a bucket.
36
+ rpc :DeleteScope, ::Couchbase::Protostellar::Generated::Admin::Collection::V1::DeleteScopeRequest, ::Couchbase::Protostellar::Generated::Admin::Collection::V1::DeleteScopeResponse
37
+ # CreateCollection creates a new collection within a scope.
38
+ rpc :CreateCollection, ::Couchbase::Protostellar::Generated::Admin::Collection::V1::CreateCollectionRequest, ::Couchbase::Protostellar::Generated::Admin::Collection::V1::CreateCollectionResponse
39
+ # UpdateCollection modifies a collection's configuration (e.g., max expiry).
40
+ rpc :UpdateCollection, ::Couchbase::Protostellar::Generated::Admin::Collection::V1::UpdateCollectionRequest, ::Couchbase::Protostellar::Generated::Admin::Collection::V1::UpdateCollectionResponse
41
+ # DeleteCollection removes a collection from a scope.
42
+ rpc :DeleteCollection, ::Couchbase::Protostellar::Generated::Admin::Collection::V1::DeleteCollectionRequest, ::Couchbase::Protostellar::Generated::Admin::Collection::V1::DeleteCollectionResponse
43
+ end
44
+
45
+ Stub = Service.rpc_stub_class
46
+ end
47
+ end
48
+ end
49
+ end
50
+ end
51
+ end
52
+ end
@@ -0,0 +1,42 @@
1
+ # frozen_string_literal: true
2
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
3
+ # source: couchbase/admin/query/v1/query.proto
4
+
5
+ require 'google/protobuf'
6
+
7
+
8
+ descriptor_data = "\n$couchbase/admin/query/v1/query.proto\x12\x18\x63ouchbase.admin.query.v1\"\x9a\x01\n\x14GetAllIndexesRequest\x12\x18\n\x0b\x62ucket_name\x18\x01 \x01(\tH\x00\x88\x01\x01\x12\x17\n\nscope_name\x18\x02 \x01(\tH\x01\x88\x01\x01\x12\x1c\n\x0f\x63ollection_name\x18\x03 \x01(\tH\x02\x88\x01\x01\x42\x0e\n\x0c_bucket_nameB\r\n\x0b_scope_nameB\x12\n\x10_collection_name\"\x91\x03\n\x15GetAllIndexesResponse\x12\x46\n\x07indexes\x18\x01 \x03(\x0b\x32\x35.couchbase.admin.query.v1.GetAllIndexesResponse.Index\x1a\xaf\x02\n\x05Index\x12\x13\n\x0b\x62ucket_name\x18\x01 \x01(\t\x12\x12\n\nscope_name\x18\x02 \x01(\t\x12\x17\n\x0f\x63ollection_name\x18\x03 \x01(\t\x12\x0c\n\x04name\x18\x04 \x01(\t\x12\x12\n\nis_primary\x18\x05 \x01(\x08\x12\x31\n\x04type\x18\x06 \x01(\x0e\x32#.couchbase.admin.query.v1.IndexType\x12\x33\n\x05state\x18\x07 \x01(\x0e\x32$.couchbase.admin.query.v1.IndexState\x12\x0e\n\x06\x66ields\x18\x08 \x03(\t\x12\x16\n\tcondition\x18\t \x01(\tH\x00\x88\x01\x01\x12\x16\n\tpartition\x18\n \x01(\tH\x01\x88\x01\x01\x42\x0c\n\n_conditionB\x0c\n\n_partition\"\xaa\x02\n\x19\x43reatePrimaryIndexRequest\x12\x13\n\x0b\x62ucket_name\x18\x01 \x01(\t\x12\x17\n\nscope_name\x18\x02 \x01(\tH\x00\x88\x01\x01\x12\x1c\n\x0f\x63ollection_name\x18\x03 \x01(\tH\x01\x88\x01\x01\x12\x11\n\x04name\x18\x04 \x01(\tH\x02\x88\x01\x01\x12\x19\n\x0cnum_replicas\x18\x05 \x01(\x05H\x03\x88\x01\x01\x12\x15\n\x08\x64\x65\x66\x65rred\x18\x06 \x01(\x08H\x04\x88\x01\x01\x12\x1d\n\x10ignore_if_exists\x18\x07 \x01(\x08H\x05\x88\x01\x01\x42\r\n\x0b_scope_nameB\x12\n\x10_collection_nameB\x07\n\x05_nameB\x0f\n\r_num_replicasB\x0b\n\t_deferredB\x13\n\x11_ignore_if_exists\"\x1c\n\x1a\x43reatePrimaryIndexResponse\"\xa5\x02\n\x12\x43reateIndexRequest\x12\x13\n\x0b\x62ucket_name\x18\x01 \x01(\t\x12\x17\n\nscope_name\x18\x02 \x01(\tH\x00\x88\x01\x01\x12\x1c\n\x0f\x63ollection_name\x18\x03 \x01(\tH\x01\x88\x01\x01\x12\x0c\n\x04name\x18\x04 \x01(\t\x12\x19\n\x0cnum_replicas\x18\x05 \x01(\x05H\x02\x88\x01\x01\x12\x0e\n\x06\x66ields\x18\x06 \x03(\t\x12\x15\n\x08\x64\x65\x66\x65rred\x18\x07 \x01(\x08H\x03\x88\x01\x01\x12\x1d\n\x10ignore_if_exists\x18\x08 \x01(\x08H\x04\x88\x01\x01\x42\r\n\x0b_scope_nameB\x12\n\x10_collection_nameB\x0f\n\r_num_replicasB\x0b\n\t_deferredB\x13\n\x11_ignore_if_exists\"\x15\n\x13\x43reateIndexResponse\"\xda\x01\n\x17\x44ropPrimaryIndexRequest\x12\x13\n\x0b\x62ucket_name\x18\x01 \x01(\t\x12\x17\n\nscope_name\x18\x02 \x01(\tH\x00\x88\x01\x01\x12\x1c\n\x0f\x63ollection_name\x18\x03 \x01(\tH\x01\x88\x01\x01\x12\x11\n\x04name\x18\x04 \x01(\tH\x02\x88\x01\x01\x12\x1e\n\x11ignore_if_missing\x18\x05 \x01(\x08H\x03\x88\x01\x01\x42\r\n\x0b_scope_nameB\x12\n\x10_collection_nameB\x07\n\x05_nameB\x14\n\x12_ignore_if_missing\"\x1a\n\x18\x44ropPrimaryIndexResponse\"\xc5\x01\n\x10\x44ropIndexRequest\x12\x13\n\x0b\x62ucket_name\x18\x01 \x01(\t\x12\x17\n\nscope_name\x18\x02 \x01(\tH\x00\x88\x01\x01\x12\x1c\n\x0f\x63ollection_name\x18\x03 \x01(\tH\x01\x88\x01\x01\x12\x0c\n\x04name\x18\x04 \x01(\t\x12\x1e\n\x11ignore_if_missing\x18\x05 \x01(\x08H\x02\x88\x01\x01\x42\r\n\x0b_scope_nameB\x12\n\x10_collection_nameB\x14\n\x12_ignore_if_missing\"\x13\n\x11\x44ropIndexResponse\"\x8c\x01\n\x1b\x42uildDeferredIndexesRequest\x12\x13\n\x0b\x62ucket_name\x18\x01 \x01(\t\x12\x17\n\nscope_name\x18\x02 \x01(\tH\x00\x88\x01\x01\x12\x1c\n\x0f\x63ollection_name\x18\x03 \x01(\tH\x01\x88\x01\x01\x42\r\n\x0b_scope_nameB\x12\n\x10_collection_name\"\xf4\x01\n\x1c\x42uildDeferredIndexesResponse\x12M\n\x07indexes\x18\x01 \x03(\x0b\x32<.couchbase.admin.query.v1.BuildDeferredIndexesResponse.Index\x1a\x84\x01\n\x05Index\x12\x13\n\x0b\x62ucket_name\x18\x01 \x01(\t\x12\x17\n\nscope_name\x18\x02 \x01(\tH\x00\x88\x01\x01\x12\x1c\n\x0f\x63ollection_name\x18\x03 \x01(\tH\x01\x88\x01\x01\x12\x0c\n\x04name\x18\x04 \x01(\tB\r\n\x0b_scope_nameB\x12\n\x10_collection_name\"k\n\x19WaitForIndexOnlineRequest\x12\x13\n\x0b\x62ucket_name\x18\x01 \x01(\t\x12\x12\n\nscope_name\x18\x02 \x01(\t\x12\x17\n\x0f\x63ollection_name\x18\x03 \x01(\t\x12\x0c\n\x04name\x18\x04 \x01(\t\"\x1c\n\x1aWaitForIndexOnlineResponse*4\n\tIndexType\x12\x13\n\x0fINDEX_TYPE_VIEW\x10\x00\x12\x12\n\x0eINDEX_TYPE_GSI\x10\x01*\xbf\x01\n\nIndexState\x12\x18\n\x14INDEX_STATE_DEFERRED\x10\x00\x12\x18\n\x14INDEX_STATE_BUILDING\x10\x01\x12\x17\n\x13INDEX_STATE_PENDING\x10\x02\x12\x16\n\x12INDEX_STATE_ONLINE\x10\x03\x12\x17\n\x13INDEX_STATE_OFFLINE\x10\x04\x12\x18\n\x14INDEX_STATE_ABRIDGED\x10\x05\x12\x19\n\x15INDEX_STATE_SCHEDULED\x10\x06\x32\xec\x06\n\x11QueryAdminService\x12r\n\rGetAllIndexes\x12..couchbase.admin.query.v1.GetAllIndexesRequest\x1a/.couchbase.admin.query.v1.GetAllIndexesResponse\"\x00\x12\x81\x01\n\x12\x43reatePrimaryIndex\x12\x33.couchbase.admin.query.v1.CreatePrimaryIndexRequest\x1a\x34.couchbase.admin.query.v1.CreatePrimaryIndexResponse\"\x00\x12l\n\x0b\x43reateIndex\x12,.couchbase.admin.query.v1.CreateIndexRequest\x1a-.couchbase.admin.query.v1.CreateIndexResponse\"\x00\x12{\n\x10\x44ropPrimaryIndex\x12\x31.couchbase.admin.query.v1.DropPrimaryIndexRequest\x1a\x32.couchbase.admin.query.v1.DropPrimaryIndexResponse\"\x00\x12\x66\n\tDropIndex\x12*.couchbase.admin.query.v1.DropIndexRequest\x1a+.couchbase.admin.query.v1.DropIndexResponse\"\x00\x12\x87\x01\n\x14\x42uildDeferredIndexes\x12\x35.couchbase.admin.query.v1.BuildDeferredIndexesRequest\x1a\x36.couchbase.admin.query.v1.BuildDeferredIndexesResponse\"\x00\x12\x81\x01\n\x12WaitForIndexOnline\x12\x33.couchbase.admin.query.v1.WaitForIndexOnlineRequest\x1a\x34.couchbase.admin.query.v1.WaitForIndexOnlineResponse\"\x00\x42\x91\x02\n0com.couchbase.client.protostellar.admin.query.v1P\x01ZJgithub.com/couchbase/goprotostellar/genproto/admin_query_v1;admin_query_v1\xaa\x02%Couchbase.Protostellar.Admin.Query.V1\xca\x02/Couchbase\\Protostellar\\Generated\\Admin\\Query\\V1\xea\x02\x34\x43ouchbase::Protostellar::Generated::Admin::Query::V1b\x06proto3"
9
+
10
+ pool = ::Google::Protobuf::DescriptorPool.generated_pool
11
+ pool.add_serialized_file(descriptor_data)
12
+
13
+ module Couchbase
14
+ module Protostellar
15
+ module Generated
16
+ module Admin
17
+ module Query
18
+ module V1
19
+ GetAllIndexesRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("couchbase.admin.query.v1.GetAllIndexesRequest").msgclass
20
+ GetAllIndexesResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("couchbase.admin.query.v1.GetAllIndexesResponse").msgclass
21
+ GetAllIndexesResponse::Index = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("couchbase.admin.query.v1.GetAllIndexesResponse.Index").msgclass
22
+ CreatePrimaryIndexRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("couchbase.admin.query.v1.CreatePrimaryIndexRequest").msgclass
23
+ CreatePrimaryIndexResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("couchbase.admin.query.v1.CreatePrimaryIndexResponse").msgclass
24
+ CreateIndexRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("couchbase.admin.query.v1.CreateIndexRequest").msgclass
25
+ CreateIndexResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("couchbase.admin.query.v1.CreateIndexResponse").msgclass
26
+ DropPrimaryIndexRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("couchbase.admin.query.v1.DropPrimaryIndexRequest").msgclass
27
+ DropPrimaryIndexResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("couchbase.admin.query.v1.DropPrimaryIndexResponse").msgclass
28
+ DropIndexRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("couchbase.admin.query.v1.DropIndexRequest").msgclass
29
+ DropIndexResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("couchbase.admin.query.v1.DropIndexResponse").msgclass
30
+ BuildDeferredIndexesRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("couchbase.admin.query.v1.BuildDeferredIndexesRequest").msgclass
31
+ BuildDeferredIndexesResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("couchbase.admin.query.v1.BuildDeferredIndexesResponse").msgclass
32
+ BuildDeferredIndexesResponse::Index = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("couchbase.admin.query.v1.BuildDeferredIndexesResponse.Index").msgclass
33
+ WaitForIndexOnlineRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("couchbase.admin.query.v1.WaitForIndexOnlineRequest").msgclass
34
+ WaitForIndexOnlineResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("couchbase.admin.query.v1.WaitForIndexOnlineResponse").msgclass
35
+ IndexType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("couchbase.admin.query.v1.IndexType").enummodule
36
+ IndexState = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("couchbase.admin.query.v1.IndexState").enummodule
37
+ end
38
+ end
39
+ end
40
+ end
41
+ end
42
+ end