1<html><body> 2<style> 3 4body, h1, h2, h3, div, span, p, pre, a { 5 margin: 0; 6 padding: 0; 7 border: 0; 8 font-weight: inherit; 9 font-style: inherit; 10 font-size: 100%; 11 font-family: inherit; 12 vertical-align: baseline; 13} 14 15body { 16 font-size: 13px; 17 padding: 1em; 18} 19 20h1 { 21 font-size: 26px; 22 margin-bottom: 1em; 23} 24 25h2 { 26 font-size: 24px; 27 margin-bottom: 1em; 28} 29 30h3 { 31 font-size: 20px; 32 margin-bottom: 1em; 33 margin-top: 1em; 34} 35 36pre, code { 37 line-height: 1.5; 38 font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace; 39} 40 41pre { 42 margin-top: 0.5em; 43} 44 45h1, h2, h3, p { 46 font-family: Arial, sans serif; 47} 48 49h1, h2, h3 { 50 border-bottom: solid #CCC 1px; 51} 52 53.toc_element { 54 margin-top: 0.5em; 55} 56 57.firstline { 58 margin-left: 2 em; 59} 60 61.method { 62 margin-top: 1em; 63 border: solid 1px #CCC; 64 padding: 1em; 65 background: #EEE; 66} 67 68.details { 69 font-weight: bold; 70 font-size: 14px; 71} 72 73</style> 74 75<h1><a href="compute_v1.html">Compute Engine API</a> . <a href="compute_v1.regionBackendServices.html">regionBackendServices</a></h1> 76<h2>Instance Methods</h2> 77<p class="toc_element"> 78 <code><a href="#delete">delete(project, region, backendService)</a></code></p> 79<p class="firstline">Deletes the specified regional BackendService resource.</p> 80<p class="toc_element"> 81 <code><a href="#get">get(project, region, backendService)</a></code></p> 82<p class="firstline">Returns the specified regional BackendService resource.</p> 83<p class="toc_element"> 84 <code><a href="#getHealth">getHealth(project, region, backendService, body)</a></code></p> 85<p class="firstline">Gets the most recent health check results for this regional BackendService.</p> 86<p class="toc_element"> 87 <code><a href="#insert">insert(project, region, body)</a></code></p> 88<p class="firstline">Creates a regional 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 regional backend service. Read Restrictions and Guidelines for more information.</p> 89<p class="toc_element"> 90 <code><a href="#list">list(project, region, orderBy=None, maxResults=None, pageToken=None, filter=None)</a></code></p> 91<p class="firstline">Retrieves the list of regional BackendService resources available to the specified project in the given region.</p> 92<p class="toc_element"> 93 <code><a href="#list_next">list_next(previous_request, previous_response)</a></code></p> 94<p class="firstline">Retrieves the next page of results.</p> 95<p class="toc_element"> 96 <code><a href="#patch">patch(project, region, backendService, body)</a></code></p> 97<p class="firstline">Updates the specified regional 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> 98<p class="toc_element"> 99 <code><a href="#update">update(project, region, backendService, body)</a></code></p> 100<p class="firstline">Updates the specified regional 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> 101<h3>Method Details</h3> 102<div class="method"> 103 <code class="details" id="delete">delete(project, region, backendService)</code> 104 <pre>Deletes the specified regional BackendService resource. 105 106Args: 107 project: string, Project ID for this request. (required) 108 region: string, Name of the region scoping this request. (required) 109 backendService: string, Name of the BackendService resource to delete. (required) 110 111Returns: 112 An object of the form: 113 114 { # An Operation resource, used to manage asynchronous API requests. 115 "targetId": "A String", # [Output Only] The unique target ID, which identifies a specific incarnation of the target resource. 116 "clientOperationId": "A String", # [Output Only] Reserved for future use. 117 "creationTimestamp": "A String", # [Deprecated] This field is deprecated. 118 "id": "A String", # [Output Only] The unique identifier for the resource. This identifier is defined by the server. 119 "zone": "A String", # [Output Only] The URL of the zone where the operation resides. Only available when performing per-zone operations. 120 "insertTime": "A String", # [Output Only] The time that this operation was requested. This value is in RFC3339 text format. 121 "operationType": "A String", # [Output Only] The type of operation, such as insert, update, or delete, and so on. 122 "httpErrorMessage": "A String", # [Output Only] If the operation fails, this field contains the HTTP error message that was returned, such as NOT FOUND. 123 "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. 124 "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. 125 "statusMessage": "A String", # [Output Only] An optional textual description of the current status of the operation. 126 "status": "A String", # [Output Only] The status of the operation, which can be one of the following: PENDING, RUNNING, or DONE. 127 "description": "A String", # [Output Only] A textual description of the operation, which is set when the operation is created. 128 "warnings": [ # [Output Only] If warning messages are generated during processing of the operation, this field will be populated. 129 { 130 "message": "A String", # [Output Only] A human-readable description of the warning code. 131 "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. 132 "data": [ # [Output Only] Metadata about this warning in key: value format. For example: 133 # "data": [ { "key": "scope", "value": "zones/us-east1-d" } 134 { 135 "value": "A String", # [Output Only] A warning data value corresponding to the key. 136 "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). 137 }, 138 ], 139 }, 140 ], 141 "user": "A String", # [Output Only] User who requested the operation, for example: user@example.com. 142 "startTime": "A String", # [Output Only] The time that this operation was started by the server. This value is in RFC3339 text format. 143 "kind": "compute#operation", # [Output Only] Type of the resource. Always compute#operation for Operation resources. 144 "name": "A String", # [Output Only] Name of the resource. 145 "region": "A String", # [Output Only] The URL of the region where the operation resides. Only available when performing regional operations. 146 "error": { # [Output Only] If errors are generated during processing of the operation, this field will be populated. 147 "errors": [ # [Output Only] The array of errors encountered while processing this operation. 148 { 149 "message": "A String", # [Output Only] An optional, human-readable error message. 150 "code": "A String", # [Output Only] The error type identifier for this error. 151 "location": "A String", # [Output Only] Indicates the field in the request that caused the error. This property is optional. 152 }, 153 ], 154 }, 155 "endTime": "A String", # [Output Only] The time that this operation was completed. This value is in RFC3339 text format. 156 "selfLink": "A String", # [Output Only] Server-defined URL for the resource. 157 "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. 158 }</pre> 159</div> 160 161<div class="method"> 162 <code class="details" id="get">get(project, region, backendService)</code> 163 <pre>Returns the specified regional BackendService resource. 164 165Args: 166 project: string, Project ID for this request. (required) 167 region: string, Name of the region scoping this request. (required) 168 backendService: string, Name of the BackendService resource to return. (required) 169 170Returns: 171 An object of the form: 172 173 { # A BackendService resource. This resource defines a group of backend virtual machines and their serving capacity. 174 "connectionDraining": { # Message containing connection draining configuration. 175 "drainingTimeoutSec": 42, # Time for which instance will be drained (not accept new connections, but still work to finish started). 176 }, 177 "kind": "compute#backendService", # [Output Only] Type of resource. Always compute#backendService for backend services. 178 "protocol": "A String", # The protocol this BackendService uses to communicate with backends. 179 # 180 # Possible values are HTTP, HTTPS, TCP, and SSL. The default is HTTP. 181 # 182 # For internal load balancing, the possible values are TCP and UDP, and the default is TCP. 183 "description": "A String", # An optional description of this resource. Provide this property when you create the resource. 184 "cdnPolicy": { # Message containing Cloud CDN configuration for a backend service. # Cloud CDN configuration for this BackendService. 185 "cacheKeyPolicy": { # Message containing what to include in the cache key for a request for Cloud CDN. # The CacheKeyPolicy for this CdnPolicy. 186 "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. 187 "includeHost": True or False, # If true, requests to different hosts will be cached separately. 188 "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. 189 "A String", 190 ], 191 "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. 192 "A String", 193 ], 194 "includeProtocol": True or False, # If true, http and https requests will be cached separately. 195 }, 196 }, 197 "enableCDN": True or False, # If true, enable Cloud CDN for this BackendService. 198 # 199 # When the load balancing scheme is INTERNAL, this field is not used. 200 "region": "A String", # [Output Only] URL of the region where the regional backend service resides. This field is not applicable to global backend services. 201 "loadBalancingScheme": "A String", 202 "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. 203 # 204 # When the load balancing scheme is INTERNAL, this field is not used. 205 "id": "A String", # [Output Only] The unique identifier for the resource. This identifier is defined by the server. 206 "port": 42, # Deprecated in favor of portName. The TCP port to connect on the backend. The default value is 80. 207 # 208 # This cannot be used for internal load balancing. 209 "backends": [ # The list of backends that serve this BackendService. 210 { # Message containing information of one individual backend. 211 "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. 212 # 213 # Note that you must specify an Instance Group resource using the fully-qualified URL, rather than a partial URL. 214 # 215 # When the BackendService has load balancing scheme INTERNAL, the instance group must be in a zone within the same region as the BackendService. 216 "description": "A String", # An optional description of this resource. Provide this property when you create the resource. 217 "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]. 218 # 219 # This cannot be used for internal load balancing. 220 "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. 221 # 222 # This cannot be used for internal load balancing. 223 "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. 224 # 225 # This cannot be used for internal load balancing. 226 "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]. 227 # 228 # This cannot be used for internal load balancing. 229 "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. 230 # 231 # This cannot be used for internal load balancing. 232 "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. 233 # 234 # This cannot be used for internal load balancing. 235 "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). 236 # 237 # This cannot be used for internal load balancing. 238 }, 239 ], 240 "timeoutSec": 42, # How many seconds to wait for the backend before considering it a failed request. Default is 30 seconds. 241 "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. 242 "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. 243 # 244 # When the load balancing scheme is INTERNAL, this field is not used. 245 "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. 246 # 247 # For internal load balancing, a URL to a HealthCheck resource must be specified instead. 248 "A String", 249 ], 250 "sessionAffinity": "A String", # Type of session affinity to use. The default is NONE. 251 # 252 # When the load balancing scheme is EXTERNAL, can be NONE, CLIENT_IP, or GENERATED_COOKIE. 253 # 254 # When the load balancing scheme is INTERNAL, can be NONE, CLIENT_IP, CLIENT_IP_PROTO, or CLIENT_IP_PORT_PROTO. 255 # 256 # When the protocol is UDP, this field is not used. 257 "creationTimestamp": "A String", # [Output Only] Creation timestamp in RFC3339 text format. 258 "iap": { # Identity-Aware Proxy 259 "oauth2ClientId": "A String", 260 "enabled": True or False, 261 "oauth2ClientSecret": "A String", 262 "oauth2ClientSecretSha256": "A String", # [Output Only] SHA256 hash value for the field oauth2_client_secret above. 263 }, 264 "selfLink": "A String", # [Output Only] Server-defined URL for the resource. 265 "name": "A String", # Name of the resource. Provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. 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. 266 }</pre> 267</div> 268 269<div class="method"> 270 <code class="details" id="getHealth">getHealth(project, region, backendService, body)</code> 271 <pre>Gets the most recent health check results for this regional BackendService. 272 273Args: 274 project: string, A parameter (required) 275 region: string, Name of the region scoping this request. (required) 276 backendService: string, Name of the BackendService resource to which the queried instance belongs. (required) 277 body: object, The request body. (required) 278 The object takes the form of: 279 280{ 281 "group": "A String", # A URI referencing one of the instance groups listed in the backend service. 282 } 283 284 285Returns: 286 An object of the form: 287 288 { 289 "kind": "compute#backendServiceGroupHealth", # [Output Only] Type of resource. Always compute#backendServiceGroupHealth for the health of backend services. 290 "healthStatus": [ 291 { 292 "instance": "A String", # URL of the instance resource. 293 "healthState": "A String", # Health state of the instance. 294 "ipAddress": "A String", # The IP address represented by this resource. 295 "port": 42, # The port on the instance. 296 }, 297 ], 298 }</pre> 299</div> 300 301<div class="method"> 302 <code class="details" id="insert">insert(project, region, body)</code> 303 <pre>Creates a regional 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 regional backend service. Read Restrictions and Guidelines for more information. 304 305Args: 306 project: string, Project ID for this request. (required) 307 region: string, Name of the region scoping this request. (required) 308 body: object, The request body. (required) 309 The object takes the form of: 310 311{ # A BackendService resource. This resource defines a group of backend virtual machines and their serving capacity. 312 "connectionDraining": { # Message containing connection draining configuration. 313 "drainingTimeoutSec": 42, # Time for which instance will be drained (not accept new connections, but still work to finish started). 314 }, 315 "kind": "compute#backendService", # [Output Only] Type of resource. Always compute#backendService for backend services. 316 "protocol": "A String", # The protocol this BackendService uses to communicate with backends. 317 # 318 # Possible values are HTTP, HTTPS, TCP, and SSL. The default is HTTP. 319 # 320 # For internal load balancing, the possible values are TCP and UDP, and the default is TCP. 321 "description": "A String", # An optional description of this resource. Provide this property when you create the resource. 322 "cdnPolicy": { # Message containing Cloud CDN configuration for a backend service. # Cloud CDN configuration for this BackendService. 323 "cacheKeyPolicy": { # Message containing what to include in the cache key for a request for Cloud CDN. # The CacheKeyPolicy for this CdnPolicy. 324 "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. 325 "includeHost": True or False, # If true, requests to different hosts will be cached separately. 326 "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. 327 "A String", 328 ], 329 "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. 330 "A String", 331 ], 332 "includeProtocol": True or False, # If true, http and https requests will be cached separately. 333 }, 334 }, 335 "enableCDN": True or False, # If true, enable Cloud CDN for this BackendService. 336 # 337 # When the load balancing scheme is INTERNAL, this field is not used. 338 "region": "A String", # [Output Only] URL of the region where the regional backend service resides. This field is not applicable to global backend services. 339 "loadBalancingScheme": "A String", 340 "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. 341 # 342 # When the load balancing scheme is INTERNAL, this field is not used. 343 "id": "A String", # [Output Only] The unique identifier for the resource. This identifier is defined by the server. 344 "port": 42, # Deprecated in favor of portName. The TCP port to connect on the backend. The default value is 80. 345 # 346 # This cannot be used for internal load balancing. 347 "backends": [ # The list of backends that serve this BackendService. 348 { # Message containing information of one individual backend. 349 "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. 350 # 351 # Note that you must specify an Instance Group resource using the fully-qualified URL, rather than a partial URL. 352 # 353 # When the BackendService has load balancing scheme INTERNAL, the instance group must be in a zone within the same region as the BackendService. 354 "description": "A String", # An optional description of this resource. Provide this property when you create the resource. 355 "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]. 356 # 357 # This cannot be used for internal load balancing. 358 "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. 359 # 360 # This cannot be used for internal load balancing. 361 "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. 362 # 363 # This cannot be used for internal load balancing. 364 "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]. 365 # 366 # This cannot be used for internal load balancing. 367 "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. 368 # 369 # This cannot be used for internal load balancing. 370 "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. 371 # 372 # This cannot be used for internal load balancing. 373 "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). 374 # 375 # This cannot be used for internal load balancing. 376 }, 377 ], 378 "timeoutSec": 42, # How many seconds to wait for the backend before considering it a failed request. Default is 30 seconds. 379 "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. 380 "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. 381 # 382 # When the load balancing scheme is INTERNAL, this field is not used. 383 "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. 384 # 385 # For internal load balancing, a URL to a HealthCheck resource must be specified instead. 386 "A String", 387 ], 388 "sessionAffinity": "A String", # Type of session affinity to use. The default is NONE. 389 # 390 # When the load balancing scheme is EXTERNAL, can be NONE, CLIENT_IP, or GENERATED_COOKIE. 391 # 392 # When the load balancing scheme is INTERNAL, can be NONE, CLIENT_IP, CLIENT_IP_PROTO, or CLIENT_IP_PORT_PROTO. 393 # 394 # When the protocol is UDP, this field is not used. 395 "creationTimestamp": "A String", # [Output Only] Creation timestamp in RFC3339 text format. 396 "iap": { # Identity-Aware Proxy 397 "oauth2ClientId": "A String", 398 "enabled": True or False, 399 "oauth2ClientSecret": "A String", 400 "oauth2ClientSecretSha256": "A String", # [Output Only] SHA256 hash value for the field oauth2_client_secret above. 401 }, 402 "selfLink": "A String", # [Output Only] Server-defined URL for the resource. 403 "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. 404 } 405 406 407Returns: 408 An object of the form: 409 410 { # An Operation resource, used to manage asynchronous API requests. 411 "targetId": "A String", # [Output Only] The unique target ID, which identifies a specific incarnation of the target resource. 412 "clientOperationId": "A String", # [Output Only] Reserved for future use. 413 "creationTimestamp": "A String", # [Deprecated] This field is deprecated. 414 "id": "A String", # [Output Only] The unique identifier for the resource. This identifier is defined by the server. 415 "zone": "A String", # [Output Only] The URL of the zone where the operation resides. Only available when performing per-zone operations. 416 "insertTime": "A String", # [Output Only] The time that this operation was requested. This value is in RFC3339 text format. 417 "operationType": "A String", # [Output Only] The type of operation, such as insert, update, or delete, and so on. 418 "httpErrorMessage": "A String", # [Output Only] If the operation fails, this field contains the HTTP error message that was returned, such as NOT FOUND. 419 "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. 420 "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. 421 "statusMessage": "A String", # [Output Only] An optional textual description of the current status of the operation. 422 "status": "A String", # [Output Only] The status of the operation, which can be one of the following: PENDING, RUNNING, or DONE. 423 "description": "A String", # [Output Only] A textual description of the operation, which is set when the operation is created. 424 "warnings": [ # [Output Only] If warning messages are generated during processing of the operation, this field will be populated. 425 { 426 "message": "A String", # [Output Only] A human-readable description of the warning code. 427 "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. 428 "data": [ # [Output Only] Metadata about this warning in key: value format. For example: 429 # "data": [ { "key": "scope", "value": "zones/us-east1-d" } 430 { 431 "value": "A String", # [Output Only] A warning data value corresponding to the key. 432 "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). 433 }, 434 ], 435 }, 436 ], 437 "user": "A String", # [Output Only] User who requested the operation, for example: user@example.com. 438 "startTime": "A String", # [Output Only] The time that this operation was started by the server. This value is in RFC3339 text format. 439 "kind": "compute#operation", # [Output Only] Type of the resource. Always compute#operation for Operation resources. 440 "name": "A String", # [Output Only] Name of the resource. 441 "region": "A String", # [Output Only] The URL of the region where the operation resides. Only available when performing regional operations. 442 "error": { # [Output Only] If errors are generated during processing of the operation, this field will be populated. 443 "errors": [ # [Output Only] The array of errors encountered while processing this operation. 444 { 445 "message": "A String", # [Output Only] An optional, human-readable error message. 446 "code": "A String", # [Output Only] The error type identifier for this error. 447 "location": "A String", # [Output Only] Indicates the field in the request that caused the error. This property is optional. 448 }, 449 ], 450 }, 451 "endTime": "A String", # [Output Only] The time that this operation was completed. This value is in RFC3339 text format. 452 "selfLink": "A String", # [Output Only] Server-defined URL for the resource. 453 "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. 454 }</pre> 455</div> 456 457<div class="method"> 458 <code class="details" id="list">list(project, region, orderBy=None, maxResults=None, pageToken=None, filter=None)</code> 459 <pre>Retrieves the list of regional BackendService resources available to the specified project in the given region. 460 461Args: 462 project: string, Project ID for this request. (required) 463 region: string, Name of the region scoping this request. (required) 464 orderBy: string, Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. 465 466You 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. 467 468Currently, only sorting by name or creationTimestamp desc is supported. 469 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) 470 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. 471 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. 472 473The 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. 474 475For example, to filter for instances that do not have a name of example-instance, you would use filter=name ne example-instance. 476 477You 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. 478 479To 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. 480 481Returns: 482 An object of the form: 483 484 { # Contains a list of BackendService resources. 485 "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. 486 "items": [ # A list of BackendService resources. 487 { # A BackendService resource. This resource defines a group of backend virtual machines and their serving capacity. 488 "connectionDraining": { # Message containing connection draining configuration. 489 "drainingTimeoutSec": 42, # Time for which instance will be drained (not accept new connections, but still work to finish started). 490 }, 491 "kind": "compute#backendService", # [Output Only] Type of resource. Always compute#backendService for backend services. 492 "protocol": "A String", # The protocol this BackendService uses to communicate with backends. 493 # 494 # Possible values are HTTP, HTTPS, TCP, and SSL. The default is HTTP. 495 # 496 # For internal load balancing, the possible values are TCP and UDP, and the default is TCP. 497 "description": "A String", # An optional description of this resource. Provide this property when you create the resource. 498 "cdnPolicy": { # Message containing Cloud CDN configuration for a backend service. # Cloud CDN configuration for this BackendService. 499 "cacheKeyPolicy": { # Message containing what to include in the cache key for a request for Cloud CDN. # The CacheKeyPolicy for this CdnPolicy. 500 "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. 501 "includeHost": True or False, # If true, requests to different hosts will be cached separately. 502 "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. 503 "A String", 504 ], 505 "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. 506 "A String", 507 ], 508 "includeProtocol": True or False, # If true, http and https requests will be cached separately. 509 }, 510 }, 511 "enableCDN": True or False, # If true, enable Cloud CDN for this BackendService. 512 # 513 # When the load balancing scheme is INTERNAL, this field is not used. 514 "region": "A String", # [Output Only] URL of the region where the regional backend service resides. This field is not applicable to global backend services. 515 "loadBalancingScheme": "A String", 516 "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. 517 # 518 # When the load balancing scheme is INTERNAL, this field is not used. 519 "id": "A String", # [Output Only] The unique identifier for the resource. This identifier is defined by the server. 520 "port": 42, # Deprecated in favor of portName. The TCP port to connect on the backend. The default value is 80. 521 # 522 # This cannot be used for internal load balancing. 523 "backends": [ # The list of backends that serve this BackendService. 524 { # Message containing information of one individual backend. 525 "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. 526 # 527 # Note that you must specify an Instance Group resource using the fully-qualified URL, rather than a partial URL. 528 # 529 # When the BackendService has load balancing scheme INTERNAL, the instance group must be in a zone within the same region as the BackendService. 530 "description": "A String", # An optional description of this resource. Provide this property when you create the resource. 531 "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]. 532 # 533 # This cannot be used for internal load balancing. 534 "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. 535 # 536 # This cannot be used for internal load balancing. 537 "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. 538 # 539 # This cannot be used for internal load balancing. 540 "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]. 541 # 542 # This cannot be used for internal load balancing. 543 "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. 544 # 545 # This cannot be used for internal load balancing. 546 "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. 547 # 548 # This cannot be used for internal load balancing. 549 "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). 550 # 551 # This cannot be used for internal load balancing. 552 }, 553 ], 554 "timeoutSec": 42, # How many seconds to wait for the backend before considering it a failed request. Default is 30 seconds. 555 "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. 556 "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. 557 # 558 # When the load balancing scheme is INTERNAL, this field is not used. 559 "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. 560 # 561 # For internal load balancing, a URL to a HealthCheck resource must be specified instead. 562 "A String", 563 ], 564 "sessionAffinity": "A String", # Type of session affinity to use. The default is NONE. 565 # 566 # When the load balancing scheme is EXTERNAL, can be NONE, CLIENT_IP, or GENERATED_COOKIE. 567 # 568 # When the load balancing scheme is INTERNAL, can be NONE, CLIENT_IP, CLIENT_IP_PROTO, or CLIENT_IP_PORT_PROTO. 569 # 570 # When the protocol is UDP, this field is not used. 571 "creationTimestamp": "A String", # [Output Only] Creation timestamp in RFC3339 text format. 572 "iap": { # Identity-Aware Proxy 573 "oauth2ClientId": "A String", 574 "enabled": True or False, 575 "oauth2ClientSecret": "A String", 576 "oauth2ClientSecretSha256": "A String", # [Output Only] SHA256 hash value for the field oauth2_client_secret above. 577 }, 578 "selfLink": "A String", # [Output Only] Server-defined URL for the resource. 579 "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. 580 }, 581 ], 582 "kind": "compute#backendServiceList", # [Output Only] Type of resource. Always compute#backendServiceList for lists of backend services. 583 "id": "A String", # [Output Only] Unique identifier for the resource; defined by the server. 584 "selfLink": "A String", # [Output Only] Server-defined URL for this resource. 585 }</pre> 586</div> 587 588<div class="method"> 589 <code class="details" id="list_next">list_next(previous_request, previous_response)</code> 590 <pre>Retrieves the next page of results. 591 592Args: 593 previous_request: The request for the previous page. (required) 594 previous_response: The response from the request for the previous page. (required) 595 596Returns: 597 A request object that you can call 'execute()' on to request the next 598 page. Returns None if there are no more items in the collection. 599 </pre> 600</div> 601 602<div class="method"> 603 <code class="details" id="patch">patch(project, region, backendService, body)</code> 604 <pre>Updates the specified regional 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. 605 606Args: 607 project: string, Project ID for this request. (required) 608 region: string, Name of the region scoping this request. (required) 609 backendService: string, Name of the BackendService resource to patch. (required) 610 body: object, The request body. (required) 611 The object takes the form of: 612 613{ # A BackendService resource. This resource defines a group of backend virtual machines and their serving capacity. 614 "connectionDraining": { # Message containing connection draining configuration. 615 "drainingTimeoutSec": 42, # Time for which instance will be drained (not accept new connections, but still work to finish started). 616 }, 617 "kind": "compute#backendService", # [Output Only] Type of resource. Always compute#backendService for backend services. 618 "protocol": "A String", # The protocol this BackendService uses to communicate with backends. 619 # 620 # Possible values are HTTP, HTTPS, TCP, and SSL. The default is HTTP. 621 # 622 # For internal load balancing, the possible values are TCP and UDP, and the default is TCP. 623 "description": "A String", # An optional description of this resource. Provide this property when you create the resource. 624 "cdnPolicy": { # Message containing Cloud CDN configuration for a backend service. # Cloud CDN configuration for this BackendService. 625 "cacheKeyPolicy": { # Message containing what to include in the cache key for a request for Cloud CDN. # The CacheKeyPolicy for this CdnPolicy. 626 "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. 627 "includeHost": True or False, # If true, requests to different hosts will be cached separately. 628 "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. 629 "A String", 630 ], 631 "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. 632 "A String", 633 ], 634 "includeProtocol": True or False, # If true, http and https requests will be cached separately. 635 }, 636 }, 637 "enableCDN": True or False, # If true, enable Cloud CDN for this BackendService. 638 # 639 # When the load balancing scheme is INTERNAL, this field is not used. 640 "region": "A String", # [Output Only] URL of the region where the regional backend service resides. This field is not applicable to global backend services. 641 "loadBalancingScheme": "A String", 642 "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. 643 # 644 # When the load balancing scheme is INTERNAL, this field is not used. 645 "id": "A String", # [Output Only] The unique identifier for the resource. This identifier is defined by the server. 646 "port": 42, # Deprecated in favor of portName. The TCP port to connect on the backend. The default value is 80. 647 # 648 # This cannot be used for internal load balancing. 649 "backends": [ # The list of backends that serve this BackendService. 650 { # Message containing information of one individual backend. 651 "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. 652 # 653 # Note that you must specify an Instance Group resource using the fully-qualified URL, rather than a partial URL. 654 # 655 # When the BackendService has load balancing scheme INTERNAL, the instance group must be in a zone within the same region as the BackendService. 656 "description": "A String", # An optional description of this resource. Provide this property when you create the resource. 657 "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]. 658 # 659 # This cannot be used for internal load balancing. 660 "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. 661 # 662 # This cannot be used for internal load balancing. 663 "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. 664 # 665 # This cannot be used for internal load balancing. 666 "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]. 667 # 668 # This cannot be used for internal load balancing. 669 "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. 670 # 671 # This cannot be used for internal load balancing. 672 "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. 673 # 674 # This cannot be used for internal load balancing. 675 "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). 676 # 677 # This cannot be used for internal load balancing. 678 }, 679 ], 680 "timeoutSec": 42, # How many seconds to wait for the backend before considering it a failed request. Default is 30 seconds. 681 "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. 682 "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. 683 # 684 # When the load balancing scheme is INTERNAL, this field is not used. 685 "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. 686 # 687 # For internal load balancing, a URL to a HealthCheck resource must be specified instead. 688 "A String", 689 ], 690 "sessionAffinity": "A String", # Type of session affinity to use. The default is NONE. 691 # 692 # When the load balancing scheme is EXTERNAL, can be NONE, CLIENT_IP, or GENERATED_COOKIE. 693 # 694 # When the load balancing scheme is INTERNAL, can be NONE, CLIENT_IP, CLIENT_IP_PROTO, or CLIENT_IP_PORT_PROTO. 695 # 696 # When the protocol is UDP, this field is not used. 697 "creationTimestamp": "A String", # [Output Only] Creation timestamp in RFC3339 text format. 698 "iap": { # Identity-Aware Proxy 699 "oauth2ClientId": "A String", 700 "enabled": True or False, 701 "oauth2ClientSecret": "A String", 702 "oauth2ClientSecretSha256": "A String", # [Output Only] SHA256 hash value for the field oauth2_client_secret above. 703 }, 704 "selfLink": "A String", # [Output Only] Server-defined URL for the resource. 705 "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. 706 } 707 708 709Returns: 710 An object of the form: 711 712 { # An Operation resource, used to manage asynchronous API requests. 713 "targetId": "A String", # [Output Only] The unique target ID, which identifies a specific incarnation of the target resource. 714 "clientOperationId": "A String", # [Output Only] Reserved for future use. 715 "creationTimestamp": "A String", # [Deprecated] This field is deprecated. 716 "id": "A String", # [Output Only] The unique identifier for the resource. This identifier is defined by the server. 717 "zone": "A String", # [Output Only] The URL of the zone where the operation resides. Only available when performing per-zone operations. 718 "insertTime": "A String", # [Output Only] The time that this operation was requested. This value is in RFC3339 text format. 719 "operationType": "A String", # [Output Only] The type of operation, such as insert, update, or delete, and so on. 720 "httpErrorMessage": "A String", # [Output Only] If the operation fails, this field contains the HTTP error message that was returned, such as NOT FOUND. 721 "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. 722 "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. 723 "statusMessage": "A String", # [Output Only] An optional textual description of the current status of the operation. 724 "status": "A String", # [Output Only] The status of the operation, which can be one of the following: PENDING, RUNNING, or DONE. 725 "description": "A String", # [Output Only] A textual description of the operation, which is set when the operation is created. 726 "warnings": [ # [Output Only] If warning messages are generated during processing of the operation, this field will be populated. 727 { 728 "message": "A String", # [Output Only] A human-readable description of the warning code. 729 "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. 730 "data": [ # [Output Only] Metadata about this warning in key: value format. For example: 731 # "data": [ { "key": "scope", "value": "zones/us-east1-d" } 732 { 733 "value": "A String", # [Output Only] A warning data value corresponding to the key. 734 "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). 735 }, 736 ], 737 }, 738 ], 739 "user": "A String", # [Output Only] User who requested the operation, for example: user@example.com. 740 "startTime": "A String", # [Output Only] The time that this operation was started by the server. This value is in RFC3339 text format. 741 "kind": "compute#operation", # [Output Only] Type of the resource. Always compute#operation for Operation resources. 742 "name": "A String", # [Output Only] Name of the resource. 743 "region": "A String", # [Output Only] The URL of the region where the operation resides. Only available when performing regional operations. 744 "error": { # [Output Only] If errors are generated during processing of the operation, this field will be populated. 745 "errors": [ # [Output Only] The array of errors encountered while processing this operation. 746 { 747 "message": "A String", # [Output Only] An optional, human-readable error message. 748 "code": "A String", # [Output Only] The error type identifier for this error. 749 "location": "A String", # [Output Only] Indicates the field in the request that caused the error. This property is optional. 750 }, 751 ], 752 }, 753 "endTime": "A String", # [Output Only] The time that this operation was completed. This value is in RFC3339 text format. 754 "selfLink": "A String", # [Output Only] Server-defined URL for the resource. 755 "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. 756 }</pre> 757</div> 758 759<div class="method"> 760 <code class="details" id="update">update(project, region, backendService, body)</code> 761 <pre>Updates the specified regional 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. 762 763Args: 764 project: string, Project ID for this request. (required) 765 region: string, Name of the region scoping this request. (required) 766 backendService: string, Name of the BackendService resource to update. (required) 767 body: object, The request body. (required) 768 The object takes the form of: 769 770{ # A BackendService resource. This resource defines a group of backend virtual machines and their serving capacity. 771 "connectionDraining": { # Message containing connection draining configuration. 772 "drainingTimeoutSec": 42, # Time for which instance will be drained (not accept new connections, but still work to finish started). 773 }, 774 "kind": "compute#backendService", # [Output Only] Type of resource. Always compute#backendService for backend services. 775 "protocol": "A String", # The protocol this BackendService uses to communicate with backends. 776 # 777 # Possible values are HTTP, HTTPS, TCP, and SSL. The default is HTTP. 778 # 779 # For internal load balancing, the possible values are TCP and UDP, and the default is TCP. 780 "description": "A String", # An optional description of this resource. Provide this property when you create the resource. 781 "cdnPolicy": { # Message containing Cloud CDN configuration for a backend service. # Cloud CDN configuration for this BackendService. 782 "cacheKeyPolicy": { # Message containing what to include in the cache key for a request for Cloud CDN. # The CacheKeyPolicy for this CdnPolicy. 783 "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. 784 "includeHost": True or False, # If true, requests to different hosts will be cached separately. 785 "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. 786 "A String", 787 ], 788 "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. 789 "A String", 790 ], 791 "includeProtocol": True or False, # If true, http and https requests will be cached separately. 792 }, 793 }, 794 "enableCDN": True or False, # If true, enable Cloud CDN for this BackendService. 795 # 796 # When the load balancing scheme is INTERNAL, this field is not used. 797 "region": "A String", # [Output Only] URL of the region where the regional backend service resides. This field is not applicable to global backend services. 798 "loadBalancingScheme": "A String", 799 "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. 800 # 801 # When the load balancing scheme is INTERNAL, this field is not used. 802 "id": "A String", # [Output Only] The unique identifier for the resource. This identifier is defined by the server. 803 "port": 42, # Deprecated in favor of portName. The TCP port to connect on the backend. The default value is 80. 804 # 805 # This cannot be used for internal load balancing. 806 "backends": [ # The list of backends that serve this BackendService. 807 { # Message containing information of one individual backend. 808 "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. 809 # 810 # Note that you must specify an Instance Group resource using the fully-qualified URL, rather than a partial URL. 811 # 812 # When the BackendService has load balancing scheme INTERNAL, the instance group must be in a zone within the same region as the BackendService. 813 "description": "A String", # An optional description of this resource. Provide this property when you create the resource. 814 "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]. 815 # 816 # This cannot be used for internal load balancing. 817 "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. 818 # 819 # This cannot be used for internal load balancing. 820 "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. 821 # 822 # This cannot be used for internal load balancing. 823 "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]. 824 # 825 # This cannot be used for internal load balancing. 826 "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. 827 # 828 # This cannot be used for internal load balancing. 829 "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. 830 # 831 # This cannot be used for internal load balancing. 832 "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). 833 # 834 # This cannot be used for internal load balancing. 835 }, 836 ], 837 "timeoutSec": 42, # How many seconds to wait for the backend before considering it a failed request. Default is 30 seconds. 838 "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. 839 "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. 840 # 841 # When the load balancing scheme is INTERNAL, this field is not used. 842 "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. 843 # 844 # For internal load balancing, a URL to a HealthCheck resource must be specified instead. 845 "A String", 846 ], 847 "sessionAffinity": "A String", # Type of session affinity to use. The default is NONE. 848 # 849 # When the load balancing scheme is EXTERNAL, can be NONE, CLIENT_IP, or GENERATED_COOKIE. 850 # 851 # When the load balancing scheme is INTERNAL, can be NONE, CLIENT_IP, CLIENT_IP_PROTO, or CLIENT_IP_PORT_PROTO. 852 # 853 # When the protocol is UDP, this field is not used. 854 "creationTimestamp": "A String", # [Output Only] Creation timestamp in RFC3339 text format. 855 "iap": { # Identity-Aware Proxy 856 "oauth2ClientId": "A String", 857 "enabled": True or False, 858 "oauth2ClientSecret": "A String", 859 "oauth2ClientSecretSha256": "A String", # [Output Only] SHA256 hash value for the field oauth2_client_secret above. 860 }, 861 "selfLink": "A String", # [Output Only] Server-defined URL for the resource. 862 "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. 863 } 864 865 866Returns: 867 An object of the form: 868 869 { # An Operation resource, used to manage asynchronous API requests. 870 "targetId": "A String", # [Output Only] The unique target ID, which identifies a specific incarnation of the target resource. 871 "clientOperationId": "A String", # [Output Only] Reserved for future use. 872 "creationTimestamp": "A String", # [Deprecated] This field is deprecated. 873 "id": "A String", # [Output Only] The unique identifier for the resource. This identifier is defined by the server. 874 "zone": "A String", # [Output Only] The URL of the zone where the operation resides. Only available when performing per-zone operations. 875 "insertTime": "A String", # [Output Only] The time that this operation was requested. This value is in RFC3339 text format. 876 "operationType": "A String", # [Output Only] The type of operation, such as insert, update, or delete, and so on. 877 "httpErrorMessage": "A String", # [Output Only] If the operation fails, this field contains the HTTP error message that was returned, such as NOT FOUND. 878 "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. 879 "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. 880 "statusMessage": "A String", # [Output Only] An optional textual description of the current status of the operation. 881 "status": "A String", # [Output Only] The status of the operation, which can be one of the following: PENDING, RUNNING, or DONE. 882 "description": "A String", # [Output Only] A textual description of the operation, which is set when the operation is created. 883 "warnings": [ # [Output Only] If warning messages are generated during processing of the operation, this field will be populated. 884 { 885 "message": "A String", # [Output Only] A human-readable description of the warning code. 886 "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. 887 "data": [ # [Output Only] Metadata about this warning in key: value format. For example: 888 # "data": [ { "key": "scope", "value": "zones/us-east1-d" } 889 { 890 "value": "A String", # [Output Only] A warning data value corresponding to the key. 891 "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). 892 }, 893 ], 894 }, 895 ], 896 "user": "A String", # [Output Only] User who requested the operation, for example: user@example.com. 897 "startTime": "A String", # [Output Only] The time that this operation was started by the server. This value is in RFC3339 text format. 898 "kind": "compute#operation", # [Output Only] Type of the resource. Always compute#operation for Operation resources. 899 "name": "A String", # [Output Only] Name of the resource. 900 "region": "A String", # [Output Only] The URL of the region where the operation resides. Only available when performing regional operations. 901 "error": { # [Output Only] If errors are generated during processing of the operation, this field will be populated. 902 "errors": [ # [Output Only] The array of errors encountered while processing this operation. 903 { 904 "message": "A String", # [Output Only] An optional, human-readable error message. 905 "code": "A String", # [Output Only] The error type identifier for this error. 906 "location": "A String", # [Output Only] Indicates the field in the request that caused the error. This property is optional. 907 }, 908 ], 909 }, 910 "endTime": "A String", # [Output Only] The time that this operation was completed. This value is in RFC3339 text format. 911 "selfLink": "A String", # [Output Only] Server-defined URL for the resource. 912 "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. 913 }</pre> 914</div> 915 916</body></html>