google-cloud-memcache-v1beta2 0.1.2 → 0.2.3
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/AUTHENTICATION.md +8 -8
- data/LICENSE.md +188 -190
- data/README.md +67 -3
- data/lib/google/cloud/memcache/v1beta2.rb +3 -0
- data/lib/google/cloud/memcache/v1beta2/cloud_memcache.rb +1 -1
- data/lib/google/cloud/memcache/v1beta2/cloud_memcache/client.rb +172 -71
- data/lib/google/cloud/memcache/v1beta2/cloud_memcache/operations.rb +124 -30
- data/lib/google/cloud/memcache/v1beta2/cloud_memcache_pb.rb +8 -0
- data/lib/google/cloud/memcache/v1beta2/cloud_memcache_services_pb.rb +18 -16
- data/lib/google/cloud/memcache/v1beta2/version.rb +1 -1
- data/proto_docs/google/api/field_behavior.rb +12 -0
- data/proto_docs/google/api/resource.rb +50 -14
- data/proto_docs/google/cloud/memcache/v1beta2/cloud_memcache.rb +72 -45
- data/proto_docs/google/longrunning/operations.rb +17 -3
- data/proto_docs/google/protobuf/any.rb +5 -2
- data/proto_docs/google/protobuf/duration.rb +98 -0
- data/proto_docs/google/protobuf/timestamp.rb +10 -1
- metadata +20 -11
@@ -21,34 +21,35 @@ module Google
|
|
21
21
|
module Cloud
|
22
22
|
module Memcache
|
23
23
|
module V1beta2
|
24
|
+
# A Memorystore for Memcached instance
|
24
25
|
# @!attribute [rw] name
|
25
26
|
# @return [::String]
|
26
27
|
# Required. Unique name of the resource in this scope including project and
|
27
28
|
# location using the form:
|
28
29
|
# `projects/{project_id}/locations/{location_id}/instances/{instance_id}`
|
29
30
|
#
|
30
|
-
# Note: Memcached instances are managed and addressed at regional level
|
31
|
-
# location_id here refers to a
|
32
|
-
# zones Memcached nodes
|
33
|
-
# Refer to
|
31
|
+
# Note: Memcached instances are managed and addressed at the regional level
|
32
|
+
# so `location_id` here refers to a Google Cloud region; however, users may
|
33
|
+
# choose which zones Memcached nodes should be provisioned in within an
|
34
|
+
# instance. Refer to {::Google::Cloud::Memcache::V1beta2::Instance#zones zones} field for more details.
|
34
35
|
# @!attribute [rw] display_name
|
35
36
|
# @return [::String]
|
36
|
-
#
|
37
|
+
# User provided name for the instance, which is only used for display
|
37
38
|
# purposes. Cannot be more than 80 characters.
|
38
39
|
# @!attribute [rw] labels
|
39
40
|
# @return [::Google::Protobuf::Map{::String => ::String}]
|
40
|
-
#
|
41
|
+
# Resource labels to represent user-provided metadata.
|
41
42
|
# Refer to cloud documentation on labels for more details.
|
42
43
|
# https://cloud.google.com/compute/docs/labeling-resources
|
43
44
|
# @!attribute [rw] authorized_network
|
44
45
|
# @return [::String]
|
45
|
-
#
|
46
|
+
# The full name of the Google Compute Engine
|
46
47
|
# [network](https://cloud.google.com/vpc/docs/vpc) to which the
|
47
48
|
# instance is connected. If left unspecified, the `default` network
|
48
49
|
# will be used.
|
49
50
|
# @!attribute [rw] zones
|
50
51
|
# @return [::Array<::String>]
|
51
|
-
#
|
52
|
+
# Zones in which Memcached nodes should be provisioned.
|
52
53
|
# Memcached nodes will be equally distributed across these zones. If not
|
53
54
|
# provided, the service will by default create nodes in all zones in the
|
54
55
|
# region for the instance.
|
@@ -60,9 +61,9 @@ module Google
|
|
60
61
|
# Required. Configuration for Memcached nodes.
|
61
62
|
# @!attribute [rw] memcache_version
|
62
63
|
# @return [::Google::Cloud::Memcache::V1beta2::MemcacheVersion]
|
63
|
-
#
|
64
|
+
# The major version of Memcached software.
|
64
65
|
# If not provided, latest supported version will be used. Currently the
|
65
|
-
# latest supported major version is MEMCACHE_1_5
|
66
|
+
# latest supported major version is `MEMCACHE_1_5`.
|
66
67
|
# The minor version will be automatically determined by our system based on
|
67
68
|
# the latest supported minor version.
|
68
69
|
# @!attribute [rw] parameters
|
@@ -72,7 +73,7 @@ module Google
|
|
72
73
|
# @!attribute [r] memcache_nodes
|
73
74
|
# @return [::Array<::Google::Cloud::Memcache::V1beta2::Instance::Node>]
|
74
75
|
# Output only. List of Memcached nodes.
|
75
|
-
# Refer to
|
76
|
+
# Refer to {::Google::Cloud::Memcache::V1beta2::Instance::Node Node} message for more details.
|
76
77
|
# @!attribute [r] create_time
|
77
78
|
# @return [::Google::Protobuf::Timestamp]
|
78
79
|
# Output only. The time the instance was created.
|
@@ -90,10 +91,13 @@ module Google
|
|
90
91
|
# The full version format will be "memcached-1.5.16".
|
91
92
|
# @!attribute [rw] instance_messages
|
92
93
|
# @return [::Array<::Google::Cloud::Memcache::V1beta2::Instance::InstanceMessage>]
|
93
|
-
# List of messages that describe current
|
94
|
+
# List of messages that describe the current state of the Memcached instance.
|
94
95
|
# @!attribute [r] discovery_endpoint
|
95
96
|
# @return [::String]
|
96
|
-
# Output only. Endpoint for Discovery API
|
97
|
+
# Output only. Endpoint for the Discovery API.
|
98
|
+
# @!attribute [r] update_available
|
99
|
+
# @return [::Boolean]
|
100
|
+
# Output only. Returns true if there is an update waiting to be applied
|
97
101
|
class Instance
|
98
102
|
include ::Google::Protobuf::MessageExts
|
99
103
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
@@ -130,12 +134,14 @@ module Google
|
|
130
134
|
# @!attribute [rw] parameters
|
131
135
|
# @return [::Google::Cloud::Memcache::V1beta2::MemcacheParameters]
|
132
136
|
# User defined parameters currently applied to the node.
|
137
|
+
# @!attribute [r] update_available
|
138
|
+
# @return [::Boolean]
|
139
|
+
# Output only. Returns true if there is an update waiting to be applied
|
133
140
|
class Node
|
134
141
|
include ::Google::Protobuf::MessageExts
|
135
142
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
136
143
|
|
137
144
|
# Different states of a Memcached node.
|
138
|
-
# LINT.IfChange
|
139
145
|
module State
|
140
146
|
# Node state is not set.
|
141
147
|
STATE_UNSPECIFIED = 0
|
@@ -183,7 +189,6 @@ module Google
|
|
183
189
|
end
|
184
190
|
|
185
191
|
# Different states of a Memcached instance.
|
186
|
-
# LINT.IfChange
|
187
192
|
module State
|
188
193
|
# State not set.
|
189
194
|
STATE_UNSPECIFIED = 0
|
@@ -213,18 +218,17 @@ module Google
|
|
213
218
|
# The maximum number of items to return.
|
214
219
|
#
|
215
220
|
# If not specified, a default value of 1000 will be used by the service.
|
216
|
-
# Regardless of the page_size value, the response may include a partial
|
217
|
-
# and a caller should only rely on response's
|
218
|
-
#
|
221
|
+
# Regardless of the `page_size` value, the response may include a partial
|
222
|
+
# list and a caller should only rely on response's
|
223
|
+
# {::Google::Cloud::Memcache::V1beta2::ListInstancesResponse#next_page_token `next_page_token`}
|
219
224
|
# to determine if there are more instances left to be queried.
|
220
225
|
# @!attribute [rw] page_token
|
221
226
|
# @return [::String]
|
222
|
-
# The next_page_token value returned from a previous List request,
|
223
|
-
# if any.
|
227
|
+
# The `next_page_token` value returned from a previous List request, if any.
|
224
228
|
# @!attribute [rw] filter
|
225
229
|
# @return [::String]
|
226
230
|
# List filter. For example, exclude all Memcached instances with name as
|
227
|
-
# my-instance by specifying "name != my-instance"
|
231
|
+
# my-instance by specifying `"name != my-instance"`.
|
228
232
|
# @!attribute [rw] order_by
|
229
233
|
# @return [::String]
|
230
234
|
# Sort results. Supported values are "name", "name desc" or "" (unsorted).
|
@@ -279,7 +283,9 @@ module Google
|
|
279
283
|
# * Must start with a letter.
|
280
284
|
# * Must be between 1-40 characters.
|
281
285
|
# * Must end with a number or a letter.
|
282
|
-
# * Must be unique within the user project / location
|
286
|
+
# * Must be unique within the user project / location.
|
287
|
+
#
|
288
|
+
# If any of the above are not met, the API raises an invalid argument error.
|
283
289
|
# @!attribute [rw] resource
|
284
290
|
# @return [::Google::Cloud::Memcache::V1beta2::Instance]
|
285
291
|
# Required. A Memcached [Instance] resource
|
@@ -292,7 +298,7 @@ module Google
|
|
292
298
|
# @!attribute [rw] update_mask
|
293
299
|
# @return [::Google::Protobuf::FieldMask]
|
294
300
|
# Required. Mask of fields to update.
|
295
|
-
# *
|
301
|
+
# * `displayName`
|
296
302
|
# @!attribute [rw] resource
|
297
303
|
# @return [::Google::Cloud::Memcache::V1beta2::Instance]
|
298
304
|
# Required. A Memcached [Instance] resource.
|
@@ -305,7 +311,7 @@ module Google
|
|
305
311
|
# Request for {::Google::Cloud::Memcache::V1beta2::CloudMemcache::Client#delete_instance DeleteInstance}.
|
306
312
|
# @!attribute [rw] name
|
307
313
|
# @return [::String]
|
308
|
-
# Memcached instance resource name in the format:
|
314
|
+
# Required. Memcached instance resource name in the format:
|
309
315
|
# `projects/{project_id}/locations/{location_id}/instances/{instance_id}`
|
310
316
|
# where `location_id` refers to a GCP region
|
311
317
|
class DeleteInstanceRequest
|
@@ -320,12 +326,12 @@ module Google
|
|
320
326
|
# should be applied.
|
321
327
|
# @!attribute [rw] node_ids
|
322
328
|
# @return [::Array<::String>]
|
323
|
-
# Nodes to which
|
329
|
+
# Nodes to which the instance-level parameter group is applied.
|
324
330
|
# @!attribute [rw] apply_all
|
325
331
|
# @return [::Boolean]
|
326
332
|
# Whether to apply instance-level parameter group to all nodes. If set to
|
327
|
-
# true,
|
328
|
-
#
|
333
|
+
# true, users are restricted from specifying individual nodes, and
|
334
|
+
# `ApplyParameters` updates all nodes within the instance.
|
329
335
|
class ApplyParametersRequest
|
330
336
|
include ::Google::Protobuf::MessageExts
|
331
337
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
@@ -347,12 +353,33 @@ module Google
|
|
347
353
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
348
354
|
end
|
349
355
|
|
356
|
+
# Request for {::Google::Cloud::Memcache::V1beta2::CloudMemcache::Client#apply_software_update ApplySoftwareUpdate}.
|
357
|
+
# @!attribute [rw] instance
|
358
|
+
# @return [::String]
|
359
|
+
# Required. Resource name of the Memcached instance for which software update should be
|
360
|
+
# applied.
|
361
|
+
# @!attribute [rw] node_ids
|
362
|
+
# @return [::Array<::String>]
|
363
|
+
# Nodes to which we should apply the update to. Note all the selected nodes
|
364
|
+
# are updated in parallel.
|
365
|
+
# @!attribute [rw] apply_all
|
366
|
+
# @return [::Boolean]
|
367
|
+
# Whether to apply the update to all nodes. If set to
|
368
|
+
# true, will explicitly restrict users from specifying any nodes, and apply
|
369
|
+
# software update to all nodes (where applicable) within the instance.
|
370
|
+
class ApplySoftwareUpdateRequest
|
371
|
+
include ::Google::Protobuf::MessageExts
|
372
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
373
|
+
end
|
374
|
+
|
375
|
+
# The unique ID associated with this set of parameters. Users
|
376
|
+
# can use this id to determine if the parameters associated with the instance
|
377
|
+
# differ from the parameters associated with the nodes. A discrepancy between
|
378
|
+
# parameter ids can inform users that they may need to take action to apply
|
379
|
+
# parameters on nodes.
|
350
380
|
# @!attribute [r] id
|
351
381
|
# @return [::String]
|
352
|
-
# Output only.
|
353
|
-
# can use this id to determine if the parameters associated with the instance
|
354
|
-
# differ from the parameters associated with the nodes and any action needs
|
355
|
-
# to be taken to apply parameters on nodes.
|
382
|
+
# Output only.
|
356
383
|
# @!attribute [rw] params
|
357
384
|
# @return [::Google::Protobuf::Map{::String => ::String}]
|
358
385
|
# User defined set of parameters to use in the memcached process.
|
@@ -371,30 +398,30 @@ module Google
|
|
371
398
|
end
|
372
399
|
|
373
400
|
# Represents the metadata of a long-running operation.
|
374
|
-
# @!attribute [
|
401
|
+
# @!attribute [r] create_time
|
375
402
|
# @return [::Google::Protobuf::Timestamp]
|
376
|
-
# Time when the operation was created.
|
377
|
-
# @!attribute [
|
403
|
+
# Output only. Time when the operation was created.
|
404
|
+
# @!attribute [r] end_time
|
378
405
|
# @return [::Google::Protobuf::Timestamp]
|
379
|
-
# Time when the operation finished running.
|
380
|
-
# @!attribute [
|
406
|
+
# Output only. Time when the operation finished running.
|
407
|
+
# @!attribute [r] target
|
381
408
|
# @return [::String]
|
382
|
-
# Server-defined resource path for the target of the operation.
|
383
|
-
# @!attribute [
|
409
|
+
# Output only. Server-defined resource path for the target of the operation.
|
410
|
+
# @!attribute [r] verb
|
384
411
|
# @return [::String]
|
385
|
-
# Name of the verb executed by the operation.
|
386
|
-
# @!attribute [
|
412
|
+
# Output only. Name of the verb executed by the operation.
|
413
|
+
# @!attribute [r] status_detail
|
387
414
|
# @return [::String]
|
388
|
-
# Human-readable status of the operation, if any.
|
389
|
-
# @!attribute [
|
415
|
+
# Output only. Human-readable status of the operation, if any.
|
416
|
+
# @!attribute [r] cancel_requested
|
390
417
|
# @return [::Boolean]
|
391
|
-
# Identifies whether the user has requested cancellation
|
418
|
+
# Output only. Identifies whether the user has requested cancellation
|
392
419
|
# of the operation. Operations that have successfully been cancelled
|
393
420
|
# have [Operation.error][] value with a {::Google::Rpc::Status#code google.rpc.Status.code} of 1,
|
394
421
|
# corresponding to `Code.CANCELLED`.
|
395
|
-
# @!attribute [
|
422
|
+
# @!attribute [r] api_version
|
396
423
|
# @return [::String]
|
397
|
-
# API version used to start the operation.
|
424
|
+
# Output only. API version used to start the operation.
|
398
425
|
class OperationMetadata
|
399
426
|
include ::Google::Protobuf::MessageExts
|
400
427
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
@@ -25,7 +25,7 @@ module Google
|
|
25
25
|
# @return [::String]
|
26
26
|
# The server-assigned name, which is only unique within the same service that
|
27
27
|
# originally returns it. If you use the default HTTP mapping, the
|
28
|
-
# `name` should
|
28
|
+
# `name` should be a resource name ending with `operations/{unique_id}`.
|
29
29
|
# @!attribute [rw] metadata
|
30
30
|
# @return [::Google::Protobuf::Any]
|
31
31
|
# Service-specific metadata associated with the operation. It typically
|
@@ -35,7 +35,7 @@ module Google
|
|
35
35
|
# @!attribute [rw] done
|
36
36
|
# @return [::Boolean]
|
37
37
|
# If the value is `false`, it means the operation is still in progress.
|
38
|
-
# If true
|
38
|
+
# If `true`, the operation is completed, and either `error` or `response` is
|
39
39
|
# available.
|
40
40
|
# @!attribute [rw] error
|
41
41
|
# @return [::Google::Rpc::Status]
|
@@ -67,7 +67,7 @@ module Google
|
|
67
67
|
# The request message for Operations.ListOperations.
|
68
68
|
# @!attribute [rw] name
|
69
69
|
# @return [::String]
|
70
|
-
# The name of the operation
|
70
|
+
# The name of the operation's parent resource.
|
71
71
|
# @!attribute [rw] filter
|
72
72
|
# @return [::String]
|
73
73
|
# The standard list filter.
|
@@ -112,6 +112,20 @@ module Google
|
|
112
112
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
113
113
|
end
|
114
114
|
|
115
|
+
# The request message for Operations.WaitOperation.
|
116
|
+
# @!attribute [rw] name
|
117
|
+
# @return [::String]
|
118
|
+
# The name of the operation resource to wait on.
|
119
|
+
# @!attribute [rw] timeout
|
120
|
+
# @return [::Google::Protobuf::Duration]
|
121
|
+
# The maximum duration to wait before timing out. If left blank, the wait
|
122
|
+
# will be at most the time permitted by the underlying HTTP/RPC protocol.
|
123
|
+
# If RPC context deadline is also specified, the shorter one will be used.
|
124
|
+
class WaitOperationRequest
|
125
|
+
include ::Google::Protobuf::MessageExts
|
126
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
127
|
+
end
|
128
|
+
|
115
129
|
# A message representing the message types used by a long-running operation.
|
116
130
|
#
|
117
131
|
# Example:
|
@@ -57,10 +57,13 @@ module Google
|
|
57
57
|
# Example 4: Pack and unpack a message in Go
|
58
58
|
#
|
59
59
|
# foo := &pb.Foo{...}
|
60
|
-
# any, err :=
|
60
|
+
# any, err := anypb.New(foo)
|
61
|
+
# if err != nil {
|
62
|
+
# ...
|
63
|
+
# }
|
61
64
|
# ...
|
62
65
|
# foo := &pb.Foo{}
|
63
|
-
# if err :=
|
66
|
+
# if err := any.UnmarshalTo(foo); err != nil {
|
64
67
|
# ...
|
65
68
|
# }
|
66
69
|
#
|
@@ -0,0 +1,98 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# Copyright 2021 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
|
@@ -70,7 +70,16 @@ module Google
|
|
70
70
|
# .setNanos((int) ((millis % 1000) * 1000000)).build();
|
71
71
|
#
|
72
72
|
#
|
73
|
-
# Example 5: Compute Timestamp from
|
73
|
+
# Example 5: Compute Timestamp from Java `Instant.now()`.
|
74
|
+
#
|
75
|
+
# Instant now = Instant.now();
|
76
|
+
#
|
77
|
+
# Timestamp timestamp =
|
78
|
+
# Timestamp.newBuilder().setSeconds(now.getEpochSecond())
|
79
|
+
# .setNanos(now.getNano()).build();
|
80
|
+
#
|
81
|
+
#
|
82
|
+
# Example 6: Compute Timestamp from current time in Python.
|
74
83
|
#
|
75
84
|
# timestamp = Timestamp()
|
76
85
|
# timestamp.GetCurrentTime()
|
metadata
CHANGED
@@ -1,29 +1,35 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-cloud-memcache-v1beta2
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.2.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Google LLC
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2021-08-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: gapic-common
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- - "
|
17
|
+
- - ">="
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '0.7'
|
20
|
+
- - "<"
|
18
21
|
- !ruby/object:Gem::Version
|
19
|
-
version:
|
22
|
+
version: 2.a
|
20
23
|
type: :runtime
|
21
24
|
prerelease: false
|
22
25
|
version_requirements: !ruby/object:Gem::Requirement
|
23
26
|
requirements:
|
24
|
-
- - "
|
27
|
+
- - ">="
|
28
|
+
- !ruby/object:Gem::Version
|
29
|
+
version: '0.7'
|
30
|
+
- - "<"
|
25
31
|
- !ruby/object:Gem::Version
|
26
|
-
version:
|
32
|
+
version: 2.a
|
27
33
|
- !ruby/object:Gem::Dependency
|
28
34
|
name: google-cloud-errors
|
29
35
|
requirement: !ruby/object:Gem::Requirement
|
@@ -44,14 +50,14 @@ dependencies:
|
|
44
50
|
requirements:
|
45
51
|
- - "~>"
|
46
52
|
- !ruby/object:Gem::Version
|
47
|
-
version: 1.
|
53
|
+
version: 1.25.1
|
48
54
|
type: :development
|
49
55
|
prerelease: false
|
50
56
|
version_requirements: !ruby/object:Gem::Requirement
|
51
57
|
requirements:
|
52
58
|
- - "~>"
|
53
59
|
- !ruby/object:Gem::Version
|
54
|
-
version: 1.
|
60
|
+
version: 1.25.1
|
55
61
|
- !ruby/object:Gem::Dependency
|
56
62
|
name: minitest
|
57
63
|
requirement: !ruby/object:Gem::Requirement
|
@@ -151,7 +157,9 @@ dependencies:
|
|
151
157
|
- !ruby/object:Gem::Version
|
152
158
|
version: '0.9'
|
153
159
|
description: Google Cloud Memorystore for Memcached API is used for creating and managing
|
154
|
-
Memcached instances in GCP.
|
160
|
+
Memcached instances in GCP. Note that google-cloud-memcache-v1beta2 is a version-specific
|
161
|
+
client library. For most uses, we recommend installing the main client library google-cloud-memcache
|
162
|
+
instead. See the readme for more details.
|
155
163
|
email: googleapis-packages@google.com
|
156
164
|
executables: []
|
157
165
|
extensions: []
|
@@ -177,6 +185,7 @@ files:
|
|
177
185
|
- proto_docs/google/cloud/memcache/v1beta2/cloud_memcache.rb
|
178
186
|
- proto_docs/google/longrunning/operations.rb
|
179
187
|
- proto_docs/google/protobuf/any.rb
|
188
|
+
- proto_docs/google/protobuf/duration.rb
|
180
189
|
- proto_docs/google/protobuf/empty.rb
|
181
190
|
- proto_docs/google/protobuf/field_mask.rb
|
182
191
|
- proto_docs/google/protobuf/timestamp.rb
|
@@ -193,14 +202,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
193
202
|
requirements:
|
194
203
|
- - ">="
|
195
204
|
- !ruby/object:Gem::Version
|
196
|
-
version: '2.
|
205
|
+
version: '2.5'
|
197
206
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
198
207
|
requirements:
|
199
208
|
- - ">="
|
200
209
|
- !ruby/object:Gem::Version
|
201
210
|
version: '0'
|
202
211
|
requirements: []
|
203
|
-
rubygems_version: 3.
|
212
|
+
rubygems_version: 3.2.17
|
204
213
|
signing_key:
|
205
214
|
specification_version: 4
|
206
215
|
summary: API Client library for the Google Cloud Memorystore for Memcached API
|