blob: 3250a44d54234934aac903305203e5f2e6ed74d2 [file] [log] [blame]
Craig Citro065b5302014-08-14 00:47:23 -07001<html><body>
2<style>
3
4body, h1, h2, h3, div, span, p, pre, a {
5 margin: 0;
6 padding: 0;
7 border: 0;
8 font-weight: inherit;
9 font-style: inherit;
10 font-size: 100%;
11 font-family: inherit;
12 vertical-align: baseline;
13}
14
15body {
16 font-size: 13px;
17 padding: 1em;
18}
19
20h1 {
21 font-size: 26px;
22 margin-bottom: 1em;
23}
24
25h2 {
26 font-size: 24px;
27 margin-bottom: 1em;
28}
29
30h3 {
31 font-size: 20px;
32 margin-bottom: 1em;
33 margin-top: 1em;
34}
35
36pre, code {
37 line-height: 1.5;
38 font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace;
39}
40
41pre {
42 margin-top: 0.5em;
43}
44
45h1, h2, h3, p {
46 font-family: Arial, sans serif;
47}
48
49h1, h2, h3 {
50 border-bottom: solid #CCC 1px;
51}
52
53.toc_element {
54 margin-top: 0.5em;
55}
56
57.firstline {
58 margin-left: 2 em;
59}
60
61.method {
62 margin-top: 1em;
63 border: solid 1px #CCC;
64 padding: 1em;
65 background: #EEE;
66}
67
68.details {
69 font-weight: bold;
70 font-size: 14px;
71}
72
73</style>
74
75<h1><a href="compute_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.</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="#list">list(project, maxResults=None, pageToken=None, filter=None)</a></code></p>
88<p class="firstline">Retrieves the list of UrlMap resources available to the specified project.</p>
89<p class="toc_element">
90 <code><a href="#list_next">list_next(previous_request, previous_response)</a></code></p>
91<p class="firstline">Retrieves the next page of results.</p>
92<p class="toc_element">
93 <code><a href="#patch">patch(project, urlMap, body)</a></code></p>
94<p class="firstline">Update the entire content of the UrlMap resource. This method supports patch semantics.</p>
95<p class="toc_element">
96 <code><a href="#update">update(project, urlMap, body)</a></code></p>
97<p class="firstline">Update the entire content of the UrlMap resource.</p>
98<p class="toc_element">
99 <code><a href="#validate">validate(project, urlMap, body)</a></code></p>
100<p class="firstline">Run 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>
101<h3>Method Details</h3>
102<div class="method">
103 <code class="details" id="delete">delete(project, urlMap)</code>
104 <pre>Deletes the specified UrlMap resource.
105
106Args:
107 project: string, Name of the project scoping this request. (required)
108 urlMap: string, Name of the UrlMap resource to delete. (required)
109
110Returns:
111 An object of the form:
112
Takashi Matsuo06694102015-09-11 13:55:40 -0700113 { # An Operation resource, used to manage asynchronous API requests.
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +0000114 "targetId": "A String", # [Output Only] Unique target ID which identifies a particular incarnation of the target.
Takashi Matsuo06694102015-09-11 13:55:40 -0700115 "clientOperationId": "A String", # [Output Only] An optional identifier specified by the client when the mutation was initiated. Must be unique for all Operation resources in the project.
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +0000116 "creationTimestamp": "A String", # [Output Only] Creation timestamp in RFC3339 text format.
Craig Citroe633be12015-03-02 13:40:36 -0800117 "id": "A String", # [Output Only] Unique identifier for the resource; defined by the server.
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +0000118 "zone": "A String", # [Output Only] URL of the zone where the operation resides.
119 "operationType": "A String", # [Output Only] Type of the operation, such as insert, update, and delete.
120 "httpErrorMessage": "A String", # [Output Only] If the operation fails, this field contains the HTTP error message that was returned, such as NOT FOUND.
Nathaniel Manista4f877e52015-06-15 16:44:50 +0000121 "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 at when the operation will be complete. This number should monotonically increase as the operation progresses.
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +0000122 "httpErrorStatusCode": 42, # [Output Only] If the operation fails, this field contains the HTTP error message that was returned, such as 404.
Craig Citroe633be12015-03-02 13:40:36 -0800123 "statusMessage": "A String", # [Output Only] An optional textual description of the current status of the operation.
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +0000124 "status": "A String", # [Output Only] Status of the operation. Can be one of the following: PENDING, RUNNING, or DONE.
125 "insertTime": "A String", # [Output Only] The time that this operation was requested. This is in RFC3339 text format.
126 "warnings": [ # [Output Only] If warning messages are generated during processing of the operation, this field will be populated.
Craig Citro065b5302014-08-14 00:47:23 -0700127 {
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +0000128 "message": "A String", # [Output Only] Optional human-readable details for this warning.
129 "code": "A String", # [Output Only] The warning type identifier for this warning.
130 "data": [ # [Output Only] Metadata for this warning in key: value format.
Craig Citro065b5302014-08-14 00:47:23 -0700131 {
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +0000132 "value": "A String", # [Output Only] A warning data value corresponding to the key.
133 "key": "A String", # [Output Only] A key for the warning data.
Craig Citro065b5302014-08-14 00:47:23 -0700134 },
135 ],
136 },
137 ],
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +0000138 "user": "A String", # [Output Only] User who requested the operation, for example: user@example.com.
139 "startTime": "A String", # [Output Only] The time that this operation was started by the server. This is in RFC3339 text format.
140 "kind": "compute#operation", # [Output Only] Type of the resource. Always compute#Operation for Operation resources.
141 "name": "A String", # [Output Only] Name of the resource.
142 "region": "A String", # [Output Only] URL of the region where the operation resides. Only applicable for regional resources.
143 "error": { # [Output Only] If errors are generated during processing of the operation, this field will be populated.
Craig Citroe633be12015-03-02 13:40:36 -0800144 "errors": [ # [Output Only] The array of errors encountered while processing this operation.
Craig Citro065b5302014-08-14 00:47:23 -0700145 {
Craig Citroe633be12015-03-02 13:40:36 -0800146 "message": "A String", # [Output Only] An optional, human-readable error message.
147 "code": "A String", # [Output Only] The error type identifier for this error.
148 "location": "A String", # [Output Only] Indicates the field in the request which caused the error. This property is optional.
Craig Citro065b5302014-08-14 00:47:23 -0700149 },
150 ],
151 },
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +0000152 "endTime": "A String", # [Output Only] The time that this operation was completed. This is in RFC3339 text format.
Takashi Matsuo06694102015-09-11 13:55:40 -0700153 "selfLink": "A String", # [Output Only] Server-defined URL for the resource.
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +0000154 "targetLink": "A String", # [Output Only] URL of the resource the operation is mutating.
Craig Citro065b5302014-08-14 00:47:23 -0700155 }</pre>
156</div>
157
158<div class="method">
159 <code class="details" id="get">get(project, urlMap)</code>
160 <pre>Returns the specified UrlMap resource.
161
162Args:
163 project: string, Name of the project scoping this request. (required)
164 urlMap: string, Name of the UrlMap resource to return. (required)
165
166Returns:
167 An object of the form:
168
169 { # 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.
170 "kind": "compute#urlMap", # Type of the resource.
Takashi Matsuo06694102015-09-11 13:55:40 -0700171 "description": "A String", # An optional textual description of the resource. Provided by the client when the resource is created.
Craig Citro065b5302014-08-14 00:47:23 -0700172 "defaultService": "A String", # The URL of the BackendService resource if none of the hostRules match.
173 "tests": [ # The list of expected URL mappings. Request to update this UrlMap will succeed only all of the test cases pass.
174 { # Message for the expected URL mappings.
175 "path": "A String", # Path portion of the URL.
176 "host": "A String", # Host portion of the URL.
177 "description": "A String", # Description of this test case.
178 "service": "A String", # Expected BackendService resource the given URL should be mapped to.
179 },
180 ],
Takashi Matsuo06694102015-09-11 13:55:40 -0700181 "selfLink": "A String", # [Output Only] Server-defined URL for the resource.
Craig Citro065b5302014-08-14 00:47:23 -0700182 "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.
183 "pathMatchers": [ # The list of named PathMatchers to use against the URL.
184 { # 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.
185 "defaultService": "A String", # The URL to the BackendService resource. This will be used if none of the 'pathRules' defined by this PathMatcher is met by the URL's path portion.
186 "pathRules": [ # The list of path rules.
187 { # A path-matching rule for a URL. If matched, will use the specified BackendService to handle the traffic arriving at this URL.
188 "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.
189 "A String",
190 ],
191 "service": "A String", # The URL of the BackendService resource if this rule is matched.
192 },
193 ],
Takashi Matsuo06694102015-09-11 13:55:40 -0700194 "description": "A String", # An optional textual description of the resource.
Craig Citro065b5302014-08-14 00:47:23 -0700195 "name": "A String", # The name to which this PathMatcher is referred by the HostRule.
196 },
197 ],
Takashi Matsuo06694102015-09-11 13:55:40 -0700198 "creationTimestamp": "A String", # [Output Only] Creation timestamp in RFC3339 text format.
199 "id": "A String", # [Output Only] Unique identifier for the resource. Set by the server.
Craig Citro065b5302014-08-14 00:47:23 -0700200 "hostRules": [ # The list of HostRules to use against the URL.
Takashi Matsuo06694102015-09-11 13:55:40 -0700201 { # UrlMaps A host-matching rule for a URL. If matched, will use the named PathMatcher to select the BackendService.
Craig Citro065b5302014-08-14 00:47:23 -0700202 "hosts": [ # The list of host patterns to match. They must be valid hostnames except that they may start with *. or *-. The * acts like a glob and will match any string of atoms (separated by .s and -s) to the left.
203 "A String",
204 ],
Takashi Matsuo06694102015-09-11 13:55:40 -0700205 "description": "A String", # An optional textual description.
206 "pathMatcher": "A String", # The name of the PathMatcher to match the path portion of the URL, if the this hostRule matches the URL's host portion.
Craig Citro065b5302014-08-14 00:47:23 -0700207 },
208 ],
Takashi Matsuo06694102015-09-11 13:55:40 -0700209 "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.
Craig Citro065b5302014-08-14 00:47:23 -0700210 }</pre>
211</div>
212
213<div class="method">
214 <code class="details" id="insert">insert(project, body)</code>
215 <pre>Creates a UrlMap resource in the specified project using the data included in the request.
216
217Args:
218 project: string, Name of the project scoping this request. (required)
219 body: object, The request body. (required)
220 The object takes the form of:
221
222{ # 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.
223 "kind": "compute#urlMap", # Type of the resource.
Takashi Matsuo06694102015-09-11 13:55:40 -0700224 "description": "A String", # An optional textual description of the resource. Provided by the client when the resource is created.
Craig Citro065b5302014-08-14 00:47:23 -0700225 "defaultService": "A String", # The URL of the BackendService resource if none of the hostRules match.
226 "tests": [ # The list of expected URL mappings. Request to update this UrlMap will succeed only all of the test cases pass.
227 { # Message for the expected URL mappings.
228 "path": "A String", # Path portion of the URL.
229 "host": "A String", # Host portion of the URL.
230 "description": "A String", # Description of this test case.
231 "service": "A String", # Expected BackendService resource the given URL should be mapped to.
232 },
233 ],
Takashi Matsuo06694102015-09-11 13:55:40 -0700234 "selfLink": "A String", # [Output Only] Server-defined URL for the resource.
Craig Citro065b5302014-08-14 00:47:23 -0700235 "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.
236 "pathMatchers": [ # The list of named PathMatchers to use against the URL.
237 { # 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.
238 "defaultService": "A String", # The URL to the BackendService resource. This will be used if none of the 'pathRules' defined by this PathMatcher is met by the URL's path portion.
239 "pathRules": [ # The list of path rules.
240 { # A path-matching rule for a URL. If matched, will use the specified BackendService to handle the traffic arriving at this URL.
241 "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.
242 "A String",
243 ],
244 "service": "A String", # The URL of the BackendService resource if this rule is matched.
245 },
246 ],
Takashi Matsuo06694102015-09-11 13:55:40 -0700247 "description": "A String", # An optional textual description of the resource.
Craig Citro065b5302014-08-14 00:47:23 -0700248 "name": "A String", # The name to which this PathMatcher is referred by the HostRule.
249 },
250 ],
Takashi Matsuo06694102015-09-11 13:55:40 -0700251 "creationTimestamp": "A String", # [Output Only] Creation timestamp in RFC3339 text format.
252 "id": "A String", # [Output Only] Unique identifier for the resource. Set by the server.
Craig Citro065b5302014-08-14 00:47:23 -0700253 "hostRules": [ # The list of HostRules to use against the URL.
Takashi Matsuo06694102015-09-11 13:55:40 -0700254 { # UrlMaps A host-matching rule for a URL. If matched, will use the named PathMatcher to select the BackendService.
Craig Citro065b5302014-08-14 00:47:23 -0700255 "hosts": [ # The list of host patterns to match. They must be valid hostnames except that they may start with *. or *-. The * acts like a glob and will match any string of atoms (separated by .s and -s) to the left.
256 "A String",
257 ],
Takashi Matsuo06694102015-09-11 13:55:40 -0700258 "description": "A String", # An optional textual description.
259 "pathMatcher": "A String", # The name of the PathMatcher to match the path portion of the URL, if the this hostRule matches the URL's host portion.
Craig Citro065b5302014-08-14 00:47:23 -0700260 },
261 ],
Takashi Matsuo06694102015-09-11 13:55:40 -0700262 "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.
Craig Citro065b5302014-08-14 00:47:23 -0700263 }
264
265
266Returns:
267 An object of the form:
268
Takashi Matsuo06694102015-09-11 13:55:40 -0700269 { # An Operation resource, used to manage asynchronous API requests.
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +0000270 "targetId": "A String", # [Output Only] Unique target ID which identifies a particular incarnation of the target.
Takashi Matsuo06694102015-09-11 13:55:40 -0700271 "clientOperationId": "A String", # [Output Only] An optional identifier specified by the client when the mutation was initiated. Must be unique for all Operation resources in the project.
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +0000272 "creationTimestamp": "A String", # [Output Only] Creation timestamp in RFC3339 text format.
Craig Citroe633be12015-03-02 13:40:36 -0800273 "id": "A String", # [Output Only] Unique identifier for the resource; defined by the server.
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +0000274 "zone": "A String", # [Output Only] URL of the zone where the operation resides.
275 "operationType": "A String", # [Output Only] Type of the operation, such as insert, update, and delete.
276 "httpErrorMessage": "A String", # [Output Only] If the operation fails, this field contains the HTTP error message that was returned, such as NOT FOUND.
Nathaniel Manista4f877e52015-06-15 16:44:50 +0000277 "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 at when the operation will be complete. This number should monotonically increase as the operation progresses.
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +0000278 "httpErrorStatusCode": 42, # [Output Only] If the operation fails, this field contains the HTTP error message that was returned, such as 404.
Craig Citroe633be12015-03-02 13:40:36 -0800279 "statusMessage": "A String", # [Output Only] An optional textual description of the current status of the operation.
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +0000280 "status": "A String", # [Output Only] Status of the operation. Can be one of the following: PENDING, RUNNING, or DONE.
281 "insertTime": "A String", # [Output Only] The time that this operation was requested. This is in RFC3339 text format.
282 "warnings": [ # [Output Only] If warning messages are generated during processing of the operation, this field will be populated.
Craig Citro065b5302014-08-14 00:47:23 -0700283 {
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +0000284 "message": "A String", # [Output Only] Optional human-readable details for this warning.
285 "code": "A String", # [Output Only] The warning type identifier for this warning.
286 "data": [ # [Output Only] Metadata for this warning in key: value format.
Craig Citro065b5302014-08-14 00:47:23 -0700287 {
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +0000288 "value": "A String", # [Output Only] A warning data value corresponding to the key.
289 "key": "A String", # [Output Only] A key for the warning data.
Craig Citro065b5302014-08-14 00:47:23 -0700290 },
291 ],
292 },
293 ],
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +0000294 "user": "A String", # [Output Only] User who requested the operation, for example: user@example.com.
295 "startTime": "A String", # [Output Only] The time that this operation was started by the server. This is in RFC3339 text format.
296 "kind": "compute#operation", # [Output Only] Type of the resource. Always compute#Operation for Operation resources.
297 "name": "A String", # [Output Only] Name of the resource.
298 "region": "A String", # [Output Only] URL of the region where the operation resides. Only applicable for regional resources.
299 "error": { # [Output Only] If errors are generated during processing of the operation, this field will be populated.
Craig Citroe633be12015-03-02 13:40:36 -0800300 "errors": [ # [Output Only] The array of errors encountered while processing this operation.
Craig Citro065b5302014-08-14 00:47:23 -0700301 {
Craig Citroe633be12015-03-02 13:40:36 -0800302 "message": "A String", # [Output Only] An optional, human-readable error message.
303 "code": "A String", # [Output Only] The error type identifier for this error.
304 "location": "A String", # [Output Only] Indicates the field in the request which caused the error. This property is optional.
Craig Citro065b5302014-08-14 00:47:23 -0700305 },
306 ],
307 },
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +0000308 "endTime": "A String", # [Output Only] The time that this operation was completed. This is in RFC3339 text format.
Takashi Matsuo06694102015-09-11 13:55:40 -0700309 "selfLink": "A String", # [Output Only] Server-defined URL for the resource.
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +0000310 "targetLink": "A String", # [Output Only] URL of the resource the operation is mutating.
Craig Citro065b5302014-08-14 00:47:23 -0700311 }</pre>
312</div>
313
314<div class="method">
315 <code class="details" id="list">list(project, maxResults=None, pageToken=None, filter=None)</code>
316 <pre>Retrieves the list of UrlMap resources available to the specified project.
317
318Args:
319 project: string, Name of the project scoping this request. (required)
Nathaniel Manista4f877e52015-06-15 16:44:50 +0000320 maxResults: integer, Maximum count of results to be returned.
Takashi Matsuo06694102015-09-11 13:55:40 -0700321 pageToken: string, Specifies a page token to use. Use this parameter if you want to list the next page of results. Set pageToken to the nextPageToken returned by a previous list request.
322 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.
323
324The 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 (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.
325
326For example, filter=name ne example-instance.
Craig Citro065b5302014-08-14 00:47:23 -0700327
328Returns:
329 An object of the form:
330
331 { # Contains a list of UrlMap resources.
Takashi Matsuo06694102015-09-11 13:55:40 -0700332 "nextPageToken": "A String", # [Output Only] A token used to continue a truncated list request.
Craig Citroe633be12015-03-02 13:40:36 -0800333 "items": [ # A list of UrlMap resources.
Craig Citro065b5302014-08-14 00:47:23 -0700334 { # 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.
335 "kind": "compute#urlMap", # Type of the resource.
Takashi Matsuo06694102015-09-11 13:55:40 -0700336 "description": "A String", # An optional textual description of the resource. Provided by the client when the resource is created.
Craig Citro065b5302014-08-14 00:47:23 -0700337 "defaultService": "A String", # The URL of the BackendService resource if none of the hostRules match.
338 "tests": [ # The list of expected URL mappings. Request to update this UrlMap will succeed only all of the test cases pass.
339 { # Message for the expected URL mappings.
340 "path": "A String", # Path portion of the URL.
341 "host": "A String", # Host portion of the URL.
342 "description": "A String", # Description of this test case.
343 "service": "A String", # Expected BackendService resource the given URL should be mapped to.
344 },
345 ],
Takashi Matsuo06694102015-09-11 13:55:40 -0700346 "selfLink": "A String", # [Output Only] Server-defined URL for the resource.
Craig Citro065b5302014-08-14 00:47:23 -0700347 "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.
348 "pathMatchers": [ # The list of named PathMatchers to use against the URL.
349 { # 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.
350 "defaultService": "A String", # The URL to the BackendService resource. This will be used if none of the 'pathRules' defined by this PathMatcher is met by the URL's path portion.
351 "pathRules": [ # The list of path rules.
352 { # A path-matching rule for a URL. If matched, will use the specified BackendService to handle the traffic arriving at this URL.
353 "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.
354 "A String",
355 ],
356 "service": "A String", # The URL of the BackendService resource if this rule is matched.
357 },
358 ],
Takashi Matsuo06694102015-09-11 13:55:40 -0700359 "description": "A String", # An optional textual description of the resource.
Craig Citro065b5302014-08-14 00:47:23 -0700360 "name": "A String", # The name to which this PathMatcher is referred by the HostRule.
361 },
362 ],
Takashi Matsuo06694102015-09-11 13:55:40 -0700363 "creationTimestamp": "A String", # [Output Only] Creation timestamp in RFC3339 text format.
364 "id": "A String", # [Output Only] Unique identifier for the resource. Set by the server.
Craig Citro065b5302014-08-14 00:47:23 -0700365 "hostRules": [ # The list of HostRules to use against the URL.
Takashi Matsuo06694102015-09-11 13:55:40 -0700366 { # UrlMaps A host-matching rule for a URL. If matched, will use the named PathMatcher to select the BackendService.
Craig Citro065b5302014-08-14 00:47:23 -0700367 "hosts": [ # The list of host patterns to match. They must be valid hostnames except that they may start with *. or *-. The * acts like a glob and will match any string of atoms (separated by .s and -s) to the left.
368 "A String",
369 ],
Takashi Matsuo06694102015-09-11 13:55:40 -0700370 "description": "A String", # An optional textual description.
371 "pathMatcher": "A String", # The name of the PathMatcher to match the path portion of the URL, if the this hostRule matches the URL's host portion.
Craig Citro065b5302014-08-14 00:47:23 -0700372 },
373 ],
Takashi Matsuo06694102015-09-11 13:55:40 -0700374 "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.
Craig Citro065b5302014-08-14 00:47:23 -0700375 },
376 ],
377 "kind": "compute#urlMapList", # Type of resource.
Takashi Matsuo06694102015-09-11 13:55:40 -0700378 "id": "A String", # [Output Only] Unique identifier for the resource. Set by the server.
379 "selfLink": "A String", # [Output Only] Server-defined URL for this resource.
Craig Citro065b5302014-08-14 00:47:23 -0700380 }</pre>
381</div>
382
383<div class="method">
384 <code class="details" id="list_next">list_next(previous_request, previous_response)</code>
385 <pre>Retrieves the next page of results.
386
387Args:
388 previous_request: The request for the previous page. (required)
389 previous_response: The response from the request for the previous page. (required)
390
391Returns:
392 A request object that you can call 'execute()' on to request the next
393 page. Returns None if there are no more items in the collection.
394 </pre>
395</div>
396
397<div class="method">
398 <code class="details" id="patch">patch(project, urlMap, body)</code>
399 <pre>Update the entire content of the UrlMap resource. This method supports patch semantics.
400
401Args:
402 project: string, Name of the project scoping this request. (required)
403 urlMap: string, Name of the UrlMap resource to update. (required)
404 body: object, The request body. (required)
405 The object takes the form of:
406
407{ # 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.
408 "kind": "compute#urlMap", # Type of the resource.
Takashi Matsuo06694102015-09-11 13:55:40 -0700409 "description": "A String", # An optional textual description of the resource. Provided by the client when the resource is created.
Craig Citro065b5302014-08-14 00:47:23 -0700410 "defaultService": "A String", # The URL of the BackendService resource if none of the hostRules match.
411 "tests": [ # The list of expected URL mappings. Request to update this UrlMap will succeed only all of the test cases pass.
412 { # Message for the expected URL mappings.
413 "path": "A String", # Path portion of the URL.
414 "host": "A String", # Host portion of the URL.
415 "description": "A String", # Description of this test case.
416 "service": "A String", # Expected BackendService resource the given URL should be mapped to.
417 },
418 ],
Takashi Matsuo06694102015-09-11 13:55:40 -0700419 "selfLink": "A String", # [Output Only] Server-defined URL for the resource.
Craig Citro065b5302014-08-14 00:47:23 -0700420 "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.
421 "pathMatchers": [ # The list of named PathMatchers to use against the URL.
422 { # 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.
423 "defaultService": "A String", # The URL to the BackendService resource. This will be used if none of the 'pathRules' defined by this PathMatcher is met by the URL's path portion.
424 "pathRules": [ # The list of path rules.
425 { # A path-matching rule for a URL. If matched, will use the specified BackendService to handle the traffic arriving at this URL.
426 "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.
427 "A String",
428 ],
429 "service": "A String", # The URL of the BackendService resource if this rule is matched.
430 },
431 ],
Takashi Matsuo06694102015-09-11 13:55:40 -0700432 "description": "A String", # An optional textual description of the resource.
Craig Citro065b5302014-08-14 00:47:23 -0700433 "name": "A String", # The name to which this PathMatcher is referred by the HostRule.
434 },
435 ],
Takashi Matsuo06694102015-09-11 13:55:40 -0700436 "creationTimestamp": "A String", # [Output Only] Creation timestamp in RFC3339 text format.
437 "id": "A String", # [Output Only] Unique identifier for the resource. Set by the server.
Craig Citro065b5302014-08-14 00:47:23 -0700438 "hostRules": [ # The list of HostRules to use against the URL.
Takashi Matsuo06694102015-09-11 13:55:40 -0700439 { # UrlMaps A host-matching rule for a URL. If matched, will use the named PathMatcher to select the BackendService.
Craig Citro065b5302014-08-14 00:47:23 -0700440 "hosts": [ # The list of host patterns to match. They must be valid hostnames except that they may start with *. or *-. The * acts like a glob and will match any string of atoms (separated by .s and -s) to the left.
441 "A String",
442 ],
Takashi Matsuo06694102015-09-11 13:55:40 -0700443 "description": "A String", # An optional textual description.
444 "pathMatcher": "A String", # The name of the PathMatcher to match the path portion of the URL, if the this hostRule matches the URL's host portion.
Craig Citro065b5302014-08-14 00:47:23 -0700445 },
446 ],
Takashi Matsuo06694102015-09-11 13:55:40 -0700447 "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.
Craig Citro065b5302014-08-14 00:47:23 -0700448 }
449
450
451Returns:
452 An object of the form:
453
Takashi Matsuo06694102015-09-11 13:55:40 -0700454 { # An Operation resource, used to manage asynchronous API requests.
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +0000455 "targetId": "A String", # [Output Only] Unique target ID which identifies a particular incarnation of the target.
Takashi Matsuo06694102015-09-11 13:55:40 -0700456 "clientOperationId": "A String", # [Output Only] An optional identifier specified by the client when the mutation was initiated. Must be unique for all Operation resources in the project.
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +0000457 "creationTimestamp": "A String", # [Output Only] Creation timestamp in RFC3339 text format.
Craig Citroe633be12015-03-02 13:40:36 -0800458 "id": "A String", # [Output Only] Unique identifier for the resource; defined by the server.
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +0000459 "zone": "A String", # [Output Only] URL of the zone where the operation resides.
460 "operationType": "A String", # [Output Only] Type of the operation, such as insert, update, and delete.
461 "httpErrorMessage": "A String", # [Output Only] If the operation fails, this field contains the HTTP error message that was returned, such as NOT FOUND.
Nathaniel Manista4f877e52015-06-15 16:44:50 +0000462 "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 at when the operation will be complete. This number should monotonically increase as the operation progresses.
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +0000463 "httpErrorStatusCode": 42, # [Output Only] If the operation fails, this field contains the HTTP error message that was returned, such as 404.
Craig Citroe633be12015-03-02 13:40:36 -0800464 "statusMessage": "A String", # [Output Only] An optional textual description of the current status of the operation.
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +0000465 "status": "A String", # [Output Only] Status of the operation. Can be one of the following: PENDING, RUNNING, or DONE.
466 "insertTime": "A String", # [Output Only] The time that this operation was requested. This is in RFC3339 text format.
467 "warnings": [ # [Output Only] If warning messages are generated during processing of the operation, this field will be populated.
Craig Citro065b5302014-08-14 00:47:23 -0700468 {
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +0000469 "message": "A String", # [Output Only] Optional human-readable details for this warning.
470 "code": "A String", # [Output Only] The warning type identifier for this warning.
471 "data": [ # [Output Only] Metadata for this warning in key: value format.
Craig Citro065b5302014-08-14 00:47:23 -0700472 {
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +0000473 "value": "A String", # [Output Only] A warning data value corresponding to the key.
474 "key": "A String", # [Output Only] A key for the warning data.
Craig Citro065b5302014-08-14 00:47:23 -0700475 },
476 ],
477 },
478 ],
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +0000479 "user": "A String", # [Output Only] User who requested the operation, for example: user@example.com.
480 "startTime": "A String", # [Output Only] The time that this operation was started by the server. This is in RFC3339 text format.
481 "kind": "compute#operation", # [Output Only] Type of the resource. Always compute#Operation for Operation resources.
482 "name": "A String", # [Output Only] Name of the resource.
483 "region": "A String", # [Output Only] URL of the region where the operation resides. Only applicable for regional resources.
484 "error": { # [Output Only] If errors are generated during processing of the operation, this field will be populated.
Craig Citroe633be12015-03-02 13:40:36 -0800485 "errors": [ # [Output Only] The array of errors encountered while processing this operation.
Craig Citro065b5302014-08-14 00:47:23 -0700486 {
Craig Citroe633be12015-03-02 13:40:36 -0800487 "message": "A String", # [Output Only] An optional, human-readable error message.
488 "code": "A String", # [Output Only] The error type identifier for this error.
489 "location": "A String", # [Output Only] Indicates the field in the request which caused the error. This property is optional.
Craig Citro065b5302014-08-14 00:47:23 -0700490 },
491 ],
492 },
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +0000493 "endTime": "A String", # [Output Only] The time that this operation was completed. This is in RFC3339 text format.
Takashi Matsuo06694102015-09-11 13:55:40 -0700494 "selfLink": "A String", # [Output Only] Server-defined URL for the resource.
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +0000495 "targetLink": "A String", # [Output Only] URL of the resource the operation is mutating.
Craig Citro065b5302014-08-14 00:47:23 -0700496 }</pre>
497</div>
498
499<div class="method">
500 <code class="details" id="update">update(project, urlMap, body)</code>
501 <pre>Update the entire content of the UrlMap resource.
502
503Args:
504 project: string, Name of the project scoping this request. (required)
505 urlMap: string, Name of the UrlMap resource to update. (required)
506 body: object, The request body. (required)
507 The object takes the form of:
508
509{ # 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.
510 "kind": "compute#urlMap", # Type of the resource.
Takashi Matsuo06694102015-09-11 13:55:40 -0700511 "description": "A String", # An optional textual description of the resource. Provided by the client when the resource is created.
Craig Citro065b5302014-08-14 00:47:23 -0700512 "defaultService": "A String", # The URL of the BackendService resource if none of the hostRules match.
513 "tests": [ # The list of expected URL mappings. Request to update this UrlMap will succeed only all of the test cases pass.
514 { # Message for the expected URL mappings.
515 "path": "A String", # Path portion of the URL.
516 "host": "A String", # Host portion of the URL.
517 "description": "A String", # Description of this test case.
518 "service": "A String", # Expected BackendService resource the given URL should be mapped to.
519 },
520 ],
Takashi Matsuo06694102015-09-11 13:55:40 -0700521 "selfLink": "A String", # [Output Only] Server-defined URL for the resource.
Craig Citro065b5302014-08-14 00:47:23 -0700522 "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.
523 "pathMatchers": [ # The list of named PathMatchers to use against the URL.
524 { # 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.
525 "defaultService": "A String", # The URL to the BackendService resource. This will be used if none of the 'pathRules' defined by this PathMatcher is met by the URL's path portion.
526 "pathRules": [ # The list of path rules.
527 { # A path-matching rule for a URL. If matched, will use the specified BackendService to handle the traffic arriving at this URL.
528 "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.
529 "A String",
530 ],
531 "service": "A String", # The URL of the BackendService resource if this rule is matched.
532 },
533 ],
Takashi Matsuo06694102015-09-11 13:55:40 -0700534 "description": "A String", # An optional textual description of the resource.
Craig Citro065b5302014-08-14 00:47:23 -0700535 "name": "A String", # The name to which this PathMatcher is referred by the HostRule.
536 },
537 ],
Takashi Matsuo06694102015-09-11 13:55:40 -0700538 "creationTimestamp": "A String", # [Output Only] Creation timestamp in RFC3339 text format.
539 "id": "A String", # [Output Only] Unique identifier for the resource. Set by the server.
Craig Citro065b5302014-08-14 00:47:23 -0700540 "hostRules": [ # The list of HostRules to use against the URL.
Takashi Matsuo06694102015-09-11 13:55:40 -0700541 { # UrlMaps A host-matching rule for a URL. If matched, will use the named PathMatcher to select the BackendService.
Craig Citro065b5302014-08-14 00:47:23 -0700542 "hosts": [ # The list of host patterns to match. They must be valid hostnames except that they may start with *. or *-. The * acts like a glob and will match any string of atoms (separated by .s and -s) to the left.
543 "A String",
544 ],
Takashi Matsuo06694102015-09-11 13:55:40 -0700545 "description": "A String", # An optional textual description.
546 "pathMatcher": "A String", # The name of the PathMatcher to match the path portion of the URL, if the this hostRule matches the URL's host portion.
Craig Citro065b5302014-08-14 00:47:23 -0700547 },
548 ],
Takashi Matsuo06694102015-09-11 13:55:40 -0700549 "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.
Craig Citro065b5302014-08-14 00:47:23 -0700550 }
551
552
553Returns:
554 An object of the form:
555
Takashi Matsuo06694102015-09-11 13:55:40 -0700556 { # An Operation resource, used to manage asynchronous API requests.
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +0000557 "targetId": "A String", # [Output Only] Unique target ID which identifies a particular incarnation of the target.
Takashi Matsuo06694102015-09-11 13:55:40 -0700558 "clientOperationId": "A String", # [Output Only] An optional identifier specified by the client when the mutation was initiated. Must be unique for all Operation resources in the project.
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +0000559 "creationTimestamp": "A String", # [Output Only] Creation timestamp in RFC3339 text format.
Craig Citroe633be12015-03-02 13:40:36 -0800560 "id": "A String", # [Output Only] Unique identifier for the resource; defined by the server.
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +0000561 "zone": "A String", # [Output Only] URL of the zone where the operation resides.
562 "operationType": "A String", # [Output Only] Type of the operation, such as insert, update, and delete.
563 "httpErrorMessage": "A String", # [Output Only] If the operation fails, this field contains the HTTP error message that was returned, such as NOT FOUND.
Nathaniel Manista4f877e52015-06-15 16:44:50 +0000564 "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 at when the operation will be complete. This number should monotonically increase as the operation progresses.
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +0000565 "httpErrorStatusCode": 42, # [Output Only] If the operation fails, this field contains the HTTP error message that was returned, such as 404.
Craig Citroe633be12015-03-02 13:40:36 -0800566 "statusMessage": "A String", # [Output Only] An optional textual description of the current status of the operation.
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +0000567 "status": "A String", # [Output Only] Status of the operation. Can be one of the following: PENDING, RUNNING, or DONE.
568 "insertTime": "A String", # [Output Only] The time that this operation was requested. This is in RFC3339 text format.
569 "warnings": [ # [Output Only] If warning messages are generated during processing of the operation, this field will be populated.
Craig Citro065b5302014-08-14 00:47:23 -0700570 {
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +0000571 "message": "A String", # [Output Only] Optional human-readable details for this warning.
572 "code": "A String", # [Output Only] The warning type identifier for this warning.
573 "data": [ # [Output Only] Metadata for this warning in key: value format.
Craig Citro065b5302014-08-14 00:47:23 -0700574 {
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +0000575 "value": "A String", # [Output Only] A warning data value corresponding to the key.
576 "key": "A String", # [Output Only] A key for the warning data.
Craig Citro065b5302014-08-14 00:47:23 -0700577 },
578 ],
579 },
580 ],
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +0000581 "user": "A String", # [Output Only] User who requested the operation, for example: user@example.com.
582 "startTime": "A String", # [Output Only] The time that this operation was started by the server. This is in RFC3339 text format.
583 "kind": "compute#operation", # [Output Only] Type of the resource. Always compute#Operation for Operation resources.
584 "name": "A String", # [Output Only] Name of the resource.
585 "region": "A String", # [Output Only] URL of the region where the operation resides. Only applicable for regional resources.
586 "error": { # [Output Only] If errors are generated during processing of the operation, this field will be populated.
Craig Citroe633be12015-03-02 13:40:36 -0800587 "errors": [ # [Output Only] The array of errors encountered while processing this operation.
Craig Citro065b5302014-08-14 00:47:23 -0700588 {
Craig Citroe633be12015-03-02 13:40:36 -0800589 "message": "A String", # [Output Only] An optional, human-readable error message.
590 "code": "A String", # [Output Only] The error type identifier for this error.
591 "location": "A String", # [Output Only] Indicates the field in the request which caused the error. This property is optional.
Craig Citro065b5302014-08-14 00:47:23 -0700592 },
593 ],
594 },
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +0000595 "endTime": "A String", # [Output Only] The time that this operation was completed. This is in RFC3339 text format.
Takashi Matsuo06694102015-09-11 13:55:40 -0700596 "selfLink": "A String", # [Output Only] Server-defined URL for the resource.
Nathaniel Manista5cbe5ba2015-03-10 23:29:22 +0000597 "targetLink": "A String", # [Output Only] URL of the resource the operation is mutating.
Craig Citro065b5302014-08-14 00:47:23 -0700598 }</pre>
599</div>
600
601<div class="method">
602 <code class="details" id="validate">validate(project, urlMap, body)</code>
603 <pre>Run static validation for the UrlMap. In particular, the tests of the provided UrlMap will be run. Calling this method does NOT create the UrlMap.
604
605Args:
606 project: string, Name of the project scoping this request. (required)
607 urlMap: string, Name of the UrlMap resource to be validated as. (required)
608 body: object, The request body. (required)
609 The object takes the form of:
610
611{
612 "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.
613 "kind": "compute#urlMap", # Type of the resource.
Takashi Matsuo06694102015-09-11 13:55:40 -0700614 "description": "A String", # An optional textual description of the resource. Provided by the client when the resource is created.
Craig Citro065b5302014-08-14 00:47:23 -0700615 "defaultService": "A String", # The URL of the BackendService resource if none of the hostRules match.
616 "tests": [ # The list of expected URL mappings. Request to update this UrlMap will succeed only all of the test cases pass.
617 { # Message for the expected URL mappings.
618 "path": "A String", # Path portion of the URL.
619 "host": "A String", # Host portion of the URL.
620 "description": "A String", # Description of this test case.
621 "service": "A String", # Expected BackendService resource the given URL should be mapped to.
622 },
623 ],
Takashi Matsuo06694102015-09-11 13:55:40 -0700624 "selfLink": "A String", # [Output Only] Server-defined URL for the resource.
Craig Citro065b5302014-08-14 00:47:23 -0700625 "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.
626 "pathMatchers": [ # The list of named PathMatchers to use against the URL.
627 { # 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.
628 "defaultService": "A String", # The URL to the BackendService resource. This will be used if none of the 'pathRules' defined by this PathMatcher is met by the URL's path portion.
629 "pathRules": [ # The list of path rules.
630 { # A path-matching rule for a URL. If matched, will use the specified BackendService to handle the traffic arriving at this URL.
631 "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.
632 "A String",
633 ],
634 "service": "A String", # The URL of the BackendService resource if this rule is matched.
635 },
636 ],
Takashi Matsuo06694102015-09-11 13:55:40 -0700637 "description": "A String", # An optional textual description of the resource.
Craig Citro065b5302014-08-14 00:47:23 -0700638 "name": "A String", # The name to which this PathMatcher is referred by the HostRule.
639 },
640 ],
Takashi Matsuo06694102015-09-11 13:55:40 -0700641 "creationTimestamp": "A String", # [Output Only] Creation timestamp in RFC3339 text format.
642 "id": "A String", # [Output Only] Unique identifier for the resource. Set by the server.
Craig Citro065b5302014-08-14 00:47:23 -0700643 "hostRules": [ # The list of HostRules to use against the URL.
Takashi Matsuo06694102015-09-11 13:55:40 -0700644 { # UrlMaps A host-matching rule for a URL. If matched, will use the named PathMatcher to select the BackendService.
Craig Citro065b5302014-08-14 00:47:23 -0700645 "hosts": [ # The list of host patterns to match. They must be valid hostnames except that they may start with *. or *-. The * acts like a glob and will match any string of atoms (separated by .s and -s) to the left.
646 "A String",
647 ],
Takashi Matsuo06694102015-09-11 13:55:40 -0700648 "description": "A String", # An optional textual description.
649 "pathMatcher": "A String", # The name of the PathMatcher to match the path portion of the URL, if the this hostRule matches the URL's host portion.
Craig Citro065b5302014-08-14 00:47:23 -0700650 },
651 ],
Takashi Matsuo06694102015-09-11 13:55:40 -0700652 "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.
Craig Citro065b5302014-08-14 00:47:23 -0700653 },
654 }
655
656
657Returns:
658 An object of the form:
659
660 {
661 "result": { # Message representing the validation result for a UrlMap.
662 "testFailures": [
663 {
664 "path": "A String",
665 "actualService": "A String",
666 "host": "A String",
667 "expectedService": "A String",
668 },
669 ],
670 "loadErrors": [
671 "A String",
672 ],
673 "testPassed": True or False, # If successfully loaded, this field indicates whether the test passed. If false, 'testFailures's indicate the reason of failure.
674 "loadSucceeded": True or False, # Whether the given UrlMap can be successfully loaded. If false, 'loadErrors' indicates the reasons.
675 },
676 }</pre>
677</div>
678
679</body></html>