blob: 259859a6c59846c2c2ecd2777fb78a3c2ed37c8b [file] [log] [blame]
Sai Cheemalapatidf613972016-10-21 13:59:49 -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_alpha.html">Compute Engine API</a> . <a href="compute_alpha.backendServices.html">backendServices</a></h1>
76<h2>Instance Methods</h2>
77<p class="toc_element">
78 <code><a href="#aggregatedList">aggregatedList(project, orderBy=None, maxResults=None, pageToken=None, filter=None)</a></code></p>
79<p class="firstline">Retrieves the list of all BackendService resources, regional and global, available to the specified project.</p>
80<p class="toc_element">
81 <code><a href="#aggregatedList_next">aggregatedList_next(previous_request, previous_response)</a></code></p>
82<p class="firstline">Retrieves the next page of results.</p>
83<p class="toc_element">
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -040084 <code><a href="#delete">delete(project, backendService, requestId=None)</a></code></p>
Sai Cheemalapatidf613972016-10-21 13:59:49 -070085<p class="firstline">Deletes the specified BackendService resource.</p>
86<p class="toc_element">
87 <code><a href="#get">get(project, backendService)</a></code></p>
88<p class="firstline">Returns the specified BackendService resource. Get a list of available backend services by making a list() request.</p>
89<p class="toc_element">
90 <code><a href="#getHealth">getHealth(project, backendService, body)</a></code></p>
91<p class="firstline">Gets the most recent health check results for this BackendService.</p>
92<p class="toc_element">
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -040093 <code><a href="#insert">insert(project, body, requestId=None)</a></code></p>
Sai Cheemalapatidf613972016-10-21 13:59:49 -070094<p class="firstline">Creates a BackendService resource in the specified project using the data included in the request. There are several restrictions and guidelines to keep in mind when creating a backend service. Read Restrictions and Guidelines for more information.</p>
95<p class="toc_element">
96 <code><a href="#list">list(project, orderBy=None, maxResults=None, pageToken=None, filter=None)</a></code></p>
97<p class="firstline">Retrieves the list of BackendService resources available to the specified project.</p>
98<p class="toc_element">
99 <code><a href="#list_next">list_next(previous_request, previous_response)</a></code></p>
100<p class="firstline">Retrieves the next page of results.</p>
101<p class="toc_element">
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400102 <code><a href="#patch">patch(project, backendService, body, requestId=None)</a></code></p>
103<p class="firstline">Patches the specified BackendService resource with the data included in the request. There are several restrictions and guidelines to keep in mind when updating a backend service. Read Restrictions and Guidelines for more information. This method supports patch semantics.</p>
Sai Cheemalapatidf613972016-10-21 13:59:49 -0700104<p class="toc_element">
105 <code><a href="#testIamPermissions">testIamPermissions(project, resource, body)</a></code></p>
106<p class="firstline">Returns permissions that a caller has on the specified resource.</p>
107<p class="toc_element">
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400108 <code><a href="#update">update(project, backendService, body, requestId=None)</a></code></p>
Sai Cheemalapatidf613972016-10-21 13:59:49 -0700109<p class="firstline">Updates the specified BackendService resource with the data included in the request. There are several restrictions and guidelines to keep in mind when updating a backend service. Read Restrictions and Guidelines for more information.</p>
110<h3>Method Details</h3>
111<div class="method">
112 <code class="details" id="aggregatedList">aggregatedList(project, orderBy=None, maxResults=None, pageToken=None, filter=None)</code>
113 <pre>Retrieves the list of all BackendService resources, regional and global, available to the specified project.
114
115Args:
116 project: string, Name of the project scoping this request. (required)
117 orderBy: string, Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name.
118
119You 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.
120
121Currently, only sorting by name or creationTimestamp desc is supported.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400122 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)
Sai Cheemalapatidf613972016-10-21 13:59:49 -0700123 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.
124 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.
125
126The 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.
127
128For example, to filter for instances that do not have a name of example-instance, you would use filter=name ne example-instance.
129
130You 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.
131
132To 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.
133
134Returns:
135 An object of the form:
136
137 { # Contains a list of BackendServicesScopedList.
138 "nextPageToken": "A String", # [Output Only] A token used to continue a truncated list request.
139 "items": { # A map of scoped BackendService lists.
140 "a_key": { # Name of the scope containing this set of BackendServices.
141 "warning": { # Informational warning which replaces the list of backend services when the list is empty.
142 "message": "A String", # [Output Only] A human-readable description of the warning code.
143 "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.
144 "data": [ # [Output Only] Metadata about this warning in key: value format. For example:
145 # "data": [ { "key": "scope", "value": "zones/us-east1-d" }
146 {
147 "value": "A String", # [Output Only] A warning data value corresponding to the key.
148 "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).
149 },
150 ],
151 },
152 "backendServices": [ # List of BackendServices contained in this scope.
153 { # A BackendService resource. This resource defines a group of backend virtual machines and their serving capacity.
Sai Cheemalapatidf613972016-10-21 13:59:49 -0700154 "connectionDraining": { # Message containing connection draining configuration.
155 "drainingTimeoutSec": 42, # Time for which instance will be drained (not accept new connections, but still work to finish started).
156 },
157 "protocol": "A String", # The protocol this BackendService uses to communicate with backends.
158 #
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400159 # Possible values are HTTP, HTTPS, TCP, and SSL. The default is HTTP.
Sai Cheemalapatidf613972016-10-21 13:59:49 -0700160 #
161 # For internal load balancing, the possible values are TCP and UDP, and the default is TCP.
162 "loadBalancingScheme": "A String",
163 "healthChecks": [ # The list of URLs to the HttpHealthCheck or HttpsHealthCheck resource for health checking this BackendService. Currently at most one health check can be specified, and a health check is required.
164 #
165 # For internal load balancing, a URL to a HealthCheck resource must be specified instead.
166 "A String",
167 ],
168 "sessionAffinity": "A String", # Type of session affinity to use. The default is NONE.
169 #
170 # When the load balancing scheme is EXTERNAL, can be NONE, CLIENT_IP, or GENERATED_COOKIE.
171 #
172 # When the load balancing scheme is INTERNAL, can be NONE, CLIENT_IP, CLIENT_IP_PROTO, or CLIENT_IP_PORT_PROTO.
173 #
174 # When the protocol is UDP, this field is not used.
175 "creationTimestamp": "A String", # [Output Only] Creation timestamp in RFC3339 text format.
176 "id": "A String", # [Output Only] The unique identifier for the resource. This identifier is defined by the server.
Jon Wayne Parrott692617a2017-01-06 09:58:29 -0800177 "cdnPolicy": { # Message containing Cloud CDN configuration for a backend service. # Cloud CDN configuration for this BackendService.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400178 "signedUrlKeyNames": [ # [Output Only] Names of the keys currently configured for Cloud CDN Signed URL on this backend service.
179 "A String",
180 ],
181 "signedUrlTtlSec": "A String", # Number of seconds up to which the response to a signed URL request will be cached in the CDN. After this time period, the Signed URL will be revalidated before being served. Defaults to 1hr (3600s). If this field is set, Cloud CDN will internally act as though all responses from this backend had a ?Cache-Control: public, max-age=[TTL]? header, regardless of any existing Cache-Control header. The actual headers served in responses will not be altered.
Jon Wayne Parrott692617a2017-01-06 09:58:29 -0800182 "cacheKeyPolicy": { # Message containing what to include in the cache key for a request for Cloud CDN. # The CacheKeyPolicy for this CdnPolicy.
183 "includeQueryString": True or False, # If true, include query string parameters in the cache key according to query_string_whitelist and query_string_blacklist. If neither is set, the entire query string will be included. If false, the query string will be excluded from the cache key entirely.
184 "includeHost": True or False, # If true, requests to different hosts will be cached separately.
185 "queryStringBlacklist": [ # Names of query string parameters to exclude in cache keys. All other parameters will be included. Either specify query_string_whitelist or query_string_blacklist, not both. '&' and '=' will be percent encoded and not treated as delimiters.
186 "A String",
187 ],
188 "queryStringWhitelist": [ # Names of query string parameters to include in cache keys. All other parameters will be excluded. Either specify query_string_whitelist or query_string_blacklist, not both. '&' and '=' will be percent encoded and not treated as delimiters.
189 "A String",
190 ],
191 "includeProtocol": True or False, # If true, http and https requests will be cached separately.
192 },
193 },
Sai Cheemalapatidf613972016-10-21 13:59:49 -0700194 "enableCDN": True or False, # If true, enable Cloud CDN for this BackendService.
195 #
196 # When the load balancing scheme is INTERNAL, this field is not used.
197 "affinityCookieTtlSec": 42, # Lifetime of cookies in seconds if session_affinity is GENERATED_COOKIE. If set to 0, the cookie is non-persistent and lasts only until the end of the browser session (or equivalent). The maximum allowed value for TTL is one day.
198 #
199 # When the load balancing scheme is INTERNAL, this field is not used.
200 "port": 42, # Deprecated in favor of portName. The TCP port to connect on the backend. The default value is 80.
201 #
202 # This cannot be used for internal load balancing.
203 "backends": [ # The list of backends that serve this BackendService.
204 { # Message containing information of one individual backend.
205 "group": "A String", # The fully-qualified URL of a zonal Instance Group resource. This instance group defines the list of instances that serve traffic. Member virtual machine instances from each instance group must live in the same zone as the instance group itself. No two backends in a backend service are allowed to use same Instance Group resource.
206 #
207 # Note that you must specify an Instance Group resource using the fully-qualified URL, rather than a partial URL.
208 #
209 # When the BackendService has load balancing scheme INTERNAL, the instance group must be in a zone within the same region as the BackendService.
210 "description": "A String", # An optional description of this resource. Provide this property when you create the resource.
211 "maxUtilization": 3.14, # Used when balancingMode is UTILIZATION. This ratio defines the CPU utilization target for the group. The default is 0.8. Valid range is [0.0, 1.0].
212 #
213 # This cannot be used for internal load balancing.
Jon Wayne Parrott692617a2017-01-06 09:58:29 -0800214 "failover": True or False, # This field designates whether this is a failover backend. More than one failover backend can be configured for a given BackendService.
Sai Cheemalapatidf613972016-10-21 13:59:49 -0700215 "maxRatePerInstance": 3.14, # The max requests per second (RPS) that a single backend instance can handle.This is used to calculate the capacity of the group. Can be used in either balancing mode. For RATE mode, either maxRate or maxRatePerInstance must be set.
216 #
217 # This cannot be used for internal load balancing.
218 "maxConnectionsPerInstance": 42, # The max number of simultaneous connections that a single backend instance can handle. This is used to calculate the capacity of the group. Can be used in either CONNECTION or UTILIZATION balancing modes. For CONNECTION mode, either maxConnections or maxConnectionsPerInstance must be set.
219 #
220 # This cannot be used for internal load balancing.
221 "capacityScaler": 3.14, # A multiplier applied to the group's maximum servicing capacity (based on UTILIZATION, RATE or CONNECTION). Default value is 1, which means the group will serve up to 100% of its configured capacity (depending on balancingMode). A setting of 0 means the group is completely drained, offering 0% of its available Capacity. Valid range is [0.0,1.0].
222 #
223 # This cannot be used for internal load balancing.
224 "maxRate": 42, # The max requests per second (RPS) of the group. Can be used with either RATE or UTILIZATION balancing modes, but required if RATE mode. For RATE mode, either maxRate or maxRatePerInstance must be set.
225 #
226 # This cannot be used for internal load balancing.
227 "maxConnections": 42, # The max number of simultaneous connections for the group. Can be used with either CONNECTION or UTILIZATION balancing modes. For CONNECTION mode, either maxConnections or maxConnectionsPerInstance must be set.
228 #
229 # This cannot be used for internal load balancing.
230 "balancingMode": "A String", # Specifies the balancing mode for this backend. For global HTTP(S) or TCP/SSL load balancing, the default is UTILIZATION. Valid values are UTILIZATION, RATE (for HTTP(S)) and CONNECTION (for TCP/SSL).
231 #
232 # This cannot be used for internal load balancing.
233 },
234 ],
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400235 "iap": { # Identity-Aware Proxy
Sai Cheemalapatidf613972016-10-21 13:59:49 -0700236 "oauth2ClientId": "A String",
237 "enabled": True or False,
238 "oauth2ClientSecret": "A String",
239 "oauth2ClientSecretSha256": "A String",
240 },
241 "description": "A String", # An optional description of this resource. Provide this property when you create the resource.
Jon Wayne Parrott692617a2017-01-06 09:58:29 -0800242 "customRequestHeaders": [ # Headers that the HTTP/S load balancer should add to proxied requests.
243 "A String",
244 ],
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400245 "securityPolicy": "A String", # [Output Only] The resource URL for the security policy associated with this backend service.
Sai Cheemalapatidf613972016-10-21 13:59:49 -0700246 "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 BackendService. An up-to-date fingerprint must be provided in order to update the BackendService.
247 "portName": "A String", # Name of backend port. The same name should appear in the instance groups referenced by this service. Required when the load balancing scheme is EXTERNAL.
248 #
249 # When the load balancing scheme is INTERNAL, this field is not used.
250 "kind": "compute#backendService", # [Output Only] Type of resource. Always compute#backendService for backend services.
251 "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.
252 "region": "A String", # [Output Only] URL of the region where the regional backend service resides. This field is not applicable to global backend services.
Jon Wayne Parrott692617a2017-01-06 09:58:29 -0800253 "timeoutSec": 42, # How many seconds to wait for the backend before considering it a failed request. Default is 30 seconds.
Sai Cheemalapatidf613972016-10-21 13:59:49 -0700254 "selfLink": "A String", # [Output Only] Server-defined URL for the resource.
255 },
256 ],
257 },
258 },
259 "kind": "compute#backendServiceAggregatedList", # Type of resource.
260 "id": "A String", # [Output Only] Unique identifier for the resource; defined by the server.
261 "selfLink": "A String", # [Output Only] Server-defined URL for this resource.
262 }</pre>
263</div>
264
265<div class="method">
266 <code class="details" id="aggregatedList_next">aggregatedList_next(previous_request, previous_response)</code>
267 <pre>Retrieves the next page of results.
268
269Args:
270 previous_request: The request for the previous page. (required)
271 previous_response: The response from the request for the previous page. (required)
272
273Returns:
274 A request object that you can call 'execute()' on to request the next
275 page. Returns None if there are no more items in the collection.
276 </pre>
277</div>
278
279<div class="method">
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400280 <code class="details" id="delete">delete(project, backendService, requestId=None)</code>
Sai Cheemalapatidf613972016-10-21 13:59:49 -0700281 <pre>Deletes the specified BackendService resource.
282
283Args:
284 project: string, Project ID for this request. (required)
285 backendService: string, Name of the BackendService resource to delete. (required)
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400286 requestId: string, begin_interface: MixerMutationRequestBuilder Request ID to support idempotency.
Sai Cheemalapatidf613972016-10-21 13:59:49 -0700287
288Returns:
289 An object of the form:
290
291 { # An Operation resource, used to manage asynchronous API requests.
292 "targetId": "A String", # [Output Only] The unique target ID, which identifies a specific incarnation of the target resource.
293 "clientOperationId": "A String", # [Output Only] Reserved for future use.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400294 "creationTimestamp": "A String", # [Deprecated] This field is deprecated.
Sai Cheemalapatidf613972016-10-21 13:59:49 -0700295 "id": "A String", # [Output Only] The unique identifier for the resource. This identifier is defined by the server.
296 "zone": "A String", # [Output Only] The URL of the zone where the operation resides. Only available when performing per-zone operations.
297 "insertTime": "A String", # [Output Only] The time that this operation was requested. This value is in RFC3339 text format.
298 "operationType": "A String", # [Output Only] The type of operation, such as insert, update, or delete, and so on.
299 "httpErrorMessage": "A String", # [Output Only] If the operation fails, this field contains the HTTP error message that was returned, such as NOT FOUND.
300 "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.
301 "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.
302 "statusMessage": "A String", # [Output Only] An optional textual description of the current status of the operation.
303 "status": "A String", # [Output Only] The status of the operation, which can be one of the following: PENDING, RUNNING, or DONE.
304 "description": "A String", # [Output Only] A textual description of the operation, which is set when the operation is created.
305 "warnings": [ # [Output Only] If warning messages are generated during processing of the operation, this field will be populated.
306 {
307 "message": "A String", # [Output Only] A human-readable description of the warning code.
308 "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.
309 "data": [ # [Output Only] Metadata about this warning in key: value format. For example:
310 # "data": [ { "key": "scope", "value": "zones/us-east1-d" }
311 {
312 "value": "A String", # [Output Only] A warning data value corresponding to the key.
313 "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).
314 },
315 ],
316 },
317 ],
318 "user": "A String", # [Output Only] User who requested the operation, for example: user@example.com.
319 "startTime": "A String", # [Output Only] The time that this operation was started by the server. This value is in RFC3339 text format.
320 "kind": "compute#operation", # [Output Only] Type of the resource. Always compute#operation for Operation resources.
321 "name": "A String", # [Output Only] Name of the resource.
322 "region": "A String", # [Output Only] The URL of the region where the operation resides. Only available when performing regional operations.
323 "error": { # [Output Only] If errors are generated during processing of the operation, this field will be populated.
324 "errors": [ # [Output Only] The array of errors encountered while processing this operation.
325 {
326 "message": "A String", # [Output Only] An optional, human-readable error message.
327 "code": "A String", # [Output Only] The error type identifier for this error.
328 "location": "A String", # [Output Only] Indicates the field in the request that caused the error. This property is optional.
329 },
330 ],
331 },
332 "endTime": "A String", # [Output Only] The time that this operation was completed. This value is in RFC3339 text format.
333 "selfLink": "A String", # [Output Only] Server-defined URL for the resource.
Jon Wayne Parrott692617a2017-01-06 09:58:29 -0800334 "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.
Sai Cheemalapatidf613972016-10-21 13:59:49 -0700335 }</pre>
336</div>
337
338<div class="method">
339 <code class="details" id="get">get(project, backendService)</code>
340 <pre>Returns the specified BackendService resource. Get a list of available backend services by making a list() request.
341
342Args:
343 project: string, Project ID for this request. (required)
344 backendService: string, Name of the BackendService resource to return. (required)
345
346Returns:
347 An object of the form:
348
349 { # A BackendService resource. This resource defines a group of backend virtual machines and their serving capacity.
Sai Cheemalapatidf613972016-10-21 13:59:49 -0700350 "connectionDraining": { # Message containing connection draining configuration.
351 "drainingTimeoutSec": 42, # Time for which instance will be drained (not accept new connections, but still work to finish started).
352 },
353 "protocol": "A String", # The protocol this BackendService uses to communicate with backends.
354 #
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400355 # Possible values are HTTP, HTTPS, TCP, and SSL. The default is HTTP.
Sai Cheemalapatidf613972016-10-21 13:59:49 -0700356 #
357 # For internal load balancing, the possible values are TCP and UDP, and the default is TCP.
358 "loadBalancingScheme": "A String",
359 "healthChecks": [ # The list of URLs to the HttpHealthCheck or HttpsHealthCheck resource for health checking this BackendService. Currently at most one health check can be specified, and a health check is required.
360 #
361 # For internal load balancing, a URL to a HealthCheck resource must be specified instead.
362 "A String",
363 ],
364 "sessionAffinity": "A String", # Type of session affinity to use. The default is NONE.
365 #
366 # When the load balancing scheme is EXTERNAL, can be NONE, CLIENT_IP, or GENERATED_COOKIE.
367 #
368 # When the load balancing scheme is INTERNAL, can be NONE, CLIENT_IP, CLIENT_IP_PROTO, or CLIENT_IP_PORT_PROTO.
369 #
370 # When the protocol is UDP, this field is not used.
371 "creationTimestamp": "A String", # [Output Only] Creation timestamp in RFC3339 text format.
372 "id": "A String", # [Output Only] The unique identifier for the resource. This identifier is defined by the server.
Jon Wayne Parrott692617a2017-01-06 09:58:29 -0800373 "cdnPolicy": { # Message containing Cloud CDN configuration for a backend service. # Cloud CDN configuration for this BackendService.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400374 "signedUrlKeyNames": [ # [Output Only] Names of the keys currently configured for Cloud CDN Signed URL on this backend service.
375 "A String",
376 ],
377 "signedUrlTtlSec": "A String", # Number of seconds up to which the response to a signed URL request will be cached in the CDN. After this time period, the Signed URL will be revalidated before being served. Defaults to 1hr (3600s). If this field is set, Cloud CDN will internally act as though all responses from this backend had a ?Cache-Control: public, max-age=[TTL]? header, regardless of any existing Cache-Control header. The actual headers served in responses will not be altered.
Jon Wayne Parrott692617a2017-01-06 09:58:29 -0800378 "cacheKeyPolicy": { # Message containing what to include in the cache key for a request for Cloud CDN. # The CacheKeyPolicy for this CdnPolicy.
379 "includeQueryString": True or False, # If true, include query string parameters in the cache key according to query_string_whitelist and query_string_blacklist. If neither is set, the entire query string will be included. If false, the query string will be excluded from the cache key entirely.
380 "includeHost": True or False, # If true, requests to different hosts will be cached separately.
381 "queryStringBlacklist": [ # Names of query string parameters to exclude in cache keys. All other parameters will be included. Either specify query_string_whitelist or query_string_blacklist, not both. '&' and '=' will be percent encoded and not treated as delimiters.
382 "A String",
383 ],
384 "queryStringWhitelist": [ # Names of query string parameters to include in cache keys. All other parameters will be excluded. Either specify query_string_whitelist or query_string_blacklist, not both. '&' and '=' will be percent encoded and not treated as delimiters.
385 "A String",
386 ],
387 "includeProtocol": True or False, # If true, http and https requests will be cached separately.
388 },
389 },
Sai Cheemalapatidf613972016-10-21 13:59:49 -0700390 "enableCDN": True or False, # If true, enable Cloud CDN for this BackendService.
391 #
392 # When the load balancing scheme is INTERNAL, this field is not used.
393 "affinityCookieTtlSec": 42, # Lifetime of cookies in seconds if session_affinity is GENERATED_COOKIE. If set to 0, the cookie is non-persistent and lasts only until the end of the browser session (or equivalent). The maximum allowed value for TTL is one day.
394 #
395 # When the load balancing scheme is INTERNAL, this field is not used.
396 "port": 42, # Deprecated in favor of portName. The TCP port to connect on the backend. The default value is 80.
397 #
398 # This cannot be used for internal load balancing.
399 "backends": [ # The list of backends that serve this BackendService.
400 { # Message containing information of one individual backend.
401 "group": "A String", # The fully-qualified URL of a zonal Instance Group resource. This instance group defines the list of instances that serve traffic. Member virtual machine instances from each instance group must live in the same zone as the instance group itself. No two backends in a backend service are allowed to use same Instance Group resource.
402 #
403 # Note that you must specify an Instance Group resource using the fully-qualified URL, rather than a partial URL.
404 #
405 # When the BackendService has load balancing scheme INTERNAL, the instance group must be in a zone within the same region as the BackendService.
406 "description": "A String", # An optional description of this resource. Provide this property when you create the resource.
407 "maxUtilization": 3.14, # Used when balancingMode is UTILIZATION. This ratio defines the CPU utilization target for the group. The default is 0.8. Valid range is [0.0, 1.0].
408 #
409 # This cannot be used for internal load balancing.
Jon Wayne Parrott692617a2017-01-06 09:58:29 -0800410 "failover": True or False, # This field designates whether this is a failover backend. More than one failover backend can be configured for a given BackendService.
Sai Cheemalapatidf613972016-10-21 13:59:49 -0700411 "maxRatePerInstance": 3.14, # The max requests per second (RPS) that a single backend instance can handle.This is used to calculate the capacity of the group. Can be used in either balancing mode. For RATE mode, either maxRate or maxRatePerInstance must be set.
412 #
413 # This cannot be used for internal load balancing.
414 "maxConnectionsPerInstance": 42, # The max number of simultaneous connections that a single backend instance can handle. This is used to calculate the capacity of the group. Can be used in either CONNECTION or UTILIZATION balancing modes. For CONNECTION mode, either maxConnections or maxConnectionsPerInstance must be set.
415 #
416 # This cannot be used for internal load balancing.
417 "capacityScaler": 3.14, # A multiplier applied to the group's maximum servicing capacity (based on UTILIZATION, RATE or CONNECTION). Default value is 1, which means the group will serve up to 100% of its configured capacity (depending on balancingMode). A setting of 0 means the group is completely drained, offering 0% of its available Capacity. Valid range is [0.0,1.0].
418 #
419 # This cannot be used for internal load balancing.
420 "maxRate": 42, # The max requests per second (RPS) of the group. Can be used with either RATE or UTILIZATION balancing modes, but required if RATE mode. For RATE mode, either maxRate or maxRatePerInstance must be set.
421 #
422 # This cannot be used for internal load balancing.
423 "maxConnections": 42, # The max number of simultaneous connections for the group. Can be used with either CONNECTION or UTILIZATION balancing modes. For CONNECTION mode, either maxConnections or maxConnectionsPerInstance must be set.
424 #
425 # This cannot be used for internal load balancing.
426 "balancingMode": "A String", # Specifies the balancing mode for this backend. For global HTTP(S) or TCP/SSL load balancing, the default is UTILIZATION. Valid values are UTILIZATION, RATE (for HTTP(S)) and CONNECTION (for TCP/SSL).
427 #
428 # This cannot be used for internal load balancing.
429 },
430 ],
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400431 "iap": { # Identity-Aware Proxy
Sai Cheemalapatidf613972016-10-21 13:59:49 -0700432 "oauth2ClientId": "A String",
433 "enabled": True or False,
434 "oauth2ClientSecret": "A String",
435 "oauth2ClientSecretSha256": "A String",
436 },
437 "description": "A String", # An optional description of this resource. Provide this property when you create the resource.
Jon Wayne Parrott692617a2017-01-06 09:58:29 -0800438 "customRequestHeaders": [ # Headers that the HTTP/S load balancer should add to proxied requests.
439 "A String",
440 ],
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400441 "securityPolicy": "A String", # [Output Only] The resource URL for the security policy associated with this backend service.
Sai Cheemalapatidf613972016-10-21 13:59:49 -0700442 "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 BackendService. An up-to-date fingerprint must be provided in order to update the BackendService.
443 "portName": "A String", # Name of backend port. The same name should appear in the instance groups referenced by this service. Required when the load balancing scheme is EXTERNAL.
444 #
445 # When the load balancing scheme is INTERNAL, this field is not used.
446 "kind": "compute#backendService", # [Output Only] Type of resource. Always compute#backendService for backend services.
447 "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.
448 "region": "A String", # [Output Only] URL of the region where the regional backend service resides. This field is not applicable to global backend services.
Jon Wayne Parrott692617a2017-01-06 09:58:29 -0800449 "timeoutSec": 42, # How many seconds to wait for the backend before considering it a failed request. Default is 30 seconds.
Sai Cheemalapatidf613972016-10-21 13:59:49 -0700450 "selfLink": "A String", # [Output Only] Server-defined URL for the resource.
451 }</pre>
452</div>
453
454<div class="method">
455 <code class="details" id="getHealth">getHealth(project, backendService, body)</code>
456 <pre>Gets the most recent health check results for this BackendService.
457
458Args:
459 project: string, A parameter (required)
460 backendService: string, Name of the BackendService resource to which the queried instance belongs. (required)
461 body: object, The request body. (required)
462 The object takes the form of:
463
464{
465 "group": "A String", # A URI referencing one of the instance groups listed in the backend service.
466 }
467
468
469Returns:
470 An object of the form:
471
472 {
473 "kind": "compute#backendServiceGroupHealth", # [Output Only] Type of resource. Always compute#backendServiceGroupHealth for the health of backend services.
474 "healthStatus": [
475 {
476 "instance": "A String", # URL of the instance resource.
477 "healthState": "A String", # Health state of the instance.
478 "ipAddress": "A String", # The IP address represented by this resource.
479 "port": 42, # The port on the instance.
480 },
481 ],
482 }</pre>
483</div>
484
485<div class="method">
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400486 <code class="details" id="insert">insert(project, body, requestId=None)</code>
Sai Cheemalapatidf613972016-10-21 13:59:49 -0700487 <pre>Creates a BackendService resource in the specified project using the data included in the request. There are several restrictions and guidelines to keep in mind when creating a backend service. Read Restrictions and Guidelines for more information.
488
489Args:
490 project: string, Project ID for this request. (required)
491 body: object, The request body. (required)
492 The object takes the form of:
493
494{ # A BackendService resource. This resource defines a group of backend virtual machines and their serving capacity.
Sai Cheemalapatidf613972016-10-21 13:59:49 -0700495 "connectionDraining": { # Message containing connection draining configuration.
496 "drainingTimeoutSec": 42, # Time for which instance will be drained (not accept new connections, but still work to finish started).
497 },
498 "protocol": "A String", # The protocol this BackendService uses to communicate with backends.
499 #
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400500 # Possible values are HTTP, HTTPS, TCP, and SSL. The default is HTTP.
Sai Cheemalapatidf613972016-10-21 13:59:49 -0700501 #
502 # For internal load balancing, the possible values are TCP and UDP, and the default is TCP.
503 "loadBalancingScheme": "A String",
504 "healthChecks": [ # The list of URLs to the HttpHealthCheck or HttpsHealthCheck resource for health checking this BackendService. Currently at most one health check can be specified, and a health check is required.
505 #
506 # For internal load balancing, a URL to a HealthCheck resource must be specified instead.
507 "A String",
508 ],
509 "sessionAffinity": "A String", # Type of session affinity to use. The default is NONE.
510 #
511 # When the load balancing scheme is EXTERNAL, can be NONE, CLIENT_IP, or GENERATED_COOKIE.
512 #
513 # When the load balancing scheme is INTERNAL, can be NONE, CLIENT_IP, CLIENT_IP_PROTO, or CLIENT_IP_PORT_PROTO.
514 #
515 # When the protocol is UDP, this field is not used.
516 "creationTimestamp": "A String", # [Output Only] Creation timestamp in RFC3339 text format.
517 "id": "A String", # [Output Only] The unique identifier for the resource. This identifier is defined by the server.
Jon Wayne Parrott692617a2017-01-06 09:58:29 -0800518 "cdnPolicy": { # Message containing Cloud CDN configuration for a backend service. # Cloud CDN configuration for this BackendService.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400519 "signedUrlKeyNames": [ # [Output Only] Names of the keys currently configured for Cloud CDN Signed URL on this backend service.
520 "A String",
521 ],
522 "signedUrlTtlSec": "A String", # Number of seconds up to which the response to a signed URL request will be cached in the CDN. After this time period, the Signed URL will be revalidated before being served. Defaults to 1hr (3600s). If this field is set, Cloud CDN will internally act as though all responses from this backend had a ?Cache-Control: public, max-age=[TTL]? header, regardless of any existing Cache-Control header. The actual headers served in responses will not be altered.
Jon Wayne Parrott692617a2017-01-06 09:58:29 -0800523 "cacheKeyPolicy": { # Message containing what to include in the cache key for a request for Cloud CDN. # The CacheKeyPolicy for this CdnPolicy.
524 "includeQueryString": True or False, # If true, include query string parameters in the cache key according to query_string_whitelist and query_string_blacklist. If neither is set, the entire query string will be included. If false, the query string will be excluded from the cache key entirely.
525 "includeHost": True or False, # If true, requests to different hosts will be cached separately.
526 "queryStringBlacklist": [ # Names of query string parameters to exclude in cache keys. All other parameters will be included. Either specify query_string_whitelist or query_string_blacklist, not both. '&' and '=' will be percent encoded and not treated as delimiters.
527 "A String",
528 ],
529 "queryStringWhitelist": [ # Names of query string parameters to include in cache keys. All other parameters will be excluded. Either specify query_string_whitelist or query_string_blacklist, not both. '&' and '=' will be percent encoded and not treated as delimiters.
530 "A String",
531 ],
532 "includeProtocol": True or False, # If true, http and https requests will be cached separately.
533 },
534 },
Sai Cheemalapatidf613972016-10-21 13:59:49 -0700535 "enableCDN": True or False, # If true, enable Cloud CDN for this BackendService.
536 #
537 # When the load balancing scheme is INTERNAL, this field is not used.
538 "affinityCookieTtlSec": 42, # Lifetime of cookies in seconds if session_affinity is GENERATED_COOKIE. If set to 0, the cookie is non-persistent and lasts only until the end of the browser session (or equivalent). The maximum allowed value for TTL is one day.
539 #
540 # When the load balancing scheme is INTERNAL, this field is not used.
541 "port": 42, # Deprecated in favor of portName. The TCP port to connect on the backend. The default value is 80.
542 #
543 # This cannot be used for internal load balancing.
544 "backends": [ # The list of backends that serve this BackendService.
545 { # Message containing information of one individual backend.
546 "group": "A String", # The fully-qualified URL of a zonal Instance Group resource. This instance group defines the list of instances that serve traffic. Member virtual machine instances from each instance group must live in the same zone as the instance group itself. No two backends in a backend service are allowed to use same Instance Group resource.
547 #
548 # Note that you must specify an Instance Group resource using the fully-qualified URL, rather than a partial URL.
549 #
550 # When the BackendService has load balancing scheme INTERNAL, the instance group must be in a zone within the same region as the BackendService.
551 "description": "A String", # An optional description of this resource. Provide this property when you create the resource.
552 "maxUtilization": 3.14, # Used when balancingMode is UTILIZATION. This ratio defines the CPU utilization target for the group. The default is 0.8. Valid range is [0.0, 1.0].
553 #
554 # This cannot be used for internal load balancing.
Jon Wayne Parrott692617a2017-01-06 09:58:29 -0800555 "failover": True or False, # This field designates whether this is a failover backend. More than one failover backend can be configured for a given BackendService.
Sai Cheemalapatidf613972016-10-21 13:59:49 -0700556 "maxRatePerInstance": 3.14, # The max requests per second (RPS) that a single backend instance can handle.This is used to calculate the capacity of the group. Can be used in either balancing mode. For RATE mode, either maxRate or maxRatePerInstance must be set.
557 #
558 # This cannot be used for internal load balancing.
559 "maxConnectionsPerInstance": 42, # The max number of simultaneous connections that a single backend instance can handle. This is used to calculate the capacity of the group. Can be used in either CONNECTION or UTILIZATION balancing modes. For CONNECTION mode, either maxConnections or maxConnectionsPerInstance must be set.
560 #
561 # This cannot be used for internal load balancing.
562 "capacityScaler": 3.14, # A multiplier applied to the group's maximum servicing capacity (based on UTILIZATION, RATE or CONNECTION). Default value is 1, which means the group will serve up to 100% of its configured capacity (depending on balancingMode). A setting of 0 means the group is completely drained, offering 0% of its available Capacity. Valid range is [0.0,1.0].
563 #
564 # This cannot be used for internal load balancing.
565 "maxRate": 42, # The max requests per second (RPS) of the group. Can be used with either RATE or UTILIZATION balancing modes, but required if RATE mode. For RATE mode, either maxRate or maxRatePerInstance must be set.
566 #
567 # This cannot be used for internal load balancing.
568 "maxConnections": 42, # The max number of simultaneous connections for the group. Can be used with either CONNECTION or UTILIZATION balancing modes. For CONNECTION mode, either maxConnections or maxConnectionsPerInstance must be set.
569 #
570 # This cannot be used for internal load balancing.
571 "balancingMode": "A String", # Specifies the balancing mode for this backend. For global HTTP(S) or TCP/SSL load balancing, the default is UTILIZATION. Valid values are UTILIZATION, RATE (for HTTP(S)) and CONNECTION (for TCP/SSL).
572 #
573 # This cannot be used for internal load balancing.
574 },
575 ],
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400576 "iap": { # Identity-Aware Proxy
Sai Cheemalapatidf613972016-10-21 13:59:49 -0700577 "oauth2ClientId": "A String",
578 "enabled": True or False,
579 "oauth2ClientSecret": "A String",
580 "oauth2ClientSecretSha256": "A String",
581 },
582 "description": "A String", # An optional description of this resource. Provide this property when you create the resource.
Jon Wayne Parrott692617a2017-01-06 09:58:29 -0800583 "customRequestHeaders": [ # Headers that the HTTP/S load balancer should add to proxied requests.
584 "A String",
585 ],
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400586 "securityPolicy": "A String", # [Output Only] The resource URL for the security policy associated with this backend service.
Sai Cheemalapatidf613972016-10-21 13:59:49 -0700587 "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 BackendService. An up-to-date fingerprint must be provided in order to update the BackendService.
588 "portName": "A String", # Name of backend port. The same name should appear in the instance groups referenced by this service. Required when the load balancing scheme is EXTERNAL.
589 #
590 # When the load balancing scheme is INTERNAL, this field is not used.
591 "kind": "compute#backendService", # [Output Only] Type of resource. Always compute#backendService for backend services.
592 "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.
593 "region": "A String", # [Output Only] URL of the region where the regional backend service resides. This field is not applicable to global backend services.
Jon Wayne Parrott692617a2017-01-06 09:58:29 -0800594 "timeoutSec": 42, # How many seconds to wait for the backend before considering it a failed request. Default is 30 seconds.
Sai Cheemalapatidf613972016-10-21 13:59:49 -0700595 "selfLink": "A String", # [Output Only] Server-defined URL for the resource.
596 }
597
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400598 requestId: string, begin_interface: MixerMutationRequestBuilder Request ID to support idempotency.
Sai Cheemalapatidf613972016-10-21 13:59:49 -0700599
600Returns:
601 An object of the form:
602
603 { # An Operation resource, used to manage asynchronous API requests.
604 "targetId": "A String", # [Output Only] The unique target ID, which identifies a specific incarnation of the target resource.
605 "clientOperationId": "A String", # [Output Only] Reserved for future use.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400606 "creationTimestamp": "A String", # [Deprecated] This field is deprecated.
Sai Cheemalapatidf613972016-10-21 13:59:49 -0700607 "id": "A String", # [Output Only] The unique identifier for the resource. This identifier is defined by the server.
608 "zone": "A String", # [Output Only] The URL of the zone where the operation resides. Only available when performing per-zone operations.
609 "insertTime": "A String", # [Output Only] The time that this operation was requested. This value is in RFC3339 text format.
610 "operationType": "A String", # [Output Only] The type of operation, such as insert, update, or delete, and so on.
611 "httpErrorMessage": "A String", # [Output Only] If the operation fails, this field contains the HTTP error message that was returned, such as NOT FOUND.
612 "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.
613 "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.
614 "statusMessage": "A String", # [Output Only] An optional textual description of the current status of the operation.
615 "status": "A String", # [Output Only] The status of the operation, which can be one of the following: PENDING, RUNNING, or DONE.
616 "description": "A String", # [Output Only] A textual description of the operation, which is set when the operation is created.
617 "warnings": [ # [Output Only] If warning messages are generated during processing of the operation, this field will be populated.
618 {
619 "message": "A String", # [Output Only] A human-readable description of the warning code.
620 "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.
621 "data": [ # [Output Only] Metadata about this warning in key: value format. For example:
622 # "data": [ { "key": "scope", "value": "zones/us-east1-d" }
623 {
624 "value": "A String", # [Output Only] A warning data value corresponding to the key.
625 "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).
626 },
627 ],
628 },
629 ],
630 "user": "A String", # [Output Only] User who requested the operation, for example: user@example.com.
631 "startTime": "A String", # [Output Only] The time that this operation was started by the server. This value is in RFC3339 text format.
632 "kind": "compute#operation", # [Output Only] Type of the resource. Always compute#operation for Operation resources.
633 "name": "A String", # [Output Only] Name of the resource.
634 "region": "A String", # [Output Only] The URL of the region where the operation resides. Only available when performing regional operations.
635 "error": { # [Output Only] If errors are generated during processing of the operation, this field will be populated.
636 "errors": [ # [Output Only] The array of errors encountered while processing this operation.
637 {
638 "message": "A String", # [Output Only] An optional, human-readable error message.
639 "code": "A String", # [Output Only] The error type identifier for this error.
640 "location": "A String", # [Output Only] Indicates the field in the request that caused the error. This property is optional.
641 },
642 ],
643 },
644 "endTime": "A String", # [Output Only] The time that this operation was completed. This value is in RFC3339 text format.
645 "selfLink": "A String", # [Output Only] Server-defined URL for the resource.
Jon Wayne Parrott692617a2017-01-06 09:58:29 -0800646 "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.
Sai Cheemalapatidf613972016-10-21 13:59:49 -0700647 }</pre>
648</div>
649
650<div class="method">
651 <code class="details" id="list">list(project, orderBy=None, maxResults=None, pageToken=None, filter=None)</code>
652 <pre>Retrieves the list of BackendService resources available to the specified project.
653
654Args:
655 project: string, Project ID for this request. (required)
656 orderBy: string, Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name.
657
658You 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.
659
660Currently, only sorting by name or creationTimestamp desc is supported.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400661 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)
Sai Cheemalapatidf613972016-10-21 13:59:49 -0700662 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.
663 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.
664
665The 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.
666
667For example, to filter for instances that do not have a name of example-instance, you would use filter=name ne example-instance.
668
669You 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.
670
671To 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.
672
673Returns:
674 An object of the form:
675
676 { # Contains a list of BackendService resources.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400677 "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.
Sai Cheemalapatidf613972016-10-21 13:59:49 -0700678 "items": [ # A list of BackendService resources.
679 { # A BackendService resource. This resource defines a group of backend virtual machines and their serving capacity.
Sai Cheemalapatidf613972016-10-21 13:59:49 -0700680 "connectionDraining": { # Message containing connection draining configuration.
681 "drainingTimeoutSec": 42, # Time for which instance will be drained (not accept new connections, but still work to finish started).
682 },
683 "protocol": "A String", # The protocol this BackendService uses to communicate with backends.
684 #
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400685 # Possible values are HTTP, HTTPS, TCP, and SSL. The default is HTTP.
Sai Cheemalapatidf613972016-10-21 13:59:49 -0700686 #
687 # For internal load balancing, the possible values are TCP and UDP, and the default is TCP.
688 "loadBalancingScheme": "A String",
689 "healthChecks": [ # The list of URLs to the HttpHealthCheck or HttpsHealthCheck resource for health checking this BackendService. Currently at most one health check can be specified, and a health check is required.
690 #
691 # For internal load balancing, a URL to a HealthCheck resource must be specified instead.
692 "A String",
693 ],
694 "sessionAffinity": "A String", # Type of session affinity to use. The default is NONE.
695 #
696 # When the load balancing scheme is EXTERNAL, can be NONE, CLIENT_IP, or GENERATED_COOKIE.
697 #
698 # When the load balancing scheme is INTERNAL, can be NONE, CLIENT_IP, CLIENT_IP_PROTO, or CLIENT_IP_PORT_PROTO.
699 #
700 # When the protocol is UDP, this field is not used.
701 "creationTimestamp": "A String", # [Output Only] Creation timestamp in RFC3339 text format.
702 "id": "A String", # [Output Only] The unique identifier for the resource. This identifier is defined by the server.
Jon Wayne Parrott692617a2017-01-06 09:58:29 -0800703 "cdnPolicy": { # Message containing Cloud CDN configuration for a backend service. # Cloud CDN configuration for this BackendService.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400704 "signedUrlKeyNames": [ # [Output Only] Names of the keys currently configured for Cloud CDN Signed URL on this backend service.
705 "A String",
706 ],
707 "signedUrlTtlSec": "A String", # Number of seconds up to which the response to a signed URL request will be cached in the CDN. After this time period, the Signed URL will be revalidated before being served. Defaults to 1hr (3600s). If this field is set, Cloud CDN will internally act as though all responses from this backend had a ?Cache-Control: public, max-age=[TTL]? header, regardless of any existing Cache-Control header. The actual headers served in responses will not be altered.
Jon Wayne Parrott692617a2017-01-06 09:58:29 -0800708 "cacheKeyPolicy": { # Message containing what to include in the cache key for a request for Cloud CDN. # The CacheKeyPolicy for this CdnPolicy.
709 "includeQueryString": True or False, # If true, include query string parameters in the cache key according to query_string_whitelist and query_string_blacklist. If neither is set, the entire query string will be included. If false, the query string will be excluded from the cache key entirely.
710 "includeHost": True or False, # If true, requests to different hosts will be cached separately.
711 "queryStringBlacklist": [ # Names of query string parameters to exclude in cache keys. All other parameters will be included. Either specify query_string_whitelist or query_string_blacklist, not both. '&' and '=' will be percent encoded and not treated as delimiters.
712 "A String",
713 ],
714 "queryStringWhitelist": [ # Names of query string parameters to include in cache keys. All other parameters will be excluded. Either specify query_string_whitelist or query_string_blacklist, not both. '&' and '=' will be percent encoded and not treated as delimiters.
715 "A String",
716 ],
717 "includeProtocol": True or False, # If true, http and https requests will be cached separately.
718 },
719 },
Sai Cheemalapatidf613972016-10-21 13:59:49 -0700720 "enableCDN": True or False, # If true, enable Cloud CDN for this BackendService.
721 #
722 # When the load balancing scheme is INTERNAL, this field is not used.
723 "affinityCookieTtlSec": 42, # Lifetime of cookies in seconds if session_affinity is GENERATED_COOKIE. If set to 0, the cookie is non-persistent and lasts only until the end of the browser session (or equivalent). The maximum allowed value for TTL is one day.
724 #
725 # When the load balancing scheme is INTERNAL, this field is not used.
726 "port": 42, # Deprecated in favor of portName. The TCP port to connect on the backend. The default value is 80.
727 #
728 # This cannot be used for internal load balancing.
729 "backends": [ # The list of backends that serve this BackendService.
730 { # Message containing information of one individual backend.
731 "group": "A String", # The fully-qualified URL of a zonal Instance Group resource. This instance group defines the list of instances that serve traffic. Member virtual machine instances from each instance group must live in the same zone as the instance group itself. No two backends in a backend service are allowed to use same Instance Group resource.
732 #
733 # Note that you must specify an Instance Group resource using the fully-qualified URL, rather than a partial URL.
734 #
735 # When the BackendService has load balancing scheme INTERNAL, the instance group must be in a zone within the same region as the BackendService.
736 "description": "A String", # An optional description of this resource. Provide this property when you create the resource.
737 "maxUtilization": 3.14, # Used when balancingMode is UTILIZATION. This ratio defines the CPU utilization target for the group. The default is 0.8. Valid range is [0.0, 1.0].
738 #
739 # This cannot be used for internal load balancing.
Jon Wayne Parrott692617a2017-01-06 09:58:29 -0800740 "failover": True or False, # This field designates whether this is a failover backend. More than one failover backend can be configured for a given BackendService.
Sai Cheemalapatidf613972016-10-21 13:59:49 -0700741 "maxRatePerInstance": 3.14, # The max requests per second (RPS) that a single backend instance can handle.This is used to calculate the capacity of the group. Can be used in either balancing mode. For RATE mode, either maxRate or maxRatePerInstance must be set.
742 #
743 # This cannot be used for internal load balancing.
744 "maxConnectionsPerInstance": 42, # The max number of simultaneous connections that a single backend instance can handle. This is used to calculate the capacity of the group. Can be used in either CONNECTION or UTILIZATION balancing modes. For CONNECTION mode, either maxConnections or maxConnectionsPerInstance must be set.
745 #
746 # This cannot be used for internal load balancing.
747 "capacityScaler": 3.14, # A multiplier applied to the group's maximum servicing capacity (based on UTILIZATION, RATE or CONNECTION). Default value is 1, which means the group will serve up to 100% of its configured capacity (depending on balancingMode). A setting of 0 means the group is completely drained, offering 0% of its available Capacity. Valid range is [0.0,1.0].
748 #
749 # This cannot be used for internal load balancing.
750 "maxRate": 42, # The max requests per second (RPS) of the group. Can be used with either RATE or UTILIZATION balancing modes, but required if RATE mode. For RATE mode, either maxRate or maxRatePerInstance must be set.
751 #
752 # This cannot be used for internal load balancing.
753 "maxConnections": 42, # The max number of simultaneous connections for the group. Can be used with either CONNECTION or UTILIZATION balancing modes. For CONNECTION mode, either maxConnections or maxConnectionsPerInstance must be set.
754 #
755 # This cannot be used for internal load balancing.
756 "balancingMode": "A String", # Specifies the balancing mode for this backend. For global HTTP(S) or TCP/SSL load balancing, the default is UTILIZATION. Valid values are UTILIZATION, RATE (for HTTP(S)) and CONNECTION (for TCP/SSL).
757 #
758 # This cannot be used for internal load balancing.
759 },
760 ],
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400761 "iap": { # Identity-Aware Proxy
Sai Cheemalapatidf613972016-10-21 13:59:49 -0700762 "oauth2ClientId": "A String",
763 "enabled": True or False,
764 "oauth2ClientSecret": "A String",
765 "oauth2ClientSecretSha256": "A String",
766 },
767 "description": "A String", # An optional description of this resource. Provide this property when you create the resource.
Jon Wayne Parrott692617a2017-01-06 09:58:29 -0800768 "customRequestHeaders": [ # Headers that the HTTP/S load balancer should add to proxied requests.
769 "A String",
770 ],
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400771 "securityPolicy": "A String", # [Output Only] The resource URL for the security policy associated with this backend service.
Sai Cheemalapatidf613972016-10-21 13:59:49 -0700772 "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 BackendService. An up-to-date fingerprint must be provided in order to update the BackendService.
773 "portName": "A String", # Name of backend port. The same name should appear in the instance groups referenced by this service. Required when the load balancing scheme is EXTERNAL.
774 #
775 # When the load balancing scheme is INTERNAL, this field is not used.
776 "kind": "compute#backendService", # [Output Only] Type of resource. Always compute#backendService for backend services.
777 "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.
778 "region": "A String", # [Output Only] URL of the region where the regional backend service resides. This field is not applicable to global backend services.
Jon Wayne Parrott692617a2017-01-06 09:58:29 -0800779 "timeoutSec": 42, # How many seconds to wait for the backend before considering it a failed request. Default is 30 seconds.
Sai Cheemalapatidf613972016-10-21 13:59:49 -0700780 "selfLink": "A String", # [Output Only] Server-defined URL for the resource.
781 },
782 ],
783 "kind": "compute#backendServiceList", # [Output Only] Type of resource. Always compute#backendServiceList for lists of backend services.
784 "id": "A String", # [Output Only] Unique identifier for the resource; defined by the server.
785 "selfLink": "A String", # [Output Only] Server-defined URL for this resource.
786 }</pre>
787</div>
788
789<div class="method">
790 <code class="details" id="list_next">list_next(previous_request, previous_response)</code>
791 <pre>Retrieves the next page of results.
792
793Args:
794 previous_request: The request for the previous page. (required)
795 previous_response: The response from the request for the previous page. (required)
796
797Returns:
798 A request object that you can call 'execute()' on to request the next
799 page. Returns None if there are no more items in the collection.
800 </pre>
801</div>
802
803<div class="method">
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400804 <code class="details" id="patch">patch(project, backendService, body, requestId=None)</code>
805 <pre>Patches the specified BackendService resource with the data included in the request. There are several restrictions and guidelines to keep in mind when updating a backend service. Read Restrictions and Guidelines for more information. This method supports patch semantics.
Sai Cheemalapatidf613972016-10-21 13:59:49 -0700806
807Args:
808 project: string, Project ID for this request. (required)
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400809 backendService: string, Name of the BackendService resource to patch. (required)
Sai Cheemalapatidf613972016-10-21 13:59:49 -0700810 body: object, The request body. (required)
811 The object takes the form of:
812
813{ # A BackendService resource. This resource defines a group of backend virtual machines and their serving capacity.
Sai Cheemalapatidf613972016-10-21 13:59:49 -0700814 "connectionDraining": { # Message containing connection draining configuration.
815 "drainingTimeoutSec": 42, # Time for which instance will be drained (not accept new connections, but still work to finish started).
816 },
817 "protocol": "A String", # The protocol this BackendService uses to communicate with backends.
818 #
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400819 # Possible values are HTTP, HTTPS, TCP, and SSL. The default is HTTP.
Sai Cheemalapatidf613972016-10-21 13:59:49 -0700820 #
821 # For internal load balancing, the possible values are TCP and UDP, and the default is TCP.
822 "loadBalancingScheme": "A String",
823 "healthChecks": [ # The list of URLs to the HttpHealthCheck or HttpsHealthCheck resource for health checking this BackendService. Currently at most one health check can be specified, and a health check is required.
824 #
825 # For internal load balancing, a URL to a HealthCheck resource must be specified instead.
826 "A String",
827 ],
828 "sessionAffinity": "A String", # Type of session affinity to use. The default is NONE.
829 #
830 # When the load balancing scheme is EXTERNAL, can be NONE, CLIENT_IP, or GENERATED_COOKIE.
831 #
832 # When the load balancing scheme is INTERNAL, can be NONE, CLIENT_IP, CLIENT_IP_PROTO, or CLIENT_IP_PORT_PROTO.
833 #
834 # When the protocol is UDP, this field is not used.
835 "creationTimestamp": "A String", # [Output Only] Creation timestamp in RFC3339 text format.
836 "id": "A String", # [Output Only] The unique identifier for the resource. This identifier is defined by the server.
Jon Wayne Parrott692617a2017-01-06 09:58:29 -0800837 "cdnPolicy": { # Message containing Cloud CDN configuration for a backend service. # Cloud CDN configuration for this BackendService.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400838 "signedUrlKeyNames": [ # [Output Only] Names of the keys currently configured for Cloud CDN Signed URL on this backend service.
839 "A String",
840 ],
841 "signedUrlTtlSec": "A String", # Number of seconds up to which the response to a signed URL request will be cached in the CDN. After this time period, the Signed URL will be revalidated before being served. Defaults to 1hr (3600s). If this field is set, Cloud CDN will internally act as though all responses from this backend had a ?Cache-Control: public, max-age=[TTL]? header, regardless of any existing Cache-Control header. The actual headers served in responses will not be altered.
Jon Wayne Parrott692617a2017-01-06 09:58:29 -0800842 "cacheKeyPolicy": { # Message containing what to include in the cache key for a request for Cloud CDN. # The CacheKeyPolicy for this CdnPolicy.
843 "includeQueryString": True or False, # If true, include query string parameters in the cache key according to query_string_whitelist and query_string_blacklist. If neither is set, the entire query string will be included. If false, the query string will be excluded from the cache key entirely.
844 "includeHost": True or False, # If true, requests to different hosts will be cached separately.
845 "queryStringBlacklist": [ # Names of query string parameters to exclude in cache keys. All other parameters will be included. Either specify query_string_whitelist or query_string_blacklist, not both. '&' and '=' will be percent encoded and not treated as delimiters.
846 "A String",
847 ],
848 "queryStringWhitelist": [ # Names of query string parameters to include in cache keys. All other parameters will be excluded. Either specify query_string_whitelist or query_string_blacklist, not both. '&' and '=' will be percent encoded and not treated as delimiters.
849 "A String",
850 ],
851 "includeProtocol": True or False, # If true, http and https requests will be cached separately.
852 },
853 },
Sai Cheemalapatidf613972016-10-21 13:59:49 -0700854 "enableCDN": True or False, # If true, enable Cloud CDN for this BackendService.
855 #
856 # When the load balancing scheme is INTERNAL, this field is not used.
857 "affinityCookieTtlSec": 42, # Lifetime of cookies in seconds if session_affinity is GENERATED_COOKIE. If set to 0, the cookie is non-persistent and lasts only until the end of the browser session (or equivalent). The maximum allowed value for TTL is one day.
858 #
859 # When the load balancing scheme is INTERNAL, this field is not used.
860 "port": 42, # Deprecated in favor of portName. The TCP port to connect on the backend. The default value is 80.
861 #
862 # This cannot be used for internal load balancing.
863 "backends": [ # The list of backends that serve this BackendService.
864 { # Message containing information of one individual backend.
865 "group": "A String", # The fully-qualified URL of a zonal Instance Group resource. This instance group defines the list of instances that serve traffic. Member virtual machine instances from each instance group must live in the same zone as the instance group itself. No two backends in a backend service are allowed to use same Instance Group resource.
866 #
867 # Note that you must specify an Instance Group resource using the fully-qualified URL, rather than a partial URL.
868 #
869 # When the BackendService has load balancing scheme INTERNAL, the instance group must be in a zone within the same region as the BackendService.
870 "description": "A String", # An optional description of this resource. Provide this property when you create the resource.
871 "maxUtilization": 3.14, # Used when balancingMode is UTILIZATION. This ratio defines the CPU utilization target for the group. The default is 0.8. Valid range is [0.0, 1.0].
872 #
873 # This cannot be used for internal load balancing.
Jon Wayne Parrott692617a2017-01-06 09:58:29 -0800874 "failover": True or False, # This field designates whether this is a failover backend. More than one failover backend can be configured for a given BackendService.
Sai Cheemalapatidf613972016-10-21 13:59:49 -0700875 "maxRatePerInstance": 3.14, # The max requests per second (RPS) that a single backend instance can handle.This is used to calculate the capacity of the group. Can be used in either balancing mode. For RATE mode, either maxRate or maxRatePerInstance must be set.
876 #
877 # This cannot be used for internal load balancing.
878 "maxConnectionsPerInstance": 42, # The max number of simultaneous connections that a single backend instance can handle. This is used to calculate the capacity of the group. Can be used in either CONNECTION or UTILIZATION balancing modes. For CONNECTION mode, either maxConnections or maxConnectionsPerInstance must be set.
879 #
880 # This cannot be used for internal load balancing.
881 "capacityScaler": 3.14, # A multiplier applied to the group's maximum servicing capacity (based on UTILIZATION, RATE or CONNECTION). Default value is 1, which means the group will serve up to 100% of its configured capacity (depending on balancingMode). A setting of 0 means the group is completely drained, offering 0% of its available Capacity. Valid range is [0.0,1.0].
882 #
883 # This cannot be used for internal load balancing.
884 "maxRate": 42, # The max requests per second (RPS) of the group. Can be used with either RATE or UTILIZATION balancing modes, but required if RATE mode. For RATE mode, either maxRate or maxRatePerInstance must be set.
885 #
886 # This cannot be used for internal load balancing.
887 "maxConnections": 42, # The max number of simultaneous connections for the group. Can be used with either CONNECTION or UTILIZATION balancing modes. For CONNECTION mode, either maxConnections or maxConnectionsPerInstance must be set.
888 #
889 # This cannot be used for internal load balancing.
890 "balancingMode": "A String", # Specifies the balancing mode for this backend. For global HTTP(S) or TCP/SSL load balancing, the default is UTILIZATION. Valid values are UTILIZATION, RATE (for HTTP(S)) and CONNECTION (for TCP/SSL).
891 #
892 # This cannot be used for internal load balancing.
893 },
894 ],
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400895 "iap": { # Identity-Aware Proxy
Sai Cheemalapatidf613972016-10-21 13:59:49 -0700896 "oauth2ClientId": "A String",
897 "enabled": True or False,
898 "oauth2ClientSecret": "A String",
899 "oauth2ClientSecretSha256": "A String",
900 },
901 "description": "A String", # An optional description of this resource. Provide this property when you create the resource.
Jon Wayne Parrott692617a2017-01-06 09:58:29 -0800902 "customRequestHeaders": [ # Headers that the HTTP/S load balancer should add to proxied requests.
903 "A String",
904 ],
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400905 "securityPolicy": "A String", # [Output Only] The resource URL for the security policy associated with this backend service.
Sai Cheemalapatidf613972016-10-21 13:59:49 -0700906 "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 BackendService. An up-to-date fingerprint must be provided in order to update the BackendService.
907 "portName": "A String", # Name of backend port. The same name should appear in the instance groups referenced by this service. Required when the load balancing scheme is EXTERNAL.
908 #
909 # When the load balancing scheme is INTERNAL, this field is not used.
910 "kind": "compute#backendService", # [Output Only] Type of resource. Always compute#backendService for backend services.
911 "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.
912 "region": "A String", # [Output Only] URL of the region where the regional backend service resides. This field is not applicable to global backend services.
Jon Wayne Parrott692617a2017-01-06 09:58:29 -0800913 "timeoutSec": 42, # How many seconds to wait for the backend before considering it a failed request. Default is 30 seconds.
Sai Cheemalapatidf613972016-10-21 13:59:49 -0700914 "selfLink": "A String", # [Output Only] Server-defined URL for the resource.
915 }
916
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400917 requestId: string, begin_interface: MixerMutationRequestBuilder Request ID to support idempotency.
Sai Cheemalapatidf613972016-10-21 13:59:49 -0700918
919Returns:
920 An object of the form:
921
922 { # An Operation resource, used to manage asynchronous API requests.
923 "targetId": "A String", # [Output Only] The unique target ID, which identifies a specific incarnation of the target resource.
924 "clientOperationId": "A String", # [Output Only] Reserved for future use.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400925 "creationTimestamp": "A String", # [Deprecated] This field is deprecated.
Sai Cheemalapatidf613972016-10-21 13:59:49 -0700926 "id": "A String", # [Output Only] The unique identifier for the resource. This identifier is defined by the server.
927 "zone": "A String", # [Output Only] The URL of the zone where the operation resides. Only available when performing per-zone operations.
928 "insertTime": "A String", # [Output Only] The time that this operation was requested. This value is in RFC3339 text format.
929 "operationType": "A String", # [Output Only] The type of operation, such as insert, update, or delete, and so on.
930 "httpErrorMessage": "A String", # [Output Only] If the operation fails, this field contains the HTTP error message that was returned, such as NOT FOUND.
931 "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.
932 "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.
933 "statusMessage": "A String", # [Output Only] An optional textual description of the current status of the operation.
934 "status": "A String", # [Output Only] The status of the operation, which can be one of the following: PENDING, RUNNING, or DONE.
935 "description": "A String", # [Output Only] A textual description of the operation, which is set when the operation is created.
936 "warnings": [ # [Output Only] If warning messages are generated during processing of the operation, this field will be populated.
937 {
938 "message": "A String", # [Output Only] A human-readable description of the warning code.
939 "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.
940 "data": [ # [Output Only] Metadata about this warning in key: value format. For example:
941 # "data": [ { "key": "scope", "value": "zones/us-east1-d" }
942 {
943 "value": "A String", # [Output Only] A warning data value corresponding to the key.
944 "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).
945 },
946 ],
947 },
948 ],
949 "user": "A String", # [Output Only] User who requested the operation, for example: user@example.com.
950 "startTime": "A String", # [Output Only] The time that this operation was started by the server. This value is in RFC3339 text format.
951 "kind": "compute#operation", # [Output Only] Type of the resource. Always compute#operation for Operation resources.
952 "name": "A String", # [Output Only] Name of the resource.
953 "region": "A String", # [Output Only] The URL of the region where the operation resides. Only available when performing regional operations.
954 "error": { # [Output Only] If errors are generated during processing of the operation, this field will be populated.
955 "errors": [ # [Output Only] The array of errors encountered while processing this operation.
956 {
957 "message": "A String", # [Output Only] An optional, human-readable error message.
958 "code": "A String", # [Output Only] The error type identifier for this error.
959 "location": "A String", # [Output Only] Indicates the field in the request that caused the error. This property is optional.
960 },
961 ],
962 },
963 "endTime": "A String", # [Output Only] The time that this operation was completed. This value is in RFC3339 text format.
964 "selfLink": "A String", # [Output Only] Server-defined URL for the resource.
Jon Wayne Parrott692617a2017-01-06 09:58:29 -0800965 "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.
Sai Cheemalapatidf613972016-10-21 13:59:49 -0700966 }</pre>
967</div>
968
969<div class="method">
970 <code class="details" id="testIamPermissions">testIamPermissions(project, resource, body)</code>
971 <pre>Returns permissions that a caller has on the specified resource.
972
973Args:
974 project: string, Project ID for this request. (required)
975 resource: string, Name of the resource for this request. (required)
976 body: object, The request body. (required)
977 The object takes the form of:
978
979{
980 "permissions": [ # The set of permissions to check for the 'resource'. Permissions with wildcards (such as '*' or 'storage.*') are not allowed.
981 "A String",
982 ],
983 }
984
985
986Returns:
987 An object of the form:
988
989 {
990 "permissions": [ # A subset of `TestPermissionsRequest.permissions` that the caller is allowed.
991 "A String",
992 ],
993 }</pre>
994</div>
995
996<div class="method">
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -0400997 <code class="details" id="update">update(project, backendService, body, requestId=None)</code>
Sai Cheemalapatidf613972016-10-21 13:59:49 -0700998 <pre>Updates the specified BackendService resource with the data included in the request. There are several restrictions and guidelines to keep in mind when updating a backend service. Read Restrictions and Guidelines for more information.
999
1000Args:
1001 project: string, Project ID for this request. (required)
1002 backendService: string, Name of the BackendService resource to update. (required)
1003 body: object, The request body. (required)
1004 The object takes the form of:
1005
1006{ # A BackendService resource. This resource defines a group of backend virtual machines and their serving capacity.
Sai Cheemalapatidf613972016-10-21 13:59:49 -07001007 "connectionDraining": { # Message containing connection draining configuration.
1008 "drainingTimeoutSec": 42, # Time for which instance will be drained (not accept new connections, but still work to finish started).
1009 },
1010 "protocol": "A String", # The protocol this BackendService uses to communicate with backends.
1011 #
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -04001012 # Possible values are HTTP, HTTPS, TCP, and SSL. The default is HTTP.
Sai Cheemalapatidf613972016-10-21 13:59:49 -07001013 #
1014 # For internal load balancing, the possible values are TCP and UDP, and the default is TCP.
1015 "loadBalancingScheme": "A String",
1016 "healthChecks": [ # The list of URLs to the HttpHealthCheck or HttpsHealthCheck resource for health checking this BackendService. Currently at most one health check can be specified, and a health check is required.
1017 #
1018 # For internal load balancing, a URL to a HealthCheck resource must be specified instead.
1019 "A String",
1020 ],
1021 "sessionAffinity": "A String", # Type of session affinity to use. The default is NONE.
1022 #
1023 # When the load balancing scheme is EXTERNAL, can be NONE, CLIENT_IP, or GENERATED_COOKIE.
1024 #
1025 # When the load balancing scheme is INTERNAL, can be NONE, CLIENT_IP, CLIENT_IP_PROTO, or CLIENT_IP_PORT_PROTO.
1026 #
1027 # When the protocol is UDP, this field is not used.
1028 "creationTimestamp": "A String", # [Output Only] Creation timestamp in RFC3339 text format.
1029 "id": "A String", # [Output Only] The unique identifier for the resource. This identifier is defined by the server.
Jon Wayne Parrott692617a2017-01-06 09:58:29 -08001030 "cdnPolicy": { # Message containing Cloud CDN configuration for a backend service. # Cloud CDN configuration for this BackendService.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -04001031 "signedUrlKeyNames": [ # [Output Only] Names of the keys currently configured for Cloud CDN Signed URL on this backend service.
1032 "A String",
1033 ],
1034 "signedUrlTtlSec": "A String", # Number of seconds up to which the response to a signed URL request will be cached in the CDN. After this time period, the Signed URL will be revalidated before being served. Defaults to 1hr (3600s). If this field is set, Cloud CDN will internally act as though all responses from this backend had a ?Cache-Control: public, max-age=[TTL]? header, regardless of any existing Cache-Control header. The actual headers served in responses will not be altered.
Jon Wayne Parrott692617a2017-01-06 09:58:29 -08001035 "cacheKeyPolicy": { # Message containing what to include in the cache key for a request for Cloud CDN. # The CacheKeyPolicy for this CdnPolicy.
1036 "includeQueryString": True or False, # If true, include query string parameters in the cache key according to query_string_whitelist and query_string_blacklist. If neither is set, the entire query string will be included. If false, the query string will be excluded from the cache key entirely.
1037 "includeHost": True or False, # If true, requests to different hosts will be cached separately.
1038 "queryStringBlacklist": [ # Names of query string parameters to exclude in cache keys. All other parameters will be included. Either specify query_string_whitelist or query_string_blacklist, not both. '&' and '=' will be percent encoded and not treated as delimiters.
1039 "A String",
1040 ],
1041 "queryStringWhitelist": [ # Names of query string parameters to include in cache keys. All other parameters will be excluded. Either specify query_string_whitelist or query_string_blacklist, not both. '&' and '=' will be percent encoded and not treated as delimiters.
1042 "A String",
1043 ],
1044 "includeProtocol": True or False, # If true, http and https requests will be cached separately.
1045 },
1046 },
Sai Cheemalapatidf613972016-10-21 13:59:49 -07001047 "enableCDN": True or False, # If true, enable Cloud CDN for this BackendService.
1048 #
1049 # When the load balancing scheme is INTERNAL, this field is not used.
1050 "affinityCookieTtlSec": 42, # Lifetime of cookies in seconds if session_affinity is GENERATED_COOKIE. If set to 0, the cookie is non-persistent and lasts only until the end of the browser session (or equivalent). The maximum allowed value for TTL is one day.
1051 #
1052 # When the load balancing scheme is INTERNAL, this field is not used.
1053 "port": 42, # Deprecated in favor of portName. The TCP port to connect on the backend. The default value is 80.
1054 #
1055 # This cannot be used for internal load balancing.
1056 "backends": [ # The list of backends that serve this BackendService.
1057 { # Message containing information of one individual backend.
1058 "group": "A String", # The fully-qualified URL of a zonal Instance Group resource. This instance group defines the list of instances that serve traffic. Member virtual machine instances from each instance group must live in the same zone as the instance group itself. No two backends in a backend service are allowed to use same Instance Group resource.
1059 #
1060 # Note that you must specify an Instance Group resource using the fully-qualified URL, rather than a partial URL.
1061 #
1062 # When the BackendService has load balancing scheme INTERNAL, the instance group must be in a zone within the same region as the BackendService.
1063 "description": "A String", # An optional description of this resource. Provide this property when you create the resource.
1064 "maxUtilization": 3.14, # Used when balancingMode is UTILIZATION. This ratio defines the CPU utilization target for the group. The default is 0.8. Valid range is [0.0, 1.0].
1065 #
1066 # This cannot be used for internal load balancing.
Jon Wayne Parrott692617a2017-01-06 09:58:29 -08001067 "failover": True or False, # This field designates whether this is a failover backend. More than one failover backend can be configured for a given BackendService.
Sai Cheemalapatidf613972016-10-21 13:59:49 -07001068 "maxRatePerInstance": 3.14, # The max requests per second (RPS) that a single backend instance can handle.This is used to calculate the capacity of the group. Can be used in either balancing mode. For RATE mode, either maxRate or maxRatePerInstance must be set.
1069 #
1070 # This cannot be used for internal load balancing.
1071 "maxConnectionsPerInstance": 42, # The max number of simultaneous connections that a single backend instance can handle. This is used to calculate the capacity of the group. Can be used in either CONNECTION or UTILIZATION balancing modes. For CONNECTION mode, either maxConnections or maxConnectionsPerInstance must be set.
1072 #
1073 # This cannot be used for internal load balancing.
1074 "capacityScaler": 3.14, # A multiplier applied to the group's maximum servicing capacity (based on UTILIZATION, RATE or CONNECTION). Default value is 1, which means the group will serve up to 100% of its configured capacity (depending on balancingMode). A setting of 0 means the group is completely drained, offering 0% of its available Capacity. Valid range is [0.0,1.0].
1075 #
1076 # This cannot be used for internal load balancing.
1077 "maxRate": 42, # The max requests per second (RPS) of the group. Can be used with either RATE or UTILIZATION balancing modes, but required if RATE mode. For RATE mode, either maxRate or maxRatePerInstance must be set.
1078 #
1079 # This cannot be used for internal load balancing.
1080 "maxConnections": 42, # The max number of simultaneous connections for the group. Can be used with either CONNECTION or UTILIZATION balancing modes. For CONNECTION mode, either maxConnections or maxConnectionsPerInstance must be set.
1081 #
1082 # This cannot be used for internal load balancing.
1083 "balancingMode": "A String", # Specifies the balancing mode for this backend. For global HTTP(S) or TCP/SSL load balancing, the default is UTILIZATION. Valid values are UTILIZATION, RATE (for HTTP(S)) and CONNECTION (for TCP/SSL).
1084 #
1085 # This cannot be used for internal load balancing.
1086 },
1087 ],
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -04001088 "iap": { # Identity-Aware Proxy
Sai Cheemalapatidf613972016-10-21 13:59:49 -07001089 "oauth2ClientId": "A String",
1090 "enabled": True or False,
1091 "oauth2ClientSecret": "A String",
1092 "oauth2ClientSecretSha256": "A String",
1093 },
1094 "description": "A String", # An optional description of this resource. Provide this property when you create the resource.
Jon Wayne Parrott692617a2017-01-06 09:58:29 -08001095 "customRequestHeaders": [ # Headers that the HTTP/S load balancer should add to proxied requests.
1096 "A String",
1097 ],
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -04001098 "securityPolicy": "A String", # [Output Only] The resource URL for the security policy associated with this backend service.
Sai Cheemalapatidf613972016-10-21 13:59:49 -07001099 "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 BackendService. An up-to-date fingerprint must be provided in order to update the BackendService.
1100 "portName": "A String", # Name of backend port. The same name should appear in the instance groups referenced by this service. Required when the load balancing scheme is EXTERNAL.
1101 #
1102 # When the load balancing scheme is INTERNAL, this field is not used.
1103 "kind": "compute#backendService", # [Output Only] Type of resource. Always compute#backendService for backend services.
1104 "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.
1105 "region": "A String", # [Output Only] URL of the region where the regional backend service resides. This field is not applicable to global backend services.
Jon Wayne Parrott692617a2017-01-06 09:58:29 -08001106 "timeoutSec": 42, # How many seconds to wait for the backend before considering it a failed request. Default is 30 seconds.
Sai Cheemalapatidf613972016-10-21 13:59:49 -07001107 "selfLink": "A String", # [Output Only] Server-defined URL for the resource.
1108 }
1109
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -04001110 requestId: string, begin_interface: MixerMutationRequestBuilder Request ID to support idempotency.
Sai Cheemalapatidf613972016-10-21 13:59:49 -07001111
1112Returns:
1113 An object of the form:
1114
1115 { # An Operation resource, used to manage asynchronous API requests.
1116 "targetId": "A String", # [Output Only] The unique target ID, which identifies a specific incarnation of the target resource.
1117 "clientOperationId": "A String", # [Output Only] Reserved for future use.
Sai Cheemalapatic30d2b52017-03-13 12:12:03 -04001118 "creationTimestamp": "A String", # [Deprecated] This field is deprecated.
Sai Cheemalapatidf613972016-10-21 13:59:49 -07001119 "id": "A String", # [Output Only] The unique identifier for the resource. This identifier is defined by the server.
1120 "zone": "A String", # [Output Only] The URL of the zone where the operation resides. Only available when performing per-zone operations.
1121 "insertTime": "A String", # [Output Only] The time that this operation was requested. This value is in RFC3339 text format.
1122 "operationType": "A String", # [Output Only] The type of operation, such as insert, update, or delete, and so on.
1123 "httpErrorMessage": "A String", # [Output Only] If the operation fails, this field contains the HTTP error message that was returned, such as NOT FOUND.
1124 "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.
1125 "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.
1126 "statusMessage": "A String", # [Output Only] An optional textual description of the current status of the operation.
1127 "status": "A String", # [Output Only] The status of the operation, which can be one of the following: PENDING, RUNNING, or DONE.
1128 "description": "A String", # [Output Only] A textual description of the operation, which is set when the operation is created.
1129 "warnings": [ # [Output Only] If warning messages are generated during processing of the operation, this field will be populated.
1130 {
1131 "message": "A String", # [Output Only] A human-readable description of the warning code.
1132 "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.
1133 "data": [ # [Output Only] Metadata about this warning in key: value format. For example:
1134 # "data": [ { "key": "scope", "value": "zones/us-east1-d" }
1135 {
1136 "value": "A String", # [Output Only] A warning data value corresponding to the key.
1137 "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).
1138 },
1139 ],
1140 },
1141 ],
1142 "user": "A String", # [Output Only] User who requested the operation, for example: user@example.com.
1143 "startTime": "A String", # [Output Only] The time that this operation was started by the server. This value is in RFC3339 text format.
1144 "kind": "compute#operation", # [Output Only] Type of the resource. Always compute#operation for Operation resources.
1145 "name": "A String", # [Output Only] Name of the resource.
1146 "region": "A String", # [Output Only] The URL of the region where the operation resides. Only available when performing regional operations.
1147 "error": { # [Output Only] If errors are generated during processing of the operation, this field will be populated.
1148 "errors": [ # [Output Only] The array of errors encountered while processing this operation.
1149 {
1150 "message": "A String", # [Output Only] An optional, human-readable error message.
1151 "code": "A String", # [Output Only] The error type identifier for this error.
1152 "location": "A String", # [Output Only] Indicates the field in the request that caused the error. This property is optional.
1153 },
1154 ],
1155 },
1156 "endTime": "A String", # [Output Only] The time that this operation was completed. This value is in RFC3339 text format.
1157 "selfLink": "A String", # [Output Only] Server-defined URL for the resource.
Jon Wayne Parrott692617a2017-01-06 09:58:29 -08001158 "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.
Sai Cheemalapatidf613972016-10-21 13:59:49 -07001159 }</pre>
1160</div>
1161
1162</body></html>