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_v1.html">Compute Engine API</a> . <a href="compute_v1.urlMaps.html">urlMaps</a></h1> 76 <h2>Instance Methods</h2> 77 <p class="toc_element"> 78 <code><a href="#delete">delete(project, urlMap)</a></code></p> 79 <p class="firstline">Deletes the specified UrlMap resource.</p> 80 <p class="toc_element"> 81 <code><a href="#get">get(project, urlMap)</a></code></p> 82 <p class="firstline">Returns the specified UrlMap resource. Get a list of available URL maps by making a list() request.</p> 83 <p class="toc_element"> 84 <code><a href="#insert">insert(project, body)</a></code></p> 85 <p class="firstline">Creates a UrlMap resource in the specified project using the data included in the request.</p> 86 <p class="toc_element"> 87 <code><a href="#invalidateCache">invalidateCache(project, urlMap, body)</a></code></p> 88 <p class="firstline">Initiates a cache invalidation operation, invalidating the specified path, scoped to the specified UrlMap.</p> 89 <p class="toc_element"> 90 <code><a href="#list">list(project, orderBy=None, maxResults=None, pageToken=None, filter=None)</a></code></p> 91 <p class="firstline">Retrieves the list of UrlMap resources available to the specified project.</p> 92 <p class="toc_element"> 93 <code><a href="#list_next">list_next(previous_request, previous_response)</a></code></p> 94 <p class="firstline">Retrieves the next page of results.</p> 95 <p class="toc_element"> 96 <code><a href="#patch">patch(project, urlMap, body)</a></code></p> 97 <p class="firstline">Patches the specified UrlMap resource with the data included in the request. This method supports patch semantics.</p> 98 <p class="toc_element"> 99 <code><a href="#update">update(project, urlMap, body)</a></code></p> 100 <p class="firstline">Updates the specified UrlMap resource with the data included in the request.</p> 101 <p class="toc_element"> 102 <code><a href="#validate">validate(project, urlMap, body)</a></code></p> 103 <p class="firstline">Runs static validation for the UrlMap. In particular, the tests of the provided UrlMap will be run. Calling this method does NOT create the UrlMap.</p> 104 <h3>Method Details</h3> 105 <div class="method"> 106 <code class="details" id="delete">delete(project, urlMap)</code> 107 <pre>Deletes the specified UrlMap resource. 108 109 Args: 110 project: string, Project ID for this request. (required) 111 urlMap: string, Name of the UrlMap resource to delete. (required) 112 113 Returns: 114 An object of the form: 115 116 { # An Operation resource, used to manage asynchronous API requests. 117 "targetId": "A String", # [Output Only] The unique target ID, which identifies a specific incarnation of the target resource. 118 "clientOperationId": "A String", # [Output Only] Reserved for future use. 119 "creationTimestamp": "A String", # [Deprecated] This field is deprecated. 120 "id": "A String", # [Output Only] The unique identifier for the resource. This identifier is defined by the server. 121 "zone": "A String", # [Output Only] The URL of the zone where the operation resides. Only available when performing per-zone operations. 122 "insertTime": "A String", # [Output Only] The time that this operation was requested. This value is in RFC3339 text format. 123 "operationType": "A String", # [Output Only] The type of operation, such as insert, update, or delete, and so on. 124 "httpErrorMessage": "A String", # [Output Only] If the operation fails, this field contains the HTTP error message that was returned, such as NOT FOUND. 125 "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. 126 "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. 127 "statusMessage": "A String", # [Output Only] An optional textual description of the current status of the operation. 128 "status": "A String", # [Output Only] The status of the operation, which can be one of the following: PENDING, RUNNING, or DONE. 129 "description": "A String", # [Output Only] A textual description of the operation, which is set when the operation is created. 130 "warnings": [ # [Output Only] If warning messages are generated during processing of the operation, this field will be populated. 131 { 132 "message": "A String", # [Output Only] A human-readable description of the warning code. 133 "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. 134 "data": [ # [Output Only] Metadata about this warning in key: value format. For example: 135 # "data": [ { "key": "scope", "value": "zones/us-east1-d" } 136 { 137 "value": "A String", # [Output Only] A warning data value corresponding to the key. 138 "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). 139 }, 140 ], 141 }, 142 ], 143 "user": "A String", # [Output Only] User who requested the operation, for example: user (a] example.com. 144 "startTime": "A String", # [Output Only] The time that this operation was started by the server. This value is in RFC3339 text format. 145 "kind": "compute#operation", # [Output Only] Type of the resource. Always compute#operation for Operation resources. 146 "name": "A String", # [Output Only] Name of the resource. 147 "region": "A String", # [Output Only] The URL of the region where the operation resides. Only available when performing regional operations. 148 "error": { # [Output Only] If errors are generated during processing of the operation, this field will be populated. 149 "errors": [ # [Output Only] The array of errors encountered while processing this operation. 150 { 151 "message": "A String", # [Output Only] An optional, human-readable error message. 152 "code": "A String", # [Output Only] The error type identifier for this error. 153 "location": "A String", # [Output Only] Indicates the field in the request that caused the error. This property is optional. 154 }, 155 ], 156 }, 157 "endTime": "A String", # [Output Only] The time that this operation was completed. This value is in RFC3339 text format. 158 "selfLink": "A String", # [Output Only] Server-defined URL for the resource. 159 "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. 160 }</pre> 161 </div> 162 163 <div class="method"> 164 <code class="details" id="get">get(project, urlMap)</code> 165 <pre>Returns the specified UrlMap resource. Get a list of available URL maps by making a list() request. 166 167 Args: 168 project: string, Project ID for this request. (required) 169 urlMap: string, Name of the UrlMap resource to return. (required) 170 171 Returns: 172 An object of the form: 173 174 { # A UrlMap resource. This resource defines the mapping from URL to the BackendService resource, based on the "longest-match" of the URL's host and path. 175 "kind": "compute#urlMap", # [Output Only] Type of the resource. Always compute#urlMaps for url maps. 176 "description": "A String", # An optional description of this resource. Provide this property when you create the resource. 177 "defaultService": "A String", # The URL of the BackendService resource if none of the hostRules match. 178 "tests": [ # The list of expected URL mappings. Request to update this UrlMap will succeed only if all of the test cases pass. 179 { # Message for the expected URL mappings. 180 "path": "A String", # Path portion of the URL. 181 "host": "A String", # Host portion of the URL. 182 "description": "A String", # Description of this test case. 183 "service": "A String", # Expected BackendService resource the given URL should be mapped to. 184 }, 185 ], 186 "selfLink": "A String", # [Output Only] Server-defined URL for the resource. 187 "fingerprint": "A String", # Fingerprint of this resource. A hash of the contents stored in this object. This field is used in optimistic locking. This field will be ignored when inserting a UrlMap. An up-to-date fingerprint must be provided in order to update the UrlMap. 188 "pathMatchers": [ # The list of named PathMatchers to use against the URL. 189 { # A matcher for the path portion of the URL. The BackendService from the longest-matched rule will serve the URL. If no rule was matched, the default service will be used. 190 "defaultService": "A String", # The full or partial URL to the BackendService resource. This will be used if none of the pathRules defined by this PathMatcher is matched by the URL's path portion. For example, the following are all valid URLs to a BackendService resource: 191 # - https://www.googleapis.com/compute/v1/projects/project/global/backendServices/backendService 192 # - compute/v1/projects/project/global/backendServices/backendService 193 # - global/backendServices/backendService 194 "pathRules": [ # The list of path rules. 195 { # A path-matching rule for a URL. If matched, will use the specified BackendService to handle the traffic arriving at this URL. 196 "paths": [ # The list of path patterns to match. Each must start with / and the only place a * is allowed is at the end following a /. The string fed to the path matcher does not include any text after the first ? or #, and those chars are not allowed here. 197 "A String", 198 ], 199 "service": "A String", # The URL of the BackendService resource if this rule is matched. 200 }, 201 ], 202 "description": "A String", # An optional description of this resource. Provide this property when you create the resource. 203 "name": "A String", # The name to which this PathMatcher is referred by the HostRule. 204 }, 205 ], 206 "creationTimestamp": "A String", # [Output Only] Creation timestamp in RFC3339 text format. 207 "id": "A String", # [Output Only] The unique identifier for the resource. This identifier is defined by the server. 208 "hostRules": [ # The list of HostRules to use against the URL. 209 { # UrlMaps A host-matching rule for a URL. If matched, will use the named PathMatcher to select the BackendService. 210 "hosts": [ # The list of host patterns to match. They must be valid hostnames, except * will match any string of ([a-z0-9-.]*). In that case, * must be the first character and must be followed in the pattern by either - or .. 211 "A String", 212 ], 213 "description": "A String", # An optional description of this resource. Provide this property when you create the resource. 214 "pathMatcher": "A String", # The name of the PathMatcher to use to match the path portion of the URL if the hostRule matches the URL's host portion. 215 }, 216 ], 217 "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. 218 }</pre> 219 </div> 220 221 <div class="method"> 222 <code class="details" id="insert">insert(project, body)</code> 223 <pre>Creates a UrlMap resource in the specified project using the data included in the request. 224 225 Args: 226 project: string, Project ID for this request. (required) 227 body: object, The request body. (required) 228 The object takes the form of: 229 230 { # A UrlMap resource. This resource defines the mapping from URL to the BackendService resource, based on the "longest-match" of the URL's host and path. 231 "kind": "compute#urlMap", # [Output Only] Type of the resource. Always compute#urlMaps for url maps. 232 "description": "A String", # An optional description of this resource. Provide this property when you create the resource. 233 "defaultService": "A String", # The URL of the BackendService resource if none of the hostRules match. 234 "tests": [ # The list of expected URL mappings. Request to update this UrlMap will succeed only if all of the test cases pass. 235 { # Message for the expected URL mappings. 236 "path": "A String", # Path portion of the URL. 237 "host": "A String", # Host portion of the URL. 238 "description": "A String", # Description of this test case. 239 "service": "A String", # Expected BackendService resource the given URL should be mapped to. 240 }, 241 ], 242 "selfLink": "A String", # [Output Only] Server-defined URL for the resource. 243 "fingerprint": "A String", # Fingerprint of this resource. A hash of the contents stored in this object. This field is used in optimistic locking. This field will be ignored when inserting a UrlMap. An up-to-date fingerprint must be provided in order to update the UrlMap. 244 "pathMatchers": [ # The list of named PathMatchers to use against the URL. 245 { # A matcher for the path portion of the URL. The BackendService from the longest-matched rule will serve the URL. If no rule was matched, the default service will be used. 246 "defaultService": "A String", # The full or partial URL to the BackendService resource. This will be used if none of the pathRules defined by this PathMatcher is matched by the URL's path portion. For example, the following are all valid URLs to a BackendService resource: 247 # - https://www.googleapis.com/compute/v1/projects/project/global/backendServices/backendService 248 # - compute/v1/projects/project/global/backendServices/backendService 249 # - global/backendServices/backendService 250 "pathRules": [ # The list of path rules. 251 { # A path-matching rule for a URL. If matched, will use the specified BackendService to handle the traffic arriving at this URL. 252 "paths": [ # The list of path patterns to match. Each must start with / and the only place a * is allowed is at the end following a /. The string fed to the path matcher does not include any text after the first ? or #, and those chars are not allowed here. 253 "A String", 254 ], 255 "service": "A String", # The URL of the BackendService resource if this rule is matched. 256 }, 257 ], 258 "description": "A String", # An optional description of this resource. Provide this property when you create the resource. 259 "name": "A String", # The name to which this PathMatcher is referred by the HostRule. 260 }, 261 ], 262 "creationTimestamp": "A String", # [Output Only] Creation timestamp in RFC3339 text format. 263 "id": "A String", # [Output Only] The unique identifier for the resource. This identifier is defined by the server. 264 "hostRules": [ # The list of HostRules to use against the URL. 265 { # UrlMaps A host-matching rule for a URL. If matched, will use the named PathMatcher to select the BackendService. 266 "hosts": [ # The list of host patterns to match. They must be valid hostnames, except * will match any string of ([a-z0-9-.]*). In that case, * must be the first character and must be followed in the pattern by either - or .. 267 "A String", 268 ], 269 "description": "A String", # An optional description of this resource. Provide this property when you create the resource. 270 "pathMatcher": "A String", # The name of the PathMatcher to use to match the path portion of the URL if the hostRule matches the URL's host portion. 271 }, 272 ], 273 "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. 274 } 275 276 277 Returns: 278 An object of the form: 279 280 { # An Operation resource, used to manage asynchronous API requests. 281 "targetId": "A String", # [Output Only] The unique target ID, which identifies a specific incarnation of the target resource. 282 "clientOperationId": "A String", # [Output Only] Reserved for future use. 283 "creationTimestamp": "A String", # [Deprecated] This field is deprecated. 284 "id": "A String", # [Output Only] The unique identifier for the resource. This identifier is defined by the server. 285 "zone": "A String", # [Output Only] The URL of the zone where the operation resides. Only available when performing per-zone operations. 286 "insertTime": "A String", # [Output Only] The time that this operation was requested. This value is in RFC3339 text format. 287 "operationType": "A String", # [Output Only] The type of operation, such as insert, update, or delete, and so on. 288 "httpErrorMessage": "A String", # [Output Only] If the operation fails, this field contains the HTTP error message that was returned, such as NOT FOUND. 289 "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. 290 "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. 291 "statusMessage": "A String", # [Output Only] An optional textual description of the current status of the operation. 292 "status": "A String", # [Output Only] The status of the operation, which can be one of the following: PENDING, RUNNING, or DONE. 293 "description": "A String", # [Output Only] A textual description of the operation, which is set when the operation is created. 294 "warnings": [ # [Output Only] If warning messages are generated during processing of the operation, this field will be populated. 295 { 296 "message": "A String", # [Output Only] A human-readable description of the warning code. 297 "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. 298 "data": [ # [Output Only] Metadata about this warning in key: value format. For example: 299 # "data": [ { "key": "scope", "value": "zones/us-east1-d" } 300 { 301 "value": "A String", # [Output Only] A warning data value corresponding to the key. 302 "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). 303 }, 304 ], 305 }, 306 ], 307 "user": "A String", # [Output Only] User who requested the operation, for example: user (a] example.com. 308 "startTime": "A String", # [Output Only] The time that this operation was started by the server. This value is in RFC3339 text format. 309 "kind": "compute#operation", # [Output Only] Type of the resource. Always compute#operation for Operation resources. 310 "name": "A String", # [Output Only] Name of the resource. 311 "region": "A String", # [Output Only] The URL of the region where the operation resides. Only available when performing regional operations. 312 "error": { # [Output Only] If errors are generated during processing of the operation, this field will be populated. 313 "errors": [ # [Output Only] The array of errors encountered while processing this operation. 314 { 315 "message": "A String", # [Output Only] An optional, human-readable error message. 316 "code": "A String", # [Output Only] The error type identifier for this error. 317 "location": "A String", # [Output Only] Indicates the field in the request that caused the error. This property is optional. 318 }, 319 ], 320 }, 321 "endTime": "A String", # [Output Only] The time that this operation was completed. This value is in RFC3339 text format. 322 "selfLink": "A String", # [Output Only] Server-defined URL for the resource. 323 "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. 324 }</pre> 325 </div> 326 327 <div class="method"> 328 <code class="details" id="invalidateCache">invalidateCache(project, urlMap, body)</code> 329 <pre>Initiates a cache invalidation operation, invalidating the specified path, scoped to the specified UrlMap. 330 331 Args: 332 project: string, Project ID for this request. (required) 333 urlMap: string, Name of the UrlMap scoping this request. (required) 334 body: object, The request body. (required) 335 The object takes the form of: 336 337 { 338 "path": "A String", 339 "host": "A String", # If set, this invalidation rule will only apply to requests with a Host header matching host. 340 } 341 342 343 Returns: 344 An object of the form: 345 346 { # An Operation resource, used to manage asynchronous API requests. 347 "targetId": "A String", # [Output Only] The unique target ID, which identifies a specific incarnation of the target resource. 348 "clientOperationId": "A String", # [Output Only] Reserved for future use. 349 "creationTimestamp": "A String", # [Deprecated] This field is deprecated. 350 "id": "A String", # [Output Only] The unique identifier for the resource. This identifier is defined by the server. 351 "zone": "A String", # [Output Only] The URL of the zone where the operation resides. Only available when performing per-zone operations. 352 "insertTime": "A String", # [Output Only] The time that this operation was requested. This value is in RFC3339 text format. 353 "operationType": "A String", # [Output Only] The type of operation, such as insert, update, or delete, and so on. 354 "httpErrorMessage": "A String", # [Output Only] If the operation fails, this field contains the HTTP error message that was returned, such as NOT FOUND. 355 "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. 356 "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. 357 "statusMessage": "A String", # [Output Only] An optional textual description of the current status of the operation. 358 "status": "A String", # [Output Only] The status of the operation, which can be one of the following: PENDING, RUNNING, or DONE. 359 "description": "A String", # [Output Only] A textual description of the operation, which is set when the operation is created. 360 "warnings": [ # [Output Only] If warning messages are generated during processing of the operation, this field will be populated. 361 { 362 "message": "A String", # [Output Only] A human-readable description of the warning code. 363 "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. 364 "data": [ # [Output Only] Metadata about this warning in key: value format. For example: 365 # "data": [ { "key": "scope", "value": "zones/us-east1-d" } 366 { 367 "value": "A String", # [Output Only] A warning data value corresponding to the key. 368 "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). 369 }, 370 ], 371 }, 372 ], 373 "user": "A String", # [Output Only] User who requested the operation, for example: user (a] example.com. 374 "startTime": "A String", # [Output Only] The time that this operation was started by the server. This value is in RFC3339 text format. 375 "kind": "compute#operation", # [Output Only] Type of the resource. Always compute#operation for Operation resources. 376 "name": "A String", # [Output Only] Name of the resource. 377 "region": "A String", # [Output Only] The URL of the region where the operation resides. Only available when performing regional operations. 378 "error": { # [Output Only] If errors are generated during processing of the operation, this field will be populated. 379 "errors": [ # [Output Only] The array of errors encountered while processing this operation. 380 { 381 "message": "A String", # [Output Only] An optional, human-readable error message. 382 "code": "A String", # [Output Only] The error type identifier for this error. 383 "location": "A String", # [Output Only] Indicates the field in the request that caused the error. This property is optional. 384 }, 385 ], 386 }, 387 "endTime": "A String", # [Output Only] The time that this operation was completed. This value is in RFC3339 text format. 388 "selfLink": "A String", # [Output Only] Server-defined URL for the resource. 389 "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. 390 }</pre> 391 </div> 392 393 <div class="method"> 394 <code class="details" id="list">list(project, orderBy=None, maxResults=None, pageToken=None, filter=None)</code> 395 <pre>Retrieves the list of UrlMap resources available to the specified project. 396 397 Args: 398 project: string, Project ID for this request. (required) 399 orderBy: string, Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. 400 401 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. 402 403 Currently, only sorting by name or creationTimestamp desc is supported. 404 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) 405 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. 406 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. 407 408 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. 409 410 For example, to filter for instances that do not have a name of example-instance, you would use filter=name ne example-instance. 411 412 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. 413 414 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. 415 416 Returns: 417 An object of the form: 418 419 { # Contains a list of UrlMap resources. 420 "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. 421 "items": [ # A list of UrlMap resources. 422 { # A UrlMap resource. This resource defines the mapping from URL to the BackendService resource, based on the "longest-match" of the URL's host and path. 423 "kind": "compute#urlMap", # [Output Only] Type of the resource. Always compute#urlMaps for url maps. 424 "description": "A String", # An optional description of this resource. Provide this property when you create the resource. 425 "defaultService": "A String", # The URL of the BackendService resource if none of the hostRules match. 426 "tests": [ # The list of expected URL mappings. Request to update this UrlMap will succeed only if all of the test cases pass. 427 { # Message for the expected URL mappings. 428 "path": "A String", # Path portion of the URL. 429 "host": "A String", # Host portion of the URL. 430 "description": "A String", # Description of this test case. 431 "service": "A String", # Expected BackendService resource the given URL should be mapped to. 432 }, 433 ], 434 "selfLink": "A String", # [Output Only] Server-defined URL for the resource. 435 "fingerprint": "A String", # Fingerprint of this resource. A hash of the contents stored in this object. This field is used in optimistic locking. This field will be ignored when inserting a UrlMap. An up-to-date fingerprint must be provided in order to update the UrlMap. 436 "pathMatchers": [ # The list of named PathMatchers to use against the URL. 437 { # A matcher for the path portion of the URL. The BackendService from the longest-matched rule will serve the URL. If no rule was matched, the default service will be used. 438 "defaultService": "A String", # The full or partial URL to the BackendService resource. This will be used if none of the pathRules defined by this PathMatcher is matched by the URL's path portion. For example, the following are all valid URLs to a BackendService resource: 439 # - https://www.googleapis.com/compute/v1/projects/project/global/backendServices/backendService 440 # - compute/v1/projects/project/global/backendServices/backendService 441 # - global/backendServices/backendService 442 "pathRules": [ # The list of path rules. 443 { # A path-matching rule for a URL. If matched, will use the specified BackendService to handle the traffic arriving at this URL. 444 "paths": [ # The list of path patterns to match. Each must start with / and the only place a * is allowed is at the end following a /. The string fed to the path matcher does not include any text after the first ? or #, and those chars are not allowed here. 445 "A String", 446 ], 447 "service": "A String", # The URL of the BackendService resource if this rule is matched. 448 }, 449 ], 450 "description": "A String", # An optional description of this resource. Provide this property when you create the resource. 451 "name": "A String", # The name to which this PathMatcher is referred by the HostRule. 452 }, 453 ], 454 "creationTimestamp": "A String", # [Output Only] Creation timestamp in RFC3339 text format. 455 "id": "A String", # [Output Only] The unique identifier for the resource. This identifier is defined by the server. 456 "hostRules": [ # The list of HostRules to use against the URL. 457 { # UrlMaps A host-matching rule for a URL. If matched, will use the named PathMatcher to select the BackendService. 458 "hosts": [ # The list of host patterns to match. They must be valid hostnames, except * will match any string of ([a-z0-9-.]*). In that case, * must be the first character and must be followed in the pattern by either - or .. 459 "A String", 460 ], 461 "description": "A String", # An optional description of this resource. Provide this property when you create the resource. 462 "pathMatcher": "A String", # The name of the PathMatcher to use to match the path portion of the URL if the hostRule matches the URL's host portion. 463 }, 464 ], 465 "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. 466 }, 467 ], 468 "kind": "compute#urlMapList", # Type of resource. 469 "id": "A String", # [Output Only] Unique identifier for the resource. Set by the server. 470 "selfLink": "A String", # [Output Only] Server-defined URL for this resource. 471 }</pre> 472 </div> 473 474 <div class="method"> 475 <code class="details" id="list_next">list_next(previous_request, previous_response)</code> 476 <pre>Retrieves the next page of results. 477 478 Args: 479 previous_request: The request for the previous page. (required) 480 previous_response: The response from the request for the previous page. (required) 481 482 Returns: 483 A request object that you can call 'execute()' on to request the next 484 page. Returns None if there are no more items in the collection. 485 </pre> 486 </div> 487 488 <div class="method"> 489 <code class="details" id="patch">patch(project, urlMap, body)</code> 490 <pre>Patches the specified UrlMap resource with the data included in the request. This method supports patch semantics. 491 492 Args: 493 project: string, Project ID for this request. (required) 494 urlMap: string, Name of the UrlMap resource to patch. (required) 495 body: object, The request body. (required) 496 The object takes the form of: 497 498 { # A UrlMap resource. This resource defines the mapping from URL to the BackendService resource, based on the "longest-match" of the URL's host and path. 499 "kind": "compute#urlMap", # [Output Only] Type of the resource. Always compute#urlMaps for url maps. 500 "description": "A String", # An optional description of this resource. Provide this property when you create the resource. 501 "defaultService": "A String", # The URL of the BackendService resource if none of the hostRules match. 502 "tests": [ # The list of expected URL mappings. Request to update this UrlMap will succeed only if all of the test cases pass. 503 { # Message for the expected URL mappings. 504 "path": "A String", # Path portion of the URL. 505 "host": "A String", # Host portion of the URL. 506 "description": "A String", # Description of this test case. 507 "service": "A String", # Expected BackendService resource the given URL should be mapped to. 508 }, 509 ], 510 "selfLink": "A String", # [Output Only] Server-defined URL for the resource. 511 "fingerprint": "A String", # Fingerprint of this resource. A hash of the contents stored in this object. This field is used in optimistic locking. This field will be ignored when inserting a UrlMap. An up-to-date fingerprint must be provided in order to update the UrlMap. 512 "pathMatchers": [ # The list of named PathMatchers to use against the URL. 513 { # A matcher for the path portion of the URL. The BackendService from the longest-matched rule will serve the URL. If no rule was matched, the default service will be used. 514 "defaultService": "A String", # The full or partial URL to the BackendService resource. This will be used if none of the pathRules defined by this PathMatcher is matched by the URL's path portion. For example, the following are all valid URLs to a BackendService resource: 515 # - https://www.googleapis.com/compute/v1/projects/project/global/backendServices/backendService 516 # - compute/v1/projects/project/global/backendServices/backendService 517 # - global/backendServices/backendService 518 "pathRules": [ # The list of path rules. 519 { # A path-matching rule for a URL. If matched, will use the specified BackendService to handle the traffic arriving at this URL. 520 "paths": [ # The list of path patterns to match. Each must start with / and the only place a * is allowed is at the end following a /. The string fed to the path matcher does not include any text after the first ? or #, and those chars are not allowed here. 521 "A String", 522 ], 523 "service": "A String", # The URL of the BackendService resource if this rule is matched. 524 }, 525 ], 526 "description": "A String", # An optional description of this resource. Provide this property when you create the resource. 527 "name": "A String", # The name to which this PathMatcher is referred by the HostRule. 528 }, 529 ], 530 "creationTimestamp": "A String", # [Output Only] Creation timestamp in RFC3339 text format. 531 "id": "A String", # [Output Only] The unique identifier for the resource. This identifier is defined by the server. 532 "hostRules": [ # The list of HostRules to use against the URL. 533 { # UrlMaps A host-matching rule for a URL. If matched, will use the named PathMatcher to select the BackendService. 534 "hosts": [ # The list of host patterns to match. They must be valid hostnames, except * will match any string of ([a-z0-9-.]*). In that case, * must be the first character and must be followed in the pattern by either - or .. 535 "A String", 536 ], 537 "description": "A String", # An optional description of this resource. Provide this property when you create the resource. 538 "pathMatcher": "A String", # The name of the PathMatcher to use to match the path portion of the URL if the hostRule matches the URL's host portion. 539 }, 540 ], 541 "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. 542 } 543 544 545 Returns: 546 An object of the form: 547 548 { # An Operation resource, used to manage asynchronous API requests. 549 "targetId": "A String", # [Output Only] The unique target ID, which identifies a specific incarnation of the target resource. 550 "clientOperationId": "A String", # [Output Only] Reserved for future use. 551 "creationTimestamp": "A String", # [Deprecated] This field is deprecated. 552 "id": "A String", # [Output Only] The unique identifier for the resource. This identifier is defined by the server. 553 "zone": "A String", # [Output Only] The URL of the zone where the operation resides. Only available when performing per-zone operations. 554 "insertTime": "A String", # [Output Only] The time that this operation was requested. This value is in RFC3339 text format. 555 "operationType": "A String", # [Output Only] The type of operation, such as insert, update, or delete, and so on. 556 "httpErrorMessage": "A String", # [Output Only] If the operation fails, this field contains the HTTP error message that was returned, such as NOT FOUND. 557 "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. 558 "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. 559 "statusMessage": "A String", # [Output Only] An optional textual description of the current status of the operation. 560 "status": "A String", # [Output Only] The status of the operation, which can be one of the following: PENDING, RUNNING, or DONE. 561 "description": "A String", # [Output Only] A textual description of the operation, which is set when the operation is created. 562 "warnings": [ # [Output Only] If warning messages are generated during processing of the operation, this field will be populated. 563 { 564 "message": "A String", # [Output Only] A human-readable description of the warning code. 565 "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. 566 "data": [ # [Output Only] Metadata about this warning in key: value format. For example: 567 # "data": [ { "key": "scope", "value": "zones/us-east1-d" } 568 { 569 "value": "A String", # [Output Only] A warning data value corresponding to the key. 570 "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). 571 }, 572 ], 573 }, 574 ], 575 "user": "A String", # [Output Only] User who requested the operation, for example: user (a] example.com. 576 "startTime": "A String", # [Output Only] The time that this operation was started by the server. This value is in RFC3339 text format. 577 "kind": "compute#operation", # [Output Only] Type of the resource. Always compute#operation for Operation resources. 578 "name": "A String", # [Output Only] Name of the resource. 579 "region": "A String", # [Output Only] The URL of the region where the operation resides. Only available when performing regional operations. 580 "error": { # [Output Only] If errors are generated during processing of the operation, this field will be populated. 581 "errors": [ # [Output Only] The array of errors encountered while processing this operation. 582 { 583 "message": "A String", # [Output Only] An optional, human-readable error message. 584 "code": "A String", # [Output Only] The error type identifier for this error. 585 "location": "A String", # [Output Only] Indicates the field in the request that caused the error. This property is optional. 586 }, 587 ], 588 }, 589 "endTime": "A String", # [Output Only] The time that this operation was completed. This value is in RFC3339 text format. 590 "selfLink": "A String", # [Output Only] Server-defined URL for the resource. 591 "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. 592 }</pre> 593 </div> 594 595 <div class="method"> 596 <code class="details" id="update">update(project, urlMap, body)</code> 597 <pre>Updates the specified UrlMap resource with the data included in the request. 598 599 Args: 600 project: string, Project ID for this request. (required) 601 urlMap: string, Name of the UrlMap resource to update. (required) 602 body: object, The request body. (required) 603 The object takes the form of: 604 605 { # A UrlMap resource. This resource defines the mapping from URL to the BackendService resource, based on the "longest-match" of the URL's host and path. 606 "kind": "compute#urlMap", # [Output Only] Type of the resource. Always compute#urlMaps for url maps. 607 "description": "A String", # An optional description of this resource. Provide this property when you create the resource. 608 "defaultService": "A String", # The URL of the BackendService resource if none of the hostRules match. 609 "tests": [ # The list of expected URL mappings. Request to update this UrlMap will succeed only if all of the test cases pass. 610 { # Message for the expected URL mappings. 611 "path": "A String", # Path portion of the URL. 612 "host": "A String", # Host portion of the URL. 613 "description": "A String", # Description of this test case. 614 "service": "A String", # Expected BackendService resource the given URL should be mapped to. 615 }, 616 ], 617 "selfLink": "A String", # [Output Only] Server-defined URL for the resource. 618 "fingerprint": "A String", # Fingerprint of this resource. A hash of the contents stored in this object. This field is used in optimistic locking. This field will be ignored when inserting a UrlMap. An up-to-date fingerprint must be provided in order to update the UrlMap. 619 "pathMatchers": [ # The list of named PathMatchers to use against the URL. 620 { # A matcher for the path portion of the URL. The BackendService from the longest-matched rule will serve the URL. If no rule was matched, the default service will be used. 621 "defaultService": "A String", # The full or partial URL to the BackendService resource. This will be used if none of the pathRules defined by this PathMatcher is matched by the URL's path portion. For example, the following are all valid URLs to a BackendService resource: 622 # - https://www.googleapis.com/compute/v1/projects/project/global/backendServices/backendService 623 # - compute/v1/projects/project/global/backendServices/backendService 624 # - global/backendServices/backendService 625 "pathRules": [ # The list of path rules. 626 { # A path-matching rule for a URL. If matched, will use the specified BackendService to handle the traffic arriving at this URL. 627 "paths": [ # The list of path patterns to match. Each must start with / and the only place a * is allowed is at the end following a /. The string fed to the path matcher does not include any text after the first ? or #, and those chars are not allowed here. 628 "A String", 629 ], 630 "service": "A String", # The URL of the BackendService resource if this rule is matched. 631 }, 632 ], 633 "description": "A String", # An optional description of this resource. Provide this property when you create the resource. 634 "name": "A String", # The name to which this PathMatcher is referred by the HostRule. 635 }, 636 ], 637 "creationTimestamp": "A String", # [Output Only] Creation timestamp in RFC3339 text format. 638 "id": "A String", # [Output Only] The unique identifier for the resource. This identifier is defined by the server. 639 "hostRules": [ # The list of HostRules to use against the URL. 640 { # UrlMaps A host-matching rule for a URL. If matched, will use the named PathMatcher to select the BackendService. 641 "hosts": [ # The list of host patterns to match. They must be valid hostnames, except * will match any string of ([a-z0-9-.]*). In that case, * must be the first character and must be followed in the pattern by either - or .. 642 "A String", 643 ], 644 "description": "A String", # An optional description of this resource. Provide this property when you create the resource. 645 "pathMatcher": "A String", # The name of the PathMatcher to use to match the path portion of the URL if the hostRule matches the URL's host portion. 646 }, 647 ], 648 "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. 649 } 650 651 652 Returns: 653 An object of the form: 654 655 { # An Operation resource, used to manage asynchronous API requests. 656 "targetId": "A String", # [Output Only] The unique target ID, which identifies a specific incarnation of the target resource. 657 "clientOperationId": "A String", # [Output Only] Reserved for future use. 658 "creationTimestamp": "A String", # [Deprecated] This field is deprecated. 659 "id": "A String", # [Output Only] The unique identifier for the resource. This identifier is defined by the server. 660 "zone": "A String", # [Output Only] The URL of the zone where the operation resides. Only available when performing per-zone operations. 661 "insertTime": "A String", # [Output Only] The time that this operation was requested. This value is in RFC3339 text format. 662 "operationType": "A String", # [Output Only] The type of operation, such as insert, update, or delete, and so on. 663 "httpErrorMessage": "A String", # [Output Only] If the operation fails, this field contains the HTTP error message that was returned, such as NOT FOUND. 664 "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. 665 "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. 666 "statusMessage": "A String", # [Output Only] An optional textual description of the current status of the operation. 667 "status": "A String", # [Output Only] The status of the operation, which can be one of the following: PENDING, RUNNING, or DONE. 668 "description": "A String", # [Output Only] A textual description of the operation, which is set when the operation is created. 669 "warnings": [ # [Output Only] If warning messages are generated during processing of the operation, this field will be populated. 670 { 671 "message": "A String", # [Output Only] A human-readable description of the warning code. 672 "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. 673 "data": [ # [Output Only] Metadata about this warning in key: value format. For example: 674 # "data": [ { "key": "scope", "value": "zones/us-east1-d" } 675 { 676 "value": "A String", # [Output Only] A warning data value corresponding to the key. 677 "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). 678 }, 679 ], 680 }, 681 ], 682 "user": "A String", # [Output Only] User who requested the operation, for example: user (a] example.com. 683 "startTime": "A String", # [Output Only] The time that this operation was started by the server. This value is in RFC3339 text format. 684 "kind": "compute#operation", # [Output Only] Type of the resource. Always compute#operation for Operation resources. 685 "name": "A String", # [Output Only] Name of the resource. 686 "region": "A String", # [Output Only] The URL of the region where the operation resides. Only available when performing regional operations. 687 "error": { # [Output Only] If errors are generated during processing of the operation, this field will be populated. 688 "errors": [ # [Output Only] The array of errors encountered while processing this operation. 689 { 690 "message": "A String", # [Output Only] An optional, human-readable error message. 691 "code": "A String", # [Output Only] The error type identifier for this error. 692 "location": "A String", # [Output Only] Indicates the field in the request that caused the error. This property is optional. 693 }, 694 ], 695 }, 696 "endTime": "A String", # [Output Only] The time that this operation was completed. This value is in RFC3339 text format. 697 "selfLink": "A String", # [Output Only] Server-defined URL for the resource. 698 "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. 699 }</pre> 700 </div> 701 702 <div class="method"> 703 <code class="details" id="validate">validate(project, urlMap, body)</code> 704 <pre>Runs static validation for the UrlMap. In particular, the tests of the provided UrlMap will be run. Calling this method does NOT create the UrlMap. 705 706 Args: 707 project: string, Project ID for this request. (required) 708 urlMap: string, Name of the UrlMap resource to be validated as. (required) 709 body: object, The request body. (required) 710 The object takes the form of: 711 712 { 713 "resource": { # A UrlMap resource. This resource defines the mapping from URL to the BackendService resource, based on the "longest-match" of the URL's host and path. # Content of the UrlMap to be validated. 714 "kind": "compute#urlMap", # [Output Only] Type of the resource. Always compute#urlMaps for url maps. 715 "description": "A String", # An optional description of this resource. Provide this property when you create the resource. 716 "defaultService": "A String", # The URL of the BackendService resource if none of the hostRules match. 717 "tests": [ # The list of expected URL mappings. Request to update this UrlMap will succeed only if all of the test cases pass. 718 { # Message for the expected URL mappings. 719 "path": "A String", # Path portion of the URL. 720 "host": "A String", # Host portion of the URL. 721 "description": "A String", # Description of this test case. 722 "service": "A String", # Expected BackendService resource the given URL should be mapped to. 723 }, 724 ], 725 "selfLink": "A String", # [Output Only] Server-defined URL for the resource. 726 "fingerprint": "A String", # Fingerprint of this resource. A hash of the contents stored in this object. This field is used in optimistic locking. This field will be ignored when inserting a UrlMap. An up-to-date fingerprint must be provided in order to update the UrlMap. 727 "pathMatchers": [ # The list of named PathMatchers to use against the URL. 728 { # A matcher for the path portion of the URL. The BackendService from the longest-matched rule will serve the URL. If no rule was matched, the default service will be used. 729 "defaultService": "A String", # The full or partial URL to the BackendService resource. This will be used if none of the pathRules defined by this PathMatcher is matched by the URL's path portion. For example, the following are all valid URLs to a BackendService resource: 730 # - https://www.googleapis.com/compute/v1/projects/project/global/backendServices/backendService 731 # - compute/v1/projects/project/global/backendServices/backendService 732 # - global/backendServices/backendService 733 "pathRules": [ # The list of path rules. 734 { # A path-matching rule for a URL. If matched, will use the specified BackendService to handle the traffic arriving at this URL. 735 "paths": [ # The list of path patterns to match. Each must start with / and the only place a * is allowed is at the end following a /. The string fed to the path matcher does not include any text after the first ? or #, and those chars are not allowed here. 736 "A String", 737 ], 738 "service": "A String", # The URL of the BackendService resource if this rule is matched. 739 }, 740 ], 741 "description": "A String", # An optional description of this resource. Provide this property when you create the resource. 742 "name": "A String", # The name to which this PathMatcher is referred by the HostRule. 743 }, 744 ], 745 "creationTimestamp": "A String", # [Output Only] Creation timestamp in RFC3339 text format. 746 "id": "A String", # [Output Only] The unique identifier for the resource. This identifier is defined by the server. 747 "hostRules": [ # The list of HostRules to use against the URL. 748 { # UrlMaps A host-matching rule for a URL. If matched, will use the named PathMatcher to select the BackendService. 749 "hosts": [ # The list of host patterns to match. They must be valid hostnames, except * will match any string of ([a-z0-9-.]*). In that case, * must be the first character and must be followed in the pattern by either - or .. 750 "A String", 751 ], 752 "description": "A String", # An optional description of this resource. Provide this property when you create the resource. 753 "pathMatcher": "A String", # The name of the PathMatcher to use to match the path portion of the URL if the hostRule matches the URL's host portion. 754 }, 755 ], 756 "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. 757 }, 758 } 759 760 761 Returns: 762 An object of the form: 763 764 { 765 "result": { # Message representing the validation result for a UrlMap. 766 "testFailures": [ 767 { 768 "path": "A String", 769 "actualService": "A String", 770 "host": "A String", 771 "expectedService": "A String", 772 }, 773 ], 774 "loadErrors": [ 775 "A String", 776 ], 777 "testPassed": True or False, # If successfully loaded, this field indicates whether the test passed. If false, 'testFailures's indicate the reason of failure. 778 "loadSucceeded": True or False, # Whether the given UrlMap can be successfully loaded. If false, 'loadErrors' indicates the reasons. 779 }, 780 }</pre> 781 </div> 782 783 </body></html>