1<html><body> 2<style> 3 4body, h1, h2, h3, div, span, p, pre, a { 5 margin: 0; 6 padding: 0; 7 border: 0; 8 font-weight: inherit; 9 font-style: inherit; 10 font-size: 100%; 11 font-family: inherit; 12 vertical-align: baseline; 13} 14 15body { 16 font-size: 13px; 17 padding: 1em; 18} 19 20h1 { 21 font-size: 26px; 22 margin-bottom: 1em; 23} 24 25h2 { 26 font-size: 24px; 27 margin-bottom: 1em; 28} 29 30h3 { 31 font-size: 20px; 32 margin-bottom: 1em; 33 margin-top: 1em; 34} 35 36pre, code { 37 line-height: 1.5; 38 font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace; 39} 40 41pre { 42 margin-top: 0.5em; 43} 44 45h1, h2, h3, p { 46 font-family: Arial, sans serif; 47} 48 49h1, h2, h3 { 50 border-bottom: solid #CCC 1px; 51} 52 53.toc_element { 54 margin-top: 0.5em; 55} 56 57.firstline { 58 margin-left: 2 em; 59} 60 61.method { 62 margin-top: 1em; 63 border: solid 1px #CCC; 64 padding: 1em; 65 background: #EEE; 66} 67 68.details { 69 font-weight: bold; 70 font-size: 14px; 71} 72 73</style> 74 75<h1><a href="compute_alpha.html">Compute Engine API</a> . <a href="compute_alpha.routes.html">routes</a></h1> 76<h2>Instance Methods</h2> 77<p class="toc_element"> 78 <code><a href="#delete">delete(project, route, requestId=None)</a></code></p> 79<p class="firstline">Deletes the specified Route resource.</p> 80<p class="toc_element"> 81 <code><a href="#get">get(project, route)</a></code></p> 82<p class="firstline">Returns the specified Route resource. Gets a list of available routes by making a list() request.</p> 83<p class="toc_element"> 84 <code><a href="#insert">insert(project, body, requestId=None)</a></code></p> 85<p class="firstline">Creates a Route resource in the specified project using the data included in the request.</p> 86<p class="toc_element"> 87 <code><a href="#list">list(project, orderBy=None, maxResults=None, pageToken=None, filter=None)</a></code></p> 88<p class="firstline">Retrieves the list of Route resources available to the specified project.</p> 89<p class="toc_element"> 90 <code><a href="#list_next">list_next(previous_request, previous_response)</a></code></p> 91<p class="firstline">Retrieves the next page of results.</p> 92<p class="toc_element"> 93 <code><a href="#testIamPermissions">testIamPermissions(project, resource, body)</a></code></p> 94<p class="firstline">Returns permissions that a caller has on the specified resource.</p> 95<h3>Method Details</h3> 96<div class="method"> 97 <code class="details" id="delete">delete(project, route, requestId=None)</code> 98 <pre>Deletes the specified Route resource. 99 100Args: 101 project: string, Project ID for this request. (required) 102 route: string, Name of the Route resource to delete. (required) 103 requestId: string, An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. 104 105For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. 106 107The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). 108 109Returns: 110 An object of the form: 111 112 { # Represents an Operation resource. 113 # 114 # You can use an operation resource to manage asynchronous API requests. For more information, read Handling API responses. 115 # 116 # Operations can be global, regional or zonal. 117 # - For global operations, use the globalOperations resource. 118 # - For regional operations, use the regionOperations resource. 119 # - For zonal operations, use the zonalOperations resource. 120 # 121 # For more information, read Global, Regional, and Zonal Resources. (== resource_for v1.globalOperations ==) (== resource_for beta.globalOperations ==) (== resource_for v1.regionOperations ==) (== resource_for beta.regionOperations ==) (== resource_for v1.zoneOperations ==) (== resource_for beta.zoneOperations ==) 122 "targetId": "A String", # [Output Only] The unique target ID, which identifies a specific incarnation of the target resource. 123 "clientOperationId": "A String", # [Output Only] The value of `requestId` if you provided it in the request. Not present otherwise. 124 "creationTimestamp": "A String", # [Deprecated] This field is deprecated. 125 "id": "A String", # [Output Only] The unique identifier for the resource. This identifier is defined by the server. 126 "zone": "A String", # [Output Only] The URL of the zone where the operation resides. Only applicable when performing per-zone operations. 127 "insertTime": "A String", # [Output Only] The time that this operation was requested. This value is in RFC3339 text format. 128 "operationType": "A String", # [Output Only] The type of operation, such as insert, update, or delete, and so on. 129 "httpErrorMessage": "A String", # [Output Only] If the operation fails, this field contains the HTTP error message that was returned, such as NOT FOUND. 130 "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. 131 "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. 132 "statusMessage": "A String", # [Output Only] An optional textual description of the current status of the operation. 133 "status": "A String", # [Output Only] The status of the operation, which can be one of the following: PENDING, RUNNING, or DONE. 134 "description": "A String", # [Output Only] A textual description of the operation, which is set when the operation is created. 135 "warnings": [ # [Output Only] If warning messages are generated during processing of the operation, this field will be populated. 136 { 137 "message": "A String", # [Output Only] A human-readable description of the warning code. 138 "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. 139 "data": [ # [Output Only] Metadata about this warning in key: value format. For example: 140 # "data": [ { "key": "scope", "value": "zones/us-east1-d" } 141 { 142 "value": "A String", # [Output Only] A warning data value corresponding to the key. 143 "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). 144 }, 145 ], 146 }, 147 ], 148 "selfLinkWithId": "A String", # [Output Only] Server-defined URL for this resource with the resource id. 149 "user": "A String", # [Output Only] User who requested the operation, for example: user@example.com. 150 "startTime": "A String", # [Output Only] The time that this operation was started by the server. This value is in RFC3339 text format. 151 "kind": "compute#operation", # [Output Only] Type of the resource. Always compute#operation for Operation resources. 152 "name": "A String", # [Output Only] Name of the resource. 153 "region": "A String", # [Output Only] The URL of the region where the operation resides. Only applicable when performing regional operations. 154 "error": { # [Output Only] If errors are generated during processing of the operation, this field will be populated. 155 "errors": [ # [Output Only] The array of errors encountered while processing this operation. 156 { 157 "message": "A String", # [Output Only] An optional, human-readable error message. 158 "code": "A String", # [Output Only] The error type identifier for this error. 159 "location": "A String", # [Output Only] Indicates the field in the request that caused the error. This property is optional. 160 }, 161 ], 162 }, 163 "endTime": "A String", # [Output Only] The time that this operation was completed. This value is in RFC3339 text format. 164 "selfLink": "A String", # [Output Only] Server-defined URL for the resource. 165 "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. 166 }</pre> 167</div> 168 169<div class="method"> 170 <code class="details" id="get">get(project, route)</code> 171 <pre>Returns the specified Route resource. Gets a list of available routes by making a list() request. 172 173Args: 174 project: string, Project ID for this request. (required) 175 route: string, Name of the Route resource to return. (required) 176 177Returns: 178 An object of the form: 179 180 { # Represents a Route resource. 181 # 182 # A route defines a path from VM instances in the VPC network to a specific destination. This destination can be inside or outside the VPC network. For more information, read the Routes overview. (== resource_for beta.routes ==) (== resource_for v1.routes ==) 183 "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/global/gateways/default-internet-gateway 184 "nextHopVpnTunnel": "A String", # The URL to a VpnTunnel that should handle matching packets. 185 "kind": "compute#route", # [Output Only] Type of this resource. Always compute#routes for Route resources. 186 "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])?`. The first character must be a lowercase letter, and all following characters (except for the last character) must be a dash, lowercase letter, or digit. The last character must be a lowercase letter or digit. 187 "tags": [ # A list of instance tags to which this route applies. 188 "A String", 189 ], 190 "nextHopIlb": "A String", # The URL to a forwarding rule of type loadBalancingScheme=INTERNAL that should handle matching packets. You can only specify the forwarding rule as a partial or full URL. For example, the following are all valid URLs: 191 # - https://www.googleapis.com/compute/v1/projects/project/regions/region/forwardingRules/forwardingRule 192 # - regions/region/forwardingRules/forwardingRule Note that this can only be used when the destination_range is a public (non-RFC 1918) IP CIDR range. 193 "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: 194 # https://www.googleapis.com/compute/v1/projects/project/zones/zone/instances/ 195 "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 cases where multiple routes have equal prefix length, the one with the lowest-numbered priority value wins. The default value is `1000`. The priority value must be from `0` to `65535`, inclusive. 196 "nextHopPeering": "A String", # [Output Only] The network peering name that should handle matching packets, which should conform to RFC1035. 197 "selfLinkWithId": "A String", # [Output Only] Server-defined URL for this resource with the resource id. 198 "nextHopNetwork": "A String", # The URL of the local network if it should handle matching packets. 199 "network": "A String", # Fully-qualified URL of the network that this route applies to. 200 "nextHopIp": "A String", # The network IP address of an instance that should handle matching packets. Only IPv4 is supported. 201 "warnings": [ # [Output Only] If potential misconfigurations are detected for this route, this field will be populated with warning messages. 202 { 203 "message": "A String", # [Output Only] A human-readable description of the warning code. 204 "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. 205 "data": [ # [Output Only] Metadata about this warning in key: value format. For example: 206 # "data": [ { "key": "scope", "value": "zones/us-east1-d" } 207 { 208 "value": "A String", # [Output Only] A warning data value corresponding to the key. 209 "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). 210 }, 211 ], 212 }, 213 ], 214 "selfLink": "A String", # [Output Only] Server-defined fully-qualified URL for this resource. 215 "destRange": "A String", # The destination range of outgoing packets that this route applies to. Only IPv4 is supported. 216 "creationTimestamp": "A String", # [Output Only] Creation timestamp in RFC3339 text format. 217 "id": "A String", # [Output Only] The unique identifier for the resource. This identifier is defined by the server. 218 "nextHopInterconnectAttachment": "A String", # [Output Only] The URL to an InterconnectAttachment which is the next hop for the route. This field will only be populated for the dynamic routes generated by Cloud Router with a linked interconnectAttachment. 219 "description": "A String", # An optional description of this resource. Provide this field when you create the resource. 220 }</pre> 221</div> 222 223<div class="method"> 224 <code class="details" id="insert">insert(project, body, requestId=None)</code> 225 <pre>Creates a Route resource in the specified project using the data included in the request. 226 227Args: 228 project: string, Project ID for this request. (required) 229 body: object, The request body. (required) 230 The object takes the form of: 231 232{ # Represents a Route resource. 233 # 234 # A route defines a path from VM instances in the VPC network to a specific destination. This destination can be inside or outside the VPC network. For more information, read the Routes overview. (== resource_for beta.routes ==) (== resource_for v1.routes ==) 235 "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/global/gateways/default-internet-gateway 236 "nextHopVpnTunnel": "A String", # The URL to a VpnTunnel that should handle matching packets. 237 "kind": "compute#route", # [Output Only] Type of this resource. Always compute#routes for Route resources. 238 "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])?`. The first character must be a lowercase letter, and all following characters (except for the last character) must be a dash, lowercase letter, or digit. The last character must be a lowercase letter or digit. 239 "tags": [ # A list of instance tags to which this route applies. 240 "A String", 241 ], 242 "nextHopIlb": "A String", # The URL to a forwarding rule of type loadBalancingScheme=INTERNAL that should handle matching packets. You can only specify the forwarding rule as a partial or full URL. For example, the following are all valid URLs: 243 # - https://www.googleapis.com/compute/v1/projects/project/regions/region/forwardingRules/forwardingRule 244 # - regions/region/forwardingRules/forwardingRule Note that this can only be used when the destination_range is a public (non-RFC 1918) IP CIDR range. 245 "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: 246 # https://www.googleapis.com/compute/v1/projects/project/zones/zone/instances/ 247 "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 cases where multiple routes have equal prefix length, the one with the lowest-numbered priority value wins. The default value is `1000`. The priority value must be from `0` to `65535`, inclusive. 248 "nextHopPeering": "A String", # [Output Only] The network peering name that should handle matching packets, which should conform to RFC1035. 249 "selfLinkWithId": "A String", # [Output Only] Server-defined URL for this resource with the resource id. 250 "nextHopNetwork": "A String", # The URL of the local network if it should handle matching packets. 251 "network": "A String", # Fully-qualified URL of the network that this route applies to. 252 "nextHopIp": "A String", # The network IP address of an instance that should handle matching packets. Only IPv4 is supported. 253 "warnings": [ # [Output Only] If potential misconfigurations are detected for this route, this field will be populated with warning messages. 254 { 255 "message": "A String", # [Output Only] A human-readable description of the warning code. 256 "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. 257 "data": [ # [Output Only] Metadata about this warning in key: value format. For example: 258 # "data": [ { "key": "scope", "value": "zones/us-east1-d" } 259 { 260 "value": "A String", # [Output Only] A warning data value corresponding to the key. 261 "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). 262 }, 263 ], 264 }, 265 ], 266 "selfLink": "A String", # [Output Only] Server-defined fully-qualified URL for this resource. 267 "destRange": "A String", # The destination range of outgoing packets that this route applies to. Only IPv4 is supported. 268 "creationTimestamp": "A String", # [Output Only] Creation timestamp in RFC3339 text format. 269 "id": "A String", # [Output Only] The unique identifier for the resource. This identifier is defined by the server. 270 "nextHopInterconnectAttachment": "A String", # [Output Only] The URL to an InterconnectAttachment which is the next hop for the route. This field will only be populated for the dynamic routes generated by Cloud Router with a linked interconnectAttachment. 271 "description": "A String", # An optional description of this resource. Provide this field when you create the resource. 272} 273 274 requestId: string, An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. 275 276For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. 277 278The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). 279 280Returns: 281 An object of the form: 282 283 { # Represents an Operation resource. 284 # 285 # You can use an operation resource to manage asynchronous API requests. For more information, read Handling API responses. 286 # 287 # Operations can be global, regional or zonal. 288 # - For global operations, use the globalOperations resource. 289 # - For regional operations, use the regionOperations resource. 290 # - For zonal operations, use the zonalOperations resource. 291 # 292 # For more information, read Global, Regional, and Zonal Resources. (== resource_for v1.globalOperations ==) (== resource_for beta.globalOperations ==) (== resource_for v1.regionOperations ==) (== resource_for beta.regionOperations ==) (== resource_for v1.zoneOperations ==) (== resource_for beta.zoneOperations ==) 293 "targetId": "A String", # [Output Only] The unique target ID, which identifies a specific incarnation of the target resource. 294 "clientOperationId": "A String", # [Output Only] The value of `requestId` if you provided it in the request. Not present otherwise. 295 "creationTimestamp": "A String", # [Deprecated] This field is deprecated. 296 "id": "A String", # [Output Only] The unique identifier for the resource. This identifier is defined by the server. 297 "zone": "A String", # [Output Only] The URL of the zone where the operation resides. Only applicable when performing per-zone operations. 298 "insertTime": "A String", # [Output Only] The time that this operation was requested. This value is in RFC3339 text format. 299 "operationType": "A String", # [Output Only] The type of operation, such as insert, update, or delete, and so on. 300 "httpErrorMessage": "A String", # [Output Only] If the operation fails, this field contains the HTTP error message that was returned, such as NOT FOUND. 301 "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. 302 "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. 303 "statusMessage": "A String", # [Output Only] An optional textual description of the current status of the operation. 304 "status": "A String", # [Output Only] The status of the operation, which can be one of the following: PENDING, RUNNING, or DONE. 305 "description": "A String", # [Output Only] A textual description of the operation, which is set when the operation is created. 306 "warnings": [ # [Output Only] If warning messages are generated during processing of the operation, this field will be populated. 307 { 308 "message": "A String", # [Output Only] A human-readable description of the warning code. 309 "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. 310 "data": [ # [Output Only] Metadata about this warning in key: value format. For example: 311 # "data": [ { "key": "scope", "value": "zones/us-east1-d" } 312 { 313 "value": "A String", # [Output Only] A warning data value corresponding to the key. 314 "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). 315 }, 316 ], 317 }, 318 ], 319 "selfLinkWithId": "A String", # [Output Only] Server-defined URL for this resource with the resource id. 320 "user": "A String", # [Output Only] User who requested the operation, for example: user@example.com. 321 "startTime": "A String", # [Output Only] The time that this operation was started by the server. This value is in RFC3339 text format. 322 "kind": "compute#operation", # [Output Only] Type of the resource. Always compute#operation for Operation resources. 323 "name": "A String", # [Output Only] Name of the resource. 324 "region": "A String", # [Output Only] The URL of the region where the operation resides. Only applicable when performing regional operations. 325 "error": { # [Output Only] If errors are generated during processing of the operation, this field will be populated. 326 "errors": [ # [Output Only] The array of errors encountered while processing this operation. 327 { 328 "message": "A String", # [Output Only] An optional, human-readable error message. 329 "code": "A String", # [Output Only] The error type identifier for this error. 330 "location": "A String", # [Output Only] Indicates the field in the request that caused the error. This property is optional. 331 }, 332 ], 333 }, 334 "endTime": "A String", # [Output Only] The time that this operation was completed. This value is in RFC3339 text format. 335 "selfLink": "A String", # [Output Only] Server-defined URL for the resource. 336 "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. 337 }</pre> 338</div> 339 340<div class="method"> 341 <code class="details" id="list">list(project, orderBy=None, maxResults=None, pageToken=None, filter=None)</code> 342 <pre>Retrieves the list of Route resources available to the specified project. 343 344Args: 345 project: string, Project ID for this request. (required) 346 orderBy: string, Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. 347 348You 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. 349 350Currently, only sorting by name or creationTimestamp desc is supported. 351 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) 352 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. 353 filter: string, A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison operator must be either =, !=, >, or <. 354 355For example, if you are filtering Compute Engine instances, you can exclude instances named example-instance by specifying name != example-instance. 356 357You can also filter nested fields. For example, you could specify scheduling.automaticRestart = false to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. 358 359To filter on multiple expressions, provide each separate expression within parentheses. For example, (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake"). By default, each expression is an AND expression. However, you can include AND and OR expressions explicitly. For example, (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true). 360 361Returns: 362 An object of the form: 363 364 { # Contains a list of Route resources. 365 "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. 366 "kind": "compute#routeList", # Type of resource. 367 "items": [ # A list of Route resources. 368 { # Represents a Route resource. 369 # 370 # A route defines a path from VM instances in the VPC network to a specific destination. This destination can be inside or outside the VPC network. For more information, read the Routes overview. (== resource_for beta.routes ==) (== resource_for v1.routes ==) 371 "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/global/gateways/default-internet-gateway 372 "nextHopVpnTunnel": "A String", # The URL to a VpnTunnel that should handle matching packets. 373 "kind": "compute#route", # [Output Only] Type of this resource. Always compute#routes for Route resources. 374 "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])?`. The first character must be a lowercase letter, and all following characters (except for the last character) must be a dash, lowercase letter, or digit. The last character must be a lowercase letter or digit. 375 "tags": [ # A list of instance tags to which this route applies. 376 "A String", 377 ], 378 "nextHopIlb": "A String", # The URL to a forwarding rule of type loadBalancingScheme=INTERNAL that should handle matching packets. You can only specify the forwarding rule as a partial or full URL. For example, the following are all valid URLs: 379 # - https://www.googleapis.com/compute/v1/projects/project/regions/region/forwardingRules/forwardingRule 380 # - regions/region/forwardingRules/forwardingRule Note that this can only be used when the destination_range is a public (non-RFC 1918) IP CIDR range. 381 "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: 382 # https://www.googleapis.com/compute/v1/projects/project/zones/zone/instances/ 383 "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 cases where multiple routes have equal prefix length, the one with the lowest-numbered priority value wins. The default value is `1000`. The priority value must be from `0` to `65535`, inclusive. 384 "nextHopPeering": "A String", # [Output Only] The network peering name that should handle matching packets, which should conform to RFC1035. 385 "selfLinkWithId": "A String", # [Output Only] Server-defined URL for this resource with the resource id. 386 "nextHopNetwork": "A String", # The URL of the local network if it should handle matching packets. 387 "network": "A String", # Fully-qualified URL of the network that this route applies to. 388 "nextHopIp": "A String", # The network IP address of an instance that should handle matching packets. Only IPv4 is supported. 389 "warnings": [ # [Output Only] If potential misconfigurations are detected for this route, this field will be populated with warning messages. 390 { 391 "message": "A String", # [Output Only] A human-readable description of the warning code. 392 "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. 393 "data": [ # [Output Only] Metadata about this warning in key: value format. For example: 394 # "data": [ { "key": "scope", "value": "zones/us-east1-d" } 395 { 396 "value": "A String", # [Output Only] A warning data value corresponding to the key. 397 "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). 398 }, 399 ], 400 }, 401 ], 402 "selfLink": "A String", # [Output Only] Server-defined fully-qualified URL for this resource. 403 "destRange": "A String", # The destination range of outgoing packets that this route applies to. Only IPv4 is supported. 404 "creationTimestamp": "A String", # [Output Only] Creation timestamp in RFC3339 text format. 405 "id": "A String", # [Output Only] The unique identifier for the resource. This identifier is defined by the server. 406 "nextHopInterconnectAttachment": "A String", # [Output Only] The URL to an InterconnectAttachment which is the next hop for the route. This field will only be populated for the dynamic routes generated by Cloud Router with a linked interconnectAttachment. 407 "description": "A String", # An optional description of this resource. Provide this field when you create the resource. 408 }, 409 ], 410 "warning": { # [Output Only] Informational warning message. 411 "message": "A String", # [Output Only] A human-readable description of the warning code. 412 "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. 413 "data": [ # [Output Only] Metadata about this warning in key: value format. For example: 414 # "data": [ { "key": "scope", "value": "zones/us-east1-d" } 415 { 416 "value": "A String", # [Output Only] A warning data value corresponding to the key. 417 "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). 418 }, 419 ], 420 }, 421 "id": "A String", # [Output Only] Unique identifier for the resource; defined by the server. 422 "selfLink": "A String", # [Output Only] Server-defined URL for this resource. 423 }</pre> 424</div> 425 426<div class="method"> 427 <code class="details" id="list_next">list_next(previous_request, previous_response)</code> 428 <pre>Retrieves the next page of results. 429 430Args: 431 previous_request: The request for the previous page. (required) 432 previous_response: The response from the request for the previous page. (required) 433 434Returns: 435 A request object that you can call 'execute()' on to request the next 436 page. Returns None if there are no more items in the collection. 437 </pre> 438</div> 439 440<div class="method"> 441 <code class="details" id="testIamPermissions">testIamPermissions(project, resource, body)</code> 442 <pre>Returns permissions that a caller has on the specified resource. 443 444Args: 445 project: string, Project ID for this request. (required) 446 resource: string, Name or id of the resource for this request. (required) 447 body: object, The request body. (required) 448 The object takes the form of: 449 450{ 451 "permissions": [ # The set of permissions to check for the 'resource'. Permissions with wildcards (such as '*' or 'storage.*') are not allowed. 452 "A String", 453 ], 454 } 455 456 457Returns: 458 An object of the form: 459 460 { 461 "permissions": [ # A subset of `TestPermissionsRequest.permissions` that the caller is allowed. 462 "A String", 463 ], 464 }</pre> 465</div> 466 467</body></html>