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="compute_alpha.html">Compute Engine API</a> . <a href="compute_alpha.routers.html">routers</a></h1> 76 <h2>Instance Methods</h2> 77 <p class="toc_element"> 78 <code><a href="#aggregatedList">aggregatedList(project, orderBy=None, maxResults=None, pageToken=None, filter=None)</a></code></p> 79 <p class="firstline">Retrieves an aggregated list of routers.</p> 80 <p class="toc_element"> 81 <code><a href="#aggregatedList_next">aggregatedList_next(previous_request, previous_response)</a></code></p> 82 <p class="firstline">Retrieves the next page of results.</p> 83 <p class="toc_element"> 84 <code><a href="#delete">delete(project, region, router, requestId=None)</a></code></p> 85 <p class="firstline">Deletes the specified Router resource.</p> 86 <p class="toc_element"> 87 <code><a href="#get">get(project, region, router)</a></code></p> 88 <p class="firstline">Returns the specified Router resource. Get a list of available routers by making a list() request.</p> 89 <p class="toc_element"> 90 <code><a href="#getRouterStatus">getRouterStatus(project, region, router)</a></code></p> 91 <p class="firstline">Retrieves runtime information of the specified router.</p> 92 <p class="toc_element"> 93 <code><a href="#insert">insert(project, region, body, requestId=None)</a></code></p> 94 <p class="firstline">Creates a Router resource in the specified project and region using the data included in the request.</p> 95 <p class="toc_element"> 96 <code><a href="#list">list(project, region, orderBy=None, maxResults=None, pageToken=None, filter=None)</a></code></p> 97 <p class="firstline">Retrieves a list of Router resources available to the specified project.</p> 98 <p class="toc_element"> 99 <code><a href="#list_next">list_next(previous_request, previous_response)</a></code></p> 100 <p class="firstline">Retrieves the next page of results.</p> 101 <p class="toc_element"> 102 <code><a href="#patch">patch(project, region, router, body, requestId=None)</a></code></p> 103 <p class="firstline">Patches the specified Router resource with the data included in the request. This method supports patch semantics.</p> 104 <p class="toc_element"> 105 <code><a href="#preview">preview(project, region, router, body)</a></code></p> 106 <p class="firstline">Preview fields auto-generated during router create and update operations. Calling this method does NOT create or update the router.</p> 107 <p class="toc_element"> 108 <code><a href="#testIamPermissions">testIamPermissions(project, region, resource, body)</a></code></p> 109 <p class="firstline">Returns permissions that a caller has on the specified resource.</p> 110 <p class="toc_element"> 111 <code><a href="#update">update(project, region, router, body, requestId=None)</a></code></p> 112 <p class="firstline">Updates the specified Router resource with the data included in the request.</p> 113 <h3>Method Details</h3> 114 <div class="method"> 115 <code class="details" id="aggregatedList">aggregatedList(project, orderBy=None, maxResults=None, pageToken=None, filter=None)</code> 116 <pre>Retrieves an aggregated list of routers. 117 118 Args: 119 project: string, Project ID for this request. (required) 120 orderBy: string, Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. 121 122 You can also sort results in descending order based on the creation timestamp using orderBy="creationTimestamp desc". This sorts results based on the creationTimestamp field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. 123 124 Currently, only sorting by name or creationTimestamp desc is supported. 125 maxResults: integer, The maximum number of results per page that should be returned. If the number of available results is larger than maxResults, Compute Engine returns a nextPageToken that can be used to get the next page of results in subsequent list requests. Acceptable values are 0 to 500, inclusive. (Default: 500) 126 pageToken: string, Specifies a page token to use. Set pageToken to the nextPageToken returned by a previous list request to get the next page of results. 127 filter: string, Sets a filter expression for filtering listed resources, in the form filter={expression}. Your {expression} must be in the format: field_name comparison_string literal_string. 128 129 The field_name is the name of the field you want to compare. Only atomic field types are supported (string, number, boolean). The comparison_string must be either eq (equals) or ne (not equals). The literal_string is the string value to filter to. The literal value must be valid for the type of field you are filtering by (string, number, boolean). For string fields, the literal value is interpreted as a regular expression using RE2 syntax. The literal value must match the entire field. 130 131 For example, to filter for instances that do not have a name of example-instance, you would use filter=name ne example-instance. 132 133 You can filter on nested fields. For example, you could filter on instances that have set the scheduling.automaticRestart field to true. Use filtering on nested fields to take advantage of labels to organize and search for results based on label values. 134 135 To filter on multiple expressions, provide each separate expression within parentheses. For example, (scheduling.automaticRestart eq true) (zone eq us-central1-f). Multiple expressions are treated as AND expressions, meaning that resources must match all expressions to pass the filters. 136 137 Returns: 138 An object of the form: 139 140 { # Contains a list of routers. 141 "nextPageToken": "A String", # [Output Only] This token allows you to get the next page of results for list requests. If the number of results is larger than maxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results. 142 "items": { # A map of scoped router lists. 143 "a_key": { # Name of the scope containing this set of routers. 144 "routers": [ # List of routers contained in this scope. 145 { # Router resource. 146 "kind": "compute#router", # [Output Only] Type of resource. Always compute#router for routers. 147 "description": "A String", # An optional description of this resource. Provide this property when you create the resource. 148 "interfaces": [ # Router interfaces. Each interface requires either one linked resource (e.g. linkedVpnTunnel), or IP address and IP address range (e.g. ipRange), or both. 149 { 150 "linkedInterconnectAttachment": "A String", # URI of the linked interconnect attachment. It must be in the same region as the router. Each interface can have at most one linked resource and it could either be a VPN Tunnel or an interconnect attachment. 151 "linkedVpnTunnel": "A String", # URI of the linked VPN tunnel. It must be in the same region as the router. Each interface can have at most one linked resource and it could either be a VPN Tunnel or an interconnect attachment. 152 "ipRange": "A String", # IP address and range of the interface. The IP range must be in the RFC3927 link-local IP space. The value must be a CIDR-formatted string, for example: 169.254.0.1/30. NOTE: Do not truncate the address as it represents the IP address of the interface. 153 "name": "A String", # Name of this interface entry. The name must be 1-63 characters long and comply with RFC1035. 154 }, 155 ], 156 "bgp": { # BGP information specific to this router. 157 "advertisedPrefixs": [ # User-specified list of individual prefixes to advertise in custom mode. This field can only be populated if advertise_mode is CUSTOM and is advertised to all peers of the router. These prefixes will be advertised in addition to any specified groups. Leave this field blank to advertise no custom prefixes. 158 { # Description-tagged prefixes for the router to advertise. 159 "prefix": "A String", # The prefix to advertise. The value must be a CIDR-formatted string. 160 "description": "A String", # User-specified description for the prefix. 161 }, 162 ], 163 "asn": 42, # Local BGP Autonomous System Number (ASN). Must be an RFC6996 private ASN, either 16-bit or 32-bit. The value will be fixed for this router resource. All VPN tunnels that link to this router will have the same local ASN. 164 "advertisedGroups": [ # User-specified list of prefix groups to advertise in custom mode. This field can only be populated if advertise_mode is CUSTOM and is advertised to all peers of the router. These groups will be advertised in addition to any specified prefixes. Leave this field blank to advertise no custom groups. 165 "A String", 166 ], 167 "advertiseMode": "A String", # User-specified flag to indicate which mode to use for advertisement. 168 }, 169 "network": "A String", # URI of the network to which this router belongs. 170 "bgpPeers": [ # BGP information that needs to be configured into the routing stack to establish the BGP peering. It must specify peer ASN and either interface name, IP, or peer IP. Please refer to RFC4273. 171 { 172 "peerAsn": 42, # Peer BGP Autonomous System Number (ASN). For VPN use case, this value can be different for every tunnel. 173 "interfaceName": "A String", # Name of the interface the BGP peer is associated with. 174 "advertisedPrefixs": [ # User-specified list of individual prefixes to advertise in custom mode. This field can only be populated if advertise_mode is CUSTOM and overrides the list defined for the router (in Bgp message). These prefixes will be advertised in addition to any specified groups. Leave this field blank to advertise no custom prefixes. 175 { # Description-tagged prefixes for the router to advertise. 176 "prefix": "A String", # The prefix to advertise. The value must be a CIDR-formatted string. 177 "description": "A String", # User-specified description for the prefix. 178 }, 179 ], 180 "peerIpAddress": "A String", # IP address of the BGP interface outside Google cloud. Only IPv4 is supported. 181 "advertisedGroups": [ # User-specified list of prefix groups to advertise in custom mode. This field can only be populated if advertise_mode is CUSTOM and overrides the list defined for the router (in Bgp message). These groups will be advertised in addition to any specified prefixes. Leave this field blank to advertise no custom groups. 182 "A String", 183 ], 184 "name": "A String", # Name of this BGP peer. The name must be 1-63 characters long and comply with RFC1035. 185 "advertisedRoutePriority": 42, # The priority of routes advertised to this BGP peer. In the case where there is more than one matching route of maximum length, the routes with lowest priority value win. 186 "ipAddress": "A String", # IP address of the interface inside Google Cloud Platform. Only IPv4 is supported. 187 "advertiseMode": "A String", # User-specified flag to indicate which mode to use for advertisement. 188 }, 189 ], 190 "region": "A String", # [Output Only] URI of the region where the router resides. 191 "creationTimestamp": "A String", # [Output Only] Creation timestamp in RFC3339 text format. 192 "id": "A String", # [Output Only] The unique identifier for the resource. This identifier is defined by the server. 193 "selfLink": "A String", # [Output Only] Server-defined URL for the resource. 194 "name": "A String", # Name of the resource. Provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression [a-z]([-a-z0-9]*[a-z0-9])? which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash. 195 }, 196 ], 197 "warning": { # Informational warning which replaces the list of routers when the list is empty. 198 "message": "A String", # [Output Only] A human-readable description of the warning code. 199 "code": "A String", # [Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. 200 "data": [ # [Output Only] Metadata about this warning in key: value format. For example: 201 # "data": [ { "key": "scope", "value": "zones/us-east1-d" } 202 { 203 "value": "A String", # [Output Only] A warning data value corresponding to the key. 204 "key": "A String", # [Output Only] A key that provides more detail on the warning being returned. For example, for warnings where there are no results in a list request for a particular zone, this key might be scope and the key value might be the zone name. Other examples might be a key indicating a deprecated resource and a suggested replacement, or a warning about invalid network settings (for example, if an instance attempts to perform IP forwarding but is not enabled for IP forwarding). 205 }, 206 ], 207 }, 208 }, 209 }, 210 "kind": "compute#routerAggregatedList", # Type of resource. 211 "id": "A String", # [Output Only] The unique identifier for the resource. This identifier is defined by the server. 212 "selfLink": "A String", # [Output Only] Server-defined URL for this resource. 213 }</pre> 214 </div> 215 216 <div class="method"> 217 <code class="details" id="aggregatedList_next">aggregatedList_next(previous_request, previous_response)</code> 218 <pre>Retrieves the next page of results. 219 220 Args: 221 previous_request: The request for the previous page. (required) 222 previous_response: The response from the request for the previous page. (required) 223 224 Returns: 225 A request object that you can call 'execute()' on to request the next 226 page. Returns None if there are no more items in the collection. 227 </pre> 228 </div> 229 230 <div class="method"> 231 <code class="details" id="delete">delete(project, region, router, requestId=None)</code> 232 <pre>Deletes the specified Router resource. 233 234 Args: 235 project: string, Project ID for this request. (required) 236 region: string, Name of the region for this request. (required) 237 router: string, Name of the Router resource to delete. (required) 238 requestId: string, begin_interface: MixerMutationRequestBuilder Request ID to support idempotency. 239 240 Returns: 241 An object of the form: 242 243 { # An Operation resource, used to manage asynchronous API requests. 244 "targetId": "A String", # [Output Only] The unique target ID, which identifies a specific incarnation of the target resource. 245 "clientOperationId": "A String", # [Output Only] Reserved for future use. 246 "creationTimestamp": "A String", # [Deprecated] This field is deprecated. 247 "id": "A String", # [Output Only] The unique identifier for the resource. This identifier is defined by the server. 248 "zone": "A String", # [Output Only] The URL of the zone where the operation resides. Only available when performing per-zone operations. 249 "insertTime": "A String", # [Output Only] The time that this operation was requested. This value is in RFC3339 text format. 250 "operationType": "A String", # [Output Only] The type of operation, such as insert, update, or delete, and so on. 251 "httpErrorMessage": "A String", # [Output Only] If the operation fails, this field contains the HTTP error message that was returned, such as NOT FOUND. 252 "progress": 42, # [Output Only] An optional progress indicator that ranges from 0 to 100. There is no requirement that this be linear or support any granularity of operations. This should not be used to guess when the operation will be complete. This number should monotonically increase as the operation progresses. 253 "httpErrorStatusCode": 42, # [Output Only] If the operation fails, this field contains the HTTP error status code that was returned. For example, a 404 means the resource was not found. 254 "statusMessage": "A String", # [Output Only] An optional textual description of the current status of the operation. 255 "status": "A String", # [Output Only] The status of the operation, which can be one of the following: PENDING, RUNNING, or DONE. 256 "description": "A String", # [Output Only] A textual description of the operation, which is set when the operation is created. 257 "warnings": [ # [Output Only] If warning messages are generated during processing of the operation, this field will be populated. 258 { 259 "message": "A String", # [Output Only] A human-readable description of the warning code. 260 "code": "A String", # [Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. 261 "data": [ # [Output Only] Metadata about this warning in key: value format. For example: 262 # "data": [ { "key": "scope", "value": "zones/us-east1-d" } 263 { 264 "value": "A String", # [Output Only] A warning data value corresponding to the key. 265 "key": "A String", # [Output Only] A key that provides more detail on the warning being returned. For example, for warnings where there are no results in a list request for a particular zone, this key might be scope and the key value might be the zone name. Other examples might be a key indicating a deprecated resource and a suggested replacement, or a warning about invalid network settings (for example, if an instance attempts to perform IP forwarding but is not enabled for IP forwarding). 266 }, 267 ], 268 }, 269 ], 270 "user": "A String", # [Output Only] User who requested the operation, for example: user (a] example.com. 271 "startTime": "A String", # [Output Only] The time that this operation was started by the server. This value is in RFC3339 text format. 272 "kind": "compute#operation", # [Output Only] Type of the resource. Always compute#operation for Operation resources. 273 "name": "A String", # [Output Only] Name of the resource. 274 "region": "A String", # [Output Only] The URL of the region where the operation resides. Only available when performing regional operations. 275 "error": { # [Output Only] If errors are generated during processing of the operation, this field will be populated. 276 "errors": [ # [Output Only] The array of errors encountered while processing this operation. 277 { 278 "message": "A String", # [Output Only] An optional, human-readable error message. 279 "code": "A String", # [Output Only] The error type identifier for this error. 280 "location": "A String", # [Output Only] Indicates the field in the request that caused the error. This property is optional. 281 }, 282 ], 283 }, 284 "endTime": "A String", # [Output Only] The time that this operation was completed. This value is in RFC3339 text format. 285 "selfLink": "A String", # [Output Only] Server-defined URL for the resource. 286 "targetLink": "A String", # [Output Only] The URL of the resource that the operation modifies. For operations related to creating a snapshot, this points to the persistent disk that the snapshot was created from. 287 }</pre> 288 </div> 289 290 <div class="method"> 291 <code class="details" id="get">get(project, region, router)</code> 292 <pre>Returns the specified Router resource. Get a list of available routers by making a list() request. 293 294 Args: 295 project: string, Project ID for this request. (required) 296 region: string, Name of the region for this request. (required) 297 router: string, Name of the Router resource to return. (required) 298 299 Returns: 300 An object of the form: 301 302 { # Router resource. 303 "kind": "compute#router", # [Output Only] Type of resource. Always compute#router for routers. 304 "description": "A String", # An optional description of this resource. Provide this property when you create the resource. 305 "interfaces": [ # Router interfaces. Each interface requires either one linked resource (e.g. linkedVpnTunnel), or IP address and IP address range (e.g. ipRange), or both. 306 { 307 "linkedInterconnectAttachment": "A String", # URI of the linked interconnect attachment. It must be in the same region as the router. Each interface can have at most one linked resource and it could either be a VPN Tunnel or an interconnect attachment. 308 "linkedVpnTunnel": "A String", # URI of the linked VPN tunnel. It must be in the same region as the router. Each interface can have at most one linked resource and it could either be a VPN Tunnel or an interconnect attachment. 309 "ipRange": "A String", # IP address and range of the interface. The IP range must be in the RFC3927 link-local IP space. The value must be a CIDR-formatted string, for example: 169.254.0.1/30. NOTE: Do not truncate the address as it represents the IP address of the interface. 310 "name": "A String", # Name of this interface entry. The name must be 1-63 characters long and comply with RFC1035. 311 }, 312 ], 313 "bgp": { # BGP information specific to this router. 314 "advertisedPrefixs": [ # User-specified list of individual prefixes to advertise in custom mode. This field can only be populated if advertise_mode is CUSTOM and is advertised to all peers of the router. These prefixes will be advertised in addition to any specified groups. Leave this field blank to advertise no custom prefixes. 315 { # Description-tagged prefixes for the router to advertise. 316 "prefix": "A String", # The prefix to advertise. The value must be a CIDR-formatted string. 317 "description": "A String", # User-specified description for the prefix. 318 }, 319 ], 320 "asn": 42, # Local BGP Autonomous System Number (ASN). Must be an RFC6996 private ASN, either 16-bit or 32-bit. The value will be fixed for this router resource. All VPN tunnels that link to this router will have the same local ASN. 321 "advertisedGroups": [ # User-specified list of prefix groups to advertise in custom mode. This field can only be populated if advertise_mode is CUSTOM and is advertised to all peers of the router. These groups will be advertised in addition to any specified prefixes. Leave this field blank to advertise no custom groups. 322 "A String", 323 ], 324 "advertiseMode": "A String", # User-specified flag to indicate which mode to use for advertisement. 325 }, 326 "network": "A String", # URI of the network to which this router belongs. 327 "bgpPeers": [ # BGP information that needs to be configured into the routing stack to establish the BGP peering. It must specify peer ASN and either interface name, IP, or peer IP. Please refer to RFC4273. 328 { 329 "peerAsn": 42, # Peer BGP Autonomous System Number (ASN). For VPN use case, this value can be different for every tunnel. 330 "interfaceName": "A String", # Name of the interface the BGP peer is associated with. 331 "advertisedPrefixs": [ # User-specified list of individual prefixes to advertise in custom mode. This field can only be populated if advertise_mode is CUSTOM and overrides the list defined for the router (in Bgp message). These prefixes will be advertised in addition to any specified groups. Leave this field blank to advertise no custom prefixes. 332 { # Description-tagged prefixes for the router to advertise. 333 "prefix": "A String", # The prefix to advertise. The value must be a CIDR-formatted string. 334 "description": "A String", # User-specified description for the prefix. 335 }, 336 ], 337 "peerIpAddress": "A String", # IP address of the BGP interface outside Google cloud. Only IPv4 is supported. 338 "advertisedGroups": [ # User-specified list of prefix groups to advertise in custom mode. This field can only be populated if advertise_mode is CUSTOM and overrides the list defined for the router (in Bgp message). These groups will be advertised in addition to any specified prefixes. Leave this field blank to advertise no custom groups. 339 "A String", 340 ], 341 "name": "A String", # Name of this BGP peer. The name must be 1-63 characters long and comply with RFC1035. 342 "advertisedRoutePriority": 42, # The priority of routes advertised to this BGP peer. In the case where there is more than one matching route of maximum length, the routes with lowest priority value win. 343 "ipAddress": "A String", # IP address of the interface inside Google Cloud Platform. Only IPv4 is supported. 344 "advertiseMode": "A String", # User-specified flag to indicate which mode to use for advertisement. 345 }, 346 ], 347 "region": "A String", # [Output Only] URI of the region where the router resides. 348 "creationTimestamp": "A String", # [Output Only] Creation timestamp in RFC3339 text format. 349 "id": "A String", # [Output Only] The unique identifier for the resource. This identifier is defined by the server. 350 "selfLink": "A String", # [Output Only] Server-defined URL for the resource. 351 "name": "A String", # Name of the resource. Provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression [a-z]([-a-z0-9]*[a-z0-9])? which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash. 352 }</pre> 353 </div> 354 355 <div class="method"> 356 <code class="details" id="getRouterStatus">getRouterStatus(project, region, router)</code> 357 <pre>Retrieves runtime information of the specified router. 358 359 Args: 360 project: string, Project ID for this request. (required) 361 region: string, Name of the region for this request. (required) 362 router: string, Name of the Router resource to query. (required) 363 364 Returns: 365 An object of the form: 366 367 { 368 "kind": "compute#routerStatusResponse", # Type of resource. 369 "result": { 370 "bgpPeerStatus": [ 371 { 372 "status": "A String", # Status of the BGP peer: {UP, DOWN} 373 "uptime": "A String", # Time this session has been up. Format: 14 years, 51 weeks, 6 days, 23 hours, 59 minutes, 59 seconds 374 "name": "A String", # Name of this BGP peer. Unique within the Routers resource. 375 "uptimeSeconds": "A String", # Time this session has been up, in seconds. Format: 145 376 "linkedVpnTunnel": "A String", # URL of the VPN tunnel that this BGP peer controls. 377 "peerIpAddress": "A String", # IP address of the remote BGP interface. 378 "advertisedRoutes": [ # Routes that were advertised to the remote BGP peer 379 { # Represents a Route resource. A route specifies how certain packets should be handled by the network. Routes are associated with instances by tags and the set of routes for a particular instance is called its routing table. 380 # 381 # For each packet leaving a instance, the system searches that instance's routing table for a single best matching route. Routes match packets by destination IP address, preferring smaller or more specific ranges over larger ones. If there is a tie, the system selects the route with the smallest priority value. If there is still a tie, it uses the layer three and four packet headers to select just one of the remaining matching routes. The packet is then forwarded as specified by the nextHop field of the winning route - either to another instance destination, an instance gateway, or a Google Compute Engine-operated gateway. 382 # 383 # Packets that do not match any route in the sending instance's routing table are dropped. 384 "nextHopGateway": "A String", # The URL to a gateway that should handle matching packets. You can only specify the internet gateway using a full or partial valid URL: projects/<project-id>/global/gateways/default-internet-gateway 385 "nextHopVpnTunnel": "A String", # The URL to a VpnTunnel that should handle matching packets. 386 "kind": "compute#route", # [Output Only] Type of this resource. Always compute#routes for Route resources. 387 "name": "A String", # Name of the resource. Provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression [a-z]([-a-z0-9]*[a-z0-9])? which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash. 388 "tags": [ # A list of instance tags to which this route applies. 389 "A String", 390 ], 391 "nextHopInstance": "A String", # The URL to an instance that should handle matching packets. You can specify this as a full or partial URL. For example: 392 # https://www.googleapis.com/compute/v1/projects/project/zones/zone/instances/ 393 "priority": 42, # The priority of this route. Priority is used to break ties in cases where there is more than one matching route of equal prefix length. In the case of two routes with equal prefix length, the one with the lowest-numbered priority value wins. Default value is 1000. Valid range is 0 through 65535. 394 "nextHopPeering": "A String", # [Output Only] The network peering name that should handle matching packets, which should conform to RFC1035. 395 "nextHopNetwork": "A String", # The URL of the local network if it should handle matching packets. 396 "network": "A String", # Fully-qualified URL of the network that this route applies to. 397 "selfLink": "A String", # [Output Only] Server-defined fully-qualified URL for this resource. 398 "warnings": [ # [Output Only] If potential misconfigurations are detected for this route, this field will be populated with warning messages. 399 { 400 "message": "A String", # [Output Only] A human-readable description of the warning code. 401 "code": "A String", # [Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. 402 "data": [ # [Output Only] Metadata about this warning in key: value format. For example: 403 # "data": [ { "key": "scope", "value": "zones/us-east1-d" } 404 { 405 "value": "A String", # [Output Only] A warning data value corresponding to the key. 406 "key": "A String", # [Output Only] A key that provides more detail on the warning being returned. For example, for warnings where there are no results in a list request for a particular zone, this key might be scope and the key value might be the zone name. Other examples might be a key indicating a deprecated resource and a suggested replacement, or a warning about invalid network settings (for example, if an instance attempts to perform IP forwarding but is not enabled for IP forwarding). 407 }, 408 ], 409 }, 410 ], 411 "destRange": "A String", # The destination range of outgoing packets that this route applies to. Only IPv4 is supported. 412 "creationTimestamp": "A String", # [Output Only] Creation timestamp in RFC3339 text format. 413 "id": "A String", # [Output Only] The unique identifier for the resource. This identifier is defined by the server. 414 "nextHopIp": "A String", # The network IP address of an instance that should handle matching packets. Only IPv4 is supported. 415 "description": "A String", # An optional description of this resource. Provide this property when you create the resource. 416 }, 417 ], 418 "state": "A String", # BGP state as specified in RFC1771. 419 "ipAddress": "A String", # IP address of the local BGP interface. 420 "numLearnedRoutes": 42, # Number of routes learned from the remote BGP Peer. 421 }, 422 ], 423 "bestRoutesForRouter": [ # Best routes learned by this router. 424 { # Represents a Route resource. A route specifies how certain packets should be handled by the network. Routes are associated with instances by tags and the set of routes for a particular instance is called its routing table. 425 # 426 # For each packet leaving a instance, the system searches that instance's routing table for a single best matching route. Routes match packets by destination IP address, preferring smaller or more specific ranges over larger ones. If there is a tie, the system selects the route with the smallest priority value. If there is still a tie, it uses the layer three and four packet headers to select just one of the remaining matching routes. The packet is then forwarded as specified by the nextHop field of the winning route - either to another instance destination, an instance gateway, or a Google Compute Engine-operated gateway. 427 # 428 # Packets that do not match any route in the sending instance's routing table are dropped. 429 "nextHopGateway": "A String", # The URL to a gateway that should handle matching packets. You can only specify the internet gateway using a full or partial valid URL: projects/<project-id>/global/gateways/default-internet-gateway 430 "nextHopVpnTunnel": "A String", # The URL to a VpnTunnel that should handle matching packets. 431 "kind": "compute#route", # [Output Only] Type of this resource. Always compute#routes for Route resources. 432 "name": "A String", # Name of the resource. Provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression [a-z]([-a-z0-9]*[a-z0-9])? which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash. 433 "tags": [ # A list of instance tags to which this route applies. 434 "A String", 435 ], 436 "nextHopInstance": "A String", # The URL to an instance that should handle matching packets. You can specify this as a full or partial URL. For example: 437 # https://www.googleapis.com/compute/v1/projects/project/zones/zone/instances/ 438 "priority": 42, # The priority of this route. Priority is used to break ties in cases where there is more than one matching route of equal prefix length. In the case of two routes with equal prefix length, the one with the lowest-numbered priority value wins. Default value is 1000. Valid range is 0 through 65535. 439 "nextHopPeering": "A String", # [Output Only] The network peering name that should handle matching packets, which should conform to RFC1035. 440 "nextHopNetwork": "A String", # The URL of the local network if it should handle matching packets. 441 "network": "A String", # Fully-qualified URL of the network that this route applies to. 442 "selfLink": "A String", # [Output Only] Server-defined fully-qualified URL for this resource. 443 "warnings": [ # [Output Only] If potential misconfigurations are detected for this route, this field will be populated with warning messages. 444 { 445 "message": "A String", # [Output Only] A human-readable description of the warning code. 446 "code": "A String", # [Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. 447 "data": [ # [Output Only] Metadata about this warning in key: value format. For example: 448 # "data": [ { "key": "scope", "value": "zones/us-east1-d" } 449 { 450 "value": "A String", # [Output Only] A warning data value corresponding to the key. 451 "key": "A String", # [Output Only] A key that provides more detail on the warning being returned. For example, for warnings where there are no results in a list request for a particular zone, this key might be scope and the key value might be the zone name. Other examples might be a key indicating a deprecated resource and a suggested replacement, or a warning about invalid network settings (for example, if an instance attempts to perform IP forwarding but is not enabled for IP forwarding). 452 }, 453 ], 454 }, 455 ], 456 "destRange": "A String", # The destination range of outgoing packets that this route applies to. Only IPv4 is supported. 457 "creationTimestamp": "A String", # [Output Only] Creation timestamp in RFC3339 text format. 458 "id": "A String", # [Output Only] The unique identifier for the resource. This identifier is defined by the server. 459 "nextHopIp": "A String", # The network IP address of an instance that should handle matching packets. Only IPv4 is supported. 460 "description": "A String", # An optional description of this resource. Provide this property when you create the resource. 461 }, 462 ], 463 "network": "A String", # URI of the network to which this router belongs. 464 "bestRoutes": [ # Best routes for this router's network. 465 { # Represents a Route resource. A route specifies how certain packets should be handled by the network. Routes are associated with instances by tags and the set of routes for a particular instance is called its routing table. 466 # 467 # For each packet leaving a instance, the system searches that instance's routing table for a single best matching route. Routes match packets by destination IP address, preferring smaller or more specific ranges over larger ones. If there is a tie, the system selects the route with the smallest priority value. If there is still a tie, it uses the layer three and four packet headers to select just one of the remaining matching routes. The packet is then forwarded as specified by the nextHop field of the winning route - either to another instance destination, an instance gateway, or a Google Compute Engine-operated gateway. 468 # 469 # Packets that do not match any route in the sending instance's routing table are dropped. 470 "nextHopGateway": "A String", # The URL to a gateway that should handle matching packets. You can only specify the internet gateway using a full or partial valid URL: projects/<project-id>/global/gateways/default-internet-gateway 471 "nextHopVpnTunnel": "A String", # The URL to a VpnTunnel that should handle matching packets. 472 "kind": "compute#route", # [Output Only] Type of this resource. Always compute#routes for Route resources. 473 "name": "A String", # Name of the resource. Provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression [a-z]([-a-z0-9]*[a-z0-9])? which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash. 474 "tags": [ # A list of instance tags to which this route applies. 475 "A String", 476 ], 477 "nextHopInstance": "A String", # The URL to an instance that should handle matching packets. You can specify this as a full or partial URL. For example: 478 # https://www.googleapis.com/compute/v1/projects/project/zones/zone/instances/ 479 "priority": 42, # The priority of this route. Priority is used to break ties in cases where there is more than one matching route of equal prefix length. In the case of two routes with equal prefix length, the one with the lowest-numbered priority value wins. Default value is 1000. Valid range is 0 through 65535. 480 "nextHopPeering": "A String", # [Output Only] The network peering name that should handle matching packets, which should conform to RFC1035. 481 "nextHopNetwork": "A String", # The URL of the local network if it should handle matching packets. 482 "network": "A String", # Fully-qualified URL of the network that this route applies to. 483 "selfLink": "A String", # [Output Only] Server-defined fully-qualified URL for this resource. 484 "warnings": [ # [Output Only] If potential misconfigurations are detected for this route, this field will be populated with warning messages. 485 { 486 "message": "A String", # [Output Only] A human-readable description of the warning code. 487 "code": "A String", # [Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. 488 "data": [ # [Output Only] Metadata about this warning in key: value format. For example: 489 # "data": [ { "key": "scope", "value": "zones/us-east1-d" } 490 { 491 "value": "A String", # [Output Only] A warning data value corresponding to the key. 492 "key": "A String", # [Output Only] A key that provides more detail on the warning being returned. For example, for warnings where there are no results in a list request for a particular zone, this key might be scope and the key value might be the zone name. Other examples might be a key indicating a deprecated resource and a suggested replacement, or a warning about invalid network settings (for example, if an instance attempts to perform IP forwarding but is not enabled for IP forwarding). 493 }, 494 ], 495 }, 496 ], 497 "destRange": "A String", # The destination range of outgoing packets that this route applies to. Only IPv4 is supported. 498 "creationTimestamp": "A String", # [Output Only] Creation timestamp in RFC3339 text format. 499 "id": "A String", # [Output Only] The unique identifier for the resource. This identifier is defined by the server. 500 "nextHopIp": "A String", # The network IP address of an instance that should handle matching packets. Only IPv4 is supported. 501 "description": "A String", # An optional description of this resource. Provide this property when you create the resource. 502 }, 503 ], 504 }, 505 }</pre> 506 </div> 507 508 <div class="method"> 509 <code class="details" id="insert">insert(project, region, body, requestId=None)</code> 510 <pre>Creates a Router resource in the specified project and region using the data included in the request. 511 512 Args: 513 project: string, Project ID for this request. (required) 514 region: string, Name of the region for this request. (required) 515 body: object, The request body. (required) 516 The object takes the form of: 517 518 { # Router resource. 519 "kind": "compute#router", # [Output Only] Type of resource. Always compute#router for routers. 520 "description": "A String", # An optional description of this resource. Provide this property when you create the resource. 521 "interfaces": [ # Router interfaces. Each interface requires either one linked resource (e.g. linkedVpnTunnel), or IP address and IP address range (e.g. ipRange), or both. 522 { 523 "linkedInterconnectAttachment": "A String", # URI of the linked interconnect attachment. It must be in the same region as the router. Each interface can have at most one linked resource and it could either be a VPN Tunnel or an interconnect attachment. 524 "linkedVpnTunnel": "A String", # URI of the linked VPN tunnel. It must be in the same region as the router. Each interface can have at most one linked resource and it could either be a VPN Tunnel or an interconnect attachment. 525 "ipRange": "A String", # IP address and range of the interface. The IP range must be in the RFC3927 link-local IP space. The value must be a CIDR-formatted string, for example: 169.254.0.1/30. NOTE: Do not truncate the address as it represents the IP address of the interface. 526 "name": "A String", # Name of this interface entry. The name must be 1-63 characters long and comply with RFC1035. 527 }, 528 ], 529 "bgp": { # BGP information specific to this router. 530 "advertisedPrefixs": [ # User-specified list of individual prefixes to advertise in custom mode. This field can only be populated if advertise_mode is CUSTOM and is advertised to all peers of the router. These prefixes will be advertised in addition to any specified groups. Leave this field blank to advertise no custom prefixes. 531 { # Description-tagged prefixes for the router to advertise. 532 "prefix": "A String", # The prefix to advertise. The value must be a CIDR-formatted string. 533 "description": "A String", # User-specified description for the prefix. 534 }, 535 ], 536 "asn": 42, # Local BGP Autonomous System Number (ASN). Must be an RFC6996 private ASN, either 16-bit or 32-bit. The value will be fixed for this router resource. All VPN tunnels that link to this router will have the same local ASN. 537 "advertisedGroups": [ # User-specified list of prefix groups to advertise in custom mode. This field can only be populated if advertise_mode is CUSTOM and is advertised to all peers of the router. These groups will be advertised in addition to any specified prefixes. Leave this field blank to advertise no custom groups. 538 "A String", 539 ], 540 "advertiseMode": "A String", # User-specified flag to indicate which mode to use for advertisement. 541 }, 542 "network": "A String", # URI of the network to which this router belongs. 543 "bgpPeers": [ # BGP information that needs to be configured into the routing stack to establish the BGP peering. It must specify peer ASN and either interface name, IP, or peer IP. Please refer to RFC4273. 544 { 545 "peerAsn": 42, # Peer BGP Autonomous System Number (ASN). For VPN use case, this value can be different for every tunnel. 546 "interfaceName": "A String", # Name of the interface the BGP peer is associated with. 547 "advertisedPrefixs": [ # User-specified list of individual prefixes to advertise in custom mode. This field can only be populated if advertise_mode is CUSTOM and overrides the list defined for the router (in Bgp message). These prefixes will be advertised in addition to any specified groups. Leave this field blank to advertise no custom prefixes. 548 { # Description-tagged prefixes for the router to advertise. 549 "prefix": "A String", # The prefix to advertise. The value must be a CIDR-formatted string. 550 "description": "A String", # User-specified description for the prefix. 551 }, 552 ], 553 "peerIpAddress": "A String", # IP address of the BGP interface outside Google cloud. Only IPv4 is supported. 554 "advertisedGroups": [ # User-specified list of prefix groups to advertise in custom mode. This field can only be populated if advertise_mode is CUSTOM and overrides the list defined for the router (in Bgp message). These groups will be advertised in addition to any specified prefixes. Leave this field blank to advertise no custom groups. 555 "A String", 556 ], 557 "name": "A String", # Name of this BGP peer. The name must be 1-63 characters long and comply with RFC1035. 558 "advertisedRoutePriority": 42, # The priority of routes advertised to this BGP peer. In the case where there is more than one matching route of maximum length, the routes with lowest priority value win. 559 "ipAddress": "A String", # IP address of the interface inside Google Cloud Platform. Only IPv4 is supported. 560 "advertiseMode": "A String", # User-specified flag to indicate which mode to use for advertisement. 561 }, 562 ], 563 "region": "A String", # [Output Only] URI of the region where the router resides. 564 "creationTimestamp": "A String", # [Output Only] Creation timestamp in RFC3339 text format. 565 "id": "A String", # [Output Only] The unique identifier for the resource. This identifier is defined by the server. 566 "selfLink": "A String", # [Output Only] Server-defined URL for the resource. 567 "name": "A String", # Name of the resource. Provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression [a-z]([-a-z0-9]*[a-z0-9])? which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash. 568 } 569 570 requestId: string, begin_interface: MixerMutationRequestBuilder Request ID to support idempotency. 571 572 Returns: 573 An object of the form: 574 575 { # An Operation resource, used to manage asynchronous API requests. 576 "targetId": "A String", # [Output Only] The unique target ID, which identifies a specific incarnation of the target resource. 577 "clientOperationId": "A String", # [Output Only] Reserved for future use. 578 "creationTimestamp": "A String", # [Deprecated] This field is deprecated. 579 "id": "A String", # [Output Only] The unique identifier for the resource. This identifier is defined by the server. 580 "zone": "A String", # [Output Only] The URL of the zone where the operation resides. Only available when performing per-zone operations. 581 "insertTime": "A String", # [Output Only] The time that this operation was requested. This value is in RFC3339 text format. 582 "operationType": "A String", # [Output Only] The type of operation, such as insert, update, or delete, and so on. 583 "httpErrorMessage": "A String", # [Output Only] If the operation fails, this field contains the HTTP error message that was returned, such as NOT FOUND. 584 "progress": 42, # [Output Only] An optional progress indicator that ranges from 0 to 100. There is no requirement that this be linear or support any granularity of operations. This should not be used to guess when the operation will be complete. This number should monotonically increase as the operation progresses. 585 "httpErrorStatusCode": 42, # [Output Only] If the operation fails, this field contains the HTTP error status code that was returned. For example, a 404 means the resource was not found. 586 "statusMessage": "A String", # [Output Only] An optional textual description of the current status of the operation. 587 "status": "A String", # [Output Only] The status of the operation, which can be one of the following: PENDING, RUNNING, or DONE. 588 "description": "A String", # [Output Only] A textual description of the operation, which is set when the operation is created. 589 "warnings": [ # [Output Only] If warning messages are generated during processing of the operation, this field will be populated. 590 { 591 "message": "A String", # [Output Only] A human-readable description of the warning code. 592 "code": "A String", # [Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. 593 "data": [ # [Output Only] Metadata about this warning in key: value format. For example: 594 # "data": [ { "key": "scope", "value": "zones/us-east1-d" } 595 { 596 "value": "A String", # [Output Only] A warning data value corresponding to the key. 597 "key": "A String", # [Output Only] A key that provides more detail on the warning being returned. For example, for warnings where there are no results in a list request for a particular zone, this key might be scope and the key value might be the zone name. Other examples might be a key indicating a deprecated resource and a suggested replacement, or a warning about invalid network settings (for example, if an instance attempts to perform IP forwarding but is not enabled for IP forwarding). 598 }, 599 ], 600 }, 601 ], 602 "user": "A String", # [Output Only] User who requested the operation, for example: user (a] example.com. 603 "startTime": "A String", # [Output Only] The time that this operation was started by the server. This value is in RFC3339 text format. 604 "kind": "compute#operation", # [Output Only] Type of the resource. Always compute#operation for Operation resources. 605 "name": "A String", # [Output Only] Name of the resource. 606 "region": "A String", # [Output Only] The URL of the region where the operation resides. Only available when performing regional operations. 607 "error": { # [Output Only] If errors are generated during processing of the operation, this field will be populated. 608 "errors": [ # [Output Only] The array of errors encountered while processing this operation. 609 { 610 "message": "A String", # [Output Only] An optional, human-readable error message. 611 "code": "A String", # [Output Only] The error type identifier for this error. 612 "location": "A String", # [Output Only] Indicates the field in the request that caused the error. This property is optional. 613 }, 614 ], 615 }, 616 "endTime": "A String", # [Output Only] The time that this operation was completed. This value is in RFC3339 text format. 617 "selfLink": "A String", # [Output Only] Server-defined URL for the resource. 618 "targetLink": "A String", # [Output Only] The URL of the resource that the operation modifies. For operations related to creating a snapshot, this points to the persistent disk that the snapshot was created from. 619 }</pre> 620 </div> 621 622 <div class="method"> 623 <code class="details" id="list">list(project, region, orderBy=None, maxResults=None, pageToken=None, filter=None)</code> 624 <pre>Retrieves a list of Router resources available to the specified project. 625 626 Args: 627 project: string, Project ID for this request. (required) 628 region: string, Name of the region for this request. (required) 629 orderBy: string, Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. 630 631 You can also sort results in descending order based on the creation timestamp using orderBy="creationTimestamp desc". This sorts results based on the creationTimestamp field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. 632 633 Currently, only sorting by name or creationTimestamp desc is supported. 634 maxResults: integer, The maximum number of results per page that should be returned. If the number of available results is larger than maxResults, Compute Engine returns a nextPageToken that can be used to get the next page of results in subsequent list requests. Acceptable values are 0 to 500, inclusive. (Default: 500) 635 pageToken: string, Specifies a page token to use. Set pageToken to the nextPageToken returned by a previous list request to get the next page of results. 636 filter: string, Sets a filter expression for filtering listed resources, in the form filter={expression}. Your {expression} must be in the format: field_name comparison_string literal_string. 637 638 The field_name is the name of the field you want to compare. Only atomic field types are supported (string, number, boolean). The comparison_string must be either eq (equals) or ne (not equals). The literal_string is the string value to filter to. The literal value must be valid for the type of field you are filtering by (string, number, boolean). For string fields, the literal value is interpreted as a regular expression using RE2 syntax. The literal value must match the entire field. 639 640 For example, to filter for instances that do not have a name of example-instance, you would use filter=name ne example-instance. 641 642 You can filter on nested fields. For example, you could filter on instances that have set the scheduling.automaticRestart field to true. Use filtering on nested fields to take advantage of labels to organize and search for results based on label values. 643 644 To filter on multiple expressions, provide each separate expression within parentheses. For example, (scheduling.automaticRestart eq true) (zone eq us-central1-f). Multiple expressions are treated as AND expressions, meaning that resources must match all expressions to pass the filters. 645 646 Returns: 647 An object of the form: 648 649 { # Contains a list of Router resources. 650 "nextPageToken": "A String", # [Output Only] This token allows you to get the next page of results for list requests. If the number of results is larger than maxResults, use the nextPageToken as a value for the query parameter pageToken in the next list request. Subsequent list requests will have their own nextPageToken to continue paging through the results. 651 "items": [ # A list of Router resources. 652 { # Router resource. 653 "kind": "compute#router", # [Output Only] Type of resource. Always compute#router for routers. 654 "description": "A String", # An optional description of this resource. Provide this property when you create the resource. 655 "interfaces": [ # Router interfaces. Each interface requires either one linked resource (e.g. linkedVpnTunnel), or IP address and IP address range (e.g. ipRange), or both. 656 { 657 "linkedInterconnectAttachment": "A String", # URI of the linked interconnect attachment. It must be in the same region as the router. Each interface can have at most one linked resource and it could either be a VPN Tunnel or an interconnect attachment. 658 "linkedVpnTunnel": "A String", # URI of the linked VPN tunnel. It must be in the same region as the router. Each interface can have at most one linked resource and it could either be a VPN Tunnel or an interconnect attachment. 659 "ipRange": "A String", # IP address and range of the interface. The IP range must be in the RFC3927 link-local IP space. The value must be a CIDR-formatted string, for example: 169.254.0.1/30. NOTE: Do not truncate the address as it represents the IP address of the interface. 660 "name": "A String", # Name of this interface entry. The name must be 1-63 characters long and comply with RFC1035. 661 }, 662 ], 663 "bgp": { # BGP information specific to this router. 664 "advertisedPrefixs": [ # User-specified list of individual prefixes to advertise in custom mode. This field can only be populated if advertise_mode is CUSTOM and is advertised to all peers of the router. These prefixes will be advertised in addition to any specified groups. Leave this field blank to advertise no custom prefixes. 665 { # Description-tagged prefixes for the router to advertise. 666 "prefix": "A String", # The prefix to advertise. The value must be a CIDR-formatted string. 667 "description": "A String", # User-specified description for the prefix. 668 }, 669 ], 670 "asn": 42, # Local BGP Autonomous System Number (ASN). Must be an RFC6996 private ASN, either 16-bit or 32-bit. The value will be fixed for this router resource. All VPN tunnels that link to this router will have the same local ASN. 671 "advertisedGroups": [ # User-specified list of prefix groups to advertise in custom mode. This field can only be populated if advertise_mode is CUSTOM and is advertised to all peers of the router. These groups will be advertised in addition to any specified prefixes. Leave this field blank to advertise no custom groups. 672 "A String", 673 ], 674 "advertiseMode": "A String", # User-specified flag to indicate which mode to use for advertisement. 675 }, 676 "network": "A String", # URI of the network to which this router belongs. 677 "bgpPeers": [ # BGP information that needs to be configured into the routing stack to establish the BGP peering. It must specify peer ASN and either interface name, IP, or peer IP. Please refer to RFC4273. 678 { 679 "peerAsn": 42, # Peer BGP Autonomous System Number (ASN). For VPN use case, this value can be different for every tunnel. 680 "interfaceName": "A String", # Name of the interface the BGP peer is associated with. 681 "advertisedPrefixs": [ # User-specified list of individual prefixes to advertise in custom mode. This field can only be populated if advertise_mode is CUSTOM and overrides the list defined for the router (in Bgp message). These prefixes will be advertised in addition to any specified groups. Leave this field blank to advertise no custom prefixes. 682 { # Description-tagged prefixes for the router to advertise. 683 "prefix": "A String", # The prefix to advertise. The value must be a CIDR-formatted string. 684 "description": "A String", # User-specified description for the prefix. 685 }, 686 ], 687 "peerIpAddress": "A String", # IP address of the BGP interface outside Google cloud. Only IPv4 is supported. 688 "advertisedGroups": [ # User-specified list of prefix groups to advertise in custom mode. This field can only be populated if advertise_mode is CUSTOM and overrides the list defined for the router (in Bgp message). These groups will be advertised in addition to any specified prefixes. Leave this field blank to advertise no custom groups. 689 "A String", 690 ], 691 "name": "A String", # Name of this BGP peer. The name must be 1-63 characters long and comply with RFC1035. 692 "advertisedRoutePriority": 42, # The priority of routes advertised to this BGP peer. In the case where there is more than one matching route of maximum length, the routes with lowest priority value win. 693 "ipAddress": "A String", # IP address of the interface inside Google Cloud Platform. Only IPv4 is supported. 694 "advertiseMode": "A String", # User-specified flag to indicate which mode to use for advertisement. 695 }, 696 ], 697 "region": "A String", # [Output Only] URI of the region where the router resides. 698 "creationTimestamp": "A String", # [Output Only] Creation timestamp in RFC3339 text format. 699 "id": "A String", # [Output Only] The unique identifier for the resource. This identifier is defined by the server. 700 "selfLink": "A String", # [Output Only] Server-defined URL for the resource. 701 "name": "A String", # Name of the resource. Provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression [a-z]([-a-z0-9]*[a-z0-9])? which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash. 702 }, 703 ], 704 "kind": "compute#routerList", # [Output Only] Type of resource. Always compute#router for routers. 705 "id": "A String", # [Output Only] The unique identifier for the resource. This identifier is defined by the server. 706 "selfLink": "A String", # [Output Only] Server-defined URL for this resource. 707 }</pre> 708 </div> 709 710 <div class="method"> 711 <code class="details" id="list_next">list_next(previous_request, previous_response)</code> 712 <pre>Retrieves the next page of results. 713 714 Args: 715 previous_request: The request for the previous page. (required) 716 previous_response: The response from the request for the previous page. (required) 717 718 Returns: 719 A request object that you can call 'execute()' on to request the next 720 page. Returns None if there are no more items in the collection. 721 </pre> 722 </div> 723 724 <div class="method"> 725 <code class="details" id="patch">patch(project, region, router, body, requestId=None)</code> 726 <pre>Patches the specified Router resource with the data included in the request. This method supports patch semantics. 727 728 Args: 729 project: string, Project ID for this request. (required) 730 region: string, Name of the region for this request. (required) 731 router: string, Name of the Router resource to patch. (required) 732 body: object, The request body. (required) 733 The object takes the form of: 734 735 { # Router resource. 736 "kind": "compute#router", # [Output Only] Type of resource. Always compute#router for routers. 737 "description": "A String", # An optional description of this resource. Provide this property when you create the resource. 738 "interfaces": [ # Router interfaces. Each interface requires either one linked resource (e.g. linkedVpnTunnel), or IP address and IP address range (e.g. ipRange), or both. 739 { 740 "linkedInterconnectAttachment": "A String", # URI of the linked interconnect attachment. It must be in the same region as the router. Each interface can have at most one linked resource and it could either be a VPN Tunnel or an interconnect attachment. 741 "linkedVpnTunnel": "A String", # URI of the linked VPN tunnel. It must be in the same region as the router. Each interface can have at most one linked resource and it could either be a VPN Tunnel or an interconnect attachment. 742 "ipRange": "A String", # IP address and range of the interface. The IP range must be in the RFC3927 link-local IP space. The value must be a CIDR-formatted string, for example: 169.254.0.1/30. NOTE: Do not truncate the address as it represents the IP address of the interface. 743 "name": "A String", # Name of this interface entry. The name must be 1-63 characters long and comply with RFC1035. 744 }, 745 ], 746 "bgp": { # BGP information specific to this router. 747 "advertisedPrefixs": [ # User-specified list of individual prefixes to advertise in custom mode. This field can only be populated if advertise_mode is CUSTOM and is advertised to all peers of the router. These prefixes will be advertised in addition to any specified groups. Leave this field blank to advertise no custom prefixes. 748 { # Description-tagged prefixes for the router to advertise. 749 "prefix": "A String", # The prefix to advertise. The value must be a CIDR-formatted string. 750 "description": "A String", # User-specified description for the prefix. 751 }, 752 ], 753 "asn": 42, # Local BGP Autonomous System Number (ASN). Must be an RFC6996 private ASN, either 16-bit or 32-bit. The value will be fixed for this router resource. All VPN tunnels that link to this router will have the same local ASN. 754 "advertisedGroups": [ # User-specified list of prefix groups to advertise in custom mode. This field can only be populated if advertise_mode is CUSTOM and is advertised to all peers of the router. These groups will be advertised in addition to any specified prefixes. Leave this field blank to advertise no custom groups. 755 "A String", 756 ], 757 "advertiseMode": "A String", # User-specified flag to indicate which mode to use for advertisement. 758 }, 759 "network": "A String", # URI of the network to which this router belongs. 760 "bgpPeers": [ # BGP information that needs to be configured into the routing stack to establish the BGP peering. It must specify peer ASN and either interface name, IP, or peer IP. Please refer to RFC4273. 761 { 762 "peerAsn": 42, # Peer BGP Autonomous System Number (ASN). For VPN use case, this value can be different for every tunnel. 763 "interfaceName": "A String", # Name of the interface the BGP peer is associated with. 764 "advertisedPrefixs": [ # User-specified list of individual prefixes to advertise in custom mode. This field can only be populated if advertise_mode is CUSTOM and overrides the list defined for the router (in Bgp message). These prefixes will be advertised in addition to any specified groups. Leave this field blank to advertise no custom prefixes. 765 { # Description-tagged prefixes for the router to advertise. 766 "prefix": "A String", # The prefix to advertise. The value must be a CIDR-formatted string. 767 "description": "A String", # User-specified description for the prefix. 768 }, 769 ], 770 "peerIpAddress": "A String", # IP address of the BGP interface outside Google cloud. Only IPv4 is supported. 771 "advertisedGroups": [ # User-specified list of prefix groups to advertise in custom mode. This field can only be populated if advertise_mode is CUSTOM and overrides the list defined for the router (in Bgp message). These groups will be advertised in addition to any specified prefixes. Leave this field blank to advertise no custom groups. 772 "A String", 773 ], 774 "name": "A String", # Name of this BGP peer. The name must be 1-63 characters long and comply with RFC1035. 775 "advertisedRoutePriority": 42, # The priority of routes advertised to this BGP peer. In the case where there is more than one matching route of maximum length, the routes with lowest priority value win. 776 "ipAddress": "A String", # IP address of the interface inside Google Cloud Platform. Only IPv4 is supported. 777 "advertiseMode": "A String", # User-specified flag to indicate which mode to use for advertisement. 778 }, 779 ], 780 "region": "A String", # [Output Only] URI of the region where the router resides. 781 "creationTimestamp": "A String", # [Output Only] Creation timestamp in RFC3339 text format. 782 "id": "A String", # [Output Only] The unique identifier for the resource. This identifier is defined by the server. 783 "selfLink": "A String", # [Output Only] Server-defined URL for the resource. 784 "name": "A String", # Name of the resource. Provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression [a-z]([-a-z0-9]*[a-z0-9])? which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash. 785 } 786 787 requestId: string, begin_interface: MixerMutationRequestBuilder Request ID to support idempotency. 788 789 Returns: 790 An object of the form: 791 792 { # An Operation resource, used to manage asynchronous API requests. 793 "targetId": "A String", # [Output Only] The unique target ID, which identifies a specific incarnation of the target resource. 794 "clientOperationId": "A String", # [Output Only] Reserved for future use. 795 "creationTimestamp": "A String", # [Deprecated] This field is deprecated. 796 "id": "A String", # [Output Only] The unique identifier for the resource. This identifier is defined by the server. 797 "zone": "A String", # [Output Only] The URL of the zone where the operation resides. Only available when performing per-zone operations. 798 "insertTime": "A String", # [Output Only] The time that this operation was requested. This value is in RFC3339 text format. 799 "operationType": "A String", # [Output Only] The type of operation, such as insert, update, or delete, and so on. 800 "httpErrorMessage": "A String", # [Output Only] If the operation fails, this field contains the HTTP error message that was returned, such as NOT FOUND. 801 "progress": 42, # [Output Only] An optional progress indicator that ranges from 0 to 100. There is no requirement that this be linear or support any granularity of operations. This should not be used to guess when the operation will be complete. This number should monotonically increase as the operation progresses. 802 "httpErrorStatusCode": 42, # [Output Only] If the operation fails, this field contains the HTTP error status code that was returned. For example, a 404 means the resource was not found. 803 "statusMessage": "A String", # [Output Only] An optional textual description of the current status of the operation. 804 "status": "A String", # [Output Only] The status of the operation, which can be one of the following: PENDING, RUNNING, or DONE. 805 "description": "A String", # [Output Only] A textual description of the operation, which is set when the operation is created. 806 "warnings": [ # [Output Only] If warning messages are generated during processing of the operation, this field will be populated. 807 { 808 "message": "A String", # [Output Only] A human-readable description of the warning code. 809 "code": "A String", # [Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. 810 "data": [ # [Output Only] Metadata about this warning in key: value format. For example: 811 # "data": [ { "key": "scope", "value": "zones/us-east1-d" } 812 { 813 "value": "A String", # [Output Only] A warning data value corresponding to the key. 814 "key": "A String", # [Output Only] A key that provides more detail on the warning being returned. For example, for warnings where there are no results in a list request for a particular zone, this key might be scope and the key value might be the zone name. Other examples might be a key indicating a deprecated resource and a suggested replacement, or a warning about invalid network settings (for example, if an instance attempts to perform IP forwarding but is not enabled for IP forwarding). 815 }, 816 ], 817 }, 818 ], 819 "user": "A String", # [Output Only] User who requested the operation, for example: user (a] example.com. 820 "startTime": "A String", # [Output Only] The time that this operation was started by the server. This value is in RFC3339 text format. 821 "kind": "compute#operation", # [Output Only] Type of the resource. Always compute#operation for Operation resources. 822 "name": "A String", # [Output Only] Name of the resource. 823 "region": "A String", # [Output Only] The URL of the region where the operation resides. Only available when performing regional operations. 824 "error": { # [Output Only] If errors are generated during processing of the operation, this field will be populated. 825 "errors": [ # [Output Only] The array of errors encountered while processing this operation. 826 { 827 "message": "A String", # [Output Only] An optional, human-readable error message. 828 "code": "A String", # [Output Only] The error type identifier for this error. 829 "location": "A String", # [Output Only] Indicates the field in the request that caused the error. This property is optional. 830 }, 831 ], 832 }, 833 "endTime": "A String", # [Output Only] The time that this operation was completed. This value is in RFC3339 text format. 834 "selfLink": "A String", # [Output Only] Server-defined URL for the resource. 835 "targetLink": "A String", # [Output Only] The URL of the resource that the operation modifies. For operations related to creating a snapshot, this points to the persistent disk that the snapshot was created from. 836 }</pre> 837 </div> 838 839 <div class="method"> 840 <code class="details" id="preview">preview(project, region, router, body)</code> 841 <pre>Preview fields auto-generated during router create and update operations. Calling this method does NOT create or update the router. 842 843 Args: 844 project: string, Project ID for this request. (required) 845 region: string, Name of the region for this request. (required) 846 router: string, Name of the Router resource to query. (required) 847 body: object, The request body. (required) 848 The object takes the form of: 849 850 { # Router resource. 851 "kind": "compute#router", # [Output Only] Type of resource. Always compute#router for routers. 852 "description": "A String", # An optional description of this resource. Provide this property when you create the resource. 853 "interfaces": [ # Router interfaces. Each interface requires either one linked resource (e.g. linkedVpnTunnel), or IP address and IP address range (e.g. ipRange), or both. 854 { 855 "linkedInterconnectAttachment": "A String", # URI of the linked interconnect attachment. It must be in the same region as the router. Each interface can have at most one linked resource and it could either be a VPN Tunnel or an interconnect attachment. 856 "linkedVpnTunnel": "A String", # URI of the linked VPN tunnel. It must be in the same region as the router. Each interface can have at most one linked resource and it could either be a VPN Tunnel or an interconnect attachment. 857 "ipRange": "A String", # IP address and range of the interface. The IP range must be in the RFC3927 link-local IP space. The value must be a CIDR-formatted string, for example: 169.254.0.1/30. NOTE: Do not truncate the address as it represents the IP address of the interface. 858 "name": "A String", # Name of this interface entry. The name must be 1-63 characters long and comply with RFC1035. 859 }, 860 ], 861 "bgp": { # BGP information specific to this router. 862 "advertisedPrefixs": [ # User-specified list of individual prefixes to advertise in custom mode. This field can only be populated if advertise_mode is CUSTOM and is advertised to all peers of the router. These prefixes will be advertised in addition to any specified groups. Leave this field blank to advertise no custom prefixes. 863 { # Description-tagged prefixes for the router to advertise. 864 "prefix": "A String", # The prefix to advertise. The value must be a CIDR-formatted string. 865 "description": "A String", # User-specified description for the prefix. 866 }, 867 ], 868 "asn": 42, # Local BGP Autonomous System Number (ASN). Must be an RFC6996 private ASN, either 16-bit or 32-bit. The value will be fixed for this router resource. All VPN tunnels that link to this router will have the same local ASN. 869 "advertisedGroups": [ # User-specified list of prefix groups to advertise in custom mode. This field can only be populated if advertise_mode is CUSTOM and is advertised to all peers of the router. These groups will be advertised in addition to any specified prefixes. Leave this field blank to advertise no custom groups. 870 "A String", 871 ], 872 "advertiseMode": "A String", # User-specified flag to indicate which mode to use for advertisement. 873 }, 874 "network": "A String", # URI of the network to which this router belongs. 875 "bgpPeers": [ # BGP information that needs to be configured into the routing stack to establish the BGP peering. It must specify peer ASN and either interface name, IP, or peer IP. Please refer to RFC4273. 876 { 877 "peerAsn": 42, # Peer BGP Autonomous System Number (ASN). For VPN use case, this value can be different for every tunnel. 878 "interfaceName": "A String", # Name of the interface the BGP peer is associated with. 879 "advertisedPrefixs": [ # User-specified list of individual prefixes to advertise in custom mode. This field can only be populated if advertise_mode is CUSTOM and overrides the list defined for the router (in Bgp message). These prefixes will be advertised in addition to any specified groups. Leave this field blank to advertise no custom prefixes. 880 { # Description-tagged prefixes for the router to advertise. 881 "prefix": "A String", # The prefix to advertise. The value must be a CIDR-formatted string. 882 "description": "A String", # User-specified description for the prefix. 883 }, 884 ], 885 "peerIpAddress": "A String", # IP address of the BGP interface outside Google cloud. Only IPv4 is supported. 886 "advertisedGroups": [ # User-specified list of prefix groups to advertise in custom mode. This field can only be populated if advertise_mode is CUSTOM and overrides the list defined for the router (in Bgp message). These groups will be advertised in addition to any specified prefixes. Leave this field blank to advertise no custom groups. 887 "A String", 888 ], 889 "name": "A String", # Name of this BGP peer. The name must be 1-63 characters long and comply with RFC1035. 890 "advertisedRoutePriority": 42, # The priority of routes advertised to this BGP peer. In the case where there is more than one matching route of maximum length, the routes with lowest priority value win. 891 "ipAddress": "A String", # IP address of the interface inside Google Cloud Platform. Only IPv4 is supported. 892 "advertiseMode": "A String", # User-specified flag to indicate which mode to use for advertisement. 893 }, 894 ], 895 "region": "A String", # [Output Only] URI of the region where the router resides. 896 "creationTimestamp": "A String", # [Output Only] Creation timestamp in RFC3339 text format. 897 "id": "A String", # [Output Only] The unique identifier for the resource. This identifier is defined by the server. 898 "selfLink": "A String", # [Output Only] Server-defined URL for the resource. 899 "name": "A String", # Name of the resource. Provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression [a-z]([-a-z0-9]*[a-z0-9])? which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash. 900 } 901 902 903 Returns: 904 An object of the form: 905 906 { 907 "resource": { # Router resource. # Preview of given router. 908 "kind": "compute#router", # [Output Only] Type of resource. Always compute#router for routers. 909 "description": "A String", # An optional description of this resource. Provide this property when you create the resource. 910 "interfaces": [ # Router interfaces. Each interface requires either one linked resource (e.g. linkedVpnTunnel), or IP address and IP address range (e.g. ipRange), or both. 911 { 912 "linkedInterconnectAttachment": "A String", # URI of the linked interconnect attachment. It must be in the same region as the router. Each interface can have at most one linked resource and it could either be a VPN Tunnel or an interconnect attachment. 913 "linkedVpnTunnel": "A String", # URI of the linked VPN tunnel. It must be in the same region as the router. Each interface can have at most one linked resource and it could either be a VPN Tunnel or an interconnect attachment. 914 "ipRange": "A String", # IP address and range of the interface. The IP range must be in the RFC3927 link-local IP space. The value must be a CIDR-formatted string, for example: 169.254.0.1/30. NOTE: Do not truncate the address as it represents the IP address of the interface. 915 "name": "A String", # Name of this interface entry. The name must be 1-63 characters long and comply with RFC1035. 916 }, 917 ], 918 "bgp": { # BGP information specific to this router. 919 "advertisedPrefixs": [ # User-specified list of individual prefixes to advertise in custom mode. This field can only be populated if advertise_mode is CUSTOM and is advertised to all peers of the router. These prefixes will be advertised in addition to any specified groups. Leave this field blank to advertise no custom prefixes. 920 { # Description-tagged prefixes for the router to advertise. 921 "prefix": "A String", # The prefix to advertise. The value must be a CIDR-formatted string. 922 "description": "A String", # User-specified description for the prefix. 923 }, 924 ], 925 "asn": 42, # Local BGP Autonomous System Number (ASN). Must be an RFC6996 private ASN, either 16-bit or 32-bit. The value will be fixed for this router resource. All VPN tunnels that link to this router will have the same local ASN. 926 "advertisedGroups": [ # User-specified list of prefix groups to advertise in custom mode. This field can only be populated if advertise_mode is CUSTOM and is advertised to all peers of the router. These groups will be advertised in addition to any specified prefixes. Leave this field blank to advertise no custom groups. 927 "A String", 928 ], 929 "advertiseMode": "A String", # User-specified flag to indicate which mode to use for advertisement. 930 }, 931 "network": "A String", # URI of the network to which this router belongs. 932 "bgpPeers": [ # BGP information that needs to be configured into the routing stack to establish the BGP peering. It must specify peer ASN and either interface name, IP, or peer IP. Please refer to RFC4273. 933 { 934 "peerAsn": 42, # Peer BGP Autonomous System Number (ASN). For VPN use case, this value can be different for every tunnel. 935 "interfaceName": "A String", # Name of the interface the BGP peer is associated with. 936 "advertisedPrefixs": [ # User-specified list of individual prefixes to advertise in custom mode. This field can only be populated if advertise_mode is CUSTOM and overrides the list defined for the router (in Bgp message). These prefixes will be advertised in addition to any specified groups. Leave this field blank to advertise no custom prefixes. 937 { # Description-tagged prefixes for the router to advertise. 938 "prefix": "A String", # The prefix to advertise. The value must be a CIDR-formatted string. 939 "description": "A String", # User-specified description for the prefix. 940 }, 941 ], 942 "peerIpAddress": "A String", # IP address of the BGP interface outside Google cloud. Only IPv4 is supported. 943 "advertisedGroups": [ # User-specified list of prefix groups to advertise in custom mode. This field can only be populated if advertise_mode is CUSTOM and overrides the list defined for the router (in Bgp message). These groups will be advertised in addition to any specified prefixes. Leave this field blank to advertise no custom groups. 944 "A String", 945 ], 946 "name": "A String", # Name of this BGP peer. The name must be 1-63 characters long and comply with RFC1035. 947 "advertisedRoutePriority": 42, # The priority of routes advertised to this BGP peer. In the case where there is more than one matching route of maximum length, the routes with lowest priority value win. 948 "ipAddress": "A String", # IP address of the interface inside Google Cloud Platform. Only IPv4 is supported. 949 "advertiseMode": "A String", # User-specified flag to indicate which mode to use for advertisement. 950 }, 951 ], 952 "region": "A String", # [Output Only] URI of the region where the router resides. 953 "creationTimestamp": "A String", # [Output Only] Creation timestamp in RFC3339 text format. 954 "id": "A String", # [Output Only] The unique identifier for the resource. This identifier is defined by the server. 955 "selfLink": "A String", # [Output Only] Server-defined URL for the resource. 956 "name": "A String", # Name of the resource. Provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression [a-z]([-a-z0-9]*[a-z0-9])? which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash. 957 }, 958 }</pre> 959 </div> 960 961 <div class="method"> 962 <code class="details" id="testIamPermissions">testIamPermissions(project, region, resource, body)</code> 963 <pre>Returns permissions that a caller has on the specified resource. 964 965 Args: 966 project: string, Project ID for this request. (required) 967 region: string, The name of the region for this request. (required) 968 resource: string, Name of the resource for this request. (required) 969 body: object, The request body. (required) 970 The object takes the form of: 971 972 { 973 "permissions": [ # The set of permissions to check for the 'resource'. Permissions with wildcards (such as '*' or 'storage.*') are not allowed. 974 "A String", 975 ], 976 } 977 978 979 Returns: 980 An object of the form: 981 982 { 983 "permissions": [ # A subset of `TestPermissionsRequest.permissions` that the caller is allowed. 984 "A String", 985 ], 986 }</pre> 987 </div> 988 989 <div class="method"> 990 <code class="details" id="update">update(project, region, router, body, requestId=None)</code> 991 <pre>Updates the specified Router resource with the data included in the request. 992 993 Args: 994 project: string, Project ID for this request. (required) 995 region: string, Name of the region for this request. (required) 996 router: string, Name of the Router resource to update. (required) 997 body: object, The request body. (required) 998 The object takes the form of: 999 1000 { # Router resource. 1001 "kind": "compute#router", # [Output Only] Type of resource. Always compute#router for routers. 1002 "description": "A String", # An optional description of this resource. Provide this property when you create the resource. 1003 "interfaces": [ # Router interfaces. Each interface requires either one linked resource (e.g. linkedVpnTunnel), or IP address and IP address range (e.g. ipRange), or both. 1004 { 1005 "linkedInterconnectAttachment": "A String", # URI of the linked interconnect attachment. It must be in the same region as the router. Each interface can have at most one linked resource and it could either be a VPN Tunnel or an interconnect attachment. 1006 "linkedVpnTunnel": "A String", # URI of the linked VPN tunnel. It must be in the same region as the router. Each interface can have at most one linked resource and it could either be a VPN Tunnel or an interconnect attachment. 1007 "ipRange": "A String", # IP address and range of the interface. The IP range must be in the RFC3927 link-local IP space. The value must be a CIDR-formatted string, for example: 169.254.0.1/30. NOTE: Do not truncate the address as it represents the IP address of the interface. 1008 "name": "A String", # Name of this interface entry. The name must be 1-63 characters long and comply with RFC1035. 1009 }, 1010 ], 1011 "bgp": { # BGP information specific to this router. 1012 "advertisedPrefixs": [ # User-specified list of individual prefixes to advertise in custom mode. This field can only be populated if advertise_mode is CUSTOM and is advertised to all peers of the router. These prefixes will be advertised in addition to any specified groups. Leave this field blank to advertise no custom prefixes. 1013 { # Description-tagged prefixes for the router to advertise. 1014 "prefix": "A String", # The prefix to advertise. The value must be a CIDR-formatted string. 1015 "description": "A String", # User-specified description for the prefix. 1016 }, 1017 ], 1018 "asn": 42, # Local BGP Autonomous System Number (ASN). Must be an RFC6996 private ASN, either 16-bit or 32-bit. The value will be fixed for this router resource. All VPN tunnels that link to this router will have the same local ASN. 1019 "advertisedGroups": [ # User-specified list of prefix groups to advertise in custom mode. This field can only be populated if advertise_mode is CUSTOM and is advertised to all peers of the router. These groups will be advertised in addition to any specified prefixes. Leave this field blank to advertise no custom groups. 1020 "A String", 1021 ], 1022 "advertiseMode": "A String", # User-specified flag to indicate which mode to use for advertisement. 1023 }, 1024 "network": "A String", # URI of the network to which this router belongs. 1025 "bgpPeers": [ # BGP information that needs to be configured into the routing stack to establish the BGP peering. It must specify peer ASN and either interface name, IP, or peer IP. Please refer to RFC4273. 1026 { 1027 "peerAsn": 42, # Peer BGP Autonomous System Number (ASN). For VPN use case, this value can be different for every tunnel. 1028 "interfaceName": "A String", # Name of the interface the BGP peer is associated with. 1029 "advertisedPrefixs": [ # User-specified list of individual prefixes to advertise in custom mode. This field can only be populated if advertise_mode is CUSTOM and overrides the list defined for the router (in Bgp message). These prefixes will be advertised in addition to any specified groups. Leave this field blank to advertise no custom prefixes. 1030 { # Description-tagged prefixes for the router to advertise. 1031 "prefix": "A String", # The prefix to advertise. The value must be a CIDR-formatted string. 1032 "description": "A String", # User-specified description for the prefix. 1033 }, 1034 ], 1035 "peerIpAddress": "A String", # IP address of the BGP interface outside Google cloud. Only IPv4 is supported. 1036 "advertisedGroups": [ # User-specified list of prefix groups to advertise in custom mode. This field can only be populated if advertise_mode is CUSTOM and overrides the list defined for the router (in Bgp message). These groups will be advertised in addition to any specified prefixes. Leave this field blank to advertise no custom groups. 1037 "A String", 1038 ], 1039 "name": "A String", # Name of this BGP peer. The name must be 1-63 characters long and comply with RFC1035. 1040 "advertisedRoutePriority": 42, # The priority of routes advertised to this BGP peer. In the case where there is more than one matching route of maximum length, the routes with lowest priority value win. 1041 "ipAddress": "A String", # IP address of the interface inside Google Cloud Platform. Only IPv4 is supported. 1042 "advertiseMode": "A String", # User-specified flag to indicate which mode to use for advertisement. 1043 }, 1044 ], 1045 "region": "A String", # [Output Only] URI of the region where the router resides. 1046 "creationTimestamp": "A String", # [Output Only] Creation timestamp in RFC3339 text format. 1047 "id": "A String", # [Output Only] The unique identifier for the resource. This identifier is defined by the server. 1048 "selfLink": "A String", # [Output Only] Server-defined URL for the resource. 1049 "name": "A String", # Name of the resource. Provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression [a-z]([-a-z0-9]*[a-z0-9])? which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash. 1050 } 1051 1052 requestId: string, begin_interface: MixerMutationRequestBuilder Request ID to support idempotency. 1053 1054 Returns: 1055 An object of the form: 1056 1057 { # An Operation resource, used to manage asynchronous API requests. 1058 "targetId": "A String", # [Output Only] The unique target ID, which identifies a specific incarnation of the target resource. 1059 "clientOperationId": "A String", # [Output Only] Reserved for future use. 1060 "creationTimestamp": "A String", # [Deprecated] This field is deprecated. 1061 "id": "A String", # [Output Only] The unique identifier for the resource. This identifier is defined by the server. 1062 "zone": "A String", # [Output Only] The URL of the zone where the operation resides. Only available when performing per-zone operations. 1063 "insertTime": "A String", # [Output Only] The time that this operation was requested. This value is in RFC3339 text format. 1064 "operationType": "A String", # [Output Only] The type of operation, such as insert, update, or delete, and so on. 1065 "httpErrorMessage": "A String", # [Output Only] If the operation fails, this field contains the HTTP error message that was returned, such as NOT FOUND. 1066 "progress": 42, # [Output Only] An optional progress indicator that ranges from 0 to 100. There is no requirement that this be linear or support any granularity of operations. This should not be used to guess when the operation will be complete. This number should monotonically increase as the operation progresses. 1067 "httpErrorStatusCode": 42, # [Output Only] If the operation fails, this field contains the HTTP error status code that was returned. For example, a 404 means the resource was not found. 1068 "statusMessage": "A String", # [Output Only] An optional textual description of the current status of the operation. 1069 "status": "A String", # [Output Only] The status of the operation, which can be one of the following: PENDING, RUNNING, or DONE. 1070 "description": "A String", # [Output Only] A textual description of the operation, which is set when the operation is created. 1071 "warnings": [ # [Output Only] If warning messages are generated during processing of the operation, this field will be populated. 1072 { 1073 "message": "A String", # [Output Only] A human-readable description of the warning code. 1074 "code": "A String", # [Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response. 1075 "data": [ # [Output Only] Metadata about this warning in key: value format. For example: 1076 # "data": [ { "key": "scope", "value": "zones/us-east1-d" } 1077 { 1078 "value": "A String", # [Output Only] A warning data value corresponding to the key. 1079 "key": "A String", # [Output Only] A key that provides more detail on the warning being returned. For example, for warnings where there are no results in a list request for a particular zone, this key might be scope and the key value might be the zone name. Other examples might be a key indicating a deprecated resource and a suggested replacement, or a warning about invalid network settings (for example, if an instance attempts to perform IP forwarding but is not enabled for IP forwarding). 1080 }, 1081 ], 1082 }, 1083 ], 1084 "user": "A String", # [Output Only] User who requested the operation, for example: user (a] example.com. 1085 "startTime": "A String", # [Output Only] The time that this operation was started by the server. This value is in RFC3339 text format. 1086 "kind": "compute#operation", # [Output Only] Type of the resource. Always compute#operation for Operation resources. 1087 "name": "A String", # [Output Only] Name of the resource. 1088 "region": "A String", # [Output Only] The URL of the region where the operation resides. Only available when performing regional operations. 1089 "error": { # [Output Only] If errors are generated during processing of the operation, this field will be populated. 1090 "errors": [ # [Output Only] The array of errors encountered while processing this operation. 1091 { 1092 "message": "A String", # [Output Only] An optional, human-readable error message. 1093 "code": "A String", # [Output Only] The error type identifier for this error. 1094 "location": "A String", # [Output Only] Indicates the field in the request that caused the error. This property is optional. 1095 }, 1096 ], 1097 }, 1098 "endTime": "A String", # [Output Only] The time that this operation was completed. This value is in RFC3339 text format. 1099 "selfLink": "A String", # [Output Only] Server-defined URL for the resource. 1100 "targetLink": "A String", # [Output Only] The URL of the resource that the operation modifies. For operations related to creating a snapshot, this points to the persistent disk that the snapshot was created from. 1101 }</pre> 1102 </div> 1103 1104 </body></html>