• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1<html><body>
2<style>
3
4body, h1, h2, h3, div, span, p, pre, a {
5  margin: 0;
6  padding: 0;
7  border: 0;
8  font-weight: inherit;
9  font-style: inherit;
10  font-size: 100%;
11  font-family: inherit;
12  vertical-align: baseline;
13}
14
15body {
16  font-size: 13px;
17  padding: 1em;
18}
19
20h1 {
21  font-size: 26px;
22  margin-bottom: 1em;
23}
24
25h2 {
26  font-size: 24px;
27  margin-bottom: 1em;
28}
29
30h3 {
31  font-size: 20px;
32  margin-bottom: 1em;
33  margin-top: 1em;
34}
35
36pre, code {
37  line-height: 1.5;
38  font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace;
39}
40
41pre {
42  margin-top: 0.5em;
43}
44
45h1, h2, h3, p {
46  font-family: Arial, sans serif;
47}
48
49h1, h2, h3 {
50  border-bottom: solid #CCC 1px;
51}
52
53.toc_element {
54  margin-top: 0.5em;
55}
56
57.firstline {
58  margin-left: 2 em;
59}
60
61.method  {
62  margin-top: 1em;
63  border: solid 1px #CCC;
64  padding: 1em;
65  background: #EEE;
66}
67
68.details {
69  font-weight: bold;
70  font-size: 14px;
71}
72
73</style>
74
75<h1><a href="compute_alpha.html">Compute Engine API</a> . <a href="compute_alpha.forwardingRules.html">forwardingRules</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 an aggregated list of forwarding rules.</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, region, forwardingRule, requestId=None)</a></code></p>
85<p class="firstline">Deletes the specified ForwardingRule resource.</p>
86<p class="toc_element">
87  <code><a href="#get">get(project, region, forwardingRule)</a></code></p>
88<p class="firstline">Returns the specified ForwardingRule resource.</p>
89<p class="toc_element">
90  <code><a href="#insert">insert(project, region, body, requestId=None)</a></code></p>
91<p class="firstline">Creates a ForwardingRule resource in the specified project and region using the data included in the request.</p>
92<p class="toc_element">
93  <code><a href="#list">list(project, region, orderBy=None, maxResults=None, pageToken=None, filter=None)</a></code></p>
94<p class="firstline">Retrieves a list of ForwardingRule resources available to the specified project and region.</p>
95<p class="toc_element">
96  <code><a href="#list_next">list_next(previous_request, previous_response)</a></code></p>
97<p class="firstline">Retrieves the next page of results.</p>
98<p class="toc_element">
99  <code><a href="#patch">patch(project, region, forwardingRule, body, requestId=None)</a></code></p>
100<p class="firstline">Updates the specified forwarding rule with the data included in the request. This method supports patch semantics. Currently it only allow to patch network_tier field.</p>
101<p class="toc_element">
102  <code><a href="#setLabels">setLabels(project, region, resource, body, requestId=None)</a></code></p>
103<p class="firstline">Sets the labels on the specified resource. To learn more about labels, read the Labeling or Tagging Resources documentation.</p>
104<p class="toc_element">
105  <code><a href="#setTarget">setTarget(project, region, forwardingRule, body, requestId=None)</a></code></p>
106<p class="firstline">Changes target URL for forwarding rule. The new target should be of the same type as the old target.</p>
107<p class="toc_element">
108  <code><a href="#testIamPermissions">testIamPermissions(project, region, resource, body)</a></code></p>
109<p class="firstline">Returns permissions that a caller has on the specified resource.</p>
110<h3>Method Details</h3>
111<div class="method">
112    <code class="details" id="aggregatedList">aggregatedList(project, orderBy=None, maxResults=None, pageToken=None, filter=None)</code>
113  <pre>Retrieves an aggregated list of forwarding rules.
114
115Args:
116  project: string, Project ID for this request. (required)
117  orderBy: string, Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name.
118
119You can also sort results in descending order based on the creation timestamp using orderBy="creationTimestamp desc". This sorts results based on the creationTimestamp field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first.
120
121Currently, only sorting by name or creationTimestamp desc is supported.
122  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)
123  pageToken: string, Specifies a page token to use. Set pageToken to the nextPageToken returned by a previous list request to get the next page of results.
124  filter: string, Sets a filter expression for filtering listed resources, in the form filter={expression}. Your {expression} must be in the format: field_name comparison_string literal_string.
125
126The field_name is the name of the field you want to compare. Only atomic field types are supported (string, number, boolean). The comparison_string must be either eq (equals) or ne (not equals). The literal_string is the string value to filter to. The literal value must be valid for the type of field you are filtering by (string, number, boolean). For string fields, the literal value is interpreted as a regular expression using RE2 syntax. The literal value must match the entire field.
127
128For example, to filter for instances that do not have a name of example-instance, you would use filter=name ne example-instance.
129
130You can filter on nested fields. For example, you could filter on instances that have set the scheduling.automaticRestart field to true. Use filtering on nested fields to take advantage of labels to organize and search for results based on label values.
131
132To filter on multiple expressions, provide each separate expression within parentheses. For example, (scheduling.automaticRestart eq true) (zone eq us-central1-f). Multiple expressions are treated as AND expressions, meaning that resources must match all expressions to pass the filters.
133
134Returns:
135  An object of the form:
136
137    {
138    "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.
139    "items": { # A map of scoped forwarding rule lists.
140      "a_key": { # Name of the scope containing this set of addresses.
141        "forwardingRules": [ # List of forwarding rules contained in this scope.
142          { # A ForwardingRule resource. A ForwardingRule resource specifies which pool of target virtual machines to forward a packet to if it matches the given [IPAddress, IPProtocol, ports] tuple.
143              "labels": { # Labels to apply to this resource. These can be later modified by the setLabels method. Each label key/value pair must comply with RFC1035. Label values may be empty.
144                "a_key": "A String",
145              },
146              "ipVersion": "A String", # The IP Version that will be used by this forwarding rule. Valid options are IPV4 or IPV6. This can only be specified for a global forwarding rule.
147              "loadBalancingScheme": "A String", # This signifies what the ForwardingRule will be used for and can only take the following values: INTERNAL, EXTERNAL The value of INTERNAL means that this will be used for Internal Network Load Balancing (TCP, UDP). The value of EXTERNAL means that this will be used for External Load Balancing (HTTP(S) LB, External TCP/UDP LB, SSL Proxy)
148              "IPProtocol": "A String", # The IP protocol to which this rule applies. Valid options are TCP, UDP, ESP, AH, SCTP or ICMP.
149                  #
150                  # When the load balancing scheme is INTERNAL, only TCP and UDP are valid.
151              "creationTimestamp": "A String", # [Output Only] Creation timestamp in RFC3339 text format.
152              "id": "A String", # [Output Only] The unique identifier for the resource. This identifier is defined by the server.
153              "network": "A String", # This field is not used for external load balancing.
154                  #
155                  # For internal load balancing, this field identifies the network that the load balanced IP should belong to for this Forwarding Rule. If this field is not specified, the default network will be used.
156              "portRange": "A String", # This field is used along with the target field for TargetHttpProxy, TargetHttpsProxy, TargetSslProxy, TargetTcpProxy, TargetVpnGateway, TargetPool, TargetInstance.
157                  #
158                  # Applicable only when IPProtocol is TCP, UDP, or SCTP, only packets addressed to ports in the specified range will be forwarded to target. Forwarding rules with the same [IPAddress, IPProtocol] pair must have disjoint port ranges.
159                  #
160                  # Some types of forwarding target have constraints on the acceptable ports:
161                  # - TargetHttpProxy: 80, 8080
162                  # - TargetHttpsProxy: 443
163                  # - TargetSslProxy: 443
164                  # - TargetVpnGateway: 500, 4500
165                  # -
166              "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.
167              "serviceName": "A String", # [Output Only] The internal fully qualified service name for this Forwarding Rule.
168                  #
169                  # This field is only used for internal load balancing.
170              "backendService": "A String", # This field is not used for external load balancing.
171                  #
172                  # For internal load balancing, this field identifies the BackendService resource to receive the matched traffic.
173              "IPAddress": "A String", # The IP address that this forwarding rule is serving on behalf of.
174                  #
175                  # For global forwarding rules, the address must be a global IP. For regional forwarding rules, the address must live in the same region as the forwarding rule. By default, this field is empty and an ephemeral IPv4 address from the same scope (global or regional) will be assigned. A regional forwarding rule supports IPv4 only. A global forwarding rule supports either IPv4 or IPv6.
176                  #
177                  # When the load balancing scheme is INTERNAL, this can only be an RFC 1918 IP address belonging to the network/subnetwork configured for the forwarding rule. A reserved address cannot be used. If the field is empty, the IP address will be automatically allocated from the internal IP range of the subnetwork or network configured for this forwarding rule.
178              "description": "A String", # An optional description of this resource. Provide this property when you create the resource.
179              "labelFingerprint": "A String", # A fingerprint for the labels being applied to this resource, which is essentially a hash of the labels set used for optimistic locking. The fingerprint is initially generated by Compute Engine and changes after every request to modify or update labels. You must always provide an up-to-date fingerprint hash in order to update or change labels.
180                  #
181                  # To see the latest fingerprint, make a get() request to retrieve a ForwardingRule.
182              "serviceLabel": "A String", # An optional prefix to the service name for this Forwarding Rule. If specified, will be the first label of the fully qualified service name.
183                  #
184                  # The label must be 1-63 characters long, and comply with RFC1035. Specifically, the label 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.
185                  #
186                  # This field is only used for internal load balancing.
187              "kind": "compute#forwardingRule", # [Output Only] Type of the resource. Always compute#forwardingRule for Forwarding Rule resources.
188              "target": "A String", # The URL of the target resource to receive the matched traffic. For regional forwarding rules, this target must live in the same region as the forwarding rule. For global forwarding rules, this target must be a global load balancing resource. The forwarded traffic must be of a type appropriate to the target object.
189                  #
190                  # This field is not used for internal load balancing.
191              "region": "A String", # [Output Only] URL of the region where the regional forwarding rule resides. This field is not applicable to global forwarding rules.
192              "networkTier": "A String", # This signifies the networking tier used for configuring this load balancer and can only take the following values: PREMIUM , SELECT. If this field is not specified, it is assumed to be PREMIUM.
193              "subnetwork": "A String", # This field is not used for external load balancing.
194                  #
195                  # For internal load balancing, this field identifies the subnetwork that the load balanced IP should belong to for this Forwarding Rule.
196                  #
197                  # If the network specified is in auto subnet mode, this field is optional. However, if the network is in custom subnet mode, a subnetwork must be specified.
198              "ports": [ # This field is used along with the backend_service field for internal load balancing.
199                  #
200                  # When the load balancing scheme is INTERNAL, a single port or a comma separated list of ports can be configured. Only packets addressed to these ports will be forwarded to the backends configured with this forwarding rule.
201                  #
202                  # You may specify a maximum of up to 5 ports.
203                "A String",
204              ],
205              "selfLink": "A String", # [Output Only] Server-defined URL for the resource.
206            },
207        ],
208        "warning": { # Informational warning which replaces the list of forwarding rules when the list is empty.
209          "message": "A String", # [Output Only] A human-readable description of the warning code.
210          "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.
211          "data": [ # [Output Only] Metadata about this warning in key: value format. For example:
212              # "data": [ { "key": "scope", "value": "zones/us-east1-d" }
213            {
214              "value": "A String", # [Output Only] A warning data value corresponding to the key.
215              "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).
216            },
217          ],
218        },
219      },
220    },
221    "kind": "compute#forwardingRuleAggregatedList", # [Output Only] Type of resource. Always compute#forwardingRuleAggregatedList for lists of forwarding rules.
222    "id": "A String", # [Output Only] The unique identifier for the resource. This identifier is defined by the server.
223    "selfLink": "A String", # [Output Only] Server-defined URL for this resource.
224  }</pre>
225</div>
226
227<div class="method">
228    <code class="details" id="aggregatedList_next">aggregatedList_next(previous_request, previous_response)</code>
229  <pre>Retrieves the next page of results.
230
231Args:
232  previous_request: The request for the previous page. (required)
233  previous_response: The response from the request for the previous page. (required)
234
235Returns:
236  A request object that you can call 'execute()' on to request the next
237  page. Returns None if there are no more items in the collection.
238    </pre>
239</div>
240
241<div class="method">
242    <code class="details" id="delete">delete(project, region, forwardingRule, requestId=None)</code>
243  <pre>Deletes the specified ForwardingRule resource.
244
245Args:
246  project: string, Project ID for this request. (required)
247  region: string, Name of the region scoping this request. (required)
248  forwardingRule: string, Name of the ForwardingRule resource to delete. (required)
249  requestId: string, begin_interface: MixerMutationRequestBuilder Request ID to support idempotency.
250
251Returns:
252  An object of the form:
253
254    { # An Operation resource, used to manage asynchronous API requests.
255    "targetId": "A String", # [Output Only] The unique target ID, which identifies a specific incarnation of the target resource.
256    "clientOperationId": "A String", # [Output Only] Reserved for future use.
257    "creationTimestamp": "A String", # [Deprecated] This field is deprecated.
258    "id": "A String", # [Output Only] The unique identifier for the resource. This identifier is defined by the server.
259    "zone": "A String", # [Output Only] The URL of the zone where the operation resides. Only available when performing per-zone operations.
260    "insertTime": "A String", # [Output Only] The time that this operation was requested. This value is in RFC3339 text format.
261    "operationType": "A String", # [Output Only] The type of operation, such as insert, update, or delete, and so on.
262    "httpErrorMessage": "A String", # [Output Only] If the operation fails, this field contains the HTTP error message that was returned, such as NOT FOUND.
263    "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.
264    "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.
265    "statusMessage": "A String", # [Output Only] An optional textual description of the current status of the operation.
266    "status": "A String", # [Output Only] The status of the operation, which can be one of the following: PENDING, RUNNING, or DONE.
267    "description": "A String", # [Output Only] A textual description of the operation, which is set when the operation is created.
268    "warnings": [ # [Output Only] If warning messages are generated during processing of the operation, this field will be populated.
269      {
270        "message": "A String", # [Output Only] A human-readable description of the warning code.
271        "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.
272        "data": [ # [Output Only] Metadata about this warning in key: value format. For example:
273            # "data": [ { "key": "scope", "value": "zones/us-east1-d" }
274          {
275            "value": "A String", # [Output Only] A warning data value corresponding to the key.
276            "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).
277          },
278        ],
279      },
280    ],
281    "user": "A String", # [Output Only] User who requested the operation, for example: user@example.com.
282    "startTime": "A String", # [Output Only] The time that this operation was started by the server. This value is in RFC3339 text format.
283    "kind": "compute#operation", # [Output Only] Type of the resource. Always compute#operation for Operation resources.
284    "name": "A String", # [Output Only] Name of the resource.
285    "region": "A String", # [Output Only] The URL of the region where the operation resides. Only available when performing regional operations.
286    "error": { # [Output Only] If errors are generated during processing of the operation, this field will be populated.
287      "errors": [ # [Output Only] The array of errors encountered while processing this operation.
288        {
289          "message": "A String", # [Output Only] An optional, human-readable error message.
290          "code": "A String", # [Output Only] The error type identifier for this error.
291          "location": "A String", # [Output Only] Indicates the field in the request that caused the error. This property is optional.
292        },
293      ],
294    },
295    "endTime": "A String", # [Output Only] The time that this operation was completed. This value is in RFC3339 text format.
296    "selfLink": "A String", # [Output Only] Server-defined URL for the resource.
297    "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.
298  }</pre>
299</div>
300
301<div class="method">
302    <code class="details" id="get">get(project, region, forwardingRule)</code>
303  <pre>Returns the specified ForwardingRule resource.
304
305Args:
306  project: string, Project ID for this request. (required)
307  region: string, Name of the region scoping this request. (required)
308  forwardingRule: string, Name of the ForwardingRule resource to return. (required)
309
310Returns:
311  An object of the form:
312
313    { # A ForwardingRule resource. A ForwardingRule resource specifies which pool of target virtual machines to forward a packet to if it matches the given [IPAddress, IPProtocol, ports] tuple.
314      "labels": { # Labels to apply to this resource. These can be later modified by the setLabels method. Each label key/value pair must comply with RFC1035. Label values may be empty.
315        "a_key": "A String",
316      },
317      "ipVersion": "A String", # The IP Version that will be used by this forwarding rule. Valid options are IPV4 or IPV6. This can only be specified for a global forwarding rule.
318      "loadBalancingScheme": "A String", # This signifies what the ForwardingRule will be used for and can only take the following values: INTERNAL, EXTERNAL The value of INTERNAL means that this will be used for Internal Network Load Balancing (TCP, UDP). The value of EXTERNAL means that this will be used for External Load Balancing (HTTP(S) LB, External TCP/UDP LB, SSL Proxy)
319      "IPProtocol": "A String", # The IP protocol to which this rule applies. Valid options are TCP, UDP, ESP, AH, SCTP or ICMP.
320          #
321          # When the load balancing scheme is INTERNAL, only TCP and UDP are valid.
322      "creationTimestamp": "A String", # [Output Only] Creation timestamp in RFC3339 text format.
323      "id": "A String", # [Output Only] The unique identifier for the resource. This identifier is defined by the server.
324      "network": "A String", # This field is not used for external load balancing.
325          #
326          # For internal load balancing, this field identifies the network that the load balanced IP should belong to for this Forwarding Rule. If this field is not specified, the default network will be used.
327      "portRange": "A String", # This field is used along with the target field for TargetHttpProxy, TargetHttpsProxy, TargetSslProxy, TargetTcpProxy, TargetVpnGateway, TargetPool, TargetInstance.
328          #
329          # Applicable only when IPProtocol is TCP, UDP, or SCTP, only packets addressed to ports in the specified range will be forwarded to target. Forwarding rules with the same [IPAddress, IPProtocol] pair must have disjoint port ranges.
330          #
331          # Some types of forwarding target have constraints on the acceptable ports:
332          # - TargetHttpProxy: 80, 8080
333          # - TargetHttpsProxy: 443
334          # - TargetSslProxy: 443
335          # - TargetVpnGateway: 500, 4500
336          # -
337      "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.
338      "serviceName": "A String", # [Output Only] The internal fully qualified service name for this Forwarding Rule.
339          #
340          # This field is only used for internal load balancing.
341      "backendService": "A String", # This field is not used for external load balancing.
342          #
343          # For internal load balancing, this field identifies the BackendService resource to receive the matched traffic.
344      "IPAddress": "A String", # The IP address that this forwarding rule is serving on behalf of.
345          #
346          # For global forwarding rules, the address must be a global IP. For regional forwarding rules, the address must live in the same region as the forwarding rule. By default, this field is empty and an ephemeral IPv4 address from the same scope (global or regional) will be assigned. A regional forwarding rule supports IPv4 only. A global forwarding rule supports either IPv4 or IPv6.
347          #
348          # When the load balancing scheme is INTERNAL, this can only be an RFC 1918 IP address belonging to the network/subnetwork configured for the forwarding rule. A reserved address cannot be used. If the field is empty, the IP address will be automatically allocated from the internal IP range of the subnetwork or network configured for this forwarding rule.
349      "description": "A String", # An optional description of this resource. Provide this property when you create the resource.
350      "labelFingerprint": "A String", # A fingerprint for the labels being applied to this resource, which is essentially a hash of the labels set used for optimistic locking. The fingerprint is initially generated by Compute Engine and changes after every request to modify or update labels. You must always provide an up-to-date fingerprint hash in order to update or change labels.
351          #
352          # To see the latest fingerprint, make a get() request to retrieve a ForwardingRule.
353      "serviceLabel": "A String", # An optional prefix to the service name for this Forwarding Rule. If specified, will be the first label of the fully qualified service name.
354          #
355          # The label must be 1-63 characters long, and comply with RFC1035. Specifically, the label 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.
356          #
357          # This field is only used for internal load balancing.
358      "kind": "compute#forwardingRule", # [Output Only] Type of the resource. Always compute#forwardingRule for Forwarding Rule resources.
359      "target": "A String", # The URL of the target resource to receive the matched traffic. For regional forwarding rules, this target must live in the same region as the forwarding rule. For global forwarding rules, this target must be a global load balancing resource. The forwarded traffic must be of a type appropriate to the target object.
360          #
361          # This field is not used for internal load balancing.
362      "region": "A String", # [Output Only] URL of the region where the regional forwarding rule resides. This field is not applicable to global forwarding rules.
363      "networkTier": "A String", # This signifies the networking tier used for configuring this load balancer and can only take the following values: PREMIUM , SELECT. If this field is not specified, it is assumed to be PREMIUM.
364      "subnetwork": "A String", # This field is not used for external load balancing.
365          #
366          # For internal load balancing, this field identifies the subnetwork that the load balanced IP should belong to for this Forwarding Rule.
367          #
368          # If the network specified is in auto subnet mode, this field is optional. However, if the network is in custom subnet mode, a subnetwork must be specified.
369      "ports": [ # This field is used along with the backend_service field for internal load balancing.
370          #
371          # When the load balancing scheme is INTERNAL, a single port or a comma separated list of ports can be configured. Only packets addressed to these ports will be forwarded to the backends configured with this forwarding rule.
372          #
373          # You may specify a maximum of up to 5 ports.
374        "A String",
375      ],
376      "selfLink": "A String", # [Output Only] Server-defined URL for the resource.
377    }</pre>
378</div>
379
380<div class="method">
381    <code class="details" id="insert">insert(project, region, body, requestId=None)</code>
382  <pre>Creates a ForwardingRule resource in the specified project and region using the data included in the request.
383
384Args:
385  project: string, Project ID for this request. (required)
386  region: string, Name of the region scoping this request. (required)
387  body: object, The request body. (required)
388    The object takes the form of:
389
390{ # A ForwardingRule resource. A ForwardingRule resource specifies which pool of target virtual machines to forward a packet to if it matches the given [IPAddress, IPProtocol, ports] tuple.
391    "labels": { # Labels to apply to this resource. These can be later modified by the setLabels method. Each label key/value pair must comply with RFC1035. Label values may be empty.
392      "a_key": "A String",
393    },
394    "ipVersion": "A String", # The IP Version that will be used by this forwarding rule. Valid options are IPV4 or IPV6. This can only be specified for a global forwarding rule.
395    "loadBalancingScheme": "A String", # This signifies what the ForwardingRule will be used for and can only take the following values: INTERNAL, EXTERNAL The value of INTERNAL means that this will be used for Internal Network Load Balancing (TCP, UDP). The value of EXTERNAL means that this will be used for External Load Balancing (HTTP(S) LB, External TCP/UDP LB, SSL Proxy)
396    "IPProtocol": "A String", # The IP protocol to which this rule applies. Valid options are TCP, UDP, ESP, AH, SCTP or ICMP.
397        #
398        # When the load balancing scheme is INTERNAL, only TCP and UDP are valid.
399    "creationTimestamp": "A String", # [Output Only] Creation timestamp in RFC3339 text format.
400    "id": "A String", # [Output Only] The unique identifier for the resource. This identifier is defined by the server.
401    "network": "A String", # This field is not used for external load balancing.
402        #
403        # For internal load balancing, this field identifies the network that the load balanced IP should belong to for this Forwarding Rule. If this field is not specified, the default network will be used.
404    "portRange": "A String", # This field is used along with the target field for TargetHttpProxy, TargetHttpsProxy, TargetSslProxy, TargetTcpProxy, TargetVpnGateway, TargetPool, TargetInstance.
405        #
406        # Applicable only when IPProtocol is TCP, UDP, or SCTP, only packets addressed to ports in the specified range will be forwarded to target. Forwarding rules with the same [IPAddress, IPProtocol] pair must have disjoint port ranges.
407        #
408        # Some types of forwarding target have constraints on the acceptable ports:
409        # - TargetHttpProxy: 80, 8080
410        # - TargetHttpsProxy: 443
411        # - TargetSslProxy: 443
412        # - TargetVpnGateway: 500, 4500
413        # -
414    "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.
415    "serviceName": "A String", # [Output Only] The internal fully qualified service name for this Forwarding Rule.
416        #
417        # This field is only used for internal load balancing.
418    "backendService": "A String", # This field is not used for external load balancing.
419        #
420        # For internal load balancing, this field identifies the BackendService resource to receive the matched traffic.
421    "IPAddress": "A String", # The IP address that this forwarding rule is serving on behalf of.
422        #
423        # For global forwarding rules, the address must be a global IP. For regional forwarding rules, the address must live in the same region as the forwarding rule. By default, this field is empty and an ephemeral IPv4 address from the same scope (global or regional) will be assigned. A regional forwarding rule supports IPv4 only. A global forwarding rule supports either IPv4 or IPv6.
424        #
425        # When the load balancing scheme is INTERNAL, this can only be an RFC 1918 IP address belonging to the network/subnetwork configured for the forwarding rule. A reserved address cannot be used. If the field is empty, the IP address will be automatically allocated from the internal IP range of the subnetwork or network configured for this forwarding rule.
426    "description": "A String", # An optional description of this resource. Provide this property when you create the resource.
427    "labelFingerprint": "A String", # A fingerprint for the labels being applied to this resource, which is essentially a hash of the labels set used for optimistic locking. The fingerprint is initially generated by Compute Engine and changes after every request to modify or update labels. You must always provide an up-to-date fingerprint hash in order to update or change labels.
428        #
429        # To see the latest fingerprint, make a get() request to retrieve a ForwardingRule.
430    "serviceLabel": "A String", # An optional prefix to the service name for this Forwarding Rule. If specified, will be the first label of the fully qualified service name.
431        #
432        # The label must be 1-63 characters long, and comply with RFC1035. Specifically, the label 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.
433        #
434        # This field is only used for internal load balancing.
435    "kind": "compute#forwardingRule", # [Output Only] Type of the resource. Always compute#forwardingRule for Forwarding Rule resources.
436    "target": "A String", # The URL of the target resource to receive the matched traffic. For regional forwarding rules, this target must live in the same region as the forwarding rule. For global forwarding rules, this target must be a global load balancing resource. The forwarded traffic must be of a type appropriate to the target object.
437        #
438        # This field is not used for internal load balancing.
439    "region": "A String", # [Output Only] URL of the region where the regional forwarding rule resides. This field is not applicable to global forwarding rules.
440    "networkTier": "A String", # This signifies the networking tier used for configuring this load balancer and can only take the following values: PREMIUM , SELECT. If this field is not specified, it is assumed to be PREMIUM.
441    "subnetwork": "A String", # This field is not used for external load balancing.
442        #
443        # For internal load balancing, this field identifies the subnetwork that the load balanced IP should belong to for this Forwarding Rule.
444        #
445        # If the network specified is in auto subnet mode, this field is optional. However, if the network is in custom subnet mode, a subnetwork must be specified.
446    "ports": [ # This field is used along with the backend_service field for internal load balancing.
447        #
448        # When the load balancing scheme is INTERNAL, a single port or a comma separated list of ports can be configured. Only packets addressed to these ports will be forwarded to the backends configured with this forwarding rule.
449        #
450        # You may specify a maximum of up to 5 ports.
451      "A String",
452    ],
453    "selfLink": "A String", # [Output Only] Server-defined URL for the resource.
454  }
455
456  requestId: string, begin_interface: MixerMutationRequestBuilder Request ID to support idempotency.
457
458Returns:
459  An object of the form:
460
461    { # An Operation resource, used to manage asynchronous API requests.
462    "targetId": "A String", # [Output Only] The unique target ID, which identifies a specific incarnation of the target resource.
463    "clientOperationId": "A String", # [Output Only] Reserved for future use.
464    "creationTimestamp": "A String", # [Deprecated] This field is deprecated.
465    "id": "A String", # [Output Only] The unique identifier for the resource. This identifier is defined by the server.
466    "zone": "A String", # [Output Only] The URL of the zone where the operation resides. Only available when performing per-zone operations.
467    "insertTime": "A String", # [Output Only] The time that this operation was requested. This value is in RFC3339 text format.
468    "operationType": "A String", # [Output Only] The type of operation, such as insert, update, or delete, and so on.
469    "httpErrorMessage": "A String", # [Output Only] If the operation fails, this field contains the HTTP error message that was returned, such as NOT FOUND.
470    "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.
471    "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.
472    "statusMessage": "A String", # [Output Only] An optional textual description of the current status of the operation.
473    "status": "A String", # [Output Only] The status of the operation, which can be one of the following: PENDING, RUNNING, or DONE.
474    "description": "A String", # [Output Only] A textual description of the operation, which is set when the operation is created.
475    "warnings": [ # [Output Only] If warning messages are generated during processing of the operation, this field will be populated.
476      {
477        "message": "A String", # [Output Only] A human-readable description of the warning code.
478        "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.
479        "data": [ # [Output Only] Metadata about this warning in key: value format. For example:
480            # "data": [ { "key": "scope", "value": "zones/us-east1-d" }
481          {
482            "value": "A String", # [Output Only] A warning data value corresponding to the key.
483            "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).
484          },
485        ],
486      },
487    ],
488    "user": "A String", # [Output Only] User who requested the operation, for example: user@example.com.
489    "startTime": "A String", # [Output Only] The time that this operation was started by the server. This value is in RFC3339 text format.
490    "kind": "compute#operation", # [Output Only] Type of the resource. Always compute#operation for Operation resources.
491    "name": "A String", # [Output Only] Name of the resource.
492    "region": "A String", # [Output Only] The URL of the region where the operation resides. Only available when performing regional operations.
493    "error": { # [Output Only] If errors are generated during processing of the operation, this field will be populated.
494      "errors": [ # [Output Only] The array of errors encountered while processing this operation.
495        {
496          "message": "A String", # [Output Only] An optional, human-readable error message.
497          "code": "A String", # [Output Only] The error type identifier for this error.
498          "location": "A String", # [Output Only] Indicates the field in the request that caused the error. This property is optional.
499        },
500      ],
501    },
502    "endTime": "A String", # [Output Only] The time that this operation was completed. This value is in RFC3339 text format.
503    "selfLink": "A String", # [Output Only] Server-defined URL for the resource.
504    "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.
505  }</pre>
506</div>
507
508<div class="method">
509    <code class="details" id="list">list(project, region, orderBy=None, maxResults=None, pageToken=None, filter=None)</code>
510  <pre>Retrieves a list of ForwardingRule resources available to the specified project and region.
511
512Args:
513  project: string, Project ID for this request. (required)
514  region: string, Name of the region scoping this request. (required)
515  orderBy: string, Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name.
516
517You 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.
518
519Currently, only sorting by name or creationTimestamp desc is supported.
520  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)
521  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.
522  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.
523
524The 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.
525
526For example, to filter for instances that do not have a name of example-instance, you would use filter=name ne example-instance.
527
528You 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.
529
530To 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.
531
532Returns:
533  An object of the form:
534
535    { # Contains a list of ForwardingRule resources.
536    "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.
537    "items": [ # A list of ForwardingRule resources.
538      { # A ForwardingRule resource. A ForwardingRule resource specifies which pool of target virtual machines to forward a packet to if it matches the given [IPAddress, IPProtocol, ports] tuple.
539          "labels": { # Labels to apply to this resource. These can be later modified by the setLabels method. Each label key/value pair must comply with RFC1035. Label values may be empty.
540            "a_key": "A String",
541          },
542          "ipVersion": "A String", # The IP Version that will be used by this forwarding rule. Valid options are IPV4 or IPV6. This can only be specified for a global forwarding rule.
543          "loadBalancingScheme": "A String", # This signifies what the ForwardingRule will be used for and can only take the following values: INTERNAL, EXTERNAL The value of INTERNAL means that this will be used for Internal Network Load Balancing (TCP, UDP). The value of EXTERNAL means that this will be used for External Load Balancing (HTTP(S) LB, External TCP/UDP LB, SSL Proxy)
544          "IPProtocol": "A String", # The IP protocol to which this rule applies. Valid options are TCP, UDP, ESP, AH, SCTP or ICMP.
545              #
546              # When the load balancing scheme is INTERNAL, only TCP and UDP are valid.
547          "creationTimestamp": "A String", # [Output Only] Creation timestamp in RFC3339 text format.
548          "id": "A String", # [Output Only] The unique identifier for the resource. This identifier is defined by the server.
549          "network": "A String", # This field is not used for external load balancing.
550              #
551              # For internal load balancing, this field identifies the network that the load balanced IP should belong to for this Forwarding Rule. If this field is not specified, the default network will be used.
552          "portRange": "A String", # This field is used along with the target field for TargetHttpProxy, TargetHttpsProxy, TargetSslProxy, TargetTcpProxy, TargetVpnGateway, TargetPool, TargetInstance.
553              #
554              # Applicable only when IPProtocol is TCP, UDP, or SCTP, only packets addressed to ports in the specified range will be forwarded to target. Forwarding rules with the same [IPAddress, IPProtocol] pair must have disjoint port ranges.
555              #
556              # Some types of forwarding target have constraints on the acceptable ports:
557              # - TargetHttpProxy: 80, 8080
558              # - TargetHttpsProxy: 443
559              # - TargetSslProxy: 443
560              # - TargetVpnGateway: 500, 4500
561              # -
562          "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.
563          "serviceName": "A String", # [Output Only] The internal fully qualified service name for this Forwarding Rule.
564              #
565              # This field is only used for internal load balancing.
566          "backendService": "A String", # This field is not used for external load balancing.
567              #
568              # For internal load balancing, this field identifies the BackendService resource to receive the matched traffic.
569          "IPAddress": "A String", # The IP address that this forwarding rule is serving on behalf of.
570              #
571              # For global forwarding rules, the address must be a global IP. For regional forwarding rules, the address must live in the same region as the forwarding rule. By default, this field is empty and an ephemeral IPv4 address from the same scope (global or regional) will be assigned. A regional forwarding rule supports IPv4 only. A global forwarding rule supports either IPv4 or IPv6.
572              #
573              # When the load balancing scheme is INTERNAL, this can only be an RFC 1918 IP address belonging to the network/subnetwork configured for the forwarding rule. A reserved address cannot be used. If the field is empty, the IP address will be automatically allocated from the internal IP range of the subnetwork or network configured for this forwarding rule.
574          "description": "A String", # An optional description of this resource. Provide this property when you create the resource.
575          "labelFingerprint": "A String", # A fingerprint for the labels being applied to this resource, which is essentially a hash of the labels set used for optimistic locking. The fingerprint is initially generated by Compute Engine and changes after every request to modify or update labels. You must always provide an up-to-date fingerprint hash in order to update or change labels.
576              #
577              # To see the latest fingerprint, make a get() request to retrieve a ForwardingRule.
578          "serviceLabel": "A String", # An optional prefix to the service name for this Forwarding Rule. If specified, will be the first label of the fully qualified service name.
579              #
580              # The label must be 1-63 characters long, and comply with RFC1035. Specifically, the label 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.
581              #
582              # This field is only used for internal load balancing.
583          "kind": "compute#forwardingRule", # [Output Only] Type of the resource. Always compute#forwardingRule for Forwarding Rule resources.
584          "target": "A String", # The URL of the target resource to receive the matched traffic. For regional forwarding rules, this target must live in the same region as the forwarding rule. For global forwarding rules, this target must be a global load balancing resource. The forwarded traffic must be of a type appropriate to the target object.
585              #
586              # This field is not used for internal load balancing.
587          "region": "A String", # [Output Only] URL of the region where the regional forwarding rule resides. This field is not applicable to global forwarding rules.
588          "networkTier": "A String", # This signifies the networking tier used for configuring this load balancer and can only take the following values: PREMIUM , SELECT. If this field is not specified, it is assumed to be PREMIUM.
589          "subnetwork": "A String", # This field is not used for external load balancing.
590              #
591              # For internal load balancing, this field identifies the subnetwork that the load balanced IP should belong to for this Forwarding Rule.
592              #
593              # If the network specified is in auto subnet mode, this field is optional. However, if the network is in custom subnet mode, a subnetwork must be specified.
594          "ports": [ # This field is used along with the backend_service field for internal load balancing.
595              #
596              # When the load balancing scheme is INTERNAL, a single port or a comma separated list of ports can be configured. Only packets addressed to these ports will be forwarded to the backends configured with this forwarding rule.
597              #
598              # You may specify a maximum of up to 5 ports.
599            "A String",
600          ],
601          "selfLink": "A String", # [Output Only] Server-defined URL for the resource.
602        },
603    ],
604    "kind": "compute#forwardingRuleList", # Type of resource.
605    "id": "A String", # [Output Only] Unique identifier for the resource. Set by the server.
606    "selfLink": "A String", # [Output Only] Server-defined URL for this resource.
607  }</pre>
608</div>
609
610<div class="method">
611    <code class="details" id="list_next">list_next(previous_request, previous_response)</code>
612  <pre>Retrieves the next page of results.
613
614Args:
615  previous_request: The request for the previous page. (required)
616  previous_response: The response from the request for the previous page. (required)
617
618Returns:
619  A request object that you can call 'execute()' on to request the next
620  page. Returns None if there are no more items in the collection.
621    </pre>
622</div>
623
624<div class="method">
625    <code class="details" id="patch">patch(project, region, forwardingRule, body, requestId=None)</code>
626  <pre>Updates the specified forwarding rule with the data included in the request. This method supports patch semantics. Currently it only allow to patch network_tier field.
627
628Args:
629  project: string, Project ID for this request. (required)
630  region: string, Name of the region scoping this request. (required)
631  forwardingRule: string, Name of the ForwardingRule resource to patch. (required)
632  body: object, The request body. (required)
633    The object takes the form of:
634
635{ # A ForwardingRule resource. A ForwardingRule resource specifies which pool of target virtual machines to forward a packet to if it matches the given [IPAddress, IPProtocol, ports] tuple.
636    "labels": { # Labels to apply to this resource. These can be later modified by the setLabels method. Each label key/value pair must comply with RFC1035. Label values may be empty.
637      "a_key": "A String",
638    },
639    "ipVersion": "A String", # The IP Version that will be used by this forwarding rule. Valid options are IPV4 or IPV6. This can only be specified for a global forwarding rule.
640    "loadBalancingScheme": "A String", # This signifies what the ForwardingRule will be used for and can only take the following values: INTERNAL, EXTERNAL The value of INTERNAL means that this will be used for Internal Network Load Balancing (TCP, UDP). The value of EXTERNAL means that this will be used for External Load Balancing (HTTP(S) LB, External TCP/UDP LB, SSL Proxy)
641    "IPProtocol": "A String", # The IP protocol to which this rule applies. Valid options are TCP, UDP, ESP, AH, SCTP or ICMP.
642        #
643        # When the load balancing scheme is INTERNAL, only TCP and UDP are valid.
644    "creationTimestamp": "A String", # [Output Only] Creation timestamp in RFC3339 text format.
645    "id": "A String", # [Output Only] The unique identifier for the resource. This identifier is defined by the server.
646    "network": "A String", # This field is not used for external load balancing.
647        #
648        # For internal load balancing, this field identifies the network that the load balanced IP should belong to for this Forwarding Rule. If this field is not specified, the default network will be used.
649    "portRange": "A String", # This field is used along with the target field for TargetHttpProxy, TargetHttpsProxy, TargetSslProxy, TargetTcpProxy, TargetVpnGateway, TargetPool, TargetInstance.
650        #
651        # Applicable only when IPProtocol is TCP, UDP, or SCTP, only packets addressed to ports in the specified range will be forwarded to target. Forwarding rules with the same [IPAddress, IPProtocol] pair must have disjoint port ranges.
652        #
653        # Some types of forwarding target have constraints on the acceptable ports:
654        # - TargetHttpProxy: 80, 8080
655        # - TargetHttpsProxy: 443
656        # - TargetSslProxy: 443
657        # - TargetVpnGateway: 500, 4500
658        # -
659    "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.
660    "serviceName": "A String", # [Output Only] The internal fully qualified service name for this Forwarding Rule.
661        #
662        # This field is only used for internal load balancing.
663    "backendService": "A String", # This field is not used for external load balancing.
664        #
665        # For internal load balancing, this field identifies the BackendService resource to receive the matched traffic.
666    "IPAddress": "A String", # The IP address that this forwarding rule is serving on behalf of.
667        #
668        # For global forwarding rules, the address must be a global IP. For regional forwarding rules, the address must live in the same region as the forwarding rule. By default, this field is empty and an ephemeral IPv4 address from the same scope (global or regional) will be assigned. A regional forwarding rule supports IPv4 only. A global forwarding rule supports either IPv4 or IPv6.
669        #
670        # When the load balancing scheme is INTERNAL, this can only be an RFC 1918 IP address belonging to the network/subnetwork configured for the forwarding rule. A reserved address cannot be used. If the field is empty, the IP address will be automatically allocated from the internal IP range of the subnetwork or network configured for this forwarding rule.
671    "description": "A String", # An optional description of this resource. Provide this property when you create the resource.
672    "labelFingerprint": "A String", # A fingerprint for the labels being applied to this resource, which is essentially a hash of the labels set used for optimistic locking. The fingerprint is initially generated by Compute Engine and changes after every request to modify or update labels. You must always provide an up-to-date fingerprint hash in order to update or change labels.
673        #
674        # To see the latest fingerprint, make a get() request to retrieve a ForwardingRule.
675    "serviceLabel": "A String", # An optional prefix to the service name for this Forwarding Rule. If specified, will be the first label of the fully qualified service name.
676        #
677        # The label must be 1-63 characters long, and comply with RFC1035. Specifically, the label 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.
678        #
679        # This field is only used for internal load balancing.
680    "kind": "compute#forwardingRule", # [Output Only] Type of the resource. Always compute#forwardingRule for Forwarding Rule resources.
681    "target": "A String", # The URL of the target resource to receive the matched traffic. For regional forwarding rules, this target must live in the same region as the forwarding rule. For global forwarding rules, this target must be a global load balancing resource. The forwarded traffic must be of a type appropriate to the target object.
682        #
683        # This field is not used for internal load balancing.
684    "region": "A String", # [Output Only] URL of the region where the regional forwarding rule resides. This field is not applicable to global forwarding rules.
685    "networkTier": "A String", # This signifies the networking tier used for configuring this load balancer and can only take the following values: PREMIUM , SELECT. If this field is not specified, it is assumed to be PREMIUM.
686    "subnetwork": "A String", # This field is not used for external load balancing.
687        #
688        # For internal load balancing, this field identifies the subnetwork that the load balanced IP should belong to for this Forwarding Rule.
689        #
690        # If the network specified is in auto subnet mode, this field is optional. However, if the network is in custom subnet mode, a subnetwork must be specified.
691    "ports": [ # This field is used along with the backend_service field for internal load balancing.
692        #
693        # When the load balancing scheme is INTERNAL, a single port or a comma separated list of ports can be configured. Only packets addressed to these ports will be forwarded to the backends configured with this forwarding rule.
694        #
695        # You may specify a maximum of up to 5 ports.
696      "A String",
697    ],
698    "selfLink": "A String", # [Output Only] Server-defined URL for the resource.
699  }
700
701  requestId: string, begin_interface: MixerMutationRequestBuilder Request ID to support idempotency.
702
703Returns:
704  An object of the form:
705
706    { # An Operation resource, used to manage asynchronous API requests.
707    "targetId": "A String", # [Output Only] The unique target ID, which identifies a specific incarnation of the target resource.
708    "clientOperationId": "A String", # [Output Only] Reserved for future use.
709    "creationTimestamp": "A String", # [Deprecated] This field is deprecated.
710    "id": "A String", # [Output Only] The unique identifier for the resource. This identifier is defined by the server.
711    "zone": "A String", # [Output Only] The URL of the zone where the operation resides. Only available when performing per-zone operations.
712    "insertTime": "A String", # [Output Only] The time that this operation was requested. This value is in RFC3339 text format.
713    "operationType": "A String", # [Output Only] The type of operation, such as insert, update, or delete, and so on.
714    "httpErrorMessage": "A String", # [Output Only] If the operation fails, this field contains the HTTP error message that was returned, such as NOT FOUND.
715    "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.
716    "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.
717    "statusMessage": "A String", # [Output Only] An optional textual description of the current status of the operation.
718    "status": "A String", # [Output Only] The status of the operation, which can be one of the following: PENDING, RUNNING, or DONE.
719    "description": "A String", # [Output Only] A textual description of the operation, which is set when the operation is created.
720    "warnings": [ # [Output Only] If warning messages are generated during processing of the operation, this field will be populated.
721      {
722        "message": "A String", # [Output Only] A human-readable description of the warning code.
723        "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.
724        "data": [ # [Output Only] Metadata about this warning in key: value format. For example:
725            # "data": [ { "key": "scope", "value": "zones/us-east1-d" }
726          {
727            "value": "A String", # [Output Only] A warning data value corresponding to the key.
728            "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).
729          },
730        ],
731      },
732    ],
733    "user": "A String", # [Output Only] User who requested the operation, for example: user@example.com.
734    "startTime": "A String", # [Output Only] The time that this operation was started by the server. This value is in RFC3339 text format.
735    "kind": "compute#operation", # [Output Only] Type of the resource. Always compute#operation for Operation resources.
736    "name": "A String", # [Output Only] Name of the resource.
737    "region": "A String", # [Output Only] The URL of the region where the operation resides. Only available when performing regional operations.
738    "error": { # [Output Only] If errors are generated during processing of the operation, this field will be populated.
739      "errors": [ # [Output Only] The array of errors encountered while processing this operation.
740        {
741          "message": "A String", # [Output Only] An optional, human-readable error message.
742          "code": "A String", # [Output Only] The error type identifier for this error.
743          "location": "A String", # [Output Only] Indicates the field in the request that caused the error. This property is optional.
744        },
745      ],
746    },
747    "endTime": "A String", # [Output Only] The time that this operation was completed. This value is in RFC3339 text format.
748    "selfLink": "A String", # [Output Only] Server-defined URL for the resource.
749    "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.
750  }</pre>
751</div>
752
753<div class="method">
754    <code class="details" id="setLabels">setLabels(project, region, resource, body, requestId=None)</code>
755  <pre>Sets the labels on the specified resource. To learn more about labels, read the Labeling or Tagging Resources documentation.
756
757Args:
758  project: string, Project ID for this request. (required)
759  region: string, The region for this request. (required)
760  resource: string, Name of the resource for this request. (required)
761  body: object, The request body. (required)
762    The object takes the form of:
763
764{
765    "labelFingerprint": "A String", # The fingerprint of the previous set of labels for this resource, used to detect conflicts. The fingerprint is initially generated by Compute Engine and changes after every request to modify or update labels. You must always provide an up-to-date fingerprint hash in order to update or change labels. Make a get() request to the resource to get the latest fingerprint.
766    "labels": { # The labels to set for this resource.
767      "a_key": "A String",
768    },
769  }
770
771  requestId: string, begin_interface: MixerMutationRequestBuilder Request ID to support idempotency.
772
773Returns:
774  An object of the form:
775
776    { # An Operation resource, used to manage asynchronous API requests.
777    "targetId": "A String", # [Output Only] The unique target ID, which identifies a specific incarnation of the target resource.
778    "clientOperationId": "A String", # [Output Only] Reserved for future use.
779    "creationTimestamp": "A String", # [Deprecated] This field is deprecated.
780    "id": "A String", # [Output Only] The unique identifier for the resource. This identifier is defined by the server.
781    "zone": "A String", # [Output Only] The URL of the zone where the operation resides. Only available when performing per-zone operations.
782    "insertTime": "A String", # [Output Only] The time that this operation was requested. This value is in RFC3339 text format.
783    "operationType": "A String", # [Output Only] The type of operation, such as insert, update, or delete, and so on.
784    "httpErrorMessage": "A String", # [Output Only] If the operation fails, this field contains the HTTP error message that was returned, such as NOT FOUND.
785    "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.
786    "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.
787    "statusMessage": "A String", # [Output Only] An optional textual description of the current status of the operation.
788    "status": "A String", # [Output Only] The status of the operation, which can be one of the following: PENDING, RUNNING, or DONE.
789    "description": "A String", # [Output Only] A textual description of the operation, which is set when the operation is created.
790    "warnings": [ # [Output Only] If warning messages are generated during processing of the operation, this field will be populated.
791      {
792        "message": "A String", # [Output Only] A human-readable description of the warning code.
793        "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.
794        "data": [ # [Output Only] Metadata about this warning in key: value format. For example:
795            # "data": [ { "key": "scope", "value": "zones/us-east1-d" }
796          {
797            "value": "A String", # [Output Only] A warning data value corresponding to the key.
798            "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).
799          },
800        ],
801      },
802    ],
803    "user": "A String", # [Output Only] User who requested the operation, for example: user@example.com.
804    "startTime": "A String", # [Output Only] The time that this operation was started by the server. This value is in RFC3339 text format.
805    "kind": "compute#operation", # [Output Only] Type of the resource. Always compute#operation for Operation resources.
806    "name": "A String", # [Output Only] Name of the resource.
807    "region": "A String", # [Output Only] The URL of the region where the operation resides. Only available when performing regional operations.
808    "error": { # [Output Only] If errors are generated during processing of the operation, this field will be populated.
809      "errors": [ # [Output Only] The array of errors encountered while processing this operation.
810        {
811          "message": "A String", # [Output Only] An optional, human-readable error message.
812          "code": "A String", # [Output Only] The error type identifier for this error.
813          "location": "A String", # [Output Only] Indicates the field in the request that caused the error. This property is optional.
814        },
815      ],
816    },
817    "endTime": "A String", # [Output Only] The time that this operation was completed. This value is in RFC3339 text format.
818    "selfLink": "A String", # [Output Only] Server-defined URL for the resource.
819    "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.
820  }</pre>
821</div>
822
823<div class="method">
824    <code class="details" id="setTarget">setTarget(project, region, forwardingRule, body, requestId=None)</code>
825  <pre>Changes target URL for forwarding rule. The new target should be of the same type as the old target.
826
827Args:
828  project: string, Project ID for this request. (required)
829  region: string, Name of the region scoping this request. (required)
830  forwardingRule: string, Name of the ForwardingRule resource in which target is to be set. (required)
831  body: object, The request body. (required)
832    The object takes the form of:
833
834{
835    "target": "A String",
836  }
837
838  requestId: string, begin_interface: MixerMutationRequestBuilder Request ID to support idempotency.
839
840Returns:
841  An object of the form:
842
843    { # An Operation resource, used to manage asynchronous API requests.
844    "targetId": "A String", # [Output Only] The unique target ID, which identifies a specific incarnation of the target resource.
845    "clientOperationId": "A String", # [Output Only] Reserved for future use.
846    "creationTimestamp": "A String", # [Deprecated] This field is deprecated.
847    "id": "A String", # [Output Only] The unique identifier for the resource. This identifier is defined by the server.
848    "zone": "A String", # [Output Only] The URL of the zone where the operation resides. Only available when performing per-zone operations.
849    "insertTime": "A String", # [Output Only] The time that this operation was requested. This value is in RFC3339 text format.
850    "operationType": "A String", # [Output Only] The type of operation, such as insert, update, or delete, and so on.
851    "httpErrorMessage": "A String", # [Output Only] If the operation fails, this field contains the HTTP error message that was returned, such as NOT FOUND.
852    "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.
853    "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.
854    "statusMessage": "A String", # [Output Only] An optional textual description of the current status of the operation.
855    "status": "A String", # [Output Only] The status of the operation, which can be one of the following: PENDING, RUNNING, or DONE.
856    "description": "A String", # [Output Only] A textual description of the operation, which is set when the operation is created.
857    "warnings": [ # [Output Only] If warning messages are generated during processing of the operation, this field will be populated.
858      {
859        "message": "A String", # [Output Only] A human-readable description of the warning code.
860        "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.
861        "data": [ # [Output Only] Metadata about this warning in key: value format. For example:
862            # "data": [ { "key": "scope", "value": "zones/us-east1-d" }
863          {
864            "value": "A String", # [Output Only] A warning data value corresponding to the key.
865            "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).
866          },
867        ],
868      },
869    ],
870    "user": "A String", # [Output Only] User who requested the operation, for example: user@example.com.
871    "startTime": "A String", # [Output Only] The time that this operation was started by the server. This value is in RFC3339 text format.
872    "kind": "compute#operation", # [Output Only] Type of the resource. Always compute#operation for Operation resources.
873    "name": "A String", # [Output Only] Name of the resource.
874    "region": "A String", # [Output Only] The URL of the region where the operation resides. Only available when performing regional operations.
875    "error": { # [Output Only] If errors are generated during processing of the operation, this field will be populated.
876      "errors": [ # [Output Only] The array of errors encountered while processing this operation.
877        {
878          "message": "A String", # [Output Only] An optional, human-readable error message.
879          "code": "A String", # [Output Only] The error type identifier for this error.
880          "location": "A String", # [Output Only] Indicates the field in the request that caused the error. This property is optional.
881        },
882      ],
883    },
884    "endTime": "A String", # [Output Only] The time that this operation was completed. This value is in RFC3339 text format.
885    "selfLink": "A String", # [Output Only] Server-defined URL for the resource.
886    "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.
887  }</pre>
888</div>
889
890<div class="method">
891    <code class="details" id="testIamPermissions">testIamPermissions(project, region, resource, body)</code>
892  <pre>Returns permissions that a caller has on the specified resource.
893
894Args:
895  project: string, Project ID for this request. (required)
896  region: string, The name of the region for this request. (required)
897  resource: string, Name of the resource for this request. (required)
898  body: object, The request body. (required)
899    The object takes the form of:
900
901{
902    "permissions": [ # The set of permissions to check for the 'resource'. Permissions with wildcards (such as '*' or 'storage.*') are not allowed.
903      "A String",
904    ],
905  }
906
907
908Returns:
909  An object of the form:
910
911    {
912    "permissions": [ # A subset of `TestPermissionsRequest.permissions` that the caller is allowed.
913      "A String",
914    ],
915  }</pre>
916</div>
917
918</body></html>