| 1 | # Copyright 2024 Google LLC |
| 2 | # |
| 3 | # Licensed under the Apache License, Version 2.0 (the "License"); |
| 4 | # you may not use this file except in compliance with the License. |
| 5 | # You may obtain a copy of the License at |
| 6 | # |
| 7 | # https://www.apache.org/licenses/LICENSE-2.0 |
| 8 | # |
| 9 | # Unless required by applicable law or agreed to in writing, software |
| 10 | # distributed under the License is distributed on an "AS IS" BASIS, |
| 11 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 12 | # See the License for the specific language governing permissions and |
| 13 | # limitations under the License. |
| 14 | |
| 15 | name: "errors" |
| 16 | extensions: |
| 17 | - name: "lists" |
| 18 | - name: "sets" |
| 19 | variables: |
| 20 | - name: "destination.ip" |
| 21 | type: |
| 22 | type_name: "string" |
| 23 | - name: "origin.ip" |
| 24 | type: |
| 25 | type_name: "string" |
| 26 | - name: "spec.restricted_destinations" |
| 27 | type: |
| 28 | type_name: "list" |
| 29 | params: |
| 30 | - type_name: "string" |
| 31 | - name: "spec.origin" |
| 32 | type: |
| 33 | type_name: "string" |
| 34 | - name: "request" |
| 35 | type: |
| 36 | type_name: "map" |
| 37 | params: |
| 38 | - type_name: "string" |
| 39 | - type_name: "dyn" |
| 40 | - name: "resource" |
| 41 | type: |
| 42 | type_name: "map" |
| 43 | params: |
| 44 | - type_name: "string" |
| 45 | - type_name: "dyn" |
| 46 | functions: |
| 47 | - name: "locationCode" |
| 48 | overloads: |
| 49 | - id: "locationCode_string" |
| 50 | args: |
| 51 | - type_name: "string" |
| 52 | return: |
| 53 | type_name: "string" |