google-cloud-service_management-v1 0.4.1 → 0.6.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/README.md +2 -2
- data/lib/google/api/servicemanagement/v1/resources_pb.rb +26 -80
- data/lib/google/api/servicemanagement/v1/servicemanager_pb.rb +27 -84
- data/lib/google/cloud/service_management/v1/rest.rb +37 -0
- data/lib/google/cloud/service_management/v1/service_manager/client.rb +2 -2
- data/lib/google/cloud/service_management/v1/service_manager/operations.rb +2 -2
- data/lib/google/cloud/service_management/v1/service_manager/rest/client.rb +1347 -0
- data/lib/google/cloud/service_management/v1/service_manager/rest/operations.rb +791 -0
- data/lib/google/cloud/service_management/v1/service_manager/rest/service_stub.rb +823 -0
- data/lib/google/cloud/service_management/v1/service_manager/rest.rb +53 -0
- data/lib/google/cloud/service_management/v1/service_manager.rb +6 -0
- data/lib/google/cloud/service_management/v1/version.rb +1 -1
- data/lib/google/cloud/service_management/v1.rb +5 -0
- data/proto_docs/google/api/auth.rb +2 -1
- data/proto_docs/google/api/backend.rb +14 -1
- data/proto_docs/google/api/billing.rb +4 -2
- data/proto_docs/google/api/client.rb +67 -4
- data/proto_docs/google/api/context.rb +2 -1
- data/proto_docs/google/api/logging.rb +5 -4
- data/proto_docs/google/api/metric.rb +10 -6
- data/proto_docs/google/api/monitored_resource.rb +23 -18
- data/proto_docs/google/api/monitoring.rb +4 -2
- data/proto_docs/google/api/quota.rb +2 -1
- data/proto_docs/google/api/service.rb +6 -5
- data/proto_docs/google/api/system_parameter.rb +2 -1
- data/proto_docs/google/api/usage.rb +2 -1
- data/proto_docs/google/protobuf/any.rb +7 -4
- data/proto_docs/google/protobuf/api.rb +1 -1
- data/proto_docs/google/protobuf/struct.rb +1 -1
- data/proto_docs/google/protobuf/timestamp.rb +1 -3
- data/proto_docs/google/protobuf/type.rb +9 -0
- metadata +11 -5
@@ -0,0 +1,53 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# Copyright 2023 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
|
+
require "gapic/rest"
|
20
|
+
require "gapic/config"
|
21
|
+
require "gapic/config/method"
|
22
|
+
|
23
|
+
require "google/cloud/service_management/v1/version"
|
24
|
+
|
25
|
+
require "google/cloud/service_management/v1/service_manager/credentials"
|
26
|
+
require "google/cloud/service_management/v1/service_manager/rest/operations"
|
27
|
+
require "google/cloud/service_management/v1/service_manager/rest/client"
|
28
|
+
|
29
|
+
module Google
|
30
|
+
module Cloud
|
31
|
+
module ServiceManagement
|
32
|
+
module V1
|
33
|
+
##
|
34
|
+
# [Google Service Management
|
35
|
+
# API](https://cloud.google.com/service-infrastructure/docs/overview)
|
36
|
+
#
|
37
|
+
# To load this service and instantiate a REST client:
|
38
|
+
#
|
39
|
+
# require "google/cloud/service_management/v1/service_manager/rest"
|
40
|
+
# client = ::Google::Cloud::ServiceManagement::V1::ServiceManager::Rest::Client.new
|
41
|
+
#
|
42
|
+
module ServiceManager
|
43
|
+
# Client for the REST transport
|
44
|
+
module Rest
|
45
|
+
end
|
46
|
+
end
|
47
|
+
end
|
48
|
+
end
|
49
|
+
end
|
50
|
+
end
|
51
|
+
|
52
|
+
helper_path = ::File.join __dir__, "rest", "helpers.rb"
|
53
|
+
require "google/cloud/service_management/v1/service_manager/rest/helpers" if ::File.file? helper_path
|
@@ -25,6 +25,7 @@ require "google/cloud/service_management/v1/version"
|
|
25
25
|
require "google/cloud/service_management/v1/service_manager/credentials"
|
26
26
|
require "google/cloud/service_management/v1/service_manager/operations"
|
27
27
|
require "google/cloud/service_management/v1/service_manager/client"
|
28
|
+
require "google/cloud/service_management/v1/service_manager/rest"
|
28
29
|
|
29
30
|
module Google
|
30
31
|
module Cloud
|
@@ -39,6 +40,11 @@ module Google
|
|
39
40
|
# require "google/cloud/service_management/v1/service_manager"
|
40
41
|
# client = ::Google::Cloud::ServiceManagement::V1::ServiceManager::Client.new
|
41
42
|
#
|
43
|
+
# @example Load this service and instantiate a REST client
|
44
|
+
#
|
45
|
+
# require "google/cloud/service_management/v1/service_manager/rest"
|
46
|
+
# client = ::Google::Cloud::ServiceManagement::V1::ServiceManager::Rest::Client.new
|
47
|
+
#
|
42
48
|
module ServiceManager
|
43
49
|
end
|
44
50
|
end
|
@@ -30,6 +30,11 @@ module Google
|
|
30
30
|
# require "google/cloud/service_management/v1"
|
31
31
|
# client = ::Google::Cloud::ServiceManagement::V1::ServiceManager::Client.new
|
32
32
|
#
|
33
|
+
# @example Load this package, including all its services, and instantiate a REST client
|
34
|
+
#
|
35
|
+
# require "google/cloud/service_management/v1"
|
36
|
+
# client = ::Google::Cloud::ServiceManagement::V1::ServiceManager::Rest::Client.new
|
37
|
+
#
|
33
38
|
module V1
|
34
39
|
end
|
35
40
|
end
|
@@ -63,7 +63,8 @@ module Google
|
|
63
63
|
# @return [::String]
|
64
64
|
# Selects the methods to which this rule applies.
|
65
65
|
#
|
66
|
-
# Refer to {::Google::Api::DocumentationRule#selector selector} for syntax
|
66
|
+
# Refer to {::Google::Api::DocumentationRule#selector selector} for syntax
|
67
|
+
# details.
|
67
68
|
# @!attribute [rw] oauth
|
68
69
|
# @return [::Google::Api::OAuthRequirements]
|
69
70
|
# The requirements for OAuth credentials.
|
@@ -35,7 +35,8 @@ module Google
|
|
35
35
|
# @return [::String]
|
36
36
|
# Selects the methods to which this rule applies.
|
37
37
|
#
|
38
|
-
# Refer to {::Google::Api::DocumentationRule#selector selector} for syntax
|
38
|
+
# Refer to {::Google::Api::DocumentationRule#selector selector} for syntax
|
39
|
+
# details.
|
39
40
|
# @!attribute [rw] address
|
40
41
|
# @return [::String]
|
41
42
|
# The address of the API backend.
|
@@ -105,10 +106,22 @@ module Google
|
|
105
106
|
# See
|
106
107
|
# https://www.iana.org/assignments/tls-extensiontype-values/tls-extensiontype-values.xhtml#alpn-protocol-ids
|
107
108
|
# for more details on the supported values.
|
109
|
+
# @!attribute [rw] overrides_by_request_protocol
|
110
|
+
# @return [::Google::Protobuf::Map{::String => ::Google::Api::BackendRule}]
|
111
|
+
# The map between request protocol and the backend address.
|
108
112
|
class BackendRule
|
109
113
|
include ::Google::Protobuf::MessageExts
|
110
114
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
111
115
|
|
116
|
+
# @!attribute [rw] key
|
117
|
+
# @return [::String]
|
118
|
+
# @!attribute [rw] value
|
119
|
+
# @return [::Google::Api::BackendRule]
|
120
|
+
class OverridesByRequestProtocolEntry
|
121
|
+
include ::Google::Protobuf::MessageExts
|
122
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
123
|
+
end
|
124
|
+
|
112
125
|
# Path Translation specifies how to combine the backend address with the
|
113
126
|
# request path in order to produce the appropriate forwarding URL for the
|
114
127
|
# request.
|
@@ -66,11 +66,13 @@ module Google
|
|
66
66
|
# @!attribute [rw] monitored_resource
|
67
67
|
# @return [::String]
|
68
68
|
# The monitored resource type. The type must be defined in
|
69
|
-
# {::Google::Api::Service#monitored_resources Service.monitored_resources}
|
69
|
+
# {::Google::Api::Service#monitored_resources Service.monitored_resources}
|
70
|
+
# section.
|
70
71
|
# @!attribute [rw] metrics
|
71
72
|
# @return [::Array<::String>]
|
72
73
|
# Names of the metrics to report to this billing destination.
|
73
|
-
# Each name must be defined in
|
74
|
+
# Each name must be defined in
|
75
|
+
# {::Google::Api::Service#metrics Service.metrics} section.
|
74
76
|
class BillingDestination
|
75
77
|
include ::Google::Protobuf::MessageExts
|
76
78
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
@@ -35,7 +35,9 @@ module Google
|
|
35
35
|
# Details about how and where to publish client libraries.
|
36
36
|
# @!attribute [rw] version
|
37
37
|
# @return [::String]
|
38
|
-
# Version of the API to apply these settings to.
|
38
|
+
# Version of the API to apply these settings to. This is the full protobuf
|
39
|
+
# package for the API, ending in the version element.
|
40
|
+
# Examples: "google.cloud.speech.v1" and "google.spanner.admin.database.v1".
|
39
41
|
# @!attribute [rw] launch_stage
|
40
42
|
# @return [::Google::Api::LaunchStage]
|
41
43
|
# Launch stage of this version of the API.
|
@@ -81,7 +83,7 @@ module Google
|
|
81
83
|
# long-running operation pattern.
|
82
84
|
# @!attribute [rw] new_issue_uri
|
83
85
|
# @return [::String]
|
84
|
-
# Link to a
|
86
|
+
# Link to a *public* URI where users can report issues. Example:
|
85
87
|
# https://issuetracker.google.com/issues/new?component=190865&template=1161103
|
86
88
|
# @!attribute [rw] documentation_uri
|
87
89
|
# @return [::String]
|
@@ -111,6 +113,10 @@ module Google
|
|
111
113
|
# Client library settings. If the same version string appears multiple
|
112
114
|
# times in this list, then the last one wins. Settings from earlier
|
113
115
|
# settings with the same version string are discarded.
|
116
|
+
# @!attribute [rw] proto_reference_documentation_uri
|
117
|
+
# @return [::String]
|
118
|
+
# Optional link to proto reference documentation. Example:
|
119
|
+
# https://cloud.google.com/pubsub/lite/docs/reference/rpc
|
114
120
|
class Publishing
|
115
121
|
include ::Google::Protobuf::MessageExts
|
116
122
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
@@ -203,9 +209,57 @@ module Google
|
|
203
209
|
# @!attribute [rw] common
|
204
210
|
# @return [::Google::Api::CommonLanguageSettings]
|
205
211
|
# Some settings.
|
212
|
+
# @!attribute [rw] renamed_services
|
213
|
+
# @return [::Google::Protobuf::Map{::String => ::String}]
|
214
|
+
# Map from original service names to renamed versions.
|
215
|
+
# This is used when the default generated types
|
216
|
+
# would cause a naming conflict. (Neither name is
|
217
|
+
# fully-qualified.)
|
218
|
+
# Example: Subscriber to SubscriberServiceApi.
|
219
|
+
# @!attribute [rw] renamed_resources
|
220
|
+
# @return [::Google::Protobuf::Map{::String => ::String}]
|
221
|
+
# Map from full resource types to the effective short name
|
222
|
+
# for the resource. This is used when otherwise resource
|
223
|
+
# named from different services would cause naming collisions.
|
224
|
+
# Example entry:
|
225
|
+
# "datalabeling.googleapis.com/Dataset": "DataLabelingDataset"
|
226
|
+
# @!attribute [rw] ignored_resources
|
227
|
+
# @return [::Array<::String>]
|
228
|
+
# List of full resource types to ignore during generation.
|
229
|
+
# This is typically used for API-specific Location resources,
|
230
|
+
# which should be handled by the generator as if they were actually
|
231
|
+
# the common Location resources.
|
232
|
+
# Example entry: "documentai.googleapis.com/Location"
|
233
|
+
# @!attribute [rw] forced_namespace_aliases
|
234
|
+
# @return [::Array<::String>]
|
235
|
+
# Namespaces which must be aliased in snippets due to
|
236
|
+
# a known (but non-generator-predictable) naming collision
|
237
|
+
# @!attribute [rw] handwritten_signatures
|
238
|
+
# @return [::Array<::String>]
|
239
|
+
# Method signatures (in the form "service.method(signature)")
|
240
|
+
# which are provided separately, so shouldn't be generated.
|
241
|
+
# Snippets *calling* these methods are still generated, however.
|
206
242
|
class DotnetSettings
|
207
243
|
include ::Google::Protobuf::MessageExts
|
208
244
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
245
|
+
|
246
|
+
# @!attribute [rw] key
|
247
|
+
# @return [::String]
|
248
|
+
# @!attribute [rw] value
|
249
|
+
# @return [::String]
|
250
|
+
class RenamedServicesEntry
|
251
|
+
include ::Google::Protobuf::MessageExts
|
252
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
253
|
+
end
|
254
|
+
|
255
|
+
# @!attribute [rw] key
|
256
|
+
# @return [::String]
|
257
|
+
# @!attribute [rw] value
|
258
|
+
# @return [::String]
|
259
|
+
class RenamedResourcesEntry
|
260
|
+
include ::Google::Protobuf::MessageExts
|
261
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
262
|
+
end
|
209
263
|
end
|
210
264
|
|
211
265
|
# Settings for Ruby client libraries.
|
@@ -240,8 +294,8 @@ module Google
|
|
240
294
|
# Example of a YAML configuration::
|
241
295
|
#
|
242
296
|
# publishing:
|
243
|
-
#
|
244
|
-
# - selector:
|
297
|
+
# method_settings:
|
298
|
+
# - selector: google.cloud.speech.v2.Speech.BatchRecognize
|
245
299
|
# long_running:
|
246
300
|
# initial_poll_delay:
|
247
301
|
# seconds: 60 # 1 minute
|
@@ -299,6 +353,15 @@ module Google
|
|
299
353
|
|
300
354
|
# Street View Org.
|
301
355
|
STREET_VIEW = 4
|
356
|
+
|
357
|
+
# Shopping Org.
|
358
|
+
SHOPPING = 5
|
359
|
+
|
360
|
+
# Geo Org.
|
361
|
+
GEO = 6
|
362
|
+
|
363
|
+
# Generative AI - https://developers.generativeai.google
|
364
|
+
GENERATIVE_AI = 7
|
302
365
|
end
|
303
366
|
|
304
367
|
# To where should client libraries be published?
|
@@ -71,7 +71,8 @@ module Google
|
|
71
71
|
# @return [::String]
|
72
72
|
# Selects the methods to which this rule applies.
|
73
73
|
#
|
74
|
-
# Refer to {::Google::Api::DocumentationRule#selector selector} for syntax
|
74
|
+
# Refer to {::Google::Api::DocumentationRule#selector selector} for syntax
|
75
|
+
# details.
|
75
76
|
# @!attribute [rw] requested
|
76
77
|
# @return [::Array<::String>]
|
77
78
|
# A list of full type names of requested contexts.
|
@@ -69,13 +69,14 @@ module Google
|
|
69
69
|
# @!attribute [rw] monitored_resource
|
70
70
|
# @return [::String]
|
71
71
|
# The monitored resource type. The type must be defined in the
|
72
|
-
# {::Google::Api::Service#monitored_resources Service.monitored_resources}
|
72
|
+
# {::Google::Api::Service#monitored_resources Service.monitored_resources}
|
73
|
+
# section.
|
73
74
|
# @!attribute [rw] logs
|
74
75
|
# @return [::Array<::String>]
|
75
76
|
# Names of the logs to be sent to this destination. Each name must
|
76
|
-
# be defined in the {::Google::Api::Service#logs Service.logs} section. If the
|
77
|
-
# not a domain scoped name, it will be automatically prefixed
|
78
|
-
# the service name followed by "/".
|
77
|
+
# be defined in the {::Google::Api::Service#logs Service.logs} section. If the
|
78
|
+
# log name is not a domain scoped name, it will be automatically prefixed
|
79
|
+
# with the service name followed by "/".
|
79
80
|
class LoggingDestination
|
80
81
|
include ::Google::Protobuf::MessageExts
|
81
82
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
@@ -174,9 +174,10 @@ module Google
|
|
174
174
|
# @return [::Array<::String>]
|
175
175
|
# Read-only. If present, then a [time
|
176
176
|
# series][google.monitoring.v3.TimeSeries], which is identified partially by
|
177
|
-
# a metric type and a
|
178
|
-
#
|
179
|
-
#
|
177
|
+
# a metric type and a
|
178
|
+
# {::Google::Api::MonitoredResourceDescriptor MonitoredResourceDescriptor}, that
|
179
|
+
# is associated with this metric type can only be associated with one of the
|
180
|
+
# monitored resource types listed here.
|
180
181
|
class MetricDescriptor
|
181
182
|
include ::Google::Protobuf::MessageExts
|
182
183
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
@@ -184,7 +185,9 @@ module Google
|
|
184
185
|
# Additional annotations that can be used to guide the usage of a metric.
|
185
186
|
# @!attribute [rw] launch_stage
|
186
187
|
# @return [::Google::Api::LaunchStage]
|
187
|
-
# Deprecated. Must use the
|
188
|
+
# Deprecated. Must use the
|
189
|
+
# {::Google::Api::MetricDescriptor#launch_stage MetricDescriptor.launch_stage}
|
190
|
+
# instead.
|
188
191
|
# @!attribute [rw] sample_period
|
189
192
|
# @return [::Google::Protobuf::Duration]
|
190
193
|
# The sampling period of metric data points. For metrics which are written
|
@@ -253,8 +256,9 @@ module Google
|
|
253
256
|
# labels of a {::Google::Api::MetricDescriptor `MetricDescriptor`}.
|
254
257
|
# @!attribute [rw] type
|
255
258
|
# @return [::String]
|
256
|
-
# An existing metric type, see
|
257
|
-
# For example,
|
259
|
+
# An existing metric type, see
|
260
|
+
# {::Google::Api::MetricDescriptor google.api.MetricDescriptor}. For example,
|
261
|
+
# `custom.googleapis.com/invoice/paid/amount`.
|
258
262
|
# @!attribute [rw] labels
|
259
263
|
# @return [::Google::Protobuf::Map{::String => ::String}]
|
260
264
|
# The set of label values that uniquely identify this metric. All
|
@@ -19,9 +19,10 @@
|
|
19
19
|
|
20
20
|
module Google
|
21
21
|
module Api
|
22
|
-
# An object that describes the schema of a
|
23
|
-
#
|
24
|
-
#
|
22
|
+
# An object that describes the schema of a
|
23
|
+
# {::Google::Api::MonitoredResource MonitoredResource} object using a type name
|
24
|
+
# and a set of labels. For example, the monitored resource descriptor for
|
25
|
+
# Google Compute Engine VM instances has a type of
|
25
26
|
# `"gce_instance"` and specifies the use of the labels `"instance_id"` and
|
26
27
|
# `"zone"` to identify particular VM instances.
|
27
28
|
#
|
@@ -70,11 +71,13 @@ module Google
|
|
70
71
|
# An object representing a resource that can be used for monitoring, logging,
|
71
72
|
# billing, or other purposes. Examples include virtual machine instances,
|
72
73
|
# databases, and storage devices such as disks. The `type` field identifies a
|
73
|
-
# {::Google::Api::MonitoredResourceDescriptor MonitoredResourceDescriptor} object
|
74
|
-
# schema. Information in the `labels` field
|
75
|
-
# its attributes according to the schema.
|
76
|
-
# Engine VM instance could be represented by
|
77
|
-
#
|
74
|
+
# {::Google::Api::MonitoredResourceDescriptor MonitoredResourceDescriptor} object
|
75
|
+
# that describes the resource's schema. Information in the `labels` field
|
76
|
+
# identifies the actual resource and its attributes according to the schema.
|
77
|
+
# For example, a particular Compute Engine VM instance could be represented by
|
78
|
+
# the following object, because the
|
79
|
+
# {::Google::Api::MonitoredResourceDescriptor MonitoredResourceDescriptor} for
|
80
|
+
# `"gce_instance"` has labels
|
78
81
|
# `"project_id"`, `"instance_id"` and `"zone"`:
|
79
82
|
#
|
80
83
|
# { "type": "gce_instance",
|
@@ -84,10 +87,12 @@ module Google
|
|
84
87
|
# @!attribute [rw] type
|
85
88
|
# @return [::String]
|
86
89
|
# Required. The monitored resource type. This field must match
|
87
|
-
# the `type` field of a
|
88
|
-
#
|
89
|
-
#
|
90
|
-
# the
|
90
|
+
# the `type` field of a
|
91
|
+
# {::Google::Api::MonitoredResourceDescriptor MonitoredResourceDescriptor}
|
92
|
+
# object. For example, the type of a Compute Engine VM instance is
|
93
|
+
# `gce_instance`. Some descriptors include the service name in the type; for
|
94
|
+
# example, the type of a Datastream stream is
|
95
|
+
# `datastream.googleapis.com/Stream`.
|
91
96
|
# @!attribute [rw] labels
|
92
97
|
# @return [::Google::Protobuf::Map{::String => ::String}]
|
93
98
|
# Required. Values for all of the labels listed in the associated monitored
|
@@ -107,12 +112,12 @@ module Google
|
|
107
112
|
end
|
108
113
|
end
|
109
114
|
|
110
|
-
# Auxiliary metadata for a {::Google::Api::MonitoredResource MonitoredResource}
|
111
|
-
# {::Google::Api::MonitoredResource MonitoredResource} objects contain the
|
112
|
-
# uniquely identify a monitored resource
|
113
|
-
# auxiliary metadata. Monitoring and
|
114
|
-
# pipeline to extract metadata for cloud resources of
|
115
|
-
# the metadata in this message.
|
115
|
+
# Auxiliary metadata for a {::Google::Api::MonitoredResource MonitoredResource}
|
116
|
+
# object. {::Google::Api::MonitoredResource MonitoredResource} objects contain the
|
117
|
+
# minimum set of information to uniquely identify a monitored resource
|
118
|
+
# instance. There is some other useful auxiliary metadata. Monitoring and
|
119
|
+
# Logging use an ingestion pipeline to extract metadata for cloud resources of
|
120
|
+
# all types, and store the metadata in this message.
|
116
121
|
# @!attribute [rw] system_labels
|
117
122
|
# @return [::Google::Protobuf::Struct]
|
118
123
|
# Output only. Values for predefined system metadata labels.
|
@@ -96,11 +96,13 @@ module Google
|
|
96
96
|
# @!attribute [rw] monitored_resource
|
97
97
|
# @return [::String]
|
98
98
|
# The monitored resource type. The type must be defined in
|
99
|
-
# {::Google::Api::Service#monitored_resources Service.monitored_resources}
|
99
|
+
# {::Google::Api::Service#monitored_resources Service.monitored_resources}
|
100
|
+
# section.
|
100
101
|
# @!attribute [rw] metrics
|
101
102
|
# @return [::Array<::String>]
|
102
103
|
# Types of the metrics to report to this monitoring destination.
|
103
|
-
# Each type must be defined in
|
104
|
+
# Each type must be defined in
|
105
|
+
# {::Google::Api::Service#metrics Service.metrics} section.
|
104
106
|
class MonitoringDestination
|
105
107
|
include ::Google::Protobuf::MessageExts
|
106
108
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
@@ -86,7 +86,8 @@ module Google
|
|
86
86
|
# @return [::String]
|
87
87
|
# Selects the methods to which this rule applies.
|
88
88
|
#
|
89
|
-
# Refer to {::Google::Api::DocumentationRule#selector selector} for syntax
|
89
|
+
# Refer to {::Google::Api::DocumentationRule#selector selector} for syntax
|
90
|
+
# details.
|
90
91
|
# @!attribute [rw] metric_costs
|
91
92
|
# @return [::Google::Protobuf::Map{::String => ::Integer}]
|
92
93
|
# Metrics to update when the selected methods are called, and the associated
|
@@ -74,10 +74,10 @@ module Google
|
|
74
74
|
# @!attribute [rw] apis
|
75
75
|
# @return [::Array<::Google::Protobuf::Api>]
|
76
76
|
# A list of API interfaces exported by this service. Only the `name` field
|
77
|
-
# of the {::Google::Protobuf::Api google.protobuf.Api} needs to be provided by
|
78
|
-
# author, as the remaining fields will be derived from the
|
79
|
-
# normalization process. It is an error to specify an API
|
80
|
-
# which cannot be resolved against the associated IDL files.
|
77
|
+
# of the {::Google::Protobuf::Api google.protobuf.Api} needs to be provided by
|
78
|
+
# the configuration author, as the remaining fields will be derived from the
|
79
|
+
# IDL during the normalization process. It is an error to specify an API
|
80
|
+
# interface here which cannot be resolved against the associated IDL files.
|
81
81
|
# @!attribute [rw] types
|
82
82
|
# @return [::Array<::Google::Protobuf::Type>]
|
83
83
|
# A list of all proto message types included in this API service.
|
@@ -135,7 +135,8 @@ module Google
|
|
135
135
|
# @!attribute [rw] monitored_resources
|
136
136
|
# @return [::Array<::Google::Api::MonitoredResourceDescriptor>]
|
137
137
|
# Defines the monitored resources used by this service. This is required
|
138
|
-
# by the {::Google::Api::Service#monitoring Service.monitoring} and
|
138
|
+
# by the {::Google::Api::Service#monitoring Service.monitoring} and
|
139
|
+
# {::Google::Api::Service#logging Service.logging} configurations.
|
139
140
|
# @!attribute [rw] billing
|
140
141
|
# @return [::Google::Api::Billing]
|
141
142
|
# Billing configuration.
|
@@ -68,7 +68,8 @@ module Google
|
|
68
68
|
# Selects the methods to which this rule applies. Use '*' to indicate all
|
69
69
|
# methods in all APIs.
|
70
70
|
#
|
71
|
-
# Refer to {::Google::Api::DocumentationRule#selector selector} for syntax
|
71
|
+
# Refer to {::Google::Api::DocumentationRule#selector selector} for syntax
|
72
|
+
# details.
|
72
73
|
# @!attribute [rw] parameters
|
73
74
|
# @return [::Array<::Google::Api::SystemParameter>]
|
74
75
|
# Define parameters. Multiple names may be defined for a parameter.
|
@@ -81,7 +81,8 @@ module Google
|
|
81
81
|
# Selects the methods to which this rule applies. Use '*' to indicate all
|
82
82
|
# methods in all APIs.
|
83
83
|
#
|
84
|
-
# Refer to {::Google::Api::DocumentationRule#selector selector} for syntax
|
84
|
+
# Refer to {::Google::Api::DocumentationRule#selector selector} for syntax
|
85
|
+
# details.
|
85
86
|
# @!attribute [rw] allow_unregistered_calls
|
86
87
|
# @return [::Boolean]
|
87
88
|
# If true, the selected method allows unregistered calls, e.g. calls
|
@@ -43,8 +43,12 @@ module Google
|
|
43
43
|
# if (any.is(Foo.class)) {
|
44
44
|
# foo = any.unpack(Foo.class);
|
45
45
|
# }
|
46
|
+
# // or ...
|
47
|
+
# if (any.isSameTypeAs(Foo.getDefaultInstance())) {
|
48
|
+
# foo = any.unpack(Foo.getDefaultInstance());
|
49
|
+
# }
|
46
50
|
#
|
47
|
-
#
|
51
|
+
# Example 3: Pack and unpack a message in Python.
|
48
52
|
#
|
49
53
|
# foo = Foo(...)
|
50
54
|
# any = Any()
|
@@ -54,7 +58,7 @@ module Google
|
|
54
58
|
# any.Unpack(foo)
|
55
59
|
# ...
|
56
60
|
#
|
57
|
-
#
|
61
|
+
# Example 4: Pack and unpack a message in Go
|
58
62
|
#
|
59
63
|
# foo := &pb.Foo{...}
|
60
64
|
# any, err := anypb.New(foo)
|
@@ -73,9 +77,8 @@ module Google
|
|
73
77
|
# in the type URL, for example "foo.bar.com/x/y.z" will yield type
|
74
78
|
# name "y.z".
|
75
79
|
#
|
76
|
-
#
|
77
80
|
# JSON
|
78
|
-
#
|
81
|
+
# ====
|
79
82
|
# The JSON representation of an `Any` value uses the regular
|
80
83
|
# representation of the deserialized, embedded message, with an
|
81
84
|
# additional field `@type` which contains the type URL. Example:
|
@@ -148,7 +148,7 @@ module Google
|
|
148
148
|
# The mixin construct implies that all methods in `AccessControl` are
|
149
149
|
# also declared with same name and request/response types in
|
150
150
|
# `Storage`. A documentation generator or annotation processor will
|
151
|
-
# see the effective `Storage.GetAcl` method after
|
151
|
+
# see the effective `Storage.GetAcl` method after inherting
|
152
152
|
# documentation and annotations as follows:
|
153
153
|
#
|
154
154
|
# service Storage {
|
@@ -87,7 +87,7 @@ module Google
|
|
87
87
|
# `NullValue` is a singleton enumeration to represent the null value for the
|
88
88
|
# `Value` type union.
|
89
89
|
#
|
90
|
-
#
|
90
|
+
# The JSON representation for `NullValue` is JSON `null`.
|
91
91
|
module NullValue
|
92
92
|
# Null value.
|
93
93
|
NULL_VALUE = 0
|
@@ -69,7 +69,6 @@ module Google
|
|
69
69
|
# Timestamp timestamp = Timestamp.newBuilder().setSeconds(millis / 1000)
|
70
70
|
# .setNanos((int) ((millis % 1000) * 1000000)).build();
|
71
71
|
#
|
72
|
-
#
|
73
72
|
# Example 5: Compute Timestamp from Java `Instant.now()`.
|
74
73
|
#
|
75
74
|
# Instant now = Instant.now();
|
@@ -78,7 +77,6 @@ module Google
|
|
78
77
|
# Timestamp.newBuilder().setSeconds(now.getEpochSecond())
|
79
78
|
# .setNanos(now.getNano()).build();
|
80
79
|
#
|
81
|
-
#
|
82
80
|
# Example 6: Compute Timestamp from current time in Python.
|
83
81
|
#
|
84
82
|
# timestamp = Timestamp()
|
@@ -108,7 +106,7 @@ module Google
|
|
108
106
|
# [`strftime`](https://docs.python.org/2/library/time.html#time.strftime) with
|
109
107
|
# the time format spec '%Y-%m-%dT%H:%M:%S.%fZ'. Likewise, in Java, one can use
|
110
108
|
# the Joda Time's [`ISODateTimeFormat.dateTime()`](
|
111
|
-
# http://
|
109
|
+
# http://joda-time.sourceforge.net/apidocs/org/joda/time/format/ISODateTimeFormat.html#dateTime()
|
112
110
|
# ) to obtain a formatter capable of generating timestamps in this format.
|
113
111
|
# @!attribute [rw] seconds
|
114
112
|
# @return [::Integer]
|
@@ -38,6 +38,9 @@ module Google
|
|
38
38
|
# @!attribute [rw] syntax
|
39
39
|
# @return [::Google::Protobuf::Syntax]
|
40
40
|
# The source syntax.
|
41
|
+
# @!attribute [rw] edition
|
42
|
+
# @return [::String]
|
43
|
+
# The source edition string, only valid when syntax is SYNTAX_EDITIONS.
|
41
44
|
class Type
|
42
45
|
include ::Google::Protobuf::MessageExts
|
43
46
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
@@ -172,6 +175,9 @@ module Google
|
|
172
175
|
# @!attribute [rw] syntax
|
173
176
|
# @return [::Google::Protobuf::Syntax]
|
174
177
|
# The source syntax.
|
178
|
+
# @!attribute [rw] edition
|
179
|
+
# @return [::String]
|
180
|
+
# The source edition string, only valid when syntax is SYNTAX_EDITIONS.
|
175
181
|
class Enum
|
176
182
|
include ::Google::Protobuf::MessageExts
|
177
183
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
@@ -218,6 +224,9 @@ module Google
|
|
218
224
|
|
219
225
|
# Syntax `proto3`.
|
220
226
|
SYNTAX_PROTO3 = 1
|
227
|
+
|
228
|
+
# Syntax `editions`.
|
229
|
+
SYNTAX_EDITIONS = 2
|
221
230
|
end
|
222
231
|
end
|
223
232
|
end
|