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