google-cloud-service_management-v1 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.yardopts +12 -0
- data/AUTHENTICATION.md +169 -0
- data/LICENSE.md +203 -0
- data/README.md +75 -0
- data/lib/google-cloud-service_management-v1.rb +21 -0
- data/lib/google/api/servicemanagement/v1/resources_pb.rb +123 -0
- data/lib/google/api/servicemanagement/v1/servicemanager_pb.rb +146 -0
- data/lib/google/api/servicemanagement/v1/servicemanager_services_pb.rb +148 -0
- data/lib/google/cloud/service_management/v1.rb +35 -0
- data/lib/google/cloud/service_management/v1/service_manager.rb +49 -0
- data/lib/google/cloud/service_management/v1/service_manager/client.rb +1563 -0
- data/lib/google/cloud/service_management/v1/service_manager/credentials.rb +54 -0
- data/lib/google/cloud/service_management/v1/service_manager/operations.rb +570 -0
- data/lib/google/cloud/service_management/v1/version.rb +28 -0
- data/proto_docs/README.md +4 -0
- data/proto_docs/google/api/auth.rb +192 -0
- data/proto_docs/google/api/backend.rb +55 -0
- data/proto_docs/google/api/billing.rb +69 -0
- data/proto_docs/google/api/config_change.rb +89 -0
- data/proto_docs/google/api/context.rb +67 -0
- data/proto_docs/google/api/control.rb +34 -0
- data/proto_docs/google/api/documentation.rb +164 -0
- data/proto_docs/google/api/endpoint.rb +70 -0
- data/proto_docs/google/api/field_behavior.rb +59 -0
- data/proto_docs/google/api/label.rb +49 -0
- data/proto_docs/google/api/log.rb +54 -0
- data/proto_docs/google/api/logging.rb +85 -0
- data/proto_docs/google/api/metric.rb +203 -0
- data/proto_docs/google/api/monitored_resource.rb +137 -0
- data/proto_docs/google/api/monitoring.rb +91 -0
- data/proto_docs/google/api/quota.rb +281 -0
- data/proto_docs/google/api/resource.rb +283 -0
- data/proto_docs/google/api/service.rb +151 -0
- data/proto_docs/google/api/servicemanagement/v1/resources.rb +326 -0
- data/proto_docs/google/api/servicemanagement/v1/servicemanager.rb +370 -0
- data/proto_docs/google/api/source_info.rb +31 -0
- data/proto_docs/google/api/system_parameter.rb +103 -0
- data/proto_docs/google/api/usage.rb +94 -0
- data/proto_docs/google/longrunning/operations.rb +150 -0
- data/proto_docs/google/protobuf/any.rb +138 -0
- data/proto_docs/google/protobuf/api.rb +194 -0
- data/proto_docs/google/protobuf/empty.rb +36 -0
- data/proto_docs/google/protobuf/field_mask.rb +229 -0
- data/proto_docs/google/protobuf/source_context.rb +33 -0
- data/proto_docs/google/protobuf/struct.rb +96 -0
- data/proto_docs/google/protobuf/timestamp.rb +120 -0
- data/proto_docs/google/protobuf/type.rb +223 -0
- data/proto_docs/google/protobuf/wrappers.rb +121 -0
- data/proto_docs/google/rpc/status.rb +46 -0
- metadata +232 -0
@@ -0,0 +1,34 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# Copyright 2020 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 Api
|
22
|
+
# Selects and configures the service controller used by the service. The
|
23
|
+
# service controller handles features like abuse, quota, billing, logging,
|
24
|
+
# monitoring, etc.
|
25
|
+
# @!attribute [rw] environment
|
26
|
+
# @return [::String]
|
27
|
+
# The service control environment to use. If empty, no control plane
|
28
|
+
# feature (like quota and billing) will be enabled.
|
29
|
+
class Control
|
30
|
+
include ::Google::Protobuf::MessageExts
|
31
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
32
|
+
end
|
33
|
+
end
|
34
|
+
end
|
@@ -0,0 +1,164 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# Copyright 2020 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 Api
|
22
|
+
# `Documentation` provides the information for describing a service.
|
23
|
+
#
|
24
|
+
# Example:
|
25
|
+
# <pre><code>documentation:
|
26
|
+
# summary: >
|
27
|
+
# The Google Calendar API gives access
|
28
|
+
# to most calendar features.
|
29
|
+
# pages:
|
30
|
+
# - name: Overview
|
31
|
+
# content: (== include google/foo/overview.md ==)
|
32
|
+
# - name: Tutorial
|
33
|
+
# content: (== include google/foo/tutorial.md ==)
|
34
|
+
# subpages;
|
35
|
+
# - name: Java
|
36
|
+
# content: (== include google/foo/tutorial_java.md ==)
|
37
|
+
# rules:
|
38
|
+
# - selector: google.calendar.Calendar.Get
|
39
|
+
# description: >
|
40
|
+
# ...
|
41
|
+
# - selector: google.calendar.Calendar.Put
|
42
|
+
# description: >
|
43
|
+
# ...
|
44
|
+
# </code></pre>
|
45
|
+
# Documentation is provided in markdown syntax. In addition to
|
46
|
+
# standard markdown features, definition lists, tables and fenced
|
47
|
+
# code blocks are supported. Section headers can be provided and are
|
48
|
+
# interpreted relative to the section nesting of the context where
|
49
|
+
# a documentation fragment is embedded.
|
50
|
+
#
|
51
|
+
# Documentation from the IDL is merged with documentation defined
|
52
|
+
# via the config at normalization time, where documentation provided
|
53
|
+
# by config rules overrides IDL provided.
|
54
|
+
#
|
55
|
+
# A number of constructs specific to the API platform are supported
|
56
|
+
# in documentation text.
|
57
|
+
#
|
58
|
+
# In order to reference a proto element, the following
|
59
|
+
# notation can be used:
|
60
|
+
# <pre><code>[fully.qualified.proto.name][]</code></pre>
|
61
|
+
# To override the display text used for the link, this can be used:
|
62
|
+
# <pre><code>[display text][fully.qualified.proto.name]</code></pre>
|
63
|
+
# Text can be excluded from doc using the following notation:
|
64
|
+
# <pre><code>(-- internal comment --)</code></pre>
|
65
|
+
#
|
66
|
+
# A few directives are available in documentation. Note that
|
67
|
+
# directives must appear on a single line to be properly
|
68
|
+
# identified. The `include` directive includes a markdown file from
|
69
|
+
# an external source:
|
70
|
+
# <pre><code>(== include path/to/file ==)</code></pre>
|
71
|
+
# The `resource_for` directive marks a message to be the resource of
|
72
|
+
# a collection in REST view. If it is not specified, tools attempt
|
73
|
+
# to infer the resource from the operations in a collection:
|
74
|
+
# <pre><code>(== resource_for v1.shelves.books ==)</code></pre>
|
75
|
+
# The directive `suppress_warning` does not directly affect documentation
|
76
|
+
# and is documented together with service config validation.
|
77
|
+
# @!attribute [rw] summary
|
78
|
+
# @return [::String]
|
79
|
+
# A short summary of what the service does. Can only be provided by
|
80
|
+
# plain text.
|
81
|
+
# @!attribute [rw] pages
|
82
|
+
# @return [::Array<::Google::Api::Page>]
|
83
|
+
# The top level pages for the documentation set.
|
84
|
+
# @!attribute [rw] rules
|
85
|
+
# @return [::Array<::Google::Api::DocumentationRule>]
|
86
|
+
# A list of documentation rules that apply to individual API elements.
|
87
|
+
#
|
88
|
+
# **NOTE:** All service configuration rules follow "last one wins" order.
|
89
|
+
# @!attribute [rw] documentation_root_url
|
90
|
+
# @return [::String]
|
91
|
+
# The URL to the root of documentation.
|
92
|
+
# @!attribute [rw] overview
|
93
|
+
# @return [::String]
|
94
|
+
# Declares a single overview page. For example:
|
95
|
+
# <pre><code>documentation:
|
96
|
+
# summary: ...
|
97
|
+
# overview: (== include overview.md ==)
|
98
|
+
# </code></pre>
|
99
|
+
# This is a shortcut for the following declaration (using pages style):
|
100
|
+
# <pre><code>documentation:
|
101
|
+
# summary: ...
|
102
|
+
# pages:
|
103
|
+
# - name: Overview
|
104
|
+
# content: (== include overview.md ==)
|
105
|
+
# </code></pre>
|
106
|
+
# Note: you cannot specify both `overview` field and `pages` field.
|
107
|
+
class Documentation
|
108
|
+
include ::Google::Protobuf::MessageExts
|
109
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
110
|
+
end
|
111
|
+
|
112
|
+
# A documentation rule provides information about individual API elements.
|
113
|
+
# @!attribute [rw] selector
|
114
|
+
# @return [::String]
|
115
|
+
# The selector is a comma-separated list of patterns. Each pattern is a
|
116
|
+
# qualified name of the element which may end in "*", indicating a wildcard.
|
117
|
+
# Wildcards are only allowed at the end and for a whole component of the
|
118
|
+
# qualified name, i.e. "foo.*" is ok, but not "foo.b*" or "foo.*.bar". To
|
119
|
+
# specify a default for all applicable elements, the whole pattern "*"
|
120
|
+
# is used.
|
121
|
+
# @!attribute [rw] description
|
122
|
+
# @return [::String]
|
123
|
+
# Description of the selected API(s).
|
124
|
+
# @!attribute [rw] deprecation_description
|
125
|
+
# @return [::String]
|
126
|
+
# Deprecation description of the selected element(s). It can be provided if an
|
127
|
+
# element is marked as `deprecated`.
|
128
|
+
class DocumentationRule
|
129
|
+
include ::Google::Protobuf::MessageExts
|
130
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
131
|
+
end
|
132
|
+
|
133
|
+
# Represents a documentation page. A page can contain subpages to represent
|
134
|
+
# nested documentation set structure.
|
135
|
+
# @!attribute [rw] name
|
136
|
+
# @return [::String]
|
137
|
+
# The name of the page. It will be used as an identity of the page to
|
138
|
+
# generate URI of the page, text of the link to this page in navigation,
|
139
|
+
# etc. The full page name (start from the root page name to this page
|
140
|
+
# concatenated with `.`) can be used as reference to the page in your
|
141
|
+
# documentation. For example:
|
142
|
+
# <pre><code>pages:
|
143
|
+
# - name: Tutorial
|
144
|
+
# content: (== include tutorial.md ==)
|
145
|
+
# subpages:
|
146
|
+
# - name: Java
|
147
|
+
# content: (== include tutorial_java.md ==)
|
148
|
+
# </code></pre>
|
149
|
+
# You can reference `Java` page using Markdown reference link syntax:
|
150
|
+
# `[Java][Tutorial.Java]`.
|
151
|
+
# @!attribute [rw] content
|
152
|
+
# @return [::String]
|
153
|
+
# The Markdown content of the page. You can use <code>(== include \\{path} ==)</code>
|
154
|
+
# to include content from a Markdown file.
|
155
|
+
# @!attribute [rw] subpages
|
156
|
+
# @return [::Array<::Google::Api::Page>]
|
157
|
+
# Subpages of this page. The order of subpages specified here will be
|
158
|
+
# honored in the generated docset.
|
159
|
+
class Page
|
160
|
+
include ::Google::Protobuf::MessageExts
|
161
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
162
|
+
end
|
163
|
+
end
|
164
|
+
end
|
@@ -0,0 +1,70 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# Copyright 2020 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 Api
|
22
|
+
# `Endpoint` describes a network endpoint that serves a set of APIs.
|
23
|
+
# A service may expose any number of endpoints, and all endpoints share the
|
24
|
+
# same service configuration, such as quota configuration and monitoring
|
25
|
+
# configuration.
|
26
|
+
#
|
27
|
+
# Example service configuration:
|
28
|
+
#
|
29
|
+
# name: library-example.googleapis.com
|
30
|
+
# endpoints:
|
31
|
+
# # Below entry makes 'google.example.library.v1.Library'
|
32
|
+
# # API be served from endpoint address library-example.googleapis.com.
|
33
|
+
# # It also allows HTTP OPTIONS calls to be passed to the backend, for
|
34
|
+
# # it to decide whether the subsequent cross-origin request is
|
35
|
+
# # allowed to proceed.
|
36
|
+
# - name: library-example.googleapis.com
|
37
|
+
# allow_cors: true
|
38
|
+
# @!attribute [rw] name
|
39
|
+
# @return [::String]
|
40
|
+
# The canonical name of this endpoint.
|
41
|
+
# @!attribute [rw] aliases
|
42
|
+
# @return [::Array<::String>]
|
43
|
+
# DEPRECATED: This field is no longer supported. Instead of using aliases,
|
44
|
+
# please specify multiple {::Google::Api::Endpoint google.api.Endpoint} for each of the intended
|
45
|
+
# aliases.
|
46
|
+
#
|
47
|
+
# Additional names that this endpoint will be hosted on.
|
48
|
+
# @!attribute [rw] features
|
49
|
+
# @return [::Array<::String>]
|
50
|
+
# The list of features enabled on this endpoint.
|
51
|
+
# @!attribute [rw] target
|
52
|
+
# @return [::String]
|
53
|
+
# The specification of an Internet routable address of API frontend that will
|
54
|
+
# handle requests to this [API Endpoint](https://cloud.google.com/apis/design/glossary).
|
55
|
+
# It should be either a valid IPv4 address or a fully-qualified domain name.
|
56
|
+
# For example, "8.8.8.8" or "myservice.appspot.com".
|
57
|
+
# @!attribute [rw] allow_cors
|
58
|
+
# @return [::Boolean]
|
59
|
+
# Allowing
|
60
|
+
# [CORS](https://en.wikipedia.org/wiki/Cross-origin_resource_sharing), aka
|
61
|
+
# cross-domain traffic, would allow the backends served from this endpoint to
|
62
|
+
# receive and respond to HTTP OPTIONS requests. The response will be used by
|
63
|
+
# the browser to determine whether the subsequent cross-origin request is
|
64
|
+
# allowed to proceed.
|
65
|
+
class Endpoint
|
66
|
+
include ::Google::Protobuf::MessageExts
|
67
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
68
|
+
end
|
69
|
+
end
|
70
|
+
end
|
@@ -0,0 +1,59 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# Copyright 2020 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 Api
|
22
|
+
# An indicator of the behavior of a given field (for example, that a field
|
23
|
+
# is required in requests, or given as output but ignored as input).
|
24
|
+
# This **does not** change the behavior in protocol buffers itself; it only
|
25
|
+
# denotes the behavior and may affect how API tooling handles the field.
|
26
|
+
#
|
27
|
+
# Note: This enum **may** receive new values in the future.
|
28
|
+
module FieldBehavior
|
29
|
+
# Conventional default for enums. Do not use this.
|
30
|
+
FIELD_BEHAVIOR_UNSPECIFIED = 0
|
31
|
+
|
32
|
+
# Specifically denotes a field as optional.
|
33
|
+
# While all fields in protocol buffers are optional, this may be specified
|
34
|
+
# for emphasis if appropriate.
|
35
|
+
OPTIONAL = 1
|
36
|
+
|
37
|
+
# Denotes a field as required.
|
38
|
+
# This indicates that the field **must** be provided as part of the request,
|
39
|
+
# and failure to do so will cause an error (usually `INVALID_ARGUMENT`).
|
40
|
+
REQUIRED = 2
|
41
|
+
|
42
|
+
# Denotes a field as output only.
|
43
|
+
# This indicates that the field is provided in responses, but including the
|
44
|
+
# field in a request does nothing (the server *must* ignore it and
|
45
|
+
# *must not* throw an error as a result of the field's presence).
|
46
|
+
OUTPUT_ONLY = 3
|
47
|
+
|
48
|
+
# Denotes a field as input only.
|
49
|
+
# This indicates that the field is provided in requests, and the
|
50
|
+
# corresponding field is not included in output.
|
51
|
+
INPUT_ONLY = 4
|
52
|
+
|
53
|
+
# Denotes a field as immutable.
|
54
|
+
# This indicates that the field may be set once in a request to create a
|
55
|
+
# resource, but may not be changed thereafter.
|
56
|
+
IMMUTABLE = 5
|
57
|
+
end
|
58
|
+
end
|
59
|
+
end
|
@@ -0,0 +1,49 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# Copyright 2020 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 Api
|
22
|
+
# A description of a label.
|
23
|
+
# @!attribute [rw] key
|
24
|
+
# @return [::String]
|
25
|
+
# The label key.
|
26
|
+
# @!attribute [rw] value_type
|
27
|
+
# @return [::Google::Api::LabelDescriptor::ValueType]
|
28
|
+
# The type of data that can be assigned to the label.
|
29
|
+
# @!attribute [rw] description
|
30
|
+
# @return [::String]
|
31
|
+
# A human-readable description for the label.
|
32
|
+
class LabelDescriptor
|
33
|
+
include ::Google::Protobuf::MessageExts
|
34
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
35
|
+
|
36
|
+
# Value types that can be used as label values.
|
37
|
+
module ValueType
|
38
|
+
# A variable-length string. This is the default.
|
39
|
+
STRING = 0
|
40
|
+
|
41
|
+
# Boolean; true or false.
|
42
|
+
BOOL = 1
|
43
|
+
|
44
|
+
# A 64-bit signed integer.
|
45
|
+
INT64 = 2
|
46
|
+
end
|
47
|
+
end
|
48
|
+
end
|
49
|
+
end
|
@@ -0,0 +1,54 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# Copyright 2020 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 Api
|
22
|
+
# A description of a log type. Example in YAML format:
|
23
|
+
#
|
24
|
+
# - name: library.googleapis.com/activity_history
|
25
|
+
# description: The history of borrowing and returning library items.
|
26
|
+
# display_name: Activity
|
27
|
+
# labels:
|
28
|
+
# - key: /customer_id
|
29
|
+
# description: Identifier of a library customer
|
30
|
+
# @!attribute [rw] name
|
31
|
+
# @return [::String]
|
32
|
+
# The name of the log. It must be less than 512 characters long and can
|
33
|
+
# include the following characters: upper- and lower-case alphanumeric
|
34
|
+
# characters [A-Za-z0-9], and punctuation characters including
|
35
|
+
# slash, underscore, hyphen, period [/_-.].
|
36
|
+
# @!attribute [rw] labels
|
37
|
+
# @return [::Array<::Google::Api::LabelDescriptor>]
|
38
|
+
# The set of labels that are available to describe a specific log entry.
|
39
|
+
# Runtime requests that contain labels not specified here are
|
40
|
+
# considered invalid.
|
41
|
+
# @!attribute [rw] description
|
42
|
+
# @return [::String]
|
43
|
+
# A human-readable description of this log. This information appears in
|
44
|
+
# the documentation and can contain details.
|
45
|
+
# @!attribute [rw] display_name
|
46
|
+
# @return [::String]
|
47
|
+
# The human-readable name for this log. This information appears on
|
48
|
+
# the user interface and should be concise.
|
49
|
+
class LogDescriptor
|
50
|
+
include ::Google::Protobuf::MessageExts
|
51
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
52
|
+
end
|
53
|
+
end
|
54
|
+
end
|
@@ -0,0 +1,85 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# Copyright 2020 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 Api
|
22
|
+
# Logging configuration of the service.
|
23
|
+
#
|
24
|
+
# The following example shows how to configure logs to be sent to the
|
25
|
+
# producer and consumer projects. In the example, the `activity_history`
|
26
|
+
# log is sent to both the producer and consumer projects, whereas the
|
27
|
+
# `purchase_history` log is only sent to the producer project.
|
28
|
+
#
|
29
|
+
# monitored_resources:
|
30
|
+
# - type: library.googleapis.com/branch
|
31
|
+
# labels:
|
32
|
+
# - key: /city
|
33
|
+
# description: The city where the library branch is located in.
|
34
|
+
# - key: /name
|
35
|
+
# description: The name of the branch.
|
36
|
+
# logs:
|
37
|
+
# - name: activity_history
|
38
|
+
# labels:
|
39
|
+
# - key: /customer_id
|
40
|
+
# - name: purchase_history
|
41
|
+
# logging:
|
42
|
+
# producer_destinations:
|
43
|
+
# - monitored_resource: library.googleapis.com/branch
|
44
|
+
# logs:
|
45
|
+
# - activity_history
|
46
|
+
# - purchase_history
|
47
|
+
# consumer_destinations:
|
48
|
+
# - monitored_resource: library.googleapis.com/branch
|
49
|
+
# logs:
|
50
|
+
# - activity_history
|
51
|
+
# @!attribute [rw] producer_destinations
|
52
|
+
# @return [::Array<::Google::Api::Logging::LoggingDestination>]
|
53
|
+
# Logging configurations for sending logs to the producer project.
|
54
|
+
# There can be multiple producer destinations, each one must have a
|
55
|
+
# different monitored resource type. A log can be used in at most
|
56
|
+
# one producer destination.
|
57
|
+
# @!attribute [rw] consumer_destinations
|
58
|
+
# @return [::Array<::Google::Api::Logging::LoggingDestination>]
|
59
|
+
# Logging configurations for sending logs to the consumer project.
|
60
|
+
# There can be multiple consumer destinations, each one must have a
|
61
|
+
# different monitored resource type. A log can be used in at most
|
62
|
+
# one consumer destination.
|
63
|
+
class Logging
|
64
|
+
include ::Google::Protobuf::MessageExts
|
65
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
66
|
+
|
67
|
+
# Configuration of a specific logging destination (the producer project
|
68
|
+
# or the consumer project).
|
69
|
+
# @!attribute [rw] monitored_resource
|
70
|
+
# @return [::String]
|
71
|
+
# The monitored resource type. The type must be defined in the
|
72
|
+
# {::Google::Api::Service#monitored_resources Service.monitored_resources} section.
|
73
|
+
# @!attribute [rw] logs
|
74
|
+
# @return [::Array<::String>]
|
75
|
+
# 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 log name is
|
77
|
+
# not a domain scoped name, it will be automatically prefixed with
|
78
|
+
# the service name followed by "/".
|
79
|
+
class LoggingDestination
|
80
|
+
include ::Google::Protobuf::MessageExts
|
81
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
82
|
+
end
|
83
|
+
end
|
84
|
+
end
|
85
|
+
end
|