google-cloud-service_directory-v1beta1 0.4.5 → 0.7.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/LICENSE.md +188 -190
- data/README.md +66 -2
- data/lib/google/cloud/service_directory/v1beta1.rb +3 -0
- data/lib/google/cloud/service_directory/v1beta1/lookup_service/client.rb +44 -23
- data/lib/google/cloud/service_directory/v1beta1/registration_service/client.rb +152 -108
- data/lib/google/cloud/service_directory/v1beta1/registration_service/paths.rb +17 -0
- data/lib/google/cloud/service_directory/v1beta1/version.rb +1 -1
- data/lib/google/cloud/servicedirectory/v1beta1/endpoint_pb.rb +4 -0
- data/lib/google/cloud/servicedirectory/v1beta1/lookup_service_services_pb.rb +2 -2
- data/lib/google/cloud/servicedirectory/v1beta1/namespace_pb.rb +3 -0
- data/lib/google/cloud/servicedirectory/v1beta1/registration_service_services_pb.rb +25 -25
- data/lib/google/cloud/servicedirectory/v1beta1/service_pb.rb +3 -0
- data/proto_docs/google/api/field_behavior.rb +6 -0
- data/proto_docs/google/api/resource.rb +50 -14
- data/proto_docs/google/cloud/servicedirectory/v1beta1/endpoint.rb +48 -12
- data/proto_docs/google/cloud/servicedirectory/v1beta1/lookup_service.rb +29 -14
- data/proto_docs/google/cloud/servicedirectory/v1beta1/namespace.rb +9 -3
- data/proto_docs/google/cloud/servicedirectory/v1beta1/registration_service.rb +115 -77
- data/proto_docs/google/cloud/servicedirectory/v1beta1/service.rb +35 -6
- data/proto_docs/google/protobuf/timestamp.rb +129 -0
- metadata +22 -13
@@ -46,8 +46,8 @@ module Google
|
|
46
46
|
# The request message for {::Google::Cloud::ServiceDirectory::V1beta1::RegistrationService::Client#list_namespaces RegistrationService.ListNamespaces}.
|
47
47
|
# @!attribute [rw] parent
|
48
48
|
# @return [::String]
|
49
|
-
# Required. The resource name of the project and location whose namespaces
|
50
|
-
# list.
|
49
|
+
# Required. The resource name of the project and location whose namespaces you'd like
|
50
|
+
# to list.
|
51
51
|
# @!attribute [rw] page_size
|
52
52
|
# @return [::Integer]
|
53
53
|
# Optional. The maximum number of items to return.
|
@@ -56,40 +56,45 @@ module Google
|
|
56
56
|
# Optional. The next_page_token value returned from a previous List request, if any.
|
57
57
|
# @!attribute [rw] filter
|
58
58
|
# @return [::String]
|
59
|
-
# Optional. The filter to list
|
59
|
+
# Optional. The filter to list results by.
|
60
|
+
#
|
61
|
+
# General `filter` string syntax:
|
62
|
+
# `<field> <operator> <value> (<logical connector>)`
|
60
63
|
#
|
61
|
-
#
|
62
|
-
#
|
63
|
-
#
|
64
|
-
#
|
65
|
-
#
|
66
|
-
# <value> must be the same data type as field.
|
67
|
-
# <logical connector> can be "AND, OR, NOT".
|
64
|
+
# * `<field>` can be `name` or `labels.<key>` for map field
|
65
|
+
# * `<operator>` can be `<`, `>`, `<=`, `>=`, `!=`, `=`, `:`. Of which `:`
|
66
|
+
# means `HAS`, and is roughly the same as `=`
|
67
|
+
# * `<value>` must be the same data type as field
|
68
|
+
# * `<logical connector>` can be `AND`, `OR`, `NOT`
|
68
69
|
#
|
69
70
|
# Examples of valid filters:
|
70
|
-
#
|
71
|
-
#
|
72
|
-
#
|
73
|
-
#
|
74
|
-
# *
|
75
|
-
#
|
76
|
-
#
|
77
|
-
# *
|
78
|
-
#
|
79
|
-
# *
|
80
|
-
#
|
81
|
-
#
|
71
|
+
#
|
72
|
+
# * `labels.owner` returns namespaces that have a label with the key
|
73
|
+
# `owner`, this is the same as `labels:owner`
|
74
|
+
# * `labels.owner=sd` returns namespaces that have key/value `owner=sd`
|
75
|
+
# * `name>projects/my-project/locations/us-east1/namespaces/namespace-c`
|
76
|
+
# returns namespaces that have name that is alphabetically later than the
|
77
|
+
# string, so "namespace-e" is returned but "namespace-a" is not
|
78
|
+
# * `labels.owner!=sd AND labels.foo=bar` returns namespaces that have
|
79
|
+
# `owner` in label key but value is not `sd` AND have key/value `foo=bar`
|
80
|
+
# * `doesnotexist.foo=bar` returns an empty list. Note that namespace
|
81
|
+
# doesn't have a field called "doesnotexist". Since the filter does not
|
82
|
+
# match any namespaces, it returns no results
|
83
|
+
#
|
84
|
+
# For more information about filtering, see
|
85
|
+
# [API Filtering](https://aip.dev/160).
|
82
86
|
# @!attribute [rw] order_by
|
83
87
|
# @return [::String]
|
84
|
-
# Optional. The order to list
|
88
|
+
# Optional. The order to list results by.
|
89
|
+
#
|
90
|
+
# General `order_by` string syntax: `<field> (<asc|desc>) (,)`
|
85
91
|
#
|
86
|
-
#
|
87
|
-
#
|
88
|
-
#
|
89
|
-
#
|
90
|
-
#
|
91
|
-
#
|
92
|
-
# by name in ascending order.
|
92
|
+
# * `<field>` allows value: `name`
|
93
|
+
# * `<asc|desc>` ascending or descending order by `<field>`. If this is
|
94
|
+
# left blank, `asc` is used
|
95
|
+
#
|
96
|
+
# Note that an empty `order_by` string results in default order, which is
|
97
|
+
# order by `name` in ascending order.
|
93
98
|
class ListNamespacesRequest
|
94
99
|
include ::Google::Protobuf::MessageExts
|
95
100
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
@@ -162,7 +167,7 @@ module Google
|
|
162
167
|
# The request message for {::Google::Cloud::ServiceDirectory::V1beta1::RegistrationService::Client#list_services RegistrationService.ListServices}.
|
163
168
|
# @!attribute [rw] parent
|
164
169
|
# @return [::String]
|
165
|
-
# Required. The resource name of the namespace whose services
|
170
|
+
# Required. The resource name of the namespace whose services you'd
|
166
171
|
# like to list.
|
167
172
|
# @!attribute [rw] page_size
|
168
173
|
# @return [::Integer]
|
@@ -173,32 +178,48 @@ module Google
|
|
173
178
|
# if any.
|
174
179
|
# @!attribute [rw] filter
|
175
180
|
# @return [::String]
|
176
|
-
# Optional. The filter to list
|
181
|
+
# Optional. The filter to list results by.
|
182
|
+
#
|
183
|
+
# General `filter` string syntax:
|
184
|
+
# `<field> <operator> <value> (<logical connector>)`
|
177
185
|
#
|
178
|
-
#
|
179
|
-
#
|
180
|
-
#
|
181
|
-
#
|
182
|
-
#
|
183
|
-
# <value> must be the same data type as field.
|
184
|
-
# <logical connector> can be "AND, OR, NOT".
|
186
|
+
# * `<field>` can be `name` or `metadata.<key>` for map field
|
187
|
+
# * `<operator>` can be `<`, `>`, `<=`, `>=`, `!=`, `=`, `:`. Of which `:`
|
188
|
+
# means `HAS`, and is roughly the same as `=`
|
189
|
+
# * `<value>` must be the same data type as field
|
190
|
+
# * `<logical connector>` can be `AND`, `OR`, `NOT`
|
185
191
|
#
|
186
192
|
# Examples of valid filters:
|
187
|
-
#
|
188
|
-
#
|
189
|
-
#
|
190
|
-
#
|
191
|
-
#
|
192
|
-
#
|
193
|
-
#
|
194
|
-
#
|
195
|
-
#
|
196
|
-
# *
|
197
|
-
#
|
198
|
-
#
|
193
|
+
#
|
194
|
+
# * `metadata.owner` returns services that have a metadata with the key
|
195
|
+
# `owner`, this is the same as `metadata:owner`
|
196
|
+
# * `metadata.protocol=gRPC` returns services that have key/value
|
197
|
+
# `protocol=gRPC`
|
198
|
+
# *
|
199
|
+
# `name>projects/my-project/locations/us-east1/namespaces/my-namespace/services/service-c`
|
200
|
+
# returns services that have name that is alphabetically later than the
|
201
|
+
# string, so "service-e" is returned but "service-a" is not
|
202
|
+
# * `metadata.owner!=sd AND metadata.foo=bar` returns services that have
|
203
|
+
# `owner` in metadata key but value is not `sd` AND have key/value
|
204
|
+
# `foo=bar`
|
205
|
+
# * `doesnotexist.foo=bar` returns an empty list. Note that service
|
206
|
+
# doesn't have a field called "doesnotexist". Since the filter does not
|
207
|
+
# match any services, it returns no results
|
208
|
+
#
|
209
|
+
# For more information about filtering, see
|
210
|
+
# [API Filtering](https://aip.dev/160).
|
199
211
|
# @!attribute [rw] order_by
|
200
212
|
# @return [::String]
|
201
|
-
# Optional. The order to list
|
213
|
+
# Optional. The order to list results by.
|
214
|
+
#
|
215
|
+
# General `order_by` string syntax: `<field> (<asc|desc>) (,)`
|
216
|
+
#
|
217
|
+
# * `<field>` allows value: `name`
|
218
|
+
# * `<asc|desc>` ascending or descending order by `<field>`. If this is
|
219
|
+
# left blank, `asc` is used
|
220
|
+
#
|
221
|
+
# Note that an empty `order_by` string results in default order, which is
|
222
|
+
# order by `name` in ascending order.
|
202
223
|
class ListServicesRequest
|
203
224
|
include ::Google::Protobuf::MessageExts
|
204
225
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
@@ -219,7 +240,7 @@ module Google
|
|
219
240
|
|
220
241
|
# The request message for {::Google::Cloud::ServiceDirectory::V1beta1::RegistrationService::Client#get_service RegistrationService.GetService}.
|
221
242
|
# This should not be used for looking up a service. Insead, use the `resolve`
|
222
|
-
# method as it
|
243
|
+
# method as it contains all endpoints and associated metadata.
|
223
244
|
# @!attribute [rw] name
|
224
245
|
# @return [::String]
|
225
246
|
# Required. The name of the service to get.
|
@@ -273,7 +294,7 @@ module Google
|
|
273
294
|
# The request message for {::Google::Cloud::ServiceDirectory::V1beta1::RegistrationService::Client#list_endpoints RegistrationService.ListEndpoints}.
|
274
295
|
# @!attribute [rw] parent
|
275
296
|
# @return [::String]
|
276
|
-
# Required. The resource name of the service whose endpoints
|
297
|
+
# Required. The resource name of the service whose endpoints you'd like to
|
277
298
|
# list.
|
278
299
|
# @!attribute [rw] page_size
|
279
300
|
# @return [::Integer]
|
@@ -284,34 +305,51 @@ module Google
|
|
284
305
|
# if any.
|
285
306
|
# @!attribute [rw] filter
|
286
307
|
# @return [::String]
|
287
|
-
# Optional. The filter to list
|
308
|
+
# Optional. The filter to list results by.
|
288
309
|
#
|
289
|
-
# General filter string syntax:
|
290
|
-
#
|
291
|
-
#
|
292
|
-
#
|
293
|
-
#
|
294
|
-
#
|
295
|
-
#
|
310
|
+
# General `filter` string syntax:
|
311
|
+
# `<field> <operator> <value> (<logical connector>)`
|
312
|
+
#
|
313
|
+
# * `<field>` can be `name`, `address`, `port`, or `metadata.<key>` for map
|
314
|
+
# field
|
315
|
+
# * `<operator>` can be `<`, `>`, `<=`, `>=`, `!=`, `=`, `:`. Of which `:`
|
316
|
+
# means `HAS`, and is roughly the same as `=`
|
317
|
+
# * `<value>` must be the same data type as field
|
318
|
+
# * `<logical connector>` can be `AND`, `OR`, `NOT`
|
296
319
|
#
|
297
320
|
# Examples of valid filters:
|
298
|
-
#
|
299
|
-
#
|
300
|
-
#
|
301
|
-
#
|
302
|
-
#
|
303
|
-
# *
|
304
|
-
# *
|
305
|
-
#
|
306
|
-
#
|
307
|
-
#
|
308
|
-
#
|
309
|
-
# *
|
310
|
-
#
|
311
|
-
#
|
321
|
+
#
|
322
|
+
# * `metadata.owner` returns endpoints that have a metadata with the key
|
323
|
+
# `owner`, this is the same as `metadata:owner`
|
324
|
+
# * `metadata.protocol=gRPC` returns endpoints that have key/value
|
325
|
+
# `protocol=gRPC`
|
326
|
+
# * `address=192.108.1.105` returns endpoints that have this address
|
327
|
+
# * `port>8080` returns endpoints that have port number larger than 8080
|
328
|
+
# *
|
329
|
+
# `name>projects/my-project/locations/us-east1/namespaces/my-namespace/services/my-service/endpoints/endpoint-c`
|
330
|
+
# returns endpoints that have name that is alphabetically later than the
|
331
|
+
# string, so "endpoint-e" is returned but "endpoint-a" is not
|
332
|
+
# * `metadata.owner!=sd AND metadata.foo=bar` returns endpoints that have
|
333
|
+
# `owner` in metadata key but value is not `sd` AND have key/value
|
334
|
+
# `foo=bar`
|
335
|
+
# * `doesnotexist.foo=bar` returns an empty list. Note that endpoint
|
336
|
+
# doesn't have a field called "doesnotexist". Since the filter does not
|
337
|
+
# match any endpoints, it returns no results
|
338
|
+
#
|
339
|
+
# For more information about filtering, see
|
340
|
+
# [API Filtering](https://aip.dev/160).
|
312
341
|
# @!attribute [rw] order_by
|
313
342
|
# @return [::String]
|
314
|
-
# Optional. The order to list
|
343
|
+
# Optional. The order to list results by.
|
344
|
+
#
|
345
|
+
# General `order_by` string syntax: `<field> (<asc|desc>) (,)`
|
346
|
+
#
|
347
|
+
# * `<field>` allows values: `name`, `address`, `port`
|
348
|
+
# * `<asc|desc>` ascending or descending order by `<field>`. If this is
|
349
|
+
# left blank, `asc` is used
|
350
|
+
#
|
351
|
+
# Note that an empty `order_by` string results in default order, which is
|
352
|
+
# order by `name` in ascending order.
|
315
353
|
class ListEndpointsRequest
|
316
354
|
include ::Google::Protobuf::MessageExts
|
317
355
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
@@ -28,17 +28,46 @@ module Google
|
|
28
28
|
# @!attribute [rw] name
|
29
29
|
# @return [::String]
|
30
30
|
# Immutable. The resource name for the service in the format
|
31
|
-
#
|
31
|
+
# `projects/*/locations/*/namespaces/*/services/*`.
|
32
32
|
# @!attribute [rw] metadata
|
33
33
|
# @return [::Google::Protobuf::Map{::String => ::String}]
|
34
34
|
# Optional. Metadata for the service. This data can be consumed by service
|
35
|
-
# clients.
|
36
|
-
#
|
37
|
-
#
|
35
|
+
# clients.
|
36
|
+
#
|
37
|
+
# Restrictions:
|
38
|
+
#
|
39
|
+
# * The entire metadata dictionary may contain up to 2000 characters,
|
40
|
+
# spread accoss all key-value pairs. Metadata that goes beyond this
|
41
|
+
# limit are rejected
|
42
|
+
# * Valid metadata keys have two segments: an optional prefix and name,
|
43
|
+
# separated by a slash (/). The name segment is required and must be 63
|
44
|
+
# characters or less, beginning and ending with an alphanumeric character
|
45
|
+
# ([a-z0-9A-Z]) with dashes (-), underscores (_), dots (.), and
|
46
|
+
# alphanumerics between. The prefix is optional. If specified, the prefix
|
47
|
+
# must be a DNS subdomain: a series of DNS labels separated by dots (.),
|
48
|
+
# not longer than 253 characters in total, followed by a slash (/).
|
49
|
+
# Metadata that fails to meet these requirements are rejected
|
50
|
+
# * The `(*.)google.com/` and `(*.)googleapis.com/` prefixes are reserved
|
51
|
+
# for system metadata managed by Service Directory. If the user tries
|
52
|
+
# to write to these keyspaces, those entries are silently ignored by
|
53
|
+
# the system
|
54
|
+
#
|
55
|
+
# Note: This field is equivalent to the `annotations` field in the v1 API.
|
56
|
+
# They have the same syntax and read/write to the same location in Service
|
57
|
+
# Directory.
|
38
58
|
# @!attribute [r] endpoints
|
39
59
|
# @return [::Array<::Google::Cloud::ServiceDirectory::V1beta1::Endpoint>]
|
40
|
-
# Output only. Endpoints associated with this service. Returned on
|
41
|
-
# Control plane clients should use
|
60
|
+
# Output only. Endpoints associated with this service. Returned on
|
61
|
+
# {::Google::Cloud::ServiceDirectory::V1beta1::LookupService::Client#resolve_service LookupService.ResolveService}. Control plane clients should use
|
62
|
+
# {::Google::Cloud::ServiceDirectory::V1beta1::RegistrationService::Client#list_endpoints RegistrationService.ListEndpoints}.
|
63
|
+
# @!attribute [r] create_time
|
64
|
+
# @return [::Google::Protobuf::Timestamp]
|
65
|
+
# Output only. The timestamp when the service was created.
|
66
|
+
# @!attribute [r] update_time
|
67
|
+
# @return [::Google::Protobuf::Timestamp]
|
68
|
+
# Output only. The timestamp when the service was last updated. Note: endpoints being
|
69
|
+
# created/deleted/updated within the service are not considered service
|
70
|
+
# updates for the purpose of this timestamp.
|
42
71
|
class Service
|
43
72
|
include ::Google::Protobuf::MessageExts
|
44
73
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
@@ -0,0 +1,129 @@
|
|
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 Timestamp represents a point in time independent of any time zone or local
|
23
|
+
# calendar, encoded as a count of seconds and fractions of seconds at
|
24
|
+
# nanosecond resolution. The count is relative to an epoch at UTC midnight on
|
25
|
+
# January 1, 1970, in the proleptic Gregorian calendar which extends the
|
26
|
+
# Gregorian calendar backwards to year one.
|
27
|
+
#
|
28
|
+
# All minutes are 60 seconds long. Leap seconds are "smeared" so that no leap
|
29
|
+
# second table is needed for interpretation, using a [24-hour linear
|
30
|
+
# smear](https://developers.google.com/time/smear).
|
31
|
+
#
|
32
|
+
# The range is from 0001-01-01T00:00:00Z to 9999-12-31T23:59:59.999999999Z. By
|
33
|
+
# restricting to that range, we ensure that we can convert to and from [RFC
|
34
|
+
# 3339](https://www.ietf.org/rfc/rfc3339.txt) date strings.
|
35
|
+
#
|
36
|
+
# # Examples
|
37
|
+
#
|
38
|
+
# Example 1: Compute Timestamp from POSIX `time()`.
|
39
|
+
#
|
40
|
+
# Timestamp timestamp;
|
41
|
+
# timestamp.set_seconds(time(NULL));
|
42
|
+
# timestamp.set_nanos(0);
|
43
|
+
#
|
44
|
+
# Example 2: Compute Timestamp from POSIX `gettimeofday()`.
|
45
|
+
#
|
46
|
+
# struct timeval tv;
|
47
|
+
# gettimeofday(&tv, NULL);
|
48
|
+
#
|
49
|
+
# Timestamp timestamp;
|
50
|
+
# timestamp.set_seconds(tv.tv_sec);
|
51
|
+
# timestamp.set_nanos(tv.tv_usec * 1000);
|
52
|
+
#
|
53
|
+
# Example 3: Compute Timestamp from Win32 `GetSystemTimeAsFileTime()`.
|
54
|
+
#
|
55
|
+
# FILETIME ft;
|
56
|
+
# GetSystemTimeAsFileTime(&ft);
|
57
|
+
# UINT64 ticks = (((UINT64)ft.dwHighDateTime) << 32) | ft.dwLowDateTime;
|
58
|
+
#
|
59
|
+
# // A Windows tick is 100 nanoseconds. Windows epoch 1601-01-01T00:00:00Z
|
60
|
+
# // is 11644473600 seconds before Unix epoch 1970-01-01T00:00:00Z.
|
61
|
+
# Timestamp timestamp;
|
62
|
+
# timestamp.set_seconds((INT64) ((ticks / 10000000) - 11644473600LL));
|
63
|
+
# timestamp.set_nanos((INT32) ((ticks % 10000000) * 100));
|
64
|
+
#
|
65
|
+
# Example 4: Compute Timestamp from Java `System.currentTimeMillis()`.
|
66
|
+
#
|
67
|
+
# long millis = System.currentTimeMillis();
|
68
|
+
#
|
69
|
+
# Timestamp timestamp = Timestamp.newBuilder().setSeconds(millis / 1000)
|
70
|
+
# .setNanos((int) ((millis % 1000) * 1000000)).build();
|
71
|
+
#
|
72
|
+
#
|
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.
|
83
|
+
#
|
84
|
+
# timestamp = Timestamp()
|
85
|
+
# timestamp.GetCurrentTime()
|
86
|
+
#
|
87
|
+
# # JSON Mapping
|
88
|
+
#
|
89
|
+
# In JSON format, the Timestamp type is encoded as a string in the
|
90
|
+
# [RFC 3339](https://www.ietf.org/rfc/rfc3339.txt) format. That is, the
|
91
|
+
# format is "\\{year}-\\{month}-\\{day}T\\{hour}:\\{min}:\\{sec}[.\\{frac_sec}]Z"
|
92
|
+
# where \\{year} is always expressed using four digits while \\{month}, \\{day},
|
93
|
+
# \\{hour}, \\{min}, and \\{sec} are zero-padded to two digits each. The fractional
|
94
|
+
# seconds, which can go up to 9 digits (i.e. up to 1 nanosecond resolution),
|
95
|
+
# are optional. The "Z" suffix indicates the timezone ("UTC"); the timezone
|
96
|
+
# is required. A proto3 JSON serializer should always use UTC (as indicated by
|
97
|
+
# "Z") when printing the Timestamp type and a proto3 JSON parser should be
|
98
|
+
# able to accept both UTC and other timezones (as indicated by an offset).
|
99
|
+
#
|
100
|
+
# For example, "2017-01-15T01:30:15.01Z" encodes 15.01 seconds past
|
101
|
+
# 01:30 UTC on January 15, 2017.
|
102
|
+
#
|
103
|
+
# In JavaScript, one can convert a Date object to this format using the
|
104
|
+
# standard
|
105
|
+
# [toISOString()](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/toISOString)
|
106
|
+
# method. In Python, a standard `datetime.datetime` object can be converted
|
107
|
+
# to this format using
|
108
|
+
# [`strftime`](https://docs.python.org/2/library/time.html#time.strftime) with
|
109
|
+
# the time format spec '%Y-%m-%dT%H:%M:%S.%fZ'. Likewise, in Java, one can use
|
110
|
+
# the Joda Time's [`ISODateTimeFormat.dateTime()`](
|
111
|
+
# http://www.joda.org/joda-time/apidocs/org/joda/time/format/ISODateTimeFormat.html#dateTime%2D%2D
|
112
|
+
# ) to obtain a formatter capable of generating timestamps in this format.
|
113
|
+
# @!attribute [rw] seconds
|
114
|
+
# @return [::Integer]
|
115
|
+
# Represents seconds of UTC time since Unix epoch
|
116
|
+
# 1970-01-01T00:00:00Z. Must be from 0001-01-01T00:00:00Z to
|
117
|
+
# 9999-12-31T23:59:59Z inclusive.
|
118
|
+
# @!attribute [rw] nanos
|
119
|
+
# @return [::Integer]
|
120
|
+
# Non-negative fractions of a second at nanosecond resolution. Negative
|
121
|
+
# second values with fractions must still have non-negative nanos values
|
122
|
+
# that count forward in time. Must be from 0 to 999,999,999
|
123
|
+
# inclusive.
|
124
|
+
class Timestamp
|
125
|
+
include ::Google::Protobuf::MessageExts
|
126
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
127
|
+
end
|
128
|
+
end
|
129
|
+
end
|
metadata
CHANGED
@@ -1,29 +1,35 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-cloud-service_directory-v1beta1
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.7.0
|
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-06-29 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.5'
|
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.5'
|
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
|
@@ -47,7 +53,7 @@ dependencies:
|
|
47
53
|
version: 0.6.10
|
48
54
|
- - "<"
|
49
55
|
- !ruby/object:Gem::Version
|
50
|
-
version:
|
56
|
+
version: 2.a
|
51
57
|
type: :runtime
|
52
58
|
prerelease: false
|
53
59
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -57,21 +63,21 @@ dependencies:
|
|
57
63
|
version: 0.6.10
|
58
64
|
- - "<"
|
59
65
|
- !ruby/object:Gem::Version
|
60
|
-
version:
|
66
|
+
version: 2.a
|
61
67
|
- !ruby/object:Gem::Dependency
|
62
68
|
name: google-style
|
63
69
|
requirement: !ruby/object:Gem::Requirement
|
64
70
|
requirements:
|
65
71
|
- - "~>"
|
66
72
|
- !ruby/object:Gem::Version
|
67
|
-
version: 1.
|
73
|
+
version: 1.25.1
|
68
74
|
type: :development
|
69
75
|
prerelease: false
|
70
76
|
version_requirements: !ruby/object:Gem::Requirement
|
71
77
|
requirements:
|
72
78
|
- - "~>"
|
73
79
|
- !ruby/object:Gem::Version
|
74
|
-
version: 1.
|
80
|
+
version: 1.25.1
|
75
81
|
- !ruby/object:Gem::Dependency
|
76
82
|
name: minitest
|
77
83
|
requirement: !ruby/object:Gem::Requirement
|
@@ -171,7 +177,9 @@ dependencies:
|
|
171
177
|
- !ruby/object:Gem::Version
|
172
178
|
version: '0.9'
|
173
179
|
description: Service directory is the single place to register, browse, and resolve
|
174
|
-
application services.
|
180
|
+
application services. Note that google-cloud-service_directory-v1beta1 is a version-specific
|
181
|
+
client library. For most uses, we recommend installing the main client library google-cloud-service_directory
|
182
|
+
instead. See the readme for more details.
|
175
183
|
email: googleapis-packages@google.com
|
176
184
|
executables: []
|
177
185
|
extensions: []
|
@@ -212,6 +220,7 @@ files:
|
|
212
220
|
- proto_docs/google/iam/v1/policy.rb
|
213
221
|
- proto_docs/google/protobuf/empty.rb
|
214
222
|
- proto_docs/google/protobuf/field_mask.rb
|
223
|
+
- proto_docs/google/protobuf/timestamp.rb
|
215
224
|
- proto_docs/google/type/expr.rb
|
216
225
|
homepage: https://github.com/googleapis/google-cloud-ruby
|
217
226
|
licenses:
|
@@ -225,14 +234,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
225
234
|
requirements:
|
226
235
|
- - ">="
|
227
236
|
- !ruby/object:Gem::Version
|
228
|
-
version: '2.
|
237
|
+
version: '2.5'
|
229
238
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
230
239
|
requirements:
|
231
240
|
- - ">="
|
232
241
|
- !ruby/object:Gem::Version
|
233
242
|
version: '0'
|
234
243
|
requirements: []
|
235
|
-
rubygems_version: 3.
|
244
|
+
rubygems_version: 3.2.17
|
236
245
|
signing_key:
|
237
246
|
specification_version: 4
|
238
247
|
summary: API Client library for the Service Directory V1beta1 API
|