blob: d4ffba1f7ce56a985bb64991ee42929fd96bb5df [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.targetHttpProxies.html">targetHttpProxies</a></h1>
76<h2>Instance Methods</h2>
77<p class="toc_element">
78 <code><a href="#delete">delete(project, targetHttpProxy)</a></code></p>
79<p class="firstline">Deletes the specified TargetHttpProxy resource.</p>
80<p class="toc_element">
81 <code><a href="#get">get(project, targetHttpProxy)</a></code></p>
82<p class="firstline">Returns the specified TargetHttpProxy resource.</p>
83<p class="toc_element">
84 <code><a href="#insert">insert(project, body)</a></code></p>
85<p class="firstline">Creates a TargetHttpProxy 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 TargetHttpProxy 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="#setUrlMap">setUrlMap(project, targetHttpProxy, body)</a></code></p>
94<p class="firstline">Changes the URL map for TargetHttpProxy.</p>
95<h3>Method Details</h3>
96<div class="method">
97 <code class="details" id="delete">delete(project, targetHttpProxy)</code>
98 <pre>Deletes the specified TargetHttpProxy resource.
99
100Args:
101 project: string, Name of the project scoping this request. (required)
102 targetHttpProxy: string, Name of the TargetHttpProxy resource to delete. (required)
103
104Returns:
105 An object of the form:
106
107 { # An operation resource, used to manage asynchronous API requests.
108 "targetId": "A String", # Unique target id which identifies a particular incarnation of the target (output only).
109 "clientOperationId": "A String", # An optional identifier specified by the client when the mutation was initiated. Must be unique for all operation resources in the project (output only).
110 "creationTimestamp": "A String", # Creation timestamp in RFC3339 text format (output only).
111 "id": "A String", # Unique identifier for the resource; defined by the server (output only).
112 "zone": "A String", # URL of the zone where the operation resides (output only).
113 "operationType": "A String", # Type of the operation. Examples include "insert", "update", and "delete" (output only).
114 "httpErrorMessage": "A String", # If operation fails, the HTTP error message returned, e.g. NOT FOUND. (output only).
115 "progress": 42, # 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 be monotonically increasing as the operation progresses (output only).
116 "httpErrorStatusCode": 42, # If operation fails, the HTTP error status code returned, e.g. 404. (output only).
117 "statusMessage": "A String", # An optional textual description of the current status of the operation (output only).
118 "status": "A String", # Status of the operation. Can be one of the following: "PENDING", "RUNNING", or "DONE" (output only).
119 "insertTime": "A String", # The time that this operation was requested. This is in RFC 3339 format (output only).
120 "warnings": [ # If warning messages generated during processing of this operation, this field will be populated (output only).
121 {
122 "message": "A String", # Optional human-readable details for this warning.
123 "code": "A String", # The warning type identifier for this warning.
124 "data": [ # Metadata for this warning in 'key: value' format.
125 {
126 "value": "A String", # A warning data value corresponding to the key.
127 "key": "A String", # A key for the warning data.
128 },
129 ],
130 },
131 ],
132 "user": "A String", # User who requested the operation, for example "user@example.com" (output only).
133 "startTime": "A String", # The time that this operation was started by the server. This is in RFC 3339 format (output only).
134 "kind": "compute#operation", # Type of the resource.
135 "name": "A String", # Name of the resource (output only).
136 "region": "A String", # URL of the region where the operation resides (output only).
137 "error": { # If errors occurred during processing of this operation, this field will be populated (output only).
138 "errors": [ # The array of errors encountered while processing this operation.
139 {
140 "message": "A String", # An optional, human-readable error message.
141 "code": "A String", # The error type identifier for this error.
142 "location": "A String", # Indicates the field in the request which caused the error. This property is optional.
143 },
144 ],
145 },
146 "endTime": "A String", # The time that this operation was completed. This is in RFC 3339 format (output only).
147 "selfLink": "A String", # Server defined URL for the resource (output only).
148 "targetLink": "A String", # URL of the resource the operation is mutating (output only).
149 }</pre>
150</div>
151
152<div class="method">
153 <code class="details" id="get">get(project, targetHttpProxy)</code>
154 <pre>Returns the specified TargetHttpProxy resource.
155
156Args:
157 project: string, Name of the project scoping this request. (required)
158 targetHttpProxy: string, Name of the TargetHttpProxy resource to return. (required)
159
160Returns:
161 An object of the form:
162
163 { # A TargetHttpProxy resource. This resource defines an HTTP proxy.
164 "kind": "compute#targetHttpProxy", # Type of the resource.
165 "description": "A String", # An optional textual description of the resource; provided by the client when the resource is created.
166 "urlMap": "A String", # URL to the UrlMap resource that defines the mapping from URL to the BackendService.
167 "creationTimestamp": "A String", # Creation timestamp in RFC3339 text format (output only).
168 "id": "A String", # Unique identifier for the resource; defined by the server (output only).
169 "selfLink": "A String", # Server defined URL for the resource (output only).
170 "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.
171 }</pre>
172</div>
173
174<div class="method">
175 <code class="details" id="insert">insert(project, body)</code>
176 <pre>Creates a TargetHttpProxy resource in the specified project using the data included in the request.
177
178Args:
179 project: string, Name of the project scoping this request. (required)
180 body: object, The request body. (required)
181 The object takes the form of:
182
183{ # A TargetHttpProxy resource. This resource defines an HTTP proxy.
184 "kind": "compute#targetHttpProxy", # Type of the resource.
185 "description": "A String", # An optional textual description of the resource; provided by the client when the resource is created.
186 "urlMap": "A String", # URL to the UrlMap resource that defines the mapping from URL to the BackendService.
187 "creationTimestamp": "A String", # Creation timestamp in RFC3339 text format (output only).
188 "id": "A String", # Unique identifier for the resource; defined by the server (output only).
189 "selfLink": "A String", # Server defined URL for the resource (output only).
190 "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.
191 }
192
193
194Returns:
195 An object of the form:
196
197 { # An operation resource, used to manage asynchronous API requests.
198 "targetId": "A String", # Unique target id which identifies a particular incarnation of the target (output only).
199 "clientOperationId": "A String", # An optional identifier specified by the client when the mutation was initiated. Must be unique for all operation resources in the project (output only).
200 "creationTimestamp": "A String", # Creation timestamp in RFC3339 text format (output only).
201 "id": "A String", # Unique identifier for the resource; defined by the server (output only).
202 "zone": "A String", # URL of the zone where the operation resides (output only).
203 "operationType": "A String", # Type of the operation. Examples include "insert", "update", and "delete" (output only).
204 "httpErrorMessage": "A String", # If operation fails, the HTTP error message returned, e.g. NOT FOUND. (output only).
205 "progress": 42, # 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 be monotonically increasing as the operation progresses (output only).
206 "httpErrorStatusCode": 42, # If operation fails, the HTTP error status code returned, e.g. 404. (output only).
207 "statusMessage": "A String", # An optional textual description of the current status of the operation (output only).
208 "status": "A String", # Status of the operation. Can be one of the following: "PENDING", "RUNNING", or "DONE" (output only).
209 "insertTime": "A String", # The time that this operation was requested. This is in RFC 3339 format (output only).
210 "warnings": [ # If warning messages generated during processing of this operation, this field will be populated (output only).
211 {
212 "message": "A String", # Optional human-readable details for this warning.
213 "code": "A String", # The warning type identifier for this warning.
214 "data": [ # Metadata for this warning in 'key: value' format.
215 {
216 "value": "A String", # A warning data value corresponding to the key.
217 "key": "A String", # A key for the warning data.
218 },
219 ],
220 },
221 ],
222 "user": "A String", # User who requested the operation, for example "user@example.com" (output only).
223 "startTime": "A String", # The time that this operation was started by the server. This is in RFC 3339 format (output only).
224 "kind": "compute#operation", # Type of the resource.
225 "name": "A String", # Name of the resource (output only).
226 "region": "A String", # URL of the region where the operation resides (output only).
227 "error": { # If errors occurred during processing of this operation, this field will be populated (output only).
228 "errors": [ # The array of errors encountered while processing this operation.
229 {
230 "message": "A String", # An optional, human-readable error message.
231 "code": "A String", # The error type identifier for this error.
232 "location": "A String", # Indicates the field in the request which caused the error. This property is optional.
233 },
234 ],
235 },
236 "endTime": "A String", # The time that this operation was completed. This is in RFC 3339 format (output only).
237 "selfLink": "A String", # Server defined URL for the resource (output only).
238 "targetLink": "A String", # URL of the resource the operation is mutating (output only).
239 }</pre>
240</div>
241
242<div class="method">
243 <code class="details" id="list">list(project, maxResults=None, pageToken=None, filter=None)</code>
244 <pre>Retrieves the list of TargetHttpProxy resources available to the specified project.
245
246Args:
247 project: string, Name of the project scoping this request. (required)
248 maxResults: integer, Optional. Maximum count of results to be returned. Maximum value is 500 and default value is 500.
249 pageToken: string, Optional. Tag returned by a previous list request truncated by maxResults. Used to continue a previous list request.
250 filter: string, Optional. Filter expression for filtering listed resources.
251
252Returns:
253 An object of the form:
254
255 { # Contains a list of TargetHttpProxy resources.
256 "nextPageToken": "A String", # A token used to continue a truncated list request (output only).
257 "items": [ # The TargetHttpProxy resources.
258 { # A TargetHttpProxy resource. This resource defines an HTTP proxy.
259 "kind": "compute#targetHttpProxy", # Type of the resource.
260 "description": "A String", # An optional textual description of the resource; provided by the client when the resource is created.
261 "urlMap": "A String", # URL to the UrlMap resource that defines the mapping from URL to the BackendService.
262 "creationTimestamp": "A String", # Creation timestamp in RFC3339 text format (output only).
263 "id": "A String", # Unique identifier for the resource; defined by the server (output only).
264 "selfLink": "A String", # Server defined URL for the resource (output only).
265 "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.
266 },
267 ],
268 "kind": "compute#targetHttpProxyList", # Type of resource.
269 "id": "A String", # Unique identifier for the resource; defined by the server (output only).
270 "selfLink": "A String", # Server defined URL for this resource (output only).
271 }</pre>
272</div>
273
274<div class="method">
275 <code class="details" id="list_next">list_next(previous_request, previous_response)</code>
276 <pre>Retrieves the next page of results.
277
278Args:
279 previous_request: The request for the previous page. (required)
280 previous_response: The response from the request for the previous page. (required)
281
282Returns:
283 A request object that you can call 'execute()' on to request the next
284 page. Returns None if there are no more items in the collection.
285 </pre>
286</div>
287
288<div class="method">
289 <code class="details" id="setUrlMap">setUrlMap(project, targetHttpProxy, body)</code>
290 <pre>Changes the URL map for TargetHttpProxy.
291
292Args:
293 project: string, Name of the project scoping this request. (required)
294 targetHttpProxy: string, Name of the TargetHttpProxy resource whose URL map is to be set. (required)
295 body: object, The request body. (required)
296 The object takes the form of:
297
298{
299 "urlMap": "A String",
300 }
301
302
303Returns:
304 An object of the form:
305
306 { # An operation resource, used to manage asynchronous API requests.
307 "targetId": "A String", # Unique target id which identifies a particular incarnation of the target (output only).
308 "clientOperationId": "A String", # An optional identifier specified by the client when the mutation was initiated. Must be unique for all operation resources in the project (output only).
309 "creationTimestamp": "A String", # Creation timestamp in RFC3339 text format (output only).
310 "id": "A String", # Unique identifier for the resource; defined by the server (output only).
311 "zone": "A String", # URL of the zone where the operation resides (output only).
312 "operationType": "A String", # Type of the operation. Examples include "insert", "update", and "delete" (output only).
313 "httpErrorMessage": "A String", # If operation fails, the HTTP error message returned, e.g. NOT FOUND. (output only).
314 "progress": 42, # 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 be monotonically increasing as the operation progresses (output only).
315 "httpErrorStatusCode": 42, # If operation fails, the HTTP error status code returned, e.g. 404. (output only).
316 "statusMessage": "A String", # An optional textual description of the current status of the operation (output only).
317 "status": "A String", # Status of the operation. Can be one of the following: "PENDING", "RUNNING", or "DONE" (output only).
318 "insertTime": "A String", # The time that this operation was requested. This is in RFC 3339 format (output only).
319 "warnings": [ # If warning messages generated during processing of this operation, this field will be populated (output only).
320 {
321 "message": "A String", # Optional human-readable details for this warning.
322 "code": "A String", # The warning type identifier for this warning.
323 "data": [ # Metadata for this warning in 'key: value' format.
324 {
325 "value": "A String", # A warning data value corresponding to the key.
326 "key": "A String", # A key for the warning data.
327 },
328 ],
329 },
330 ],
331 "user": "A String", # User who requested the operation, for example "user@example.com" (output only).
332 "startTime": "A String", # The time that this operation was started by the server. This is in RFC 3339 format (output only).
333 "kind": "compute#operation", # Type of the resource.
334 "name": "A String", # Name of the resource (output only).
335 "region": "A String", # URL of the region where the operation resides (output only).
336 "error": { # If errors occurred during processing of this operation, this field will be populated (output only).
337 "errors": [ # The array of errors encountered while processing this operation.
338 {
339 "message": "A String", # An optional, human-readable error message.
340 "code": "A String", # The error type identifier for this error.
341 "location": "A String", # Indicates the field in the request which caused the error. This property is optional.
342 },
343 ],
344 },
345 "endTime": "A String", # The time that this operation was completed. This is in RFC 3339 format (output only).
346 "selfLink": "A String", # Server defined URL for the resource (output only).
347 "targetLink": "A String", # URL of the resource the operation is mutating (output only).
348 }</pre>
349</div>
350
351</body></html>