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_v1.html">Compute Engine API</a> . <a href="compute_v1.backendServices.html">backendServices</a></h1>
     76 <h2>Instance Methods</h2>
     77 <p class="toc_element">
     78   <code><a href="#aggregatedList">aggregatedList(project, orderBy=None, maxResults=None, pageToken=None, filter=None)</a></code></p>
     79 <p class="firstline">Retrieves the list of all BackendService resources, regional and global, available to the specified project.</p>
     80 <p class="toc_element">
     81   <code><a href="#aggregatedList_next">aggregatedList_next(previous_request, previous_response)</a></code></p>
     82 <p class="firstline">Retrieves the next page of results.</p>
     83 <p class="toc_element">
     84   <code><a href="#delete">delete(project, backendService)</a></code></p>
     85 <p class="firstline">Deletes the specified BackendService resource.</p>
     86 <p class="toc_element">
     87   <code><a href="#get">get(project, backendService)</a></code></p>
     88 <p class="firstline">Returns the specified BackendService resource. Get a list of available backend services by making a list() request.</p>
     89 <p class="toc_element">
     90   <code><a href="#getHealth">getHealth(project, backendService, body)</a></code></p>
     91 <p class="firstline">Gets the most recent health check results for this BackendService.</p>
     92 <p class="toc_element">
     93   <code><a href="#insert">insert(project, body)</a></code></p>
     94 <p class="firstline">Creates a BackendService resource in the specified project using the data included in the request. There are several restrictions and guidelines to keep in mind when creating a backend service. Read  Restrictions and Guidelines for more information.</p>
     95 <p class="toc_element">
     96   <code><a href="#list">list(project, orderBy=None, maxResults=None, pageToken=None, filter=None)</a></code></p>
     97 <p class="firstline">Retrieves the list of BackendService resources available to the specified project.</p>
     98 <p class="toc_element">
     99   <code><a href="#list_next">list_next(previous_request, previous_response)</a></code></p>
    100 <p class="firstline">Retrieves the next page of results.</p>
    101 <p class="toc_element">
    102   <code><a href="#patch">patch(project, backendService, body)</a></code></p>
    103 <p class="firstline">Patches the specified BackendService resource with the data included in the request. There are several restrictions and guidelines to keep in mind when updating a backend service. Read  Restrictions and Guidelines for more information. This method supports patch semantics.</p>
    104 <p class="toc_element">
    105   <code><a href="#update">update(project, backendService, body)</a></code></p>
    106 <p class="firstline">Updates the specified BackendService resource with the data included in the request. There are several restrictions and guidelines to keep in mind when updating a backend service. Read  Restrictions and Guidelines for more information.</p>
    107 <h3>Method Details</h3>
    108 <div class="method">
    109     <code class="details" id="aggregatedList">aggregatedList(project, orderBy=None, maxResults=None, pageToken=None, filter=None)</code>
    110   <pre>Retrieves the list of all BackendService resources, regional and global, available to the specified project.
    111 
    112 Args:
    113   project: string, Name of the project scoping this request. (required)
    114   orderBy: string, Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name.
    115 
    116 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.
    117 
    118 Currently, only sorting by name or creationTimestamp desc is supported.
    119   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)
    120   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.
    121   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.
    122 
    123 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.
    124 
    125 For example, to filter for instances that do not have a name of example-instance, you would use filter=name ne example-instance.
    126 
    127 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.
    128 
    129 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.
    130 
    131 Returns:
    132   An object of the form:
    133 
    134     { # Contains a list of BackendServicesScopedList.
    135     "nextPageToken": "A String", # [Output Only] A token used to continue a truncated list request.
    136     "items": { # A map of scoped BackendService lists.
    137       "a_key": { # Name of the scope containing this set of BackendServices.
    138         "warning": { # Informational warning which replaces the list of backend services when the list is empty.
    139           "message": "A String", # [Output Only] A human-readable description of the warning code.
    140           "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.
    141           "data": [ # [Output Only] Metadata about this warning in key: value format. For example:
    142               # "data": [ { "key": "scope", "value": "zones/us-east1-d" }
    143             {
    144               "value": "A String", # [Output Only] A warning data value corresponding to the key.
    145               "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).
    146             },
    147           ],
    148         },
    149         "backendServices": [ # List of BackendServices contained in this scope.
    150           { # A BackendService resource. This resource defines a group of backend virtual machines and their serving capacity.
    151               "connectionDraining": { # Message containing connection draining configuration.
    152                 "drainingTimeoutSec": 42, # Time for which instance will be drained (not accept new connections, but still work to finish started).
    153               },
    154               "kind": "compute#backendService", # [Output Only] Type of resource. Always compute#backendService for backend services.
    155               "protocol": "A String", # The protocol this BackendService uses to communicate with backends.
    156                   #
    157                   # Possible values are HTTP, HTTPS, TCP, and SSL. The default is HTTP.
    158                   #
    159                   # For internal load balancing, the possible values are TCP and UDP, and the default is TCP.
    160               "description": "A String", # An optional description of this resource. Provide this property when you create the resource.
    161               "cdnPolicy": { # Message containing Cloud CDN configuration for a backend service. # Cloud CDN configuration for this BackendService.
    162                 "cacheKeyPolicy": { # Message containing what to include in the cache key for a request for Cloud CDN. # The CacheKeyPolicy for this CdnPolicy.
    163                   "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.
    164                   "includeHost": True or False, # If true, requests to different hosts will be cached separately.
    165                   "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.
    166                     "A String",
    167                   ],
    168                   "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.
    169                     "A String",
    170                   ],
    171                   "includeProtocol": True or False, # If true, http and https requests will be cached separately.
    172                 },
    173               },
    174               "enableCDN": True or False, # If true, enable Cloud CDN for this BackendService.
    175                   #
    176                   # When the load balancing scheme is INTERNAL, this field is not used.
    177               "region": "A String", # [Output Only] URL of the region where the regional backend service resides. This field is not applicable to global backend services.
    178               "loadBalancingScheme": "A String",
    179               "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.
    180                   #
    181                   # When the load balancing scheme is INTERNAL, this field is not used.
    182               "id": "A String", # [Output Only] The unique identifier for the resource. This identifier is defined by the server.
    183               "port": 42, # Deprecated in favor of portName. The TCP port to connect on the backend. The default value is 80.
    184                   #
    185                   # This cannot be used for internal load balancing.
    186               "backends": [ # The list of backends that serve this BackendService.
    187                 { # Message containing information of one individual backend.
    188                   "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.
    189                       #
    190                       # Note that you must specify an Instance Group resource using the fully-qualified URL, rather than a partial URL.
    191                       #
    192                       # When the BackendService has load balancing scheme INTERNAL, the instance group must be in a zone within the same region as the BackendService.
    193                   "description": "A String", # An optional description of this resource. Provide this property when you create the resource.
    194                   "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].
    195                       #
    196                       # This cannot be used for internal load balancing.
    197                   "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.
    198                       #
    199                       # This cannot be used for internal load balancing.
    200                   "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.
    201                       #
    202                       # This cannot be used for internal load balancing.
    203                   "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].
    204                       #
    205                       # This cannot be used for internal load balancing.
    206                   "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.
    207                       #
    208                       # This cannot be used for internal load balancing.
    209                   "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.
    210                       #
    211                       # This cannot be used for internal load balancing.
    212                   "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).
    213                       #
    214                       # This cannot be used for internal load balancing.
    215                 },
    216               ],
    217               "timeoutSec": 42, # How many seconds to wait for the backend before considering it a failed request. Default is 30 seconds.
    218               "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.
    219               "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.
    220                   #
    221                   # When the load balancing scheme is INTERNAL, this field is not used.
    222               "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.
    223                   #
    224                   # For internal load balancing, a URL to a HealthCheck resource must be specified instead.
    225                 "A String",
    226               ],
    227               "sessionAffinity": "A String", # Type of session affinity to use. The default is NONE.
    228                   #
    229                   # When the load balancing scheme is EXTERNAL, can be NONE, CLIENT_IP, or GENERATED_COOKIE.
    230                   #
    231                   # When the load balancing scheme is INTERNAL, can be NONE, CLIENT_IP, CLIENT_IP_PROTO, or CLIENT_IP_PORT_PROTO.
    232                   #
    233                   # When the protocol is UDP, this field is not used.
    234               "creationTimestamp": "A String", # [Output Only] Creation timestamp in RFC3339 text format.
    235               "iap": { # Identity-Aware Proxy
    236                 "oauth2ClientId": "A String",
    237                 "enabled": True or False,
    238                 "oauth2ClientSecret": "A String",
    239                 "oauth2ClientSecretSha256": "A String", # [Output Only] SHA256 hash value for the field oauth2_client_secret above.
    240               },
    241               "selfLink": "A String", # [Output Only] Server-defined URL for the resource.
    242               "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.
    243             },
    244         ],
    245       },
    246     },
    247     "kind": "compute#backendServiceAggregatedList", # Type of resource.
    248     "id": "A String", # [Output Only] Unique identifier for the resource; defined by the server.
    249     "selfLink": "A String", # [Output Only] Server-defined URL for this resource.
    250   }</pre>
    251 </div>
    252 
    253 <div class="method">
    254     <code class="details" id="aggregatedList_next">aggregatedList_next(previous_request, previous_response)</code>
    255   <pre>Retrieves the next page of results.
    256 
    257 Args:
    258   previous_request: The request for the previous page. (required)
    259   previous_response: The response from the request for the previous page. (required)
    260 
    261 Returns:
    262   A request object that you can call 'execute()' on to request the next
    263   page. Returns None if there are no more items in the collection.
    264     </pre>
    265 </div>
    266 
    267 <div class="method">
    268     <code class="details" id="delete">delete(project, backendService)</code>
    269   <pre>Deletes the specified BackendService resource.
    270 
    271 Args:
    272   project: string, Project ID for this request. (required)
    273   backendService: string, Name of the BackendService resource to delete. (required)
    274 
    275 Returns:
    276   An object of the form:
    277 
    278     { # An Operation resource, used to manage asynchronous API requests.
    279     "targetId": "A String", # [Output Only] The unique target ID, which identifies a specific incarnation of the target resource.
    280     "clientOperationId": "A String", # [Output Only] Reserved for future use.
    281     "creationTimestamp": "A String", # [Deprecated] This field is deprecated.
    282     "id": "A String", # [Output Only] The unique identifier for the resource. This identifier is defined by the server.
    283     "zone": "A String", # [Output Only] The URL of the zone where the operation resides. Only available when performing per-zone operations.
    284     "insertTime": "A String", # [Output Only] The time that this operation was requested. This value is in RFC3339 text format.
    285     "operationType": "A String", # [Output Only] The type of operation, such as insert, update, or delete, and so on.
    286     "httpErrorMessage": "A String", # [Output Only] If the operation fails, this field contains the HTTP error message that was returned, such as NOT FOUND.
    287     "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.
    288     "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.
    289     "statusMessage": "A String", # [Output Only] An optional textual description of the current status of the operation.
    290     "status": "A String", # [Output Only] The status of the operation, which can be one of the following: PENDING, RUNNING, or DONE.
    291     "description": "A String", # [Output Only] A textual description of the operation, which is set when the operation is created.
    292     "warnings": [ # [Output Only] If warning messages are generated during processing of the operation, this field will be populated.
    293       {
    294         "message": "A String", # [Output Only] A human-readable description of the warning code.
    295         "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.
    296         "data": [ # [Output Only] Metadata about this warning in key: value format. For example:
    297             # "data": [ { "key": "scope", "value": "zones/us-east1-d" }
    298           {
    299             "value": "A String", # [Output Only] A warning data value corresponding to the key.
    300             "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).
    301           },
    302         ],
    303       },
    304     ],
    305     "user": "A String", # [Output Only] User who requested the operation, for example: user (a] example.com.
    306     "startTime": "A String", # [Output Only] The time that this operation was started by the server. This value is in RFC3339 text format.
    307     "kind": "compute#operation", # [Output Only] Type of the resource. Always compute#operation for Operation resources.
    308     "name": "A String", # [Output Only] Name of the resource.
    309     "region": "A String", # [Output Only] The URL of the region where the operation resides. Only available when performing regional operations.
    310     "error": { # [Output Only] If errors are generated during processing of the operation, this field will be populated.
    311       "errors": [ # [Output Only] The array of errors encountered while processing this operation.
    312         {
    313           "message": "A String", # [Output Only] An optional, human-readable error message.
    314           "code": "A String", # [Output Only] The error type identifier for this error.
    315           "location": "A String", # [Output Only] Indicates the field in the request that caused the error. This property is optional.
    316         },
    317       ],
    318     },
    319     "endTime": "A String", # [Output Only] The time that this operation was completed. This value is in RFC3339 text format.
    320     "selfLink": "A String", # [Output Only] Server-defined URL for the resource.
    321     "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.
    322   }</pre>
    323 </div>
    324 
    325 <div class="method">
    326     <code class="details" id="get">get(project, backendService)</code>
    327   <pre>Returns the specified BackendService resource. Get a list of available backend services by making a list() request.
    328 
    329 Args:
    330   project: string, Project ID for this request. (required)
    331   backendService: string, Name of the BackendService resource to return. (required)
    332 
    333 Returns:
    334   An object of the form:
    335 
    336     { # A BackendService resource. This resource defines a group of backend virtual machines and their serving capacity.
    337       "connectionDraining": { # Message containing connection draining configuration.
    338         "drainingTimeoutSec": 42, # Time for which instance will be drained (not accept new connections, but still work to finish started).
    339       },
    340       "kind": "compute#backendService", # [Output Only] Type of resource. Always compute#backendService for backend services.
    341       "protocol": "A String", # The protocol this BackendService uses to communicate with backends.
    342           #
    343           # Possible values are HTTP, HTTPS, TCP, and SSL. The default is HTTP.
    344           #
    345           # For internal load balancing, the possible values are TCP and UDP, and the default is TCP.
    346       "description": "A String", # An optional description of this resource. Provide this property when you create the resource.
    347       "cdnPolicy": { # Message containing Cloud CDN configuration for a backend service. # Cloud CDN configuration for this BackendService.
    348         "cacheKeyPolicy": { # Message containing what to include in the cache key for a request for Cloud CDN. # The CacheKeyPolicy for this CdnPolicy.
    349           "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.
    350           "includeHost": True or False, # If true, requests to different hosts will be cached separately.
    351           "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.
    352             "A String",
    353           ],
    354           "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.
    355             "A String",
    356           ],
    357           "includeProtocol": True or False, # If true, http and https requests will be cached separately.
    358         },
    359       },
    360       "enableCDN": True or False, # If true, enable Cloud CDN for this BackendService.
    361           #
    362           # When the load balancing scheme is INTERNAL, this field is not used.
    363       "region": "A String", # [Output Only] URL of the region where the regional backend service resides. This field is not applicable to global backend services.
    364       "loadBalancingScheme": "A String",
    365       "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.
    366           #
    367           # When the load balancing scheme is INTERNAL, this field is not used.
    368       "id": "A String", # [Output Only] The unique identifier for the resource. This identifier is defined by the server.
    369       "port": 42, # Deprecated in favor of portName. The TCP port to connect on the backend. The default value is 80.
    370           #
    371           # This cannot be used for internal load balancing.
    372       "backends": [ # The list of backends that serve this BackendService.
    373         { # Message containing information of one individual backend.
    374           "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.
    375               #
    376               # Note that you must specify an Instance Group resource using the fully-qualified URL, rather than a partial URL.
    377               #
    378               # When the BackendService has load balancing scheme INTERNAL, the instance group must be in a zone within the same region as the BackendService.
    379           "description": "A String", # An optional description of this resource. Provide this property when you create the resource.
    380           "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].
    381               #
    382               # This cannot be used for internal load balancing.
    383           "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.
    384               #
    385               # This cannot be used for internal load balancing.
    386           "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.
    387               #
    388               # This cannot be used for internal load balancing.
    389           "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].
    390               #
    391               # This cannot be used for internal load balancing.
    392           "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.
    393               #
    394               # This cannot be used for internal load balancing.
    395           "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.
    396               #
    397               # This cannot be used for internal load balancing.
    398           "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).
    399               #
    400               # This cannot be used for internal load balancing.
    401         },
    402       ],
    403       "timeoutSec": 42, # How many seconds to wait for the backend before considering it a failed request. Default is 30 seconds.
    404       "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.
    405       "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.
    406           #
    407           # When the load balancing scheme is INTERNAL, this field is not used.
    408       "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.
    409           #
    410           # For internal load balancing, a URL to a HealthCheck resource must be specified instead.
    411         "A String",
    412       ],
    413       "sessionAffinity": "A String", # Type of session affinity to use. The default is NONE.
    414           #
    415           # When the load balancing scheme is EXTERNAL, can be NONE, CLIENT_IP, or GENERATED_COOKIE.
    416           #
    417           # When the load balancing scheme is INTERNAL, can be NONE, CLIENT_IP, CLIENT_IP_PROTO, or CLIENT_IP_PORT_PROTO.
    418           #
    419           # When the protocol is UDP, this field is not used.
    420       "creationTimestamp": "A String", # [Output Only] Creation timestamp in RFC3339 text format.
    421       "iap": { # Identity-Aware Proxy
    422         "oauth2ClientId": "A String",
    423         "enabled": True or False,
    424         "oauth2ClientSecret": "A String",
    425         "oauth2ClientSecretSha256": "A String", # [Output Only] SHA256 hash value for the field oauth2_client_secret above.
    426       },
    427       "selfLink": "A String", # [Output Only] Server-defined URL for the resource.
    428       "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.
    429     }</pre>
    430 </div>
    431 
    432 <div class="method">
    433     <code class="details" id="getHealth">getHealth(project, backendService, body)</code>
    434   <pre>Gets the most recent health check results for this BackendService.
    435 
    436 Args:
    437   project: string, A parameter (required)
    438   backendService: string, Name of the BackendService resource to which the queried instance belongs. (required)
    439   body: object, The request body. (required)
    440     The object takes the form of:
    441 
    442 {
    443     "group": "A String", # A URI referencing one of the instance groups listed in the backend service.
    444   }
    445 
    446 
    447 Returns:
    448   An object of the form:
    449 
    450     {
    451     "kind": "compute#backendServiceGroupHealth", # [Output Only] Type of resource. Always compute#backendServiceGroupHealth for the health of backend services.
    452     "healthStatus": [
    453       {
    454         "instance": "A String", # URL of the instance resource.
    455         "healthState": "A String", # Health state of the instance.
    456         "ipAddress": "A String", # The IP address represented by this resource.
    457         "port": 42, # The port on the instance.
    458       },
    459     ],
    460   }</pre>
    461 </div>
    462 
    463 <div class="method">
    464     <code class="details" id="insert">insert(project, body)</code>
    465   <pre>Creates a BackendService resource in the specified project using the data included in the request. There are several restrictions and guidelines to keep in mind when creating a backend service. Read  Restrictions and Guidelines for more information.
    466 
    467 Args:
    468   project: string, Project ID for this request. (required)
    469   body: object, The request body. (required)
    470     The object takes the form of:
    471 
    472 { # A BackendService resource. This resource defines a group of backend virtual machines and their serving capacity.
    473     "connectionDraining": { # Message containing connection draining configuration.
    474       "drainingTimeoutSec": 42, # Time for which instance will be drained (not accept new connections, but still work to finish started).
    475     },
    476     "kind": "compute#backendService", # [Output Only] Type of resource. Always compute#backendService for backend services.
    477     "protocol": "A String", # The protocol this BackendService uses to communicate with backends.
    478         # 
    479         # Possible values are HTTP, HTTPS, TCP, and SSL. The default is HTTP.
    480         # 
    481         # For internal load balancing, the possible values are TCP and UDP, and the default is TCP.
    482     "description": "A String", # An optional description of this resource. Provide this property when you create the resource.
    483     "cdnPolicy": { # Message containing Cloud CDN configuration for a backend service. # Cloud CDN configuration for this BackendService.
    484       "cacheKeyPolicy": { # Message containing what to include in the cache key for a request for Cloud CDN. # The CacheKeyPolicy for this CdnPolicy.
    485         "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.
    486         "includeHost": True or False, # If true, requests to different hosts will be cached separately.
    487         "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.
    488           "A String",
    489         ],
    490         "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.
    491           "A String",
    492         ],
    493         "includeProtocol": True or False, # If true, http and https requests will be cached separately.
    494       },
    495     },
    496     "enableCDN": True or False, # If true, enable Cloud CDN for this BackendService.
    497         # 
    498         # When the load balancing scheme is INTERNAL, this field is not used.
    499     "region": "A String", # [Output Only] URL of the region where the regional backend service resides. This field is not applicable to global backend services.
    500     "loadBalancingScheme": "A String",
    501     "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.
    502         # 
    503         # When the load balancing scheme is INTERNAL, this field is not used.
    504     "id": "A String", # [Output Only] The unique identifier for the resource. This identifier is defined by the server.
    505     "port": 42, # Deprecated in favor of portName. The TCP port to connect on the backend. The default value is 80.
    506         # 
    507         # This cannot be used for internal load balancing.
    508     "backends": [ # The list of backends that serve this BackendService.
    509       { # Message containing information of one individual backend.
    510         "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.
    511             #
    512             # Note that you must specify an Instance Group resource using the fully-qualified URL, rather than a partial URL.
    513             #
    514             # When the BackendService has load balancing scheme INTERNAL, the instance group must be in a zone within the same region as the BackendService.
    515         "description": "A String", # An optional description of this resource. Provide this property when you create the resource.
    516         "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].
    517             #
    518             # This cannot be used for internal load balancing.
    519         "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.
    520             #
    521             # This cannot be used for internal load balancing.
    522         "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.
    523             #
    524             # This cannot be used for internal load balancing.
    525         "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].
    526             #
    527             # This cannot be used for internal load balancing.
    528         "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.
    529             #
    530             # This cannot be used for internal load balancing.
    531         "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.
    532             #
    533             # This cannot be used for internal load balancing.
    534         "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).
    535             #
    536             # This cannot be used for internal load balancing.
    537       },
    538     ],
    539     "timeoutSec": 42, # How many seconds to wait for the backend before considering it a failed request. Default is 30 seconds.
    540     "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.
    541     "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.
    542         # 
    543         # When the load balancing scheme is INTERNAL, this field is not used.
    544     "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.
    545         # 
    546         # For internal load balancing, a URL to a HealthCheck resource must be specified instead.
    547       "A String",
    548     ],
    549     "sessionAffinity": "A String", # Type of session affinity to use. The default is NONE.
    550         # 
    551         # When the load balancing scheme is EXTERNAL, can be NONE, CLIENT_IP, or GENERATED_COOKIE.
    552         # 
    553         # When the load balancing scheme is INTERNAL, can be NONE, CLIENT_IP, CLIENT_IP_PROTO, or CLIENT_IP_PORT_PROTO.
    554         # 
    555         # When the protocol is UDP, this field is not used.
    556     "creationTimestamp": "A String", # [Output Only] Creation timestamp in RFC3339 text format.
    557     "iap": { # Identity-Aware Proxy
    558       "oauth2ClientId": "A String",
    559       "enabled": True or False,
    560       "oauth2ClientSecret": "A String",
    561       "oauth2ClientSecretSha256": "A String", # [Output Only] SHA256 hash value for the field oauth2_client_secret above.
    562     },
    563     "selfLink": "A String", # [Output Only] Server-defined URL for the resource.
    564     "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.
    565   }
    566 
    567 
    568 Returns:
    569   An object of the form:
    570 
    571     { # An Operation resource, used to manage asynchronous API requests.
    572     "targetId": "A String", # [Output Only] The unique target ID, which identifies a specific incarnation of the target resource.
    573     "clientOperationId": "A String", # [Output Only] Reserved for future use.
    574     "creationTimestamp": "A String", # [Deprecated] This field is deprecated.
    575     "id": "A String", # [Output Only] The unique identifier for the resource. This identifier is defined by the server.
    576     "zone": "A String", # [Output Only] The URL of the zone where the operation resides. Only available when performing per-zone operations.
    577     "insertTime": "A String", # [Output Only] The time that this operation was requested. This value is in RFC3339 text format.
    578     "operationType": "A String", # [Output Only] The type of operation, such as insert, update, or delete, and so on.
    579     "httpErrorMessage": "A String", # [Output Only] If the operation fails, this field contains the HTTP error message that was returned, such as NOT FOUND.
    580     "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.
    581     "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.
    582     "statusMessage": "A String", # [Output Only] An optional textual description of the current status of the operation.
    583     "status": "A String", # [Output Only] The status of the operation, which can be one of the following: PENDING, RUNNING, or DONE.
    584     "description": "A String", # [Output Only] A textual description of the operation, which is set when the operation is created.
    585     "warnings": [ # [Output Only] If warning messages are generated during processing of the operation, this field will be populated.
    586       {
    587         "message": "A String", # [Output Only] A human-readable description of the warning code.
    588         "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.
    589         "data": [ # [Output Only] Metadata about this warning in key: value format. For example:
    590             # "data": [ { "key": "scope", "value": "zones/us-east1-d" }
    591           {
    592             "value": "A String", # [Output Only] A warning data value corresponding to the key.
    593             "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).
    594           },
    595         ],
    596       },
    597     ],
    598     "user": "A String", # [Output Only] User who requested the operation, for example: user (a] example.com.
    599     "startTime": "A String", # [Output Only] The time that this operation was started by the server. This value is in RFC3339 text format.
    600     "kind": "compute#operation", # [Output Only] Type of the resource. Always compute#operation for Operation resources.
    601     "name": "A String", # [Output Only] Name of the resource.
    602     "region": "A String", # [Output Only] The URL of the region where the operation resides. Only available when performing regional operations.
    603     "error": { # [Output Only] If errors are generated during processing of the operation, this field will be populated.
    604       "errors": [ # [Output Only] The array of errors encountered while processing this operation.
    605         {
    606           "message": "A String", # [Output Only] An optional, human-readable error message.
    607           "code": "A String", # [Output Only] The error type identifier for this error.
    608           "location": "A String", # [Output Only] Indicates the field in the request that caused the error. This property is optional.
    609         },
    610       ],
    611     },
    612     "endTime": "A String", # [Output Only] The time that this operation was completed. This value is in RFC3339 text format.
    613     "selfLink": "A String", # [Output Only] Server-defined URL for the resource.
    614     "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.
    615   }</pre>
    616 </div>
    617 
    618 <div class="method">
    619     <code class="details" id="list">list(project, orderBy=None, maxResults=None, pageToken=None, filter=None)</code>
    620   <pre>Retrieves the list of BackendService resources available to the specified project.
    621 
    622 Args:
    623   project: string, Project ID for this request. (required)
    624   orderBy: string, Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name.
    625 
    626 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.
    627 
    628 Currently, only sorting by name or creationTimestamp desc is supported.
    629   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)
    630   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.
    631   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.
    632 
    633 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.
    634 
    635 For example, to filter for instances that do not have a name of example-instance, you would use filter=name ne example-instance.
    636 
    637 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.
    638 
    639 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.
    640 
    641 Returns:
    642   An object of the form:
    643 
    644     { # Contains a list of BackendService resources.
    645     "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.
    646     "items": [ # A list of BackendService resources.
    647       { # A BackendService resource. This resource defines a group of backend virtual machines and their serving capacity.
    648           "connectionDraining": { # Message containing connection draining configuration.
    649             "drainingTimeoutSec": 42, # Time for which instance will be drained (not accept new connections, but still work to finish started).
    650           },
    651           "kind": "compute#backendService", # [Output Only] Type of resource. Always compute#backendService for backend services.
    652           "protocol": "A String", # The protocol this BackendService uses to communicate with backends.
    653               #
    654               # Possible values are HTTP, HTTPS, TCP, and SSL. The default is HTTP.
    655               #
    656               # For internal load balancing, the possible values are TCP and UDP, and the default is TCP.
    657           "description": "A String", # An optional description of this resource. Provide this property when you create the resource.
    658           "cdnPolicy": { # Message containing Cloud CDN configuration for a backend service. # Cloud CDN configuration for this BackendService.
    659             "cacheKeyPolicy": { # Message containing what to include in the cache key for a request for Cloud CDN. # The CacheKeyPolicy for this CdnPolicy.
    660               "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.
    661               "includeHost": True or False, # If true, requests to different hosts will be cached separately.
    662               "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.
    663                 "A String",
    664               ],
    665               "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.
    666                 "A String",
    667               ],
    668               "includeProtocol": True or False, # If true, http and https requests will be cached separately.
    669             },
    670           },
    671           "enableCDN": True or False, # If true, enable Cloud CDN for this BackendService.
    672               #
    673               # When the load balancing scheme is INTERNAL, this field is not used.
    674           "region": "A String", # [Output Only] URL of the region where the regional backend service resides. This field is not applicable to global backend services.
    675           "loadBalancingScheme": "A String",
    676           "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.
    677               #
    678               # When the load balancing scheme is INTERNAL, this field is not used.
    679           "id": "A String", # [Output Only] The unique identifier for the resource. This identifier is defined by the server.
    680           "port": 42, # Deprecated in favor of portName. The TCP port to connect on the backend. The default value is 80.
    681               #
    682               # This cannot be used for internal load balancing.
    683           "backends": [ # The list of backends that serve this BackendService.
    684             { # Message containing information of one individual backend.
    685               "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.
    686                   #
    687                   # Note that you must specify an Instance Group resource using the fully-qualified URL, rather than a partial URL.
    688                   #
    689                   # When the BackendService has load balancing scheme INTERNAL, the instance group must be in a zone within the same region as the BackendService.
    690               "description": "A String", # An optional description of this resource. Provide this property when you create the resource.
    691               "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].
    692                   #
    693                   # This cannot be used for internal load balancing.
    694               "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.
    695                   #
    696                   # This cannot be used for internal load balancing.
    697               "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.
    698                   #
    699                   # This cannot be used for internal load balancing.
    700               "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].
    701                   #
    702                   # This cannot be used for internal load balancing.
    703               "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.
    704                   #
    705                   # This cannot be used for internal load balancing.
    706               "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.
    707                   #
    708                   # This cannot be used for internal load balancing.
    709               "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).
    710                   #
    711                   # This cannot be used for internal load balancing.
    712             },
    713           ],
    714           "timeoutSec": 42, # How many seconds to wait for the backend before considering it a failed request. Default is 30 seconds.
    715           "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.
    716           "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.
    717               #
    718               # When the load balancing scheme is INTERNAL, this field is not used.
    719           "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.
    720               #
    721               # For internal load balancing, a URL to a HealthCheck resource must be specified instead.
    722             "A String",
    723           ],
    724           "sessionAffinity": "A String", # Type of session affinity to use. The default is NONE.
    725               #
    726               # When the load balancing scheme is EXTERNAL, can be NONE, CLIENT_IP, or GENERATED_COOKIE.
    727               #
    728               # When the load balancing scheme is INTERNAL, can be NONE, CLIENT_IP, CLIENT_IP_PROTO, or CLIENT_IP_PORT_PROTO.
    729               #
    730               # When the protocol is UDP, this field is not used.
    731           "creationTimestamp": "A String", # [Output Only] Creation timestamp in RFC3339 text format.
    732           "iap": { # Identity-Aware Proxy
    733             "oauth2ClientId": "A String",
    734             "enabled": True or False,
    735             "oauth2ClientSecret": "A String",
    736             "oauth2ClientSecretSha256": "A String", # [Output Only] SHA256 hash value for the field oauth2_client_secret above.
    737           },
    738           "selfLink": "A String", # [Output Only] Server-defined URL for the resource.
    739           "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.
    740         },
    741     ],
    742     "kind": "compute#backendServiceList", # [Output Only] Type of resource. Always compute#backendServiceList for lists of backend services.
    743     "id": "A String", # [Output Only] Unique identifier for the resource; defined by the server.
    744     "selfLink": "A String", # [Output Only] Server-defined URL for this resource.
    745   }</pre>
    746 </div>
    747 
    748 <div class="method">
    749     <code class="details" id="list_next">list_next(previous_request, previous_response)</code>
    750   <pre>Retrieves the next page of results.
    751 
    752 Args:
    753   previous_request: The request for the previous page. (required)
    754   previous_response: The response from the request for the previous page. (required)
    755 
    756 Returns:
    757   A request object that you can call 'execute()' on to request the next
    758   page. Returns None if there are no more items in the collection.
    759     </pre>
    760 </div>
    761 
    762 <div class="method">
    763     <code class="details" id="patch">patch(project, backendService, body)</code>
    764   <pre>Patches the specified BackendService resource with the data included in the request. There are several restrictions and guidelines to keep in mind when updating a backend service. Read  Restrictions and Guidelines for more information. This method supports patch semantics.
    765 
    766 Args:
    767   project: string, Project ID for this request. (required)
    768   backendService: string, Name of the BackendService resource to patch. (required)
    769   body: object, The request body. (required)
    770     The object takes the form of:
    771 
    772 { # A BackendService resource. This resource defines a group of backend virtual machines and their serving capacity.
    773     "connectionDraining": { # Message containing connection draining configuration.
    774       "drainingTimeoutSec": 42, # Time for which instance will be drained (not accept new connections, but still work to finish started).
    775     },
    776     "kind": "compute#backendService", # [Output Only] Type of resource. Always compute#backendService for backend services.
    777     "protocol": "A String", # The protocol this BackendService uses to communicate with backends.
    778         # 
    779         # Possible values are HTTP, HTTPS, TCP, and SSL. The default is HTTP.
    780         # 
    781         # For internal load balancing, the possible values are TCP and UDP, and the default is TCP.
    782     "description": "A String", # An optional description of this resource. Provide this property when you create the resource.
    783     "cdnPolicy": { # Message containing Cloud CDN configuration for a backend service. # Cloud CDN configuration for this BackendService.
    784       "cacheKeyPolicy": { # Message containing what to include in the cache key for a request for Cloud CDN. # The CacheKeyPolicy for this CdnPolicy.
    785         "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.
    786         "includeHost": True or False, # If true, requests to different hosts will be cached separately.
    787         "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.
    788           "A String",
    789         ],
    790         "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.
    791           "A String",
    792         ],
    793         "includeProtocol": True or False, # If true, http and https requests will be cached separately.
    794       },
    795     },
    796     "enableCDN": True or False, # If true, enable Cloud CDN for this BackendService.
    797         # 
    798         # When the load balancing scheme is INTERNAL, this field is not used.
    799     "region": "A String", # [Output Only] URL of the region where the regional backend service resides. This field is not applicable to global backend services.
    800     "loadBalancingScheme": "A String",
    801     "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.
    802         # 
    803         # When the load balancing scheme is INTERNAL, this field is not used.
    804     "id": "A String", # [Output Only] The unique identifier for the resource. This identifier is defined by the server.
    805     "port": 42, # Deprecated in favor of portName. The TCP port to connect on the backend. The default value is 80.
    806         # 
    807         # This cannot be used for internal load balancing.
    808     "backends": [ # The list of backends that serve this BackendService.
    809       { # Message containing information of one individual backend.
    810         "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.
    811             #
    812             # Note that you must specify an Instance Group resource using the fully-qualified URL, rather than a partial URL.
    813             #
    814             # When the BackendService has load balancing scheme INTERNAL, the instance group must be in a zone within the same region as the BackendService.
    815         "description": "A String", # An optional description of this resource. Provide this property when you create the resource.
    816         "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].
    817             #
    818             # This cannot be used for internal load balancing.
    819         "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.
    820             #
    821             # This cannot be used for internal load balancing.
    822         "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.
    823             #
    824             # This cannot be used for internal load balancing.
    825         "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].
    826             #
    827             # This cannot be used for internal load balancing.
    828         "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.
    829             #
    830             # This cannot be used for internal load balancing.
    831         "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.
    832             #
    833             # This cannot be used for internal load balancing.
    834         "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).
    835             #
    836             # This cannot be used for internal load balancing.
    837       },
    838     ],
    839     "timeoutSec": 42, # How many seconds to wait for the backend before considering it a failed request. Default is 30 seconds.
    840     "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.
    841     "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.
    842         # 
    843         # When the load balancing scheme is INTERNAL, this field is not used.
    844     "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.
    845         # 
    846         # For internal load balancing, a URL to a HealthCheck resource must be specified instead.
    847       "A String",
    848     ],
    849     "sessionAffinity": "A String", # Type of session affinity to use. The default is NONE.
    850         # 
    851         # When the load balancing scheme is EXTERNAL, can be NONE, CLIENT_IP, or GENERATED_COOKIE.
    852         # 
    853         # When the load balancing scheme is INTERNAL, can be NONE, CLIENT_IP, CLIENT_IP_PROTO, or CLIENT_IP_PORT_PROTO.
    854         # 
    855         # When the protocol is UDP, this field is not used.
    856     "creationTimestamp": "A String", # [Output Only] Creation timestamp in RFC3339 text format.
    857     "iap": { # Identity-Aware Proxy
    858       "oauth2ClientId": "A String",
    859       "enabled": True or False,
    860       "oauth2ClientSecret": "A String",
    861       "oauth2ClientSecretSha256": "A String", # [Output Only] SHA256 hash value for the field oauth2_client_secret above.
    862     },
    863     "selfLink": "A String", # [Output Only] Server-defined URL for the resource.
    864     "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.
    865   }
    866 
    867 
    868 Returns:
    869   An object of the form:
    870 
    871     { # An Operation resource, used to manage asynchronous API requests.
    872     "targetId": "A String", # [Output Only] The unique target ID, which identifies a specific incarnation of the target resource.
    873     "clientOperationId": "A String", # [Output Only] Reserved for future use.
    874     "creationTimestamp": "A String", # [Deprecated] This field is deprecated.
    875     "id": "A String", # [Output Only] The unique identifier for the resource. This identifier is defined by the server.
    876     "zone": "A String", # [Output Only] The URL of the zone where the operation resides. Only available when performing per-zone operations.
    877     "insertTime": "A String", # [Output Only] The time that this operation was requested. This value is in RFC3339 text format.
    878     "operationType": "A String", # [Output Only] The type of operation, such as insert, update, or delete, and so on.
    879     "httpErrorMessage": "A String", # [Output Only] If the operation fails, this field contains the HTTP error message that was returned, such as NOT FOUND.
    880     "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.
    881     "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.
    882     "statusMessage": "A String", # [Output Only] An optional textual description of the current status of the operation.
    883     "status": "A String", # [Output Only] The status of the operation, which can be one of the following: PENDING, RUNNING, or DONE.
    884     "description": "A String", # [Output Only] A textual description of the operation, which is set when the operation is created.
    885     "warnings": [ # [Output Only] If warning messages are generated during processing of the operation, this field will be populated.
    886       {
    887         "message": "A String", # [Output Only] A human-readable description of the warning code.
    888         "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.
    889         "data": [ # [Output Only] Metadata about this warning in key: value format. For example:
    890             # "data": [ { "key": "scope", "value": "zones/us-east1-d" }
    891           {
    892             "value": "A String", # [Output Only] A warning data value corresponding to the key.
    893             "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).
    894           },
    895         ],
    896       },
    897     ],
    898     "user": "A String", # [Output Only] User who requested the operation, for example: user (a] example.com.
    899     "startTime": "A String", # [Output Only] The time that this operation was started by the server. This value is in RFC3339 text format.
    900     "kind": "compute#operation", # [Output Only] Type of the resource. Always compute#operation for Operation resources.
    901     "name": "A String", # [Output Only] Name of the resource.
    902     "region": "A String", # [Output Only] The URL of the region where the operation resides. Only available when performing regional operations.
    903     "error": { # [Output Only] If errors are generated during processing of the operation, this field will be populated.
    904       "errors": [ # [Output Only] The array of errors encountered while processing this operation.
    905         {
    906           "message": "A String", # [Output Only] An optional, human-readable error message.
    907           "code": "A String", # [Output Only] The error type identifier for this error.
    908           "location": "A String", # [Output Only] Indicates the field in the request that caused the error. This property is optional.
    909         },
    910       ],
    911     },
    912     "endTime": "A String", # [Output Only] The time that this operation was completed. This value is in RFC3339 text format.
    913     "selfLink": "A String", # [Output Only] Server-defined URL for the resource.
    914     "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.
    915   }</pre>
    916 </div>
    917 
    918 <div class="method">
    919     <code class="details" id="update">update(project, backendService, body)</code>
    920   <pre>Updates the specified BackendService resource with the data included in the request. There are several restrictions and guidelines to keep in mind when updating a backend service. Read  Restrictions and Guidelines for more information.
    921 
    922 Args:
    923   project: string, Project ID for this request. (required)
    924   backendService: string, Name of the BackendService resource to update. (required)
    925   body: object, The request body. (required)
    926     The object takes the form of:
    927 
    928 { # A BackendService resource. This resource defines a group of backend virtual machines and their serving capacity.
    929     "connectionDraining": { # Message containing connection draining configuration.
    930       "drainingTimeoutSec": 42, # Time for which instance will be drained (not accept new connections, but still work to finish started).
    931     },
    932     "kind": "compute#backendService", # [Output Only] Type of resource. Always compute#backendService for backend services.
    933     "protocol": "A String", # The protocol this BackendService uses to communicate with backends.
    934         # 
    935         # Possible values are HTTP, HTTPS, TCP, and SSL. The default is HTTP.
    936         # 
    937         # For internal load balancing, the possible values are TCP and UDP, and the default is TCP.
    938     "description": "A String", # An optional description of this resource. Provide this property when you create the resource.
    939     "cdnPolicy": { # Message containing Cloud CDN configuration for a backend service. # Cloud CDN configuration for this BackendService.
    940       "cacheKeyPolicy": { # Message containing what to include in the cache key for a request for Cloud CDN. # The CacheKeyPolicy for this CdnPolicy.
    941         "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.
    942         "includeHost": True or False, # If true, requests to different hosts will be cached separately.
    943         "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.
    944           "A String",
    945         ],
    946         "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.
    947           "A String",
    948         ],
    949         "includeProtocol": True or False, # If true, http and https requests will be cached separately.
    950       },
    951     },
    952     "enableCDN": True or False, # If true, enable Cloud CDN for this BackendService.
    953         # 
    954         # When the load balancing scheme is INTERNAL, this field is not used.
    955     "region": "A String", # [Output Only] URL of the region where the regional backend service resides. This field is not applicable to global backend services.
    956     "loadBalancingScheme": "A String",
    957     "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.
    958         # 
    959         # When the load balancing scheme is INTERNAL, this field is not used.
    960     "id": "A String", # [Output Only] The unique identifier for the resource. This identifier is defined by the server.
    961     "port": 42, # Deprecated in favor of portName. The TCP port to connect on the backend. The default value is 80.
    962         # 
    963         # This cannot be used for internal load balancing.
    964     "backends": [ # The list of backends that serve this BackendService.
    965       { # Message containing information of one individual backend.
    966         "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.
    967             #
    968             # Note that you must specify an Instance Group resource using the fully-qualified URL, rather than a partial URL.
    969             #
    970             # When the BackendService has load balancing scheme INTERNAL, the instance group must be in a zone within the same region as the BackendService.
    971         "description": "A String", # An optional description of this resource. Provide this property when you create the resource.
    972         "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].
    973             #
    974             # This cannot be used for internal load balancing.
    975         "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.
    976             #
    977             # This cannot be used for internal load balancing.
    978         "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.
    979             #
    980             # This cannot be used for internal load balancing.
    981         "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].
    982             #
    983             # This cannot be used for internal load balancing.
    984         "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.
    985             #
    986             # This cannot be used for internal load balancing.
    987         "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.
    988             #
    989             # This cannot be used for internal load balancing.
    990         "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).
    991             #
    992             # This cannot be used for internal load balancing.
    993       },
    994     ],
    995     "timeoutSec": 42, # How many seconds to wait for the backend before considering it a failed request. Default is 30 seconds.
    996     "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.
    997     "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.
    998         # 
    999         # When the load balancing scheme is INTERNAL, this field is not used.
   1000     "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.
   1001         # 
   1002         # For internal load balancing, a URL to a HealthCheck resource must be specified instead.
   1003       "A String",
   1004     ],
   1005     "sessionAffinity": "A String", # Type of session affinity to use. The default is NONE.
   1006         # 
   1007         # When the load balancing scheme is EXTERNAL, can be NONE, CLIENT_IP, or GENERATED_COOKIE.
   1008         # 
   1009         # When the load balancing scheme is INTERNAL, can be NONE, CLIENT_IP, CLIENT_IP_PROTO, or CLIENT_IP_PORT_PROTO.
   1010         # 
   1011         # When the protocol is UDP, this field is not used.
   1012     "creationTimestamp": "A String", # [Output Only] Creation timestamp in RFC3339 text format.
   1013     "iap": { # Identity-Aware Proxy
   1014       "oauth2ClientId": "A String",
   1015       "enabled": True or False,
   1016       "oauth2ClientSecret": "A String",
   1017       "oauth2ClientSecretSha256": "A String", # [Output Only] SHA256 hash value for the field oauth2_client_secret above.
   1018     },
   1019     "selfLink": "A String", # [Output Only] Server-defined URL for the resource.
   1020     "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.
   1021   }
   1022 
   1023 
   1024 Returns:
   1025   An object of the form:
   1026 
   1027     { # An Operation resource, used to manage asynchronous API requests.
   1028     "targetId": "A String", # [Output Only] The unique target ID, which identifies a specific incarnation of the target resource.
   1029     "clientOperationId": "A String", # [Output Only] Reserved for future use.
   1030     "creationTimestamp": "A String", # [Deprecated] This field is deprecated.
   1031     "id": "A String", # [Output Only] The unique identifier for the resource. This identifier is defined by the server.
   1032     "zone": "A String", # [Output Only] The URL of the zone where the operation resides. Only available when performing per-zone operations.
   1033     "insertTime": "A String", # [Output Only] The time that this operation was requested. This value is in RFC3339 text format.
   1034     "operationType": "A String", # [Output Only] The type of operation, such as insert, update, or delete, and so on.
   1035     "httpErrorMessage": "A String", # [Output Only] If the operation fails, this field contains the HTTP error message that was returned, such as NOT FOUND.
   1036     "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.
   1037     "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.
   1038     "statusMessage": "A String", # [Output Only] An optional textual description of the current status of the operation.
   1039     "status": "A String", # [Output Only] The status of the operation, which can be one of the following: PENDING, RUNNING, or DONE.
   1040     "description": "A String", # [Output Only] A textual description of the operation, which is set when the operation is created.
   1041     "warnings": [ # [Output Only] If warning messages are generated during processing of the operation, this field will be populated.
   1042       {
   1043         "message": "A String", # [Output Only] A human-readable description of the warning code.
   1044         "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.
   1045         "data": [ # [Output Only] Metadata about this warning in key: value format. For example:
   1046             # "data": [ { "key": "scope", "value": "zones/us-east1-d" }
   1047           {
   1048             "value": "A String", # [Output Only] A warning data value corresponding to the key.
   1049             "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).
   1050           },
   1051         ],
   1052       },
   1053     ],
   1054     "user": "A String", # [Output Only] User who requested the operation, for example: user (a] example.com.
   1055     "startTime": "A String", # [Output Only] The time that this operation was started by the server. This value is in RFC3339 text format.
   1056     "kind": "compute#operation", # [Output Only] Type of the resource. Always compute#operation for Operation resources.
   1057     "name": "A String", # [Output Only] Name of the resource.
   1058     "region": "A String", # [Output Only] The URL of the region where the operation resides. Only available when performing regional operations.
   1059     "error": { # [Output Only] If errors are generated during processing of the operation, this field will be populated.
   1060       "errors": [ # [Output Only] The array of errors encountered while processing this operation.
   1061         {
   1062           "message": "A String", # [Output Only] An optional, human-readable error message.
   1063           "code": "A String", # [Output Only] The error type identifier for this error.
   1064           "location": "A String", # [Output Only] Indicates the field in the request that caused the error. This property is optional.
   1065         },
   1066       ],
   1067     },
   1068     "endTime": "A String", # [Output Only] The time that this operation was completed. This value is in RFC3339 text format.
   1069     "selfLink": "A String", # [Output Only] Server-defined URL for the resource.
   1070     "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.
   1071   }</pre>
   1072 </div>
   1073 
   1074 </body></html>