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