google-cloud-managed_kafka-schema_registry-v1 0.a → 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.yardopts +12 -0
- data/AUTHENTICATION.md +122 -0
- data/README.md +153 -8
- data/lib/google/cloud/managed_kafka/schema_registry/v1/bindings_override.rb +77 -0
- data/lib/google/cloud/managed_kafka/schema_registry/v1/managed_schema_registry/client.rb +3110 -0
- data/lib/google/cloud/managed_kafka/schema_registry/v1/managed_schema_registry/credentials.rb +49 -0
- data/lib/google/cloud/managed_kafka/schema_registry/v1/managed_schema_registry/paths.rb +424 -0
- data/lib/google/cloud/managed_kafka/schema_registry/v1/managed_schema_registry/rest/client.rb +2903 -0
- data/lib/google/cloud/managed_kafka/schema_registry/v1/managed_schema_registry/rest/service_stub.rb +1888 -0
- data/lib/google/cloud/managed_kafka/schema_registry/v1/managed_schema_registry/rest.rb +103 -0
- data/lib/google/cloud/managed_kafka/schema_registry/v1/managed_schema_registry.rb +105 -0
- data/lib/google/cloud/managed_kafka/schema_registry/v1/rest.rb +40 -0
- data/lib/google/cloud/managed_kafka/schema_registry/v1/version.rb +7 -2
- data/lib/google/cloud/managed_kafka/schema_registry/v1.rb +47 -0
- data/lib/google/cloud/managedkafka/schemaregistry/v1/schema_registry_pb.rb +80 -0
- data/lib/google/cloud/managedkafka/schemaregistry/v1/schema_registry_resources_pb.rb +57 -0
- data/lib/google/cloud/managedkafka/schemaregistry/v1/schema_registry_services_pb.rb +160 -0
- data/lib/google-cloud-managed_kafka-schema_registry-v1.rb +21 -0
- data/proto_docs/README.md +4 -0
- data/proto_docs/google/api/client.rb +473 -0
- data/proto_docs/google/api/field_behavior.rb +85 -0
- data/proto_docs/google/api/httpbody.rb +80 -0
- data/proto_docs/google/api/launch_stage.rb +71 -0
- data/proto_docs/google/api/resource.rb +227 -0
- data/proto_docs/google/cloud/managedkafka/schemaregistry/v1/schema_registry.rb +488 -0
- data/proto_docs/google/cloud/managedkafka/schemaregistry/v1/schema_registry_resources.rb +236 -0
- data/proto_docs/google/protobuf/any.rb +145 -0
- data/proto_docs/google/protobuf/duration.rb +98 -0
- data/proto_docs/google/protobuf/empty.rb +34 -0
- metadata +77 -9
@@ -0,0 +1,236 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# Copyright 2025 Google LLC
|
4
|
+
#
|
5
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
6
|
+
# you may not use this file except in compliance with the License.
|
7
|
+
# You may obtain a copy of the License at
|
8
|
+
#
|
9
|
+
# https://www.apache.org/licenses/LICENSE-2.0
|
10
|
+
#
|
11
|
+
# Unless required by applicable law or agreed to in writing, software
|
12
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
13
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
14
|
+
# See the License for the specific language governing permissions and
|
15
|
+
# limitations under the License.
|
16
|
+
|
17
|
+
# Auto-generated by gapic-generator-ruby. DO NOT EDIT!
|
18
|
+
|
19
|
+
|
20
|
+
module Google
|
21
|
+
module Cloud
|
22
|
+
module ManagedKafka
|
23
|
+
module SchemaRegistry
|
24
|
+
module V1
|
25
|
+
# SchemaRegistry is a schema registry instance.
|
26
|
+
# @!attribute [rw] name
|
27
|
+
# @return [::String]
|
28
|
+
# Identifier. The name of the schema registry instance. Structured like:
|
29
|
+
# `projects/{project}/locations/{location}/schemaRegistries/{schema_registry}`
|
30
|
+
# The instance name \\{schema_registry} can contain the following:
|
31
|
+
# * Up to 255 characters.
|
32
|
+
# * Letters (uppercase or lowercase), numbers, and underscores.
|
33
|
+
# @!attribute [r] contexts
|
34
|
+
# @return [::Array<::String>]
|
35
|
+
# Output only. The contexts of the schema registry instance.
|
36
|
+
class SchemaRegistry
|
37
|
+
include ::Google::Protobuf::MessageExts
|
38
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
39
|
+
end
|
40
|
+
|
41
|
+
# Context represents an independent schema grouping in a schema registry
|
42
|
+
# instance.
|
43
|
+
# @!attribute [rw] name
|
44
|
+
# @return [::String]
|
45
|
+
# Identifier. The name of the context. Structured like:
|
46
|
+
# `projects/{project}/locations/{location}/schemaRegistries/{schema_registry}/contexts/{context}`
|
47
|
+
# The context name \\{context} can contain the following:
|
48
|
+
# * Up to 255 characters.
|
49
|
+
# * Allowed characters: letters (uppercase or lowercase), numbers, and the
|
50
|
+
# following special characters: `.`, `-`, `_`, `+`, `%`, and `~`.
|
51
|
+
# @!attribute [rw] subjects
|
52
|
+
# @return [::Array<::String>]
|
53
|
+
# Optional. The subjects of the context.
|
54
|
+
class Context
|
55
|
+
include ::Google::Protobuf::MessageExts
|
56
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
57
|
+
end
|
58
|
+
|
59
|
+
# Schema for a Kafka message.
|
60
|
+
# @!attribute [rw] schema_type
|
61
|
+
# @return [::Google::Cloud::ManagedKafka::SchemaRegistry::V1::Schema::SchemaType]
|
62
|
+
# Optional. The schema type of the schema.
|
63
|
+
# @!attribute [rw] schema_payload
|
64
|
+
# @return [::String]
|
65
|
+
# The schema payload.
|
66
|
+
# @!attribute [rw] references
|
67
|
+
# @return [::Array<::Google::Cloud::ManagedKafka::SchemaRegistry::V1::Schema::SchemaReference>]
|
68
|
+
# Optional. The schema references used by the schema.
|
69
|
+
class Schema
|
70
|
+
include ::Google::Protobuf::MessageExts
|
71
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
72
|
+
|
73
|
+
# SchemaReference is a reference to a schema.
|
74
|
+
# @!attribute [rw] name
|
75
|
+
# @return [::String]
|
76
|
+
# Required. The name of the reference.
|
77
|
+
# @!attribute [rw] subject
|
78
|
+
# @return [::String]
|
79
|
+
# Required. The subject of the reference.
|
80
|
+
# @!attribute [rw] version
|
81
|
+
# @return [::Integer]
|
82
|
+
# Required. The version of the reference.
|
83
|
+
class SchemaReference
|
84
|
+
include ::Google::Protobuf::MessageExts
|
85
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
86
|
+
end
|
87
|
+
|
88
|
+
# Schema types.
|
89
|
+
module SchemaType
|
90
|
+
# No schema type. The default will be AVRO.
|
91
|
+
SCHEMA_TYPE_UNSPECIFIED = 0
|
92
|
+
|
93
|
+
# Avro schema type.
|
94
|
+
AVRO = 1
|
95
|
+
|
96
|
+
# JSON schema type.
|
97
|
+
JSON = 2
|
98
|
+
|
99
|
+
# Protobuf schema type.
|
100
|
+
PROTOBUF = 3
|
101
|
+
end
|
102
|
+
end
|
103
|
+
|
104
|
+
# Subject defines the evolution scope of schemas as a holder of schema
|
105
|
+
# versions.
|
106
|
+
# @!attribute [rw] name
|
107
|
+
# @return [::String]
|
108
|
+
# The name of the subject. Structured like:
|
109
|
+
# `projects/{project}/locations/{location}/schemaRegistries/{schema_registry}/subjects/{subject}`
|
110
|
+
# or
|
111
|
+
# `projects/{project}/locations/{location}/schemaRegistries/{schema_registry}/contexts/{context}/subjects/{subject}`
|
112
|
+
#
|
113
|
+
# Subject name \\{subject} can contain the following:
|
114
|
+
# * Up to 255 UTF-8 bytes.
|
115
|
+
# * Allowed characters: letters (uppercase or lowercase), numbers, and the
|
116
|
+
# following special characters: `.`, `-`, `_`, `+`, `%`, and `~`.
|
117
|
+
# @!attribute [rw] versions
|
118
|
+
# @return [::Array<::String>]
|
119
|
+
# The versions of the subject.
|
120
|
+
class SchemaSubject
|
121
|
+
include ::Google::Protobuf::MessageExts
|
122
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
123
|
+
end
|
124
|
+
|
125
|
+
# Version of a schema.
|
126
|
+
# @!attribute [rw] subject
|
127
|
+
# @return [::String]
|
128
|
+
# Required. The subject of the version.
|
129
|
+
# @!attribute [rw] version_id
|
130
|
+
# @return [::Integer]
|
131
|
+
# Required. The version ID
|
132
|
+
# @!attribute [rw] schema_id
|
133
|
+
# @return [::Integer]
|
134
|
+
# Required. The schema ID.
|
135
|
+
# @!attribute [rw] schema_type
|
136
|
+
# @return [::Google::Cloud::ManagedKafka::SchemaRegistry::V1::Schema::SchemaType]
|
137
|
+
# Optional. The schema type of the schema.
|
138
|
+
# @!attribute [rw] schema_payload
|
139
|
+
# @return [::String]
|
140
|
+
# Required. The schema payload.
|
141
|
+
# @!attribute [rw] references
|
142
|
+
# @return [::Array<::Google::Cloud::ManagedKafka::SchemaRegistry::V1::Schema::SchemaReference>]
|
143
|
+
# Optional. The schema references used by the schema.
|
144
|
+
class SchemaVersion
|
145
|
+
include ::Google::Protobuf::MessageExts
|
146
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
147
|
+
end
|
148
|
+
|
149
|
+
# SchemaConfig represents configuration for a schema registry or a specific
|
150
|
+
# subject.
|
151
|
+
# @!attribute [rw] compatibility
|
152
|
+
# @return [::Google::Cloud::ManagedKafka::SchemaRegistry::V1::SchemaConfig::CompatibilityType]
|
153
|
+
# Required. The compatibility type of the schema.
|
154
|
+
# The default value is BACKWARD.
|
155
|
+
# If unset in a SchemaSubject-level SchemaConfig, defaults to the global
|
156
|
+
# value. If unset in a SchemaRegistry-level SchemaConfig, reverts to the
|
157
|
+
# default value.
|
158
|
+
# @!attribute [rw] normalize
|
159
|
+
# @return [::Boolean]
|
160
|
+
# Optional. If true, the schema will be normalized before being stored or
|
161
|
+
# looked up. The default is false. If unset in a SchemaSubject-level
|
162
|
+
# SchemaConfig, the global value will be used. If unset in a
|
163
|
+
# SchemaRegistry-level SchemaConfig, reverts to the default value.
|
164
|
+
# @!attribute [rw] alias
|
165
|
+
# @return [::String]
|
166
|
+
# Optional. The subject to which this subject is an alias of. Only applicable
|
167
|
+
# for subject config.
|
168
|
+
class SchemaConfig
|
169
|
+
include ::Google::Protobuf::MessageExts
|
170
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
171
|
+
|
172
|
+
# Compatibility type of the schemas.
|
173
|
+
module CompatibilityType
|
174
|
+
# No compatibility check.
|
175
|
+
NONE = 0
|
176
|
+
|
177
|
+
# Backwards compatible with the most recent version.
|
178
|
+
BACKWARD = 1
|
179
|
+
|
180
|
+
# Backwards compatible with all previous versions.
|
181
|
+
BACKWARD_TRANSITIVE = 2
|
182
|
+
|
183
|
+
# Forwards compatible with the most recent version.
|
184
|
+
FORWARD = 3
|
185
|
+
|
186
|
+
# Forwards compatible with all previous versions.
|
187
|
+
FORWARD_TRANSITIVE = 4
|
188
|
+
|
189
|
+
# Backwards and forwards compatible with the most recent version.
|
190
|
+
FULL = 5
|
191
|
+
|
192
|
+
# Backwards and forwards compatible with all previous versions.
|
193
|
+
FULL_TRANSITIVE = 6
|
194
|
+
end
|
195
|
+
end
|
196
|
+
|
197
|
+
# SchemaMode represents the mode of a schema registry or a specific subject.
|
198
|
+
# Four modes are supported:
|
199
|
+
# * NONE: deprecated. This was the default mode for a subject, but now the
|
200
|
+
# default is unset (which means use the global schema registry setting)
|
201
|
+
# * READONLY: The schema registry is in read-only mode.
|
202
|
+
# * READWRITE: The schema registry is in read-write mode, which allows limited
|
203
|
+
# write operations on the schema.
|
204
|
+
# * IMPORT: The schema registry is in import mode, which allows more editing
|
205
|
+
# operations on the schema for data importing purposes.
|
206
|
+
# @!attribute [rw] mode
|
207
|
+
# @return [::Google::Cloud::ManagedKafka::SchemaRegistry::V1::SchemaMode::ModeType]
|
208
|
+
# Required. The mode type of a schema registry (READWRITE by default) or of a
|
209
|
+
# subject (unset by default, which means use the global schema registry
|
210
|
+
# setting).
|
211
|
+
class SchemaMode
|
212
|
+
include ::Google::Protobuf::MessageExts
|
213
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
214
|
+
|
215
|
+
# Mode type of the schemas or subjects.
|
216
|
+
module ModeType
|
217
|
+
# The default / unset value.
|
218
|
+
# The subject mode is NONE/unset by default, which means use the global
|
219
|
+
# schema registry mode. This should not be used for setting the mode.
|
220
|
+
NONE = 0
|
221
|
+
|
222
|
+
# READONLY mode.
|
223
|
+
READONLY = 1
|
224
|
+
|
225
|
+
# READWRITE mode.
|
226
|
+
READWRITE = 2
|
227
|
+
|
228
|
+
# IMPORT mode.
|
229
|
+
IMPORT = 3
|
230
|
+
end
|
231
|
+
end
|
232
|
+
end
|
233
|
+
end
|
234
|
+
end
|
235
|
+
end
|
236
|
+
end
|
@@ -0,0 +1,145 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# Copyright 2025 Google LLC
|
4
|
+
#
|
5
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
6
|
+
# you may not use this file except in compliance with the License.
|
7
|
+
# You may obtain a copy of the License at
|
8
|
+
#
|
9
|
+
# https://www.apache.org/licenses/LICENSE-2.0
|
10
|
+
#
|
11
|
+
# Unless required by applicable law or agreed to in writing, software
|
12
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
13
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
14
|
+
# See the License for the specific language governing permissions and
|
15
|
+
# limitations under the License.
|
16
|
+
|
17
|
+
# Auto-generated by gapic-generator-ruby. DO NOT EDIT!
|
18
|
+
|
19
|
+
|
20
|
+
module Google
|
21
|
+
module Protobuf
|
22
|
+
# `Any` contains an arbitrary serialized protocol buffer message along with a
|
23
|
+
# URL that describes the type of the serialized message.
|
24
|
+
#
|
25
|
+
# Protobuf library provides support to pack/unpack Any values in the form
|
26
|
+
# of utility functions or additional generated methods of the Any type.
|
27
|
+
#
|
28
|
+
# Example 1: Pack and unpack a message in C++.
|
29
|
+
#
|
30
|
+
# Foo foo = ...;
|
31
|
+
# Any any;
|
32
|
+
# any.PackFrom(foo);
|
33
|
+
# ...
|
34
|
+
# if (any.UnpackTo(&foo)) {
|
35
|
+
# ...
|
36
|
+
# }
|
37
|
+
#
|
38
|
+
# Example 2: Pack and unpack a message in Java.
|
39
|
+
#
|
40
|
+
# Foo foo = ...;
|
41
|
+
# Any any = Any.pack(foo);
|
42
|
+
# ...
|
43
|
+
# if (any.is(Foo.class)) {
|
44
|
+
# foo = any.unpack(Foo.class);
|
45
|
+
# }
|
46
|
+
# // or ...
|
47
|
+
# if (any.isSameTypeAs(Foo.getDefaultInstance())) {
|
48
|
+
# foo = any.unpack(Foo.getDefaultInstance());
|
49
|
+
# }
|
50
|
+
#
|
51
|
+
# Example 3: Pack and unpack a message in Python.
|
52
|
+
#
|
53
|
+
# foo = Foo(...)
|
54
|
+
# any = Any()
|
55
|
+
# any.Pack(foo)
|
56
|
+
# ...
|
57
|
+
# if any.Is(Foo.DESCRIPTOR):
|
58
|
+
# any.Unpack(foo)
|
59
|
+
# ...
|
60
|
+
#
|
61
|
+
# Example 4: Pack and unpack a message in Go
|
62
|
+
#
|
63
|
+
# foo := &pb.Foo{...}
|
64
|
+
# any, err := anypb.New(foo)
|
65
|
+
# if err != nil {
|
66
|
+
# ...
|
67
|
+
# }
|
68
|
+
# ...
|
69
|
+
# foo := &pb.Foo{}
|
70
|
+
# if err := any.UnmarshalTo(foo); err != nil {
|
71
|
+
# ...
|
72
|
+
# }
|
73
|
+
#
|
74
|
+
# The pack methods provided by protobuf library will by default use
|
75
|
+
# 'type.googleapis.com/full.type.name' as the type URL and the unpack
|
76
|
+
# methods only use the fully qualified type name after the last '/'
|
77
|
+
# in the type URL, for example "foo.bar.com/x/y.z" will yield type
|
78
|
+
# name "y.z".
|
79
|
+
#
|
80
|
+
# JSON
|
81
|
+
# ====
|
82
|
+
# The JSON representation of an `Any` value uses the regular
|
83
|
+
# representation of the deserialized, embedded message, with an
|
84
|
+
# additional field `@type` which contains the type URL. Example:
|
85
|
+
#
|
86
|
+
# package google.profile;
|
87
|
+
# message Person {
|
88
|
+
# string first_name = 1;
|
89
|
+
# string last_name = 2;
|
90
|
+
# }
|
91
|
+
#
|
92
|
+
# {
|
93
|
+
# "@type": "type.googleapis.com/google.profile.Person",
|
94
|
+
# "firstName": <string>,
|
95
|
+
# "lastName": <string>
|
96
|
+
# }
|
97
|
+
#
|
98
|
+
# If the embedded message type is well-known and has a custom JSON
|
99
|
+
# representation, that representation will be embedded adding a field
|
100
|
+
# `value` which holds the custom JSON in addition to the `@type`
|
101
|
+
# field. Example (for message [google.protobuf.Duration][]):
|
102
|
+
#
|
103
|
+
# {
|
104
|
+
# "@type": "type.googleapis.com/google.protobuf.Duration",
|
105
|
+
# "value": "1.212s"
|
106
|
+
# }
|
107
|
+
# @!attribute [rw] type_url
|
108
|
+
# @return [::String]
|
109
|
+
# A URL/resource name that uniquely identifies the type of the serialized
|
110
|
+
# protocol buffer message. This string must contain at least
|
111
|
+
# one "/" character. The last segment of the URL's path must represent
|
112
|
+
# the fully qualified name of the type (as in
|
113
|
+
# `path/google.protobuf.Duration`). The name should be in a canonical form
|
114
|
+
# (e.g., leading "." is not accepted).
|
115
|
+
#
|
116
|
+
# In practice, teams usually precompile into the binary all types that they
|
117
|
+
# expect it to use in the context of Any. However, for URLs which use the
|
118
|
+
# scheme `http`, `https`, or no scheme, one can optionally set up a type
|
119
|
+
# server that maps type URLs to message definitions as follows:
|
120
|
+
#
|
121
|
+
# * If no scheme is provided, `https` is assumed.
|
122
|
+
# * An HTTP GET on the URL must yield a [google.protobuf.Type][]
|
123
|
+
# value in binary format, or produce an error.
|
124
|
+
# * Applications are allowed to cache lookup results based on the
|
125
|
+
# URL, or have them precompiled into a binary to avoid any
|
126
|
+
# lookup. Therefore, binary compatibility needs to be preserved
|
127
|
+
# on changes to types. (Use versioned type names to manage
|
128
|
+
# breaking changes.)
|
129
|
+
#
|
130
|
+
# Note: this functionality is not currently available in the official
|
131
|
+
# protobuf release, and it is not used for type URLs beginning with
|
132
|
+
# type.googleapis.com. As of May 2023, there are no widely used type server
|
133
|
+
# implementations and no plans to implement one.
|
134
|
+
#
|
135
|
+
# Schemes other than `http`, `https` (or the empty scheme) might be
|
136
|
+
# used with implementation specific semantics.
|
137
|
+
# @!attribute [rw] value
|
138
|
+
# @return [::String]
|
139
|
+
# Must be a valid serialized protocol buffer of the above specified type.
|
140
|
+
class Any
|
141
|
+
include ::Google::Protobuf::MessageExts
|
142
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
143
|
+
end
|
144
|
+
end
|
145
|
+
end
|
@@ -0,0 +1,98 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# Copyright 2025 Google LLC
|
4
|
+
#
|
5
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
6
|
+
# you may not use this file except in compliance with the License.
|
7
|
+
# You may obtain a copy of the License at
|
8
|
+
#
|
9
|
+
# https://www.apache.org/licenses/LICENSE-2.0
|
10
|
+
#
|
11
|
+
# Unless required by applicable law or agreed to in writing, software
|
12
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
13
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
14
|
+
# See the License for the specific language governing permissions and
|
15
|
+
# limitations under the License.
|
16
|
+
|
17
|
+
# Auto-generated by gapic-generator-ruby. DO NOT EDIT!
|
18
|
+
|
19
|
+
|
20
|
+
module Google
|
21
|
+
module Protobuf
|
22
|
+
# A Duration represents a signed, fixed-length span of time represented
|
23
|
+
# as a count of seconds and fractions of seconds at nanosecond
|
24
|
+
# resolution. It is independent of any calendar and concepts like "day"
|
25
|
+
# or "month". It is related to Timestamp in that the difference between
|
26
|
+
# two Timestamp values is a Duration and it can be added or subtracted
|
27
|
+
# from a Timestamp. Range is approximately +-10,000 years.
|
28
|
+
#
|
29
|
+
# # Examples
|
30
|
+
#
|
31
|
+
# Example 1: Compute Duration from two Timestamps in pseudo code.
|
32
|
+
#
|
33
|
+
# Timestamp start = ...;
|
34
|
+
# Timestamp end = ...;
|
35
|
+
# Duration duration = ...;
|
36
|
+
#
|
37
|
+
# duration.seconds = end.seconds - start.seconds;
|
38
|
+
# duration.nanos = end.nanos - start.nanos;
|
39
|
+
#
|
40
|
+
# if (duration.seconds < 0 && duration.nanos > 0) {
|
41
|
+
# duration.seconds += 1;
|
42
|
+
# duration.nanos -= 1000000000;
|
43
|
+
# } else if (duration.seconds > 0 && duration.nanos < 0) {
|
44
|
+
# duration.seconds -= 1;
|
45
|
+
# duration.nanos += 1000000000;
|
46
|
+
# }
|
47
|
+
#
|
48
|
+
# Example 2: Compute Timestamp from Timestamp + Duration in pseudo code.
|
49
|
+
#
|
50
|
+
# Timestamp start = ...;
|
51
|
+
# Duration duration = ...;
|
52
|
+
# Timestamp end = ...;
|
53
|
+
#
|
54
|
+
# end.seconds = start.seconds + duration.seconds;
|
55
|
+
# end.nanos = start.nanos + duration.nanos;
|
56
|
+
#
|
57
|
+
# if (end.nanos < 0) {
|
58
|
+
# end.seconds -= 1;
|
59
|
+
# end.nanos += 1000000000;
|
60
|
+
# } else if (end.nanos >= 1000000000) {
|
61
|
+
# end.seconds += 1;
|
62
|
+
# end.nanos -= 1000000000;
|
63
|
+
# }
|
64
|
+
#
|
65
|
+
# Example 3: Compute Duration from datetime.timedelta in Python.
|
66
|
+
#
|
67
|
+
# td = datetime.timedelta(days=3, minutes=10)
|
68
|
+
# duration = Duration()
|
69
|
+
# duration.FromTimedelta(td)
|
70
|
+
#
|
71
|
+
# # JSON Mapping
|
72
|
+
#
|
73
|
+
# In JSON format, the Duration type is encoded as a string rather than an
|
74
|
+
# object, where the string ends in the suffix "s" (indicating seconds) and
|
75
|
+
# is preceded by the number of seconds, with nanoseconds expressed as
|
76
|
+
# fractional seconds. For example, 3 seconds with 0 nanoseconds should be
|
77
|
+
# encoded in JSON format as "3s", while 3 seconds and 1 nanosecond should
|
78
|
+
# be expressed in JSON format as "3.000000001s", and 3 seconds and 1
|
79
|
+
# microsecond should be expressed in JSON format as "3.000001s".
|
80
|
+
# @!attribute [rw] seconds
|
81
|
+
# @return [::Integer]
|
82
|
+
# Signed seconds of the span of time. Must be from -315,576,000,000
|
83
|
+
# to +315,576,000,000 inclusive. Note: these bounds are computed from:
|
84
|
+
# 60 sec/min * 60 min/hr * 24 hr/day * 365.25 days/year * 10000 years
|
85
|
+
# @!attribute [rw] nanos
|
86
|
+
# @return [::Integer]
|
87
|
+
# Signed fractions of a second at nanosecond resolution of the span
|
88
|
+
# of time. Durations less than one second are represented with a 0
|
89
|
+
# `seconds` field and a positive or negative `nanos` field. For durations
|
90
|
+
# of one second or more, a non-zero value for the `nanos` field must be
|
91
|
+
# of the same sign as the `seconds` field. Must be from -999,999,999
|
92
|
+
# to +999,999,999 inclusive.
|
93
|
+
class Duration
|
94
|
+
include ::Google::Protobuf::MessageExts
|
95
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
96
|
+
end
|
97
|
+
end
|
98
|
+
end
|
@@ -0,0 +1,34 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# Copyright 2025 Google LLC
|
4
|
+
#
|
5
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
6
|
+
# you may not use this file except in compliance with the License.
|
7
|
+
# You may obtain a copy of the License at
|
8
|
+
#
|
9
|
+
# https://www.apache.org/licenses/LICENSE-2.0
|
10
|
+
#
|
11
|
+
# Unless required by applicable law or agreed to in writing, software
|
12
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
13
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
14
|
+
# See the License for the specific language governing permissions and
|
15
|
+
# limitations under the License.
|
16
|
+
|
17
|
+
# Auto-generated by gapic-generator-ruby. DO NOT EDIT!
|
18
|
+
|
19
|
+
|
20
|
+
module Google
|
21
|
+
module Protobuf
|
22
|
+
# A generic empty message that you can re-use to avoid defining duplicated
|
23
|
+
# empty messages in your APIs. A typical example is to use it as the request
|
24
|
+
# or the response type of an API method. For instance:
|
25
|
+
#
|
26
|
+
# service Foo {
|
27
|
+
# rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty);
|
28
|
+
# }
|
29
|
+
class Empty
|
30
|
+
include ::Google::Protobuf::MessageExts
|
31
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
32
|
+
end
|
33
|
+
end
|
34
|
+
end
|
metadata
CHANGED
@@ -1,27 +1,95 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-cloud-managed_kafka-schema_registry-v1
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Google LLC
|
8
8
|
bindir: bin
|
9
9
|
cert_chain: []
|
10
10
|
date: 1980-01-02 00:00:00.000000000 Z
|
11
|
-
dependencies:
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
11
|
+
dependencies:
|
12
|
+
- !ruby/object:Gem::Dependency
|
13
|
+
name: gapic-common
|
14
|
+
requirement: !ruby/object:Gem::Requirement
|
15
|
+
requirements:
|
16
|
+
- - "~>"
|
17
|
+
- !ruby/object:Gem::Version
|
18
|
+
version: '1.1'
|
19
|
+
type: :runtime
|
20
|
+
prerelease: false
|
21
|
+
version_requirements: !ruby/object:Gem::Requirement
|
22
|
+
requirements:
|
23
|
+
- - "~>"
|
24
|
+
- !ruby/object:Gem::Version
|
25
|
+
version: '1.1'
|
26
|
+
- !ruby/object:Gem::Dependency
|
27
|
+
name: google-cloud-errors
|
28
|
+
requirement: !ruby/object:Gem::Requirement
|
29
|
+
requirements:
|
30
|
+
- - "~>"
|
31
|
+
- !ruby/object:Gem::Version
|
32
|
+
version: '1.0'
|
33
|
+
type: :runtime
|
34
|
+
prerelease: false
|
35
|
+
version_requirements: !ruby/object:Gem::Requirement
|
36
|
+
requirements:
|
37
|
+
- - "~>"
|
38
|
+
- !ruby/object:Gem::Version
|
39
|
+
version: '1.0'
|
40
|
+
- !ruby/object:Gem::Dependency
|
41
|
+
name: google-cloud-location
|
42
|
+
requirement: !ruby/object:Gem::Requirement
|
43
|
+
requirements:
|
44
|
+
- - "~>"
|
45
|
+
- !ruby/object:Gem::Version
|
46
|
+
version: '1.0'
|
47
|
+
type: :runtime
|
48
|
+
prerelease: false
|
49
|
+
version_requirements: !ruby/object:Gem::Requirement
|
50
|
+
requirements:
|
51
|
+
- - "~>"
|
52
|
+
- !ruby/object:Gem::Version
|
53
|
+
version: '1.0'
|
54
|
+
description: Manage Apache Kafka clusters and resources. Note that google-cloud-managed_kafka-schema_registry-v1
|
55
|
+
is a version-specific client library. For most uses, we recommend installing the
|
56
|
+
main client library google-cloud-managed_kafka-schema_registry instead. See the
|
57
|
+
readme for more details.
|
17
58
|
email: googleapis-packages@google.com
|
18
59
|
executables: []
|
19
60
|
extensions: []
|
20
61
|
extra_rdoc_files: []
|
21
62
|
files:
|
63
|
+
- ".yardopts"
|
64
|
+
- AUTHENTICATION.md
|
22
65
|
- LICENSE.md
|
23
66
|
- README.md
|
67
|
+
- lib/google-cloud-managed_kafka-schema_registry-v1.rb
|
68
|
+
- lib/google/cloud/managed_kafka/schema_registry/v1.rb
|
69
|
+
- lib/google/cloud/managed_kafka/schema_registry/v1/bindings_override.rb
|
70
|
+
- lib/google/cloud/managed_kafka/schema_registry/v1/managed_schema_registry.rb
|
71
|
+
- lib/google/cloud/managed_kafka/schema_registry/v1/managed_schema_registry/client.rb
|
72
|
+
- lib/google/cloud/managed_kafka/schema_registry/v1/managed_schema_registry/credentials.rb
|
73
|
+
- lib/google/cloud/managed_kafka/schema_registry/v1/managed_schema_registry/paths.rb
|
74
|
+
- lib/google/cloud/managed_kafka/schema_registry/v1/managed_schema_registry/rest.rb
|
75
|
+
- lib/google/cloud/managed_kafka/schema_registry/v1/managed_schema_registry/rest/client.rb
|
76
|
+
- lib/google/cloud/managed_kafka/schema_registry/v1/managed_schema_registry/rest/service_stub.rb
|
77
|
+
- lib/google/cloud/managed_kafka/schema_registry/v1/rest.rb
|
24
78
|
- lib/google/cloud/managed_kafka/schema_registry/v1/version.rb
|
79
|
+
- lib/google/cloud/managedkafka/schemaregistry/v1/schema_registry_pb.rb
|
80
|
+
- lib/google/cloud/managedkafka/schemaregistry/v1/schema_registry_resources_pb.rb
|
81
|
+
- lib/google/cloud/managedkafka/schemaregistry/v1/schema_registry_services_pb.rb
|
82
|
+
- proto_docs/README.md
|
83
|
+
- proto_docs/google/api/client.rb
|
84
|
+
- proto_docs/google/api/field_behavior.rb
|
85
|
+
- proto_docs/google/api/httpbody.rb
|
86
|
+
- proto_docs/google/api/launch_stage.rb
|
87
|
+
- proto_docs/google/api/resource.rb
|
88
|
+
- proto_docs/google/cloud/managedkafka/schemaregistry/v1/schema_registry.rb
|
89
|
+
- proto_docs/google/cloud/managedkafka/schemaregistry/v1/schema_registry_resources.rb
|
90
|
+
- proto_docs/google/protobuf/any.rb
|
91
|
+
- proto_docs/google/protobuf/duration.rb
|
92
|
+
- proto_docs/google/protobuf/empty.rb
|
25
93
|
homepage: https://github.com/googleapis/google-cloud-ruby
|
26
94
|
licenses:
|
27
95
|
- Apache-2.0
|
@@ -33,7 +101,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
33
101
|
requirements:
|
34
102
|
- - ">="
|
35
103
|
- !ruby/object:Gem::Version
|
36
|
-
version: '3.
|
104
|
+
version: '3.1'
|
37
105
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
38
106
|
requirements:
|
39
107
|
- - ">="
|
@@ -42,5 +110,5 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
42
110
|
requirements: []
|
43
111
|
rubygems_version: 3.6.9
|
44
112
|
specification_version: 4
|
45
|
-
summary:
|
113
|
+
summary: Manage Apache Kafka clusters and resources.
|
46
114
|
test_files: []
|