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_beta.html">Compute Engine API</a> . <a href="compute_beta.globalForwardingRules.html">globalForwardingRules</a></h1>
76<h2>Instance Methods</h2>
77<p class="toc_element">
78  <code><a href="#delete">delete(project, forwardingRule, requestId=None)</a></code></p>
79<p class="firstline">Deletes the specified GlobalForwardingRule resource.</p>
80<p class="toc_element">
81  <code><a href="#get">get(project, forwardingRule)</a></code></p>
82<p class="firstline">Returns the specified GlobalForwardingRule resource. Gets a list of available forwarding rules by making a list() request.</p>
83<p class="toc_element">
84  <code><a href="#insert">insert(project, body, requestId=None)</a></code></p>
85<p class="firstline">Creates a GlobalForwardingRule resource in the specified project using the data included in the request.</p>
86<p class="toc_element">
87  <code><a href="#list">list(project, orderBy=None, maxResults=None, pageToken=None, filter=None)</a></code></p>
88<p class="firstline">Retrieves a list of GlobalForwardingRule resources available to the specified project.</p>
89<p class="toc_element">
90  <code><a href="#list_next">list_next(previous_request, previous_response)</a></code></p>
91<p class="firstline">Retrieves the next page of results.</p>
92<p class="toc_element">
93  <code><a href="#patch">patch(project, forwardingRule, body, requestId=None)</a></code></p>
94<p class="firstline">Updates the specified forwarding rule with the data included in the request. This method supports PATCH semantics and uses the JSON merge patch format and processing rules. Currently, you can only patch the network_tier field.</p>
95<p class="toc_element">
96  <code><a href="#setLabels">setLabels(project, resource, body)</a></code></p>
97<p class="firstline">Sets the labels on the specified resource. To learn more about labels, read the Labeling Resources documentation.</p>
98<p class="toc_element">
99  <code><a href="#setTarget">setTarget(project, forwardingRule, body, requestId=None)</a></code></p>
100<p class="firstline">Changes target URL for the GlobalForwardingRule resource. The new target should be of the same type as the old target.</p>
101<p class="toc_element">
102  <code><a href="#testIamPermissions">testIamPermissions(project, resource, body)</a></code></p>
103<p class="firstline">Returns permissions that a caller has on the specified resource.</p>
104<h3>Method Details</h3>
105<div class="method">
106    <code class="details" id="delete">delete(project, forwardingRule, requestId=None)</code>
107  <pre>Deletes the specified GlobalForwardingRule resource.
108
109Args:
110  project: string, Project ID for this request. (required)
111  forwardingRule: string, Name of the ForwardingRule resource to delete. (required)
112  requestId: string, An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed.
113
114For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments.
115
116The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
117
118Returns:
119  An object of the form:
120
121    { # Represents an Operation resource.
122      #
123      # You can use an operation resource to manage asynchronous API requests. For more information, read Handling API responses.
124      #
125      # Operations can be global, regional or zonal.
126      # - For global operations, use the globalOperations resource.
127      # - For regional operations, use the regionOperations resource.
128      # - For zonal operations, use the zonalOperations resource.
129      #
130      # For more information, read  Global, Regional, and Zonal Resources. (== resource_for v1.globalOperations ==) (== resource_for beta.globalOperations ==) (== resource_for v1.regionOperations ==) (== resource_for beta.regionOperations ==) (== resource_for v1.zoneOperations ==) (== resource_for beta.zoneOperations ==)
131    "targetId": "A String", # [Output Only] The unique target ID, which identifies a specific incarnation of the target resource.
132    "clientOperationId": "A String", # [Output Only] The value of `requestId` if you provided it in the request. Not present otherwise.
133    "creationTimestamp": "A String", # [Deprecated] This field is deprecated.
134    "id": "A String", # [Output Only] The unique identifier for the resource. This identifier is defined by the server.
135    "zone": "A String", # [Output Only] The URL of the zone where the operation resides. Only applicable when performing per-zone operations.
136    "insertTime": "A String", # [Output Only] The time that this operation was requested. This value is in RFC3339 text format.
137    "operationType": "A String", # [Output Only] The type of operation, such as insert, update, or delete, and so on.
138    "httpErrorMessage": "A String", # [Output Only] If the operation fails, this field contains the HTTP error message that was returned, such as NOT FOUND.
139    "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.
140    "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.
141    "statusMessage": "A String", # [Output Only] An optional textual description of the current status of the operation.
142    "status": "A String", # [Output Only] The status of the operation, which can be one of the following: PENDING, RUNNING, or DONE.
143    "description": "A String", # [Output Only] A textual description of the operation, which is set when the operation is created.
144    "warnings": [ # [Output Only] If warning messages are generated during processing of the operation, this field will be populated.
145      {
146        "message": "A String", # [Output Only] A human-readable description of the warning code.
147        "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.
148        "data": [ # [Output Only] Metadata about this warning in key: value format. For example:
149            # "data": [ { "key": "scope", "value": "zones/us-east1-d" }
150          {
151            "value": "A String", # [Output Only] A warning data value corresponding to the key.
152            "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).
153          },
154        ],
155      },
156    ],
157    "user": "A String", # [Output Only] User who requested the operation, for example: user@example.com.
158    "startTime": "A String", # [Output Only] The time that this operation was started by the server. This value is in RFC3339 text format.
159    "kind": "compute#operation", # [Output Only] Type of the resource. Always compute#operation for Operation resources.
160    "name": "A String", # [Output Only] Name of the resource.
161    "region": "A String", # [Output Only] The URL of the region where the operation resides. Only applicable when performing regional operations.
162    "error": { # [Output Only] If errors are generated during processing of the operation, this field will be populated.
163      "errors": [ # [Output Only] The array of errors encountered while processing this operation.
164        {
165          "message": "A String", # [Output Only] An optional, human-readable error message.
166          "code": "A String", # [Output Only] The error type identifier for this error.
167          "location": "A String", # [Output Only] Indicates the field in the request that caused the error. This property is optional.
168        },
169      ],
170    },
171    "endTime": "A String", # [Output Only] The time that this operation was completed. This value is in RFC3339 text format.
172    "selfLink": "A String", # [Output Only] Server-defined URL for the resource.
173    "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.
174  }</pre>
175</div>
176
177<div class="method">
178    <code class="details" id="get">get(project, forwardingRule)</code>
179  <pre>Returns the specified GlobalForwardingRule resource. Gets a list of available forwarding rules by making a list() request.
180
181Args:
182  project: string, Project ID for this request. (required)
183  forwardingRule: string, Name of the ForwardingRule resource to return. (required)
184
185Returns:
186  An object of the form:
187
188    { # 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. (== resource_for beta.forwardingRules ==) (== resource_for v1.forwardingRules ==) (== resource_for beta.globalForwardingRules ==) (== resource_for v1.globalForwardingRules ==) (== resource_for beta.regionForwardingRules ==) (== resource_for v1.regionForwardingRules ==)
189      "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.
190        "a_key": "A String",
191      },
192      "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 an external global forwarding rule.
193      "loadBalancingScheme": "A String", # This signifies what the ForwardingRule will be used for and can only take the following values: INTERNAL, INTERNAL_SELF_MANAGED, EXTERNAL. The value of INTERNAL means that this will be used for Internal Network Load Balancing (TCP, UDP). The value of INTERNAL_SELF_MANAGED means that this will be used for Internal Global HTTP(S) LB. The value of EXTERNAL means that this will be used for External Load Balancing (HTTP(S) LB, External TCP/UDP LB, SSL Proxy)
194      "IPProtocol": "A String", # The IP protocol to which this rule applies. Valid options are TCP, UDP, ESP, AH, SCTP or ICMP.
195          #
196          # When the load balancing scheme is INTERNAL, only TCP and UDP are valid. When the load balancing scheme is INTERNAL_SELF_MANAGED, only TCPis valid.
197      "creationTimestamp": "A String", # [Output Only] Creation timestamp in RFC3339 text format.
198      "id": "A String", # [Output Only] The unique identifier for the resource. This identifier is defined by the server.
199      "network": "A String", # This field is not used for external load balancing.
200          #
201          # For INTERNAL and INTERNAL_SELF_MANAGED 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.
202      "portRange": "A String", # This field is used along with the target field for TargetHttpProxy, TargetHttpsProxy, TargetSslProxy, TargetTcpProxy, TargetVpnGateway, TargetPool, TargetInstance.
203          #
204          # 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.
205          #
206          # Some types of forwarding target have constraints on the acceptable ports:
207          # - TargetHttpProxy: 80, 8080
208          # - TargetHttpsProxy: 443
209          # - TargetTcpProxy: 25, 43, 110, 143, 195, 443, 465, 587, 700, 993, 995, 1688, 1883, 5222
210          # - TargetSslProxy: 25, 43, 110, 143, 195, 443, 465, 587, 700, 993, 995, 1688, 1883, 5222
211          # - TargetVpnGateway: 500, 4500
212      "serviceName": "A String", # [Output Only] The internal fully qualified service name for this Forwarding Rule.
213          #
214          # This field is only used for internal load balancing.
215      "backendService": "A String", # This field is only used for INTERNAL load balancing.
216          #
217          # For internal load balancing, this field identifies the BackendService resource to receive the matched traffic.
218      "metadataFilters": [ # Opaque filter criteria used by Loadbalancer to restrict routing configuration to a limited set xDS compliant clients. In their xDS requests to Loadbalancer, xDS clients present node metadata. If a match takes place, the relevant routing configuration is made available to those proxies.
219          # For each metadataFilter in this list, if its filterMatchCriteria is set to MATCH_ANY, at least one of the filterLabels must match the corresponding label provided in the metadata. If its filterMatchCriteria is set to MATCH_ALL, then all of its filterLabels must match with corresponding labels in the provided metadata.
220          # metadataFilters specified here can be overridden by those specified in the UrlMap that this ForwardingRule references.
221          # metadataFilters only applies to Loadbalancers that have their loadBalancingScheme set to INTERNAL_SELF_MANAGED.
222        { # Opaque filter criteria used by loadbalancers to restrict routing configuration to a limited set of loadbalancing proxies. Proxies and sidecars involved in loadbalancing would typically present metadata to the loadbalancers which need to match criteria specified here. If a match takes place, the relevant routing configuration is made available to those proxies.
223            # For each metadataFilter in this list, if its filterMatchCriteria is set to MATCH_ANY, at least one of the filterLabels must match the corresponding label provided in the metadata. If its filterMatchCriteria is set to MATCH_ALL, then all of its filterLabels must match with corresponding labels in the provided metadata.
224            # An example for using metadataFilters would be: if loadbalancing involves  Envoys, they will only receive routing configuration when values in metadataFilters match values supplied in <a href="https://www.envoyproxy.io/docs/envoy/latest/api-v2/api/v2/core/base.proto#envoy-api-msg-core-node" Node metadata of their XDS requests to loadbalancers.
225          "filterMatchCriteria": "A String", # Specifies how individual filterLabel matches within the list of filterLabels contribute towards the overall metadataFilter match.
226              # Supported values are:
227              # - MATCH_ANY: At least one of the filterLabels must have a matching label in the provided metadata.
228              # - MATCH_ALL: All filterLabels must have matching labels in the provided metadata.
229          "filterLabels": [ # The list of label value pairs that must match labels in the provided metadata based on filterMatchCriteria
230              # This list must not be empty and can have at the most 64 entries.
231            { # MetadataFilter label name value pairs that are expected to match corresponding labels presented as metadata to the loadbalancer.
232              "name": "A String", # Name of metadata label.
233                  # The name can have a maximum length of 1024 characters and must be at least 1 character long.
234              "value": "A String", # The value of the label must match the specified value.
235                  # value can have a maximum length of 1024 characters.
236            },
237          ],
238        },
239      ],
240      "IPAddress": "A String", # The IP address that this forwarding rule is serving on behalf of.
241          #
242          # Addresses are restricted based on the forwarding rule's load balancing scheme (EXTERNAL or INTERNAL) and scope (global or regional).
243          #
244          # When the load balancing scheme is EXTERNAL, for global forwarding rules, the address must be a global IP, and for regional forwarding rules, the address must live in the same region as the forwarding rule. If this field is empty, 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.
245          #
246          # When the load balancing scheme is INTERNAL_SELF_MANAGED, this must be a URL reference to an existing Address resource ( internal regional static IP address), with a purpose of GCE_END_POINT and address_type of INTERNAL.
247          #
248          # When the load balancing scheme is INTERNAL, this can only be an RFC 1918 IP address belonging to the network/subnet configured for the forwarding rule. By default, if this field is empty, an ephemeral internal IP address will be automatically allocated from the IP range of the subnet or network configured for this forwarding rule.
249          #
250          # An address can be specified either by a literal IP address or a URL reference to an existing Address resource. The following examples are all valid:
251          # - 100.1.2.3
252          # - https://www.googleapis.com/compute/v1/projects/project/regions/region/addresses/address
253          # - projects/project/regions/region/addresses/address
254          # - regions/region/addresses/address
255          # - global/addresses/address
256          # - address
257      "description": "A String", # An optional description of this resource. Provide this property when you create the resource.
258      "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, otherwise the request will fail with error 412 conditionNotMet.
259          #
260          # To see the latest fingerprint, make a get() request to retrieve a ForwardingRule.
261      "allPorts": True or False, # This field is used along with the backend_service field for internal load balancing or with the target field for internal TargetInstance. This field cannot be used with port or portRange fields.
262          #
263          # When the load balancing scheme is INTERNAL and protocol is TCP/UDP, specify this field to allow packets addressed to any ports will be forwarded to the backends configured with this forwarding rule.
264      "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 ForwardingRule. Include the fingerprint in patch request to ensure that you do not overwrite changes that were applied from another concurrent request.
265          #
266          # To see the latest fingerprint, make a get() request to retrieve a ForwardingRule.
267      "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.
268          #
269          # 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.
270          #
271          # This field is only used for internal load balancing.
272      "kind": "compute#forwardingRule", # [Output Only] Type of the resource. Always compute#forwardingRule for Forwarding Rule resources.
273      "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.
274      "region": "A String", # [Output Only] URL of the region where the regional forwarding rule resides. This field is not applicable to global forwarding rules. You must specify this field as part of the HTTP request URL. It is not settable as a field in the request body.
275      "allowGlobalAccess": True or False, # This field is used along with the backend_service field for internal load balancing or with the target field for internal TargetInstance. If the field is set to TRUE, clients can access ILB from all regions. Otherwise only allows access from clients in the same region as the internal load balancer.
276      "networkTier": "A String", # This signifies the networking tier used for configuring this load balancer and can only take the following values: PREMIUM , STANDARD.
277          #
278          # For regional ForwardingRule, the valid values are PREMIUM and STANDARD. For GlobalForwardingRule, the valid value is PREMIUM.
279          #
280          # If this field is not specified, it is assumed to be PREMIUM. If IPAddress is specified, this value must be equal to the networkTier of the Address.
281      "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. For INTERNAL_SELF_MANAGED load balancing, only HTTP and HTTPS targets are valid.
282      "subnetwork": "A String", # This field is only used for INTERNAL load balancing.
283          #
284          # For internal load balancing, this field identifies the subnetwork that the load balanced IP should belong to for this Forwarding Rule.
285          #
286          # 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.
287      "ports": [ # This field is used along with the backend_service field for internal load balancing.
288          #
289          # When the load balancing scheme is INTERNAL, a list of ports can be configured, for example, ['80'], ['8000','9000'] etc. Only packets addressed to these ports will be forwarded to the backends configured with this forwarding rule.
290          #
291          # You may specify a maximum of up to 5 ports.
292        "A String",
293      ],
294      "selfLink": "A String", # [Output Only] Server-defined URL for the resource.
295    }</pre>
296</div>
297
298<div class="method">
299    <code class="details" id="insert">insert(project, body, requestId=None)</code>
300  <pre>Creates a GlobalForwardingRule resource in the specified project using the data included in the request.
301
302Args:
303  project: string, Project ID for this request. (required)
304  body: object, The request body. (required)
305    The object takes the form of:
306
307{ # 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. (== resource_for beta.forwardingRules ==) (== resource_for v1.forwardingRules ==) (== resource_for beta.globalForwardingRules ==) (== resource_for v1.globalForwardingRules ==) (== resource_for beta.regionForwardingRules ==) (== resource_for v1.regionForwardingRules ==)
308    "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.
309      "a_key": "A String",
310    },
311    "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 an external global forwarding rule.
312    "loadBalancingScheme": "A String", # This signifies what the ForwardingRule will be used for and can only take the following values: INTERNAL, INTERNAL_SELF_MANAGED, EXTERNAL. The value of INTERNAL means that this will be used for Internal Network Load Balancing (TCP, UDP). The value of INTERNAL_SELF_MANAGED means that this will be used for Internal Global HTTP(S) LB. The value of EXTERNAL means that this will be used for External Load Balancing (HTTP(S) LB, External TCP/UDP LB, SSL Proxy)
313    "IPProtocol": "A String", # The IP protocol to which this rule applies. Valid options are TCP, UDP, ESP, AH, SCTP or ICMP.
314        #
315        # When the load balancing scheme is INTERNAL, only TCP and UDP are valid. When the load balancing scheme is INTERNAL_SELF_MANAGED, only TCPis valid.
316    "creationTimestamp": "A String", # [Output Only] Creation timestamp in RFC3339 text format.
317    "id": "A String", # [Output Only] The unique identifier for the resource. This identifier is defined by the server.
318    "network": "A String", # This field is not used for external load balancing.
319        #
320        # For INTERNAL and INTERNAL_SELF_MANAGED 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.
321    "portRange": "A String", # This field is used along with the target field for TargetHttpProxy, TargetHttpsProxy, TargetSslProxy, TargetTcpProxy, TargetVpnGateway, TargetPool, TargetInstance.
322        #
323        # 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.
324        #
325        # Some types of forwarding target have constraints on the acceptable ports:
326        # - TargetHttpProxy: 80, 8080
327        # - TargetHttpsProxy: 443
328        # - TargetTcpProxy: 25, 43, 110, 143, 195, 443, 465, 587, 700, 993, 995, 1688, 1883, 5222
329        # - TargetSslProxy: 25, 43, 110, 143, 195, 443, 465, 587, 700, 993, 995, 1688, 1883, 5222
330        # - TargetVpnGateway: 500, 4500
331    "serviceName": "A String", # [Output Only] The internal fully qualified service name for this Forwarding Rule.
332        #
333        # This field is only used for internal load balancing.
334    "backendService": "A String", # This field is only used for INTERNAL load balancing.
335        #
336        # For internal load balancing, this field identifies the BackendService resource to receive the matched traffic.
337    "metadataFilters": [ # Opaque filter criteria used by Loadbalancer to restrict routing configuration to a limited set xDS compliant clients. In their xDS requests to Loadbalancer, xDS clients present node metadata. If a match takes place, the relevant routing configuration is made available to those proxies.
338        # For each metadataFilter in this list, if its filterMatchCriteria is set to MATCH_ANY, at least one of the filterLabels must match the corresponding label provided in the metadata. If its filterMatchCriteria is set to MATCH_ALL, then all of its filterLabels must match with corresponding labels in the provided metadata.
339        # metadataFilters specified here can be overridden by those specified in the UrlMap that this ForwardingRule references.
340        # metadataFilters only applies to Loadbalancers that have their loadBalancingScheme set to INTERNAL_SELF_MANAGED.
341      { # Opaque filter criteria used by loadbalancers to restrict routing configuration to a limited set of loadbalancing proxies. Proxies and sidecars involved in loadbalancing would typically present metadata to the loadbalancers which need to match criteria specified here. If a match takes place, the relevant routing configuration is made available to those proxies.
342          # For each metadataFilter in this list, if its filterMatchCriteria is set to MATCH_ANY, at least one of the filterLabels must match the corresponding label provided in the metadata. If its filterMatchCriteria is set to MATCH_ALL, then all of its filterLabels must match with corresponding labels in the provided metadata.
343          # An example for using metadataFilters would be: if loadbalancing involves  Envoys, they will only receive routing configuration when values in metadataFilters match values supplied in <a href="https://www.envoyproxy.io/docs/envoy/latest/api-v2/api/v2/core/base.proto#envoy-api-msg-core-node" Node metadata of their XDS requests to loadbalancers.
344        "filterMatchCriteria": "A String", # Specifies how individual filterLabel matches within the list of filterLabels contribute towards the overall metadataFilter match.
345            # Supported values are:
346            # - MATCH_ANY: At least one of the filterLabels must have a matching label in the provided metadata.
347            # - MATCH_ALL: All filterLabels must have matching labels in the provided metadata.
348        "filterLabels": [ # The list of label value pairs that must match labels in the provided metadata based on filterMatchCriteria
349            # This list must not be empty and can have at the most 64 entries.
350          { # MetadataFilter label name value pairs that are expected to match corresponding labels presented as metadata to the loadbalancer.
351            "name": "A String", # Name of metadata label.
352                # The name can have a maximum length of 1024 characters and must be at least 1 character long.
353            "value": "A String", # The value of the label must match the specified value.
354                # value can have a maximum length of 1024 characters.
355          },
356        ],
357      },
358    ],
359    "IPAddress": "A String", # The IP address that this forwarding rule is serving on behalf of.
360        #
361        # Addresses are restricted based on the forwarding rule's load balancing scheme (EXTERNAL or INTERNAL) and scope (global or regional).
362        #
363        # When the load balancing scheme is EXTERNAL, for global forwarding rules, the address must be a global IP, and for regional forwarding rules, the address must live in the same region as the forwarding rule. If this field is empty, 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.
364        #
365        # When the load balancing scheme is INTERNAL_SELF_MANAGED, this must be a URL reference to an existing Address resource ( internal regional static IP address), with a purpose of GCE_END_POINT and address_type of INTERNAL.
366        #
367        # When the load balancing scheme is INTERNAL, this can only be an RFC 1918 IP address belonging to the network/subnet configured for the forwarding rule. By default, if this field is empty, an ephemeral internal IP address will be automatically allocated from the IP range of the subnet or network configured for this forwarding rule.
368        #
369        # An address can be specified either by a literal IP address or a URL reference to an existing Address resource. The following examples are all valid:
370        # - 100.1.2.3
371        # - https://www.googleapis.com/compute/v1/projects/project/regions/region/addresses/address
372        # - projects/project/regions/region/addresses/address
373        # - regions/region/addresses/address
374        # - global/addresses/address
375        # - address
376    "description": "A String", # An optional description of this resource. Provide this property when you create the resource.
377    "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, otherwise the request will fail with error 412 conditionNotMet.
378        #
379        # To see the latest fingerprint, make a get() request to retrieve a ForwardingRule.
380    "allPorts": True or False, # This field is used along with the backend_service field for internal load balancing or with the target field for internal TargetInstance. This field cannot be used with port or portRange fields.
381        #
382        # When the load balancing scheme is INTERNAL and protocol is TCP/UDP, specify this field to allow packets addressed to any ports will be forwarded to the backends configured with this forwarding rule.
383    "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 ForwardingRule. Include the fingerprint in patch request to ensure that you do not overwrite changes that were applied from another concurrent request.
384        #
385        # To see the latest fingerprint, make a get() request to retrieve a ForwardingRule.
386    "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.
387        #
388        # 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.
389        #
390        # This field is only used for internal load balancing.
391    "kind": "compute#forwardingRule", # [Output Only] Type of the resource. Always compute#forwardingRule for Forwarding Rule resources.
392    "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.
393    "region": "A String", # [Output Only] URL of the region where the regional forwarding rule resides. This field is not applicable to global forwarding rules. You must specify this field as part of the HTTP request URL. It is not settable as a field in the request body.
394    "allowGlobalAccess": True or False, # This field is used along with the backend_service field for internal load balancing or with the target field for internal TargetInstance. If the field is set to TRUE, clients can access ILB from all regions. Otherwise only allows access from clients in the same region as the internal load balancer.
395    "networkTier": "A String", # This signifies the networking tier used for configuring this load balancer and can only take the following values: PREMIUM , STANDARD.
396        #
397        # For regional ForwardingRule, the valid values are PREMIUM and STANDARD. For GlobalForwardingRule, the valid value is PREMIUM.
398        #
399        # If this field is not specified, it is assumed to be PREMIUM. If IPAddress is specified, this value must be equal to the networkTier of the Address.
400    "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. For INTERNAL_SELF_MANAGED load balancing, only HTTP and HTTPS targets are valid.
401    "subnetwork": "A String", # This field is only used for INTERNAL load balancing.
402        #
403        # For internal load balancing, this field identifies the subnetwork that the load balanced IP should belong to for this Forwarding Rule.
404        #
405        # 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.
406    "ports": [ # This field is used along with the backend_service field for internal load balancing.
407        #
408        # When the load balancing scheme is INTERNAL, a list of ports can be configured, for example, ['80'], ['8000','9000'] etc. Only packets addressed to these ports will be forwarded to the backends configured with this forwarding rule.
409        #
410        # You may specify a maximum of up to 5 ports.
411      "A String",
412    ],
413    "selfLink": "A String", # [Output Only] Server-defined URL for the resource.
414  }
415
416  requestId: string, An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed.
417
418For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments.
419
420The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
421
422Returns:
423  An object of the form:
424
425    { # Represents an Operation resource.
426      #
427      # You can use an operation resource to manage asynchronous API requests. For more information, read Handling API responses.
428      #
429      # Operations can be global, regional or zonal.
430      # - For global operations, use the globalOperations resource.
431      # - For regional operations, use the regionOperations resource.
432      # - For zonal operations, use the zonalOperations resource.
433      #
434      # For more information, read  Global, Regional, and Zonal Resources. (== resource_for v1.globalOperations ==) (== resource_for beta.globalOperations ==) (== resource_for v1.regionOperations ==) (== resource_for beta.regionOperations ==) (== resource_for v1.zoneOperations ==) (== resource_for beta.zoneOperations ==)
435    "targetId": "A String", # [Output Only] The unique target ID, which identifies a specific incarnation of the target resource.
436    "clientOperationId": "A String", # [Output Only] The value of `requestId` if you provided it in the request. Not present otherwise.
437    "creationTimestamp": "A String", # [Deprecated] This field is deprecated.
438    "id": "A String", # [Output Only] The unique identifier for the resource. This identifier is defined by the server.
439    "zone": "A String", # [Output Only] The URL of the zone where the operation resides. Only applicable when performing per-zone operations.
440    "insertTime": "A String", # [Output Only] The time that this operation was requested. This value is in RFC3339 text format.
441    "operationType": "A String", # [Output Only] The type of operation, such as insert, update, or delete, and so on.
442    "httpErrorMessage": "A String", # [Output Only] If the operation fails, this field contains the HTTP error message that was returned, such as NOT FOUND.
443    "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.
444    "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.
445    "statusMessage": "A String", # [Output Only] An optional textual description of the current status of the operation.
446    "status": "A String", # [Output Only] The status of the operation, which can be one of the following: PENDING, RUNNING, or DONE.
447    "description": "A String", # [Output Only] A textual description of the operation, which is set when the operation is created.
448    "warnings": [ # [Output Only] If warning messages are generated during processing of the operation, this field will be populated.
449      {
450        "message": "A String", # [Output Only] A human-readable description of the warning code.
451        "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.
452        "data": [ # [Output Only] Metadata about this warning in key: value format. For example:
453            # "data": [ { "key": "scope", "value": "zones/us-east1-d" }
454          {
455            "value": "A String", # [Output Only] A warning data value corresponding to the key.
456            "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).
457          },
458        ],
459      },
460    ],
461    "user": "A String", # [Output Only] User who requested the operation, for example: user@example.com.
462    "startTime": "A String", # [Output Only] The time that this operation was started by the server. This value is in RFC3339 text format.
463    "kind": "compute#operation", # [Output Only] Type of the resource. Always compute#operation for Operation resources.
464    "name": "A String", # [Output Only] Name of the resource.
465    "region": "A String", # [Output Only] The URL of the region where the operation resides. Only applicable when performing regional operations.
466    "error": { # [Output Only] If errors are generated during processing of the operation, this field will be populated.
467      "errors": [ # [Output Only] The array of errors encountered while processing this operation.
468        {
469          "message": "A String", # [Output Only] An optional, human-readable error message.
470          "code": "A String", # [Output Only] The error type identifier for this error.
471          "location": "A String", # [Output Only] Indicates the field in the request that caused the error. This property is optional.
472        },
473      ],
474    },
475    "endTime": "A String", # [Output Only] The time that this operation was completed. This value is in RFC3339 text format.
476    "selfLink": "A String", # [Output Only] Server-defined URL for the resource.
477    "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.
478  }</pre>
479</div>
480
481<div class="method">
482    <code class="details" id="list">list(project, orderBy=None, maxResults=None, pageToken=None, filter=None)</code>
483  <pre>Retrieves a list of GlobalForwardingRule resources available to the specified project.
484
485Args:
486  project: string, Project ID for this request. (required)
487  orderBy: string, Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name.
488
489You 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.
490
491Currently, only sorting by name or creationTimestamp desc is supported.
492  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)
493  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.
494  filter: string, A filter expression that filters resources listed in the response. The expression must specify the field name, a comparison operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The comparison operator must be either =, !=, >, or <.
495
496For example, if you are filtering Compute Engine instances, you can exclude instances named example-instance by specifying name != example-instance.
497
498You can also filter nested fields. For example, you could specify scheduling.automaticRestart = false to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels.
499
500To filter on multiple expressions, provide each separate expression within parentheses. For example, (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake"). By default, each expression is an AND expression. However, you can include AND and OR expressions explicitly. For example, (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true).
501
502Returns:
503  An object of the form:
504
505    { # Contains a list of ForwardingRule resources.
506    "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.
507    "kind": "compute#forwardingRuleList", # Type of resource.
508    "items": [ # A list of ForwardingRule resources.
509      { # 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. (== resource_for beta.forwardingRules ==) (== resource_for v1.forwardingRules ==) (== resource_for beta.globalForwardingRules ==) (== resource_for v1.globalForwardingRules ==) (== resource_for beta.regionForwardingRules ==) (== resource_for v1.regionForwardingRules ==)
510          "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.
511            "a_key": "A String",
512          },
513          "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 an external global forwarding rule.
514          "loadBalancingScheme": "A String", # This signifies what the ForwardingRule will be used for and can only take the following values: INTERNAL, INTERNAL_SELF_MANAGED, EXTERNAL. The value of INTERNAL means that this will be used for Internal Network Load Balancing (TCP, UDP). The value of INTERNAL_SELF_MANAGED means that this will be used for Internal Global HTTP(S) LB. The value of EXTERNAL means that this will be used for External Load Balancing (HTTP(S) LB, External TCP/UDP LB, SSL Proxy)
515          "IPProtocol": "A String", # The IP protocol to which this rule applies. Valid options are TCP, UDP, ESP, AH, SCTP or ICMP.
516              #
517              # When the load balancing scheme is INTERNAL, only TCP and UDP are valid. When the load balancing scheme is INTERNAL_SELF_MANAGED, only TCPis valid.
518          "creationTimestamp": "A String", # [Output Only] Creation timestamp in RFC3339 text format.
519          "id": "A String", # [Output Only] The unique identifier for the resource. This identifier is defined by the server.
520          "network": "A String", # This field is not used for external load balancing.
521              #
522              # For INTERNAL and INTERNAL_SELF_MANAGED 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.
523          "portRange": "A String", # This field is used along with the target field for TargetHttpProxy, TargetHttpsProxy, TargetSslProxy, TargetTcpProxy, TargetVpnGateway, TargetPool, TargetInstance.
524              #
525              # 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.
526              #
527              # Some types of forwarding target have constraints on the acceptable ports:
528              # - TargetHttpProxy: 80, 8080
529              # - TargetHttpsProxy: 443
530              # - TargetTcpProxy: 25, 43, 110, 143, 195, 443, 465, 587, 700, 993, 995, 1688, 1883, 5222
531              # - TargetSslProxy: 25, 43, 110, 143, 195, 443, 465, 587, 700, 993, 995, 1688, 1883, 5222
532              # - TargetVpnGateway: 500, 4500
533          "serviceName": "A String", # [Output Only] The internal fully qualified service name for this Forwarding Rule.
534              #
535              # This field is only used for internal load balancing.
536          "backendService": "A String", # This field is only used for INTERNAL load balancing.
537              #
538              # For internal load balancing, this field identifies the BackendService resource to receive the matched traffic.
539          "metadataFilters": [ # Opaque filter criteria used by Loadbalancer to restrict routing configuration to a limited set xDS compliant clients. In their xDS requests to Loadbalancer, xDS clients present node metadata. If a match takes place, the relevant routing configuration is made available to those proxies.
540              # For each metadataFilter in this list, if its filterMatchCriteria is set to MATCH_ANY, at least one of the filterLabels must match the corresponding label provided in the metadata. If its filterMatchCriteria is set to MATCH_ALL, then all of its filterLabels must match with corresponding labels in the provided metadata.
541              # metadataFilters specified here can be overridden by those specified in the UrlMap that this ForwardingRule references.
542              # metadataFilters only applies to Loadbalancers that have their loadBalancingScheme set to INTERNAL_SELF_MANAGED.
543            { # Opaque filter criteria used by loadbalancers to restrict routing configuration to a limited set of loadbalancing proxies. Proxies and sidecars involved in loadbalancing would typically present metadata to the loadbalancers which need to match criteria specified here. If a match takes place, the relevant routing configuration is made available to those proxies.
544                # For each metadataFilter in this list, if its filterMatchCriteria is set to MATCH_ANY, at least one of the filterLabels must match the corresponding label provided in the metadata. If its filterMatchCriteria is set to MATCH_ALL, then all of its filterLabels must match with corresponding labels in the provided metadata.
545                # An example for using metadataFilters would be: if loadbalancing involves  Envoys, they will only receive routing configuration when values in metadataFilters match values supplied in <a href="https://www.envoyproxy.io/docs/envoy/latest/api-v2/api/v2/core/base.proto#envoy-api-msg-core-node" Node metadata of their XDS requests to loadbalancers.
546              "filterMatchCriteria": "A String", # Specifies how individual filterLabel matches within the list of filterLabels contribute towards the overall metadataFilter match.
547                  # Supported values are:
548                  # - MATCH_ANY: At least one of the filterLabels must have a matching label in the provided metadata.
549                  # - MATCH_ALL: All filterLabels must have matching labels in the provided metadata.
550              "filterLabels": [ # The list of label value pairs that must match labels in the provided metadata based on filterMatchCriteria
551                  # This list must not be empty and can have at the most 64 entries.
552                { # MetadataFilter label name value pairs that are expected to match corresponding labels presented as metadata to the loadbalancer.
553                  "name": "A String", # Name of metadata label.
554                      # The name can have a maximum length of 1024 characters and must be at least 1 character long.
555                  "value": "A String", # The value of the label must match the specified value.
556                      # value can have a maximum length of 1024 characters.
557                },
558              ],
559            },
560          ],
561          "IPAddress": "A String", # The IP address that this forwarding rule is serving on behalf of.
562              #
563              # Addresses are restricted based on the forwarding rule's load balancing scheme (EXTERNAL or INTERNAL) and scope (global or regional).
564              #
565              # When the load balancing scheme is EXTERNAL, for global forwarding rules, the address must be a global IP, and for regional forwarding rules, the address must live in the same region as the forwarding rule. If this field is empty, 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.
566              #
567              # When the load balancing scheme is INTERNAL_SELF_MANAGED, this must be a URL reference to an existing Address resource ( internal regional static IP address), with a purpose of GCE_END_POINT and address_type of INTERNAL.
568              #
569              # When the load balancing scheme is INTERNAL, this can only be an RFC 1918 IP address belonging to the network/subnet configured for the forwarding rule. By default, if this field is empty, an ephemeral internal IP address will be automatically allocated from the IP range of the subnet or network configured for this forwarding rule.
570              #
571              # An address can be specified either by a literal IP address or a URL reference to an existing Address resource. The following examples are all valid:
572              # - 100.1.2.3
573              # - https://www.googleapis.com/compute/v1/projects/project/regions/region/addresses/address
574              # - projects/project/regions/region/addresses/address
575              # - regions/region/addresses/address
576              # - global/addresses/address
577              # - address
578          "description": "A String", # An optional description of this resource. Provide this property when you create the resource.
579          "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, otherwise the request will fail with error 412 conditionNotMet.
580              #
581              # To see the latest fingerprint, make a get() request to retrieve a ForwardingRule.
582          "allPorts": True or False, # This field is used along with the backend_service field for internal load balancing or with the target field for internal TargetInstance. This field cannot be used with port or portRange fields.
583              #
584              # When the load balancing scheme is INTERNAL and protocol is TCP/UDP, specify this field to allow packets addressed to any ports will be forwarded to the backends configured with this forwarding rule.
585          "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 ForwardingRule. Include the fingerprint in patch request to ensure that you do not overwrite changes that were applied from another concurrent request.
586              #
587              # To see the latest fingerprint, make a get() request to retrieve a ForwardingRule.
588          "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.
589              #
590              # 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.
591              #
592              # This field is only used for internal load balancing.
593          "kind": "compute#forwardingRule", # [Output Only] Type of the resource. Always compute#forwardingRule for Forwarding Rule resources.
594          "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.
595          "region": "A String", # [Output Only] URL of the region where the regional forwarding rule resides. This field is not applicable to global forwarding rules. You must specify this field as part of the HTTP request URL. It is not settable as a field in the request body.
596          "allowGlobalAccess": True or False, # This field is used along with the backend_service field for internal load balancing or with the target field for internal TargetInstance. If the field is set to TRUE, clients can access ILB from all regions. Otherwise only allows access from clients in the same region as the internal load balancer.
597          "networkTier": "A String", # This signifies the networking tier used for configuring this load balancer and can only take the following values: PREMIUM , STANDARD.
598              #
599              # For regional ForwardingRule, the valid values are PREMIUM and STANDARD. For GlobalForwardingRule, the valid value is PREMIUM.
600              #
601              # If this field is not specified, it is assumed to be PREMIUM. If IPAddress is specified, this value must be equal to the networkTier of the Address.
602          "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. For INTERNAL_SELF_MANAGED load balancing, only HTTP and HTTPS targets are valid.
603          "subnetwork": "A String", # This field is only used for INTERNAL load balancing.
604              #
605              # For internal load balancing, this field identifies the subnetwork that the load balanced IP should belong to for this Forwarding Rule.
606              #
607              # 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.
608          "ports": [ # This field is used along with the backend_service field for internal load balancing.
609              #
610              # When the load balancing scheme is INTERNAL, a list of ports can be configured, for example, ['80'], ['8000','9000'] etc. Only packets addressed to these ports will be forwarded to the backends configured with this forwarding rule.
611              #
612              # You may specify a maximum of up to 5 ports.
613            "A String",
614          ],
615          "selfLink": "A String", # [Output Only] Server-defined URL for the resource.
616        },
617    ],
618    "warning": { # [Output Only] Informational warning message.
619      "message": "A String", # [Output Only] A human-readable description of the warning code.
620      "code": "A String", # [Output Only] A warning code, if applicable. For example, Compute Engine returns NO_RESULTS_ON_PAGE if there are no results in the response.
621      "data": [ # [Output Only] Metadata about this warning in key: value format. For example:
622          # "data": [ { "key": "scope", "value": "zones/us-east1-d" }
623        {
624          "value": "A String", # [Output Only] A warning data value corresponding to the key.
625          "key": "A String", # [Output Only] A key that provides more detail on the warning being returned. For example, for warnings where there are no results in a list request for a particular zone, this key might be scope and the key value might be the zone name. Other examples might be a key indicating a deprecated resource and a suggested replacement, or a warning about invalid network settings (for example, if an instance attempts to perform IP forwarding but is not enabled for IP forwarding).
626        },
627      ],
628    },
629    "id": "A String", # [Output Only] Unique identifier for the resource; defined by the server.
630    "selfLink": "A String", # [Output Only] Server-defined URL for this resource.
631  }</pre>
632</div>
633
634<div class="method">
635    <code class="details" id="list_next">list_next(previous_request, previous_response)</code>
636  <pre>Retrieves the next page of results.
637
638Args:
639  previous_request: The request for the previous page. (required)
640  previous_response: The response from the request for the previous page. (required)
641
642Returns:
643  A request object that you can call 'execute()' on to request the next
644  page. Returns None if there are no more items in the collection.
645    </pre>
646</div>
647
648<div class="method">
649    <code class="details" id="patch">patch(project, forwardingRule, body, requestId=None)</code>
650  <pre>Updates the specified forwarding rule with the data included in the request. This method supports PATCH semantics and uses the JSON merge patch format and processing rules. Currently, you can only patch the network_tier field.
651
652Args:
653  project: string, Project ID for this request. (required)
654  forwardingRule: string, Name of the ForwardingRule resource to patch. (required)
655  body: object, The request body. (required)
656    The object takes the form of:
657
658{ # 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. (== resource_for beta.forwardingRules ==) (== resource_for v1.forwardingRules ==) (== resource_for beta.globalForwardingRules ==) (== resource_for v1.globalForwardingRules ==) (== resource_for beta.regionForwardingRules ==) (== resource_for v1.regionForwardingRules ==)
659    "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.
660      "a_key": "A String",
661    },
662    "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 an external global forwarding rule.
663    "loadBalancingScheme": "A String", # This signifies what the ForwardingRule will be used for and can only take the following values: INTERNAL, INTERNAL_SELF_MANAGED, EXTERNAL. The value of INTERNAL means that this will be used for Internal Network Load Balancing (TCP, UDP). The value of INTERNAL_SELF_MANAGED means that this will be used for Internal Global HTTP(S) LB. The value of EXTERNAL means that this will be used for External Load Balancing (HTTP(S) LB, External TCP/UDP LB, SSL Proxy)
664    "IPProtocol": "A String", # The IP protocol to which this rule applies. Valid options are TCP, UDP, ESP, AH, SCTP or ICMP.
665        #
666        # When the load balancing scheme is INTERNAL, only TCP and UDP are valid. When the load balancing scheme is INTERNAL_SELF_MANAGED, only TCPis valid.
667    "creationTimestamp": "A String", # [Output Only] Creation timestamp in RFC3339 text format.
668    "id": "A String", # [Output Only] The unique identifier for the resource. This identifier is defined by the server.
669    "network": "A String", # This field is not used for external load balancing.
670        #
671        # For INTERNAL and INTERNAL_SELF_MANAGED 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.
672    "portRange": "A String", # This field is used along with the target field for TargetHttpProxy, TargetHttpsProxy, TargetSslProxy, TargetTcpProxy, TargetVpnGateway, TargetPool, TargetInstance.
673        #
674        # 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.
675        #
676        # Some types of forwarding target have constraints on the acceptable ports:
677        # - TargetHttpProxy: 80, 8080
678        # - TargetHttpsProxy: 443
679        # - TargetTcpProxy: 25, 43, 110, 143, 195, 443, 465, 587, 700, 993, 995, 1688, 1883, 5222
680        # - TargetSslProxy: 25, 43, 110, 143, 195, 443, 465, 587, 700, 993, 995, 1688, 1883, 5222
681        # - TargetVpnGateway: 500, 4500
682    "serviceName": "A String", # [Output Only] The internal fully qualified service name for this Forwarding Rule.
683        #
684        # This field is only used for internal load balancing.
685    "backendService": "A String", # This field is only used for INTERNAL load balancing.
686        #
687        # For internal load balancing, this field identifies the BackendService resource to receive the matched traffic.
688    "metadataFilters": [ # Opaque filter criteria used by Loadbalancer to restrict routing configuration to a limited set xDS compliant clients. In their xDS requests to Loadbalancer, xDS clients present node metadata. If a match takes place, the relevant routing configuration is made available to those proxies.
689        # For each metadataFilter in this list, if its filterMatchCriteria is set to MATCH_ANY, at least one of the filterLabels must match the corresponding label provided in the metadata. If its filterMatchCriteria is set to MATCH_ALL, then all of its filterLabels must match with corresponding labels in the provided metadata.
690        # metadataFilters specified here can be overridden by those specified in the UrlMap that this ForwardingRule references.
691        # metadataFilters only applies to Loadbalancers that have their loadBalancingScheme set to INTERNAL_SELF_MANAGED.
692      { # Opaque filter criteria used by loadbalancers to restrict routing configuration to a limited set of loadbalancing proxies. Proxies and sidecars involved in loadbalancing would typically present metadata to the loadbalancers which need to match criteria specified here. If a match takes place, the relevant routing configuration is made available to those proxies.
693          # For each metadataFilter in this list, if its filterMatchCriteria is set to MATCH_ANY, at least one of the filterLabels must match the corresponding label provided in the metadata. If its filterMatchCriteria is set to MATCH_ALL, then all of its filterLabels must match with corresponding labels in the provided metadata.
694          # An example for using metadataFilters would be: if loadbalancing involves  Envoys, they will only receive routing configuration when values in metadataFilters match values supplied in <a href="https://www.envoyproxy.io/docs/envoy/latest/api-v2/api/v2/core/base.proto#envoy-api-msg-core-node" Node metadata of their XDS requests to loadbalancers.
695        "filterMatchCriteria": "A String", # Specifies how individual filterLabel matches within the list of filterLabels contribute towards the overall metadataFilter match.
696            # Supported values are:
697            # - MATCH_ANY: At least one of the filterLabels must have a matching label in the provided metadata.
698            # - MATCH_ALL: All filterLabels must have matching labels in the provided metadata.
699        "filterLabels": [ # The list of label value pairs that must match labels in the provided metadata based on filterMatchCriteria
700            # This list must not be empty and can have at the most 64 entries.
701          { # MetadataFilter label name value pairs that are expected to match corresponding labels presented as metadata to the loadbalancer.
702            "name": "A String", # Name of metadata label.
703                # The name can have a maximum length of 1024 characters and must be at least 1 character long.
704            "value": "A String", # The value of the label must match the specified value.
705                # value can have a maximum length of 1024 characters.
706          },
707        ],
708      },
709    ],
710    "IPAddress": "A String", # The IP address that this forwarding rule is serving on behalf of.
711        #
712        # Addresses are restricted based on the forwarding rule's load balancing scheme (EXTERNAL or INTERNAL) and scope (global or regional).
713        #
714        # When the load balancing scheme is EXTERNAL, for global forwarding rules, the address must be a global IP, and for regional forwarding rules, the address must live in the same region as the forwarding rule. If this field is empty, 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.
715        #
716        # When the load balancing scheme is INTERNAL_SELF_MANAGED, this must be a URL reference to an existing Address resource ( internal regional static IP address), with a purpose of GCE_END_POINT and address_type of INTERNAL.
717        #
718        # When the load balancing scheme is INTERNAL, this can only be an RFC 1918 IP address belonging to the network/subnet configured for the forwarding rule. By default, if this field is empty, an ephemeral internal IP address will be automatically allocated from the IP range of the subnet or network configured for this forwarding rule.
719        #
720        # An address can be specified either by a literal IP address or a URL reference to an existing Address resource. The following examples are all valid:
721        # - 100.1.2.3
722        # - https://www.googleapis.com/compute/v1/projects/project/regions/region/addresses/address
723        # - projects/project/regions/region/addresses/address
724        # - regions/region/addresses/address
725        # - global/addresses/address
726        # - address
727    "description": "A String", # An optional description of this resource. Provide this property when you create the resource.
728    "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, otherwise the request will fail with error 412 conditionNotMet.
729        #
730        # To see the latest fingerprint, make a get() request to retrieve a ForwardingRule.
731    "allPorts": True or False, # This field is used along with the backend_service field for internal load balancing or with the target field for internal TargetInstance. This field cannot be used with port or portRange fields.
732        #
733        # When the load balancing scheme is INTERNAL and protocol is TCP/UDP, specify this field to allow packets addressed to any ports will be forwarded to the backends configured with this forwarding rule.
734    "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 ForwardingRule. Include the fingerprint in patch request to ensure that you do not overwrite changes that were applied from another concurrent request.
735        #
736        # To see the latest fingerprint, make a get() request to retrieve a ForwardingRule.
737    "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.
738        #
739        # 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.
740        #
741        # This field is only used for internal load balancing.
742    "kind": "compute#forwardingRule", # [Output Only] Type of the resource. Always compute#forwardingRule for Forwarding Rule resources.
743    "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.
744    "region": "A String", # [Output Only] URL of the region where the regional forwarding rule resides. This field is not applicable to global forwarding rules. You must specify this field as part of the HTTP request URL. It is not settable as a field in the request body.
745    "allowGlobalAccess": True or False, # This field is used along with the backend_service field for internal load balancing or with the target field for internal TargetInstance. If the field is set to TRUE, clients can access ILB from all regions. Otherwise only allows access from clients in the same region as the internal load balancer.
746    "networkTier": "A String", # This signifies the networking tier used for configuring this load balancer and can only take the following values: PREMIUM , STANDARD.
747        #
748        # For regional ForwardingRule, the valid values are PREMIUM and STANDARD. For GlobalForwardingRule, the valid value is PREMIUM.
749        #
750        # If this field is not specified, it is assumed to be PREMIUM. If IPAddress is specified, this value must be equal to the networkTier of the Address.
751    "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. For INTERNAL_SELF_MANAGED load balancing, only HTTP and HTTPS targets are valid.
752    "subnetwork": "A String", # This field is only used for INTERNAL load balancing.
753        #
754        # For internal load balancing, this field identifies the subnetwork that the load balanced IP should belong to for this Forwarding Rule.
755        #
756        # 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.
757    "ports": [ # This field is used along with the backend_service field for internal load balancing.
758        #
759        # When the load balancing scheme is INTERNAL, a list of ports can be configured, for example, ['80'], ['8000','9000'] etc. Only packets addressed to these ports will be forwarded to the backends configured with this forwarding rule.
760        #
761        # You may specify a maximum of up to 5 ports.
762      "A String",
763    ],
764    "selfLink": "A String", # [Output Only] Server-defined URL for the resource.
765  }
766
767  requestId: string, An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed.
768
769For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments.
770
771The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
772
773Returns:
774  An object of the form:
775
776    { # Represents an Operation resource.
777      #
778      # You can use an operation resource to manage asynchronous API requests. For more information, read Handling API responses.
779      #
780      # Operations can be global, regional or zonal.
781      # - For global operations, use the globalOperations resource.
782      # - For regional operations, use the regionOperations resource.
783      # - For zonal operations, use the zonalOperations resource.
784      #
785      # For more information, read  Global, Regional, and Zonal Resources. (== resource_for v1.globalOperations ==) (== resource_for beta.globalOperations ==) (== resource_for v1.regionOperations ==) (== resource_for beta.regionOperations ==) (== resource_for v1.zoneOperations ==) (== resource_for beta.zoneOperations ==)
786    "targetId": "A String", # [Output Only] The unique target ID, which identifies a specific incarnation of the target resource.
787    "clientOperationId": "A String", # [Output Only] The value of `requestId` if you provided it in the request. Not present otherwise.
788    "creationTimestamp": "A String", # [Deprecated] This field is deprecated.
789    "id": "A String", # [Output Only] The unique identifier for the resource. This identifier is defined by the server.
790    "zone": "A String", # [Output Only] The URL of the zone where the operation resides. Only applicable when performing per-zone operations.
791    "insertTime": "A String", # [Output Only] The time that this operation was requested. This value is in RFC3339 text format.
792    "operationType": "A String", # [Output Only] The type of operation, such as insert, update, or delete, and so on.
793    "httpErrorMessage": "A String", # [Output Only] If the operation fails, this field contains the HTTP error message that was returned, such as NOT FOUND.
794    "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.
795    "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.
796    "statusMessage": "A String", # [Output Only] An optional textual description of the current status of the operation.
797    "status": "A String", # [Output Only] The status of the operation, which can be one of the following: PENDING, RUNNING, or DONE.
798    "description": "A String", # [Output Only] A textual description of the operation, which is set when the operation is created.
799    "warnings": [ # [Output Only] If warning messages are generated during processing of the operation, this field will be populated.
800      {
801        "message": "A String", # [Output Only] A human-readable description of the warning code.
802        "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.
803        "data": [ # [Output Only] Metadata about this warning in key: value format. For example:
804            # "data": [ { "key": "scope", "value": "zones/us-east1-d" }
805          {
806            "value": "A String", # [Output Only] A warning data value corresponding to the key.
807            "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).
808          },
809        ],
810      },
811    ],
812    "user": "A String", # [Output Only] User who requested the operation, for example: user@example.com.
813    "startTime": "A String", # [Output Only] The time that this operation was started by the server. This value is in RFC3339 text format.
814    "kind": "compute#operation", # [Output Only] Type of the resource. Always compute#operation for Operation resources.
815    "name": "A String", # [Output Only] Name of the resource.
816    "region": "A String", # [Output Only] The URL of the region where the operation resides. Only applicable when performing regional operations.
817    "error": { # [Output Only] If errors are generated during processing of the operation, this field will be populated.
818      "errors": [ # [Output Only] The array of errors encountered while processing this operation.
819        {
820          "message": "A String", # [Output Only] An optional, human-readable error message.
821          "code": "A String", # [Output Only] The error type identifier for this error.
822          "location": "A String", # [Output Only] Indicates the field in the request that caused the error. This property is optional.
823        },
824      ],
825    },
826    "endTime": "A String", # [Output Only] The time that this operation was completed. This value is in RFC3339 text format.
827    "selfLink": "A String", # [Output Only] Server-defined URL for the resource.
828    "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.
829  }</pre>
830</div>
831
832<div class="method">
833    <code class="details" id="setLabels">setLabels(project, resource, body)</code>
834  <pre>Sets the labels on the specified resource. To learn more about labels, read the Labeling Resources documentation.
835
836Args:
837  project: string, Project ID for this request. (required)
838  resource: string, Name or id of the resource for this request. (required)
839  body: object, The request body. (required)
840    The object takes the form of:
841
842{
843    "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 when updating or changing labels, otherwise the request will fail with error 412 conditionNotMet. Make a get() request to the resource to get the latest fingerprint.
844    "labels": { # A list of labels to apply for this resource. Each label key & value must 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. For example, "webserver-frontend": "images". A label value can also be empty (e.g. "my-label": "").
845      "a_key": "A String",
846    },
847  }
848
849
850Returns:
851  An object of the form:
852
853    { # Represents an Operation resource.
854      #
855      # You can use an operation resource to manage asynchronous API requests. For more information, read Handling API responses.
856      #
857      # Operations can be global, regional or zonal.
858      # - For global operations, use the globalOperations resource.
859      # - For regional operations, use the regionOperations resource.
860      # - For zonal operations, use the zonalOperations resource.
861      #
862      # For more information, read  Global, Regional, and Zonal Resources. (== resource_for v1.globalOperations ==) (== resource_for beta.globalOperations ==) (== resource_for v1.regionOperations ==) (== resource_for beta.regionOperations ==) (== resource_for v1.zoneOperations ==) (== resource_for beta.zoneOperations ==)
863    "targetId": "A String", # [Output Only] The unique target ID, which identifies a specific incarnation of the target resource.
864    "clientOperationId": "A String", # [Output Only] The value of `requestId` if you provided it in the request. Not present otherwise.
865    "creationTimestamp": "A String", # [Deprecated] This field is deprecated.
866    "id": "A String", # [Output Only] The unique identifier for the resource. This identifier is defined by the server.
867    "zone": "A String", # [Output Only] The URL of the zone where the operation resides. Only applicable when performing per-zone operations.
868    "insertTime": "A String", # [Output Only] The time that this operation was requested. This value is in RFC3339 text format.
869    "operationType": "A String", # [Output Only] The type of operation, such as insert, update, or delete, and so on.
870    "httpErrorMessage": "A String", # [Output Only] If the operation fails, this field contains the HTTP error message that was returned, such as NOT FOUND.
871    "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.
872    "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.
873    "statusMessage": "A String", # [Output Only] An optional textual description of the current status of the operation.
874    "status": "A String", # [Output Only] The status of the operation, which can be one of the following: PENDING, RUNNING, or DONE.
875    "description": "A String", # [Output Only] A textual description of the operation, which is set when the operation is created.
876    "warnings": [ # [Output Only] If warning messages are generated during processing of the operation, this field will be populated.
877      {
878        "message": "A String", # [Output Only] A human-readable description of the warning code.
879        "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.
880        "data": [ # [Output Only] Metadata about this warning in key: value format. For example:
881            # "data": [ { "key": "scope", "value": "zones/us-east1-d" }
882          {
883            "value": "A String", # [Output Only] A warning data value corresponding to the key.
884            "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).
885          },
886        ],
887      },
888    ],
889    "user": "A String", # [Output Only] User who requested the operation, for example: user@example.com.
890    "startTime": "A String", # [Output Only] The time that this operation was started by the server. This value is in RFC3339 text format.
891    "kind": "compute#operation", # [Output Only] Type of the resource. Always compute#operation for Operation resources.
892    "name": "A String", # [Output Only] Name of the resource.
893    "region": "A String", # [Output Only] The URL of the region where the operation resides. Only applicable when performing regional operations.
894    "error": { # [Output Only] If errors are generated during processing of the operation, this field will be populated.
895      "errors": [ # [Output Only] The array of errors encountered while processing this operation.
896        {
897          "message": "A String", # [Output Only] An optional, human-readable error message.
898          "code": "A String", # [Output Only] The error type identifier for this error.
899          "location": "A String", # [Output Only] Indicates the field in the request that caused the error. This property is optional.
900        },
901      ],
902    },
903    "endTime": "A String", # [Output Only] The time that this operation was completed. This value is in RFC3339 text format.
904    "selfLink": "A String", # [Output Only] Server-defined URL for the resource.
905    "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.
906  }</pre>
907</div>
908
909<div class="method">
910    <code class="details" id="setTarget">setTarget(project, forwardingRule, body, requestId=None)</code>
911  <pre>Changes target URL for the GlobalForwardingRule resource. The new target should be of the same type as the old target.
912
913Args:
914  project: string, Project ID for this request. (required)
915  forwardingRule: string, Name of the ForwardingRule resource in which target is to be set. (required)
916  body: object, The request body. (required)
917    The object takes the form of:
918
919{
920    "target": "A String",
921  }
922
923  requestId: string, An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed.
924
925For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments.
926
927The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
928
929Returns:
930  An object of the form:
931
932    { # Represents an Operation resource.
933      #
934      # You can use an operation resource to manage asynchronous API requests. For more information, read Handling API responses.
935      #
936      # Operations can be global, regional or zonal.
937      # - For global operations, use the globalOperations resource.
938      # - For regional operations, use the regionOperations resource.
939      # - For zonal operations, use the zonalOperations resource.
940      #
941      # For more information, read  Global, Regional, and Zonal Resources. (== resource_for v1.globalOperations ==) (== resource_for beta.globalOperations ==) (== resource_for v1.regionOperations ==) (== resource_for beta.regionOperations ==) (== resource_for v1.zoneOperations ==) (== resource_for beta.zoneOperations ==)
942    "targetId": "A String", # [Output Only] The unique target ID, which identifies a specific incarnation of the target resource.
943    "clientOperationId": "A String", # [Output Only] The value of `requestId` if you provided it in the request. Not present otherwise.
944    "creationTimestamp": "A String", # [Deprecated] This field is deprecated.
945    "id": "A String", # [Output Only] The unique identifier for the resource. This identifier is defined by the server.
946    "zone": "A String", # [Output Only] The URL of the zone where the operation resides. Only applicable when performing per-zone operations.
947    "insertTime": "A String", # [Output Only] The time that this operation was requested. This value is in RFC3339 text format.
948    "operationType": "A String", # [Output Only] The type of operation, such as insert, update, or delete, and so on.
949    "httpErrorMessage": "A String", # [Output Only] If the operation fails, this field contains the HTTP error message that was returned, such as NOT FOUND.
950    "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.
951    "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.
952    "statusMessage": "A String", # [Output Only] An optional textual description of the current status of the operation.
953    "status": "A String", # [Output Only] The status of the operation, which can be one of the following: PENDING, RUNNING, or DONE.
954    "description": "A String", # [Output Only] A textual description of the operation, which is set when the operation is created.
955    "warnings": [ # [Output Only] If warning messages are generated during processing of the operation, this field will be populated.
956      {
957        "message": "A String", # [Output Only] A human-readable description of the warning code.
958        "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.
959        "data": [ # [Output Only] Metadata about this warning in key: value format. For example:
960            # "data": [ { "key": "scope", "value": "zones/us-east1-d" }
961          {
962            "value": "A String", # [Output Only] A warning data value corresponding to the key.
963            "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).
964          },
965        ],
966      },
967    ],
968    "user": "A String", # [Output Only] User who requested the operation, for example: user@example.com.
969    "startTime": "A String", # [Output Only] The time that this operation was started by the server. This value is in RFC3339 text format.
970    "kind": "compute#operation", # [Output Only] Type of the resource. Always compute#operation for Operation resources.
971    "name": "A String", # [Output Only] Name of the resource.
972    "region": "A String", # [Output Only] The URL of the region where the operation resides. Only applicable when performing regional operations.
973    "error": { # [Output Only] If errors are generated during processing of the operation, this field will be populated.
974      "errors": [ # [Output Only] The array of errors encountered while processing this operation.
975        {
976          "message": "A String", # [Output Only] An optional, human-readable error message.
977          "code": "A String", # [Output Only] The error type identifier for this error.
978          "location": "A String", # [Output Only] Indicates the field in the request that caused the error. This property is optional.
979        },
980      ],
981    },
982    "endTime": "A String", # [Output Only] The time that this operation was completed. This value is in RFC3339 text format.
983    "selfLink": "A String", # [Output Only] Server-defined URL for the resource.
984    "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.
985  }</pre>
986</div>
987
988<div class="method">
989    <code class="details" id="testIamPermissions">testIamPermissions(project, resource, body)</code>
990  <pre>Returns permissions that a caller has on the specified resource.
991
992Args:
993  project: string, Project ID for this request. (required)
994  resource: string, Name or id of the resource for this request. (required)
995  body: object, The request body. (required)
996    The object takes the form of:
997
998{
999    "permissions": [ # The set of permissions to check for the 'resource'. Permissions with wildcards (such as '*' or 'storage.*') are not allowed.
1000      "A String",
1001    ],
1002  }
1003
1004
1005Returns:
1006  An object of the form:
1007
1008    {
1009    "permissions": [ # A subset of `TestPermissionsRequest.permissions` that the caller is allowed.
1010      "A String",
1011    ],
1012  }</pre>
1013</div>
1014
1015</body></html>