google-cloud-service_management-v1 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +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,28 @@
|
|
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 Cloud
|
22
|
+
module ServiceManagement
|
23
|
+
module V1
|
24
|
+
VERSION = "0.1.0"
|
25
|
+
end
|
26
|
+
end
|
27
|
+
end
|
28
|
+
end
|
@@ -0,0 +1,192 @@
|
|
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
|
+
# `Authentication` defines the authentication configuration for an API.
|
23
|
+
#
|
24
|
+
# Example for an API targeted for external use:
|
25
|
+
#
|
26
|
+
# name: calendar.googleapis.com
|
27
|
+
# authentication:
|
28
|
+
# providers:
|
29
|
+
# - id: google_calendar_auth
|
30
|
+
# jwks_uri: https://www.googleapis.com/oauth2/v1/certs
|
31
|
+
# issuer: https://securetoken.google.com
|
32
|
+
# rules:
|
33
|
+
# - selector: "*"
|
34
|
+
# requirements:
|
35
|
+
# provider_id: google_calendar_auth
|
36
|
+
# @!attribute [rw] rules
|
37
|
+
# @return [::Array<::Google::Api::AuthenticationRule>]
|
38
|
+
# A list of authentication rules that apply to individual API methods.
|
39
|
+
#
|
40
|
+
# **NOTE:** All service configuration rules follow "last one wins" order.
|
41
|
+
# @!attribute [rw] providers
|
42
|
+
# @return [::Array<::Google::Api::AuthProvider>]
|
43
|
+
# Defines a set of authentication providers that a service supports.
|
44
|
+
class Authentication
|
45
|
+
include ::Google::Protobuf::MessageExts
|
46
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
47
|
+
end
|
48
|
+
|
49
|
+
# Authentication rules for the service.
|
50
|
+
#
|
51
|
+
# By default, if a method has any authentication requirements, every request
|
52
|
+
# must include a valid credential matching one of the requirements.
|
53
|
+
# It's an error to include more than one kind of credential in a single
|
54
|
+
# request.
|
55
|
+
#
|
56
|
+
# If a method doesn't have any auth requirements, request credentials will be
|
57
|
+
# ignored.
|
58
|
+
# @!attribute [rw] selector
|
59
|
+
# @return [::String]
|
60
|
+
# Selects the methods to which this rule applies.
|
61
|
+
#
|
62
|
+
# Refer to {::Google::Api::DocumentationRule#selector selector} for syntax details.
|
63
|
+
# @!attribute [rw] oauth
|
64
|
+
# @return [::Google::Api::OAuthRequirements]
|
65
|
+
# The requirements for OAuth credentials.
|
66
|
+
# @!attribute [rw] allow_without_credential
|
67
|
+
# @return [::Boolean]
|
68
|
+
# If true, the service accepts API keys without any other credential.
|
69
|
+
# @!attribute [rw] requirements
|
70
|
+
# @return [::Array<::Google::Api::AuthRequirement>]
|
71
|
+
# Requirements for additional authentication providers.
|
72
|
+
class AuthenticationRule
|
73
|
+
include ::Google::Protobuf::MessageExts
|
74
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
75
|
+
end
|
76
|
+
|
77
|
+
# Configuration for an anthentication provider, including support for
|
78
|
+
# [JSON Web Token (JWT)](https://tools.ietf.org/html/draft-ietf-oauth-json-web-token-32).
|
79
|
+
# @!attribute [rw] id
|
80
|
+
# @return [::String]
|
81
|
+
# The unique identifier of the auth provider. It will be referred to by
|
82
|
+
# `AuthRequirement.provider_id`.
|
83
|
+
#
|
84
|
+
# Example: "bookstore_auth".
|
85
|
+
# @!attribute [rw] issuer
|
86
|
+
# @return [::String]
|
87
|
+
# Identifies the principal that issued the JWT. See
|
88
|
+
# https://tools.ietf.org/html/draft-ietf-oauth-json-web-token-32#section-4.1.1
|
89
|
+
# Usually a URL or an email address.
|
90
|
+
#
|
91
|
+
# Example: https://securetoken.google.com
|
92
|
+
# Example: 1234567-compute@developer.gserviceaccount.com
|
93
|
+
# @!attribute [rw] jwks_uri
|
94
|
+
# @return [::String]
|
95
|
+
# URL of the provider's public key set to validate signature of the JWT. See
|
96
|
+
# [OpenID Discovery](https://openid.net/specs/openid-connect-discovery-1_0.html#ProviderMetadata).
|
97
|
+
# Optional if the key set document:
|
98
|
+
# - can be retrieved from
|
99
|
+
# [OpenID Discovery](https://openid.net/specs/openid-connect-discovery-1_0.html
|
100
|
+
# of the issuer.
|
101
|
+
# - can be inferred from the email domain of the issuer (e.g. a Google service account).
|
102
|
+
#
|
103
|
+
# Example: https://www.googleapis.com/oauth2/v1/certs
|
104
|
+
# @!attribute [rw] audiences
|
105
|
+
# @return [::String]
|
106
|
+
# The list of JWT
|
107
|
+
# [audiences](https://tools.ietf.org/html/draft-ietf-oauth-json-web-token-32#section-4.1.3).
|
108
|
+
# that are allowed to access. A JWT containing any of these audiences will
|
109
|
+
# be accepted. When this setting is absent, only JWTs with audience
|
110
|
+
# "https://{::Google::Api::Service#name Service_name}/{::Google::Protobuf::Api#name API_name}"
|
111
|
+
# will be accepted. For example, if no audiences are in the setting,
|
112
|
+
# LibraryService API will only accept JWTs with the following audience
|
113
|
+
# "https://library-example.googleapis.com/google.example.library.v1.LibraryService".
|
114
|
+
#
|
115
|
+
# Example:
|
116
|
+
#
|
117
|
+
# audiences: bookstore_android.apps.googleusercontent.com,
|
118
|
+
# bookstore_web.apps.googleusercontent.com
|
119
|
+
# @!attribute [rw] authorization_url
|
120
|
+
# @return [::String]
|
121
|
+
# Redirect URL if JWT token is required but no present or is expired.
|
122
|
+
# Implement authorizationUrl of securityDefinitions in OpenAPI spec.
|
123
|
+
class AuthProvider
|
124
|
+
include ::Google::Protobuf::MessageExts
|
125
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
126
|
+
end
|
127
|
+
|
128
|
+
# OAuth scopes are a way to define data and permissions on data. For example,
|
129
|
+
# there are scopes defined for "Read-only access to Google Calendar" and
|
130
|
+
# "Access to Cloud Platform". Users can consent to a scope for an application,
|
131
|
+
# giving it permission to access that data on their behalf.
|
132
|
+
#
|
133
|
+
# OAuth scope specifications should be fairly coarse grained; a user will need
|
134
|
+
# to see and understand the text description of what your scope means.
|
135
|
+
#
|
136
|
+
# In most cases: use one or at most two OAuth scopes for an entire family of
|
137
|
+
# products. If your product has multiple APIs, you should probably be sharing
|
138
|
+
# the OAuth scope across all of those APIs.
|
139
|
+
#
|
140
|
+
# When you need finer grained OAuth consent screens: talk with your product
|
141
|
+
# management about how developers will use them in practice.
|
142
|
+
#
|
143
|
+
# Please note that even though each of the canonical scopes is enough for a
|
144
|
+
# request to be accepted and passed to the backend, a request can still fail
|
145
|
+
# due to the backend requiring additional scopes or permissions.
|
146
|
+
# @!attribute [rw] canonical_scopes
|
147
|
+
# @return [::String]
|
148
|
+
# The list of publicly documented OAuth scopes that are allowed access. An
|
149
|
+
# OAuth token containing any of these scopes will be accepted.
|
150
|
+
#
|
151
|
+
# Example:
|
152
|
+
#
|
153
|
+
# canonical_scopes: https://www.googleapis.com/auth/calendar,
|
154
|
+
# https://www.googleapis.com/auth/calendar.read
|
155
|
+
class OAuthRequirements
|
156
|
+
include ::Google::Protobuf::MessageExts
|
157
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
158
|
+
end
|
159
|
+
|
160
|
+
# User-defined authentication requirements, including support for
|
161
|
+
# [JSON Web Token (JWT)](https://tools.ietf.org/html/draft-ietf-oauth-json-web-token-32).
|
162
|
+
# @!attribute [rw] provider_id
|
163
|
+
# @return [::String]
|
164
|
+
# {::Google::Api::AuthProvider#id id} from authentication provider.
|
165
|
+
#
|
166
|
+
# Example:
|
167
|
+
#
|
168
|
+
# provider_id: bookstore_auth
|
169
|
+
# @!attribute [rw] audiences
|
170
|
+
# @return [::String]
|
171
|
+
# NOTE: This will be deprecated soon, once AuthProvider.audiences is
|
172
|
+
# implemented and accepted in all the runtime components.
|
173
|
+
#
|
174
|
+
# The list of JWT
|
175
|
+
# [audiences](https://tools.ietf.org/html/draft-ietf-oauth-json-web-token-32#section-4.1.3).
|
176
|
+
# that are allowed to access. A JWT containing any of these audiences will
|
177
|
+
# be accepted. When this setting is absent, only JWTs with audience
|
178
|
+
# "https://{::Google::Api::Service#name Service_name}/{::Google::Protobuf::Api#name API_name}"
|
179
|
+
# will be accepted. For example, if no audiences are in the setting,
|
180
|
+
# LibraryService API will only accept JWTs with the following audience
|
181
|
+
# "https://library-example.googleapis.com/google.example.library.v1.LibraryService".
|
182
|
+
#
|
183
|
+
# Example:
|
184
|
+
#
|
185
|
+
# audiences: bookstore_android.apps.googleusercontent.com,
|
186
|
+
# bookstore_web.apps.googleusercontent.com
|
187
|
+
class AuthRequirement
|
188
|
+
include ::Google::Protobuf::MessageExts
|
189
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
190
|
+
end
|
191
|
+
end
|
192
|
+
end
|
@@ -0,0 +1,55 @@
|
|
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
|
+
# `Backend` defines the backend configuration for a service.
|
23
|
+
# @!attribute [rw] rules
|
24
|
+
# @return [::Array<::Google::Api::BackendRule>]
|
25
|
+
# A list of API backend rules that apply to individual API methods.
|
26
|
+
#
|
27
|
+
# **NOTE:** All service configuration rules follow "last one wins" order.
|
28
|
+
class Backend
|
29
|
+
include ::Google::Protobuf::MessageExts
|
30
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
31
|
+
end
|
32
|
+
|
33
|
+
# A backend rule provides configuration for an individual API element.
|
34
|
+
# @!attribute [rw] selector
|
35
|
+
# @return [::String]
|
36
|
+
# Selects the methods to which this rule applies.
|
37
|
+
#
|
38
|
+
# Refer to {::Google::Api::DocumentationRule#selector selector} for syntax details.
|
39
|
+
# @!attribute [rw] address
|
40
|
+
# @return [::String]
|
41
|
+
# The address of the API backend.
|
42
|
+
# @!attribute [rw] deadline
|
43
|
+
# @return [::Float]
|
44
|
+
# The number of seconds to wait for a response from a request. The default
|
45
|
+
# deadline for gRPC is infinite (no deadline) and HTTP requests is 5 seconds.
|
46
|
+
# @!attribute [rw] min_deadline
|
47
|
+
# @return [::Float]
|
48
|
+
# Minimum deadline in seconds needed for this method. Calls having deadline
|
49
|
+
# value lower than this will be rejected.
|
50
|
+
class BackendRule
|
51
|
+
include ::Google::Protobuf::MessageExts
|
52
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
53
|
+
end
|
54
|
+
end
|
55
|
+
end
|
@@ -0,0 +1,69 @@
|
|
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
|
+
# Billing related configuration of the service.
|
23
|
+
#
|
24
|
+
# The following example shows how to configure monitored resources and metrics
|
25
|
+
# for billing:
|
26
|
+
#
|
27
|
+
# monitored_resources:
|
28
|
+
# - type: library.googleapis.com/branch
|
29
|
+
# labels:
|
30
|
+
# - key: /city
|
31
|
+
# description: The city where the library branch is located in.
|
32
|
+
# - key: /name
|
33
|
+
# description: The name of the branch.
|
34
|
+
# metrics:
|
35
|
+
# - name: library.googleapis.com/book/borrowed_count
|
36
|
+
# metric_kind: DELTA
|
37
|
+
# value_type: INT64
|
38
|
+
# billing:
|
39
|
+
# consumer_destinations:
|
40
|
+
# - monitored_resource: library.googleapis.com/branch
|
41
|
+
# metrics:
|
42
|
+
# - library.googleapis.com/book/borrowed_count
|
43
|
+
# @!attribute [rw] consumer_destinations
|
44
|
+
# @return [::Array<::Google::Api::Billing::BillingDestination>]
|
45
|
+
# Billing configurations for sending metrics to the consumer project.
|
46
|
+
# There can be multiple consumer destinations per service, each one must have
|
47
|
+
# a different monitored resource type. A metric can be used in at most
|
48
|
+
# one consumer destination.
|
49
|
+
class Billing
|
50
|
+
include ::Google::Protobuf::MessageExts
|
51
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
52
|
+
|
53
|
+
# Configuration of a specific billing destination (Currently only support
|
54
|
+
# bill against consumer project).
|
55
|
+
# @!attribute [rw] monitored_resource
|
56
|
+
# @return [::String]
|
57
|
+
# The monitored resource type. The type must be defined in
|
58
|
+
# {::Google::Api::Service#monitored_resources Service.monitored_resources} section.
|
59
|
+
# @!attribute [rw] metrics
|
60
|
+
# @return [::Array<::String>]
|
61
|
+
# Names of the metrics to report to this billing destination.
|
62
|
+
# Each name must be defined in {::Google::Api::Service#metrics Service.metrics} section.
|
63
|
+
class BillingDestination
|
64
|
+
include ::Google::Protobuf::MessageExts
|
65
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
66
|
+
end
|
67
|
+
end
|
68
|
+
end
|
69
|
+
end
|
@@ -0,0 +1,89 @@
|
|
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
|
+
# Output generated from semantically comparing two versions of a service
|
23
|
+
# configuration.
|
24
|
+
#
|
25
|
+
# Includes detailed information about a field that have changed with
|
26
|
+
# applicable advice about potential consequences for the change, such as
|
27
|
+
# backwards-incompatibility.
|
28
|
+
# @!attribute [rw] element
|
29
|
+
# @return [::String]
|
30
|
+
# Object hierarchy path to the change, with levels separated by a '.'
|
31
|
+
# character. For repeated fields, an applicable unique identifier field is
|
32
|
+
# used for the index (usually selector, name, or id). For maps, the term
|
33
|
+
# 'key' is used. If the field has no unique identifier, the numeric index
|
34
|
+
# is used.
|
35
|
+
# Examples:
|
36
|
+
# - visibility.rules[selector=="google.LibraryService.CreateBook"].restriction
|
37
|
+
# - quota.metric_rules[selector=="google"].metric_costs[key=="reads"].value
|
38
|
+
# - logging.producer_destinations[0]
|
39
|
+
# @!attribute [rw] old_value
|
40
|
+
# @return [::String]
|
41
|
+
# Value of the changed object in the old Service configuration,
|
42
|
+
# in JSON format. This field will not be populated if ChangeType == ADDED.
|
43
|
+
# @!attribute [rw] new_value
|
44
|
+
# @return [::String]
|
45
|
+
# Value of the changed object in the new Service configuration,
|
46
|
+
# in JSON format. This field will not be populated if ChangeType == REMOVED.
|
47
|
+
# @!attribute [rw] change_type
|
48
|
+
# @return [::Google::Api::ChangeType]
|
49
|
+
# The type for this change, either ADDED, REMOVED, or MODIFIED.
|
50
|
+
# @!attribute [rw] advices
|
51
|
+
# @return [::Array<::Google::Api::Advice>]
|
52
|
+
# Collection of advice provided for this change, useful for determining the
|
53
|
+
# possible impact of this change.
|
54
|
+
class ConfigChange
|
55
|
+
include ::Google::Protobuf::MessageExts
|
56
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
57
|
+
end
|
58
|
+
|
59
|
+
# Generated advice about this change, used for providing more
|
60
|
+
# information about how a change will affect the existing service.
|
61
|
+
# @!attribute [rw] description
|
62
|
+
# @return [::String]
|
63
|
+
# Useful description for why this advice was applied and what actions should
|
64
|
+
# be taken to mitigate any implied risks.
|
65
|
+
class Advice
|
66
|
+
include ::Google::Protobuf::MessageExts
|
67
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
68
|
+
end
|
69
|
+
|
70
|
+
# Classifies set of possible modifications to an object in the service
|
71
|
+
# configuration.
|
72
|
+
module ChangeType
|
73
|
+
# No value was provided.
|
74
|
+
CHANGE_TYPE_UNSPECIFIED = 0
|
75
|
+
|
76
|
+
# The changed object exists in the 'new' service configuration, but not
|
77
|
+
# in the 'old' service configuration.
|
78
|
+
ADDED = 1
|
79
|
+
|
80
|
+
# The changed object exists in the 'old' service configuration, but not
|
81
|
+
# in the 'new' service configuration.
|
82
|
+
REMOVED = 2
|
83
|
+
|
84
|
+
# The changed object exists in both service configurations, but its value
|
85
|
+
# is different.
|
86
|
+
MODIFIED = 3
|
87
|
+
end
|
88
|
+
end
|
89
|
+
end
|
@@ -0,0 +1,67 @@
|
|
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
|
+
# `Context` defines which contexts an API requests.
|
23
|
+
#
|
24
|
+
# Example:
|
25
|
+
#
|
26
|
+
# context:
|
27
|
+
# rules:
|
28
|
+
# - selector: "*"
|
29
|
+
# requested:
|
30
|
+
# - google.rpc.context.ProjectContext
|
31
|
+
# - google.rpc.context.OriginContext
|
32
|
+
#
|
33
|
+
# The above specifies that all methods in the API request
|
34
|
+
# `google.rpc.context.ProjectContext` and
|
35
|
+
# `google.rpc.context.OriginContext`.
|
36
|
+
#
|
37
|
+
# Available context types are defined in package
|
38
|
+
# `google.rpc.context`.
|
39
|
+
# @!attribute [rw] rules
|
40
|
+
# @return [::Array<::Google::Api::ContextRule>]
|
41
|
+
# A list of RPC context rules that apply to individual API methods.
|
42
|
+
#
|
43
|
+
# **NOTE:** All service configuration rules follow "last one wins" order.
|
44
|
+
class Context
|
45
|
+
include ::Google::Protobuf::MessageExts
|
46
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
47
|
+
end
|
48
|
+
|
49
|
+
# A context rule provides information about the context for an individual API
|
50
|
+
# element.
|
51
|
+
# @!attribute [rw] selector
|
52
|
+
# @return [::String]
|
53
|
+
# Selects the methods to which this rule applies.
|
54
|
+
#
|
55
|
+
# Refer to {::Google::Api::DocumentationRule#selector selector} for syntax details.
|
56
|
+
# @!attribute [rw] requested
|
57
|
+
# @return [::Array<::String>]
|
58
|
+
# A list of full type names of requested contexts.
|
59
|
+
# @!attribute [rw] provided
|
60
|
+
# @return [::Array<::String>]
|
61
|
+
# A list of full type names of provided contexts.
|
62
|
+
class ContextRule
|
63
|
+
include ::Google::Protobuf::MessageExts
|
64
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
65
|
+
end
|
66
|
+
end
|
67
|
+
end
|