Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 1 | <html><body> |
| 2 | <style> |
| 3 | |
| 4 | body, 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 | |
| 15 | body { |
| 16 | font-size: 13px; |
| 17 | padding: 1em; |
| 18 | } |
| 19 | |
| 20 | h1 { |
| 21 | font-size: 26px; |
| 22 | margin-bottom: 1em; |
| 23 | } |
| 24 | |
| 25 | h2 { |
| 26 | font-size: 24px; |
| 27 | margin-bottom: 1em; |
| 28 | } |
| 29 | |
| 30 | h3 { |
| 31 | font-size: 20px; |
| 32 | margin-bottom: 1em; |
| 33 | margin-top: 1em; |
| 34 | } |
| 35 | |
| 36 | pre, code { |
| 37 | line-height: 1.5; |
| 38 | font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace; |
| 39 | } |
| 40 | |
| 41 | pre { |
| 42 | margin-top: 0.5em; |
| 43 | } |
| 44 | |
| 45 | h1, h2, h3, p { |
| 46 | font-family: Arial, sans serif; |
| 47 | } |
| 48 | |
| 49 | h1, 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 | |
| 75 | <h1><a href="serviceusage_v1.html">Service Usage API</a> . <a href="serviceusage_v1.services.html">services</a></h1> |
| 76 | <h2>Instance Methods</h2> |
| 77 | <p class="toc_element"> |
Dan O'Meara | dd49464 | 2020-05-01 07:42:23 -0700 | [diff] [blame] | 78 | <code><a href="#batchEnable">batchEnable(parent, body=None, x__xgafv=None)</a></code></p> |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 79 | <p class="firstline">Enable multiple services on a project. The operation is atomic: if enabling</p> |
| 80 | <p class="toc_element"> |
Dan O'Meara | dd49464 | 2020-05-01 07:42:23 -0700 | [diff] [blame] | 81 | <code><a href="#batchGet">batchGet(parent, names=None, x__xgafv=None)</a></code></p> |
| 82 | <p class="firstline">Returns the service configurations and enabled states for a given list of</p> |
| 83 | <p class="toc_element"> |
| 84 | <code><a href="#disable">disable(name, body=None, x__xgafv=None)</a></code></p> |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 85 | <p class="firstline">Disable a service so that it can no longer be used with a project.</p> |
| 86 | <p class="toc_element"> |
| 87 | <code><a href="#enable">enable(name, body=None, x__xgafv=None)</a></code></p> |
| 88 | <p class="firstline">Enable a service so that it can be used with a project.</p> |
| 89 | <p class="toc_element"> |
| 90 | <code><a href="#get">get(name, x__xgafv=None)</a></code></p> |
| 91 | <p class="firstline">Returns the service configuration and enabled state for a given service.</p> |
| 92 | <p class="toc_element"> |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame^] | 93 | <code><a href="#list">list(parent, filter=None, pageToken=None, pageSize=None, x__xgafv=None)</a></code></p> |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 94 | <p class="firstline">List all services available to the specified project, and the current</p> |
| 95 | <p class="toc_element"> |
| 96 | <code><a href="#list_next">list_next(previous_request, previous_response)</a></code></p> |
| 97 | <p class="firstline">Retrieves the next page of results.</p> |
| 98 | <h3>Method Details</h3> |
| 99 | <div class="method"> |
Dan O'Meara | dd49464 | 2020-05-01 07:42:23 -0700 | [diff] [blame] | 100 | <code class="details" id="batchEnable">batchEnable(parent, body=None, x__xgafv=None)</code> |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 101 | <pre>Enable multiple services on a project. The operation is atomic: if enabling |
| 102 | any service fails, then the entire batch fails, and no state changes occur. |
Dan O'Meara | dd49464 | 2020-05-01 07:42:23 -0700 | [diff] [blame] | 103 | To enable a single service, use the `EnableService` method instead. |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 104 | |
| 105 | Args: |
| 106 | parent: string, Parent to enable services on. |
| 107 | |
| 108 | An example name would be: |
| 109 | `projects/123` where `123` is the project number. |
| 110 | |
| 111 | The `BatchEnableServices` method currently only supports projects. (required) |
Dan O'Meara | dd49464 | 2020-05-01 07:42:23 -0700 | [diff] [blame] | 112 | body: object, The request body. |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 113 | The object takes the form of: |
| 114 | |
| 115 | { # Request message for the `BatchEnableServices` method. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 116 | "serviceIds": [ # The identifiers of the services to enable on the project. |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 117 | # |
| 118 | # A valid identifier would be: |
| 119 | # serviceusage.googleapis.com |
| 120 | # |
| 121 | # Enabling services requires that each service is public or is shared with |
| 122 | # the user enabling the service. |
| 123 | # |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 124 | # A single request can enable a maximum of 20 services at a time. If more |
| 125 | # than 20 services are specified, the request will fail, and no state changes |
| 126 | # will occur. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 127 | "A String", |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 128 | ], |
| 129 | } |
| 130 | |
| 131 | x__xgafv: string, V1 error format. |
| 132 | Allowed values |
| 133 | 1 - v1 error format |
| 134 | 2 - v2 error format |
| 135 | |
| 136 | Returns: |
| 137 | An object of the form: |
| 138 | |
| 139 | { # This resource represents a long-running operation that is the result of a |
| 140 | # network API call. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 141 | "error": { # The `Status` type defines a logical error model that is suitable for # The error result of the operation in case of failure or cancellation. |
| 142 | # different programming environments, including REST APIs and RPC APIs. It is |
| 143 | # used by [gRPC](https://github.com/grpc). Each `Status` message contains |
| 144 | # three pieces of data: error code, error message, and error details. |
| 145 | # |
| 146 | # You can find out more about this error model and how to work with it in the |
| 147 | # [API Design Guide](https://cloud.google.com/apis/design/errors). |
Bu Sun Kim | 4ed7d3f | 2020-05-27 12:20:54 -0700 | [diff] [blame] | 148 | "message": "A String", # A developer-facing error message, which should be in English. Any |
| 149 | # user-facing error message should be localized and sent in the |
| 150 | # google.rpc.Status.details field, or localized by the client. |
| 151 | "code": 42, # The status code, which should be an enum value of google.rpc.Code. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 152 | "details": [ # A list of messages that carry the error details. There is a common set of |
| 153 | # message types for APIs to use. |
| 154 | { |
| 155 | "a_key": "", # Properties of the object. Contains field @type with type URL. |
| 156 | }, |
| 157 | ], |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 158 | }, |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame^] | 159 | "metadata": { # Service-specific metadata associated with the operation. It typically |
| 160 | # contains progress information and common metadata such as create time. |
| 161 | # Some services might not provide such metadata. Any method that returns a |
| 162 | # long-running operation should document the metadata type, if any. |
| 163 | "a_key": "", # Properties of the object. Contains field @type with type URL. |
| 164 | }, |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 165 | "response": { # The normal response of the operation in case of success. If the original |
Dan O'Meara | dd49464 | 2020-05-01 07:42:23 -0700 | [diff] [blame] | 166 | # method returns no data on success, such as `Delete`, the response is |
| 167 | # `google.protobuf.Empty`. If the original method is standard |
| 168 | # `Get`/`Create`/`Update`, the response should be the resource. For other |
| 169 | # methods, the response should have the type `XxxResponse`, where `Xxx` |
| 170 | # is the original method name. For example, if the original method name |
| 171 | # is `TakeSnapshot()`, the inferred response type is |
| 172 | # `TakeSnapshotResponse`. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 173 | "a_key": "", # Properties of the object. Contains field @type with type URL. |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 174 | }, |
Bu Sun Kim | 4ed7d3f | 2020-05-27 12:20:54 -0700 | [diff] [blame] | 175 | "name": "A String", # The server-assigned name, which is only unique within the same service that |
| 176 | # originally returns it. If you use the default HTTP mapping, the |
| 177 | # `name` should be a resource name ending with `operations/{unique_id}`. |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame^] | 178 | "done": True or False, # If the value is `false`, it means the operation is still in progress. |
| 179 | # If `true`, the operation is completed, and either `error` or `response` is |
| 180 | # available. |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 181 | }</pre> |
| 182 | </div> |
| 183 | |
| 184 | <div class="method"> |
Dan O'Meara | dd49464 | 2020-05-01 07:42:23 -0700 | [diff] [blame] | 185 | <code class="details" id="batchGet">batchGet(parent, names=None, x__xgafv=None)</code> |
| 186 | <pre>Returns the service configurations and enabled states for a given list of |
| 187 | services. |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 188 | |
| 189 | Args: |
Dan O'Meara | dd49464 | 2020-05-01 07:42:23 -0700 | [diff] [blame] | 190 | parent: string, Parent to retrieve services from. |
| 191 | If this is set, the parent of all of the services specified in `names` must |
| 192 | match this field. An example name would be: `projects/123` where `123` is |
| 193 | the project number. The `BatchGetServices` method currently only supports |
| 194 | projects. (required) |
| 195 | names: string, Names of the services to retrieve. |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 196 | |
| 197 | An example name would be: |
| 198 | `projects/123/services/serviceusage.googleapis.com` where `123` is the |
Dan O'Meara | dd49464 | 2020-05-01 07:42:23 -0700 | [diff] [blame] | 199 | project number. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 200 | A single request can get a maximum of 30 services at a time. (repeated) |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 201 | x__xgafv: string, V1 error format. |
| 202 | Allowed values |
| 203 | 1 - v1 error format |
| 204 | 2 - v2 error format |
| 205 | |
| 206 | Returns: |
| 207 | An object of the form: |
| 208 | |
Dan O'Meara | dd49464 | 2020-05-01 07:42:23 -0700 | [diff] [blame] | 209 | { # Response message for the `BatchGetServices` method. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 210 | "services": [ # The requested Service states. |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 211 | { # A service that is available for use by the consumer. |
Bu Sun Kim | 4ed7d3f | 2020-05-27 12:20:54 -0700 | [diff] [blame] | 212 | "state": "A String", # Whether or not the service has been enabled for use by the consumer. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 213 | "config": { # The configuration of the service. # The service configuration of the available service. |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 214 | # Some fields may be filtered out of the configuration in responses to |
| 215 | # the `ListServices` method. These fields are present only in responses to |
| 216 | # the `GetService` method. |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame^] | 217 | "quota": { # Quota configuration helps to achieve fairness and budgeting in service # Quota configuration. |
| 218 | # usage. |
| 219 | # |
| 220 | # The metric based quota configuration works this way: |
| 221 | # - The service configuration defines a set of metrics. |
| 222 | # - For API calls, the quota.metric_rules maps methods to metrics with |
| 223 | # corresponding costs. |
| 224 | # - The quota.limits defines limits on the metrics, which will be used for |
| 225 | # quota checks at runtime. |
| 226 | # |
| 227 | # An example quota configuration in yaml format: |
| 228 | # |
| 229 | # quota: |
| 230 | # limits: |
| 231 | # |
| 232 | # - name: apiWriteQpsPerProject |
| 233 | # metric: library.googleapis.com/write_calls |
| 234 | # unit: "1/min/{project}" # rate limit for consumer projects |
| 235 | # values: |
| 236 | # STANDARD: 10000 |
| 237 | # |
| 238 | # |
| 239 | # # The metric rules bind all methods to the read_calls metric, |
| 240 | # # except for the UpdateBook and DeleteBook methods. These two methods |
| 241 | # # are mapped to the write_calls metric, with the UpdateBook method |
| 242 | # # consuming at twice rate as the DeleteBook method. |
| 243 | # metric_rules: |
| 244 | # - selector: "*" |
| 245 | # metric_costs: |
| 246 | # library.googleapis.com/read_calls: 1 |
| 247 | # - selector: google.example.library.v1.LibraryService.UpdateBook |
| 248 | # metric_costs: |
| 249 | # library.googleapis.com/write_calls: 2 |
| 250 | # - selector: google.example.library.v1.LibraryService.DeleteBook |
| 251 | # metric_costs: |
| 252 | # library.googleapis.com/write_calls: 1 |
| 253 | # |
| 254 | # Corresponding Metric definition: |
| 255 | # |
| 256 | # metrics: |
| 257 | # - name: library.googleapis.com/read_calls |
| 258 | # display_name: Read requests |
| 259 | # metric_kind: DELTA |
| 260 | # value_type: INT64 |
| 261 | # |
| 262 | # - name: library.googleapis.com/write_calls |
| 263 | # display_name: Write requests |
| 264 | # metric_kind: DELTA |
| 265 | # value_type: INT64 |
| 266 | # |
| 267 | "limits": [ # List of `QuotaLimit` definitions for the service. |
| 268 | { # `QuotaLimit` defines a specific limit that applies over a specified duration |
| 269 | # for a limit type. There can be at most one limit for a duration and limit |
| 270 | # type combination defined within a `QuotaGroup`. |
| 271 | "maxLimit": "A String", # Maximum number of tokens that can be consumed during the specified |
| 272 | # duration. Client application developers can override the default limit up |
| 273 | # to this maximum. If specified, this value cannot be set to a value less |
| 274 | # than the default limit. If not specified, it is set to the default limit. |
| 275 | # |
| 276 | # To allow clients to apply overrides with no upper bound, set this to -1, |
| 277 | # indicating unlimited maximum quota. |
| 278 | # |
| 279 | # Used by group-based quotas only. |
| 280 | "name": "A String", # Name of the quota limit. |
| 281 | # |
| 282 | # The name must be provided, and it must be unique within the service. The |
| 283 | # name can only include alphanumeric characters as well as '-'. |
| 284 | # |
| 285 | # The maximum length of the limit name is 64 characters. |
| 286 | "metric": "A String", # The name of the metric this quota limit applies to. The quota limits with |
| 287 | # the same metric will be checked together during runtime. The metric must be |
| 288 | # defined within the service config. |
| 289 | "description": "A String", # Optional. User-visible, extended description for this quota limit. |
| 290 | # Should be used only when more context is needed to understand this limit |
| 291 | # than provided by the limit's display name (see: `display_name`). |
| 292 | "duration": "A String", # Duration of this limit in textual notation. Must be "100s" or "1d". |
| 293 | # |
| 294 | # Used by group-based quotas only. |
| 295 | "unit": "A String", # Specify the unit of the quota limit. It uses the same syntax as |
| 296 | # Metric.unit. The supported unit kinds are determined by the quota |
| 297 | # backend system. |
| 298 | # |
| 299 | # Here are some examples: |
| 300 | # * "1/min/{project}" for quota per minute per project. |
| 301 | # |
| 302 | # Note: the order of unit components is insignificant. |
| 303 | # The "1" at the beginning is required to follow the metric unit syntax. |
| 304 | "values": { # Tiered limit values. You must specify this as a key:value pair, with an |
| 305 | # integer value that is the maximum number of requests allowed for the |
| 306 | # specified unit. Currently only STANDARD is supported. |
| 307 | "a_key": "A String", |
| 308 | }, |
| 309 | "defaultLimit": "A String", # Default number of tokens that can be consumed during the specified |
| 310 | # duration. This is the number of tokens assigned when a client |
| 311 | # application developer activates the service for his/her project. |
| 312 | # |
| 313 | # Specifying a value of 0 will block all requests. This can be used if you |
| 314 | # are provisioning quota to selected consumers and blocking others. |
| 315 | # Similarly, a value of -1 will indicate an unlimited quota. No other |
| 316 | # negative values are allowed. |
| 317 | # |
| 318 | # Used by group-based quotas only. |
| 319 | "freeTier": "A String", # Free tier value displayed in the Developers Console for this limit. |
| 320 | # The free tier is the number of tokens that will be subtracted from the |
| 321 | # billed amount when billing is enabled. |
| 322 | # This field can only be set on a limit with duration "1d", in a billable |
| 323 | # group; it is invalid on any other limit. If this field is not set, it |
| 324 | # defaults to 0, indicating that there is no free tier for this service. |
| 325 | # |
| 326 | # Used by group-based quotas only. |
| 327 | "displayName": "A String", # User-visible display name for this limit. |
| 328 | # Optional. If not set, the UI will provide a default display name based on |
| 329 | # the quota configuration. This field can be used to override the default |
| 330 | # display name generated from the configuration. |
| 331 | }, |
| 332 | ], |
| 333 | "metricRules": [ # List of `MetricRule` definitions, each one mapping a selected method to one |
| 334 | # or more metrics. |
| 335 | { # Bind API methods to metrics. Binding a method to a metric causes that |
| 336 | # metric's configured quota behaviors to apply to the method call. |
| 337 | "metricCosts": { # Metrics to update when the selected methods are called, and the associated |
| 338 | # cost applied to each metric. |
| 339 | # |
| 340 | # The key of the map is the metric name, and the values are the amount |
| 341 | # increased for the metric against which the quota limits are defined. |
| 342 | # The value must not be negative. |
| 343 | "a_key": "A String", |
| 344 | }, |
| 345 | "selector": "A String", # Selects the methods to which this rule applies. |
| 346 | # |
| 347 | # Refer to selector for syntax details. |
| 348 | }, |
| 349 | ], |
| 350 | }, |
| 351 | "endpoints": [ # Configuration for network endpoints. Contains only the names and aliases |
| 352 | # of the endpoints. |
| 353 | { # `Endpoint` describes a network endpoint that serves a set of APIs. |
| 354 | # A service may expose any number of endpoints, and all endpoints share the |
| 355 | # same service configuration, such as quota configuration and monitoring |
| 356 | # configuration. |
| 357 | # |
| 358 | # Example service configuration: |
| 359 | # |
| 360 | # name: library-example.googleapis.com |
| 361 | # endpoints: |
| 362 | # # Below entry makes 'google.example.library.v1.Library' |
| 363 | # # API be served from endpoint address library-example.googleapis.com. |
| 364 | # # It also allows HTTP OPTIONS calls to be passed to the backend, for |
| 365 | # # it to decide whether the subsequent cross-origin request is |
| 366 | # # allowed to proceed. |
| 367 | # - name: library-example.googleapis.com |
| 368 | # allow_cors: true |
| 369 | "name": "A String", # The canonical name of this endpoint. |
| 370 | "aliases": [ # DEPRECATED: This field is no longer supported. Instead of using aliases, |
| 371 | # please specify multiple google.api.Endpoint for each of the intended |
| 372 | # aliases. |
| 373 | # |
| 374 | # Additional names that this endpoint will be hosted on. |
| 375 | "A String", |
| 376 | ], |
| 377 | "target": "A String", # The specification of an Internet routable address of API frontend that will |
| 378 | # handle requests to this [API |
| 379 | # Endpoint](https://cloud.google.com/apis/design/glossary). It should be |
| 380 | # either a valid IPv4 address or a fully-qualified domain name. For example, |
| 381 | # "8.8.8.8" or "myservice.appspot.com". |
| 382 | "allowCors": True or False, # Allowing |
| 383 | # [CORS](https://en.wikipedia.org/wiki/Cross-origin_resource_sharing), aka |
| 384 | # cross-domain traffic, would allow the backends served from this endpoint to |
| 385 | # receive and respond to HTTP OPTIONS requests. The response will be used by |
| 386 | # the browser to determine whether the subsequent cross-origin request is |
| 387 | # allowed to proceed. |
| 388 | }, |
| 389 | ], |
| 390 | "usage": { # Configuration controlling usage of a service. # Configuration controlling usage of this service. |
| 391 | "serviceIdentity": { # The per-product per-project service identity for a service. # The configuration of a per-product per-project service identity. |
| 392 | # |
| 393 | # |
| 394 | # Use this field to configure per-product per-project service identity. |
| 395 | # Example of a service identity configuration. |
| 396 | # |
| 397 | # usage: |
| 398 | # service_identity: |
| 399 | # - service_account_parent: "projects/123456789" |
| 400 | # display_name: "Cloud XXX Service Agent" |
| 401 | # description: "Used as the identity of Cloud XXX to access resources" |
| 402 | "displayName": "A String", # Optional. A user-specified name for the service account. |
| 403 | # Must be less than or equal to 100 UTF-8 bytes. |
| 404 | "description": "A String", # Optional. A user-specified opaque description of the service account. |
| 405 | # Must be less than or equal to 256 UTF-8 bytes. |
| 406 | "serviceAccountParent": "A String", # A service account project that hosts the service accounts. |
| 407 | # |
| 408 | # An example name would be: |
| 409 | # `projects/123456789` |
| 410 | }, |
| 411 | "requirements": [ # Requirements that must be satisfied before a consumer project can use the |
| 412 | # service. Each requirement is of the form <service.name>/<requirement-id>; |
| 413 | # for example 'serviceusage.googleapis.com/billing-enabled'. |
| 414 | "A String", |
| 415 | ], |
| 416 | "rules": [ # A list of usage rules that apply to individual API methods. |
| 417 | # |
| 418 | # **NOTE:** All service configuration rules follow "last one wins" order. |
| 419 | { # Usage configuration rules for the service. |
| 420 | # |
| 421 | # NOTE: Under development. |
| 422 | # |
| 423 | # |
| 424 | # Use this rule to configure unregistered calls for the service. Unregistered |
| 425 | # calls are calls that do not contain consumer project identity. |
| 426 | # (Example: calls that do not contain an API key). |
| 427 | # By default, API methods do not allow unregistered calls, and each method call |
| 428 | # must be identified by a consumer project identity. Use this rule to |
| 429 | # allow/disallow unregistered calls. |
| 430 | # |
| 431 | # Example of an API that wants to allow unregistered calls for entire service. |
| 432 | # |
| 433 | # usage: |
| 434 | # rules: |
| 435 | # - selector: "*" |
| 436 | # allow_unregistered_calls: true |
| 437 | # |
| 438 | # Example of a method that wants to allow unregistered calls. |
| 439 | # |
| 440 | # usage: |
| 441 | # rules: |
| 442 | # - selector: "google.example.library.v1.LibraryService.CreateBook" |
| 443 | # allow_unregistered_calls: true |
| 444 | "selector": "A String", # Selects the methods to which this rule applies. Use '*' to indicate all |
| 445 | # methods in all APIs. |
| 446 | # |
| 447 | # Refer to selector for syntax details. |
| 448 | "allowUnregisteredCalls": True or False, # If true, the selected method allows unregistered calls, e.g. calls |
| 449 | # that don't identify any user or application. |
| 450 | "skipServiceControl": True or False, # If true, the selected method should skip service control and the control |
| 451 | # plane features, such as quota and billing, will not be available. |
| 452 | # This flag is used by Google Cloud Endpoints to bypass checks for internal |
| 453 | # methods, such as service health check methods. |
| 454 | }, |
| 455 | ], |
| 456 | "producerNotificationChannel": "A String", # The full resource name of a channel used for sending notifications to the |
| 457 | # service producer. |
| 458 | # |
| 459 | # Google Service Management currently only supports |
| 460 | # [Google Cloud Pub/Sub](https://cloud.google.com/pubsub) as a notification |
| 461 | # channel. To use Google Cloud Pub/Sub as the channel, this must be the name |
| 462 | # of a Cloud Pub/Sub topic that uses the Cloud Pub/Sub topic name format |
| 463 | # documented in https://cloud.google.com/pubsub/docs/overview. |
| 464 | }, |
| 465 | "documentation": { # `Documentation` provides the information for describing a service. # Additional API documentation. Contains only the summary and the |
| 466 | # documentation URL. |
| 467 | # |
| 468 | # Example: |
| 469 | # <pre><code>documentation: |
| 470 | # summary: > |
| 471 | # The Google Calendar API gives access |
| 472 | # to most calendar features. |
| 473 | # pages: |
| 474 | # - name: Overview |
| 475 | # content: &#40;== include google/foo/overview.md ==&#41; |
| 476 | # - name: Tutorial |
| 477 | # content: &#40;== include google/foo/tutorial.md ==&#41; |
| 478 | # subpages; |
| 479 | # - name: Java |
| 480 | # content: &#40;== include google/foo/tutorial_java.md ==&#41; |
| 481 | # rules: |
| 482 | # - selector: google.calendar.Calendar.Get |
| 483 | # description: > |
| 484 | # ... |
| 485 | # - selector: google.calendar.Calendar.Put |
| 486 | # description: > |
| 487 | # ... |
| 488 | # </code></pre> |
| 489 | # Documentation is provided in markdown syntax. In addition to |
| 490 | # standard markdown features, definition lists, tables and fenced |
| 491 | # code blocks are supported. Section headers can be provided and are |
| 492 | # interpreted relative to the section nesting of the context where |
| 493 | # a documentation fragment is embedded. |
| 494 | # |
| 495 | # Documentation from the IDL is merged with documentation defined |
| 496 | # via the config at normalization time, where documentation provided |
| 497 | # by config rules overrides IDL provided. |
| 498 | # |
| 499 | # A number of constructs specific to the API platform are supported |
| 500 | # in documentation text. |
| 501 | # |
| 502 | # In order to reference a proto element, the following |
| 503 | # notation can be used: |
| 504 | # <pre><code>&#91;fully.qualified.proto.name]&#91;]</code></pre> |
| 505 | # To override the display text used for the link, this can be used: |
| 506 | # <pre><code>&#91;display text]&#91;fully.qualified.proto.name]</code></pre> |
| 507 | # Text can be excluded from doc using the following notation: |
| 508 | # <pre><code>&#40;-- internal comment --&#41;</code></pre> |
| 509 | # |
| 510 | # A few directives are available in documentation. Note that |
| 511 | # directives must appear on a single line to be properly |
| 512 | # identified. The `include` directive includes a markdown file from |
| 513 | # an external source: |
| 514 | # <pre><code>&#40;== include path/to/file ==&#41;</code></pre> |
| 515 | # The `resource_for` directive marks a message to be the resource of |
| 516 | # a collection in REST view. If it is not specified, tools attempt |
| 517 | # to infer the resource from the operations in a collection: |
| 518 | # <pre><code>&#40;== resource_for v1.shelves.books ==&#41;</code></pre> |
| 519 | # The directive `suppress_warning` does not directly affect documentation |
| 520 | # and is documented together with service config validation. |
| 521 | "pages": [ # The top level pages for the documentation set. |
| 522 | { # Represents a documentation page. A page can contain subpages to represent |
| 523 | # nested documentation set structure. |
| 524 | "name": "A String", # The name of the page. It will be used as an identity of the page to |
| 525 | # generate URI of the page, text of the link to this page in navigation, |
| 526 | # etc. The full page name (start from the root page name to this page |
| 527 | # concatenated with `.`) can be used as reference to the page in your |
| 528 | # documentation. For example: |
| 529 | # <pre><code>pages: |
| 530 | # - name: Tutorial |
| 531 | # content: &#40;== include tutorial.md ==&#41; |
| 532 | # subpages: |
| 533 | # - name: Java |
| 534 | # content: &#40;== include tutorial_java.md ==&#41; |
| 535 | # </code></pre> |
| 536 | # You can reference `Java` page using Markdown reference link syntax: |
| 537 | # `Java`. |
| 538 | "subpages": [ # Subpages of this page. The order of subpages specified here will be |
| 539 | # honored in the generated docset. |
| 540 | # Object with schema name: Page |
| 541 | ], |
| 542 | "content": "A String", # The Markdown content of the page. You can use <code>&#40;== include {path} |
| 543 | # ==&#41;</code> to include content from a Markdown file. |
| 544 | }, |
| 545 | ], |
| 546 | "summary": "A String", # A short summary of what the service does. Can only be provided by |
| 547 | # plain text. |
| 548 | "overview": "A String", # Declares a single overview page. For example: |
| 549 | # <pre><code>documentation: |
| 550 | # summary: ... |
| 551 | # overview: &#40;== include overview.md ==&#41; |
| 552 | # </code></pre> |
| 553 | # This is a shortcut for the following declaration (using pages style): |
| 554 | # <pre><code>documentation: |
| 555 | # summary: ... |
| 556 | # pages: |
| 557 | # - name: Overview |
| 558 | # content: &#40;== include overview.md ==&#41; |
| 559 | # </code></pre> |
| 560 | # Note: you cannot specify both `overview` field and `pages` field. |
| 561 | "documentationRootUrl": "A String", # The URL to the root of documentation. |
| 562 | "rules": [ # A list of documentation rules that apply to individual API elements. |
| 563 | # |
| 564 | # **NOTE:** All service configuration rules follow "last one wins" order. |
| 565 | { # A documentation rule provides information about individual API elements. |
| 566 | "deprecationDescription": "A String", # Deprecation description of the selected element(s). It can be provided if |
| 567 | # an element is marked as `deprecated`. |
| 568 | "selector": "A String", # The selector is a comma-separated list of patterns. Each pattern is a |
| 569 | # qualified name of the element which may end in "*", indicating a wildcard. |
| 570 | # Wildcards are only allowed at the end and for a whole component of the |
| 571 | # qualified name, i.e. "foo.*" is ok, but not "foo.b*" or "foo.*.bar". A |
| 572 | # wildcard will match one or more components. To specify a default for all |
| 573 | # applicable elements, the whole pattern "*" is used. |
| 574 | "description": "A String", # Description of the selected API(s). |
| 575 | }, |
| 576 | ], |
| 577 | "serviceRootUrl": "A String", # Specifies the service root url if the default one (the service name |
| 578 | # from the yaml file) is not suitable. This can be seen in any fully |
| 579 | # specified service urls as well as sections that show a base that other |
| 580 | # urls are relative to. |
| 581 | }, |
Bu Sun Kim | 4ed7d3f | 2020-05-27 12:20:54 -0700 | [diff] [blame] | 582 | "authentication": { # `Authentication` defines the authentication configuration for an API. # Auth configuration. Contains only the OAuth rules. |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 583 | # |
Bu Sun Kim | 4ed7d3f | 2020-05-27 12:20:54 -0700 | [diff] [blame] | 584 | # Example for an API targeted for external use: |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 585 | # |
Bu Sun Kim | 4ed7d3f | 2020-05-27 12:20:54 -0700 | [diff] [blame] | 586 | # name: calendar.googleapis.com |
| 587 | # authentication: |
| 588 | # providers: |
| 589 | # - id: google_calendar_auth |
| 590 | # jwks_uri: https://www.googleapis.com/oauth2/v1/certs |
| 591 | # issuer: https://securetoken.google.com |
| 592 | # rules: |
| 593 | # - selector: "*" |
| 594 | # requirements: |
| 595 | # provider_id: google_calendar_auth |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame^] | 596 | "rules": [ # A list of authentication rules that apply to individual API methods. |
| 597 | # |
| 598 | # **NOTE:** All service configuration rules follow "last one wins" order. |
| 599 | { # Authentication rules for the service. |
| 600 | # |
| 601 | # By default, if a method has any authentication requirements, every request |
| 602 | # must include a valid credential matching one of the requirements. |
| 603 | # It's an error to include more than one kind of credential in a single |
| 604 | # request. |
| 605 | # |
| 606 | # If a method doesn't have any auth requirements, request credentials will be |
| 607 | # ignored. |
| 608 | "oauth": { # OAuth scopes are a way to define data and permissions on data. For example, # The requirements for OAuth credentials. |
| 609 | # there are scopes defined for "Read-only access to Google Calendar" and |
| 610 | # "Access to Cloud Platform". Users can consent to a scope for an application, |
| 611 | # giving it permission to access that data on their behalf. |
| 612 | # |
| 613 | # OAuth scope specifications should be fairly coarse grained; a user will need |
| 614 | # to see and understand the text description of what your scope means. |
| 615 | # |
| 616 | # In most cases: use one or at most two OAuth scopes for an entire family of |
| 617 | # products. If your product has multiple APIs, you should probably be sharing |
| 618 | # the OAuth scope across all of those APIs. |
| 619 | # |
| 620 | # When you need finer grained OAuth consent screens: talk with your product |
| 621 | # management about how developers will use them in practice. |
| 622 | # |
| 623 | # Please note that even though each of the canonical scopes is enough for a |
| 624 | # request to be accepted and passed to the backend, a request can still fail |
| 625 | # due to the backend requiring additional scopes or permissions. |
| 626 | "canonicalScopes": "A String", # The list of publicly documented OAuth scopes that are allowed access. An |
| 627 | # OAuth token containing any of these scopes will be accepted. |
| 628 | # |
| 629 | # Example: |
| 630 | # |
| 631 | # canonical_scopes: https://www.googleapis.com/auth/calendar, |
| 632 | # https://www.googleapis.com/auth/calendar.read |
| 633 | }, |
| 634 | "allowWithoutCredential": True or False, # If true, the service accepts API keys without any other credential. |
| 635 | "selector": "A String", # Selects the methods to which this rule applies. |
| 636 | # |
| 637 | # Refer to selector for syntax details. |
| 638 | "requirements": [ # Requirements for additional authentication providers. |
| 639 | { # User-defined authentication requirements, including support for |
| 640 | # [JSON Web Token |
| 641 | # (JWT)](https://tools.ietf.org/html/draft-ietf-oauth-json-web-token-32). |
| 642 | "providerId": "A String", # id from authentication provider. |
| 643 | # |
| 644 | # Example: |
| 645 | # |
| 646 | # provider_id: bookstore_auth |
| 647 | "audiences": "A String", # NOTE: This will be deprecated soon, once AuthProvider.audiences is |
| 648 | # implemented and accepted in all the runtime components. |
| 649 | # |
| 650 | # The list of JWT |
| 651 | # [audiences](https://tools.ietf.org/html/draft-ietf-oauth-json-web-token-32#section-4.1.3). |
| 652 | # that are allowed to access. A JWT containing any of these audiences will |
| 653 | # be accepted. When this setting is absent, only JWTs with audience |
| 654 | # "https://Service_name/API_name" |
| 655 | # will be accepted. For example, if no audiences are in the setting, |
| 656 | # LibraryService API will only accept JWTs with the following audience |
| 657 | # "https://library-example.googleapis.com/google.example.library.v1.LibraryService". |
| 658 | # |
| 659 | # Example: |
| 660 | # |
| 661 | # audiences: bookstore_android.apps.googleusercontent.com, |
| 662 | # bookstore_web.apps.googleusercontent.com |
| 663 | }, |
| 664 | ], |
| 665 | }, |
| 666 | ], |
Bu Sun Kim | 4ed7d3f | 2020-05-27 12:20:54 -0700 | [diff] [blame] | 667 | "providers": [ # Defines a set of authentication providers that a service supports. |
| 668 | { # Configuration for an authentication provider, including support for |
| 669 | # [JSON Web Token |
| 670 | # (JWT)](https://tools.ietf.org/html/draft-ietf-oauth-json-web-token-32). |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame^] | 671 | "jwksUri": "A String", # URL of the provider's public key set to validate signature of the JWT. See |
| 672 | # [OpenID |
| 673 | # Discovery](https://openid.net/specs/openid-connect-discovery-1_0.html#ProviderMetadata). |
| 674 | # Optional if the key set document: |
| 675 | # - can be retrieved from |
| 676 | # [OpenID |
| 677 | # Discovery](https://openid.net/specs/openid-connect-discovery-1_0.html of |
| 678 | # the issuer. |
| 679 | # - can be inferred from the email domain of the issuer (e.g. a Google |
| 680 | # service account). |
| 681 | # |
| 682 | # Example: https://www.googleapis.com/oauth2/v1/certs |
| 683 | "authorizationUrl": "A String", # Redirect URL if JWT token is required but not present or is expired. |
| 684 | # Implement authorizationUrl of securityDefinitions in OpenAPI spec. |
Bu Sun Kim | 4ed7d3f | 2020-05-27 12:20:54 -0700 | [diff] [blame] | 685 | "audiences": "A String", # The list of JWT |
| 686 | # [audiences](https://tools.ietf.org/html/draft-ietf-oauth-json-web-token-32#section-4.1.3). |
| 687 | # that are allowed to access. A JWT containing any of these audiences will |
| 688 | # be accepted. When this setting is absent, JWTs with audiences: |
| 689 | # - "https://[service.name]/[google.protobuf.Api.name]" |
| 690 | # - "https://[service.name]/" |
| 691 | # will be accepted. |
| 692 | # For example, if no audiences are in the setting, LibraryService API will |
| 693 | # accept JWTs with the following audiences: |
| 694 | # - |
| 695 | # https://library-example.googleapis.com/google.example.library.v1.LibraryService |
| 696 | # - https://library-example.googleapis.com/ |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 697 | # |
Bu Sun Kim | 4ed7d3f | 2020-05-27 12:20:54 -0700 | [diff] [blame] | 698 | # Example: |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 699 | # |
Bu Sun Kim | 4ed7d3f | 2020-05-27 12:20:54 -0700 | [diff] [blame] | 700 | # audiences: bookstore_android.apps.googleusercontent.com, |
| 701 | # bookstore_web.apps.googleusercontent.com |
Bu Sun Kim | 4ed7d3f | 2020-05-27 12:20:54 -0700 | [diff] [blame] | 702 | "jwtLocations": [ # Defines the locations to extract the JWT. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 703 | # |
Bu Sun Kim | 4ed7d3f | 2020-05-27 12:20:54 -0700 | [diff] [blame] | 704 | # JWT locations can be either from HTTP headers or URL query parameters. |
| 705 | # The rule is that the first match wins. The checking order is: checking |
| 706 | # all headers first, then URL query parameters. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 707 | # |
Bu Sun Kim | 4ed7d3f | 2020-05-27 12:20:54 -0700 | [diff] [blame] | 708 | # If not specified, default to use following 3 locations: |
| 709 | # 1) Authorization: Bearer |
| 710 | # 2) x-goog-iap-jwt-assertion |
| 711 | # 3) access_token query parameter |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 712 | # |
Bu Sun Kim | 4ed7d3f | 2020-05-27 12:20:54 -0700 | [diff] [blame] | 713 | # Default locations can be specified as followings: |
| 714 | # jwt_locations: |
| 715 | # - header: Authorization |
| 716 | # value_prefix: "Bearer " |
| 717 | # - header: x-goog-iap-jwt-assertion |
| 718 | # - query: access_token |
| 719 | { # Specifies a location to extract JWT from an API request. |
| 720 | "valuePrefix": "A String", # The value prefix. The value format is "value_prefix{token}" |
| 721 | # Only applies to "in" header type. Must be empty for "in" query type. |
| 722 | # If not empty, the header value has to match (case sensitive) this prefix. |
| 723 | # If not matched, JWT will not be extracted. If matched, JWT will be |
| 724 | # extracted after the prefix is removed. |
| 725 | # |
| 726 | # For example, for "Authorization: Bearer {JWT}", |
| 727 | # value_prefix="Bearer " with a space at the end. |
| 728 | "header": "A String", # Specifies HTTP header name to extract JWT token. |
| 729 | "query": "A String", # Specifies URL query parameter name to extract JWT token. |
| 730 | }, |
| 731 | ], |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame^] | 732 | "id": "A String", # The unique identifier of the auth provider. It will be referred to by |
| 733 | # `AuthRequirement.provider_id`. |
| 734 | # |
| 735 | # Example: "bookstore_auth". |
Bu Sun Kim | 4ed7d3f | 2020-05-27 12:20:54 -0700 | [diff] [blame] | 736 | "issuer": "A String", # Identifies the principal that issued the JWT. See |
| 737 | # https://tools.ietf.org/html/draft-ietf-oauth-json-web-token-32#section-4.1.1 |
| 738 | # Usually a URL or an email address. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 739 | # |
Bu Sun Kim | 4ed7d3f | 2020-05-27 12:20:54 -0700 | [diff] [blame] | 740 | # Example: https://securetoken.google.com |
| 741 | # Example: 1234567-compute@developer.gserviceaccount.com |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 742 | }, |
| 743 | ], |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 744 | }, |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame^] | 745 | "title": "A String", # The product title for this service. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 746 | "apis": [ # A list of API interfaces exported by this service. Contains only the names, |
| 747 | # versions, and method names of the interfaces. |
| 748 | { # Api is a light-weight descriptor for an API Interface. |
| 749 | # |
| 750 | # Interfaces are also described as "protocol buffer services" in some contexts, |
| 751 | # such as by the "service" keyword in a .proto file, but they are different |
| 752 | # from API Services, which represent a concrete implementation of an interface |
| 753 | # as opposed to simply a description of methods and bindings. They are also |
| 754 | # sometimes simply referred to as "APIs" in other contexts, such as the name of |
| 755 | # this message itself. See https://cloud.google.com/apis/design/glossary for |
| 756 | # detailed terminology. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 757 | "sourceContext": { # `SourceContext` represents information about the source of a # Source context for the protocol buffer service represented by this |
| 758 | # message. |
| 759 | # protobuf element, like the file in which it is defined. |
| 760 | "fileName": "A String", # The path-qualified name of the .proto file that contained the associated |
| 761 | # protobuf element. For example: `"google/protobuf/source_context.proto"`. |
| 762 | }, |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame^] | 763 | "name": "A String", # The fully qualified name of this interface, including package name |
| 764 | # followed by the interface's simple name. |
Bu Sun Kim | 4ed7d3f | 2020-05-27 12:20:54 -0700 | [diff] [blame] | 765 | "methods": [ # The methods of this interface, in unspecified order. |
| 766 | { # Method represents a method of an API interface. |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame^] | 767 | "requestStreaming": True or False, # If true, the request is streamed. |
Bu Sun Kim | 4ed7d3f | 2020-05-27 12:20:54 -0700 | [diff] [blame] | 768 | "options": [ # Any metadata attached to the method. |
| 769 | { # A protocol buffer option, which can be attached to a message, field, |
| 770 | # enumeration, etc. |
Bu Sun Kim | 4ed7d3f | 2020-05-27 12:20:54 -0700 | [diff] [blame] | 771 | "value": { # The option's value packed in an Any message. If the value is a primitive, |
| 772 | # the corresponding wrapper type defined in google/protobuf/wrappers.proto |
| 773 | # should be used. If the value is an enum, it should be stored as an int32 |
| 774 | # value using the google.protobuf.Int32Value type. |
| 775 | "a_key": "", # Properties of the object. Contains field @type with type URL. |
| 776 | }, |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame^] | 777 | "name": "A String", # The option's name. For protobuf built-in options (options defined in |
| 778 | # descriptor.proto), this is the short name. For example, `"map_entry"`. |
| 779 | # For custom options, it should be the fully-qualified name. For example, |
| 780 | # `"google.api.http"`. |
Bu Sun Kim | 4ed7d3f | 2020-05-27 12:20:54 -0700 | [diff] [blame] | 781 | }, |
| 782 | ], |
Bu Sun Kim | 4ed7d3f | 2020-05-27 12:20:54 -0700 | [diff] [blame] | 783 | "responseStreaming": True or False, # If true, the response is streamed. |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame^] | 784 | "syntax": "A String", # The source syntax of this method. |
| 785 | "name": "A String", # The simple name of this method. |
| 786 | "responseTypeUrl": "A String", # The URL of the output message type. |
| 787 | "requestTypeUrl": "A String", # A URL of the input message type. |
Bu Sun Kim | 4ed7d3f | 2020-05-27 12:20:54 -0700 | [diff] [blame] | 788 | }, |
| 789 | ], |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 790 | "mixins": [ # Included interfaces. See Mixin. |
| 791 | { # Declares an API Interface to be included in this interface. The including |
| 792 | # interface must redeclare all the methods from the included interface, but |
| 793 | # documentation and options are inherited as follows: |
| 794 | # |
| 795 | # - If after comment and whitespace stripping, the documentation |
| 796 | # string of the redeclared method is empty, it will be inherited |
| 797 | # from the original method. |
| 798 | # |
| 799 | # - Each annotation belonging to the service config (http, |
| 800 | # visibility) which is not set in the redeclared method will be |
| 801 | # inherited. |
| 802 | # |
| 803 | # - If an http annotation is inherited, the path pattern will be |
| 804 | # modified as follows. Any version prefix will be replaced by the |
| 805 | # version of the including interface plus the root path if |
| 806 | # specified. |
| 807 | # |
| 808 | # Example of a simple mixin: |
| 809 | # |
| 810 | # package google.acl.v1; |
| 811 | # service AccessControl { |
| 812 | # // Get the underlying ACL object. |
| 813 | # rpc GetAcl(GetAclRequest) returns (Acl) { |
| 814 | # option (google.api.http).get = "/v1/{resource=**}:getAcl"; |
| 815 | # } |
| 816 | # } |
| 817 | # |
| 818 | # package google.storage.v2; |
| 819 | # service Storage { |
| 820 | # // rpc GetAcl(GetAclRequest) returns (Acl); |
| 821 | # |
| 822 | # // Get a data record. |
| 823 | # rpc GetData(GetDataRequest) returns (Data) { |
| 824 | # option (google.api.http).get = "/v2/{resource=**}"; |
| 825 | # } |
| 826 | # } |
| 827 | # |
| 828 | # Example of a mixin configuration: |
| 829 | # |
| 830 | # apis: |
| 831 | # - name: google.storage.v2.Storage |
| 832 | # mixins: |
| 833 | # - name: google.acl.v1.AccessControl |
| 834 | # |
| 835 | # The mixin construct implies that all methods in `AccessControl` are |
| 836 | # also declared with same name and request/response types in |
| 837 | # `Storage`. A documentation generator or annotation processor will |
| 838 | # see the effective `Storage.GetAcl` method after inherting |
| 839 | # documentation and annotations as follows: |
| 840 | # |
| 841 | # service Storage { |
| 842 | # // Get the underlying ACL object. |
| 843 | # rpc GetAcl(GetAclRequest) returns (Acl) { |
| 844 | # option (google.api.http).get = "/v2/{resource=**}:getAcl"; |
| 845 | # } |
| 846 | # ... |
| 847 | # } |
| 848 | # |
| 849 | # Note how the version in the path pattern changed from `v1` to `v2`. |
| 850 | # |
| 851 | # If the `root` field in the mixin is specified, it should be a |
| 852 | # relative path under which inherited HTTP paths are placed. Example: |
| 853 | # |
| 854 | # apis: |
| 855 | # - name: google.storage.v2.Storage |
| 856 | # mixins: |
| 857 | # - name: google.acl.v1.AccessControl |
| 858 | # root: acls |
| 859 | # |
| 860 | # This implies the following inherited HTTP annotation: |
| 861 | # |
| 862 | # service Storage { |
| 863 | # // Get the underlying ACL object. |
| 864 | # rpc GetAcl(GetAclRequest) returns (Acl) { |
| 865 | # option (google.api.http).get = "/v2/acls/{resource=**}:getAcl"; |
| 866 | # } |
| 867 | # ... |
| 868 | # } |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame^] | 869 | "name": "A String", # The fully qualified name of the interface which is included. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 870 | "root": "A String", # If non-empty specifies a path under which inherited HTTP paths |
| 871 | # are rooted. |
| 872 | }, |
| 873 | ], |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame^] | 874 | "syntax": "A String", # The source syntax of the service. |
| 875 | "options": [ # Any metadata attached to the interface. |
| 876 | { # A protocol buffer option, which can be attached to a message, field, |
| 877 | # enumeration, etc. |
| 878 | "value": { # The option's value packed in an Any message. If the value is a primitive, |
| 879 | # the corresponding wrapper type defined in google/protobuf/wrappers.proto |
| 880 | # should be used. If the value is an enum, it should be stored as an int32 |
| 881 | # value using the google.protobuf.Int32Value type. |
| 882 | "a_key": "", # Properties of the object. Contains field @type with type URL. |
| 883 | }, |
| 884 | "name": "A String", # The option's name. For protobuf built-in options (options defined in |
| 885 | # descriptor.proto), this is the short name. For example, `"map_entry"`. |
| 886 | # For custom options, it should be the fully-qualified name. For example, |
| 887 | # `"google.api.http"`. |
| 888 | }, |
| 889 | ], |
| 890 | "version": "A String", # A version string for this interface. If specified, must have the form |
| 891 | # `major-version.minor-version`, as in `1.10`. If the minor version is |
| 892 | # omitted, it defaults to zero. If the entire version field is empty, the |
| 893 | # major version is derived from the package name, as outlined below. If the |
| 894 | # field is not empty, the version in the package name will be verified to be |
| 895 | # consistent with what is provided here. |
| 896 | # |
| 897 | # The versioning schema uses [semantic |
| 898 | # versioning](http://semver.org) where the major version number |
| 899 | # indicates a breaking change and the minor version an additive, |
| 900 | # non-breaking change. Both version numbers are signals to users |
| 901 | # what to expect from different versions, and should be carefully |
| 902 | # chosen based on the product plan. |
| 903 | # |
| 904 | # The major version is also reflected in the package name of the |
| 905 | # interface, which must end in `v<major-version>`, as in |
| 906 | # `google.feature.v1`. For major versions 0 and 1, the suffix can |
| 907 | # be omitted. Zero major versions must only be used for |
| 908 | # experimental, non-GA interfaces. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 909 | }, |
| 910 | ], |
Bu Sun Kim | 4ed7d3f | 2020-05-27 12:20:54 -0700 | [diff] [blame] | 911 | "name": "A String", # The DNS address at which this service is available. |
| 912 | # |
| 913 | # An example DNS address would be: |
| 914 | # `calendar.googleapis.com`. |
Dan O'Meara | dd49464 | 2020-05-01 07:42:23 -0700 | [diff] [blame] | 915 | }, |
Bu Sun Kim | 4ed7d3f | 2020-05-27 12:20:54 -0700 | [diff] [blame] | 916 | "name": "A String", # The resource name of the consumer and service. |
Dan O'Meara | dd49464 | 2020-05-01 07:42:23 -0700 | [diff] [blame] | 917 | # |
| 918 | # A valid name would be: |
Bu Sun Kim | 4ed7d3f | 2020-05-27 12:20:54 -0700 | [diff] [blame] | 919 | # - projects/123/services/serviceusage.googleapis.com |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame^] | 920 | "parent": "A String", # The resource name of the consumer. |
| 921 | # |
| 922 | # A valid name would be: |
| 923 | # - projects/123 |
Dan O'Meara | dd49464 | 2020-05-01 07:42:23 -0700 | [diff] [blame] | 924 | }, |
| 925 | ], |
| 926 | }</pre> |
| 927 | </div> |
| 928 | |
| 929 | <div class="method"> |
| 930 | <code class="details" id="disable">disable(name, body=None, x__xgafv=None)</code> |
| 931 | <pre>Disable a service so that it can no longer be used with a project. |
| 932 | This prevents unintended usage that may cause unexpected billing |
| 933 | charges or security leaks. |
| 934 | |
| 935 | It is not valid to call the disable method on a service that is not |
| 936 | currently enabled. Callers will receive a `FAILED_PRECONDITION` status if |
| 937 | the target service is not currently enabled. |
| 938 | |
| 939 | Args: |
| 940 | name: string, Name of the consumer and service to disable the service on. |
| 941 | |
| 942 | The enable and disable methods currently only support projects. |
| 943 | |
| 944 | An example name would be: |
| 945 | `projects/123/services/serviceusage.googleapis.com` where `123` is the |
| 946 | project number. (required) |
| 947 | body: object, The request body. |
| 948 | The object takes the form of: |
| 949 | |
| 950 | { # Request message for the `DisableService` method. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 951 | "disableDependentServices": True or False, # Indicates if services that are enabled and which depend on this service |
Dan O'Meara | dd49464 | 2020-05-01 07:42:23 -0700 | [diff] [blame] | 952 | # should also be disabled. If not set, an error will be generated if any |
| 953 | # enabled services depend on the service to be disabled. When set, the |
| 954 | # service, and any enabled services that depend on it, will be disabled |
| 955 | # together. |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame^] | 956 | "checkIfServiceHasUsage": "A String", # Defines the behavior for checking service usage when disabling a service. |
Dan O'Meara | dd49464 | 2020-05-01 07:42:23 -0700 | [diff] [blame] | 957 | } |
| 958 | |
| 959 | x__xgafv: string, V1 error format. |
| 960 | Allowed values |
| 961 | 1 - v1 error format |
| 962 | 2 - v2 error format |
| 963 | |
| 964 | Returns: |
| 965 | An object of the form: |
| 966 | |
| 967 | { # This resource represents a long-running operation that is the result of a |
| 968 | # network API call. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 969 | "error": { # The `Status` type defines a logical error model that is suitable for # The error result of the operation in case of failure or cancellation. |
| 970 | # different programming environments, including REST APIs and RPC APIs. It is |
| 971 | # used by [gRPC](https://github.com/grpc). Each `Status` message contains |
| 972 | # three pieces of data: error code, error message, and error details. |
| 973 | # |
| 974 | # You can find out more about this error model and how to work with it in the |
| 975 | # [API Design Guide](https://cloud.google.com/apis/design/errors). |
Bu Sun Kim | 4ed7d3f | 2020-05-27 12:20:54 -0700 | [diff] [blame] | 976 | "message": "A String", # A developer-facing error message, which should be in English. Any |
| 977 | # user-facing error message should be localized and sent in the |
| 978 | # google.rpc.Status.details field, or localized by the client. |
| 979 | "code": 42, # The status code, which should be an enum value of google.rpc.Code. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 980 | "details": [ # A list of messages that carry the error details. There is a common set of |
| 981 | # message types for APIs to use. |
| 982 | { |
| 983 | "a_key": "", # Properties of the object. Contains field @type with type URL. |
| 984 | }, |
| 985 | ], |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 986 | }, |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame^] | 987 | "metadata": { # Service-specific metadata associated with the operation. It typically |
| 988 | # contains progress information and common metadata such as create time. |
| 989 | # Some services might not provide such metadata. Any method that returns a |
| 990 | # long-running operation should document the metadata type, if any. |
| 991 | "a_key": "", # Properties of the object. Contains field @type with type URL. |
| 992 | }, |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 993 | "response": { # The normal response of the operation in case of success. If the original |
Dan O'Meara | dd49464 | 2020-05-01 07:42:23 -0700 | [diff] [blame] | 994 | # method returns no data on success, such as `Delete`, the response is |
| 995 | # `google.protobuf.Empty`. If the original method is standard |
| 996 | # `Get`/`Create`/`Update`, the response should be the resource. For other |
| 997 | # methods, the response should have the type `XxxResponse`, where `Xxx` |
| 998 | # is the original method name. For example, if the original method name |
| 999 | # is `TakeSnapshot()`, the inferred response type is |
| 1000 | # `TakeSnapshotResponse`. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 1001 | "a_key": "", # Properties of the object. Contains field @type with type URL. |
Dan O'Meara | dd49464 | 2020-05-01 07:42:23 -0700 | [diff] [blame] | 1002 | }, |
Bu Sun Kim | 4ed7d3f | 2020-05-27 12:20:54 -0700 | [diff] [blame] | 1003 | "name": "A String", # The server-assigned name, which is only unique within the same service that |
| 1004 | # originally returns it. If you use the default HTTP mapping, the |
| 1005 | # `name` should be a resource name ending with `operations/{unique_id}`. |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame^] | 1006 | "done": True or False, # If the value is `false`, it means the operation is still in progress. |
| 1007 | # If `true`, the operation is completed, and either `error` or `response` is |
| 1008 | # available. |
Dan O'Meara | dd49464 | 2020-05-01 07:42:23 -0700 | [diff] [blame] | 1009 | }</pre> |
| 1010 | </div> |
| 1011 | |
| 1012 | <div class="method"> |
| 1013 | <code class="details" id="enable">enable(name, body=None, x__xgafv=None)</code> |
| 1014 | <pre>Enable a service so that it can be used with a project. |
| 1015 | |
| 1016 | Args: |
| 1017 | name: string, Name of the consumer and service to enable the service on. |
| 1018 | |
| 1019 | The `EnableService` and `DisableService` methods currently only support |
| 1020 | projects. |
| 1021 | |
| 1022 | Enabling a service requires that the service is public or is shared with |
| 1023 | the user enabling the service. |
| 1024 | |
| 1025 | An example name would be: |
| 1026 | `projects/123/services/serviceusage.googleapis.com` where `123` is the |
| 1027 | project number. (required) |
| 1028 | body: object, The request body. |
| 1029 | The object takes the form of: |
| 1030 | |
| 1031 | { # Request message for the `EnableService` method. |
| 1032 | } |
| 1033 | |
| 1034 | x__xgafv: string, V1 error format. |
| 1035 | Allowed values |
| 1036 | 1 - v1 error format |
| 1037 | 2 - v2 error format |
| 1038 | |
| 1039 | Returns: |
| 1040 | An object of the form: |
| 1041 | |
| 1042 | { # This resource represents a long-running operation that is the result of a |
| 1043 | # network API call. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 1044 | "error": { # The `Status` type defines a logical error model that is suitable for # The error result of the operation in case of failure or cancellation. |
| 1045 | # different programming environments, including REST APIs and RPC APIs. It is |
| 1046 | # used by [gRPC](https://github.com/grpc). Each `Status` message contains |
| 1047 | # three pieces of data: error code, error message, and error details. |
| 1048 | # |
| 1049 | # You can find out more about this error model and how to work with it in the |
| 1050 | # [API Design Guide](https://cloud.google.com/apis/design/errors). |
Bu Sun Kim | 4ed7d3f | 2020-05-27 12:20:54 -0700 | [diff] [blame] | 1051 | "message": "A String", # A developer-facing error message, which should be in English. Any |
| 1052 | # user-facing error message should be localized and sent in the |
| 1053 | # google.rpc.Status.details field, or localized by the client. |
| 1054 | "code": 42, # The status code, which should be an enum value of google.rpc.Code. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 1055 | "details": [ # A list of messages that carry the error details. There is a common set of |
| 1056 | # message types for APIs to use. |
| 1057 | { |
| 1058 | "a_key": "", # Properties of the object. Contains field @type with type URL. |
| 1059 | }, |
| 1060 | ], |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 1061 | }, |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame^] | 1062 | "metadata": { # Service-specific metadata associated with the operation. It typically |
| 1063 | # contains progress information and common metadata such as create time. |
| 1064 | # Some services might not provide such metadata. Any method that returns a |
| 1065 | # long-running operation should document the metadata type, if any. |
| 1066 | "a_key": "", # Properties of the object. Contains field @type with type URL. |
| 1067 | }, |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 1068 | "response": { # The normal response of the operation in case of success. If the original |
Dan O'Meara | dd49464 | 2020-05-01 07:42:23 -0700 | [diff] [blame] | 1069 | # method returns no data on success, such as `Delete`, the response is |
| 1070 | # `google.protobuf.Empty`. If the original method is standard |
| 1071 | # `Get`/`Create`/`Update`, the response should be the resource. For other |
| 1072 | # methods, the response should have the type `XxxResponse`, where `Xxx` |
| 1073 | # is the original method name. For example, if the original method name |
| 1074 | # is `TakeSnapshot()`, the inferred response type is |
| 1075 | # `TakeSnapshotResponse`. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 1076 | "a_key": "", # Properties of the object. Contains field @type with type URL. |
Dan O'Meara | dd49464 | 2020-05-01 07:42:23 -0700 | [diff] [blame] | 1077 | }, |
Bu Sun Kim | 4ed7d3f | 2020-05-27 12:20:54 -0700 | [diff] [blame] | 1078 | "name": "A String", # The server-assigned name, which is only unique within the same service that |
| 1079 | # originally returns it. If you use the default HTTP mapping, the |
| 1080 | # `name` should be a resource name ending with `operations/{unique_id}`. |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame^] | 1081 | "done": True or False, # If the value is `false`, it means the operation is still in progress. |
| 1082 | # If `true`, the operation is completed, and either `error` or `response` is |
| 1083 | # available. |
Dan O'Meara | dd49464 | 2020-05-01 07:42:23 -0700 | [diff] [blame] | 1084 | }</pre> |
| 1085 | </div> |
| 1086 | |
| 1087 | <div class="method"> |
| 1088 | <code class="details" id="get">get(name, x__xgafv=None)</code> |
| 1089 | <pre>Returns the service configuration and enabled state for a given service. |
| 1090 | |
| 1091 | Args: |
| 1092 | name: string, Name of the consumer and service to get the `ConsumerState` for. |
| 1093 | |
| 1094 | An example name would be: |
| 1095 | `projects/123/services/serviceusage.googleapis.com` where `123` is the |
| 1096 | project number. (required) |
| 1097 | x__xgafv: string, V1 error format. |
| 1098 | Allowed values |
| 1099 | 1 - v1 error format |
| 1100 | 2 - v2 error format |
| 1101 | |
| 1102 | Returns: |
| 1103 | An object of the form: |
| 1104 | |
| 1105 | { # A service that is available for use by the consumer. |
Bu Sun Kim | 4ed7d3f | 2020-05-27 12:20:54 -0700 | [diff] [blame] | 1106 | "state": "A String", # Whether or not the service has been enabled for use by the consumer. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 1107 | "config": { # The configuration of the service. # The service configuration of the available service. |
Dan O'Meara | dd49464 | 2020-05-01 07:42:23 -0700 | [diff] [blame] | 1108 | # Some fields may be filtered out of the configuration in responses to |
| 1109 | # the `ListServices` method. These fields are present only in responses to |
| 1110 | # the `GetService` method. |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame^] | 1111 | "quota": { # Quota configuration helps to achieve fairness and budgeting in service # Quota configuration. |
| 1112 | # usage. |
| 1113 | # |
| 1114 | # The metric based quota configuration works this way: |
| 1115 | # - The service configuration defines a set of metrics. |
| 1116 | # - For API calls, the quota.metric_rules maps methods to metrics with |
| 1117 | # corresponding costs. |
| 1118 | # - The quota.limits defines limits on the metrics, which will be used for |
| 1119 | # quota checks at runtime. |
| 1120 | # |
| 1121 | # An example quota configuration in yaml format: |
| 1122 | # |
| 1123 | # quota: |
| 1124 | # limits: |
| 1125 | # |
| 1126 | # - name: apiWriteQpsPerProject |
| 1127 | # metric: library.googleapis.com/write_calls |
| 1128 | # unit: "1/min/{project}" # rate limit for consumer projects |
| 1129 | # values: |
| 1130 | # STANDARD: 10000 |
| 1131 | # |
| 1132 | # |
| 1133 | # # The metric rules bind all methods to the read_calls metric, |
| 1134 | # # except for the UpdateBook and DeleteBook methods. These two methods |
| 1135 | # # are mapped to the write_calls metric, with the UpdateBook method |
| 1136 | # # consuming at twice rate as the DeleteBook method. |
| 1137 | # metric_rules: |
| 1138 | # - selector: "*" |
| 1139 | # metric_costs: |
| 1140 | # library.googleapis.com/read_calls: 1 |
| 1141 | # - selector: google.example.library.v1.LibraryService.UpdateBook |
| 1142 | # metric_costs: |
| 1143 | # library.googleapis.com/write_calls: 2 |
| 1144 | # - selector: google.example.library.v1.LibraryService.DeleteBook |
| 1145 | # metric_costs: |
| 1146 | # library.googleapis.com/write_calls: 1 |
| 1147 | # |
| 1148 | # Corresponding Metric definition: |
| 1149 | # |
| 1150 | # metrics: |
| 1151 | # - name: library.googleapis.com/read_calls |
| 1152 | # display_name: Read requests |
| 1153 | # metric_kind: DELTA |
| 1154 | # value_type: INT64 |
| 1155 | # |
| 1156 | # - name: library.googleapis.com/write_calls |
| 1157 | # display_name: Write requests |
| 1158 | # metric_kind: DELTA |
| 1159 | # value_type: INT64 |
| 1160 | # |
| 1161 | "limits": [ # List of `QuotaLimit` definitions for the service. |
| 1162 | { # `QuotaLimit` defines a specific limit that applies over a specified duration |
| 1163 | # for a limit type. There can be at most one limit for a duration and limit |
| 1164 | # type combination defined within a `QuotaGroup`. |
| 1165 | "maxLimit": "A String", # Maximum number of tokens that can be consumed during the specified |
| 1166 | # duration. Client application developers can override the default limit up |
| 1167 | # to this maximum. If specified, this value cannot be set to a value less |
| 1168 | # than the default limit. If not specified, it is set to the default limit. |
| 1169 | # |
| 1170 | # To allow clients to apply overrides with no upper bound, set this to -1, |
| 1171 | # indicating unlimited maximum quota. |
| 1172 | # |
| 1173 | # Used by group-based quotas only. |
| 1174 | "name": "A String", # Name of the quota limit. |
| 1175 | # |
| 1176 | # The name must be provided, and it must be unique within the service. The |
| 1177 | # name can only include alphanumeric characters as well as '-'. |
| 1178 | # |
| 1179 | # The maximum length of the limit name is 64 characters. |
| 1180 | "metric": "A String", # The name of the metric this quota limit applies to. The quota limits with |
| 1181 | # the same metric will be checked together during runtime. The metric must be |
| 1182 | # defined within the service config. |
| 1183 | "description": "A String", # Optional. User-visible, extended description for this quota limit. |
| 1184 | # Should be used only when more context is needed to understand this limit |
| 1185 | # than provided by the limit's display name (see: `display_name`). |
| 1186 | "duration": "A String", # Duration of this limit in textual notation. Must be "100s" or "1d". |
| 1187 | # |
| 1188 | # Used by group-based quotas only. |
| 1189 | "unit": "A String", # Specify the unit of the quota limit. It uses the same syntax as |
| 1190 | # Metric.unit. The supported unit kinds are determined by the quota |
| 1191 | # backend system. |
| 1192 | # |
| 1193 | # Here are some examples: |
| 1194 | # * "1/min/{project}" for quota per minute per project. |
| 1195 | # |
| 1196 | # Note: the order of unit components is insignificant. |
| 1197 | # The "1" at the beginning is required to follow the metric unit syntax. |
| 1198 | "values": { # Tiered limit values. You must specify this as a key:value pair, with an |
| 1199 | # integer value that is the maximum number of requests allowed for the |
| 1200 | # specified unit. Currently only STANDARD is supported. |
| 1201 | "a_key": "A String", |
| 1202 | }, |
| 1203 | "defaultLimit": "A String", # Default number of tokens that can be consumed during the specified |
| 1204 | # duration. This is the number of tokens assigned when a client |
| 1205 | # application developer activates the service for his/her project. |
| 1206 | # |
| 1207 | # Specifying a value of 0 will block all requests. This can be used if you |
| 1208 | # are provisioning quota to selected consumers and blocking others. |
| 1209 | # Similarly, a value of -1 will indicate an unlimited quota. No other |
| 1210 | # negative values are allowed. |
| 1211 | # |
| 1212 | # Used by group-based quotas only. |
| 1213 | "freeTier": "A String", # Free tier value displayed in the Developers Console for this limit. |
| 1214 | # The free tier is the number of tokens that will be subtracted from the |
| 1215 | # billed amount when billing is enabled. |
| 1216 | # This field can only be set on a limit with duration "1d", in a billable |
| 1217 | # group; it is invalid on any other limit. If this field is not set, it |
| 1218 | # defaults to 0, indicating that there is no free tier for this service. |
| 1219 | # |
| 1220 | # Used by group-based quotas only. |
| 1221 | "displayName": "A String", # User-visible display name for this limit. |
| 1222 | # Optional. If not set, the UI will provide a default display name based on |
| 1223 | # the quota configuration. This field can be used to override the default |
| 1224 | # display name generated from the configuration. |
| 1225 | }, |
| 1226 | ], |
| 1227 | "metricRules": [ # List of `MetricRule` definitions, each one mapping a selected method to one |
| 1228 | # or more metrics. |
| 1229 | { # Bind API methods to metrics. Binding a method to a metric causes that |
| 1230 | # metric's configured quota behaviors to apply to the method call. |
| 1231 | "metricCosts": { # Metrics to update when the selected methods are called, and the associated |
| 1232 | # cost applied to each metric. |
| 1233 | # |
| 1234 | # The key of the map is the metric name, and the values are the amount |
| 1235 | # increased for the metric against which the quota limits are defined. |
| 1236 | # The value must not be negative. |
| 1237 | "a_key": "A String", |
| 1238 | }, |
| 1239 | "selector": "A String", # Selects the methods to which this rule applies. |
| 1240 | # |
| 1241 | # Refer to selector for syntax details. |
| 1242 | }, |
| 1243 | ], |
| 1244 | }, |
| 1245 | "endpoints": [ # Configuration for network endpoints. Contains only the names and aliases |
| 1246 | # of the endpoints. |
| 1247 | { # `Endpoint` describes a network endpoint that serves a set of APIs. |
| 1248 | # A service may expose any number of endpoints, and all endpoints share the |
| 1249 | # same service configuration, such as quota configuration and monitoring |
| 1250 | # configuration. |
| 1251 | # |
| 1252 | # Example service configuration: |
| 1253 | # |
| 1254 | # name: library-example.googleapis.com |
| 1255 | # endpoints: |
| 1256 | # # Below entry makes 'google.example.library.v1.Library' |
| 1257 | # # API be served from endpoint address library-example.googleapis.com. |
| 1258 | # # It also allows HTTP OPTIONS calls to be passed to the backend, for |
| 1259 | # # it to decide whether the subsequent cross-origin request is |
| 1260 | # # allowed to proceed. |
| 1261 | # - name: library-example.googleapis.com |
| 1262 | # allow_cors: true |
| 1263 | "name": "A String", # The canonical name of this endpoint. |
| 1264 | "aliases": [ # DEPRECATED: This field is no longer supported. Instead of using aliases, |
| 1265 | # please specify multiple google.api.Endpoint for each of the intended |
| 1266 | # aliases. |
| 1267 | # |
| 1268 | # Additional names that this endpoint will be hosted on. |
| 1269 | "A String", |
| 1270 | ], |
| 1271 | "target": "A String", # The specification of an Internet routable address of API frontend that will |
| 1272 | # handle requests to this [API |
| 1273 | # Endpoint](https://cloud.google.com/apis/design/glossary). It should be |
| 1274 | # either a valid IPv4 address or a fully-qualified domain name. For example, |
| 1275 | # "8.8.8.8" or "myservice.appspot.com". |
| 1276 | "allowCors": True or False, # Allowing |
| 1277 | # [CORS](https://en.wikipedia.org/wiki/Cross-origin_resource_sharing), aka |
| 1278 | # cross-domain traffic, would allow the backends served from this endpoint to |
| 1279 | # receive and respond to HTTP OPTIONS requests. The response will be used by |
| 1280 | # the browser to determine whether the subsequent cross-origin request is |
| 1281 | # allowed to proceed. |
| 1282 | }, |
| 1283 | ], |
| 1284 | "usage": { # Configuration controlling usage of a service. # Configuration controlling usage of this service. |
| 1285 | "serviceIdentity": { # The per-product per-project service identity for a service. # The configuration of a per-product per-project service identity. |
| 1286 | # |
| 1287 | # |
| 1288 | # Use this field to configure per-product per-project service identity. |
| 1289 | # Example of a service identity configuration. |
| 1290 | # |
| 1291 | # usage: |
| 1292 | # service_identity: |
| 1293 | # - service_account_parent: "projects/123456789" |
| 1294 | # display_name: "Cloud XXX Service Agent" |
| 1295 | # description: "Used as the identity of Cloud XXX to access resources" |
| 1296 | "displayName": "A String", # Optional. A user-specified name for the service account. |
| 1297 | # Must be less than or equal to 100 UTF-8 bytes. |
| 1298 | "description": "A String", # Optional. A user-specified opaque description of the service account. |
| 1299 | # Must be less than or equal to 256 UTF-8 bytes. |
| 1300 | "serviceAccountParent": "A String", # A service account project that hosts the service accounts. |
| 1301 | # |
| 1302 | # An example name would be: |
| 1303 | # `projects/123456789` |
| 1304 | }, |
| 1305 | "requirements": [ # Requirements that must be satisfied before a consumer project can use the |
| 1306 | # service. Each requirement is of the form <service.name>/<requirement-id>; |
| 1307 | # for example 'serviceusage.googleapis.com/billing-enabled'. |
| 1308 | "A String", |
| 1309 | ], |
| 1310 | "rules": [ # A list of usage rules that apply to individual API methods. |
| 1311 | # |
| 1312 | # **NOTE:** All service configuration rules follow "last one wins" order. |
| 1313 | { # Usage configuration rules for the service. |
| 1314 | # |
| 1315 | # NOTE: Under development. |
| 1316 | # |
| 1317 | # |
| 1318 | # Use this rule to configure unregistered calls for the service. Unregistered |
| 1319 | # calls are calls that do not contain consumer project identity. |
| 1320 | # (Example: calls that do not contain an API key). |
| 1321 | # By default, API methods do not allow unregistered calls, and each method call |
| 1322 | # must be identified by a consumer project identity. Use this rule to |
| 1323 | # allow/disallow unregistered calls. |
| 1324 | # |
| 1325 | # Example of an API that wants to allow unregistered calls for entire service. |
| 1326 | # |
| 1327 | # usage: |
| 1328 | # rules: |
| 1329 | # - selector: "*" |
| 1330 | # allow_unregistered_calls: true |
| 1331 | # |
| 1332 | # Example of a method that wants to allow unregistered calls. |
| 1333 | # |
| 1334 | # usage: |
| 1335 | # rules: |
| 1336 | # - selector: "google.example.library.v1.LibraryService.CreateBook" |
| 1337 | # allow_unregistered_calls: true |
| 1338 | "selector": "A String", # Selects the methods to which this rule applies. Use '*' to indicate all |
| 1339 | # methods in all APIs. |
| 1340 | # |
| 1341 | # Refer to selector for syntax details. |
| 1342 | "allowUnregisteredCalls": True or False, # If true, the selected method allows unregistered calls, e.g. calls |
| 1343 | # that don't identify any user or application. |
| 1344 | "skipServiceControl": True or False, # If true, the selected method should skip service control and the control |
| 1345 | # plane features, such as quota and billing, will not be available. |
| 1346 | # This flag is used by Google Cloud Endpoints to bypass checks for internal |
| 1347 | # methods, such as service health check methods. |
| 1348 | }, |
| 1349 | ], |
| 1350 | "producerNotificationChannel": "A String", # The full resource name of a channel used for sending notifications to the |
| 1351 | # service producer. |
| 1352 | # |
| 1353 | # Google Service Management currently only supports |
| 1354 | # [Google Cloud Pub/Sub](https://cloud.google.com/pubsub) as a notification |
| 1355 | # channel. To use Google Cloud Pub/Sub as the channel, this must be the name |
| 1356 | # of a Cloud Pub/Sub topic that uses the Cloud Pub/Sub topic name format |
| 1357 | # documented in https://cloud.google.com/pubsub/docs/overview. |
| 1358 | }, |
| 1359 | "documentation": { # `Documentation` provides the information for describing a service. # Additional API documentation. Contains only the summary and the |
| 1360 | # documentation URL. |
| 1361 | # |
| 1362 | # Example: |
| 1363 | # <pre><code>documentation: |
| 1364 | # summary: > |
| 1365 | # The Google Calendar API gives access |
| 1366 | # to most calendar features. |
| 1367 | # pages: |
| 1368 | # - name: Overview |
| 1369 | # content: &#40;== include google/foo/overview.md ==&#41; |
| 1370 | # - name: Tutorial |
| 1371 | # content: &#40;== include google/foo/tutorial.md ==&#41; |
| 1372 | # subpages; |
| 1373 | # - name: Java |
| 1374 | # content: &#40;== include google/foo/tutorial_java.md ==&#41; |
| 1375 | # rules: |
| 1376 | # - selector: google.calendar.Calendar.Get |
| 1377 | # description: > |
| 1378 | # ... |
| 1379 | # - selector: google.calendar.Calendar.Put |
| 1380 | # description: > |
| 1381 | # ... |
| 1382 | # </code></pre> |
| 1383 | # Documentation is provided in markdown syntax. In addition to |
| 1384 | # standard markdown features, definition lists, tables and fenced |
| 1385 | # code blocks are supported. Section headers can be provided and are |
| 1386 | # interpreted relative to the section nesting of the context where |
| 1387 | # a documentation fragment is embedded. |
| 1388 | # |
| 1389 | # Documentation from the IDL is merged with documentation defined |
| 1390 | # via the config at normalization time, where documentation provided |
| 1391 | # by config rules overrides IDL provided. |
| 1392 | # |
| 1393 | # A number of constructs specific to the API platform are supported |
| 1394 | # in documentation text. |
| 1395 | # |
| 1396 | # In order to reference a proto element, the following |
| 1397 | # notation can be used: |
| 1398 | # <pre><code>&#91;fully.qualified.proto.name]&#91;]</code></pre> |
| 1399 | # To override the display text used for the link, this can be used: |
| 1400 | # <pre><code>&#91;display text]&#91;fully.qualified.proto.name]</code></pre> |
| 1401 | # Text can be excluded from doc using the following notation: |
| 1402 | # <pre><code>&#40;-- internal comment --&#41;</code></pre> |
| 1403 | # |
| 1404 | # A few directives are available in documentation. Note that |
| 1405 | # directives must appear on a single line to be properly |
| 1406 | # identified. The `include` directive includes a markdown file from |
| 1407 | # an external source: |
| 1408 | # <pre><code>&#40;== include path/to/file ==&#41;</code></pre> |
| 1409 | # The `resource_for` directive marks a message to be the resource of |
| 1410 | # a collection in REST view. If it is not specified, tools attempt |
| 1411 | # to infer the resource from the operations in a collection: |
| 1412 | # <pre><code>&#40;== resource_for v1.shelves.books ==&#41;</code></pre> |
| 1413 | # The directive `suppress_warning` does not directly affect documentation |
| 1414 | # and is documented together with service config validation. |
| 1415 | "pages": [ # The top level pages for the documentation set. |
| 1416 | { # Represents a documentation page. A page can contain subpages to represent |
| 1417 | # nested documentation set structure. |
| 1418 | "name": "A String", # The name of the page. It will be used as an identity of the page to |
| 1419 | # generate URI of the page, text of the link to this page in navigation, |
| 1420 | # etc. The full page name (start from the root page name to this page |
| 1421 | # concatenated with `.`) can be used as reference to the page in your |
| 1422 | # documentation. For example: |
| 1423 | # <pre><code>pages: |
| 1424 | # - name: Tutorial |
| 1425 | # content: &#40;== include tutorial.md ==&#41; |
| 1426 | # subpages: |
| 1427 | # - name: Java |
| 1428 | # content: &#40;== include tutorial_java.md ==&#41; |
| 1429 | # </code></pre> |
| 1430 | # You can reference `Java` page using Markdown reference link syntax: |
| 1431 | # `Java`. |
| 1432 | "subpages": [ # Subpages of this page. The order of subpages specified here will be |
| 1433 | # honored in the generated docset. |
| 1434 | # Object with schema name: Page |
| 1435 | ], |
| 1436 | "content": "A String", # The Markdown content of the page. You can use <code>&#40;== include {path} |
| 1437 | # ==&#41;</code> to include content from a Markdown file. |
| 1438 | }, |
| 1439 | ], |
| 1440 | "summary": "A String", # A short summary of what the service does. Can only be provided by |
| 1441 | # plain text. |
| 1442 | "overview": "A String", # Declares a single overview page. For example: |
| 1443 | # <pre><code>documentation: |
| 1444 | # summary: ... |
| 1445 | # overview: &#40;== include overview.md ==&#41; |
| 1446 | # </code></pre> |
| 1447 | # This is a shortcut for the following declaration (using pages style): |
| 1448 | # <pre><code>documentation: |
| 1449 | # summary: ... |
| 1450 | # pages: |
| 1451 | # - name: Overview |
| 1452 | # content: &#40;== include overview.md ==&#41; |
| 1453 | # </code></pre> |
| 1454 | # Note: you cannot specify both `overview` field and `pages` field. |
| 1455 | "documentationRootUrl": "A String", # The URL to the root of documentation. |
| 1456 | "rules": [ # A list of documentation rules that apply to individual API elements. |
| 1457 | # |
| 1458 | # **NOTE:** All service configuration rules follow "last one wins" order. |
| 1459 | { # A documentation rule provides information about individual API elements. |
| 1460 | "deprecationDescription": "A String", # Deprecation description of the selected element(s). It can be provided if |
| 1461 | # an element is marked as `deprecated`. |
| 1462 | "selector": "A String", # The selector is a comma-separated list of patterns. Each pattern is a |
| 1463 | # qualified name of the element which may end in "*", indicating a wildcard. |
| 1464 | # Wildcards are only allowed at the end and for a whole component of the |
| 1465 | # qualified name, i.e. "foo.*" is ok, but not "foo.b*" or "foo.*.bar". A |
| 1466 | # wildcard will match one or more components. To specify a default for all |
| 1467 | # applicable elements, the whole pattern "*" is used. |
| 1468 | "description": "A String", # Description of the selected API(s). |
| 1469 | }, |
| 1470 | ], |
| 1471 | "serviceRootUrl": "A String", # Specifies the service root url if the default one (the service name |
| 1472 | # from the yaml file) is not suitable. This can be seen in any fully |
| 1473 | # specified service urls as well as sections that show a base that other |
| 1474 | # urls are relative to. |
| 1475 | }, |
Bu Sun Kim | 4ed7d3f | 2020-05-27 12:20:54 -0700 | [diff] [blame] | 1476 | "authentication": { # `Authentication` defines the authentication configuration for an API. # Auth configuration. Contains only the OAuth rules. |
Dan O'Meara | dd49464 | 2020-05-01 07:42:23 -0700 | [diff] [blame] | 1477 | # |
Bu Sun Kim | 4ed7d3f | 2020-05-27 12:20:54 -0700 | [diff] [blame] | 1478 | # Example for an API targeted for external use: |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 1479 | # |
Bu Sun Kim | 4ed7d3f | 2020-05-27 12:20:54 -0700 | [diff] [blame] | 1480 | # name: calendar.googleapis.com |
| 1481 | # authentication: |
| 1482 | # providers: |
| 1483 | # - id: google_calendar_auth |
| 1484 | # jwks_uri: https://www.googleapis.com/oauth2/v1/certs |
| 1485 | # issuer: https://securetoken.google.com |
| 1486 | # rules: |
| 1487 | # - selector: "*" |
| 1488 | # requirements: |
| 1489 | # provider_id: google_calendar_auth |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame^] | 1490 | "rules": [ # A list of authentication rules that apply to individual API methods. |
| 1491 | # |
| 1492 | # **NOTE:** All service configuration rules follow "last one wins" order. |
| 1493 | { # Authentication rules for the service. |
| 1494 | # |
| 1495 | # By default, if a method has any authentication requirements, every request |
| 1496 | # must include a valid credential matching one of the requirements. |
| 1497 | # It's an error to include more than one kind of credential in a single |
| 1498 | # request. |
| 1499 | # |
| 1500 | # If a method doesn't have any auth requirements, request credentials will be |
| 1501 | # ignored. |
| 1502 | "oauth": { # OAuth scopes are a way to define data and permissions on data. For example, # The requirements for OAuth credentials. |
| 1503 | # there are scopes defined for "Read-only access to Google Calendar" and |
| 1504 | # "Access to Cloud Platform". Users can consent to a scope for an application, |
| 1505 | # giving it permission to access that data on their behalf. |
| 1506 | # |
| 1507 | # OAuth scope specifications should be fairly coarse grained; a user will need |
| 1508 | # to see and understand the text description of what your scope means. |
| 1509 | # |
| 1510 | # In most cases: use one or at most two OAuth scopes for an entire family of |
| 1511 | # products. If your product has multiple APIs, you should probably be sharing |
| 1512 | # the OAuth scope across all of those APIs. |
| 1513 | # |
| 1514 | # When you need finer grained OAuth consent screens: talk with your product |
| 1515 | # management about how developers will use them in practice. |
| 1516 | # |
| 1517 | # Please note that even though each of the canonical scopes is enough for a |
| 1518 | # request to be accepted and passed to the backend, a request can still fail |
| 1519 | # due to the backend requiring additional scopes or permissions. |
| 1520 | "canonicalScopes": "A String", # The list of publicly documented OAuth scopes that are allowed access. An |
| 1521 | # OAuth token containing any of these scopes will be accepted. |
| 1522 | # |
| 1523 | # Example: |
| 1524 | # |
| 1525 | # canonical_scopes: https://www.googleapis.com/auth/calendar, |
| 1526 | # https://www.googleapis.com/auth/calendar.read |
| 1527 | }, |
| 1528 | "allowWithoutCredential": True or False, # If true, the service accepts API keys without any other credential. |
| 1529 | "selector": "A String", # Selects the methods to which this rule applies. |
| 1530 | # |
| 1531 | # Refer to selector for syntax details. |
| 1532 | "requirements": [ # Requirements for additional authentication providers. |
| 1533 | { # User-defined authentication requirements, including support for |
| 1534 | # [JSON Web Token |
| 1535 | # (JWT)](https://tools.ietf.org/html/draft-ietf-oauth-json-web-token-32). |
| 1536 | "providerId": "A String", # id from authentication provider. |
| 1537 | # |
| 1538 | # Example: |
| 1539 | # |
| 1540 | # provider_id: bookstore_auth |
| 1541 | "audiences": "A String", # NOTE: This will be deprecated soon, once AuthProvider.audiences is |
| 1542 | # implemented and accepted in all the runtime components. |
| 1543 | # |
| 1544 | # The list of JWT |
| 1545 | # [audiences](https://tools.ietf.org/html/draft-ietf-oauth-json-web-token-32#section-4.1.3). |
| 1546 | # that are allowed to access. A JWT containing any of these audiences will |
| 1547 | # be accepted. When this setting is absent, only JWTs with audience |
| 1548 | # "https://Service_name/API_name" |
| 1549 | # will be accepted. For example, if no audiences are in the setting, |
| 1550 | # LibraryService API will only accept JWTs with the following audience |
| 1551 | # "https://library-example.googleapis.com/google.example.library.v1.LibraryService". |
| 1552 | # |
| 1553 | # Example: |
| 1554 | # |
| 1555 | # audiences: bookstore_android.apps.googleusercontent.com, |
| 1556 | # bookstore_web.apps.googleusercontent.com |
| 1557 | }, |
| 1558 | ], |
| 1559 | }, |
| 1560 | ], |
Bu Sun Kim | 4ed7d3f | 2020-05-27 12:20:54 -0700 | [diff] [blame] | 1561 | "providers": [ # Defines a set of authentication providers that a service supports. |
| 1562 | { # Configuration for an authentication provider, including support for |
| 1563 | # [JSON Web Token |
| 1564 | # (JWT)](https://tools.ietf.org/html/draft-ietf-oauth-json-web-token-32). |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame^] | 1565 | "jwksUri": "A String", # URL of the provider's public key set to validate signature of the JWT. See |
| 1566 | # [OpenID |
| 1567 | # Discovery](https://openid.net/specs/openid-connect-discovery-1_0.html#ProviderMetadata). |
| 1568 | # Optional if the key set document: |
| 1569 | # - can be retrieved from |
| 1570 | # [OpenID |
| 1571 | # Discovery](https://openid.net/specs/openid-connect-discovery-1_0.html of |
| 1572 | # the issuer. |
| 1573 | # - can be inferred from the email domain of the issuer (e.g. a Google |
| 1574 | # service account). |
| 1575 | # |
| 1576 | # Example: https://www.googleapis.com/oauth2/v1/certs |
| 1577 | "authorizationUrl": "A String", # Redirect URL if JWT token is required but not present or is expired. |
| 1578 | # Implement authorizationUrl of securityDefinitions in OpenAPI spec. |
Bu Sun Kim | 4ed7d3f | 2020-05-27 12:20:54 -0700 | [diff] [blame] | 1579 | "audiences": "A String", # The list of JWT |
| 1580 | # [audiences](https://tools.ietf.org/html/draft-ietf-oauth-json-web-token-32#section-4.1.3). |
| 1581 | # that are allowed to access. A JWT containing any of these audiences will |
| 1582 | # be accepted. When this setting is absent, JWTs with audiences: |
| 1583 | # - "https://[service.name]/[google.protobuf.Api.name]" |
| 1584 | # - "https://[service.name]/" |
| 1585 | # will be accepted. |
| 1586 | # For example, if no audiences are in the setting, LibraryService API will |
| 1587 | # accept JWTs with the following audiences: |
| 1588 | # - |
| 1589 | # https://library-example.googleapis.com/google.example.library.v1.LibraryService |
| 1590 | # - https://library-example.googleapis.com/ |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 1591 | # |
Bu Sun Kim | 4ed7d3f | 2020-05-27 12:20:54 -0700 | [diff] [blame] | 1592 | # Example: |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 1593 | # |
Bu Sun Kim | 4ed7d3f | 2020-05-27 12:20:54 -0700 | [diff] [blame] | 1594 | # audiences: bookstore_android.apps.googleusercontent.com, |
| 1595 | # bookstore_web.apps.googleusercontent.com |
Bu Sun Kim | 4ed7d3f | 2020-05-27 12:20:54 -0700 | [diff] [blame] | 1596 | "jwtLocations": [ # Defines the locations to extract the JWT. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 1597 | # |
Bu Sun Kim | 4ed7d3f | 2020-05-27 12:20:54 -0700 | [diff] [blame] | 1598 | # JWT locations can be either from HTTP headers or URL query parameters. |
| 1599 | # The rule is that the first match wins. The checking order is: checking |
| 1600 | # all headers first, then URL query parameters. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 1601 | # |
Bu Sun Kim | 4ed7d3f | 2020-05-27 12:20:54 -0700 | [diff] [blame] | 1602 | # If not specified, default to use following 3 locations: |
| 1603 | # 1) Authorization: Bearer |
| 1604 | # 2) x-goog-iap-jwt-assertion |
| 1605 | # 3) access_token query parameter |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 1606 | # |
Bu Sun Kim | 4ed7d3f | 2020-05-27 12:20:54 -0700 | [diff] [blame] | 1607 | # Default locations can be specified as followings: |
| 1608 | # jwt_locations: |
| 1609 | # - header: Authorization |
| 1610 | # value_prefix: "Bearer " |
| 1611 | # - header: x-goog-iap-jwt-assertion |
| 1612 | # - query: access_token |
| 1613 | { # Specifies a location to extract JWT from an API request. |
| 1614 | "valuePrefix": "A String", # The value prefix. The value format is "value_prefix{token}" |
| 1615 | # Only applies to "in" header type. Must be empty for "in" query type. |
| 1616 | # If not empty, the header value has to match (case sensitive) this prefix. |
| 1617 | # If not matched, JWT will not be extracted. If matched, JWT will be |
| 1618 | # extracted after the prefix is removed. |
| 1619 | # |
| 1620 | # For example, for "Authorization: Bearer {JWT}", |
| 1621 | # value_prefix="Bearer " with a space at the end. |
| 1622 | "header": "A String", # Specifies HTTP header name to extract JWT token. |
| 1623 | "query": "A String", # Specifies URL query parameter name to extract JWT token. |
| 1624 | }, |
| 1625 | ], |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame^] | 1626 | "id": "A String", # The unique identifier of the auth provider. It will be referred to by |
| 1627 | # `AuthRequirement.provider_id`. |
| 1628 | # |
| 1629 | # Example: "bookstore_auth". |
Bu Sun Kim | 4ed7d3f | 2020-05-27 12:20:54 -0700 | [diff] [blame] | 1630 | "issuer": "A String", # Identifies the principal that issued the JWT. See |
| 1631 | # https://tools.ietf.org/html/draft-ietf-oauth-json-web-token-32#section-4.1.1 |
| 1632 | # Usually a URL or an email address. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 1633 | # |
Bu Sun Kim | 4ed7d3f | 2020-05-27 12:20:54 -0700 | [diff] [blame] | 1634 | # Example: https://securetoken.google.com |
| 1635 | # Example: 1234567-compute@developer.gserviceaccount.com |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 1636 | }, |
| 1637 | ], |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 1638 | }, |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame^] | 1639 | "title": "A String", # The product title for this service. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 1640 | "apis": [ # A list of API interfaces exported by this service. Contains only the names, |
| 1641 | # versions, and method names of the interfaces. |
| 1642 | { # Api is a light-weight descriptor for an API Interface. |
| 1643 | # |
| 1644 | # Interfaces are also described as "protocol buffer services" in some contexts, |
| 1645 | # such as by the "service" keyword in a .proto file, but they are different |
| 1646 | # from API Services, which represent a concrete implementation of an interface |
| 1647 | # as opposed to simply a description of methods and bindings. They are also |
| 1648 | # sometimes simply referred to as "APIs" in other contexts, such as the name of |
| 1649 | # this message itself. See https://cloud.google.com/apis/design/glossary for |
| 1650 | # detailed terminology. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 1651 | "sourceContext": { # `SourceContext` represents information about the source of a # Source context for the protocol buffer service represented by this |
| 1652 | # message. |
| 1653 | # protobuf element, like the file in which it is defined. |
| 1654 | "fileName": "A String", # The path-qualified name of the .proto file that contained the associated |
| 1655 | # protobuf element. For example: `"google/protobuf/source_context.proto"`. |
| 1656 | }, |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame^] | 1657 | "name": "A String", # The fully qualified name of this interface, including package name |
| 1658 | # followed by the interface's simple name. |
Bu Sun Kim | 4ed7d3f | 2020-05-27 12:20:54 -0700 | [diff] [blame] | 1659 | "methods": [ # The methods of this interface, in unspecified order. |
| 1660 | { # Method represents a method of an API interface. |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame^] | 1661 | "requestStreaming": True or False, # If true, the request is streamed. |
Bu Sun Kim | 4ed7d3f | 2020-05-27 12:20:54 -0700 | [diff] [blame] | 1662 | "options": [ # Any metadata attached to the method. |
| 1663 | { # A protocol buffer option, which can be attached to a message, field, |
| 1664 | # enumeration, etc. |
Bu Sun Kim | 4ed7d3f | 2020-05-27 12:20:54 -0700 | [diff] [blame] | 1665 | "value": { # The option's value packed in an Any message. If the value is a primitive, |
| 1666 | # the corresponding wrapper type defined in google/protobuf/wrappers.proto |
| 1667 | # should be used. If the value is an enum, it should be stored as an int32 |
| 1668 | # value using the google.protobuf.Int32Value type. |
| 1669 | "a_key": "", # Properties of the object. Contains field @type with type URL. |
| 1670 | }, |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame^] | 1671 | "name": "A String", # The option's name. For protobuf built-in options (options defined in |
| 1672 | # descriptor.proto), this is the short name. For example, `"map_entry"`. |
| 1673 | # For custom options, it should be the fully-qualified name. For example, |
| 1674 | # `"google.api.http"`. |
Bu Sun Kim | 4ed7d3f | 2020-05-27 12:20:54 -0700 | [diff] [blame] | 1675 | }, |
| 1676 | ], |
Bu Sun Kim | 4ed7d3f | 2020-05-27 12:20:54 -0700 | [diff] [blame] | 1677 | "responseStreaming": True or False, # If true, the response is streamed. |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame^] | 1678 | "syntax": "A String", # The source syntax of this method. |
| 1679 | "name": "A String", # The simple name of this method. |
| 1680 | "responseTypeUrl": "A String", # The URL of the output message type. |
| 1681 | "requestTypeUrl": "A String", # A URL of the input message type. |
Bu Sun Kim | 4ed7d3f | 2020-05-27 12:20:54 -0700 | [diff] [blame] | 1682 | }, |
| 1683 | ], |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 1684 | "mixins": [ # Included interfaces. See Mixin. |
| 1685 | { # Declares an API Interface to be included in this interface. The including |
| 1686 | # interface must redeclare all the methods from the included interface, but |
| 1687 | # documentation and options are inherited as follows: |
| 1688 | # |
| 1689 | # - If after comment and whitespace stripping, the documentation |
| 1690 | # string of the redeclared method is empty, it will be inherited |
| 1691 | # from the original method. |
| 1692 | # |
| 1693 | # - Each annotation belonging to the service config (http, |
| 1694 | # visibility) which is not set in the redeclared method will be |
| 1695 | # inherited. |
| 1696 | # |
| 1697 | # - If an http annotation is inherited, the path pattern will be |
| 1698 | # modified as follows. Any version prefix will be replaced by the |
| 1699 | # version of the including interface plus the root path if |
| 1700 | # specified. |
| 1701 | # |
| 1702 | # Example of a simple mixin: |
| 1703 | # |
| 1704 | # package google.acl.v1; |
| 1705 | # service AccessControl { |
| 1706 | # // Get the underlying ACL object. |
| 1707 | # rpc GetAcl(GetAclRequest) returns (Acl) { |
| 1708 | # option (google.api.http).get = "/v1/{resource=**}:getAcl"; |
| 1709 | # } |
| 1710 | # } |
| 1711 | # |
| 1712 | # package google.storage.v2; |
| 1713 | # service Storage { |
| 1714 | # // rpc GetAcl(GetAclRequest) returns (Acl); |
| 1715 | # |
| 1716 | # // Get a data record. |
| 1717 | # rpc GetData(GetDataRequest) returns (Data) { |
| 1718 | # option (google.api.http).get = "/v2/{resource=**}"; |
| 1719 | # } |
| 1720 | # } |
| 1721 | # |
| 1722 | # Example of a mixin configuration: |
| 1723 | # |
| 1724 | # apis: |
| 1725 | # - name: google.storage.v2.Storage |
| 1726 | # mixins: |
| 1727 | # - name: google.acl.v1.AccessControl |
| 1728 | # |
| 1729 | # The mixin construct implies that all methods in `AccessControl` are |
| 1730 | # also declared with same name and request/response types in |
| 1731 | # `Storage`. A documentation generator or annotation processor will |
| 1732 | # see the effective `Storage.GetAcl` method after inherting |
| 1733 | # documentation and annotations as follows: |
| 1734 | # |
| 1735 | # service Storage { |
| 1736 | # // Get the underlying ACL object. |
| 1737 | # rpc GetAcl(GetAclRequest) returns (Acl) { |
| 1738 | # option (google.api.http).get = "/v2/{resource=**}:getAcl"; |
| 1739 | # } |
| 1740 | # ... |
| 1741 | # } |
| 1742 | # |
| 1743 | # Note how the version in the path pattern changed from `v1` to `v2`. |
| 1744 | # |
| 1745 | # If the `root` field in the mixin is specified, it should be a |
| 1746 | # relative path under which inherited HTTP paths are placed. Example: |
| 1747 | # |
| 1748 | # apis: |
| 1749 | # - name: google.storage.v2.Storage |
| 1750 | # mixins: |
| 1751 | # - name: google.acl.v1.AccessControl |
| 1752 | # root: acls |
| 1753 | # |
| 1754 | # This implies the following inherited HTTP annotation: |
| 1755 | # |
| 1756 | # service Storage { |
| 1757 | # // Get the underlying ACL object. |
| 1758 | # rpc GetAcl(GetAclRequest) returns (Acl) { |
| 1759 | # option (google.api.http).get = "/v2/acls/{resource=**}:getAcl"; |
| 1760 | # } |
| 1761 | # ... |
| 1762 | # } |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame^] | 1763 | "name": "A String", # The fully qualified name of the interface which is included. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 1764 | "root": "A String", # If non-empty specifies a path under which inherited HTTP paths |
| 1765 | # are rooted. |
| 1766 | }, |
| 1767 | ], |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame^] | 1768 | "syntax": "A String", # The source syntax of the service. |
| 1769 | "options": [ # Any metadata attached to the interface. |
| 1770 | { # A protocol buffer option, which can be attached to a message, field, |
| 1771 | # enumeration, etc. |
| 1772 | "value": { # The option's value packed in an Any message. If the value is a primitive, |
| 1773 | # the corresponding wrapper type defined in google/protobuf/wrappers.proto |
| 1774 | # should be used. If the value is an enum, it should be stored as an int32 |
| 1775 | # value using the google.protobuf.Int32Value type. |
| 1776 | "a_key": "", # Properties of the object. Contains field @type with type URL. |
| 1777 | }, |
| 1778 | "name": "A String", # The option's name. For protobuf built-in options (options defined in |
| 1779 | # descriptor.proto), this is the short name. For example, `"map_entry"`. |
| 1780 | # For custom options, it should be the fully-qualified name. For example, |
| 1781 | # `"google.api.http"`. |
| 1782 | }, |
| 1783 | ], |
| 1784 | "version": "A String", # A version string for this interface. If specified, must have the form |
| 1785 | # `major-version.minor-version`, as in `1.10`. If the minor version is |
| 1786 | # omitted, it defaults to zero. If the entire version field is empty, the |
| 1787 | # major version is derived from the package name, as outlined below. If the |
| 1788 | # field is not empty, the version in the package name will be verified to be |
| 1789 | # consistent with what is provided here. |
| 1790 | # |
| 1791 | # The versioning schema uses [semantic |
| 1792 | # versioning](http://semver.org) where the major version number |
| 1793 | # indicates a breaking change and the minor version an additive, |
| 1794 | # non-breaking change. Both version numbers are signals to users |
| 1795 | # what to expect from different versions, and should be carefully |
| 1796 | # chosen based on the product plan. |
| 1797 | # |
| 1798 | # The major version is also reflected in the package name of the |
| 1799 | # interface, which must end in `v<major-version>`, as in |
| 1800 | # `google.feature.v1`. For major versions 0 and 1, the suffix can |
| 1801 | # be omitted. Zero major versions must only be used for |
| 1802 | # experimental, non-GA interfaces. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 1803 | }, |
| 1804 | ], |
Bu Sun Kim | 4ed7d3f | 2020-05-27 12:20:54 -0700 | [diff] [blame] | 1805 | "name": "A String", # The DNS address at which this service is available. |
| 1806 | # |
| 1807 | # An example DNS address would be: |
| 1808 | # `calendar.googleapis.com`. |
Dan O'Meara | dd49464 | 2020-05-01 07:42:23 -0700 | [diff] [blame] | 1809 | }, |
Bu Sun Kim | 4ed7d3f | 2020-05-27 12:20:54 -0700 | [diff] [blame] | 1810 | "name": "A String", # The resource name of the consumer and service. |
Dan O'Meara | dd49464 | 2020-05-01 07:42:23 -0700 | [diff] [blame] | 1811 | # |
| 1812 | # A valid name would be: |
Bu Sun Kim | 4ed7d3f | 2020-05-27 12:20:54 -0700 | [diff] [blame] | 1813 | # - projects/123/services/serviceusage.googleapis.com |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame^] | 1814 | "parent": "A String", # The resource name of the consumer. |
| 1815 | # |
| 1816 | # A valid name would be: |
| 1817 | # - projects/123 |
Dan O'Meara | dd49464 | 2020-05-01 07:42:23 -0700 | [diff] [blame] | 1818 | }</pre> |
| 1819 | </div> |
| 1820 | |
| 1821 | <div class="method"> |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame^] | 1822 | <code class="details" id="list">list(parent, filter=None, pageToken=None, pageSize=None, x__xgafv=None)</code> |
Dan O'Meara | dd49464 | 2020-05-01 07:42:23 -0700 | [diff] [blame] | 1823 | <pre>List all services available to the specified project, and the current |
| 1824 | state of those services with respect to the project. The list includes |
| 1825 | all public services, all services for which the calling user has the |
| 1826 | `servicemanagement.services.bind` permission, and all services that have |
| 1827 | already been enabled on the project. The list can be filtered to |
| 1828 | only include services in a specific state, for example to only include |
| 1829 | services enabled on the project. |
| 1830 | |
| 1831 | Args: |
| 1832 | parent: string, Parent to search for services on. |
| 1833 | |
| 1834 | An example name would be: |
| 1835 | `projects/123` where `123` is the project number. (required) |
Bu Sun Kim | 4ed7d3f | 2020-05-27 12:20:54 -0700 | [diff] [blame] | 1836 | filter: string, Only list services that conform to the given filter. |
| 1837 | The allowed filter strings are `state:ENABLED` and `state:DISABLED`. |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame^] | 1838 | pageToken: string, Token identifying which result to start with, which is returned by a |
| 1839 | previous list call. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 1840 | pageSize: integer, Requested size of the next page of data. |
| 1841 | Requested page size cannot exceed 200. |
| 1842 | If not set, the default page size is 50. |
Dan O'Meara | dd49464 | 2020-05-01 07:42:23 -0700 | [diff] [blame] | 1843 | x__xgafv: string, V1 error format. |
| 1844 | Allowed values |
| 1845 | 1 - v1 error format |
| 1846 | 2 - v2 error format |
Dan O'Meara | dd49464 | 2020-05-01 07:42:23 -0700 | [diff] [blame] | 1847 | |
| 1848 | Returns: |
| 1849 | An object of the form: |
| 1850 | |
| 1851 | { # Response message for the `ListServices` method. |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame^] | 1852 | "nextPageToken": "A String", # Token that can be passed to `ListServices` to resume a paginated |
| 1853 | # query. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 1854 | "services": [ # The available services for the requested project. |
Dan O'Meara | dd49464 | 2020-05-01 07:42:23 -0700 | [diff] [blame] | 1855 | { # A service that is available for use by the consumer. |
Bu Sun Kim | 4ed7d3f | 2020-05-27 12:20:54 -0700 | [diff] [blame] | 1856 | "state": "A String", # Whether or not the service has been enabled for use by the consumer. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 1857 | "config": { # The configuration of the service. # The service configuration of the available service. |
Dan O'Meara | dd49464 | 2020-05-01 07:42:23 -0700 | [diff] [blame] | 1858 | # Some fields may be filtered out of the configuration in responses to |
| 1859 | # the `ListServices` method. These fields are present only in responses to |
| 1860 | # the `GetService` method. |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame^] | 1861 | "quota": { # Quota configuration helps to achieve fairness and budgeting in service # Quota configuration. |
| 1862 | # usage. |
| 1863 | # |
| 1864 | # The metric based quota configuration works this way: |
| 1865 | # - The service configuration defines a set of metrics. |
| 1866 | # - For API calls, the quota.metric_rules maps methods to metrics with |
| 1867 | # corresponding costs. |
| 1868 | # - The quota.limits defines limits on the metrics, which will be used for |
| 1869 | # quota checks at runtime. |
| 1870 | # |
| 1871 | # An example quota configuration in yaml format: |
| 1872 | # |
| 1873 | # quota: |
| 1874 | # limits: |
| 1875 | # |
| 1876 | # - name: apiWriteQpsPerProject |
| 1877 | # metric: library.googleapis.com/write_calls |
| 1878 | # unit: "1/min/{project}" # rate limit for consumer projects |
| 1879 | # values: |
| 1880 | # STANDARD: 10000 |
| 1881 | # |
| 1882 | # |
| 1883 | # # The metric rules bind all methods to the read_calls metric, |
| 1884 | # # except for the UpdateBook and DeleteBook methods. These two methods |
| 1885 | # # are mapped to the write_calls metric, with the UpdateBook method |
| 1886 | # # consuming at twice rate as the DeleteBook method. |
| 1887 | # metric_rules: |
| 1888 | # - selector: "*" |
| 1889 | # metric_costs: |
| 1890 | # library.googleapis.com/read_calls: 1 |
| 1891 | # - selector: google.example.library.v1.LibraryService.UpdateBook |
| 1892 | # metric_costs: |
| 1893 | # library.googleapis.com/write_calls: 2 |
| 1894 | # - selector: google.example.library.v1.LibraryService.DeleteBook |
| 1895 | # metric_costs: |
| 1896 | # library.googleapis.com/write_calls: 1 |
| 1897 | # |
| 1898 | # Corresponding Metric definition: |
| 1899 | # |
| 1900 | # metrics: |
| 1901 | # - name: library.googleapis.com/read_calls |
| 1902 | # display_name: Read requests |
| 1903 | # metric_kind: DELTA |
| 1904 | # value_type: INT64 |
| 1905 | # |
| 1906 | # - name: library.googleapis.com/write_calls |
| 1907 | # display_name: Write requests |
| 1908 | # metric_kind: DELTA |
| 1909 | # value_type: INT64 |
| 1910 | # |
| 1911 | "limits": [ # List of `QuotaLimit` definitions for the service. |
| 1912 | { # `QuotaLimit` defines a specific limit that applies over a specified duration |
| 1913 | # for a limit type. There can be at most one limit for a duration and limit |
| 1914 | # type combination defined within a `QuotaGroup`. |
| 1915 | "maxLimit": "A String", # Maximum number of tokens that can be consumed during the specified |
| 1916 | # duration. Client application developers can override the default limit up |
| 1917 | # to this maximum. If specified, this value cannot be set to a value less |
| 1918 | # than the default limit. If not specified, it is set to the default limit. |
| 1919 | # |
| 1920 | # To allow clients to apply overrides with no upper bound, set this to -1, |
| 1921 | # indicating unlimited maximum quota. |
| 1922 | # |
| 1923 | # Used by group-based quotas only. |
| 1924 | "name": "A String", # Name of the quota limit. |
| 1925 | # |
| 1926 | # The name must be provided, and it must be unique within the service. The |
| 1927 | # name can only include alphanumeric characters as well as '-'. |
| 1928 | # |
| 1929 | # The maximum length of the limit name is 64 characters. |
| 1930 | "metric": "A String", # The name of the metric this quota limit applies to. The quota limits with |
| 1931 | # the same metric will be checked together during runtime. The metric must be |
| 1932 | # defined within the service config. |
| 1933 | "description": "A String", # Optional. User-visible, extended description for this quota limit. |
| 1934 | # Should be used only when more context is needed to understand this limit |
| 1935 | # than provided by the limit's display name (see: `display_name`). |
| 1936 | "duration": "A String", # Duration of this limit in textual notation. Must be "100s" or "1d". |
| 1937 | # |
| 1938 | # Used by group-based quotas only. |
| 1939 | "unit": "A String", # Specify the unit of the quota limit. It uses the same syntax as |
| 1940 | # Metric.unit. The supported unit kinds are determined by the quota |
| 1941 | # backend system. |
| 1942 | # |
| 1943 | # Here are some examples: |
| 1944 | # * "1/min/{project}" for quota per minute per project. |
| 1945 | # |
| 1946 | # Note: the order of unit components is insignificant. |
| 1947 | # The "1" at the beginning is required to follow the metric unit syntax. |
| 1948 | "values": { # Tiered limit values. You must specify this as a key:value pair, with an |
| 1949 | # integer value that is the maximum number of requests allowed for the |
| 1950 | # specified unit. Currently only STANDARD is supported. |
| 1951 | "a_key": "A String", |
| 1952 | }, |
| 1953 | "defaultLimit": "A String", # Default number of tokens that can be consumed during the specified |
| 1954 | # duration. This is the number of tokens assigned when a client |
| 1955 | # application developer activates the service for his/her project. |
| 1956 | # |
| 1957 | # Specifying a value of 0 will block all requests. This can be used if you |
| 1958 | # are provisioning quota to selected consumers and blocking others. |
| 1959 | # Similarly, a value of -1 will indicate an unlimited quota. No other |
| 1960 | # negative values are allowed. |
| 1961 | # |
| 1962 | # Used by group-based quotas only. |
| 1963 | "freeTier": "A String", # Free tier value displayed in the Developers Console for this limit. |
| 1964 | # The free tier is the number of tokens that will be subtracted from the |
| 1965 | # billed amount when billing is enabled. |
| 1966 | # This field can only be set on a limit with duration "1d", in a billable |
| 1967 | # group; it is invalid on any other limit. If this field is not set, it |
| 1968 | # defaults to 0, indicating that there is no free tier for this service. |
| 1969 | # |
| 1970 | # Used by group-based quotas only. |
| 1971 | "displayName": "A String", # User-visible display name for this limit. |
| 1972 | # Optional. If not set, the UI will provide a default display name based on |
| 1973 | # the quota configuration. This field can be used to override the default |
| 1974 | # display name generated from the configuration. |
| 1975 | }, |
| 1976 | ], |
| 1977 | "metricRules": [ # List of `MetricRule` definitions, each one mapping a selected method to one |
| 1978 | # or more metrics. |
| 1979 | { # Bind API methods to metrics. Binding a method to a metric causes that |
| 1980 | # metric's configured quota behaviors to apply to the method call. |
| 1981 | "metricCosts": { # Metrics to update when the selected methods are called, and the associated |
| 1982 | # cost applied to each metric. |
| 1983 | # |
| 1984 | # The key of the map is the metric name, and the values are the amount |
| 1985 | # increased for the metric against which the quota limits are defined. |
| 1986 | # The value must not be negative. |
| 1987 | "a_key": "A String", |
| 1988 | }, |
| 1989 | "selector": "A String", # Selects the methods to which this rule applies. |
| 1990 | # |
| 1991 | # Refer to selector for syntax details. |
| 1992 | }, |
| 1993 | ], |
| 1994 | }, |
| 1995 | "endpoints": [ # Configuration for network endpoints. Contains only the names and aliases |
| 1996 | # of the endpoints. |
| 1997 | { # `Endpoint` describes a network endpoint that serves a set of APIs. |
| 1998 | # A service may expose any number of endpoints, and all endpoints share the |
| 1999 | # same service configuration, such as quota configuration and monitoring |
| 2000 | # configuration. |
| 2001 | # |
| 2002 | # Example service configuration: |
| 2003 | # |
| 2004 | # name: library-example.googleapis.com |
| 2005 | # endpoints: |
| 2006 | # # Below entry makes 'google.example.library.v1.Library' |
| 2007 | # # API be served from endpoint address library-example.googleapis.com. |
| 2008 | # # It also allows HTTP OPTIONS calls to be passed to the backend, for |
| 2009 | # # it to decide whether the subsequent cross-origin request is |
| 2010 | # # allowed to proceed. |
| 2011 | # - name: library-example.googleapis.com |
| 2012 | # allow_cors: true |
| 2013 | "name": "A String", # The canonical name of this endpoint. |
| 2014 | "aliases": [ # DEPRECATED: This field is no longer supported. Instead of using aliases, |
| 2015 | # please specify multiple google.api.Endpoint for each of the intended |
| 2016 | # aliases. |
| 2017 | # |
| 2018 | # Additional names that this endpoint will be hosted on. |
| 2019 | "A String", |
| 2020 | ], |
| 2021 | "target": "A String", # The specification of an Internet routable address of API frontend that will |
| 2022 | # handle requests to this [API |
| 2023 | # Endpoint](https://cloud.google.com/apis/design/glossary). It should be |
| 2024 | # either a valid IPv4 address or a fully-qualified domain name. For example, |
| 2025 | # "8.8.8.8" or "myservice.appspot.com". |
| 2026 | "allowCors": True or False, # Allowing |
| 2027 | # [CORS](https://en.wikipedia.org/wiki/Cross-origin_resource_sharing), aka |
| 2028 | # cross-domain traffic, would allow the backends served from this endpoint to |
| 2029 | # receive and respond to HTTP OPTIONS requests. The response will be used by |
| 2030 | # the browser to determine whether the subsequent cross-origin request is |
| 2031 | # allowed to proceed. |
| 2032 | }, |
| 2033 | ], |
| 2034 | "usage": { # Configuration controlling usage of a service. # Configuration controlling usage of this service. |
| 2035 | "serviceIdentity": { # The per-product per-project service identity for a service. # The configuration of a per-product per-project service identity. |
| 2036 | # |
| 2037 | # |
| 2038 | # Use this field to configure per-product per-project service identity. |
| 2039 | # Example of a service identity configuration. |
| 2040 | # |
| 2041 | # usage: |
| 2042 | # service_identity: |
| 2043 | # - service_account_parent: "projects/123456789" |
| 2044 | # display_name: "Cloud XXX Service Agent" |
| 2045 | # description: "Used as the identity of Cloud XXX to access resources" |
| 2046 | "displayName": "A String", # Optional. A user-specified name for the service account. |
| 2047 | # Must be less than or equal to 100 UTF-8 bytes. |
| 2048 | "description": "A String", # Optional. A user-specified opaque description of the service account. |
| 2049 | # Must be less than or equal to 256 UTF-8 bytes. |
| 2050 | "serviceAccountParent": "A String", # A service account project that hosts the service accounts. |
| 2051 | # |
| 2052 | # An example name would be: |
| 2053 | # `projects/123456789` |
| 2054 | }, |
| 2055 | "requirements": [ # Requirements that must be satisfied before a consumer project can use the |
| 2056 | # service. Each requirement is of the form <service.name>/<requirement-id>; |
| 2057 | # for example 'serviceusage.googleapis.com/billing-enabled'. |
| 2058 | "A String", |
| 2059 | ], |
| 2060 | "rules": [ # A list of usage rules that apply to individual API methods. |
| 2061 | # |
| 2062 | # **NOTE:** All service configuration rules follow "last one wins" order. |
| 2063 | { # Usage configuration rules for the service. |
| 2064 | # |
| 2065 | # NOTE: Under development. |
| 2066 | # |
| 2067 | # |
| 2068 | # Use this rule to configure unregistered calls for the service. Unregistered |
| 2069 | # calls are calls that do not contain consumer project identity. |
| 2070 | # (Example: calls that do not contain an API key). |
| 2071 | # By default, API methods do not allow unregistered calls, and each method call |
| 2072 | # must be identified by a consumer project identity. Use this rule to |
| 2073 | # allow/disallow unregistered calls. |
| 2074 | # |
| 2075 | # Example of an API that wants to allow unregistered calls for entire service. |
| 2076 | # |
| 2077 | # usage: |
| 2078 | # rules: |
| 2079 | # - selector: "*" |
| 2080 | # allow_unregistered_calls: true |
| 2081 | # |
| 2082 | # Example of a method that wants to allow unregistered calls. |
| 2083 | # |
| 2084 | # usage: |
| 2085 | # rules: |
| 2086 | # - selector: "google.example.library.v1.LibraryService.CreateBook" |
| 2087 | # allow_unregistered_calls: true |
| 2088 | "selector": "A String", # Selects the methods to which this rule applies. Use '*' to indicate all |
| 2089 | # methods in all APIs. |
| 2090 | # |
| 2091 | # Refer to selector for syntax details. |
| 2092 | "allowUnregisteredCalls": True or False, # If true, the selected method allows unregistered calls, e.g. calls |
| 2093 | # that don't identify any user or application. |
| 2094 | "skipServiceControl": True or False, # If true, the selected method should skip service control and the control |
| 2095 | # plane features, such as quota and billing, will not be available. |
| 2096 | # This flag is used by Google Cloud Endpoints to bypass checks for internal |
| 2097 | # methods, such as service health check methods. |
| 2098 | }, |
| 2099 | ], |
| 2100 | "producerNotificationChannel": "A String", # The full resource name of a channel used for sending notifications to the |
| 2101 | # service producer. |
| 2102 | # |
| 2103 | # Google Service Management currently only supports |
| 2104 | # [Google Cloud Pub/Sub](https://cloud.google.com/pubsub) as a notification |
| 2105 | # channel. To use Google Cloud Pub/Sub as the channel, this must be the name |
| 2106 | # of a Cloud Pub/Sub topic that uses the Cloud Pub/Sub topic name format |
| 2107 | # documented in https://cloud.google.com/pubsub/docs/overview. |
| 2108 | }, |
| 2109 | "documentation": { # `Documentation` provides the information for describing a service. # Additional API documentation. Contains only the summary and the |
| 2110 | # documentation URL. |
| 2111 | # |
| 2112 | # Example: |
| 2113 | # <pre><code>documentation: |
| 2114 | # summary: > |
| 2115 | # The Google Calendar API gives access |
| 2116 | # to most calendar features. |
| 2117 | # pages: |
| 2118 | # - name: Overview |
| 2119 | # content: &#40;== include google/foo/overview.md ==&#41; |
| 2120 | # - name: Tutorial |
| 2121 | # content: &#40;== include google/foo/tutorial.md ==&#41; |
| 2122 | # subpages; |
| 2123 | # - name: Java |
| 2124 | # content: &#40;== include google/foo/tutorial_java.md ==&#41; |
| 2125 | # rules: |
| 2126 | # - selector: google.calendar.Calendar.Get |
| 2127 | # description: > |
| 2128 | # ... |
| 2129 | # - selector: google.calendar.Calendar.Put |
| 2130 | # description: > |
| 2131 | # ... |
| 2132 | # </code></pre> |
| 2133 | # Documentation is provided in markdown syntax. In addition to |
| 2134 | # standard markdown features, definition lists, tables and fenced |
| 2135 | # code blocks are supported. Section headers can be provided and are |
| 2136 | # interpreted relative to the section nesting of the context where |
| 2137 | # a documentation fragment is embedded. |
| 2138 | # |
| 2139 | # Documentation from the IDL is merged with documentation defined |
| 2140 | # via the config at normalization time, where documentation provided |
| 2141 | # by config rules overrides IDL provided. |
| 2142 | # |
| 2143 | # A number of constructs specific to the API platform are supported |
| 2144 | # in documentation text. |
| 2145 | # |
| 2146 | # In order to reference a proto element, the following |
| 2147 | # notation can be used: |
| 2148 | # <pre><code>&#91;fully.qualified.proto.name]&#91;]</code></pre> |
| 2149 | # To override the display text used for the link, this can be used: |
| 2150 | # <pre><code>&#91;display text]&#91;fully.qualified.proto.name]</code></pre> |
| 2151 | # Text can be excluded from doc using the following notation: |
| 2152 | # <pre><code>&#40;-- internal comment --&#41;</code></pre> |
| 2153 | # |
| 2154 | # A few directives are available in documentation. Note that |
| 2155 | # directives must appear on a single line to be properly |
| 2156 | # identified. The `include` directive includes a markdown file from |
| 2157 | # an external source: |
| 2158 | # <pre><code>&#40;== include path/to/file ==&#41;</code></pre> |
| 2159 | # The `resource_for` directive marks a message to be the resource of |
| 2160 | # a collection in REST view. If it is not specified, tools attempt |
| 2161 | # to infer the resource from the operations in a collection: |
| 2162 | # <pre><code>&#40;== resource_for v1.shelves.books ==&#41;</code></pre> |
| 2163 | # The directive `suppress_warning` does not directly affect documentation |
| 2164 | # and is documented together with service config validation. |
| 2165 | "pages": [ # The top level pages for the documentation set. |
| 2166 | { # Represents a documentation page. A page can contain subpages to represent |
| 2167 | # nested documentation set structure. |
| 2168 | "name": "A String", # The name of the page. It will be used as an identity of the page to |
| 2169 | # generate URI of the page, text of the link to this page in navigation, |
| 2170 | # etc. The full page name (start from the root page name to this page |
| 2171 | # concatenated with `.`) can be used as reference to the page in your |
| 2172 | # documentation. For example: |
| 2173 | # <pre><code>pages: |
| 2174 | # - name: Tutorial |
| 2175 | # content: &#40;== include tutorial.md ==&#41; |
| 2176 | # subpages: |
| 2177 | # - name: Java |
| 2178 | # content: &#40;== include tutorial_java.md ==&#41; |
| 2179 | # </code></pre> |
| 2180 | # You can reference `Java` page using Markdown reference link syntax: |
| 2181 | # `Java`. |
| 2182 | "subpages": [ # Subpages of this page. The order of subpages specified here will be |
| 2183 | # honored in the generated docset. |
| 2184 | # Object with schema name: Page |
| 2185 | ], |
| 2186 | "content": "A String", # The Markdown content of the page. You can use <code>&#40;== include {path} |
| 2187 | # ==&#41;</code> to include content from a Markdown file. |
| 2188 | }, |
| 2189 | ], |
| 2190 | "summary": "A String", # A short summary of what the service does. Can only be provided by |
| 2191 | # plain text. |
| 2192 | "overview": "A String", # Declares a single overview page. For example: |
| 2193 | # <pre><code>documentation: |
| 2194 | # summary: ... |
| 2195 | # overview: &#40;== include overview.md ==&#41; |
| 2196 | # </code></pre> |
| 2197 | # This is a shortcut for the following declaration (using pages style): |
| 2198 | # <pre><code>documentation: |
| 2199 | # summary: ... |
| 2200 | # pages: |
| 2201 | # - name: Overview |
| 2202 | # content: &#40;== include overview.md ==&#41; |
| 2203 | # </code></pre> |
| 2204 | # Note: you cannot specify both `overview` field and `pages` field. |
| 2205 | "documentationRootUrl": "A String", # The URL to the root of documentation. |
| 2206 | "rules": [ # A list of documentation rules that apply to individual API elements. |
| 2207 | # |
| 2208 | # **NOTE:** All service configuration rules follow "last one wins" order. |
| 2209 | { # A documentation rule provides information about individual API elements. |
| 2210 | "deprecationDescription": "A String", # Deprecation description of the selected element(s). It can be provided if |
| 2211 | # an element is marked as `deprecated`. |
| 2212 | "selector": "A String", # The selector is a comma-separated list of patterns. Each pattern is a |
| 2213 | # qualified name of the element which may end in "*", indicating a wildcard. |
| 2214 | # Wildcards are only allowed at the end and for a whole component of the |
| 2215 | # qualified name, i.e. "foo.*" is ok, but not "foo.b*" or "foo.*.bar". A |
| 2216 | # wildcard will match one or more components. To specify a default for all |
| 2217 | # applicable elements, the whole pattern "*" is used. |
| 2218 | "description": "A String", # Description of the selected API(s). |
| 2219 | }, |
| 2220 | ], |
| 2221 | "serviceRootUrl": "A String", # Specifies the service root url if the default one (the service name |
| 2222 | # from the yaml file) is not suitable. This can be seen in any fully |
| 2223 | # specified service urls as well as sections that show a base that other |
| 2224 | # urls are relative to. |
| 2225 | }, |
Bu Sun Kim | 4ed7d3f | 2020-05-27 12:20:54 -0700 | [diff] [blame] | 2226 | "authentication": { # `Authentication` defines the authentication configuration for an API. # Auth configuration. Contains only the OAuth rules. |
Dan O'Meara | dd49464 | 2020-05-01 07:42:23 -0700 | [diff] [blame] | 2227 | # |
Bu Sun Kim | 4ed7d3f | 2020-05-27 12:20:54 -0700 | [diff] [blame] | 2228 | # Example for an API targeted for external use: |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 2229 | # |
Bu Sun Kim | 4ed7d3f | 2020-05-27 12:20:54 -0700 | [diff] [blame] | 2230 | # name: calendar.googleapis.com |
| 2231 | # authentication: |
| 2232 | # providers: |
| 2233 | # - id: google_calendar_auth |
| 2234 | # jwks_uri: https://www.googleapis.com/oauth2/v1/certs |
| 2235 | # issuer: https://securetoken.google.com |
| 2236 | # rules: |
| 2237 | # - selector: "*" |
| 2238 | # requirements: |
| 2239 | # provider_id: google_calendar_auth |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame^] | 2240 | "rules": [ # A list of authentication rules that apply to individual API methods. |
| 2241 | # |
| 2242 | # **NOTE:** All service configuration rules follow "last one wins" order. |
| 2243 | { # Authentication rules for the service. |
| 2244 | # |
| 2245 | # By default, if a method has any authentication requirements, every request |
| 2246 | # must include a valid credential matching one of the requirements. |
| 2247 | # It's an error to include more than one kind of credential in a single |
| 2248 | # request. |
| 2249 | # |
| 2250 | # If a method doesn't have any auth requirements, request credentials will be |
| 2251 | # ignored. |
| 2252 | "oauth": { # OAuth scopes are a way to define data and permissions on data. For example, # The requirements for OAuth credentials. |
| 2253 | # there are scopes defined for "Read-only access to Google Calendar" and |
| 2254 | # "Access to Cloud Platform". Users can consent to a scope for an application, |
| 2255 | # giving it permission to access that data on their behalf. |
| 2256 | # |
| 2257 | # OAuth scope specifications should be fairly coarse grained; a user will need |
| 2258 | # to see and understand the text description of what your scope means. |
| 2259 | # |
| 2260 | # In most cases: use one or at most two OAuth scopes for an entire family of |
| 2261 | # products. If your product has multiple APIs, you should probably be sharing |
| 2262 | # the OAuth scope across all of those APIs. |
| 2263 | # |
| 2264 | # When you need finer grained OAuth consent screens: talk with your product |
| 2265 | # management about how developers will use them in practice. |
| 2266 | # |
| 2267 | # Please note that even though each of the canonical scopes is enough for a |
| 2268 | # request to be accepted and passed to the backend, a request can still fail |
| 2269 | # due to the backend requiring additional scopes or permissions. |
| 2270 | "canonicalScopes": "A String", # The list of publicly documented OAuth scopes that are allowed access. An |
| 2271 | # OAuth token containing any of these scopes will be accepted. |
| 2272 | # |
| 2273 | # Example: |
| 2274 | # |
| 2275 | # canonical_scopes: https://www.googleapis.com/auth/calendar, |
| 2276 | # https://www.googleapis.com/auth/calendar.read |
| 2277 | }, |
| 2278 | "allowWithoutCredential": True or False, # If true, the service accepts API keys without any other credential. |
| 2279 | "selector": "A String", # Selects the methods to which this rule applies. |
| 2280 | # |
| 2281 | # Refer to selector for syntax details. |
| 2282 | "requirements": [ # Requirements for additional authentication providers. |
| 2283 | { # User-defined authentication requirements, including support for |
| 2284 | # [JSON Web Token |
| 2285 | # (JWT)](https://tools.ietf.org/html/draft-ietf-oauth-json-web-token-32). |
| 2286 | "providerId": "A String", # id from authentication provider. |
| 2287 | # |
| 2288 | # Example: |
| 2289 | # |
| 2290 | # provider_id: bookstore_auth |
| 2291 | "audiences": "A String", # NOTE: This will be deprecated soon, once AuthProvider.audiences is |
| 2292 | # implemented and accepted in all the runtime components. |
| 2293 | # |
| 2294 | # The list of JWT |
| 2295 | # [audiences](https://tools.ietf.org/html/draft-ietf-oauth-json-web-token-32#section-4.1.3). |
| 2296 | # that are allowed to access. A JWT containing any of these audiences will |
| 2297 | # be accepted. When this setting is absent, only JWTs with audience |
| 2298 | # "https://Service_name/API_name" |
| 2299 | # will be accepted. For example, if no audiences are in the setting, |
| 2300 | # LibraryService API will only accept JWTs with the following audience |
| 2301 | # "https://library-example.googleapis.com/google.example.library.v1.LibraryService". |
| 2302 | # |
| 2303 | # Example: |
| 2304 | # |
| 2305 | # audiences: bookstore_android.apps.googleusercontent.com, |
| 2306 | # bookstore_web.apps.googleusercontent.com |
| 2307 | }, |
| 2308 | ], |
| 2309 | }, |
| 2310 | ], |
Bu Sun Kim | 4ed7d3f | 2020-05-27 12:20:54 -0700 | [diff] [blame] | 2311 | "providers": [ # Defines a set of authentication providers that a service supports. |
| 2312 | { # Configuration for an authentication provider, including support for |
| 2313 | # [JSON Web Token |
| 2314 | # (JWT)](https://tools.ietf.org/html/draft-ietf-oauth-json-web-token-32). |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame^] | 2315 | "jwksUri": "A String", # URL of the provider's public key set to validate signature of the JWT. See |
| 2316 | # [OpenID |
| 2317 | # Discovery](https://openid.net/specs/openid-connect-discovery-1_0.html#ProviderMetadata). |
| 2318 | # Optional if the key set document: |
| 2319 | # - can be retrieved from |
| 2320 | # [OpenID |
| 2321 | # Discovery](https://openid.net/specs/openid-connect-discovery-1_0.html of |
| 2322 | # the issuer. |
| 2323 | # - can be inferred from the email domain of the issuer (e.g. a Google |
| 2324 | # service account). |
| 2325 | # |
| 2326 | # Example: https://www.googleapis.com/oauth2/v1/certs |
| 2327 | "authorizationUrl": "A String", # Redirect URL if JWT token is required but not present or is expired. |
| 2328 | # Implement authorizationUrl of securityDefinitions in OpenAPI spec. |
Bu Sun Kim | 4ed7d3f | 2020-05-27 12:20:54 -0700 | [diff] [blame] | 2329 | "audiences": "A String", # The list of JWT |
| 2330 | # [audiences](https://tools.ietf.org/html/draft-ietf-oauth-json-web-token-32#section-4.1.3). |
| 2331 | # that are allowed to access. A JWT containing any of these audiences will |
| 2332 | # be accepted. When this setting is absent, JWTs with audiences: |
| 2333 | # - "https://[service.name]/[google.protobuf.Api.name]" |
| 2334 | # - "https://[service.name]/" |
| 2335 | # will be accepted. |
| 2336 | # For example, if no audiences are in the setting, LibraryService API will |
| 2337 | # accept JWTs with the following audiences: |
| 2338 | # - |
| 2339 | # https://library-example.googleapis.com/google.example.library.v1.LibraryService |
| 2340 | # - https://library-example.googleapis.com/ |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 2341 | # |
Bu Sun Kim | 4ed7d3f | 2020-05-27 12:20:54 -0700 | [diff] [blame] | 2342 | # Example: |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 2343 | # |
Bu Sun Kim | 4ed7d3f | 2020-05-27 12:20:54 -0700 | [diff] [blame] | 2344 | # audiences: bookstore_android.apps.googleusercontent.com, |
| 2345 | # bookstore_web.apps.googleusercontent.com |
Bu Sun Kim | 4ed7d3f | 2020-05-27 12:20:54 -0700 | [diff] [blame] | 2346 | "jwtLocations": [ # Defines the locations to extract the JWT. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 2347 | # |
Bu Sun Kim | 4ed7d3f | 2020-05-27 12:20:54 -0700 | [diff] [blame] | 2348 | # JWT locations can be either from HTTP headers or URL query parameters. |
| 2349 | # The rule is that the first match wins. The checking order is: checking |
| 2350 | # all headers first, then URL query parameters. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 2351 | # |
Bu Sun Kim | 4ed7d3f | 2020-05-27 12:20:54 -0700 | [diff] [blame] | 2352 | # If not specified, default to use following 3 locations: |
| 2353 | # 1) Authorization: Bearer |
| 2354 | # 2) x-goog-iap-jwt-assertion |
| 2355 | # 3) access_token query parameter |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 2356 | # |
Bu Sun Kim | 4ed7d3f | 2020-05-27 12:20:54 -0700 | [diff] [blame] | 2357 | # Default locations can be specified as followings: |
| 2358 | # jwt_locations: |
| 2359 | # - header: Authorization |
| 2360 | # value_prefix: "Bearer " |
| 2361 | # - header: x-goog-iap-jwt-assertion |
| 2362 | # - query: access_token |
| 2363 | { # Specifies a location to extract JWT from an API request. |
| 2364 | "valuePrefix": "A String", # The value prefix. The value format is "value_prefix{token}" |
| 2365 | # Only applies to "in" header type. Must be empty for "in" query type. |
| 2366 | # If not empty, the header value has to match (case sensitive) this prefix. |
| 2367 | # If not matched, JWT will not be extracted. If matched, JWT will be |
| 2368 | # extracted after the prefix is removed. |
| 2369 | # |
| 2370 | # For example, for "Authorization: Bearer {JWT}", |
| 2371 | # value_prefix="Bearer " with a space at the end. |
| 2372 | "header": "A String", # Specifies HTTP header name to extract JWT token. |
| 2373 | "query": "A String", # Specifies URL query parameter name to extract JWT token. |
| 2374 | }, |
| 2375 | ], |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame^] | 2376 | "id": "A String", # The unique identifier of the auth provider. It will be referred to by |
| 2377 | # `AuthRequirement.provider_id`. |
| 2378 | # |
| 2379 | # Example: "bookstore_auth". |
Bu Sun Kim | 4ed7d3f | 2020-05-27 12:20:54 -0700 | [diff] [blame] | 2380 | "issuer": "A String", # Identifies the principal that issued the JWT. See |
| 2381 | # https://tools.ietf.org/html/draft-ietf-oauth-json-web-token-32#section-4.1.1 |
| 2382 | # Usually a URL or an email address. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 2383 | # |
Bu Sun Kim | 4ed7d3f | 2020-05-27 12:20:54 -0700 | [diff] [blame] | 2384 | # Example: https://securetoken.google.com |
| 2385 | # Example: 1234567-compute@developer.gserviceaccount.com |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 2386 | }, |
| 2387 | ], |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 2388 | }, |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame^] | 2389 | "title": "A String", # The product title for this service. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 2390 | "apis": [ # A list of API interfaces exported by this service. Contains only the names, |
| 2391 | # versions, and method names of the interfaces. |
| 2392 | { # Api is a light-weight descriptor for an API Interface. |
| 2393 | # |
| 2394 | # Interfaces are also described as "protocol buffer services" in some contexts, |
| 2395 | # such as by the "service" keyword in a .proto file, but they are different |
| 2396 | # from API Services, which represent a concrete implementation of an interface |
| 2397 | # as opposed to simply a description of methods and bindings. They are also |
| 2398 | # sometimes simply referred to as "APIs" in other contexts, such as the name of |
| 2399 | # this message itself. See https://cloud.google.com/apis/design/glossary for |
| 2400 | # detailed terminology. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 2401 | "sourceContext": { # `SourceContext` represents information about the source of a # Source context for the protocol buffer service represented by this |
| 2402 | # message. |
| 2403 | # protobuf element, like the file in which it is defined. |
| 2404 | "fileName": "A String", # The path-qualified name of the .proto file that contained the associated |
| 2405 | # protobuf element. For example: `"google/protobuf/source_context.proto"`. |
| 2406 | }, |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame^] | 2407 | "name": "A String", # The fully qualified name of this interface, including package name |
| 2408 | # followed by the interface's simple name. |
Bu Sun Kim | 4ed7d3f | 2020-05-27 12:20:54 -0700 | [diff] [blame] | 2409 | "methods": [ # The methods of this interface, in unspecified order. |
| 2410 | { # Method represents a method of an API interface. |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame^] | 2411 | "requestStreaming": True or False, # If true, the request is streamed. |
Bu Sun Kim | 4ed7d3f | 2020-05-27 12:20:54 -0700 | [diff] [blame] | 2412 | "options": [ # Any metadata attached to the method. |
| 2413 | { # A protocol buffer option, which can be attached to a message, field, |
| 2414 | # enumeration, etc. |
Bu Sun Kim | 4ed7d3f | 2020-05-27 12:20:54 -0700 | [diff] [blame] | 2415 | "value": { # The option's value packed in an Any message. If the value is a primitive, |
| 2416 | # the corresponding wrapper type defined in google/protobuf/wrappers.proto |
| 2417 | # should be used. If the value is an enum, it should be stored as an int32 |
| 2418 | # value using the google.protobuf.Int32Value type. |
| 2419 | "a_key": "", # Properties of the object. Contains field @type with type URL. |
| 2420 | }, |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame^] | 2421 | "name": "A String", # The option's name. For protobuf built-in options (options defined in |
| 2422 | # descriptor.proto), this is the short name. For example, `"map_entry"`. |
| 2423 | # For custom options, it should be the fully-qualified name. For example, |
| 2424 | # `"google.api.http"`. |
Bu Sun Kim | 4ed7d3f | 2020-05-27 12:20:54 -0700 | [diff] [blame] | 2425 | }, |
| 2426 | ], |
Bu Sun Kim | 4ed7d3f | 2020-05-27 12:20:54 -0700 | [diff] [blame] | 2427 | "responseStreaming": True or False, # If true, the response is streamed. |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame^] | 2428 | "syntax": "A String", # The source syntax of this method. |
| 2429 | "name": "A String", # The simple name of this method. |
| 2430 | "responseTypeUrl": "A String", # The URL of the output message type. |
| 2431 | "requestTypeUrl": "A String", # A URL of the input message type. |
Bu Sun Kim | 4ed7d3f | 2020-05-27 12:20:54 -0700 | [diff] [blame] | 2432 | }, |
| 2433 | ], |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 2434 | "mixins": [ # Included interfaces. See Mixin. |
| 2435 | { # Declares an API Interface to be included in this interface. The including |
| 2436 | # interface must redeclare all the methods from the included interface, but |
| 2437 | # documentation and options are inherited as follows: |
| 2438 | # |
| 2439 | # - If after comment and whitespace stripping, the documentation |
| 2440 | # string of the redeclared method is empty, it will be inherited |
| 2441 | # from the original method. |
| 2442 | # |
| 2443 | # - Each annotation belonging to the service config (http, |
| 2444 | # visibility) which is not set in the redeclared method will be |
| 2445 | # inherited. |
| 2446 | # |
| 2447 | # - If an http annotation is inherited, the path pattern will be |
| 2448 | # modified as follows. Any version prefix will be replaced by the |
| 2449 | # version of the including interface plus the root path if |
| 2450 | # specified. |
| 2451 | # |
| 2452 | # Example of a simple mixin: |
| 2453 | # |
| 2454 | # package google.acl.v1; |
| 2455 | # service AccessControl { |
| 2456 | # // Get the underlying ACL object. |
| 2457 | # rpc GetAcl(GetAclRequest) returns (Acl) { |
| 2458 | # option (google.api.http).get = "/v1/{resource=**}:getAcl"; |
| 2459 | # } |
| 2460 | # } |
| 2461 | # |
| 2462 | # package google.storage.v2; |
| 2463 | # service Storage { |
| 2464 | # // rpc GetAcl(GetAclRequest) returns (Acl); |
| 2465 | # |
| 2466 | # // Get a data record. |
| 2467 | # rpc GetData(GetDataRequest) returns (Data) { |
| 2468 | # option (google.api.http).get = "/v2/{resource=**}"; |
| 2469 | # } |
| 2470 | # } |
| 2471 | # |
| 2472 | # Example of a mixin configuration: |
| 2473 | # |
| 2474 | # apis: |
| 2475 | # - name: google.storage.v2.Storage |
| 2476 | # mixins: |
| 2477 | # - name: google.acl.v1.AccessControl |
| 2478 | # |
| 2479 | # The mixin construct implies that all methods in `AccessControl` are |
| 2480 | # also declared with same name and request/response types in |
| 2481 | # `Storage`. A documentation generator or annotation processor will |
| 2482 | # see the effective `Storage.GetAcl` method after inherting |
| 2483 | # documentation and annotations as follows: |
| 2484 | # |
| 2485 | # service Storage { |
| 2486 | # // Get the underlying ACL object. |
| 2487 | # rpc GetAcl(GetAclRequest) returns (Acl) { |
| 2488 | # option (google.api.http).get = "/v2/{resource=**}:getAcl"; |
| 2489 | # } |
| 2490 | # ... |
| 2491 | # } |
| 2492 | # |
| 2493 | # Note how the version in the path pattern changed from `v1` to `v2`. |
| 2494 | # |
| 2495 | # If the `root` field in the mixin is specified, it should be a |
| 2496 | # relative path under which inherited HTTP paths are placed. Example: |
| 2497 | # |
| 2498 | # apis: |
| 2499 | # - name: google.storage.v2.Storage |
| 2500 | # mixins: |
| 2501 | # - name: google.acl.v1.AccessControl |
| 2502 | # root: acls |
| 2503 | # |
| 2504 | # This implies the following inherited HTTP annotation: |
| 2505 | # |
| 2506 | # service Storage { |
| 2507 | # // Get the underlying ACL object. |
| 2508 | # rpc GetAcl(GetAclRequest) returns (Acl) { |
| 2509 | # option (google.api.http).get = "/v2/acls/{resource=**}:getAcl"; |
| 2510 | # } |
| 2511 | # ... |
| 2512 | # } |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame^] | 2513 | "name": "A String", # The fully qualified name of the interface which is included. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 2514 | "root": "A String", # If non-empty specifies a path under which inherited HTTP paths |
| 2515 | # are rooted. |
| 2516 | }, |
| 2517 | ], |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame^] | 2518 | "syntax": "A String", # The source syntax of the service. |
| 2519 | "options": [ # Any metadata attached to the interface. |
| 2520 | { # A protocol buffer option, which can be attached to a message, field, |
| 2521 | # enumeration, etc. |
| 2522 | "value": { # The option's value packed in an Any message. If the value is a primitive, |
| 2523 | # the corresponding wrapper type defined in google/protobuf/wrappers.proto |
| 2524 | # should be used. If the value is an enum, it should be stored as an int32 |
| 2525 | # value using the google.protobuf.Int32Value type. |
| 2526 | "a_key": "", # Properties of the object. Contains field @type with type URL. |
| 2527 | }, |
| 2528 | "name": "A String", # The option's name. For protobuf built-in options (options defined in |
| 2529 | # descriptor.proto), this is the short name. For example, `"map_entry"`. |
| 2530 | # For custom options, it should be the fully-qualified name. For example, |
| 2531 | # `"google.api.http"`. |
| 2532 | }, |
| 2533 | ], |
| 2534 | "version": "A String", # A version string for this interface. If specified, must have the form |
| 2535 | # `major-version.minor-version`, as in `1.10`. If the minor version is |
| 2536 | # omitted, it defaults to zero. If the entire version field is empty, the |
| 2537 | # major version is derived from the package name, as outlined below. If the |
| 2538 | # field is not empty, the version in the package name will be verified to be |
| 2539 | # consistent with what is provided here. |
| 2540 | # |
| 2541 | # The versioning schema uses [semantic |
| 2542 | # versioning](http://semver.org) where the major version number |
| 2543 | # indicates a breaking change and the minor version an additive, |
| 2544 | # non-breaking change. Both version numbers are signals to users |
| 2545 | # what to expect from different versions, and should be carefully |
| 2546 | # chosen based on the product plan. |
| 2547 | # |
| 2548 | # The major version is also reflected in the package name of the |
| 2549 | # interface, which must end in `v<major-version>`, as in |
| 2550 | # `google.feature.v1`. For major versions 0 and 1, the suffix can |
| 2551 | # be omitted. Zero major versions must only be used for |
| 2552 | # experimental, non-GA interfaces. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 2553 | }, |
| 2554 | ], |
Bu Sun Kim | 4ed7d3f | 2020-05-27 12:20:54 -0700 | [diff] [blame] | 2555 | "name": "A String", # The DNS address at which this service is available. |
| 2556 | # |
| 2557 | # An example DNS address would be: |
| 2558 | # `calendar.googleapis.com`. |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 2559 | }, |
Bu Sun Kim | 4ed7d3f | 2020-05-27 12:20:54 -0700 | [diff] [blame] | 2560 | "name": "A String", # The resource name of the consumer and service. |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 2561 | # |
| 2562 | # A valid name would be: |
Bu Sun Kim | 4ed7d3f | 2020-05-27 12:20:54 -0700 | [diff] [blame] | 2563 | # - projects/123/services/serviceusage.googleapis.com |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame^] | 2564 | "parent": "A String", # The resource name of the consumer. |
| 2565 | # |
| 2566 | # A valid name would be: |
| 2567 | # - projects/123 |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 2568 | }, |
| 2569 | ], |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 2570 | }</pre> |
| 2571 | </div> |
| 2572 | |
| 2573 | <div class="method"> |
| 2574 | <code class="details" id="list_next">list_next(previous_request, previous_response)</code> |
| 2575 | <pre>Retrieves the next page of results. |
| 2576 | |
| 2577 | Args: |
| 2578 | previous_request: The request for the previous page. (required) |
| 2579 | previous_response: The response from the request for the previous page. (required) |
| 2580 | |
| 2581 | Returns: |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 2582 | A request object that you can call 'execute()' on to request the next |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 2583 | page. Returns None if there are no more items in the collection. |
| 2584 | </pre> |
| 2585 | </div> |
| 2586 | |
| 2587 | </body></html> |