blob: 36b3e133d57946de2bc21417d3c3d4469b996da6 [file] [log] [blame]
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -07001<html><body>
2<style>
3
4body, h1, h2, h3, div, span, p, pre, a {
5 margin: 0;
6 padding: 0;
7 border: 0;
8 font-weight: inherit;
9 font-style: inherit;
10 font-size: 100%;
11 font-family: inherit;
12 vertical-align: baseline;
13}
14
15body {
16 font-size: 13px;
17 padding: 1em;
18}
19
20h1 {
21 font-size: 26px;
22 margin-bottom: 1em;
23}
24
25h2 {
26 font-size: 24px;
27 margin-bottom: 1em;
28}
29
30h3 {
31 font-size: 20px;
32 margin-bottom: 1em;
33 margin-top: 1em;
34}
35
36pre, code {
37 line-height: 1.5;
38 font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace;
39}
40
41pre {
42 margin-top: 0.5em;
43}
44
45h1, h2, h3, p {
46 font-family: Arial, sans serif;
47}
48
49h1, h2, h3 {
50 border-bottom: solid #CCC 1px;
51}
52
53.toc_element {
54 margin-top: 0.5em;
55}
56
57.firstline {
58 margin-left: 2 em;
59}
60
61.method {
62 margin-top: 1em;
63 border: solid 1px #CCC;
64 padding: 1em;
65 background: #EEE;
66}
67
68.details {
69 font-weight: bold;
70 font-size: 14px;
71}
72
73</style>
74
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070075<h1><a href="servicemanagement_v1.html">Service Management API</a> . <a href="servicemanagement_v1.services.html">services</a></h1>
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -070076<h2>Instance Methods</h2>
77<p class="toc_element">
78 <code><a href="servicemanagement_v1.services.configs.html">configs()</a></code>
79</p>
80<p class="firstline">Returns the configs Resource.</p>
81
82<p class="toc_element">
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -040083 <code><a href="servicemanagement_v1.services.consumers.html">consumers()</a></code>
84</p>
85<p class="firstline">Returns the consumers Resource.</p>
86
87<p class="toc_element">
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -070088 <code><a href="servicemanagement_v1.services.rollouts.html">rollouts()</a></code>
89</p>
90<p class="firstline">Returns the rollouts Resource.</p>
91
92<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -070093 <code><a href="#create">create(body=None, x__xgafv=None)</a></code></p>
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -070094<p class="firstline">Creates a new managed service.</p>
95<p class="toc_element">
Thomas Coffee2f245372017-03-27 10:39:26 -070096 <code><a href="#delete">delete(serviceName, x__xgafv=None)</a></code></p>
Jon Wayne Parrott692617a2017-01-06 09:58:29 -080097<p class="firstline">Deletes a managed service. This method will change the service to the</p>
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -070098<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -070099 <code><a href="#disable">disable(serviceName, body=None, x__xgafv=None)</a></code></p>
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400100<p class="firstline">Disables a service for a project, so it can no longer be</p>
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700101<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -0700102 <code><a href="#enable">enable(serviceName, body=None, x__xgafv=None)</a></code></p>
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400103<p class="firstline">Enables a service for a project, so it can be used</p>
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700104<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -0700105 <code><a href="#generateConfigReport">generateConfigReport(body=None, x__xgafv=None)</a></code></p>
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700106<p class="firstline">Generates and returns a report (errors, warnings and changes from</p>
107<p class="toc_element">
Thomas Coffee2f245372017-03-27 10:39:26 -0700108 <code><a href="#get">get(serviceName, x__xgafv=None)</a></code></p>
Jon Wayne Parrott692617a2017-01-06 09:58:29 -0800109<p class="firstline">Gets a managed service. Authentication is required unless the service is</p>
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700110<p class="toc_element">
Bu Sun Kim65020912020-05-20 12:08:20 -0700111 <code><a href="#getConfig">getConfig(serviceName, configId=None, view=None, x__xgafv=None)</a></code></p>
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700112<p class="firstline">Gets a service configuration (version) for a managed service.</p>
113<p class="toc_element">
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700114 <code><a href="#getIamPolicy">getIamPolicy(resource, body=None, x__xgafv=None)</a></code></p>
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700115<p class="firstline">Gets the access control policy for a resource.</p>
116<p class="toc_element">
Bu Sun Kim65020912020-05-20 12:08:20 -0700117 <code><a href="#list">list(consumerId=None, pageToken=None, pageSize=None, producerProjectId=None, x__xgafv=None)</a></code></p>
Jon Wayne Parrott692617a2017-01-06 09:58:29 -0800118<p class="firstline">Lists managed services.</p>
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700119<p class="toc_element">
120 <code><a href="#list_next">list_next(previous_request, previous_response)</a></code></p>
121<p class="firstline">Retrieves the next page of results.</p>
122<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -0700123 <code><a href="#setIamPolicy">setIamPolicy(resource, body=None, x__xgafv=None)</a></code></p>
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700124<p class="firstline">Sets the access control policy on the specified resource. Replaces any</p>
125<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -0700126 <code><a href="#testIamPermissions">testIamPermissions(resource, body=None, x__xgafv=None)</a></code></p>
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700127<p class="firstline">Returns permissions that a caller has on the specified resource.</p>
128<p class="toc_element">
Thomas Coffee2f245372017-03-27 10:39:26 -0700129 <code><a href="#undelete">undelete(serviceName, x__xgafv=None)</a></code></p>
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700130<p class="firstline">Revives a previously deleted managed service. The method restores the</p>
131<h3>Method Details</h3>
132<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -0700133 <code class="details" id="create">create(body=None, x__xgafv=None)</code>
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700134 <pre>Creates a new managed service.
135
Dan O'Mearadd494642020-05-01 07:42:23 -0700136A managed service is immutable, and is subject to mandatory 30-day
137data retention. You cannot move a service or recreate it within 30 days
138after deletion.
139
140One producer project can own no more than 500 services. For security and
141reliability purposes, a production service should be hosted in a
142dedicated producer project.
143
144Operation&lt;response: ManagedService&gt;
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700145
146Args:
Dan O'Mearadd494642020-05-01 07:42:23 -0700147 body: object, The request body.
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700148 The object takes the form of:
149
150{ # The full representation of a Service that is managed by
151 # Google Service Management.
Bu Sun Kim65020912020-05-20 12:08:20 -0700152 &quot;producerProjectId&quot;: &quot;A String&quot;, # ID of the project that produces and owns this service.
153 &quot;serviceName&quot;: &quot;A String&quot;, # The name of the service. See the [overview](/service-management/overview)
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700154 # for naming requirements.
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700155}
156
157 x__xgafv: string, V1 error format.
158 Allowed values
159 1 - v1 error format
160 2 - v2 error format
161
162Returns:
163 An object of the form:
164
165 { # This resource represents a long-running operation that is the result of a
166 # network API call.
Bu Sun Kim65020912020-05-20 12:08:20 -0700167 &quot;metadata&quot;: { # Service-specific metadata associated with the operation. It typically
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -0400168 # contains progress information and common metadata such as create time.
169 # Some services might not provide such metadata. Any method that returns a
170 # long-running operation should document the metadata type, if any.
Bu Sun Kim65020912020-05-20 12:08:20 -0700171 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -0400172 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700173 &quot;done&quot;: True or False, # If the value is `false`, it means the operation is still in progress.
Dan O'Mearadd494642020-05-01 07:42:23 -0700174 # If `true`, the operation is completed, and either `error` or `response` is
175 # available.
Bu Sun Kim65020912020-05-20 12:08:20 -0700176 &quot;response&quot;: { # The normal response of the operation in case of success. If the original
Dan O'Mearadd494642020-05-01 07:42:23 -0700177 # method returns no data on success, such as `Delete`, the response is
178 # `google.protobuf.Empty`. If the original method is standard
179 # `Get`/`Create`/`Update`, the response should be the resource. For other
180 # methods, the response should have the type `XxxResponse`, where `Xxx`
181 # is the original method name. For example, if the original method name
182 # is `TakeSnapshot()`, the inferred response type is
183 # `TakeSnapshotResponse`.
Bu Sun Kim65020912020-05-20 12:08:20 -0700184 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
Dan O'Mearadd494642020-05-01 07:42:23 -0700185 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700186 &quot;name&quot;: &quot;A String&quot;, # The server-assigned name, which is only unique within the same service that
Dan O'Mearadd494642020-05-01 07:42:23 -0700187 # originally returns it. If you use the default HTTP mapping, the
188 # `name` should be a resource name ending with `operations/{unique_id}`.
Bu Sun Kim65020912020-05-20 12:08:20 -0700189 &quot;error&quot;: { # The `Status` type defines a logical error model that is suitable for # The error result of the operation in case of failure or cancellation.
190 # different programming environments, including REST APIs and RPC APIs. It is
191 # used by [gRPC](https://github.com/grpc). Each `Status` message contains
192 # three pieces of data: error code, error message, and error details.
193 #
194 # You can find out more about this error model and how to work with it in the
195 # [API Design Guide](https://cloud.google.com/apis/design/errors).
196 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of
197 # message types for APIs to use.
198 {
199 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
200 },
201 ],
202 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
203 &quot;message&quot;: &quot;A String&quot;, # A developer-facing error message, which should be in English. Any
204 # user-facing error message should be localized and sent in the
205 # google.rpc.Status.details field, or localized by the client.
206 },
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700207 }</pre>
208</div>
209
210<div class="method">
Thomas Coffee2f245372017-03-27 10:39:26 -0700211 <code class="details" id="delete">delete(serviceName, x__xgafv=None)</code>
Jon Wayne Parrott692617a2017-01-06 09:58:29 -0800212 <pre>Deletes a managed service. This method will change the service to the
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700213`Soft-Delete` state for 30 days. Within this period, service producers may
214call UndeleteService to restore the service.
215After 30 days, the service will be permanently deleted.
216
Dan O'Mearadd494642020-05-01 07:42:23 -0700217Operation&lt;response: google.protobuf.Empty&gt;
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700218
219Args:
Dan O'Mearadd494642020-05-01 07:42:23 -0700220 serviceName: string, Required. The name of the service. See the [overview](/service-management/overview)
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700221for naming requirements. For example: `example.googleapis.com`. (required)
222 x__xgafv: string, V1 error format.
223 Allowed values
224 1 - v1 error format
225 2 - v2 error format
226
227Returns:
228 An object of the form:
229
230 { # This resource represents a long-running operation that is the result of a
231 # network API call.
Bu Sun Kim65020912020-05-20 12:08:20 -0700232 &quot;metadata&quot;: { # Service-specific metadata associated with the operation. It typically
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -0400233 # contains progress information and common metadata such as create time.
234 # Some services might not provide such metadata. Any method that returns a
235 # long-running operation should document the metadata type, if any.
Bu Sun Kim65020912020-05-20 12:08:20 -0700236 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -0400237 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700238 &quot;done&quot;: True or False, # If the value is `false`, it means the operation is still in progress.
Dan O'Mearadd494642020-05-01 07:42:23 -0700239 # If `true`, the operation is completed, and either `error` or `response` is
240 # available.
Bu Sun Kim65020912020-05-20 12:08:20 -0700241 &quot;response&quot;: { # The normal response of the operation in case of success. If the original
Dan O'Mearadd494642020-05-01 07:42:23 -0700242 # method returns no data on success, such as `Delete`, the response is
243 # `google.protobuf.Empty`. If the original method is standard
244 # `Get`/`Create`/`Update`, the response should be the resource. For other
245 # methods, the response should have the type `XxxResponse`, where `Xxx`
246 # is the original method name. For example, if the original method name
247 # is `TakeSnapshot()`, the inferred response type is
248 # `TakeSnapshotResponse`.
Bu Sun Kim65020912020-05-20 12:08:20 -0700249 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
Dan O'Mearadd494642020-05-01 07:42:23 -0700250 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700251 &quot;name&quot;: &quot;A String&quot;, # The server-assigned name, which is only unique within the same service that
Dan O'Mearadd494642020-05-01 07:42:23 -0700252 # originally returns it. If you use the default HTTP mapping, the
253 # `name` should be a resource name ending with `operations/{unique_id}`.
Bu Sun Kim65020912020-05-20 12:08:20 -0700254 &quot;error&quot;: { # The `Status` type defines a logical error model that is suitable for # The error result of the operation in case of failure or cancellation.
255 # different programming environments, including REST APIs and RPC APIs. It is
256 # used by [gRPC](https://github.com/grpc). Each `Status` message contains
257 # three pieces of data: error code, error message, and error details.
258 #
259 # You can find out more about this error model and how to work with it in the
260 # [API Design Guide](https://cloud.google.com/apis/design/errors).
261 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of
262 # message types for APIs to use.
263 {
264 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
265 },
266 ],
267 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
268 &quot;message&quot;: &quot;A String&quot;, # A developer-facing error message, which should be in English. Any
269 # user-facing error message should be localized and sent in the
270 # google.rpc.Status.details field, or localized by the client.
271 },
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700272 }</pre>
273</div>
274
275<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -0700276 <code class="details" id="disable">disable(serviceName, body=None, x__xgafv=None)</code>
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400277 <pre>Disables a service for a project, so it can no longer be
278be used for the project. It prevents accidental usage that may cause
279unexpected billing charges or security leaks.
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700280
Dan O'Mearadd494642020-05-01 07:42:23 -0700281Operation&lt;response: DisableServiceResponse&gt;
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700282
283Args:
Dan O'Mearadd494642020-05-01 07:42:23 -0700284 serviceName: string, Required. Name of the service to disable. Specifying an unknown service name
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700285will cause the request to fail. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -0700286 body: object, The request body.
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700287 The object takes the form of:
288
289{ # Request message for DisableService method.
Bu Sun Kim65020912020-05-20 12:08:20 -0700290 &quot;consumerId&quot;: &quot;A String&quot;, # Required. The identity of consumer resource which service disablement will be
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700291 # applied to.
292 #
293 # The Google Service Management implementation accepts the following
Jon Wayne Parrott692617a2017-01-06 09:58:29 -0800294 # forms:
Bu Sun Kim65020912020-05-20 12:08:20 -0700295 # - &quot;project:&lt;project_id&gt;&quot;
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700296 #
297 # Note: this is made compatible with
298 # google.api.servicecontrol.v1.Operation.consumer_id.
299 }
300
301 x__xgafv: string, V1 error format.
302 Allowed values
303 1 - v1 error format
304 2 - v2 error format
305
306Returns:
307 An object of the form:
308
309 { # This resource represents a long-running operation that is the result of a
310 # network API call.
Bu Sun Kim65020912020-05-20 12:08:20 -0700311 &quot;metadata&quot;: { # Service-specific metadata associated with the operation. It typically
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -0400312 # contains progress information and common metadata such as create time.
313 # Some services might not provide such metadata. Any method that returns a
314 # long-running operation should document the metadata type, if any.
Bu Sun Kim65020912020-05-20 12:08:20 -0700315 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -0400316 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700317 &quot;done&quot;: True or False, # If the value is `false`, it means the operation is still in progress.
Dan O'Mearadd494642020-05-01 07:42:23 -0700318 # If `true`, the operation is completed, and either `error` or `response` is
319 # available.
Bu Sun Kim65020912020-05-20 12:08:20 -0700320 &quot;response&quot;: { # The normal response of the operation in case of success. If the original
Dan O'Mearadd494642020-05-01 07:42:23 -0700321 # method returns no data on success, such as `Delete`, the response is
322 # `google.protobuf.Empty`. If the original method is standard
323 # `Get`/`Create`/`Update`, the response should be the resource. For other
324 # methods, the response should have the type `XxxResponse`, where `Xxx`
325 # is the original method name. For example, if the original method name
326 # is `TakeSnapshot()`, the inferred response type is
327 # `TakeSnapshotResponse`.
Bu Sun Kim65020912020-05-20 12:08:20 -0700328 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
Dan O'Mearadd494642020-05-01 07:42:23 -0700329 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700330 &quot;name&quot;: &quot;A String&quot;, # The server-assigned name, which is only unique within the same service that
Dan O'Mearadd494642020-05-01 07:42:23 -0700331 # originally returns it. If you use the default HTTP mapping, the
332 # `name` should be a resource name ending with `operations/{unique_id}`.
Bu Sun Kim65020912020-05-20 12:08:20 -0700333 &quot;error&quot;: { # The `Status` type defines a logical error model that is suitable for # The error result of the operation in case of failure or cancellation.
334 # different programming environments, including REST APIs and RPC APIs. It is
335 # used by [gRPC](https://github.com/grpc). Each `Status` message contains
336 # three pieces of data: error code, error message, and error details.
337 #
338 # You can find out more about this error model and how to work with it in the
339 # [API Design Guide](https://cloud.google.com/apis/design/errors).
340 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of
341 # message types for APIs to use.
342 {
343 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
344 },
345 ],
346 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
347 &quot;message&quot;: &quot;A String&quot;, # A developer-facing error message, which should be in English. Any
348 # user-facing error message should be localized and sent in the
349 # google.rpc.Status.details field, or localized by the client.
350 },
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700351 }</pre>
352</div>
353
354<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -0700355 <code class="details" id="enable">enable(serviceName, body=None, x__xgafv=None)</code>
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400356 <pre>Enables a service for a project, so it can be used
357for the project. See
358[Cloud Auth Guide](https://cloud.google.com/docs/authentication) for
359more information.
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700360
Dan O'Mearadd494642020-05-01 07:42:23 -0700361Operation&lt;response: EnableServiceResponse&gt;
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700362
363Args:
Dan O'Mearadd494642020-05-01 07:42:23 -0700364 serviceName: string, Required. Name of the service to enable. Specifying an unknown service name will
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700365cause the request to fail. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -0700366 body: object, The request body.
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700367 The object takes the form of:
368
369{ # Request message for EnableService method.
Bu Sun Kim65020912020-05-20 12:08:20 -0700370 &quot;consumerId&quot;: &quot;A String&quot;, # Required. The identity of consumer resource which service enablement will be
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700371 # applied to.
372 #
373 # The Google Service Management implementation accepts the following
Jon Wayne Parrott692617a2017-01-06 09:58:29 -0800374 # forms:
Bu Sun Kim65020912020-05-20 12:08:20 -0700375 # - &quot;project:&lt;project_id&gt;&quot;
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700376 #
377 # Note: this is made compatible with
378 # google.api.servicecontrol.v1.Operation.consumer_id.
379 }
380
381 x__xgafv: string, V1 error format.
382 Allowed values
383 1 - v1 error format
384 2 - v2 error format
385
386Returns:
387 An object of the form:
388
389 { # This resource represents a long-running operation that is the result of a
390 # network API call.
Bu Sun Kim65020912020-05-20 12:08:20 -0700391 &quot;metadata&quot;: { # Service-specific metadata associated with the operation. It typically
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -0400392 # contains progress information and common metadata such as create time.
393 # Some services might not provide such metadata. Any method that returns a
394 # long-running operation should document the metadata type, if any.
Bu Sun Kim65020912020-05-20 12:08:20 -0700395 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -0400396 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700397 &quot;done&quot;: True or False, # If the value is `false`, it means the operation is still in progress.
Dan O'Mearadd494642020-05-01 07:42:23 -0700398 # If `true`, the operation is completed, and either `error` or `response` is
399 # available.
Bu Sun Kim65020912020-05-20 12:08:20 -0700400 &quot;response&quot;: { # The normal response of the operation in case of success. If the original
Dan O'Mearadd494642020-05-01 07:42:23 -0700401 # method returns no data on success, such as `Delete`, the response is
402 # `google.protobuf.Empty`. If the original method is standard
403 # `Get`/`Create`/`Update`, the response should be the resource. For other
404 # methods, the response should have the type `XxxResponse`, where `Xxx`
405 # is the original method name. For example, if the original method name
406 # is `TakeSnapshot()`, the inferred response type is
407 # `TakeSnapshotResponse`.
Bu Sun Kim65020912020-05-20 12:08:20 -0700408 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
Dan O'Mearadd494642020-05-01 07:42:23 -0700409 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700410 &quot;name&quot;: &quot;A String&quot;, # The server-assigned name, which is only unique within the same service that
Dan O'Mearadd494642020-05-01 07:42:23 -0700411 # originally returns it. If you use the default HTTP mapping, the
412 # `name` should be a resource name ending with `operations/{unique_id}`.
Bu Sun Kim65020912020-05-20 12:08:20 -0700413 &quot;error&quot;: { # The `Status` type defines a logical error model that is suitable for # The error result of the operation in case of failure or cancellation.
414 # different programming environments, including REST APIs and RPC APIs. It is
415 # used by [gRPC](https://github.com/grpc). Each `Status` message contains
416 # three pieces of data: error code, error message, and error details.
417 #
418 # You can find out more about this error model and how to work with it in the
419 # [API Design Guide](https://cloud.google.com/apis/design/errors).
420 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of
421 # message types for APIs to use.
422 {
423 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
424 },
425 ],
426 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
427 &quot;message&quot;: &quot;A String&quot;, # A developer-facing error message, which should be in English. Any
428 # user-facing error message should be localized and sent in the
429 # google.rpc.Status.details field, or localized by the client.
430 },
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700431 }</pre>
432</div>
433
434<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -0700435 <code class="details" id="generateConfigReport">generateConfigReport(body=None, x__xgafv=None)</code>
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700436 <pre>Generates and returns a report (errors, warnings and changes from
437existing configurations) associated with
438GenerateConfigReportRequest.new_value
439
440If GenerateConfigReportRequest.old_value is specified,
441GenerateConfigReportRequest will contain a single ChangeReport based on the
442comparison between GenerateConfigReportRequest.new_value and
443GenerateConfigReportRequest.old_value.
444If GenerateConfigReportRequest.old_value is not specified, this method
445will compare GenerateConfigReportRequest.new_value with the last pushed
446service configuration.
447
448Args:
Dan O'Mearadd494642020-05-01 07:42:23 -0700449 body: object, The request body.
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700450 The object takes the form of:
451
452{ # Request message for GenerateConfigReport method.
Bu Sun Kim65020912020-05-20 12:08:20 -0700453 &quot;oldConfig&quot;: { # Optional. Service configuration against which the comparison will be done.
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700454 # For this version of API, the supported types are
455 # google.api.servicemanagement.v1.ConfigRef,
456 # google.api.servicemanagement.v1.ConfigSource,
457 # and google.api.Service
Bu Sun Kim65020912020-05-20 12:08:20 -0700458 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700459 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700460 &quot;newConfig&quot;: { # Required. Service configuration for which we want to generate the report.
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700461 # For this version of API, the supported types are
462 # google.api.servicemanagement.v1.ConfigRef,
463 # google.api.servicemanagement.v1.ConfigSource,
464 # and google.api.Service
Bu Sun Kim65020912020-05-20 12:08:20 -0700465 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700466 },
467 }
468
469 x__xgafv: string, V1 error format.
470 Allowed values
471 1 - v1 error format
472 2 - v2 error format
473
474Returns:
475 An object of the form:
476
477 { # Response message for GenerateConfigReport method.
Bu Sun Kim65020912020-05-20 12:08:20 -0700478 &quot;changeReports&quot;: [ # list of ChangeReport, each corresponding to comparison between two
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700479 # service configurations.
480 { # Change report associated with a particular service configuration.
481 #
482 # It contains a list of ConfigChanges based on the comparison between
483 # two service configurations.
Bu Sun Kim65020912020-05-20 12:08:20 -0700484 &quot;configChanges&quot;: [ # List of changes between two service configurations.
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700485 # The changes will be alphabetically sorted based on the identifier
486 # of each change.
487 # A ConfigChange identifier is a dot separated path to the configuration.
Bu Sun Kim65020912020-05-20 12:08:20 -0700488 # Example: visibility.rules[selector=&#x27;LibraryService.CreateBook&#x27;].restriction
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700489 { # Output generated from semantically comparing two versions of a service
490 # configuration.
491 #
492 # Includes detailed information about a field that have changed with
493 # applicable advice about potential consequences for the change, such as
494 # backwards-incompatibility.
Bu Sun Kim65020912020-05-20 12:08:20 -0700495 &quot;element&quot;: &quot;A String&quot;, # Object hierarchy path to the change, with levels separated by a &#x27;.&#x27;
496 # character. For repeated fields, an applicable unique identifier field is
497 # used for the index (usually selector, name, or id). For maps, the term
498 # &#x27;key&#x27; is used. If the field has no unique identifier, the numeric index
499 # is used.
500 # Examples:
501 # - visibility.rules[selector==&quot;google.LibraryService.ListBooks&quot;].restriction
502 # - quota.metric_rules[selector==&quot;google&quot;].metric_costs[key==&quot;reads&quot;].value
503 # - logging.producer_destinations[0]
504 &quot;oldValue&quot;: &quot;A String&quot;, # Value of the changed object in the old Service configuration,
505 # in JSON format. This field will not be populated if ChangeType == ADDED.
506 &quot;advices&quot;: [ # Collection of advice provided for this change, useful for determining the
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700507 # possible impact of this change.
508 { # Generated advice about this change, used for providing more
509 # information about how a change will affect the existing service.
Bu Sun Kim65020912020-05-20 12:08:20 -0700510 &quot;description&quot;: &quot;A String&quot;, # Useful description for why this advice was applied and what actions should
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700511 # be taken to mitigate any implied risks.
512 },
513 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700514 &quot;newValue&quot;: &quot;A String&quot;, # Value of the changed object in the new Service configuration,
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700515 # in JSON format. This field will not be populated if ChangeType == REMOVED.
Bu Sun Kim65020912020-05-20 12:08:20 -0700516 &quot;changeType&quot;: &quot;A String&quot;, # The type for this change, either ADDED, REMOVED, or MODIFIED.
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700517 },
518 ],
519 },
520 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700521 &quot;id&quot;: &quot;A String&quot;, # ID of the service configuration this report belongs to.
522 &quot;diagnostics&quot;: [ # Errors / Linter warnings associated with the service definition this
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700523 # report
524 # belongs to.
525 { # Represents a diagnostic message (error or warning)
Bu Sun Kim65020912020-05-20 12:08:20 -0700526 &quot;kind&quot;: &quot;A String&quot;, # The kind of diagnostic information provided.
527 &quot;message&quot;: &quot;A String&quot;, # Message describing the error or warning.
528 &quot;location&quot;: &quot;A String&quot;, # File name and line number of the error or warning.
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700529 },
530 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700531 &quot;serviceName&quot;: &quot;A String&quot;, # Name of the service this report belongs to.
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700532 }</pre>
533</div>
534
535<div class="method">
Thomas Coffee2f245372017-03-27 10:39:26 -0700536 <code class="details" id="get">get(serviceName, x__xgafv=None)</code>
Jon Wayne Parrott692617a2017-01-06 09:58:29 -0800537 <pre>Gets a managed service. Authentication is required unless the service is
538public.
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700539
540Args:
Dan O'Mearadd494642020-05-01 07:42:23 -0700541 serviceName: string, Required. The name of the service. See the `ServiceManager` overview for naming
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700542requirements. For example: `example.googleapis.com`. (required)
543 x__xgafv: string, V1 error format.
544 Allowed values
545 1 - v1 error format
546 2 - v2 error format
547
548Returns:
549 An object of the form:
550
551 { # The full representation of a Service that is managed by
552 # Google Service Management.
Bu Sun Kim65020912020-05-20 12:08:20 -0700553 &quot;producerProjectId&quot;: &quot;A String&quot;, # ID of the project that produces and owns this service.
554 &quot;serviceName&quot;: &quot;A String&quot;, # The name of the service. See the [overview](/service-management/overview)
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700555 # for naming requirements.
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700556 }</pre>
557</div>
558
559<div class="method">
Bu Sun Kim65020912020-05-20 12:08:20 -0700560 <code class="details" id="getConfig">getConfig(serviceName, configId=None, view=None, x__xgafv=None)</code>
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700561 <pre>Gets a service configuration (version) for a managed service.
562
563Args:
Dan O'Mearadd494642020-05-01 07:42:23 -0700564 serviceName: string, Required. The name of the service. See the [overview](/service-management/overview)
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700565for naming requirements. For example: `example.googleapis.com`. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -0700566 configId: string, Required. The id of the service configuration resource.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700567
568This field must be specified for the server to return all fields, including
569`SourceInfo`.
Bu Sun Kim65020912020-05-20 12:08:20 -0700570 view: string, Specifies which parts of the Service Config should be returned in the
571response.
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700572 x__xgafv: string, V1 error format.
573 Allowed values
574 1 - v1 error format
575 2 - v2 error format
576
577Returns:
578 An object of the form:
579
Sai Cheemalapatiea3a5e12016-10-12 14:05:53 -0700580 { # `Service` is the root object of Google service configuration schema. It
581 # describes basic information about a service, such as the name and the
582 # title, and delegates other aspects to sub-sections. Each sub-section is
583 # either a proto message or a repeated proto message that configures a
584 # specific aspect, such as auth. See each proto message definition for details.
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700585 #
586 # Example:
587 #
588 # type: google.api.Service
Sai Cheemalapatiea3a5e12016-10-12 14:05:53 -0700589 # config_version: 3
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700590 # name: calendar.googleapis.com
591 # title: Google Calendar API
592 # apis:
Sai Cheemalapatiea3a5e12016-10-12 14:05:53 -0700593 # - name: google.calendar.v3.Calendar
Jon Wayne Parrott692617a2017-01-06 09:58:29 -0800594 # authentication:
595 # providers:
596 # - id: google_calendar_auth
597 # jwks_uri: https://www.googleapis.com/oauth2/v1/certs
598 # issuer: https://securetoken.google.com
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700599 # rules:
Bu Sun Kim65020912020-05-20 12:08:20 -0700600 # - selector: &quot;*&quot;
Jon Wayne Parrott692617a2017-01-06 09:58:29 -0800601 # requirements:
602 # provider_id: google_calendar_auth
Bu Sun Kim65020912020-05-20 12:08:20 -0700603 &quot;monitoring&quot;: { # Monitoring configuration of the service. # Monitoring configuration.
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700604 #
605 # The example below shows how to configure monitored resources and metrics
606 # for monitoring. In the example, a monitored resource and two metrics are
607 # defined. The `library.googleapis.com/book/returned_count` metric is sent
608 # to both producer and consumer projects, whereas the
609 # `library.googleapis.com/book/overdue_count` metric is only sent to the
610 # consumer project.
611 #
612 # monitored_resources:
613 # - type: library.googleapis.com/branch
614 # labels:
615 # - key: /city
616 # description: The city where the library branch is located in.
617 # - key: /name
618 # description: The name of the branch.
619 # metrics:
620 # - name: library.googleapis.com/book/returned_count
621 # metric_kind: DELTA
622 # value_type: INT64
623 # labels:
624 # - key: /customer_id
625 # - name: library.googleapis.com/book/overdue_count
626 # metric_kind: GAUGE
627 # value_type: INT64
628 # labels:
629 # - key: /customer_id
630 # monitoring:
631 # producer_destinations:
632 # - monitored_resource: library.googleapis.com/branch
633 # metrics:
634 # - library.googleapis.com/book/returned_count
635 # consumer_destinations:
636 # - monitored_resource: library.googleapis.com/branch
637 # metrics:
638 # - library.googleapis.com/book/returned_count
639 # - library.googleapis.com/book/overdue_count
Bu Sun Kim65020912020-05-20 12:08:20 -0700640 &quot;consumerDestinations&quot;: [ # Monitoring configurations for sending metrics to the consumer project.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700641 # There can be multiple consumer destinations. A monitored resouce type may
642 # appear in multiple monitoring destinations if different aggregations are
643 # needed for different sets of metrics associated with that monitored
644 # resource type. A monitored resource and metric pair may only be used once
645 # in the Monitoring configuration.
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700646 { # Configuration of a specific monitoring destination (the producer project
647 # or the consumer project).
Bu Sun Kim65020912020-05-20 12:08:20 -0700648 &quot;monitoredResource&quot;: &quot;A String&quot;, # The monitored resource type. The type must be defined in
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700649 # Service.monitored_resources section.
Bu Sun Kim65020912020-05-20 12:08:20 -0700650 &quot;metrics&quot;: [ # Types of the metrics to report to this monitoring destination.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700651 # Each type must be defined in Service.metrics section.
Bu Sun Kim65020912020-05-20 12:08:20 -0700652 &quot;A String&quot;,
653 ],
654 },
655 ],
656 &quot;producerDestinations&quot;: [ # Monitoring configurations for sending metrics to the producer project.
657 # There can be multiple producer destinations. A monitored resouce type may
658 # appear in multiple monitoring destinations if different aggregations are
659 # needed for different sets of metrics associated with that monitored
660 # resource type. A monitored resource and metric pair may only be used once
661 # in the Monitoring configuration.
662 { # Configuration of a specific monitoring destination (the producer project
663 # or the consumer project).
664 &quot;monitoredResource&quot;: &quot;A String&quot;, # The monitored resource type. The type must be defined in
665 # Service.monitored_resources section.
666 &quot;metrics&quot;: [ # Types of the metrics to report to this monitoring destination.
667 # Each type must be defined in Service.metrics section.
668 &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700669 ],
670 },
671 ],
672 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700673 &quot;systemTypes&quot;: [ # A list of all proto message types included in this API service.
674 # It serves similar purpose as [google.api.Service.types], except that
675 # these types are not needed by user-defined APIs. Therefore, they will not
676 # show up in the generated discovery doc. This field should only be used
677 # to define system APIs in ESF.
678 { # A protocol buffer message type.
679 &quot;options&quot;: [ # The protocol buffer options.
680 { # A protocol buffer option, which can be attached to a message, field,
681 # enumeration, etc.
682 &quot;value&quot;: { # The option&#x27;s value packed in an Any message. If the value is a primitive,
683 # the corresponding wrapper type defined in google/protobuf/wrappers.proto
684 # should be used. If the value is an enum, it should be stored as an int32
685 # value using the google.protobuf.Int32Value type.
686 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
687 },
688 &quot;name&quot;: &quot;A String&quot;, # The option&#x27;s name. For protobuf built-in options (options defined in
689 # descriptor.proto), this is the short name. For example, `&quot;map_entry&quot;`.
690 # For custom options, it should be the fully-qualified name. For example,
691 # `&quot;google.api.http&quot;`.
692 },
693 ],
694 &quot;fields&quot;: [ # The list of fields.
695 { # A single field of a message type.
696 &quot;defaultValue&quot;: &quot;A String&quot;, # The string value of the default value of this field. Proto2 syntax only.
697 &quot;name&quot;: &quot;A String&quot;, # The field name.
698 &quot;typeUrl&quot;: &quot;A String&quot;, # The field type URL, without the scheme, for message or enumeration
699 # types. Example: `&quot;type.googleapis.com/google.protobuf.Timestamp&quot;`.
700 &quot;number&quot;: 42, # The field number.
701 &quot;kind&quot;: &quot;A String&quot;, # The field type.
702 &quot;jsonName&quot;: &quot;A String&quot;, # The field JSON name.
703 &quot;options&quot;: [ # The protocol buffer options.
704 { # A protocol buffer option, which can be attached to a message, field,
705 # enumeration, etc.
706 &quot;value&quot;: { # The option&#x27;s value packed in an Any message. If the value is a primitive,
707 # the corresponding wrapper type defined in google/protobuf/wrappers.proto
708 # should be used. If the value is an enum, it should be stored as an int32
709 # value using the google.protobuf.Int32Value type.
710 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
711 },
712 &quot;name&quot;: &quot;A String&quot;, # The option&#x27;s name. For protobuf built-in options (options defined in
713 # descriptor.proto), this is the short name. For example, `&quot;map_entry&quot;`.
714 # For custom options, it should be the fully-qualified name. For example,
715 # `&quot;google.api.http&quot;`.
716 },
717 ],
718 &quot;oneofIndex&quot;: 42, # The index of the field type in `Type.oneofs`, for message or enumeration
719 # types. The first type has index 1; zero means the type is not in the list.
720 &quot;packed&quot;: True or False, # Whether to use alternative packed wire representation.
721 &quot;cardinality&quot;: &quot;A String&quot;, # The field cardinality.
722 },
723 ],
724 &quot;name&quot;: &quot;A String&quot;, # The fully qualified message name.
725 &quot;oneofs&quot;: [ # The list of types appearing in `oneof` definitions in this type.
726 &quot;A String&quot;,
727 ],
728 &quot;syntax&quot;: &quot;A String&quot;, # The source syntax.
729 &quot;sourceContext&quot;: { # `SourceContext` represents information about the source of a # The source context.
730 # protobuf element, like the file in which it is defined.
731 &quot;fileName&quot;: &quot;A String&quot;, # The path-qualified name of the .proto file that contained the associated
732 # protobuf element. For example: `&quot;google/protobuf/source_context.proto&quot;`.
733 },
734 },
735 ],
736 &quot;producerProjectId&quot;: &quot;A String&quot;, # The Google project that owns this service.
737 &quot;quota&quot;: { # Quota configuration helps to achieve fairness and budgeting in service # Quota configuration.
738 # usage.
739 #
740 # The metric based quota configuration works this way:
741 # - The service configuration defines a set of metrics.
742 # - For API calls, the quota.metric_rules maps methods to metrics with
743 # corresponding costs.
744 # - The quota.limits defines limits on the metrics, which will be used for
745 # quota checks at runtime.
746 #
747 # An example quota configuration in yaml format:
748 #
749 # quota:
750 # limits:
751 #
752 # - name: apiWriteQpsPerProject
753 # metric: library.googleapis.com/write_calls
754 # unit: &quot;1/min/{project}&quot; # rate limit for consumer projects
755 # values:
756 # STANDARD: 10000
757 #
758 #
759 # # The metric rules bind all methods to the read_calls metric,
760 # # except for the UpdateBook and DeleteBook methods. These two methods
761 # # are mapped to the write_calls metric, with the UpdateBook method
762 # # consuming at twice rate as the DeleteBook method.
763 # metric_rules:
764 # - selector: &quot;*&quot;
765 # metric_costs:
766 # library.googleapis.com/read_calls: 1
767 # - selector: google.example.library.v1.LibraryService.UpdateBook
768 # metric_costs:
769 # library.googleapis.com/write_calls: 2
770 # - selector: google.example.library.v1.LibraryService.DeleteBook
771 # metric_costs:
772 # library.googleapis.com/write_calls: 1
773 #
774 # Corresponding Metric definition:
775 #
776 # metrics:
777 # - name: library.googleapis.com/read_calls
778 # display_name: Read requests
779 # metric_kind: DELTA
780 # value_type: INT64
781 #
782 # - name: library.googleapis.com/write_calls
783 # display_name: Write requests
784 # metric_kind: DELTA
785 # value_type: INT64
786 #
787 &quot;limits&quot;: [ # List of `QuotaLimit` definitions for the service.
788 { # `QuotaLimit` defines a specific limit that applies over a specified duration
789 # for a limit type. There can be at most one limit for a duration and limit
790 # type combination defined within a `QuotaGroup`.
791 &quot;name&quot;: &quot;A String&quot;, # Name of the quota limit.
792 #
793 # The name must be provided, and it must be unique within the service. The
794 # name can only include alphanumeric characters as well as &#x27;-&#x27;.
795 #
796 # The maximum length of the limit name is 64 characters.
797 &quot;freeTier&quot;: &quot;A String&quot;, # Free tier value displayed in the Developers Console for this limit.
798 # The free tier is the number of tokens that will be subtracted from the
799 # billed amount when billing is enabled.
800 # This field can only be set on a limit with duration &quot;1d&quot;, in a billable
801 # group; it is invalid on any other limit. If this field is not set, it
802 # defaults to 0, indicating that there is no free tier for this service.
803 #
804 # Used by group-based quotas only.
805 &quot;duration&quot;: &quot;A String&quot;, # Duration of this limit in textual notation. Must be &quot;100s&quot; or &quot;1d&quot;.
806 #
807 # Used by group-based quotas only.
808 &quot;defaultLimit&quot;: &quot;A String&quot;, # Default number of tokens that can be consumed during the specified
809 # duration. This is the number of tokens assigned when a client
810 # application developer activates the service for his/her project.
811 #
812 # Specifying a value of 0 will block all requests. This can be used if you
813 # are provisioning quota to selected consumers and blocking others.
814 # Similarly, a value of -1 will indicate an unlimited quota. No other
815 # negative values are allowed.
816 #
817 # Used by group-based quotas only.
818 &quot;description&quot;: &quot;A String&quot;, # Optional. User-visible, extended description for this quota limit.
819 # Should be used only when more context is needed to understand this limit
820 # than provided by the limit&#x27;s display name (see: `display_name`).
821 &quot;metric&quot;: &quot;A String&quot;, # The name of the metric this quota limit applies to. The quota limits with
822 # the same metric will be checked together during runtime. The metric must be
823 # defined within the service config.
824 &quot;displayName&quot;: &quot;A String&quot;, # User-visible display name for this limit.
825 # Optional. If not set, the UI will provide a default display name based on
826 # the quota configuration. This field can be used to override the default
827 # display name generated from the configuration.
828 &quot;values&quot;: { # Tiered limit values. You must specify this as a key:value pair, with an
829 # integer value that is the maximum number of requests allowed for the
830 # specified unit. Currently only STANDARD is supported.
831 &quot;a_key&quot;: &quot;A String&quot;,
832 },
833 &quot;unit&quot;: &quot;A String&quot;, # Specify the unit of the quota limit. It uses the same syntax as
834 # Metric.unit. The supported unit kinds are determined by the quota
835 # backend system.
836 #
837 # Here are some examples:
838 # * &quot;1/min/{project}&quot; for quota per minute per project.
839 #
840 # Note: the order of unit components is insignificant.
841 # The &quot;1&quot; at the beginning is required to follow the metric unit syntax.
842 &quot;maxLimit&quot;: &quot;A String&quot;, # Maximum number of tokens that can be consumed during the specified
843 # duration. Client application developers can override the default limit up
844 # to this maximum. If specified, this value cannot be set to a value less
845 # than the default limit. If not specified, it is set to the default limit.
846 #
847 # To allow clients to apply overrides with no upper bound, set this to -1,
848 # indicating unlimited maximum quota.
849 #
850 # Used by group-based quotas only.
851 },
852 ],
853 &quot;metricRules&quot;: [ # List of `MetricRule` definitions, each one mapping a selected method to one
854 # or more metrics.
855 { # Bind API methods to metrics. Binding a method to a metric causes that
856 # metric&#x27;s configured quota behaviors to apply to the method call.
857 &quot;selector&quot;: &quot;A String&quot;, # Selects the methods to which this rule applies.
858 #
859 # Refer to selector for syntax details.
860 &quot;metricCosts&quot;: { # Metrics to update when the selected methods are called, and the associated
861 # cost applied to each metric.
862 #
863 # The key of the map is the metric name, and the values are the amount
864 # increased for the metric against which the quota limits are defined.
865 # The value must not be negative.
866 &quot;a_key&quot;: &quot;A String&quot;,
867 },
868 },
869 ],
870 },
871 &quot;name&quot;: &quot;A String&quot;, # The service name, which is a DNS-like logical identifier for the
872 # service, such as `calendar.googleapis.com`. The service name
873 # typically goes through DNS verification to make sure the owner
874 # of the service also owns the DNS name.
875 &quot;billing&quot;: { # Billing related configuration of the service. # Billing configuration.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700876 #
877 # The following example shows how to configure monitored resources and metrics
Bu Sun Kim65020912020-05-20 12:08:20 -0700878 # for billing, `consumer_destinations` is the only supported destination and
879 # the monitored resources need at least one label key
880 # `cloud.googleapis.com/location` to indicate the location of the billing
881 # usage, using different monitored resources between monitoring and billing is
882 # recommended so they can be evolved independently:
883 #
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700884 #
885 # monitored_resources:
Bu Sun Kim65020912020-05-20 12:08:20 -0700886 # - type: library.googleapis.com/billing_branch
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700887 # labels:
Bu Sun Kim65020912020-05-20 12:08:20 -0700888 # - key: cloud.googleapis.com/location
889 # description: |
890 # Predefined label to support billing location restriction.
891 # - key: city
892 # description: |
893 # Custom label to define the city where the library branch is located
894 # in.
895 # - key: name
896 # description: Custom label to define the name of the library branch.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700897 # metrics:
898 # - name: library.googleapis.com/book/borrowed_count
899 # metric_kind: DELTA
900 # value_type: INT64
Bu Sun Kim65020912020-05-20 12:08:20 -0700901 # unit: &quot;1&quot;
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700902 # billing:
903 # consumer_destinations:
Bu Sun Kim65020912020-05-20 12:08:20 -0700904 # - monitored_resource: library.googleapis.com/billing_branch
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700905 # metrics:
906 # - library.googleapis.com/book/borrowed_count
Bu Sun Kim65020912020-05-20 12:08:20 -0700907 &quot;consumerDestinations&quot;: [ # Billing configurations for sending metrics to the consumer project.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700908 # There can be multiple consumer destinations per service, each one must have
909 # a different monitored resource type. A metric can be used in at most
910 # one consumer destination.
911 { # Configuration of a specific billing destination (Currently only support
912 # bill against consumer project).
Bu Sun Kim65020912020-05-20 12:08:20 -0700913 &quot;monitoredResource&quot;: &quot;A String&quot;, # The monitored resource type. The type must be defined in
Dan O'Mearadd494642020-05-01 07:42:23 -0700914 # Service.monitored_resources section.
Bu Sun Kim65020912020-05-20 12:08:20 -0700915 &quot;metrics&quot;: [ # Names of the metrics to report to this billing destination.
916 # Each name must be defined in Service.metrics section.
917 &quot;A String&quot;,
918 ],
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700919 },
920 ],
921 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700922 &quot;customError&quot;: { # Customize service error responses. For example, list any service # Custom error configuration.
923 # specific protobuf types that can appear in error detail lists of
924 # error responses.
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700925 #
Bu Sun Kim65020912020-05-20 12:08:20 -0700926 # Example:
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700927 #
Bu Sun Kim65020912020-05-20 12:08:20 -0700928 # custom_error:
929 # types:
930 # - google.foo.v1.CustomError
931 # - google.foo.v1.AnotherError
932 &quot;rules&quot;: [ # The list of custom error rules that apply to individual API messages.
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700933 #
Bu Sun Kim65020912020-05-20 12:08:20 -0700934 # **NOTE:** All service configuration rules follow &quot;last one wins&quot; order.
935 { # A custom error rule.
936 &quot;isErrorType&quot;: True or False, # Mark this message as possible payload in error response. Otherwise,
937 # objects of this type will be filtered when they appear in error payload.
938 &quot;selector&quot;: &quot;A String&quot;, # Selects messages to which this rule applies.
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700939 #
940 # Refer to selector for syntax details.
941 },
942 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700943 &quot;types&quot;: [ # The list of custom error detail types, e.g. &#x27;google.foo.v1.CustomError&#x27;.
944 &quot;A String&quot;,
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700945 ],
946 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700947 &quot;title&quot;: &quot;A String&quot;, # The product title for this service.
948 &quot;endpoints&quot;: [ # Configuration for network endpoints. If this is empty, then an endpoint
949 # with the same name as the service is automatically generated to service all
950 # defined APIs.
951 { # `Endpoint` describes a network endpoint that serves a set of APIs.
952 # A service may expose any number of endpoints, and all endpoints share the
953 # same service configuration, such as quota configuration and monitoring
954 # configuration.
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -0700955 #
Bu Sun Kim65020912020-05-20 12:08:20 -0700956 # Example service configuration:
Dan O'Mearadd494642020-05-01 07:42:23 -0700957 #
Bu Sun Kim65020912020-05-20 12:08:20 -0700958 # name: library-example.googleapis.com
959 # endpoints:
960 # # Below entry makes &#x27;google.example.library.v1.Library&#x27;
961 # # API be served from endpoint address library-example.googleapis.com.
962 # # It also allows HTTP OPTIONS calls to be passed to the backend, for
963 # # it to decide whether the subsequent cross-origin request is
964 # # allowed to proceed.
965 # - name: library-example.googleapis.com
966 # allow_cors: true
967 &quot;aliases&quot;: [ # DEPRECATED: This field is no longer supported. Instead of using aliases,
968 # please specify multiple google.api.Endpoint for each of the intended
969 # aliases.
Dan O'Mearadd494642020-05-01 07:42:23 -0700970 #
Bu Sun Kim65020912020-05-20 12:08:20 -0700971 # Additional names that this endpoint will be hosted on.
972 &quot;A String&quot;,
973 ],
974 &quot;features&quot;: [ # The list of features enabled on this endpoint.
975 &quot;A String&quot;,
976 ],
977 &quot;allowCors&quot;: True or False, # Allowing
978 # [CORS](https://en.wikipedia.org/wiki/Cross-origin_resource_sharing), aka
979 # cross-domain traffic, would allow the backends served from this endpoint to
980 # receive and respond to HTTP OPTIONS requests. The response will be used by
981 # the browser to determine whether the subsequent cross-origin request is
982 # allowed to proceed.
983 &quot;name&quot;: &quot;A String&quot;, # The canonical name of this endpoint.
984 &quot;target&quot;: &quot;A String&quot;, # The specification of an Internet routable address of API frontend that will
985 # handle requests to this [API
986 # Endpoint](https://cloud.google.com/apis/design/glossary). It should be
987 # either a valid IPv4 address or a fully-qualified domain name. For example,
988 # &quot;8.8.8.8&quot; or &quot;myservice.appspot.com&quot;.
Dan O'Mearadd494642020-05-01 07:42:23 -0700989 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700990 ],
991 &quot;logs&quot;: [ # Defines the logs used by this service.
992 { # A description of a log type. Example in YAML format:
Jon Wayne Parrott692617a2017-01-06 09:58:29 -0800993 #
Bu Sun Kim65020912020-05-20 12:08:20 -0700994 # - name: library.googleapis.com/activity_history
995 # description: The history of borrowing and returning library items.
996 # display_name: Activity
997 # labels:
998 # - key: /customer_id
999 # description: Identifier of a library customer
1000 &quot;labels&quot;: [ # The set of labels that are available to describe a specific log entry.
1001 # Runtime requests that contain labels not specified here are
1002 # considered invalid.
1003 { # A description of a label.
1004 &quot;key&quot;: &quot;A String&quot;, # The label key.
1005 &quot;description&quot;: &quot;A String&quot;, # A human-readable description for the label.
1006 &quot;valueType&quot;: &quot;A String&quot;, # The type of data that can be assigned to the label.
1007 },
1008 ],
1009 &quot;name&quot;: &quot;A String&quot;, # The name of the log. It must be less than 512 characters long and can
1010 # include the following characters: upper- and lower-case alphanumeric
1011 # characters [A-Za-z0-9], and punctuation characters including
1012 # slash, underscore, hyphen, period [/_-.].
1013 &quot;description&quot;: &quot;A String&quot;, # A human-readable description of this log. This information appears in
1014 # the documentation and can contain details.
1015 &quot;displayName&quot;: &quot;A String&quot;, # The human-readable name for this log. This information appears on
1016 # the user interface and should be concise.
1017 },
1018 ],
1019 &quot;apis&quot;: [ # A list of API interfaces exported by this service. Only the `name` field
1020 # of the google.protobuf.Api needs to be provided by the configuration
1021 # author, as the remaining fields will be derived from the IDL during the
1022 # normalization process. It is an error to specify an API interface here
1023 # which cannot be resolved against the associated IDL files.
1024 { # Api is a light-weight descriptor for an API Interface.
1025 #
1026 # Interfaces are also described as &quot;protocol buffer services&quot; in some contexts,
1027 # such as by the &quot;service&quot; keyword in a .proto file, but they are different
1028 # from API Services, which represent a concrete implementation of an interface
1029 # as opposed to simply a description of methods and bindings. They are also
1030 # sometimes simply referred to as &quot;APIs&quot; in other contexts, such as the name of
1031 # this message itself. See https://cloud.google.com/apis/design/glossary for
1032 # detailed terminology.
1033 &quot;options&quot;: [ # Any metadata attached to the interface.
1034 { # A protocol buffer option, which can be attached to a message, field,
1035 # enumeration, etc.
1036 &quot;value&quot;: { # The option&#x27;s value packed in an Any message. If the value is a primitive,
1037 # the corresponding wrapper type defined in google/protobuf/wrappers.proto
1038 # should be used. If the value is an enum, it should be stored as an int32
1039 # value using the google.protobuf.Int32Value type.
1040 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
1041 },
1042 &quot;name&quot;: &quot;A String&quot;, # The option&#x27;s name. For protobuf built-in options (options defined in
1043 # descriptor.proto), this is the short name. For example, `&quot;map_entry&quot;`.
1044 # For custom options, it should be the fully-qualified name. For example,
1045 # `&quot;google.api.http&quot;`.
1046 },
1047 ],
1048 &quot;methods&quot;: [ # The methods of this interface, in unspecified order.
1049 { # Method represents a method of an API interface.
1050 &quot;responseTypeUrl&quot;: &quot;A String&quot;, # The URL of the output message type.
1051 &quot;options&quot;: [ # Any metadata attached to the method.
1052 { # A protocol buffer option, which can be attached to a message, field,
1053 # enumeration, etc.
1054 &quot;value&quot;: { # The option&#x27;s value packed in an Any message. If the value is a primitive,
1055 # the corresponding wrapper type defined in google/protobuf/wrappers.proto
1056 # should be used. If the value is an enum, it should be stored as an int32
1057 # value using the google.protobuf.Int32Value type.
1058 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
1059 },
1060 &quot;name&quot;: &quot;A String&quot;, # The option&#x27;s name. For protobuf built-in options (options defined in
1061 # descriptor.proto), this is the short name. For example, `&quot;map_entry&quot;`.
1062 # For custom options, it should be the fully-qualified name. For example,
1063 # `&quot;google.api.http&quot;`.
1064 },
1065 ],
1066 &quot;responseStreaming&quot;: True or False, # If true, the response is streamed.
1067 &quot;name&quot;: &quot;A String&quot;, # The simple name of this method.
1068 &quot;requestTypeUrl&quot;: &quot;A String&quot;, # A URL of the input message type.
1069 &quot;requestStreaming&quot;: True or False, # If true, the request is streamed.
1070 &quot;syntax&quot;: &quot;A String&quot;, # The source syntax of this method.
1071 },
1072 ],
1073 &quot;name&quot;: &quot;A String&quot;, # The fully qualified name of this interface, including package name
1074 # followed by the interface&#x27;s simple name.
1075 &quot;sourceContext&quot;: { # `SourceContext` represents information about the source of a # Source context for the protocol buffer service represented by this
1076 # message.
1077 # protobuf element, like the file in which it is defined.
1078 &quot;fileName&quot;: &quot;A String&quot;, # The path-qualified name of the .proto file that contained the associated
1079 # protobuf element. For example: `&quot;google/protobuf/source_context.proto&quot;`.
1080 },
1081 &quot;syntax&quot;: &quot;A String&quot;, # The source syntax of the service.
1082 &quot;version&quot;: &quot;A String&quot;, # A version string for this interface. If specified, must have the form
1083 # `major-version.minor-version`, as in `1.10`. If the minor version is
1084 # omitted, it defaults to zero. If the entire version field is empty, the
1085 # major version is derived from the package name, as outlined below. If the
1086 # field is not empty, the version in the package name will be verified to be
1087 # consistent with what is provided here.
1088 #
1089 # The versioning schema uses [semantic
1090 # versioning](http://semver.org) where the major version number
1091 # indicates a breaking change and the minor version an additive,
1092 # non-breaking change. Both version numbers are signals to users
1093 # what to expect from different versions, and should be carefully
1094 # chosen based on the product plan.
1095 #
1096 # The major version is also reflected in the package name of the
1097 # interface, which must end in `v&lt;major-version&gt;`, as in
1098 # `google.feature.v1`. For major versions 0 and 1, the suffix can
1099 # be omitted. Zero major versions must only be used for
1100 # experimental, non-GA interfaces.
1101 &quot;mixins&quot;: [ # Included interfaces. See Mixin.
1102 { # Declares an API Interface to be included in this interface. The including
1103 # interface must redeclare all the methods from the included interface, but
1104 # documentation and options are inherited as follows:
1105 #
1106 # - If after comment and whitespace stripping, the documentation
1107 # string of the redeclared method is empty, it will be inherited
1108 # from the original method.
1109 #
1110 # - Each annotation belonging to the service config (http,
1111 # visibility) which is not set in the redeclared method will be
1112 # inherited.
1113 #
1114 # - If an http annotation is inherited, the path pattern will be
1115 # modified as follows. Any version prefix will be replaced by the
1116 # version of the including interface plus the root path if
1117 # specified.
1118 #
1119 # Example of a simple mixin:
1120 #
1121 # package google.acl.v1;
1122 # service AccessControl {
1123 # // Get the underlying ACL object.
1124 # rpc GetAcl(GetAclRequest) returns (Acl) {
1125 # option (google.api.http).get = &quot;/v1/{resource=**}:getAcl&quot;;
1126 # }
1127 # }
1128 #
1129 # package google.storage.v2;
1130 # service Storage {
1131 # // rpc GetAcl(GetAclRequest) returns (Acl);
1132 #
1133 # // Get a data record.
1134 # rpc GetData(GetDataRequest) returns (Data) {
1135 # option (google.api.http).get = &quot;/v2/{resource=**}&quot;;
1136 # }
1137 # }
1138 #
1139 # Example of a mixin configuration:
1140 #
1141 # apis:
1142 # - name: google.storage.v2.Storage
1143 # mixins:
1144 # - name: google.acl.v1.AccessControl
1145 #
1146 # The mixin construct implies that all methods in `AccessControl` are
1147 # also declared with same name and request/response types in
1148 # `Storage`. A documentation generator or annotation processor will
1149 # see the effective `Storage.GetAcl` method after inherting
1150 # documentation and annotations as follows:
1151 #
1152 # service Storage {
1153 # // Get the underlying ACL object.
1154 # rpc GetAcl(GetAclRequest) returns (Acl) {
1155 # option (google.api.http).get = &quot;/v2/{resource=**}:getAcl&quot;;
1156 # }
1157 # ...
1158 # }
1159 #
1160 # Note how the version in the path pattern changed from `v1` to `v2`.
1161 #
1162 # If the `root` field in the mixin is specified, it should be a
1163 # relative path under which inherited HTTP paths are placed. Example:
1164 #
1165 # apis:
1166 # - name: google.storage.v2.Storage
1167 # mixins:
1168 # - name: google.acl.v1.AccessControl
1169 # root: acls
1170 #
1171 # This implies the following inherited HTTP annotation:
1172 #
1173 # service Storage {
1174 # // Get the underlying ACL object.
1175 # rpc GetAcl(GetAclRequest) returns (Acl) {
1176 # option (google.api.http).get = &quot;/v2/acls/{resource=**}:getAcl&quot;;
1177 # }
1178 # ...
1179 # }
1180 &quot;name&quot;: &quot;A String&quot;, # The fully qualified name of the interface which is included.
1181 &quot;root&quot;: &quot;A String&quot;, # If non-empty specifies a path under which inherited HTTP paths
1182 # are rooted.
1183 },
1184 ],
1185 },
1186 ],
1187 &quot;types&quot;: [ # A list of all proto message types included in this API service.
1188 # Types referenced directly or indirectly by the `apis` are
1189 # automatically included. Messages which are not referenced but
1190 # shall be included, such as types used by the `google.protobuf.Any` type,
1191 # should be listed here by name. Example:
1192 #
1193 # types:
1194 # - name: google.protobuf.Int32
1195 { # A protocol buffer message type.
1196 &quot;options&quot;: [ # The protocol buffer options.
1197 { # A protocol buffer option, which can be attached to a message, field,
1198 # enumeration, etc.
1199 &quot;value&quot;: { # The option&#x27;s value packed in an Any message. If the value is a primitive,
1200 # the corresponding wrapper type defined in google/protobuf/wrappers.proto
1201 # should be used. If the value is an enum, it should be stored as an int32
1202 # value using the google.protobuf.Int32Value type.
1203 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
1204 },
1205 &quot;name&quot;: &quot;A String&quot;, # The option&#x27;s name. For protobuf built-in options (options defined in
1206 # descriptor.proto), this is the short name. For example, `&quot;map_entry&quot;`.
1207 # For custom options, it should be the fully-qualified name. For example,
1208 # `&quot;google.api.http&quot;`.
1209 },
1210 ],
1211 &quot;fields&quot;: [ # The list of fields.
1212 { # A single field of a message type.
1213 &quot;defaultValue&quot;: &quot;A String&quot;, # The string value of the default value of this field. Proto2 syntax only.
1214 &quot;name&quot;: &quot;A String&quot;, # The field name.
1215 &quot;typeUrl&quot;: &quot;A String&quot;, # The field type URL, without the scheme, for message or enumeration
1216 # types. Example: `&quot;type.googleapis.com/google.protobuf.Timestamp&quot;`.
1217 &quot;number&quot;: 42, # The field number.
1218 &quot;kind&quot;: &quot;A String&quot;, # The field type.
1219 &quot;jsonName&quot;: &quot;A String&quot;, # The field JSON name.
1220 &quot;options&quot;: [ # The protocol buffer options.
1221 { # A protocol buffer option, which can be attached to a message, field,
1222 # enumeration, etc.
1223 &quot;value&quot;: { # The option&#x27;s value packed in an Any message. If the value is a primitive,
1224 # the corresponding wrapper type defined in google/protobuf/wrappers.proto
1225 # should be used. If the value is an enum, it should be stored as an int32
1226 # value using the google.protobuf.Int32Value type.
1227 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
1228 },
1229 &quot;name&quot;: &quot;A String&quot;, # The option&#x27;s name. For protobuf built-in options (options defined in
1230 # descriptor.proto), this is the short name. For example, `&quot;map_entry&quot;`.
1231 # For custom options, it should be the fully-qualified name. For example,
1232 # `&quot;google.api.http&quot;`.
1233 },
1234 ],
1235 &quot;oneofIndex&quot;: 42, # The index of the field type in `Type.oneofs`, for message or enumeration
1236 # types. The first type has index 1; zero means the type is not in the list.
1237 &quot;packed&quot;: True or False, # Whether to use alternative packed wire representation.
1238 &quot;cardinality&quot;: &quot;A String&quot;, # The field cardinality.
1239 },
1240 ],
1241 &quot;name&quot;: &quot;A String&quot;, # The fully qualified message name.
1242 &quot;oneofs&quot;: [ # The list of types appearing in `oneof` definitions in this type.
1243 &quot;A String&quot;,
1244 ],
1245 &quot;syntax&quot;: &quot;A String&quot;, # The source syntax.
1246 &quot;sourceContext&quot;: { # `SourceContext` represents information about the source of a # The source context.
1247 # protobuf element, like the file in which it is defined.
1248 &quot;fileName&quot;: &quot;A String&quot;, # The path-qualified name of the .proto file that contained the associated
1249 # protobuf element. For example: `&quot;google/protobuf/source_context.proto&quot;`.
1250 },
1251 },
1252 ],
1253 &quot;sourceInfo&quot;: { # Source information used to create a Service Config # Output only. The source information for this configuration if available.
1254 &quot;sourceFiles&quot;: [ # All files used during config generation.
1255 {
1256 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
1257 },
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -07001258 ],
1259 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001260 &quot;http&quot;: { # Defines the HTTP configuration for an API service. It contains a list of # HTTP configuration.
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -07001261 # HttpRule, each specifying the mapping of an RPC method
1262 # to one or more HTTP REST API methods.
Bu Sun Kim65020912020-05-20 12:08:20 -07001263 &quot;fullyDecodeReservedExpansion&quot;: True or False, # When set to true, URL path parameters will be fully URI-decoded except in
1264 # cases of single segment matches in reserved expansion, where &quot;%2F&quot; will be
1265 # left encoded.
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -07001266 #
Bu Sun Kim65020912020-05-20 12:08:20 -07001267 # The default behavior is to not decode RFC 6570 reserved characters in multi
1268 # segment matches.
1269 &quot;rules&quot;: [ # A list of HTTP configuration rules that apply to individual API methods.
1270 #
1271 # **NOTE:** All service configuration rules follow &quot;last one wins&quot; order.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001272 { # # gRPC Transcoding
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -07001273 #
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001274 # gRPC Transcoding is a feature for mapping between a gRPC method and one or
1275 # more HTTP REST endpoints. It allows developers to build a single API service
1276 # that supports both gRPC APIs and REST APIs. Many systems, including [Google
1277 # APIs](https://github.com/googleapis/googleapis),
1278 # [Cloud Endpoints](https://cloud.google.com/endpoints), [gRPC
1279 # Gateway](https://github.com/grpc-ecosystem/grpc-gateway),
1280 # and [Envoy](https://github.com/envoyproxy/envoy) proxy support this feature
1281 # and use it for large scale production services.
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -07001282 #
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001283 # `HttpRule` defines the schema of the gRPC/REST mapping. The mapping specifies
1284 # how different portions of the gRPC request message are mapped to the URL
1285 # path, URL query parameters, and HTTP request body. It also controls how the
1286 # gRPC response message is mapped to the HTTP response body. `HttpRule` is
1287 # typically specified as an `google.api.http` annotation on the gRPC method.
1288 #
1289 # Each mapping specifies a URL path template and an HTTP method. The path
1290 # template may refer to one or more fields in the gRPC request message, as long
1291 # as each field is a non-repeated field with a primitive (non-message) type.
1292 # The path template controls how fields of the request message are mapped to
1293 # the URL path.
1294 #
1295 # Example:
Jon Wayne Parrott692617a2017-01-06 09:58:29 -08001296 #
1297 # service Messaging {
1298 # rpc GetMessage(GetMessageRequest) returns (Message) {
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001299 # option (google.api.http) = {
Bu Sun Kim65020912020-05-20 12:08:20 -07001300 # get: &quot;/v1/{name=messages/*}&quot;
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001301 # };
Jon Wayne Parrott692617a2017-01-06 09:58:29 -08001302 # }
1303 # }
1304 # message GetMessageRequest {
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001305 # string name = 1; // Mapped to URL path.
Jon Wayne Parrott692617a2017-01-06 09:58:29 -08001306 # }
1307 # message Message {
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001308 # string text = 1; // The resource content.
Jon Wayne Parrott692617a2017-01-06 09:58:29 -08001309 # }
1310 #
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001311 # This enables an HTTP REST to gRPC mapping as below:
Jon Wayne Parrott692617a2017-01-06 09:58:29 -08001312 #
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001313 # HTTP | gRPC
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -07001314 # -----|-----
Bu Sun Kim65020912020-05-20 12:08:20 -07001315 # `GET /v1/messages/123456` | `GetMessage(name: &quot;messages/123456&quot;)`
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -07001316 #
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001317 # Any fields in the request message which are not bound by the path template
1318 # automatically become HTTP query parameters if there is no HTTP request body.
1319 # For example:
Jon Wayne Parrott692617a2017-01-06 09:58:29 -08001320 #
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -04001321 # service Messaging {
1322 # rpc GetMessage(GetMessageRequest) returns (Message) {
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001323 # option (google.api.http) = {
Bu Sun Kim65020912020-05-20 12:08:20 -07001324 # get:&quot;/v1/messages/{message_id}&quot;
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001325 # };
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -04001326 # }
1327 # }
Jon Wayne Parrott692617a2017-01-06 09:58:29 -08001328 # message GetMessageRequest {
1329 # message SubMessage {
1330 # string subfield = 1;
1331 # }
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001332 # string message_id = 1; // Mapped to URL path.
1333 # int64 revision = 2; // Mapped to URL query parameter `revision`.
1334 # SubMessage sub = 3; // Mapped to URL query parameter `sub.subfield`.
Jon Wayne Parrott692617a2017-01-06 09:58:29 -08001335 # }
1336 #
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -07001337 # This enables a HTTP JSON to RPC mapping as below:
1338 #
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001339 # HTTP | gRPC
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -07001340 # -----|-----
Dan O'Mearadd494642020-05-01 07:42:23 -07001341 # `GET /v1/messages/123456?revision=2&amp;sub.subfield=foo` |
Bu Sun Kim65020912020-05-20 12:08:20 -07001342 # `GetMessage(message_id: &quot;123456&quot; revision: 2 sub: SubMessage(subfield:
1343 # &quot;foo&quot;))`
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -07001344 #
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001345 # Note that fields which are mapped to URL query parameters must have a
1346 # primitive type or a repeated primitive type or a non-repeated message type.
1347 # In the case of a repeated type, the parameter can be repeated in the URL
Dan O'Mearadd494642020-05-01 07:42:23 -07001348 # as `...?param=A&amp;param=B`. In the case of a message type, each field of the
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001349 # message is mapped to a separate parameter, such as
Dan O'Mearadd494642020-05-01 07:42:23 -07001350 # `...?foo.a=A&amp;foo.b=B&amp;foo.c=C`.
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -07001351 #
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001352 # For HTTP methods that allow a request body, the `body` field
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -07001353 # specifies the mapping. Consider a REST update method on the
1354 # message resource collection:
1355 #
Jon Wayne Parrott692617a2017-01-06 09:58:29 -08001356 # service Messaging {
1357 # rpc UpdateMessage(UpdateMessageRequest) returns (Message) {
1358 # option (google.api.http) = {
Bu Sun Kim65020912020-05-20 12:08:20 -07001359 # patch: &quot;/v1/messages/{message_id}&quot;
1360 # body: &quot;message&quot;
Jon Wayne Parrott692617a2017-01-06 09:58:29 -08001361 # };
1362 # }
1363 # }
1364 # message UpdateMessageRequest {
1365 # string message_id = 1; // mapped to the URL
1366 # Message message = 2; // mapped to the body
1367 # }
1368 #
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -07001369 # The following HTTP JSON to RPC mapping is enabled, where the
1370 # representation of the JSON in the request body is determined by
1371 # protos JSON encoding:
1372 #
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001373 # HTTP | gRPC
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -07001374 # -----|-----
Bu Sun Kim65020912020-05-20 12:08:20 -07001375 # `PATCH /v1/messages/123456 { &quot;text&quot;: &quot;Hi!&quot; }` | `UpdateMessage(message_id:
1376 # &quot;123456&quot; message { text: &quot;Hi!&quot; })`
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -07001377 #
1378 # The special name `*` can be used in the body mapping to define that
1379 # every field not bound by the path template should be mapped to the
1380 # request body. This enables the following alternative definition of
1381 # the update method:
1382 #
Jon Wayne Parrott692617a2017-01-06 09:58:29 -08001383 # service Messaging {
1384 # rpc UpdateMessage(Message) returns (Message) {
1385 # option (google.api.http) = {
Bu Sun Kim65020912020-05-20 12:08:20 -07001386 # patch: &quot;/v1/messages/{message_id}&quot;
1387 # body: &quot;*&quot;
Jon Wayne Parrott692617a2017-01-06 09:58:29 -08001388 # };
1389 # }
1390 # }
1391 # message Message {
1392 # string message_id = 1;
1393 # string text = 2;
1394 # }
1395 #
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -07001396 #
1397 # The following HTTP JSON to RPC mapping is enabled:
1398 #
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001399 # HTTP | gRPC
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -07001400 # -----|-----
Bu Sun Kim65020912020-05-20 12:08:20 -07001401 # `PATCH /v1/messages/123456 { &quot;text&quot;: &quot;Hi!&quot; }` | `UpdateMessage(message_id:
1402 # &quot;123456&quot; text: &quot;Hi!&quot;)`
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -07001403 #
1404 # Note that when using `*` in the body mapping, it is not possible to
1405 # have HTTP parameters, as all fields not bound by the path end in
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001406 # the body. This makes this option more rarely used in practice when
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -07001407 # defining REST APIs. The common usage of `*` is in custom methods
Bu Sun Kim65020912020-05-20 12:08:20 -07001408 # which don&#x27;t use the URL at all for transferring data.
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -07001409 #
1410 # It is possible to define multiple HTTP methods for one RPC by using
1411 # the `additional_bindings` option. Example:
1412 #
Jon Wayne Parrott692617a2017-01-06 09:58:29 -08001413 # service Messaging {
1414 # rpc GetMessage(GetMessageRequest) returns (Message) {
1415 # option (google.api.http) = {
Bu Sun Kim65020912020-05-20 12:08:20 -07001416 # get: &quot;/v1/messages/{message_id}&quot;
Jon Wayne Parrott692617a2017-01-06 09:58:29 -08001417 # additional_bindings {
Bu Sun Kim65020912020-05-20 12:08:20 -07001418 # get: &quot;/v1/users/{user_id}/messages/{message_id}&quot;
Jon Wayne Parrott692617a2017-01-06 09:58:29 -08001419 # }
1420 # };
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -07001421 # }
Jon Wayne Parrott692617a2017-01-06 09:58:29 -08001422 # }
1423 # message GetMessageRequest {
1424 # string message_id = 1;
1425 # string user_id = 2;
1426 # }
1427 #
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001428 # This enables the following two alternative HTTP JSON to RPC mappings:
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -07001429 #
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001430 # HTTP | gRPC
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -07001431 # -----|-----
Bu Sun Kim65020912020-05-20 12:08:20 -07001432 # `GET /v1/messages/123456` | `GetMessage(message_id: &quot;123456&quot;)`
1433 # `GET /v1/users/me/messages/123456` | `GetMessage(user_id: &quot;me&quot; message_id:
1434 # &quot;123456&quot;)`
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -07001435 #
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001436 # ## Rules for HTTP mapping
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -07001437 #
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001438 # 1. Leaf request fields (recursive expansion nested messages in the request
1439 # message) are classified into three categories:
1440 # - Fields referred by the path template. They are passed via the URL path.
1441 # - Fields referred by the HttpRule.body. They are passed via the HTTP
1442 # request body.
1443 # - All other fields are passed via the URL query parameters, and the
1444 # parameter name is the field path in the request message. A repeated
1445 # field can be represented as multiple query parameters under the same
1446 # name.
Bu Sun Kim65020912020-05-20 12:08:20 -07001447 # 2. If HttpRule.body is &quot;*&quot;, there is no URL query parameter, all fields
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001448 # are passed via URL path and HTTP request body.
1449 # 3. If HttpRule.body is omitted, there is no HTTP request body, all
1450 # fields are passed via URL path and URL query parameters.
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -07001451 #
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001452 # ### Path template syntax
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -07001453 #
Bu Sun Kim65020912020-05-20 12:08:20 -07001454 # Template = &quot;/&quot; Segments [ Verb ] ;
1455 # Segments = Segment { &quot;/&quot; Segment } ;
1456 # Segment = &quot;*&quot; | &quot;**&quot; | LITERAL | Variable ;
1457 # Variable = &quot;{&quot; FieldPath [ &quot;=&quot; Segments ] &quot;}&quot; ;
1458 # FieldPath = IDENT { &quot;.&quot; IDENT } ;
1459 # Verb = &quot;:&quot; LITERAL ;
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -07001460 #
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001461 # The syntax `*` matches a single URL path segment. The syntax `**` matches
1462 # zero or more URL path segments, which must be the last part of the URL path
1463 # except the `Verb`.
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -07001464 #
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001465 # The syntax `Variable` matches part of the URL path as specified by its
1466 # template. A variable template must not contain other variables. If a variable
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -07001467 # matches a single path segment, its template may be omitted, e.g. `{var}`
1468 # is equivalent to `{var=*}`.
1469 #
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001470 # The syntax `LITERAL` matches literal text in the URL path. If the `LITERAL`
1471 # contains any reserved character, such characters should be percent-encoded
1472 # before the matching.
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -07001473 #
Bu Sun Kim65020912020-05-20 12:08:20 -07001474 # If a variable contains exactly one path segment, such as `&quot;{var}&quot;` or
1475 # `&quot;{var=*}&quot;`, when such a variable is expanded into a URL path on the client
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001476 # side, all characters except `[-_.~0-9a-zA-Z]` are percent-encoded. The
1477 # server side does the reverse decoding. Such variables show up in the
1478 # [Discovery
1479 # Document](https://developers.google.com/discovery/v1/reference/apis) as
1480 # `{var}`.
1481 #
Bu Sun Kim65020912020-05-20 12:08:20 -07001482 # If a variable contains multiple path segments, such as `&quot;{var=foo/*}&quot;`
1483 # or `&quot;{var=**}&quot;`, when such a variable is expanded into a URL path on the
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001484 # client side, all characters except `[-_.~/0-9a-zA-Z]` are percent-encoded.
Bu Sun Kim65020912020-05-20 12:08:20 -07001485 # The server side does the reverse decoding, except &quot;%2F&quot; and &quot;%2f&quot; are left
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001486 # unchanged. Such variables show up in the
1487 # [Discovery
1488 # Document](https://developers.google.com/discovery/v1/reference/apis) as
1489 # `{+var}`.
1490 #
1491 # ## Using gRPC API Service Configuration
1492 #
1493 # gRPC API Service Configuration (service config) is a configuration language
1494 # for configuring a gRPC service to become a user-facing product. The
1495 # service config is simply the YAML representation of the `google.api.Service`
1496 # proto message.
1497 #
1498 # As an alternative to annotating your proto file, you can configure gRPC
1499 # transcoding in your service config YAML files. You do this by specifying a
1500 # `HttpRule` that maps the gRPC method to a REST endpoint, achieving the same
1501 # effect as the proto annotation. This can be particularly useful if you
1502 # have a proto that is reused in multiple services. Note that any transcoding
1503 # specified in the service config will override any matching transcoding
1504 # configuration in the proto.
1505 #
1506 # Example:
1507 #
1508 # http:
1509 # rules:
1510 # # Selects a gRPC method and applies HttpRule to it.
1511 # - selector: example.v1.Messaging.GetMessage
1512 # get: /v1/messages/{message_id}/{sub.subfield}
1513 #
1514 # ## Special notes
1515 #
1516 # When gRPC Transcoding is used to map a gRPC to JSON REST endpoints, the
1517 # proto to JSON conversion must follow the [proto3
1518 # specification](https://developers.google.com/protocol-buffers/docs/proto3#json).
1519 #
1520 # While the single segment variable follows the semantics of
1521 # [RFC 6570](https://tools.ietf.org/html/rfc6570) Section 3.2.2 Simple String
1522 # Expansion, the multi segment variable **does not** follow RFC 6570 Section
1523 # 3.2.3 Reserved Expansion. The reason is that the Reserved Expansion
1524 # does not expand special characters like `?` and `#`, which would lead
1525 # to invalid URLs. As the result, gRPC Transcoding uses a custom encoding
1526 # for multi segment variables.
1527 #
1528 # The path variables **must not** refer to any repeated or mapped field,
1529 # because client libraries are not capable of handling such variable expansion.
1530 #
Bu Sun Kim65020912020-05-20 12:08:20 -07001531 # The path variables **must not** capture the leading &quot;/&quot; character. The reason
1532 # is that the most common use case &quot;{var}&quot; does not capture the leading &quot;/&quot;
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001533 # character. For consistency, all path variables must share the same behavior.
1534 #
1535 # Repeated message fields must not be mapped to URL query parameters, because
1536 # no client library can support such complicated mapping.
1537 #
1538 # If an API needs to use a JSON array for request or response body, it can map
1539 # the request or response body to a repeated field. However, some gRPC
1540 # Transcoding implementations may not support this feature.
Bu Sun Kim65020912020-05-20 12:08:20 -07001541 &quot;delete&quot;: &quot;A String&quot;, # Maps to HTTP DELETE. Used for deleting a resource.
1542 &quot;additionalBindings&quot;: [ # Additional HTTP bindings for the selector. Nested bindings must
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -07001543 # not contain an `additional_bindings` field themselves (that is,
1544 # the nesting may only be one level deep).
1545 # Object with schema name: HttpRule
1546 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001547 &quot;responseBody&quot;: &quot;A String&quot;, # Optional. The name of the response field whose value is mapped to the HTTP
Dan O'Mearadd494642020-05-01 07:42:23 -07001548 # response body. When omitted, the entire response message will be used
1549 # as the HTTP response body.
1550 #
1551 # NOTE: The referred field must be present at the top-level of the response
1552 # message type.
Bu Sun Kim65020912020-05-20 12:08:20 -07001553 &quot;body&quot;: &quot;A String&quot;, # The name of the request field whose value is mapped to the HTTP request
1554 # body, or `*` for mapping all request fields not captured by the path
1555 # pattern to the HTTP body, or omitted for not having any HTTP request body.
1556 #
1557 # NOTE: the referred field must be present at the top-level of the request
1558 # message type.
1559 &quot;selector&quot;: &quot;A String&quot;, # Selects a method to which this rule applies.
1560 #
1561 # Refer to selector for syntax details.
1562 &quot;post&quot;: &quot;A String&quot;, # Maps to HTTP POST. Used for creating a resource or performing an action.
1563 &quot;custom&quot;: { # A custom pattern is used for defining custom HTTP verb. # The custom pattern is used for specifying an HTTP method that is not
1564 # included in the `pattern` field, such as HEAD, or &quot;*&quot; to leave the
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001565 # HTTP method unspecified for this rule. The wild-card rule is useful
1566 # for services that provide content to Web (HTML) clients.
Bu Sun Kim65020912020-05-20 12:08:20 -07001567 &quot;kind&quot;: &quot;A String&quot;, # The name of this custom HTTP verb.
1568 &quot;path&quot;: &quot;A String&quot;, # The path matched by this custom verb.
Thomas Coffee2f245372017-03-27 10:39:26 -07001569 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001570 &quot;patch&quot;: &quot;A String&quot;, # Maps to HTTP PATCH. Used for updating a resource.
1571 &quot;get&quot;: &quot;A String&quot;, # Maps to HTTP GET. Used for listing and getting information about
1572 # resources.
1573 &quot;allowHalfDuplex&quot;: True or False, # When this flag is set to true, HTTP requests will be allowed to invoke a
1574 # half-duplex streaming method.
1575 &quot;put&quot;: &quot;A String&quot;, # Maps to HTTP PUT. Used for replacing a resource.
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -07001576 },
1577 ],
1578 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001579 &quot;systemParameters&quot;: { # ### System parameter configuration # System parameter configuration.
1580 #
1581 # A system parameter is a special kind of parameter defined by the API
1582 # system, not by an individual API. It is typically mapped to an HTTP header
1583 # and/or a URL query parameter. This configuration specifies which methods
1584 # change the names of the system parameters.
1585 &quot;rules&quot;: [ # Define system parameters.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001586 #
Bu Sun Kim65020912020-05-20 12:08:20 -07001587 # The parameters defined here will override the default parameters
1588 # implemented by the system. If this field is missing from the service
1589 # config, default system parameters will be used. Default system parameters
1590 # and names is implementation-dependent.
1591 #
1592 # Example: define api key for all methods
1593 #
1594 # system_parameters
1595 # rules:
1596 # - selector: &quot;*&quot;
1597 # parameters:
1598 # - name: api_key
1599 # url_query_parameter: api_key
1600 #
1601 #
1602 # Example: define 2 api key names for a specific method.
1603 #
1604 # system_parameters
1605 # rules:
1606 # - selector: &quot;/ListShelves&quot;
1607 # parameters:
1608 # - name: api_key
1609 # http_header: Api-Key1
1610 # - name: api_key
1611 # http_header: Api-Key2
1612 #
1613 # **NOTE:** All service configuration rules follow &quot;last one wins&quot; order.
1614 { # Define a system parameter rule mapping system parameter definitions to
1615 # methods.
1616 &quot;parameters&quot;: [ # Define parameters. Multiple names may be defined for a parameter.
1617 # For a given method call, only one of them should be used. If multiple
1618 # names are used the behavior is implementation-dependent.
1619 # If none of the specified names are present the behavior is
1620 # parameter-dependent.
1621 { # Define a parameter&#x27;s name and location. The parameter may be passed as either
1622 # an HTTP header or a URL query parameter, and if both are passed the behavior
1623 # is implementation-dependent.
1624 &quot;httpHeader&quot;: &quot;A String&quot;, # Define the HTTP header name to use for the parameter. It is case
1625 # insensitive.
1626 &quot;name&quot;: &quot;A String&quot;, # Define the name of the parameter, such as &quot;api_key&quot; . It is case sensitive.
1627 &quot;urlQueryParameter&quot;: &quot;A String&quot;, # Define the URL query parameter name to use for the parameter. It is case
1628 # sensitive.
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -07001629 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001630 ],
1631 &quot;selector&quot;: &quot;A String&quot;, # Selects the methods to which this rule applies. Use &#x27;*&#x27; to indicate all
1632 # methods in all APIs.
1633 #
1634 # Refer to selector for syntax details.
1635 },
1636 ],
1637 },
1638 &quot;backend&quot;: { # `Backend` defines the backend configuration for a service. # API backend configuration.
1639 &quot;rules&quot;: [ # A list of API backend rules that apply to individual API methods.
1640 #
1641 # **NOTE:** All service configuration rules follow &quot;last one wins&quot; order.
1642 { # A backend rule provides configuration for an individual API element.
1643 &quot;protocol&quot;: &quot;A String&quot;, # The protocol used for sending a request to the backend.
1644 # The supported values are &quot;http/1.1&quot; and &quot;h2&quot;.
1645 #
1646 # The default value is inferred from the scheme in the
1647 # address field:
1648 #
1649 # SCHEME PROTOCOL
1650 # http:// http/1.1
1651 # https:// http/1.1
1652 # grpc:// h2
1653 # grpcs:// h2
1654 #
1655 # For secure HTTP backends (https://) that support HTTP/2, set this field
1656 # to &quot;h2&quot; for improved performance.
1657 #
1658 # Configuring this field to non-default values is only supported for secure
1659 # HTTP backends. This field will be ignored for all other backends.
1660 #
1661 # See
1662 # https://www.iana.org/assignments/tls-extensiontype-values/tls-extensiontype-values.xhtml#alpn-protocol-ids
1663 # for more details on the supported values.
1664 &quot;selector&quot;: &quot;A String&quot;, # Selects the methods to which this rule applies.
1665 #
1666 # Refer to selector for syntax details.
1667 &quot;operationDeadline&quot;: 3.14, # The number of seconds to wait for the completion of a long running
1668 # operation. The default is no deadline.
1669 &quot;deadline&quot;: 3.14, # The number of seconds to wait for a response from a request. The default
1670 # varies based on the request protocol and deployment environment.
1671 &quot;minDeadline&quot;: 3.14, # Minimum deadline in seconds needed for this method. Calls having deadline
1672 # value lower than this will be rejected.
1673 &quot;address&quot;: &quot;A String&quot;, # The address of the API backend.
1674 #
1675 # The scheme is used to determine the backend protocol and security.
1676 # The following schemes are accepted:
1677 #
1678 # SCHEME PROTOCOL SECURITY
1679 # http:// HTTP None
1680 # https:// HTTP TLS
1681 # grpc:// gRPC None
1682 # grpcs:// gRPC TLS
1683 #
1684 # It is recommended to explicitly include a scheme. Leaving out the scheme
1685 # may cause constrasting behaviors across platforms.
1686 #
1687 # If the port is unspecified, the default is:
1688 # - 80 for schemes without TLS
1689 # - 443 for schemes with TLS
1690 #
1691 # For HTTP backends, use protocol
1692 # to specify the protocol version.
1693 &quot;pathTranslation&quot;: &quot;A String&quot;,
1694 &quot;jwtAudience&quot;: &quot;A String&quot;, # The JWT audience is used when generating a JWT ID token for the backend.
1695 # This ID token will be added in the HTTP &quot;authorization&quot; header, and sent
1696 # to the backend.
1697 &quot;disableAuth&quot;: True or False, # When disable_auth is true, a JWT ID token won&#x27;t be generated and the
1698 # original &quot;Authorization&quot; HTTP header will be preserved. If the header is
1699 # used to carry the original token and is expected by the backend, this
1700 # field must be set to true to preserve the header.
1701 &quot;renameTo&quot;: &quot;A String&quot;, # Unimplemented. Do not use.
1702 #
1703 # The new name the selected proto elements should be renamed to.
1704 #
1705 # The package, the service and the method can all be renamed.
1706 # The backend server should implement the renamed proto. However, clients
1707 # should call the original method, and ESF routes the traffic to the renamed
1708 # method.
1709 #
1710 # HTTP clients should call the URL mapped to the original method.
1711 # gRPC and Stubby clients should call the original method with package name.
1712 #
1713 # For legacy reasons, ESF allows Stubby clients to call with the
1714 # short name (without the package name). However, for API Versioning(or
1715 # multiple methods mapped to the same short name), all Stubby clients must
1716 # call the method&#x27;s full name with the package name, otherwise the first one
1717 # (selector) wins.
1718 #
1719 # If this `rename_to` is specified with a trailing `*`, the `selector` must
1720 # be specified with a trailing `*` as well. The all element short names
1721 # matched by the `*` in the selector will be kept in the `rename_to`.
1722 #
1723 # For example,
1724 # rename_rules:
1725 # - selector: |-
1726 # google.example.library.v1.*
1727 # rename_to: google.example.library.*
1728 #
1729 # The selector matches `google.example.library.v1.Library.CreateShelf` and
1730 # `google.example.library.v1.Library.CreateBook`, they will be renamed to
1731 # `google.example.library.Library.CreateShelf` and
1732 # `google.example.library.Library.CreateBook`. It essentially renames the
1733 # proto package name section of the matched proto service and methods.
1734 },
1735 ],
1736 },
1737 &quot;documentation&quot;: { # `Documentation` provides the information for describing a service. # Additional API documentation.
1738 #
1739 # Example:
1740 # &lt;pre&gt;&lt;code&gt;documentation:
1741 # summary: &gt;
1742 # The Google Calendar API gives access
1743 # to most calendar features.
1744 # pages:
1745 # - name: Overview
1746 # content: &amp;#40;== include google/foo/overview.md ==&amp;#41;
1747 # - name: Tutorial
1748 # content: &amp;#40;== include google/foo/tutorial.md ==&amp;#41;
1749 # subpages;
1750 # - name: Java
1751 # content: &amp;#40;== include google/foo/tutorial_java.md ==&amp;#41;
1752 # rules:
1753 # - selector: google.calendar.Calendar.Get
1754 # description: &gt;
1755 # ...
1756 # - selector: google.calendar.Calendar.Put
1757 # description: &gt;
1758 # ...
1759 # &lt;/code&gt;&lt;/pre&gt;
1760 # Documentation is provided in markdown syntax. In addition to
1761 # standard markdown features, definition lists, tables and fenced
1762 # code blocks are supported. Section headers can be provided and are
1763 # interpreted relative to the section nesting of the context where
1764 # a documentation fragment is embedded.
1765 #
1766 # Documentation from the IDL is merged with documentation defined
1767 # via the config at normalization time, where documentation provided
1768 # by config rules overrides IDL provided.
1769 #
1770 # A number of constructs specific to the API platform are supported
1771 # in documentation text.
1772 #
1773 # In order to reference a proto element, the following
1774 # notation can be used:
1775 # &lt;pre&gt;&lt;code&gt;&amp;#91;fully.qualified.proto.name]&amp;#91;]&lt;/code&gt;&lt;/pre&gt;
1776 # To override the display text used for the link, this can be used:
1777 # &lt;pre&gt;&lt;code&gt;&amp;#91;display text]&amp;#91;fully.qualified.proto.name]&lt;/code&gt;&lt;/pre&gt;
1778 # Text can be excluded from doc using the following notation:
1779 # &lt;pre&gt;&lt;code&gt;&amp;#40;-- internal comment --&amp;#41;&lt;/code&gt;&lt;/pre&gt;
1780 #
1781 # A few directives are available in documentation. Note that
1782 # directives must appear on a single line to be properly
1783 # identified. The `include` directive includes a markdown file from
1784 # an external source:
1785 # &lt;pre&gt;&lt;code&gt;&amp;#40;== include path/to/file ==&amp;#41;&lt;/code&gt;&lt;/pre&gt;
1786 # The `resource_for` directive marks a message to be the resource of
1787 # a collection in REST view. If it is not specified, tools attempt
1788 # to infer the resource from the operations in a collection:
1789 # &lt;pre&gt;&lt;code&gt;&amp;#40;== resource_for v1.shelves.books ==&amp;#41;&lt;/code&gt;&lt;/pre&gt;
1790 # The directive `suppress_warning` does not directly affect documentation
1791 # and is documented together with service config validation.
1792 &quot;documentationRootUrl&quot;: &quot;A String&quot;, # The URL to the root of documentation.
1793 &quot;rules&quot;: [ # A list of documentation rules that apply to individual API elements.
1794 #
1795 # **NOTE:** All service configuration rules follow &quot;last one wins&quot; order.
1796 { # A documentation rule provides information about individual API elements.
1797 &quot;deprecationDescription&quot;: &quot;A String&quot;, # Deprecation description of the selected element(s). It can be provided if
1798 # an element is marked as `deprecated`.
1799 &quot;selector&quot;: &quot;A String&quot;, # The selector is a comma-separated list of patterns. Each pattern is a
1800 # qualified name of the element which may end in &quot;*&quot;, indicating a wildcard.
1801 # Wildcards are only allowed at the end and for a whole component of the
1802 # qualified name, i.e. &quot;foo.*&quot; is ok, but not &quot;foo.b*&quot; or &quot;foo.*.bar&quot;. A
1803 # wildcard will match one or more components. To specify a default for all
1804 # applicable elements, the whole pattern &quot;*&quot; is used.
1805 &quot;description&quot;: &quot;A String&quot;, # Description of the selected API(s).
1806 },
1807 ],
1808 &quot;summary&quot;: &quot;A String&quot;, # A short summary of what the service does. Can only be provided by
1809 # plain text.
1810 &quot;overview&quot;: &quot;A String&quot;, # Declares a single overview page. For example:
1811 # &lt;pre&gt;&lt;code&gt;documentation:
1812 # summary: ...
1813 # overview: &amp;#40;== include overview.md ==&amp;#41;
1814 # &lt;/code&gt;&lt;/pre&gt;
1815 # This is a shortcut for the following declaration (using pages style):
1816 # &lt;pre&gt;&lt;code&gt;documentation:
1817 # summary: ...
1818 # pages:
1819 # - name: Overview
1820 # content: &amp;#40;== include overview.md ==&amp;#41;
1821 # &lt;/code&gt;&lt;/pre&gt;
1822 # Note: you cannot specify both `overview` field and `pages` field.
1823 &quot;pages&quot;: [ # The top level pages for the documentation set.
1824 { # Represents a documentation page. A page can contain subpages to represent
1825 # nested documentation set structure.
1826 &quot;name&quot;: &quot;A String&quot;, # The name of the page. It will be used as an identity of the page to
1827 # generate URI of the page, text of the link to this page in navigation,
1828 # etc. The full page name (start from the root page name to this page
1829 # concatenated with `.`) can be used as reference to the page in your
1830 # documentation. For example:
1831 # &lt;pre&gt;&lt;code&gt;pages:
1832 # - name: Tutorial
1833 # content: &amp;#40;== include tutorial.md ==&amp;#41;
1834 # subpages:
1835 # - name: Java
1836 # content: &amp;#40;== include tutorial_java.md ==&amp;#41;
1837 # &lt;/code&gt;&lt;/pre&gt;
1838 # You can reference `Java` page using Markdown reference link syntax:
1839 # `Java`.
1840 &quot;content&quot;: &quot;A String&quot;, # The Markdown content of the page. You can use &lt;code&gt;&amp;#40;== include {path}
1841 # ==&amp;#41;&lt;/code&gt; to include content from a Markdown file.
1842 &quot;subpages&quot;: [ # Subpages of this page. The order of subpages specified here will be
1843 # honored in the generated docset.
1844 # Object with schema name: Page
1845 ],
1846 },
1847 ],
1848 &quot;serviceRootUrl&quot;: &quot;A String&quot;, # Specifies the service root url if the default one (the service name
1849 # from the yaml file) is not suitable. This can be seen in any fully
1850 # specified service urls as well as sections that show a base that other
1851 # urls are relative to.
1852 },
1853 &quot;logging&quot;: { # Logging configuration of the service. # Logging configuration.
1854 #
1855 # The following example shows how to configure logs to be sent to the
1856 # producer and consumer projects. In the example, the `activity_history`
1857 # log is sent to both the producer and consumer projects, whereas the
1858 # `purchase_history` log is only sent to the producer project.
1859 #
1860 # monitored_resources:
1861 # - type: library.googleapis.com/branch
1862 # labels:
1863 # - key: /city
1864 # description: The city where the library branch is located in.
1865 # - key: /name
1866 # description: The name of the branch.
1867 # logs:
1868 # - name: activity_history
1869 # labels:
1870 # - key: /customer_id
1871 # - name: purchase_history
1872 # logging:
1873 # producer_destinations:
1874 # - monitored_resource: library.googleapis.com/branch
1875 # logs:
1876 # - activity_history
1877 # - purchase_history
1878 # consumer_destinations:
1879 # - monitored_resource: library.googleapis.com/branch
1880 # logs:
1881 # - activity_history
1882 &quot;producerDestinations&quot;: [ # Logging configurations for sending logs to the producer project.
1883 # There can be multiple producer destinations, each one must have a
1884 # different monitored resource type. A log can be used in at most
1885 # one producer destination.
1886 { # Configuration of a specific logging destination (the producer project
1887 # or the consumer project).
1888 &quot;logs&quot;: [ # Names of the logs to be sent to this destination. Each name must
1889 # be defined in the Service.logs section. If the log name is
1890 # not a domain scoped name, it will be automatically prefixed with
1891 # the service name followed by &quot;/&quot;.
1892 &quot;A String&quot;,
1893 ],
1894 &quot;monitoredResource&quot;: &quot;A String&quot;, # The monitored resource type. The type must be defined in the
1895 # Service.monitored_resources section.
1896 },
1897 ],
1898 &quot;consumerDestinations&quot;: [ # Logging configurations for sending logs to the consumer project.
1899 # There can be multiple consumer destinations, each one must have a
1900 # different monitored resource type. A log can be used in at most
1901 # one consumer destination.
1902 { # Configuration of a specific logging destination (the producer project
1903 # or the consumer project).
1904 &quot;logs&quot;: [ # Names of the logs to be sent to this destination. Each name must
1905 # be defined in the Service.logs section. If the log name is
1906 # not a domain scoped name, it will be automatically prefixed with
1907 # the service name followed by &quot;/&quot;.
1908 &quot;A String&quot;,
1909 ],
1910 &quot;monitoredResource&quot;: &quot;A String&quot;, # The monitored resource type. The type must be defined in the
1911 # Service.monitored_resources section.
1912 },
1913 ],
1914 },
1915 &quot;monitoredResources&quot;: [ # Defines the monitored resources used by this service. This is required
1916 # by the Service.monitoring and Service.logging configurations.
1917 { # An object that describes the schema of a MonitoredResource object using a
1918 # type name and a set of labels. For example, the monitored resource
1919 # descriptor for Google Compute Engine VM instances has a type of
1920 # `&quot;gce_instance&quot;` and specifies the use of the labels `&quot;instance_id&quot;` and
1921 # `&quot;zone&quot;` to identify particular VM instances.
1922 #
1923 # Different APIs can support different monitored resource types. APIs generally
1924 # provide a `list` method that returns the monitored resource descriptors used
1925 # by the API.
1926 &quot;displayName&quot;: &quot;A String&quot;, # Optional. A concise name for the monitored resource type that might be
1927 # displayed in user interfaces. It should be a Title Cased Noun Phrase,
1928 # without any article or other determiners. For example,
1929 # `&quot;Google Cloud SQL Database&quot;`.
1930 &quot;description&quot;: &quot;A String&quot;, # Optional. A detailed description of the monitored resource type that might
1931 # be used in documentation.
1932 &quot;launchStage&quot;: &quot;A String&quot;, # Optional. The launch stage of the monitored resource definition.
1933 &quot;labels&quot;: [ # Required. A set of labels used to describe instances of this monitored
1934 # resource type. For example, an individual Google Cloud SQL database is
1935 # identified by values for the labels `&quot;database_id&quot;` and `&quot;zone&quot;`.
1936 { # A description of a label.
1937 &quot;key&quot;: &quot;A String&quot;, # The label key.
1938 &quot;description&quot;: &quot;A String&quot;, # A human-readable description for the label.
1939 &quot;valueType&quot;: &quot;A String&quot;, # The type of data that can be assigned to the label.
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -07001940 },
1941 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001942 &quot;name&quot;: &quot;A String&quot;, # Optional. The resource name of the monitored resource descriptor:
1943 # `&quot;projects/{project_id}/monitoredResourceDescriptors/{type}&quot;` where
1944 # {type} is the value of the `type` field in this object and
1945 # {project_id} is a project ID that provides API-specific context for
1946 # accessing the type. APIs that do not use project information can use the
1947 # resource name format `&quot;monitoredResourceDescriptors/{type}&quot;`.
1948 &quot;type&quot;: &quot;A String&quot;, # Required. The monitored resource type. For example, the type
1949 # `&quot;cloudsql_database&quot;` represents databases in Google Cloud SQL.
1950 # The maximum length of this value is 256 characters.
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -07001951 },
1952 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001953 &quot;context&quot;: { # `Context` defines which contexts an API requests. # Context configuration.
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -07001954 #
1955 # Example:
1956 #
Bu Sun Kim65020912020-05-20 12:08:20 -07001957 # context:
1958 # rules:
1959 # - selector: &quot;*&quot;
1960 # requested:
1961 # - google.rpc.context.ProjectContext
1962 # - google.rpc.context.OriginContext
1963 #
1964 # The above specifies that all methods in the API request
1965 # `google.rpc.context.ProjectContext` and
1966 # `google.rpc.context.OriginContext`.
1967 #
1968 # Available context types are defined in package
1969 # `google.rpc.context`.
1970 #
1971 # This also provides mechanism to whitelist any protobuf message extension that
1972 # can be sent in grpc metadata using “x-goog-ext-&lt;extension_id&gt;-bin” and
1973 # “x-goog-ext-&lt;extension_id&gt;-jspb” format. For example, list any service
1974 # specific protobuf types that can appear in grpc metadata as follows in your
1975 # yaml file:
1976 #
1977 # Example:
1978 #
1979 # context:
1980 # rules:
1981 # - selector: &quot;google.example.library.v1.LibraryService.CreateBook&quot;
1982 # allowed_request_extensions:
1983 # - google.foo.v1.NewExtension
1984 # allowed_response_extensions:
1985 # - google.foo.v1.NewExtension
1986 #
1987 # You can also specify extension ID instead of fully qualified extension name
1988 # here.
1989 &quot;rules&quot;: [ # A list of RPC context rules that apply to individual API methods.
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -07001990 #
Bu Sun Kim65020912020-05-20 12:08:20 -07001991 # **NOTE:** All service configuration rules follow &quot;last one wins&quot; order.
1992 { # A context rule provides information about the context for an individual API
1993 # element.
1994 &quot;requested&quot;: [ # A list of full type names of requested contexts.
1995 &quot;A String&quot;,
1996 ],
1997 &quot;allowedRequestExtensions&quot;: [ # A list of full type names or extension IDs of extensions allowed in grpc
1998 # side channel from client to backend.
1999 &quot;A String&quot;,
2000 ],
2001 &quot;allowedResponseExtensions&quot;: [ # A list of full type names or extension IDs of extensions allowed in grpc
2002 # side channel from backend to client.
2003 &quot;A String&quot;,
2004 ],
2005 &quot;selector&quot;: &quot;A String&quot;, # Selects the methods to which this rule applies.
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -07002006 #
2007 # Refer to selector for syntax details.
Bu Sun Kim65020912020-05-20 12:08:20 -07002008 &quot;provided&quot;: [ # A list of full type names of provided contexts.
2009 &quot;A String&quot;,
2010 ],
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -07002011 },
2012 ],
2013 },
Bu Sun Kim65020912020-05-20 12:08:20 -07002014 &quot;enums&quot;: [ # A list of all enum types included in this API service. Enums
2015 # referenced directly or indirectly by the `apis` are automatically
2016 # included. Enums which are not referenced but shall be included
2017 # should be listed here by name. Example:
2018 #
2019 # enums:
2020 # - name: google.someapi.v1.SomeEnum
2021 { # Enum type definition.
2022 &quot;name&quot;: &quot;A String&quot;, # Enum type name.
2023 &quot;enumvalue&quot;: [ # Enum value definitions.
2024 { # Enum value definition.
2025 &quot;name&quot;: &quot;A String&quot;, # Enum value name.
2026 &quot;options&quot;: [ # Protocol buffer options.
2027 { # A protocol buffer option, which can be attached to a message, field,
2028 # enumeration, etc.
2029 &quot;value&quot;: { # The option&#x27;s value packed in an Any message. If the value is a primitive,
2030 # the corresponding wrapper type defined in google/protobuf/wrappers.proto
2031 # should be used. If the value is an enum, it should be stored as an int32
2032 # value using the google.protobuf.Int32Value type.
2033 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
2034 },
2035 &quot;name&quot;: &quot;A String&quot;, # The option&#x27;s name. For protobuf built-in options (options defined in
2036 # descriptor.proto), this is the short name. For example, `&quot;map_entry&quot;`.
2037 # For custom options, it should be the fully-qualified name. For example,
2038 # `&quot;google.api.http&quot;`.
2039 },
2040 ],
2041 &quot;number&quot;: 42, # Enum value number.
2042 },
2043 ],
2044 &quot;options&quot;: [ # Protocol buffer options.
2045 { # A protocol buffer option, which can be attached to a message, field,
2046 # enumeration, etc.
2047 &quot;value&quot;: { # The option&#x27;s value packed in an Any message. If the value is a primitive,
2048 # the corresponding wrapper type defined in google/protobuf/wrappers.proto
2049 # should be used. If the value is an enum, it should be stored as an int32
2050 # value using the google.protobuf.Int32Value type.
2051 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
2052 },
2053 &quot;name&quot;: &quot;A String&quot;, # The option&#x27;s name. For protobuf built-in options (options defined in
2054 # descriptor.proto), this is the short name. For example, `&quot;map_entry&quot;`.
2055 # For custom options, it should be the fully-qualified name. For example,
2056 # `&quot;google.api.http&quot;`.
2057 },
2058 ],
2059 &quot;sourceContext&quot;: { # `SourceContext` represents information about the source of a # The source context.
2060 # protobuf element, like the file in which it is defined.
2061 &quot;fileName&quot;: &quot;A String&quot;, # The path-qualified name of the .proto file that contained the associated
2062 # protobuf element. For example: `&quot;google/protobuf/source_context.proto&quot;`.
2063 },
2064 &quot;syntax&quot;: &quot;A String&quot;, # The source syntax.
2065 },
2066 ],
2067 &quot;id&quot;: &quot;A String&quot;, # A unique ID for a specific instance of this message, typically assigned
2068 # by the client for tracking purpose. Must be no longer than 63 characters
2069 # and only lower case letters, digits, &#x27;.&#x27;, &#x27;_&#x27; and &#x27;-&#x27; are allowed. If
2070 # empty, the server may choose to generate one instead.
2071 &quot;usage&quot;: { # Configuration controlling usage of a service. # Configuration controlling usage of this service.
2072 &quot;producerNotificationChannel&quot;: &quot;A String&quot;, # The full resource name of a channel used for sending notifications to the
2073 # service producer.
2074 #
2075 # Google Service Management currently only supports
2076 # [Google Cloud Pub/Sub](https://cloud.google.com/pubsub) as a notification
2077 # channel. To use Google Cloud Pub/Sub as the channel, this must be the name
2078 # of a Cloud Pub/Sub topic that uses the Cloud Pub/Sub topic name format
2079 # documented in https://cloud.google.com/pubsub/docs/overview.
2080 &quot;rules&quot;: [ # A list of usage rules that apply to individual API methods.
2081 #
2082 # **NOTE:** All service configuration rules follow &quot;last one wins&quot; order.
2083 { # Usage configuration rules for the service.
2084 #
2085 # NOTE: Under development.
2086 #
2087 #
2088 # Use this rule to configure unregistered calls for the service. Unregistered
2089 # calls are calls that do not contain consumer project identity.
2090 # (Example: calls that do not contain an API key).
2091 # By default, API methods do not allow unregistered calls, and each method call
2092 # must be identified by a consumer project identity. Use this rule to
2093 # allow/disallow unregistered calls.
2094 #
2095 # Example of an API that wants to allow unregistered calls for entire service.
2096 #
2097 # usage:
2098 # rules:
2099 # - selector: &quot;*&quot;
2100 # allow_unregistered_calls: true
2101 #
2102 # Example of a method that wants to allow unregistered calls.
2103 #
2104 # usage:
2105 # rules:
2106 # - selector: &quot;google.example.library.v1.LibraryService.CreateBook&quot;
2107 # allow_unregistered_calls: true
2108 &quot;selector&quot;: &quot;A String&quot;, # Selects the methods to which this rule applies. Use &#x27;*&#x27; to indicate all
2109 # methods in all APIs.
2110 #
2111 # Refer to selector for syntax details.
2112 &quot;skipServiceControl&quot;: True or False, # If true, the selected method should skip service control and the control
2113 # plane features, such as quota and billing, will not be available.
2114 # This flag is used by Google Cloud Endpoints to bypass checks for internal
2115 # methods, such as service health check methods.
2116 &quot;allowUnregisteredCalls&quot;: True or False, # If true, the selected method allows unregistered calls, e.g. calls
2117 # that don&#x27;t identify any user or application.
2118 },
2119 ],
2120 &quot;serviceIdentity&quot;: { # The per-product per-project service identity for a service. # The configuration of a per-product per-project service identity.
2121 #
2122 #
2123 # Use this field to configure per-product per-project service identity.
2124 # Example of a service identity configuration.
2125 #
2126 # usage:
2127 # service_identity:
2128 # - service_account_parent: &quot;projects/123456789&quot;
2129 # display_name: &quot;Cloud XXX Service Agent&quot;
2130 # description: &quot;Used as the identity of Cloud XXX to access resources&quot;
2131 &quot;serviceAccountParent&quot;: &quot;A String&quot;, # A service account project that hosts the service accounts.
2132 #
2133 # An example name would be:
2134 # `projects/123456789`
2135 &quot;displayName&quot;: &quot;A String&quot;, # Optional. A user-specified name for the service account.
2136 # Must be less than or equal to 100 UTF-8 bytes.
2137 &quot;description&quot;: &quot;A String&quot;, # Optional. A user-specified opaque description of the service account.
2138 # Must be less than or equal to 256 UTF-8 bytes.
2139 },
2140 &quot;requirements&quot;: [ # Requirements that must be satisfied before a consumer project can use the
2141 # service. Each requirement is of the form &lt;service.name&gt;/&lt;requirement-id&gt;;
2142 # for example &#x27;serviceusage.googleapis.com/billing-enabled&#x27;.
2143 &quot;A String&quot;,
2144 ],
2145 },
2146 &quot;metrics&quot;: [ # Defines the metrics used by this service.
Jon Wayne Parrott692617a2017-01-06 09:58:29 -08002147 { # Defines a metric type and its schema. Once a metric descriptor is created,
Bu Sun Kim65020912020-05-20 12:08:20 -07002148 # deleting or altering it stops data collection and makes the metric type&#x27;s
Jon Wayne Parrott692617a2017-01-06 09:58:29 -08002149 # existing data unusable.
Bu Sun Kim65020912020-05-20 12:08:20 -07002150 &quot;name&quot;: &quot;A String&quot;, # The resource name of the metric descriptor.
2151 &quot;type&quot;: &quot;A String&quot;, # The metric type, including its DNS name prefix. The type is not
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002152 # URL-encoded. All user-defined metric types have the DNS name
2153 # `custom.googleapis.com` or `external.googleapis.com`. Metric types should
2154 # use a natural hierarchical grouping. For example:
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -07002155 #
Bu Sun Kim65020912020-05-20 12:08:20 -07002156 # &quot;custom.googleapis.com/invoice/paid/amount&quot;
2157 # &quot;external.googleapis.com/prometheus/up&quot;
2158 # &quot;appengine.googleapis.com/http/server/response_latencies&quot;
2159 &quot;metadata&quot;: { # Additional annotations that can be used to guide the usage of a metric. # Optional. Metadata which can be used to guide usage of the metric.
2160 &quot;ingestDelay&quot;: &quot;A String&quot;, # The delay of data points caused by ingestion. Data points older than this
2161 # age are guaranteed to be ingested and available to be read, excluding
2162 # data loss due to errors.
2163 &quot;launchStage&quot;: &quot;A String&quot;, # Deprecated. Must use the MetricDescriptor.launch_stage instead.
2164 &quot;samplePeriod&quot;: &quot;A String&quot;, # The sampling period of metric data points. For metrics which are written
2165 # periodically, consecutive data points are stored at this time interval,
2166 # excluding data loss due to errors. Metrics with a higher granularity have
2167 # a smaller sampling period.
2168 },
2169 &quot;valueType&quot;: &quot;A String&quot;, # Whether the measurement is an integer, a floating-point number, etc.
2170 # Some combinations of `metric_kind` and `value_type` might not be supported.
2171 &quot;metricKind&quot;: &quot;A String&quot;, # Whether the metric records instantaneous values, changes to a value, etc.
2172 # Some combinations of `metric_kind` and `value_type` might not be supported.
2173 &quot;description&quot;: &quot;A String&quot;, # A detailed description of the metric, which can be used in documentation.
2174 &quot;displayName&quot;: &quot;A String&quot;, # A concise name for the metric, which can be displayed in user interfaces.
2175 # Use sentence case without an ending period, for example &quot;Request count&quot;.
2176 # This field is optional but it is recommended to be set for any metrics
2177 # associated with user-visible concepts, such as Quota.
2178 &quot;unit&quot;: &quot;A String&quot;, # The units in which the metric value is reported. It is only applicable
Dan O'Mearadd494642020-05-01 07:42:23 -07002179 # if the `value_type` is `INT64`, `DOUBLE`, or `DISTRIBUTION`. The `unit`
2180 # defines the representation of the stored metric values.
2181 #
2182 # Different systems may scale the values to be more easily displayed (so a
2183 # value of `0.02KBy` _might_ be displayed as `20By`, and a value of
2184 # `3523KBy` _might_ be displayed as `3.5MBy`). However, if the `unit` is
2185 # `KBy`, then the value of the metric is always in thousands of bytes, no
2186 # matter how it may be displayed..
2187 #
2188 # If you want a custom metric to record the exact number of CPU-seconds used
2189 # by a job, you can create an `INT64 CUMULATIVE` metric whose `unit` is
2190 # `s{CPU}` (or equivalently `1s{CPU}` or just `s`). If the job uses 12,005
2191 # CPU-seconds, then the value is written as `12005`.
2192 #
2193 # Alternatively, if you want a custom metric to record data in a more
2194 # granular way, you can create a `DOUBLE CUMULATIVE` metric whose `unit` is
2195 # `ks{CPU}`, and then write the value `12.005` (which is `12005/1000`),
2196 # or use `Kis{CPU}` and write `11.723` (which is `12005/1024`).
2197 #
2198 # The supported units are a subset of [The Unified Code for Units of
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -07002199 # Measure](http://unitsofmeasure.org/ucum.html) standard:
2200 #
2201 # **Basic units (UNIT)**
2202 #
2203 # * `bit` bit
2204 # * `By` byte
2205 # * `s` second
2206 # * `min` minute
2207 # * `h` hour
2208 # * `d` day
2209 #
2210 # **Prefixes (PREFIX)**
2211 #
Dan O'Mearadd494642020-05-01 07:42:23 -07002212 # * `k` kilo (10^3)
2213 # * `M` mega (10^6)
2214 # * `G` giga (10^9)
2215 # * `T` tera (10^12)
2216 # * `P` peta (10^15)
2217 # * `E` exa (10^18)
2218 # * `Z` zetta (10^21)
2219 # * `Y` yotta (10^24)
2220 #
2221 # * `m` milli (10^-3)
2222 # * `u` micro (10^-6)
2223 # * `n` nano (10^-9)
2224 # * `p` pico (10^-12)
2225 # * `f` femto (10^-15)
2226 # * `a` atto (10^-18)
2227 # * `z` zepto (10^-21)
2228 # * `y` yocto (10^-24)
2229 #
2230 # * `Ki` kibi (2^10)
2231 # * `Mi` mebi (2^20)
2232 # * `Gi` gibi (2^30)
2233 # * `Ti` tebi (2^40)
2234 # * `Pi` pebi (2^50)
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -07002235 #
2236 # **Grammar**
2237 #
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -07002238 # The grammar also includes these connectors:
2239 #
Dan O'Mearadd494642020-05-01 07:42:23 -07002240 # * `/` division or ratio (as an infix operator). For examples,
2241 # `kBy/{email}` or `MiBy/10ms` (although you should almost never
2242 # have `/s` in a metric `unit`; rates should always be computed at
2243 # query time from the underlying cumulative or delta value).
2244 # * `.` multiplication or composition (as an infix operator). For
2245 # examples, `GBy.d` or `k{watt}.h`.
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -07002246 #
2247 # The grammar for a unit is as follows:
2248 #
Bu Sun Kim65020912020-05-20 12:08:20 -07002249 # Expression = Component { &quot;.&quot; Component } { &quot;/&quot; Component } ;
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -07002250 #
Bu Sun Kim65020912020-05-20 12:08:20 -07002251 # Component = ( [ PREFIX ] UNIT | &quot;%&quot; ) [ Annotation ]
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -07002252 # | Annotation
Bu Sun Kim65020912020-05-20 12:08:20 -07002253 # | &quot;1&quot;
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -07002254 # ;
2255 #
Bu Sun Kim65020912020-05-20 12:08:20 -07002256 # Annotation = &quot;{&quot; NAME &quot;}&quot; ;
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -07002257 #
2258 # Notes:
2259 #
Dan O'Mearadd494642020-05-01 07:42:23 -07002260 # * `Annotation` is just a comment if it follows a `UNIT`. If the annotation
2261 # is used alone, then the unit is equivalent to `1`. For examples,
2262 # `{request}/s == 1/s`, `By{transmitted}/s == By/s`.
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -07002263 # * `NAME` is a sequence of non-blank printable ASCII characters not
Dan O'Mearadd494642020-05-01 07:42:23 -07002264 # containing `{` or `}`.
2265 # * `1` represents a unitary [dimensionless
2266 # unit](https://en.wikipedia.org/wiki/Dimensionless_quantity) of 1, such
2267 # as in `1/s`. It is typically used when none of the basic units are
Bu Sun Kim65020912020-05-20 12:08:20 -07002268 # appropriate. For example, &quot;new users per day&quot; can be represented as
2269 # `1/d` or `{new-users}/d` (and a metric value `5` would mean &quot;5 new
2270 # users). Alternatively, &quot;thousands of page views per day&quot; would be
Dan O'Mearadd494642020-05-01 07:42:23 -07002271 # represented as `1000/d` or `k1/d` or `k{page_views}/d` (and a metric
Bu Sun Kim65020912020-05-20 12:08:20 -07002272 # value of `5.3` would mean &quot;5300 page views per day&quot;).
Dan O'Mearadd494642020-05-01 07:42:23 -07002273 # * `%` represents dimensionless value of 1/100, and annotates values giving
2274 # a percentage (so the metric values are typically in the range of 0..100,
Bu Sun Kim65020912020-05-20 12:08:20 -07002275 # and a metric value `3` means &quot;3 percent&quot;).
Dan O'Mearadd494642020-05-01 07:42:23 -07002276 # * `10^2.%` indicates a metric contains a ratio, typically in the range
2277 # 0..1, that will be multiplied by 100 and displayed as a percentage
Bu Sun Kim65020912020-05-20 12:08:20 -07002278 # (so a metric value `0.03` means &quot;3 percent&quot;).
2279 &quot;monitoredResourceTypes&quot;: [ # Read-only. If present, then a time
2280 # series, which is identified partially by
2281 # a metric type and a MonitoredResourceDescriptor, that is associated
2282 # with this metric type can only be associated with one of the monitored
2283 # resource types listed here.
2284 &quot;A String&quot;,
Dan O'Mearadd494642020-05-01 07:42:23 -07002285 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07002286 &quot;launchStage&quot;: &quot;A String&quot;, # Optional. The launch stage of the metric definition.
2287 &quot;labels&quot;: [ # The set of labels that can be used to describe a specific
2288 # instance of this metric type. For example, the
2289 # `appengine.googleapis.com/http/server/response_latencies` metric
2290 # type has a label for the HTTP response code, `response_code`, so
2291 # you can look at latencies for successful responses or just
2292 # for responses that failed.
2293 { # A description of a label.
2294 &quot;key&quot;: &quot;A String&quot;, # The label key.
2295 &quot;description&quot;: &quot;A String&quot;, # A human-readable description for the label.
2296 &quot;valueType&quot;: &quot;A String&quot;, # The type of data that can be assigned to the label.
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -04002297 },
2298 ],
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -07002299 },
2300 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07002301 &quot;authentication&quot;: { # `Authentication` defines the authentication configuration for an API. # Auth configuration.
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -07002302 #
Bu Sun Kim65020912020-05-20 12:08:20 -07002303 # Example for an API targeted for external use:
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -07002304 #
Bu Sun Kim65020912020-05-20 12:08:20 -07002305 # name: calendar.googleapis.com
2306 # authentication:
2307 # providers:
2308 # - id: google_calendar_auth
2309 # jwks_uri: https://www.googleapis.com/oauth2/v1/certs
2310 # issuer: https://securetoken.google.com
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -07002311 # rules:
Bu Sun Kim65020912020-05-20 12:08:20 -07002312 # - selector: &quot;*&quot;
2313 # requirements:
2314 # provider_id: google_calendar_auth
2315 &quot;rules&quot;: [ # A list of authentication rules that apply to individual API methods.
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -07002316 #
Bu Sun Kim65020912020-05-20 12:08:20 -07002317 # **NOTE:** All service configuration rules follow &quot;last one wins&quot; order.
2318 { # Authentication rules for the service.
2319 #
2320 # By default, if a method has any authentication requirements, every request
2321 # must include a valid credential matching one of the requirements.
2322 # It&#x27;s an error to include more than one kind of credential in a single
2323 # request.
2324 #
2325 # If a method doesn&#x27;t have any auth requirements, request credentials will be
2326 # ignored.
2327 &quot;requirements&quot;: [ # Requirements for additional authentication providers.
2328 { # User-defined authentication requirements, including support for
2329 # [JSON Web Token
2330 # (JWT)](https://tools.ietf.org/html/draft-ietf-oauth-json-web-token-32).
2331 &quot;providerId&quot;: &quot;A String&quot;, # id from authentication provider.
2332 #
2333 # Example:
2334 #
2335 # provider_id: bookstore_auth
2336 &quot;audiences&quot;: &quot;A String&quot;, # NOTE: This will be deprecated soon, once AuthProvider.audiences is
2337 # implemented and accepted in all the runtime components.
2338 #
2339 # The list of JWT
2340 # [audiences](https://tools.ietf.org/html/draft-ietf-oauth-json-web-token-32#section-4.1.3).
2341 # that are allowed to access. A JWT containing any of these audiences will
2342 # be accepted. When this setting is absent, only JWTs with audience
2343 # &quot;https://Service_name/API_name&quot;
2344 # will be accepted. For example, if no audiences are in the setting,
2345 # LibraryService API will only accept JWTs with the following audience
2346 # &quot;https://library-example.googleapis.com/google.example.library.v1.LibraryService&quot;.
2347 #
2348 # Example:
2349 #
2350 # audiences: bookstore_android.apps.googleusercontent.com,
2351 # bookstore_web.apps.googleusercontent.com
2352 },
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -07002353 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07002354 &quot;selector&quot;: &quot;A String&quot;, # Selects the methods to which this rule applies.
Dan O'Mearadd494642020-05-01 07:42:23 -07002355 #
2356 # Refer to selector for syntax details.
Bu Sun Kim65020912020-05-20 12:08:20 -07002357 &quot;allowWithoutCredential&quot;: True or False, # If true, the service accepts API keys without any other credential.
2358 &quot;oauth&quot;: { # OAuth scopes are a way to define data and permissions on data. For example, # The requirements for OAuth credentials.
2359 # there are scopes defined for &quot;Read-only access to Google Calendar&quot; and
2360 # &quot;Access to Cloud Platform&quot;. Users can consent to a scope for an application,
2361 # giving it permission to access that data on their behalf.
2362 #
2363 # OAuth scope specifications should be fairly coarse grained; a user will need
2364 # to see and understand the text description of what your scope means.
2365 #
2366 # In most cases: use one or at most two OAuth scopes for an entire family of
2367 # products. If your product has multiple APIs, you should probably be sharing
2368 # the OAuth scope across all of those APIs.
2369 #
2370 # When you need finer grained OAuth consent screens: talk with your product
2371 # management about how developers will use them in practice.
2372 #
2373 # Please note that even though each of the canonical scopes is enough for a
2374 # request to be accepted and passed to the backend, a request can still fail
2375 # due to the backend requiring additional scopes or permissions.
2376 &quot;canonicalScopes&quot;: &quot;A String&quot;, # The list of publicly documented OAuth scopes that are allowed access. An
2377 # OAuth token containing any of these scopes will be accepted.
2378 #
2379 # Example:
2380 #
2381 # canonical_scopes: https://www.googleapis.com/auth/calendar,
2382 # https://www.googleapis.com/auth/calendar.read
2383 },
2384 },
2385 ],
2386 &quot;providers&quot;: [ # Defines a set of authentication providers that a service supports.
2387 { # Configuration for an authentication provider, including support for
2388 # [JSON Web Token
2389 # (JWT)](https://tools.ietf.org/html/draft-ietf-oauth-json-web-token-32).
2390 &quot;jwksUri&quot;: &quot;A String&quot;, # URL of the provider&#x27;s public key set to validate signature of the JWT. See
2391 # [OpenID
2392 # Discovery](https://openid.net/specs/openid-connect-discovery-1_0.html#ProviderMetadata).
2393 # Optional if the key set document:
2394 # - can be retrieved from
2395 # [OpenID
2396 # Discovery](https://openid.net/specs/openid-connect-discovery-1_0.html of
2397 # the issuer.
2398 # - can be inferred from the email domain of the issuer (e.g. a Google
2399 # service account).
2400 #
2401 # Example: https://www.googleapis.com/oauth2/v1/certs
2402 &quot;audiences&quot;: &quot;A String&quot;, # The list of JWT
2403 # [audiences](https://tools.ietf.org/html/draft-ietf-oauth-json-web-token-32#section-4.1.3).
2404 # that are allowed to access. A JWT containing any of these audiences will
2405 # be accepted. When this setting is absent, JWTs with audiences:
2406 # - &quot;https://[service.name]/[google.protobuf.Api.name]&quot;
2407 # - &quot;https://[service.name]/&quot;
2408 # will be accepted.
2409 # For example, if no audiences are in the setting, LibraryService API will
2410 # accept JWTs with the following audiences:
2411 # -
2412 # https://library-example.googleapis.com/google.example.library.v1.LibraryService
2413 # - https://library-example.googleapis.com/
2414 #
2415 # Example:
2416 #
2417 # audiences: bookstore_android.apps.googleusercontent.com,
2418 # bookstore_web.apps.googleusercontent.com
2419 &quot;authorizationUrl&quot;: &quot;A String&quot;, # Redirect URL if JWT token is required but not present or is expired.
2420 # Implement authorizationUrl of securityDefinitions in OpenAPI spec.
2421 &quot;issuer&quot;: &quot;A String&quot;, # Identifies the principal that issued the JWT. See
2422 # https://tools.ietf.org/html/draft-ietf-oauth-json-web-token-32#section-4.1.1
2423 # Usually a URL or an email address.
2424 #
2425 # Example: https://securetoken.google.com
2426 # Example: 1234567-compute@developer.gserviceaccount.com
2427 &quot;id&quot;: &quot;A String&quot;, # The unique identifier of the auth provider. It will be referred to by
2428 # `AuthRequirement.provider_id`.
2429 #
2430 # Example: &quot;bookstore_auth&quot;.
2431 &quot;jwtLocations&quot;: [ # Defines the locations to extract the JWT.
2432 #
2433 # JWT locations can be either from HTTP headers or URL query parameters.
2434 # The rule is that the first match wins. The checking order is: checking
2435 # all headers first, then URL query parameters.
2436 #
2437 # If not specified, default to use following 3 locations:
2438 # 1) Authorization: Bearer
2439 # 2) x-goog-iap-jwt-assertion
2440 # 3) access_token query parameter
2441 #
2442 # Default locations can be specified as followings:
2443 # jwt_locations:
2444 # - header: Authorization
2445 # value_prefix: &quot;Bearer &quot;
2446 # - header: x-goog-iap-jwt-assertion
2447 # - query: access_token
2448 { # Specifies a location to extract JWT from an API request.
2449 &quot;header&quot;: &quot;A String&quot;, # Specifies HTTP header name to extract JWT token.
2450 &quot;valuePrefix&quot;: &quot;A String&quot;, # The value prefix. The value format is &quot;value_prefix{token}&quot;
2451 # Only applies to &quot;in&quot; header type. Must be empty for &quot;in&quot; query type.
2452 # If not empty, the header value has to match (case sensitive) this prefix.
2453 # If not matched, JWT will not be extracted. If matched, JWT will be
2454 # extracted after the prefix is removed.
2455 #
2456 # For example, for &quot;Authorization: Bearer {JWT}&quot;,
2457 # value_prefix=&quot;Bearer &quot; with a space at the end.
2458 &quot;query&quot;: &quot;A String&quot;, # Specifies URL query parameter name to extract JWT token.
2459 },
2460 ],
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -07002461 },
2462 ],
2463 },
Bu Sun Kim65020912020-05-20 12:08:20 -07002464 &quot;control&quot;: { # Selects and configures the service controller used by the service. The # Configuration for the service control plane.
2465 # service controller handles features like abuse, quota, billing, logging,
2466 # monitoring, etc.
2467 &quot;environment&quot;: &quot;A String&quot;, # The service control environment to use. If empty, no control plane
2468 # feature (like quota and billing) will be enabled.
2469 },
2470 &quot;configVersion&quot;: 42, # The semantic version of the service configuration. The config version
2471 # affects the interpretation of the service configuration. For example,
2472 # certain features are enabled by default for certain config versions.
2473 #
2474 # The latest config version is `3`.
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -07002475 }</pre>
2476</div>
2477
2478<div class="method">
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002479 <code class="details" id="getIamPolicy">getIamPolicy(resource, body=None, x__xgafv=None)</code>
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -07002480 <pre>Gets the access control policy for a resource.
2481Returns an empty policy if the resource exists and does not have a policy
2482set.
2483
2484Args:
2485 resource: string, REQUIRED: The resource for which the policy is being requested.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -04002486See the operation documentation for the appropriate value for this field. (required)
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002487 body: object, The request body.
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -07002488 The object takes the form of:
2489
2490{ # Request message for `GetIamPolicy` method.
Bu Sun Kim65020912020-05-20 12:08:20 -07002491 &quot;options&quot;: { # Encapsulates settings provided to GetIamPolicy. # OPTIONAL: A `GetPolicyOptions` object for specifying options to
2492 # `GetIamPolicy`.
2493 &quot;requestedPolicyVersion&quot;: 42, # Optional. The policy format version to be returned.
Dan O'Mearadd494642020-05-01 07:42:23 -07002494 #
2495 # Valid values are 0, 1, and 3. Requests specifying an invalid value will be
2496 # rejected.
2497 #
2498 # Requests for policies with any conditional bindings must specify version 3.
2499 # Policies without any conditional bindings may specify any valid value or
2500 # leave the field unset.
Bu Sun Kim65020912020-05-20 12:08:20 -07002501 #
2502 # To learn which resources support conditions in their IAM policies, see the
2503 # [IAM
2504 # documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
Dan O'Mearadd494642020-05-01 07:42:23 -07002505 },
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -07002506 }
2507
2508 x__xgafv: string, V1 error format.
2509 Allowed values
2510 1 - v1 error format
2511 2 - v2 error format
2512
2513Returns:
2514 An object of the form:
2515
Dan O'Mearadd494642020-05-01 07:42:23 -07002516 { # An Identity and Access Management (IAM) policy, which specifies access
2517 # controls for Google Cloud resources.
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -07002518 #
2519 #
Dan O'Mearadd494642020-05-01 07:42:23 -07002520 # A `Policy` is a collection of `bindings`. A `binding` binds one or more
2521 # `members` to a single `role`. Members can be user accounts, service accounts,
2522 # Google groups, and domains (such as G Suite). A `role` is a named list of
2523 # permissions; each `role` can be an IAM predefined role or a user-created
2524 # custom role.
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -07002525 #
Bu Sun Kim65020912020-05-20 12:08:20 -07002526 # For some types of Google Cloud resources, a `binding` can also specify a
2527 # `condition`, which is a logical expression that allows access to a resource
2528 # only if the expression evaluates to `true`. A condition can add constraints
2529 # based on attributes of the request, the resource, or both. To learn which
2530 # resources support conditions in their IAM policies, see the
2531 # [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
Dan O'Mearadd494642020-05-01 07:42:23 -07002532 #
2533 # **JSON example:**
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -07002534 #
2535 # {
Bu Sun Kim65020912020-05-20 12:08:20 -07002536 # &quot;bindings&quot;: [
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -07002537 # {
Bu Sun Kim65020912020-05-20 12:08:20 -07002538 # &quot;role&quot;: &quot;roles/resourcemanager.organizationAdmin&quot;,
2539 # &quot;members&quot;: [
2540 # &quot;user:mike@example.com&quot;,
2541 # &quot;group:admins@example.com&quot;,
2542 # &quot;domain:google.com&quot;,
2543 # &quot;serviceAccount:my-project-id@appspot.gserviceaccount.com&quot;
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -07002544 # ]
2545 # },
2546 # {
Bu Sun Kim65020912020-05-20 12:08:20 -07002547 # &quot;role&quot;: &quot;roles/resourcemanager.organizationViewer&quot;,
2548 # &quot;members&quot;: [
2549 # &quot;user:eve@example.com&quot;
2550 # ],
2551 # &quot;condition&quot;: {
2552 # &quot;title&quot;: &quot;expirable access&quot;,
2553 # &quot;description&quot;: &quot;Does not grant access after Sep 2020&quot;,
2554 # &quot;expression&quot;: &quot;request.time &lt; timestamp(&#x27;2020-10-01T00:00:00.000Z&#x27;)&quot;,
Dan O'Mearadd494642020-05-01 07:42:23 -07002555 # }
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -07002556 # }
Dan O'Mearadd494642020-05-01 07:42:23 -07002557 # ],
Bu Sun Kim65020912020-05-20 12:08:20 -07002558 # &quot;etag&quot;: &quot;BwWWja0YfJA=&quot;,
2559 # &quot;version&quot;: 3
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -07002560 # }
2561 #
Dan O'Mearadd494642020-05-01 07:42:23 -07002562 # **YAML example:**
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002563 #
2564 # bindings:
2565 # - members:
2566 # - user:mike@example.com
2567 # - group:admins@example.com
2568 # - domain:google.com
Dan O'Mearadd494642020-05-01 07:42:23 -07002569 # - serviceAccount:my-project-id@appspot.gserviceaccount.com
2570 # role: roles/resourcemanager.organizationAdmin
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002571 # - members:
Dan O'Mearadd494642020-05-01 07:42:23 -07002572 # - user:eve@example.com
2573 # role: roles/resourcemanager.organizationViewer
2574 # condition:
2575 # title: expirable access
2576 # description: Does not grant access after Sep 2020
Bu Sun Kim65020912020-05-20 12:08:20 -07002577 # expression: request.time &lt; timestamp(&#x27;2020-10-01T00:00:00.000Z&#x27;)
Dan O'Mearadd494642020-05-01 07:42:23 -07002578 # - etag: BwWWja0YfJA=
2579 # - version: 3
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002580 #
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -07002581 # For a description of IAM and its features, see the
Dan O'Mearadd494642020-05-01 07:42:23 -07002582 # [IAM documentation](https://cloud.google.com/iam/docs/).
Bu Sun Kim65020912020-05-20 12:08:20 -07002583 &quot;etag&quot;: &quot;A String&quot;, # `etag` is used for optimistic concurrency control as a way to help
2584 # prevent simultaneous updates of a policy from overwriting each other.
2585 # It is strongly suggested that systems make use of the `etag` in the
2586 # read-modify-write cycle to perform policy updates in order to avoid race
2587 # conditions: An `etag` is returned in the response to `getIamPolicy`, and
2588 # systems are expected to put that etag in the request to `setIamPolicy` to
2589 # ensure that their change will be applied to the same version of the policy.
2590 #
2591 # **Important:** If you use IAM Conditions, you must include the `etag` field
2592 # whenever you call `setIamPolicy`. If you omit this field, then IAM allows
2593 # you to overwrite a version `3` policy with a version `1` policy, and all of
2594 # the conditions in the version `3` policy are lost.
2595 &quot;version&quot;: 42, # Specifies the format of the policy.
2596 #
2597 # Valid values are `0`, `1`, and `3`. Requests that specify an invalid value
2598 # are rejected.
2599 #
2600 # Any operation that affects conditional role bindings must specify version
2601 # `3`. This requirement applies to the following operations:
2602 #
2603 # * Getting a policy that includes a conditional role binding
2604 # * Adding a conditional role binding to a policy
2605 # * Changing a conditional role binding in a policy
2606 # * Removing any role binding, with or without a condition, from a policy
2607 # that includes conditions
2608 #
2609 # **Important:** If you use IAM Conditions, you must include the `etag` field
2610 # whenever you call `setIamPolicy`. If you omit this field, then IAM allows
2611 # you to overwrite a version `3` policy with a version `1` policy, and all of
2612 # the conditions in the version `3` policy are lost.
2613 #
2614 # If a policy does not include any conditions, operations on that policy may
2615 # specify any valid version or leave the field unset.
2616 #
2617 # To learn which resources support conditions in their IAM policies, see the
2618 # [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
2619 &quot;auditConfigs&quot;: [ # Specifies cloud audit logging configuration for this policy.
2620 { # Specifies the audit configuration for a service.
2621 # The configuration determines which permission types are logged, and what
2622 # identities, if any, are exempted from logging.
2623 # An AuditConfig must have one or more AuditLogConfigs.
2624 #
2625 # If there are AuditConfigs for both `allServices` and a specific service,
2626 # the union of the two AuditConfigs is used for that service: the log_types
2627 # specified in each AuditConfig are enabled, and the exempted_members in each
2628 # AuditLogConfig are exempted.
2629 #
2630 # Example Policy with multiple AuditConfigs:
2631 #
2632 # {
2633 # &quot;audit_configs&quot;: [
2634 # {
2635 # &quot;service&quot;: &quot;allServices&quot;
2636 # &quot;audit_log_configs&quot;: [
2637 # {
2638 # &quot;log_type&quot;: &quot;DATA_READ&quot;,
2639 # &quot;exempted_members&quot;: [
2640 # &quot;user:jose@example.com&quot;
2641 # ]
2642 # },
2643 # {
2644 # &quot;log_type&quot;: &quot;DATA_WRITE&quot;,
2645 # },
2646 # {
2647 # &quot;log_type&quot;: &quot;ADMIN_READ&quot;,
2648 # }
2649 # ]
2650 # },
2651 # {
2652 # &quot;service&quot;: &quot;sampleservice.googleapis.com&quot;
2653 # &quot;audit_log_configs&quot;: [
2654 # {
2655 # &quot;log_type&quot;: &quot;DATA_READ&quot;,
2656 # },
2657 # {
2658 # &quot;log_type&quot;: &quot;DATA_WRITE&quot;,
2659 # &quot;exempted_members&quot;: [
2660 # &quot;user:aliya@example.com&quot;
2661 # ]
2662 # }
2663 # ]
2664 # }
2665 # ]
2666 # }
2667 #
2668 # For sampleservice, this policy enables DATA_READ, DATA_WRITE and ADMIN_READ
2669 # logging. It also exempts jose@example.com from DATA_READ logging, and
2670 # aliya@example.com from DATA_WRITE logging.
2671 &quot;auditLogConfigs&quot;: [ # The configuration for logging of each type of permission.
2672 { # Provides the configuration for logging a type of permissions.
2673 # Example:
2674 #
2675 # {
2676 # &quot;audit_log_configs&quot;: [
2677 # {
2678 # &quot;log_type&quot;: &quot;DATA_READ&quot;,
2679 # &quot;exempted_members&quot;: [
2680 # &quot;user:jose@example.com&quot;
2681 # ]
2682 # },
2683 # {
2684 # &quot;log_type&quot;: &quot;DATA_WRITE&quot;,
2685 # }
2686 # ]
2687 # }
2688 #
2689 # This enables &#x27;DATA_READ&#x27; and &#x27;DATA_WRITE&#x27; logging, while exempting
2690 # jose@example.com from DATA_READ logging.
2691 &quot;exemptedMembers&quot;: [ # Specifies the identities that do not cause logging for this type of
2692 # permission.
2693 # Follows the same format of Binding.members.
2694 &quot;A String&quot;,
2695 ],
2696 &quot;logType&quot;: &quot;A String&quot;, # The log type that this config enables.
2697 },
2698 ],
2699 &quot;service&quot;: &quot;A String&quot;, # Specifies a service that will be enabled for audit logging.
2700 # For example, `storage.googleapis.com`, `cloudsql.googleapis.com`.
2701 # `allServices` is a special value that covers all services.
2702 },
2703 ],
2704 &quot;bindings&quot;: [ # Associates a list of `members` to a `role`. Optionally, may specify a
Dan O'Mearadd494642020-05-01 07:42:23 -07002705 # `condition` that determines how and when the `bindings` are applied. Each
2706 # of the `bindings` must contain at least one member.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002707 { # Associates `members` with a `role`.
Bu Sun Kim65020912020-05-20 12:08:20 -07002708 &quot;condition&quot;: { # Represents a textual expression in the Common Expression Language (CEL) # The condition that is associated with this binding.
2709 #
2710 # If the condition evaluates to `true`, then this binding applies to the
2711 # current request.
2712 #
2713 # If the condition evaluates to `false`, then this binding does not apply to
2714 # the current request. However, a different role binding might grant the same
2715 # role to one or more of the members in this binding.
2716 #
2717 # To learn which resources support conditions in their IAM policies, see the
2718 # [IAM
2719 # documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
Dan O'Mearadd494642020-05-01 07:42:23 -07002720 # syntax. CEL is a C-like expression language. The syntax and semantics of CEL
2721 # are documented at https://github.com/google/cel-spec.
2722 #
2723 # Example (Comparison):
2724 #
Bu Sun Kim65020912020-05-20 12:08:20 -07002725 # title: &quot;Summary size limit&quot;
2726 # description: &quot;Determines if a summary is less than 100 chars&quot;
2727 # expression: &quot;document.summary.size() &lt; 100&quot;
Dan O'Mearadd494642020-05-01 07:42:23 -07002728 #
2729 # Example (Equality):
2730 #
Bu Sun Kim65020912020-05-20 12:08:20 -07002731 # title: &quot;Requestor is owner&quot;
2732 # description: &quot;Determines if requestor is the document owner&quot;
2733 # expression: &quot;document.owner == request.auth.claims.email&quot;
Dan O'Mearadd494642020-05-01 07:42:23 -07002734 #
2735 # Example (Logic):
2736 #
Bu Sun Kim65020912020-05-20 12:08:20 -07002737 # title: &quot;Public documents&quot;
2738 # description: &quot;Determine whether the document should be publicly visible&quot;
2739 # expression: &quot;document.type != &#x27;private&#x27; &amp;&amp; document.type != &#x27;internal&#x27;&quot;
Dan O'Mearadd494642020-05-01 07:42:23 -07002740 #
2741 # Example (Data Manipulation):
2742 #
Bu Sun Kim65020912020-05-20 12:08:20 -07002743 # title: &quot;Notification string&quot;
2744 # description: &quot;Create a notification string with a timestamp.&quot;
2745 # expression: &quot;&#x27;New message received at &#x27; + string(document.create_time)&quot;
Dan O'Mearadd494642020-05-01 07:42:23 -07002746 #
2747 # The exact variables and functions that may be referenced within an expression
2748 # are determined by the service that evaluates it. See the service
2749 # documentation for additional information.
Bu Sun Kim65020912020-05-20 12:08:20 -07002750 &quot;title&quot;: &quot;A String&quot;, # Optional. Title for the expression, i.e. a short string describing
Dan O'Mearadd494642020-05-01 07:42:23 -07002751 # its purpose. This can be used e.g. in UIs which allow to enter the
2752 # expression.
Bu Sun Kim65020912020-05-20 12:08:20 -07002753 &quot;location&quot;: &quot;A String&quot;, # Optional. String indicating the location of the expression for error
2754 # reporting, e.g. a file name and a position in the file.
2755 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of the expression. This is a longer text which
2756 # describes the expression, e.g. when hovered over it in a UI.
2757 &quot;expression&quot;: &quot;A String&quot;, # Textual representation of an expression in Common Expression Language
2758 # syntax.
Dan O'Mearadd494642020-05-01 07:42:23 -07002759 },
Bu Sun Kim65020912020-05-20 12:08:20 -07002760 &quot;members&quot;: [ # Specifies the identities requesting access for a Cloud Platform resource.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002761 # `members` can have the following values:
2762 #
2763 # * `allUsers`: A special identifier that represents anyone who is
2764 # on the internet; with or without a Google account.
2765 #
2766 # * `allAuthenticatedUsers`: A special identifier that represents anyone
2767 # who is authenticated with a Google account or a service account.
2768 #
2769 # * `user:{emailid}`: An email address that represents a specific Google
Dan O'Mearadd494642020-05-01 07:42:23 -07002770 # account. For example, `alice@example.com` .
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002771 #
2772 #
2773 # * `serviceAccount:{emailid}`: An email address that represents a service
2774 # account. For example, `my-other-app@appspot.gserviceaccount.com`.
2775 #
2776 # * `group:{emailid}`: An email address that represents a Google group.
2777 # For example, `admins@example.com`.
2778 #
Dan O'Mearadd494642020-05-01 07:42:23 -07002779 # * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus unique
2780 # identifier) representing a user that has been recently deleted. For
2781 # example, `alice@example.com?uid=123456789012345678901`. If the user is
2782 # recovered, this value reverts to `user:{emailid}` and the recovered user
2783 # retains the role in the binding.
2784 #
2785 # * `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus
2786 # unique identifier) representing a service account that has been recently
2787 # deleted. For example,
2788 # `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`.
2789 # If the service account is undeleted, this value reverts to
2790 # `serviceAccount:{emailid}` and the undeleted service account retains the
2791 # role in the binding.
2792 #
2793 # * `deleted:group:{emailid}?uid={uniqueid}`: An email address (plus unique
2794 # identifier) representing a Google group that has been recently
2795 # deleted. For example, `admins@example.com?uid=123456789012345678901`. If
2796 # the group is recovered, this value reverts to `group:{emailid}` and the
2797 # recovered group retains the role in the binding.
2798 #
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002799 #
2800 # * `domain:{domain}`: The G Suite domain (primary) that represents all the
2801 # users of that domain. For example, `google.com` or `example.com`.
2802 #
Bu Sun Kim65020912020-05-20 12:08:20 -07002803 &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002804 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07002805 &quot;role&quot;: &quot;A String&quot;, # Role that is assigned to `members`.
2806 # For example, `roles/viewer`, `roles/editor`, or `roles/owner`.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002807 },
2808 ],
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -07002809 }</pre>
2810</div>
2811
2812<div class="method">
Bu Sun Kim65020912020-05-20 12:08:20 -07002813 <code class="details" id="list">list(consumerId=None, pageToken=None, pageSize=None, producerProjectId=None, x__xgafv=None)</code>
Jon Wayne Parrott692617a2017-01-06 09:58:29 -08002814 <pre>Lists managed services.
2815
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -04002816Returns all public services. For authenticated users, also returns all
Bu Sun Kim65020912020-05-20 12:08:20 -07002817services the calling user has &quot;servicemanagement.services.get&quot; permission
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -04002818for.
Jon Wayne Parrott692617a2017-01-06 09:58:29 -08002819
2820**BETA:** If the caller specifies the `consumer_id`, it returns only the
2821services enabled on the consumer. The `consumer_id` must have the format
Bu Sun Kim65020912020-05-20 12:08:20 -07002822of &quot;project:{PROJECT-ID}&quot;.
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -07002823
2824Args:
Jon Wayne Parrott692617a2017-01-06 09:58:29 -08002825 consumerId: string, Include services consumed by the specified consumer.
2826
2827The Google Service Management implementation accepts the following
2828forms:
Dan O'Mearadd494642020-05-01 07:42:23 -07002829- project:&lt;project_id&gt;
Bu Sun Kim65020912020-05-20 12:08:20 -07002830 pageToken: string, Token identifying which result to start with; returned by a previous list
2831call.
2832 pageSize: integer, The max number of items to include in the response list. Page size is 50
2833if not specified. Maximum value is 100.
2834 producerProjectId: string, Include services produced by the specified project.
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -07002835 x__xgafv: string, V1 error format.
2836 Allowed values
2837 1 - v1 error format
2838 2 - v2 error format
2839
2840Returns:
2841 An object of the form:
2842
2843 { # Response message for `ListServices` method.
Bu Sun Kim65020912020-05-20 12:08:20 -07002844 &quot;services&quot;: [ # The returned services will only have the name field set.
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -07002845 { # The full representation of a Service that is managed by
2846 # Google Service Management.
Bu Sun Kim65020912020-05-20 12:08:20 -07002847 &quot;producerProjectId&quot;: &quot;A String&quot;, # ID of the project that produces and owns this service.
2848 &quot;serviceName&quot;: &quot;A String&quot;, # The name of the service. See the [overview](/service-management/overview)
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -07002849 # for naming requirements.
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -07002850 },
2851 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07002852 &quot;nextPageToken&quot;: &quot;A String&quot;, # Token that can be passed to `ListServices` to resume a paginated query.
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -07002853 }</pre>
2854</div>
2855
2856<div class="method">
2857 <code class="details" id="list_next">list_next(previous_request, previous_response)</code>
2858 <pre>Retrieves the next page of results.
2859
2860Args:
2861 previous_request: The request for the previous page. (required)
2862 previous_response: The response from the request for the previous page. (required)
2863
2864Returns:
Bu Sun Kim65020912020-05-20 12:08:20 -07002865 A request object that you can call &#x27;execute()&#x27; on to request the next
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -07002866 page. Returns None if there are no more items in the collection.
2867 </pre>
2868</div>
2869
2870<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -07002871 <code class="details" id="setIamPolicy">setIamPolicy(resource, body=None, x__xgafv=None)</code>
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -07002872 <pre>Sets the access control policy on the specified resource. Replaces any
2873existing policy.
2874
Bu Sun Kim65020912020-05-20 12:08:20 -07002875Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors.
Dan O'Mearadd494642020-05-01 07:42:23 -07002876
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -07002877Args:
2878 resource: string, REQUIRED: The resource for which the policy is being specified.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -04002879See the operation documentation for the appropriate value for this field. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -07002880 body: object, The request body.
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -07002881 The object takes the form of:
2882
2883{ # Request message for `SetIamPolicy` method.
Bu Sun Kim65020912020-05-20 12:08:20 -07002884 &quot;updateMask&quot;: &quot;A String&quot;, # OPTIONAL: A FieldMask specifying which fields of the policy to modify. Only
2885 # the fields in the mask will be modified. If no mask is provided, the
2886 # following default mask is used:
2887 #
2888 # `paths: &quot;bindings, etag&quot;`
2889 &quot;policy&quot;: { # An Identity and Access Management (IAM) policy, which specifies access # REQUIRED: The complete policy to be applied to the `resource`. The size of
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -07002890 # the policy is limited to a few 10s of KB. An empty policy is a
2891 # valid policy but certain Cloud Platform services (such as Projects)
2892 # might reject them.
Dan O'Mearadd494642020-05-01 07:42:23 -07002893 # controls for Google Cloud resources.
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -07002894 #
2895 #
Dan O'Mearadd494642020-05-01 07:42:23 -07002896 # A `Policy` is a collection of `bindings`. A `binding` binds one or more
2897 # `members` to a single `role`. Members can be user accounts, service accounts,
2898 # Google groups, and domains (such as G Suite). A `role` is a named list of
2899 # permissions; each `role` can be an IAM predefined role or a user-created
2900 # custom role.
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -07002901 #
Bu Sun Kim65020912020-05-20 12:08:20 -07002902 # For some types of Google Cloud resources, a `binding` can also specify a
2903 # `condition`, which is a logical expression that allows access to a resource
2904 # only if the expression evaluates to `true`. A condition can add constraints
2905 # based on attributes of the request, the resource, or both. To learn which
2906 # resources support conditions in their IAM policies, see the
2907 # [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
Dan O'Mearadd494642020-05-01 07:42:23 -07002908 #
2909 # **JSON example:**
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -07002910 #
2911 # {
Bu Sun Kim65020912020-05-20 12:08:20 -07002912 # &quot;bindings&quot;: [
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -07002913 # {
Bu Sun Kim65020912020-05-20 12:08:20 -07002914 # &quot;role&quot;: &quot;roles/resourcemanager.organizationAdmin&quot;,
2915 # &quot;members&quot;: [
2916 # &quot;user:mike@example.com&quot;,
2917 # &quot;group:admins@example.com&quot;,
2918 # &quot;domain:google.com&quot;,
2919 # &quot;serviceAccount:my-project-id@appspot.gserviceaccount.com&quot;
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -07002920 # ]
2921 # },
2922 # {
Bu Sun Kim65020912020-05-20 12:08:20 -07002923 # &quot;role&quot;: &quot;roles/resourcemanager.organizationViewer&quot;,
2924 # &quot;members&quot;: [
2925 # &quot;user:eve@example.com&quot;
2926 # ],
2927 # &quot;condition&quot;: {
2928 # &quot;title&quot;: &quot;expirable access&quot;,
2929 # &quot;description&quot;: &quot;Does not grant access after Sep 2020&quot;,
2930 # &quot;expression&quot;: &quot;request.time &lt; timestamp(&#x27;2020-10-01T00:00:00.000Z&#x27;)&quot;,
Dan O'Mearadd494642020-05-01 07:42:23 -07002931 # }
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -07002932 # }
Dan O'Mearadd494642020-05-01 07:42:23 -07002933 # ],
Bu Sun Kim65020912020-05-20 12:08:20 -07002934 # &quot;etag&quot;: &quot;BwWWja0YfJA=&quot;,
2935 # &quot;version&quot;: 3
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -07002936 # }
2937 #
Dan O'Mearadd494642020-05-01 07:42:23 -07002938 # **YAML example:**
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002939 #
2940 # bindings:
2941 # - members:
2942 # - user:mike@example.com
2943 # - group:admins@example.com
2944 # - domain:google.com
Dan O'Mearadd494642020-05-01 07:42:23 -07002945 # - serviceAccount:my-project-id@appspot.gserviceaccount.com
2946 # role: roles/resourcemanager.organizationAdmin
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002947 # - members:
Dan O'Mearadd494642020-05-01 07:42:23 -07002948 # - user:eve@example.com
2949 # role: roles/resourcemanager.organizationViewer
2950 # condition:
2951 # title: expirable access
2952 # description: Does not grant access after Sep 2020
Bu Sun Kim65020912020-05-20 12:08:20 -07002953 # expression: request.time &lt; timestamp(&#x27;2020-10-01T00:00:00.000Z&#x27;)
Dan O'Mearadd494642020-05-01 07:42:23 -07002954 # - etag: BwWWja0YfJA=
2955 # - version: 3
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002956 #
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -07002957 # For a description of IAM and its features, see the
Dan O'Mearadd494642020-05-01 07:42:23 -07002958 # [IAM documentation](https://cloud.google.com/iam/docs/).
Bu Sun Kim65020912020-05-20 12:08:20 -07002959 &quot;etag&quot;: &quot;A String&quot;, # `etag` is used for optimistic concurrency control as a way to help
2960 # prevent simultaneous updates of a policy from overwriting each other.
2961 # It is strongly suggested that systems make use of the `etag` in the
2962 # read-modify-write cycle to perform policy updates in order to avoid race
2963 # conditions: An `etag` is returned in the response to `getIamPolicy`, and
2964 # systems are expected to put that etag in the request to `setIamPolicy` to
2965 # ensure that their change will be applied to the same version of the policy.
2966 #
2967 # **Important:** If you use IAM Conditions, you must include the `etag` field
2968 # whenever you call `setIamPolicy`. If you omit this field, then IAM allows
2969 # you to overwrite a version `3` policy with a version `1` policy, and all of
2970 # the conditions in the version `3` policy are lost.
2971 &quot;version&quot;: 42, # Specifies the format of the policy.
2972 #
2973 # Valid values are `0`, `1`, and `3`. Requests that specify an invalid value
2974 # are rejected.
2975 #
2976 # Any operation that affects conditional role bindings must specify version
2977 # `3`. This requirement applies to the following operations:
2978 #
2979 # * Getting a policy that includes a conditional role binding
2980 # * Adding a conditional role binding to a policy
2981 # * Changing a conditional role binding in a policy
2982 # * Removing any role binding, with or without a condition, from a policy
2983 # that includes conditions
2984 #
2985 # **Important:** If you use IAM Conditions, you must include the `etag` field
2986 # whenever you call `setIamPolicy`. If you omit this field, then IAM allows
2987 # you to overwrite a version `3` policy with a version `1` policy, and all of
2988 # the conditions in the version `3` policy are lost.
2989 #
2990 # If a policy does not include any conditions, operations on that policy may
2991 # specify any valid version or leave the field unset.
2992 #
2993 # To learn which resources support conditions in their IAM policies, see the
2994 # [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
2995 &quot;auditConfigs&quot;: [ # Specifies cloud audit logging configuration for this policy.
2996 { # Specifies the audit configuration for a service.
2997 # The configuration determines which permission types are logged, and what
2998 # identities, if any, are exempted from logging.
2999 # An AuditConfig must have one or more AuditLogConfigs.
3000 #
3001 # If there are AuditConfigs for both `allServices` and a specific service,
3002 # the union of the two AuditConfigs is used for that service: the log_types
3003 # specified in each AuditConfig are enabled, and the exempted_members in each
3004 # AuditLogConfig are exempted.
3005 #
3006 # Example Policy with multiple AuditConfigs:
3007 #
3008 # {
3009 # &quot;audit_configs&quot;: [
3010 # {
3011 # &quot;service&quot;: &quot;allServices&quot;
3012 # &quot;audit_log_configs&quot;: [
3013 # {
3014 # &quot;log_type&quot;: &quot;DATA_READ&quot;,
3015 # &quot;exempted_members&quot;: [
3016 # &quot;user:jose@example.com&quot;
3017 # ]
3018 # },
3019 # {
3020 # &quot;log_type&quot;: &quot;DATA_WRITE&quot;,
3021 # },
3022 # {
3023 # &quot;log_type&quot;: &quot;ADMIN_READ&quot;,
3024 # }
3025 # ]
3026 # },
3027 # {
3028 # &quot;service&quot;: &quot;sampleservice.googleapis.com&quot;
3029 # &quot;audit_log_configs&quot;: [
3030 # {
3031 # &quot;log_type&quot;: &quot;DATA_READ&quot;,
3032 # },
3033 # {
3034 # &quot;log_type&quot;: &quot;DATA_WRITE&quot;,
3035 # &quot;exempted_members&quot;: [
3036 # &quot;user:aliya@example.com&quot;
3037 # ]
3038 # }
3039 # ]
3040 # }
3041 # ]
3042 # }
3043 #
3044 # For sampleservice, this policy enables DATA_READ, DATA_WRITE and ADMIN_READ
3045 # logging. It also exempts jose@example.com from DATA_READ logging, and
3046 # aliya@example.com from DATA_WRITE logging.
3047 &quot;auditLogConfigs&quot;: [ # The configuration for logging of each type of permission.
3048 { # Provides the configuration for logging a type of permissions.
3049 # Example:
3050 #
3051 # {
3052 # &quot;audit_log_configs&quot;: [
3053 # {
3054 # &quot;log_type&quot;: &quot;DATA_READ&quot;,
3055 # &quot;exempted_members&quot;: [
3056 # &quot;user:jose@example.com&quot;
3057 # ]
3058 # },
3059 # {
3060 # &quot;log_type&quot;: &quot;DATA_WRITE&quot;,
3061 # }
3062 # ]
3063 # }
3064 #
3065 # This enables &#x27;DATA_READ&#x27; and &#x27;DATA_WRITE&#x27; logging, while exempting
3066 # jose@example.com from DATA_READ logging.
3067 &quot;exemptedMembers&quot;: [ # Specifies the identities that do not cause logging for this type of
3068 # permission.
3069 # Follows the same format of Binding.members.
3070 &quot;A String&quot;,
3071 ],
3072 &quot;logType&quot;: &quot;A String&quot;, # The log type that this config enables.
3073 },
3074 ],
3075 &quot;service&quot;: &quot;A String&quot;, # Specifies a service that will be enabled for audit logging.
3076 # For example, `storage.googleapis.com`, `cloudsql.googleapis.com`.
3077 # `allServices` is a special value that covers all services.
3078 },
3079 ],
3080 &quot;bindings&quot;: [ # Associates a list of `members` to a `role`. Optionally, may specify a
Dan O'Mearadd494642020-05-01 07:42:23 -07003081 # `condition` that determines how and when the `bindings` are applied. Each
3082 # of the `bindings` must contain at least one member.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003083 { # Associates `members` with a `role`.
Bu Sun Kim65020912020-05-20 12:08:20 -07003084 &quot;condition&quot;: { # Represents a textual expression in the Common Expression Language (CEL) # The condition that is associated with this binding.
3085 #
3086 # If the condition evaluates to `true`, then this binding applies to the
3087 # current request.
3088 #
3089 # If the condition evaluates to `false`, then this binding does not apply to
3090 # the current request. However, a different role binding might grant the same
3091 # role to one or more of the members in this binding.
3092 #
3093 # To learn which resources support conditions in their IAM policies, see the
3094 # [IAM
3095 # documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
Dan O'Mearadd494642020-05-01 07:42:23 -07003096 # syntax. CEL is a C-like expression language. The syntax and semantics of CEL
3097 # are documented at https://github.com/google/cel-spec.
3098 #
3099 # Example (Comparison):
3100 #
Bu Sun Kim65020912020-05-20 12:08:20 -07003101 # title: &quot;Summary size limit&quot;
3102 # description: &quot;Determines if a summary is less than 100 chars&quot;
3103 # expression: &quot;document.summary.size() &lt; 100&quot;
Dan O'Mearadd494642020-05-01 07:42:23 -07003104 #
3105 # Example (Equality):
3106 #
Bu Sun Kim65020912020-05-20 12:08:20 -07003107 # title: &quot;Requestor is owner&quot;
3108 # description: &quot;Determines if requestor is the document owner&quot;
3109 # expression: &quot;document.owner == request.auth.claims.email&quot;
Dan O'Mearadd494642020-05-01 07:42:23 -07003110 #
3111 # Example (Logic):
3112 #
Bu Sun Kim65020912020-05-20 12:08:20 -07003113 # title: &quot;Public documents&quot;
3114 # description: &quot;Determine whether the document should be publicly visible&quot;
3115 # expression: &quot;document.type != &#x27;private&#x27; &amp;&amp; document.type != &#x27;internal&#x27;&quot;
Dan O'Mearadd494642020-05-01 07:42:23 -07003116 #
3117 # Example (Data Manipulation):
3118 #
Bu Sun Kim65020912020-05-20 12:08:20 -07003119 # title: &quot;Notification string&quot;
3120 # description: &quot;Create a notification string with a timestamp.&quot;
3121 # expression: &quot;&#x27;New message received at &#x27; + string(document.create_time)&quot;
Dan O'Mearadd494642020-05-01 07:42:23 -07003122 #
3123 # The exact variables and functions that may be referenced within an expression
3124 # are determined by the service that evaluates it. See the service
3125 # documentation for additional information.
Bu Sun Kim65020912020-05-20 12:08:20 -07003126 &quot;title&quot;: &quot;A String&quot;, # Optional. Title for the expression, i.e. a short string describing
Dan O'Mearadd494642020-05-01 07:42:23 -07003127 # its purpose. This can be used e.g. in UIs which allow to enter the
3128 # expression.
Bu Sun Kim65020912020-05-20 12:08:20 -07003129 &quot;location&quot;: &quot;A String&quot;, # Optional. String indicating the location of the expression for error
3130 # reporting, e.g. a file name and a position in the file.
3131 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of the expression. This is a longer text which
3132 # describes the expression, e.g. when hovered over it in a UI.
3133 &quot;expression&quot;: &quot;A String&quot;, # Textual representation of an expression in Common Expression Language
3134 # syntax.
Dan O'Mearadd494642020-05-01 07:42:23 -07003135 },
Bu Sun Kim65020912020-05-20 12:08:20 -07003136 &quot;members&quot;: [ # Specifies the identities requesting access for a Cloud Platform resource.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003137 # `members` can have the following values:
3138 #
3139 # * `allUsers`: A special identifier that represents anyone who is
3140 # on the internet; with or without a Google account.
3141 #
3142 # * `allAuthenticatedUsers`: A special identifier that represents anyone
3143 # who is authenticated with a Google account or a service account.
3144 #
3145 # * `user:{emailid}`: An email address that represents a specific Google
Dan O'Mearadd494642020-05-01 07:42:23 -07003146 # account. For example, `alice@example.com` .
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003147 #
3148 #
3149 # * `serviceAccount:{emailid}`: An email address that represents a service
3150 # account. For example, `my-other-app@appspot.gserviceaccount.com`.
3151 #
3152 # * `group:{emailid}`: An email address that represents a Google group.
3153 # For example, `admins@example.com`.
3154 #
Dan O'Mearadd494642020-05-01 07:42:23 -07003155 # * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus unique
3156 # identifier) representing a user that has been recently deleted. For
3157 # example, `alice@example.com?uid=123456789012345678901`. If the user is
3158 # recovered, this value reverts to `user:{emailid}` and the recovered user
3159 # retains the role in the binding.
3160 #
3161 # * `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus
3162 # unique identifier) representing a service account that has been recently
3163 # deleted. For example,
3164 # `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`.
3165 # If the service account is undeleted, this value reverts to
3166 # `serviceAccount:{emailid}` and the undeleted service account retains the
3167 # role in the binding.
3168 #
3169 # * `deleted:group:{emailid}?uid={uniqueid}`: An email address (plus unique
3170 # identifier) representing a Google group that has been recently
3171 # deleted. For example, `admins@example.com?uid=123456789012345678901`. If
3172 # the group is recovered, this value reverts to `group:{emailid}` and the
3173 # recovered group retains the role in the binding.
3174 #
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003175 #
3176 # * `domain:{domain}`: The G Suite domain (primary) that represents all the
3177 # users of that domain. For example, `google.com` or `example.com`.
3178 #
Bu Sun Kim65020912020-05-20 12:08:20 -07003179 &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003180 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07003181 &quot;role&quot;: &quot;A String&quot;, # Role that is assigned to `members`.
3182 # For example, `roles/viewer`, `roles/editor`, or `roles/owner`.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003183 },
3184 ],
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -07003185 },
3186 }
3187
3188 x__xgafv: string, V1 error format.
3189 Allowed values
3190 1 - v1 error format
3191 2 - v2 error format
3192
3193Returns:
3194 An object of the form:
3195
Dan O'Mearadd494642020-05-01 07:42:23 -07003196 { # An Identity and Access Management (IAM) policy, which specifies access
3197 # controls for Google Cloud resources.
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -07003198 #
3199 #
Dan O'Mearadd494642020-05-01 07:42:23 -07003200 # A `Policy` is a collection of `bindings`. A `binding` binds one or more
3201 # `members` to a single `role`. Members can be user accounts, service accounts,
3202 # Google groups, and domains (such as G Suite). A `role` is a named list of
3203 # permissions; each `role` can be an IAM predefined role or a user-created
3204 # custom role.
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -07003205 #
Bu Sun Kim65020912020-05-20 12:08:20 -07003206 # For some types of Google Cloud resources, a `binding` can also specify a
3207 # `condition`, which is a logical expression that allows access to a resource
3208 # only if the expression evaluates to `true`. A condition can add constraints
3209 # based on attributes of the request, the resource, or both. To learn which
3210 # resources support conditions in their IAM policies, see the
3211 # [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
Dan O'Mearadd494642020-05-01 07:42:23 -07003212 #
3213 # **JSON example:**
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -07003214 #
3215 # {
Bu Sun Kim65020912020-05-20 12:08:20 -07003216 # &quot;bindings&quot;: [
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -07003217 # {
Bu Sun Kim65020912020-05-20 12:08:20 -07003218 # &quot;role&quot;: &quot;roles/resourcemanager.organizationAdmin&quot;,
3219 # &quot;members&quot;: [
3220 # &quot;user:mike@example.com&quot;,
3221 # &quot;group:admins@example.com&quot;,
3222 # &quot;domain:google.com&quot;,
3223 # &quot;serviceAccount:my-project-id@appspot.gserviceaccount.com&quot;
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -07003224 # ]
3225 # },
3226 # {
Bu Sun Kim65020912020-05-20 12:08:20 -07003227 # &quot;role&quot;: &quot;roles/resourcemanager.organizationViewer&quot;,
3228 # &quot;members&quot;: [
3229 # &quot;user:eve@example.com&quot;
3230 # ],
3231 # &quot;condition&quot;: {
3232 # &quot;title&quot;: &quot;expirable access&quot;,
3233 # &quot;description&quot;: &quot;Does not grant access after Sep 2020&quot;,
3234 # &quot;expression&quot;: &quot;request.time &lt; timestamp(&#x27;2020-10-01T00:00:00.000Z&#x27;)&quot;,
Dan O'Mearadd494642020-05-01 07:42:23 -07003235 # }
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -07003236 # }
Dan O'Mearadd494642020-05-01 07:42:23 -07003237 # ],
Bu Sun Kim65020912020-05-20 12:08:20 -07003238 # &quot;etag&quot;: &quot;BwWWja0YfJA=&quot;,
3239 # &quot;version&quot;: 3
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -07003240 # }
3241 #
Dan O'Mearadd494642020-05-01 07:42:23 -07003242 # **YAML example:**
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003243 #
3244 # bindings:
3245 # - members:
3246 # - user:mike@example.com
3247 # - group:admins@example.com
3248 # - domain:google.com
Dan O'Mearadd494642020-05-01 07:42:23 -07003249 # - serviceAccount:my-project-id@appspot.gserviceaccount.com
3250 # role: roles/resourcemanager.organizationAdmin
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003251 # - members:
Dan O'Mearadd494642020-05-01 07:42:23 -07003252 # - user:eve@example.com
3253 # role: roles/resourcemanager.organizationViewer
3254 # condition:
3255 # title: expirable access
3256 # description: Does not grant access after Sep 2020
Bu Sun Kim65020912020-05-20 12:08:20 -07003257 # expression: request.time &lt; timestamp(&#x27;2020-10-01T00:00:00.000Z&#x27;)
Dan O'Mearadd494642020-05-01 07:42:23 -07003258 # - etag: BwWWja0YfJA=
3259 # - version: 3
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003260 #
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -07003261 # For a description of IAM and its features, see the
Dan O'Mearadd494642020-05-01 07:42:23 -07003262 # [IAM documentation](https://cloud.google.com/iam/docs/).
Bu Sun Kim65020912020-05-20 12:08:20 -07003263 &quot;etag&quot;: &quot;A String&quot;, # `etag` is used for optimistic concurrency control as a way to help
3264 # prevent simultaneous updates of a policy from overwriting each other.
3265 # It is strongly suggested that systems make use of the `etag` in the
3266 # read-modify-write cycle to perform policy updates in order to avoid race
3267 # conditions: An `etag` is returned in the response to `getIamPolicy`, and
3268 # systems are expected to put that etag in the request to `setIamPolicy` to
3269 # ensure that their change will be applied to the same version of the policy.
3270 #
3271 # **Important:** If you use IAM Conditions, you must include the `etag` field
3272 # whenever you call `setIamPolicy`. If you omit this field, then IAM allows
3273 # you to overwrite a version `3` policy with a version `1` policy, and all of
3274 # the conditions in the version `3` policy are lost.
3275 &quot;version&quot;: 42, # Specifies the format of the policy.
3276 #
3277 # Valid values are `0`, `1`, and `3`. Requests that specify an invalid value
3278 # are rejected.
3279 #
3280 # Any operation that affects conditional role bindings must specify version
3281 # `3`. This requirement applies to the following operations:
3282 #
3283 # * Getting a policy that includes a conditional role binding
3284 # * Adding a conditional role binding to a policy
3285 # * Changing a conditional role binding in a policy
3286 # * Removing any role binding, with or without a condition, from a policy
3287 # that includes conditions
3288 #
3289 # **Important:** If you use IAM Conditions, you must include the `etag` field
3290 # whenever you call `setIamPolicy`. If you omit this field, then IAM allows
3291 # you to overwrite a version `3` policy with a version `1` policy, and all of
3292 # the conditions in the version `3` policy are lost.
3293 #
3294 # If a policy does not include any conditions, operations on that policy may
3295 # specify any valid version or leave the field unset.
3296 #
3297 # To learn which resources support conditions in their IAM policies, see the
3298 # [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
3299 &quot;auditConfigs&quot;: [ # Specifies cloud audit logging configuration for this policy.
3300 { # Specifies the audit configuration for a service.
3301 # The configuration determines which permission types are logged, and what
3302 # identities, if any, are exempted from logging.
3303 # An AuditConfig must have one or more AuditLogConfigs.
3304 #
3305 # If there are AuditConfigs for both `allServices` and a specific service,
3306 # the union of the two AuditConfigs is used for that service: the log_types
3307 # specified in each AuditConfig are enabled, and the exempted_members in each
3308 # AuditLogConfig are exempted.
3309 #
3310 # Example Policy with multiple AuditConfigs:
3311 #
3312 # {
3313 # &quot;audit_configs&quot;: [
3314 # {
3315 # &quot;service&quot;: &quot;allServices&quot;
3316 # &quot;audit_log_configs&quot;: [
3317 # {
3318 # &quot;log_type&quot;: &quot;DATA_READ&quot;,
3319 # &quot;exempted_members&quot;: [
3320 # &quot;user:jose@example.com&quot;
3321 # ]
3322 # },
3323 # {
3324 # &quot;log_type&quot;: &quot;DATA_WRITE&quot;,
3325 # },
3326 # {
3327 # &quot;log_type&quot;: &quot;ADMIN_READ&quot;,
3328 # }
3329 # ]
3330 # },
3331 # {
3332 # &quot;service&quot;: &quot;sampleservice.googleapis.com&quot;
3333 # &quot;audit_log_configs&quot;: [
3334 # {
3335 # &quot;log_type&quot;: &quot;DATA_READ&quot;,
3336 # },
3337 # {
3338 # &quot;log_type&quot;: &quot;DATA_WRITE&quot;,
3339 # &quot;exempted_members&quot;: [
3340 # &quot;user:aliya@example.com&quot;
3341 # ]
3342 # }
3343 # ]
3344 # }
3345 # ]
3346 # }
3347 #
3348 # For sampleservice, this policy enables DATA_READ, DATA_WRITE and ADMIN_READ
3349 # logging. It also exempts jose@example.com from DATA_READ logging, and
3350 # aliya@example.com from DATA_WRITE logging.
3351 &quot;auditLogConfigs&quot;: [ # The configuration for logging of each type of permission.
3352 { # Provides the configuration for logging a type of permissions.
3353 # Example:
3354 #
3355 # {
3356 # &quot;audit_log_configs&quot;: [
3357 # {
3358 # &quot;log_type&quot;: &quot;DATA_READ&quot;,
3359 # &quot;exempted_members&quot;: [
3360 # &quot;user:jose@example.com&quot;
3361 # ]
3362 # },
3363 # {
3364 # &quot;log_type&quot;: &quot;DATA_WRITE&quot;,
3365 # }
3366 # ]
3367 # }
3368 #
3369 # This enables &#x27;DATA_READ&#x27; and &#x27;DATA_WRITE&#x27; logging, while exempting
3370 # jose@example.com from DATA_READ logging.
3371 &quot;exemptedMembers&quot;: [ # Specifies the identities that do not cause logging for this type of
3372 # permission.
3373 # Follows the same format of Binding.members.
3374 &quot;A String&quot;,
3375 ],
3376 &quot;logType&quot;: &quot;A String&quot;, # The log type that this config enables.
3377 },
3378 ],
3379 &quot;service&quot;: &quot;A String&quot;, # Specifies a service that will be enabled for audit logging.
3380 # For example, `storage.googleapis.com`, `cloudsql.googleapis.com`.
3381 # `allServices` is a special value that covers all services.
3382 },
3383 ],
3384 &quot;bindings&quot;: [ # Associates a list of `members` to a `role`. Optionally, may specify a
Dan O'Mearadd494642020-05-01 07:42:23 -07003385 # `condition` that determines how and when the `bindings` are applied. Each
3386 # of the `bindings` must contain at least one member.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003387 { # Associates `members` with a `role`.
Bu Sun Kim65020912020-05-20 12:08:20 -07003388 &quot;condition&quot;: { # Represents a textual expression in the Common Expression Language (CEL) # The condition that is associated with this binding.
3389 #
3390 # If the condition evaluates to `true`, then this binding applies to the
3391 # current request.
3392 #
3393 # If the condition evaluates to `false`, then this binding does not apply to
3394 # the current request. However, a different role binding might grant the same
3395 # role to one or more of the members in this binding.
3396 #
3397 # To learn which resources support conditions in their IAM policies, see the
3398 # [IAM
3399 # documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
Dan O'Mearadd494642020-05-01 07:42:23 -07003400 # syntax. CEL is a C-like expression language. The syntax and semantics of CEL
3401 # are documented at https://github.com/google/cel-spec.
3402 #
3403 # Example (Comparison):
3404 #
Bu Sun Kim65020912020-05-20 12:08:20 -07003405 # title: &quot;Summary size limit&quot;
3406 # description: &quot;Determines if a summary is less than 100 chars&quot;
3407 # expression: &quot;document.summary.size() &lt; 100&quot;
Dan O'Mearadd494642020-05-01 07:42:23 -07003408 #
3409 # Example (Equality):
3410 #
Bu Sun Kim65020912020-05-20 12:08:20 -07003411 # title: &quot;Requestor is owner&quot;
3412 # description: &quot;Determines if requestor is the document owner&quot;
3413 # expression: &quot;document.owner == request.auth.claims.email&quot;
Dan O'Mearadd494642020-05-01 07:42:23 -07003414 #
3415 # Example (Logic):
3416 #
Bu Sun Kim65020912020-05-20 12:08:20 -07003417 # title: &quot;Public documents&quot;
3418 # description: &quot;Determine whether the document should be publicly visible&quot;
3419 # expression: &quot;document.type != &#x27;private&#x27; &amp;&amp; document.type != &#x27;internal&#x27;&quot;
Dan O'Mearadd494642020-05-01 07:42:23 -07003420 #
3421 # Example (Data Manipulation):
3422 #
Bu Sun Kim65020912020-05-20 12:08:20 -07003423 # title: &quot;Notification string&quot;
3424 # description: &quot;Create a notification string with a timestamp.&quot;
3425 # expression: &quot;&#x27;New message received at &#x27; + string(document.create_time)&quot;
Dan O'Mearadd494642020-05-01 07:42:23 -07003426 #
3427 # The exact variables and functions that may be referenced within an expression
3428 # are determined by the service that evaluates it. See the service
3429 # documentation for additional information.
Bu Sun Kim65020912020-05-20 12:08:20 -07003430 &quot;title&quot;: &quot;A String&quot;, # Optional. Title for the expression, i.e. a short string describing
Dan O'Mearadd494642020-05-01 07:42:23 -07003431 # its purpose. This can be used e.g. in UIs which allow to enter the
3432 # expression.
Bu Sun Kim65020912020-05-20 12:08:20 -07003433 &quot;location&quot;: &quot;A String&quot;, # Optional. String indicating the location of the expression for error
3434 # reporting, e.g. a file name and a position in the file.
3435 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of the expression. This is a longer text which
3436 # describes the expression, e.g. when hovered over it in a UI.
3437 &quot;expression&quot;: &quot;A String&quot;, # Textual representation of an expression in Common Expression Language
3438 # syntax.
Dan O'Mearadd494642020-05-01 07:42:23 -07003439 },
Bu Sun Kim65020912020-05-20 12:08:20 -07003440 &quot;members&quot;: [ # Specifies the identities requesting access for a Cloud Platform resource.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003441 # `members` can have the following values:
3442 #
3443 # * `allUsers`: A special identifier that represents anyone who is
3444 # on the internet; with or without a Google account.
3445 #
3446 # * `allAuthenticatedUsers`: A special identifier that represents anyone
3447 # who is authenticated with a Google account or a service account.
3448 #
3449 # * `user:{emailid}`: An email address that represents a specific Google
Dan O'Mearadd494642020-05-01 07:42:23 -07003450 # account. For example, `alice@example.com` .
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003451 #
3452 #
3453 # * `serviceAccount:{emailid}`: An email address that represents a service
3454 # account. For example, `my-other-app@appspot.gserviceaccount.com`.
3455 #
3456 # * `group:{emailid}`: An email address that represents a Google group.
3457 # For example, `admins@example.com`.
3458 #
Dan O'Mearadd494642020-05-01 07:42:23 -07003459 # * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus unique
3460 # identifier) representing a user that has been recently deleted. For
3461 # example, `alice@example.com?uid=123456789012345678901`. If the user is
3462 # recovered, this value reverts to `user:{emailid}` and the recovered user
3463 # retains the role in the binding.
3464 #
3465 # * `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus
3466 # unique identifier) representing a service account that has been recently
3467 # deleted. For example,
3468 # `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`.
3469 # If the service account is undeleted, this value reverts to
3470 # `serviceAccount:{emailid}` and the undeleted service account retains the
3471 # role in the binding.
3472 #
3473 # * `deleted:group:{emailid}?uid={uniqueid}`: An email address (plus unique
3474 # identifier) representing a Google group that has been recently
3475 # deleted. For example, `admins@example.com?uid=123456789012345678901`. If
3476 # the group is recovered, this value reverts to `group:{emailid}` and the
3477 # recovered group retains the role in the binding.
3478 #
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003479 #
3480 # * `domain:{domain}`: The G Suite domain (primary) that represents all the
3481 # users of that domain. For example, `google.com` or `example.com`.
3482 #
Bu Sun Kim65020912020-05-20 12:08:20 -07003483 &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003484 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07003485 &quot;role&quot;: &quot;A String&quot;, # Role that is assigned to `members`.
3486 # For example, `roles/viewer`, `roles/editor`, or `roles/owner`.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003487 },
3488 ],
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -07003489 }</pre>
3490</div>
3491
3492<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -07003493 <code class="details" id="testIamPermissions">testIamPermissions(resource, body=None, x__xgafv=None)</code>
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -07003494 <pre>Returns permissions that a caller has on the specified resource.
Jon Wayne Parrott692617a2017-01-06 09:58:29 -08003495If the resource does not exist, this will return an empty set of
Bu Sun Kim65020912020-05-20 12:08:20 -07003496permissions, not a `NOT_FOUND` error.
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -07003497
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -04003498Note: This operation is designed to be used for building permission-aware
3499UIs and command-line tools, not for authorization checking. This operation
Bu Sun Kim65020912020-05-20 12:08:20 -07003500may &quot;fail open&quot; without warning.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -04003501
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -07003502Args:
3503 resource: string, REQUIRED: The resource for which the policy detail is being requested.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -04003504See the operation documentation for the appropriate value for this field. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -07003505 body: object, The request body.
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -07003506 The object takes the form of:
3507
3508{ # Request message for `TestIamPermissions` method.
Bu Sun Kim65020912020-05-20 12:08:20 -07003509 &quot;permissions&quot;: [ # The set of permissions to check for the `resource`. Permissions with
3510 # wildcards (such as &#x27;*&#x27; or &#x27;storage.*&#x27;) are not allowed. For more
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -07003511 # information see
3512 # [IAM Overview](https://cloud.google.com/iam/docs/overview#permissions).
Bu Sun Kim65020912020-05-20 12:08:20 -07003513 &quot;A String&quot;,
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -07003514 ],
3515 }
3516
3517 x__xgafv: string, V1 error format.
3518 Allowed values
3519 1 - v1 error format
3520 2 - v2 error format
3521
3522Returns:
3523 An object of the form:
3524
3525 { # Response message for `TestIamPermissions` method.
Bu Sun Kim65020912020-05-20 12:08:20 -07003526 &quot;permissions&quot;: [ # A subset of `TestPermissionsRequest.permissions` that the caller is
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -07003527 # allowed.
Bu Sun Kim65020912020-05-20 12:08:20 -07003528 &quot;A String&quot;,
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -07003529 ],
3530 }</pre>
3531</div>
3532
3533<div class="method">
Thomas Coffee2f245372017-03-27 10:39:26 -07003534 <code class="details" id="undelete">undelete(serviceName, x__xgafv=None)</code>
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -07003535 <pre>Revives a previously deleted managed service. The method restores the
3536service using the configuration at the time the service was deleted.
3537The target service must exist and must have been deleted within the
3538last 30 days.
3539
Dan O'Mearadd494642020-05-01 07:42:23 -07003540Operation&lt;response: UndeleteServiceResponse&gt;
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -07003541
3542Args:
Dan O'Mearadd494642020-05-01 07:42:23 -07003543 serviceName: string, Required. The name of the service. See the [overview](/service-management/overview)
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -07003544for naming requirements. For example: `example.googleapis.com`. (required)
3545 x__xgafv: string, V1 error format.
3546 Allowed values
3547 1 - v1 error format
3548 2 - v2 error format
3549
3550Returns:
3551 An object of the form:
3552
3553 { # This resource represents a long-running operation that is the result of a
3554 # network API call.
Bu Sun Kim65020912020-05-20 12:08:20 -07003555 &quot;metadata&quot;: { # Service-specific metadata associated with the operation. It typically
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -04003556 # contains progress information and common metadata such as create time.
3557 # Some services might not provide such metadata. Any method that returns a
3558 # long-running operation should document the metadata type, if any.
Bu Sun Kim65020912020-05-20 12:08:20 -07003559 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
Sai Cheemalapati4ba8c232017-06-06 18:46:08 -04003560 },
Bu Sun Kim65020912020-05-20 12:08:20 -07003561 &quot;done&quot;: True or False, # If the value is `false`, it means the operation is still in progress.
Dan O'Mearadd494642020-05-01 07:42:23 -07003562 # If `true`, the operation is completed, and either `error` or `response` is
3563 # available.
Bu Sun Kim65020912020-05-20 12:08:20 -07003564 &quot;response&quot;: { # The normal response of the operation in case of success. If the original
Dan O'Mearadd494642020-05-01 07:42:23 -07003565 # method returns no data on success, such as `Delete`, the response is
3566 # `google.protobuf.Empty`. If the original method is standard
3567 # `Get`/`Create`/`Update`, the response should be the resource. For other
3568 # methods, the response should have the type `XxxResponse`, where `Xxx`
3569 # is the original method name. For example, if the original method name
3570 # is `TakeSnapshot()`, the inferred response type is
3571 # `TakeSnapshotResponse`.
Bu Sun Kim65020912020-05-20 12:08:20 -07003572 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
Dan O'Mearadd494642020-05-01 07:42:23 -07003573 },
Bu Sun Kim65020912020-05-20 12:08:20 -07003574 &quot;name&quot;: &quot;A String&quot;, # The server-assigned name, which is only unique within the same service that
Dan O'Mearadd494642020-05-01 07:42:23 -07003575 # originally returns it. If you use the default HTTP mapping, the
3576 # `name` should be a resource name ending with `operations/{unique_id}`.
Bu Sun Kim65020912020-05-20 12:08:20 -07003577 &quot;error&quot;: { # The `Status` type defines a logical error model that is suitable for # The error result of the operation in case of failure or cancellation.
3578 # different programming environments, including REST APIs and RPC APIs. It is
3579 # used by [gRPC](https://github.com/grpc). Each `Status` message contains
3580 # three pieces of data: error code, error message, and error details.
3581 #
3582 # You can find out more about this error model and how to work with it in the
3583 # [API Design Guide](https://cloud.google.com/apis/design/errors).
3584 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of
3585 # message types for APIs to use.
3586 {
3587 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
3588 },
3589 ],
3590 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
3591 &quot;message&quot;: &quot;A String&quot;, # A developer-facing error message, which should be in English. Any
3592 # user-facing error message should be localized and sent in the
3593 # google.rpc.Status.details field, or localized by the client.
3594 },
Jon Wayne Parrott7d5badb2016-08-16 12:44:29 -07003595 }</pre>
3596</div>
3597
3598</body></html>