1<html><body> 2<style> 3 4body, h1, h2, h3, div, span, p, pre, a { 5 margin: 0; 6 padding: 0; 7 border: 0; 8 font-weight: inherit; 9 font-style: inherit; 10 font-size: 100%; 11 font-family: inherit; 12 vertical-align: baseline; 13} 14 15body { 16 font-size: 13px; 17 padding: 1em; 18} 19 20h1 { 21 font-size: 26px; 22 margin-bottom: 1em; 23} 24 25h2 { 26 font-size: 24px; 27 margin-bottom: 1em; 28} 29 30h3 { 31 font-size: 20px; 32 margin-bottom: 1em; 33 margin-top: 1em; 34} 35 36pre, code { 37 line-height: 1.5; 38 font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace; 39} 40 41pre { 42 margin-top: 0.5em; 43} 44 45h1, h2, h3, p { 46 font-family: Arial, sans serif; 47} 48 49h1, h2, h3 { 50 border-bottom: solid #CCC 1px; 51} 52 53.toc_element { 54 margin-top: 0.5em; 55} 56 57.firstline { 58 margin-left: 2 em; 59} 60 61.method { 62 margin-top: 1em; 63 border: solid 1px #CCC; 64 padding: 1em; 65 background: #EEE; 66} 67 68.details { 69 font-weight: bold; 70 font-size: 14px; 71} 72 73</style> 74 75<h1><a href="compute_alpha.html">Compute Engine API</a> . <a href="compute_alpha.forwardingRules.html">forwardingRules</a></h1> 76<h2>Instance Methods</h2> 77<p class="toc_element"> 78 <code><a href="#aggregatedList">aggregatedList(project, orderBy=None, maxResults=None, pageToken=None, filter=None)</a></code></p> 79<p class="firstline">Retrieves an aggregated list of forwarding rules.</p> 80<p class="toc_element"> 81 <code><a href="#aggregatedList_next">aggregatedList_next(previous_request, previous_response)</a></code></p> 82<p class="firstline">Retrieves the next page of results.</p> 83<p class="toc_element"> 84 <code><a href="#delete">delete(project, region, forwardingRule, requestId=None)</a></code></p> 85<p class="firstline">Deletes the specified ForwardingRule resource.</p> 86<p class="toc_element"> 87 <code><a href="#get">get(project, region, forwardingRule)</a></code></p> 88<p class="firstline">Returns the specified ForwardingRule resource.</p> 89<p class="toc_element"> 90 <code><a href="#insert">insert(project, region, body, requestId=None)</a></code></p> 91<p class="firstline">Creates a ForwardingRule resource in the specified project and region using the data included in the request.</p> 92<p class="toc_element"> 93 <code><a href="#list">list(project, region, orderBy=None, maxResults=None, pageToken=None, filter=None)</a></code></p> 94<p class="firstline">Retrieves a list of ForwardingRule resources available to the specified project and region.</p> 95<p class="toc_element"> 96 <code><a href="#list_next">list_next(previous_request, previous_response)</a></code></p> 97<p class="firstline">Retrieves the next page of results.</p> 98<p class="toc_element"> 99 <code><a href="#patch">patch(project, region, forwardingRule, body, requestId=None)</a></code></p> 100<p class="firstline">Updates the specified forwarding rule with the data included in the request. This method supports PATCH semantics and uses the JSON merge patch format and processing rules. Currently, you can only patch the network_tier field.</p> 101<p class="toc_element"> 102 <code><a href="#setLabels">setLabels(project, region, resource, body, requestId=None)</a></code></p> 103<p class="firstline">Sets the labels on the specified resource. To learn more about labels, read the Labeling Resources documentation.</p> 104<p class="toc_element"> 105 <code><a href="#setTarget">setTarget(project, region, forwardingRule, body, requestId=None)</a></code></p> 106<p class="firstline">Changes target URL for forwarding rule. The new target should be of the same type as the old target.</p> 107<p class="toc_element"> 108 <code><a href="#testIamPermissions">testIamPermissions(project, region, resource, body)</a></code></p> 109<p class="firstline">Returns permissions that a caller has on the specified resource.</p> 110<h3>Method Details</h3> 111<div class="method"> 112 <code class="details" id="aggregatedList">aggregatedList(project, orderBy=None, maxResults=None, pageToken=None, filter=None)</code> 113 <pre>Retrieves an aggregated list of forwarding rules. 114 115Args: 116 project: string, Project ID for this request. (required) 117 orderBy: string, Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. 118 119You can also sort results in descending order based on the creation timestamp using orderBy="creationTimestamp desc". This sorts results based on the creationTimestamp field in reverse chronological order (newest result first). Use this to sort resources like operations so that the newest operation is returned first. 120 121Currently, only sorting by name or creationTimestamp desc is supported. 122 maxResults: integer, The maximum number of results per page that should be returned. If the number of available results is larger than maxResults, Compute Engine returns a nextPageToken that can be used to get the next page of results in subsequent list requests. Acceptable values are 0 to 500, inclusive. (Default: 500) 123 pageToken: string, Specifies a page token to use. Set pageToken to the nextPageToken returned by a previous list request to get the next page of results. 124 filter: string, 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 <. 125 126For example, if you are filtering Compute Engine instances, you can exclude instances named example-instance by specifying name != example-instance. 127 128You 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. 129 130To 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). 131 132Returns: 133 An object of the form: 134 135 { 136 "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. 137 "kind": "compute#forwardingRuleAggregatedList", # [Output Only] Type of resource. Always compute#forwardingRuleAggregatedList for lists of forwarding rules. 138 "items": { # A list of ForwardingRulesScopedList resources. 139 "a_key": { # Name of the scope containing this set of addresses. 140 "forwardingRules": [ # A list of forwarding rules contained in this scope. 141 { # 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 ==) 142 "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. 143 "a_key": "A String", 144 }, 145 "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. 146 "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) 147 "IPProtocol": "A String", # The IP protocol to which this rule applies. Valid options are TCP, UDP, ESP, AH, SCTP or ICMP. 148 # 149 # 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. 150 "creationTimestamp": "A String", # [Output Only] Creation timestamp in RFC3339 text format. 151 "id": "A String", # [Output Only] The unique identifier for the resource. This identifier is defined by the server. 152 "network": "A String", # This field is not used for external load balancing. 153 # 154 # 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. 155 "portRange": "A String", # This field is used along with the target field for TargetHttpProxy, TargetHttpsProxy, TargetSslProxy, TargetTcpProxy, TargetVpnGateway, TargetPool, TargetInstance. 156 # 157 # 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. 158 # 159 # Some types of forwarding target have constraints on the acceptable ports: 160 # - TargetHttpProxy: 80, 8080 161 # - TargetHttpsProxy: 443 162 # - TargetTcpProxy: 25, 43, 110, 143, 195, 443, 465, 587, 700, 993, 995, 1688, 1883, 5222 163 # - TargetSslProxy: 25, 43, 110, 143, 195, 443, 465, 587, 700, 993, 995, 1688, 1883, 5222 164 # - TargetVpnGateway: 500, 4500 165 "serviceName": "A String", # [Output Only] The internal fully qualified service name for this Forwarding Rule. 166 # 167 # This field is only used for internal load balancing. 168 "backendService": "A String", # This field is only used for INTERNAL load balancing. 169 # 170 # For internal load balancing, this field identifies the BackendService resource to receive the matched traffic. 171 "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. 172 # 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. 173 # metadataFilters specified here can be overridden by those specified in the UrlMap that this ForwardingRule references. 174 # metadataFilters only applies to Loadbalancers that have their loadBalancingScheme set to INTERNAL_SELF_MANAGED. 175 { # 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. 176 # 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. 177 # 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. 178 "filterMatchCriteria": "A String", # Specifies how individual filterLabel matches within the list of filterLabels contribute towards the overall metadataFilter match. 179 # Supported values are: 180 # - MATCH_ANY: At least one of the filterLabels must have a matching label in the provided metadata. 181 # - MATCH_ALL: All filterLabels must have matching labels in the provided metadata. 182 "filterLabels": [ # The list of label value pairs that must match labels in the provided metadata based on filterMatchCriteria 183 # This list must not be empty and can have at the most 64 entries. 184 { # MetadataFilter label name value pairs that are expected to match corresponding labels presented as metadata to the loadbalancer. 185 "name": "A String", # Name of metadata label. 186 # The name can have a maximum length of 1024 characters and must be at least 1 character long. 187 "value": "A String", # The value of the label must match the specified value. 188 # value can have a maximum length of 1024 characters. 189 }, 190 ], 191 }, 192 ], 193 "IPAddress": "A String", # The IP address that this forwarding rule is serving on behalf of. 194 # 195 # Addresses are restricted based on the forwarding rule's load balancing scheme (EXTERNAL or INTERNAL) and scope (global or regional). 196 # 197 # 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. 198 # 199 # 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. 200 # 201 # 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. 202 # 203 # 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: 204 # - 100.1.2.3 205 # - https://www.googleapis.com/compute/v1/projects/project/regions/region/addresses/address 206 # - projects/project/regions/region/addresses/address 207 # - regions/region/addresses/address 208 # - global/addresses/address 209 # - address 210 "description": "A String", # An optional description of this resource. Provide this property when you create the resource. 211 "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. 212 # 213 # To see the latest fingerprint, make a get() request to retrieve a ForwardingRule. 214 "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. 215 # 216 # 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. 217 "selfLinkWithId": "A String", # [Output Only] Server-defined URL for this resource with the resource id. 218 "fingerprint": "A String", # Fingerprint of this resource. A hash of the contents stored in this object. This field is used in optimistic locking. This field will be ignored when inserting a ForwardingRule. Include the fingerprint in patch request to ensure that you do not overwrite changes that were applied from another concurrent request. 219 # 220 # To see the latest fingerprint, make a get() request to retrieve a ForwardingRule. 221 "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. 222 # 223 # 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. 224 # 225 # This field is only used for internal load balancing. 226 "kind": "compute#forwardingRule", # [Output Only] Type of the resource. Always compute#forwardingRule for Forwarding Rule resources. 227 "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. 228 "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. 229 "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. 230 "networkTier": "A String", # This signifies the networking tier used for configuring this load balancer and can only take the following values: PREMIUM , STANDARD. 231 # 232 # For regional ForwardingRule, the valid values are PREMIUM and STANDARD. For GlobalForwardingRule, the valid value is PREMIUM. 233 # 234 # 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. 235 "isMirroringCollector": True or False, # Indicates whether or not this load balancer can be used as a collector for packet mirroring. To prevent mirroring loops, instances behind this load balancer will not have their traffic mirrored even if a PacketMirroring rule applies to them. This can only be set to true for load balancers that have their loadBalancingScheme set to INTERNAL. 236 "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. 237 "subnetwork": "A String", # This field is only used for INTERNAL load balancing. 238 # 239 # For internal load balancing, this field identifies the subnetwork that the load balanced IP should belong to for this Forwarding Rule. 240 # 241 # 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. 242 "ports": [ # This field is used along with the backend_service field for internal load balancing. 243 # 244 # 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. 245 # 246 # You may specify a maximum of up to 5 ports. 247 "A String", 248 ], 249 "selfLink": "A String", # [Output Only] Server-defined URL for the resource. 250 }, 251 ], 252 "warning": { # Informational warning which replaces the list of forwarding rules when the list is empty. 253 "message": "A String", # [Output Only] A human-readable description of the warning code. 254 "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. 255 "data": [ # [Output Only] Metadata about this warning in key: value format. For example: 256 # "data": [ { "key": "scope", "value": "zones/us-east1-d" } 257 { 258 "value": "A String", # [Output Only] A warning data value corresponding to the key. 259 "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). 260 }, 261 ], 262 }, 263 }, 264 }, 265 "warning": { # [Output Only] Informational warning message. 266 "message": "A String", # [Output Only] A human-readable description of the warning code. 267 "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. 268 "data": [ # [Output Only] Metadata about this warning in key: value format. For example: 269 # "data": [ { "key": "scope", "value": "zones/us-east1-d" } 270 { 271 "value": "A String", # [Output Only] A warning data value corresponding to the key. 272 "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). 273 }, 274 ], 275 }, 276 "id": "A String", # [Output Only] Unique identifier for the resource; defined by the server. 277 "selfLink": "A String", # [Output Only] Server-defined URL for this resource. 278 }</pre> 279</div> 280 281<div class="method"> 282 <code class="details" id="aggregatedList_next">aggregatedList_next(previous_request, previous_response)</code> 283 <pre>Retrieves the next page of results. 284 285Args: 286 previous_request: The request for the previous page. (required) 287 previous_response: The response from the request for the previous page. (required) 288 289Returns: 290 A request object that you can call 'execute()' on to request the next 291 page. Returns None if there are no more items in the collection. 292 </pre> 293</div> 294 295<div class="method"> 296 <code class="details" id="delete">delete(project, region, forwardingRule, requestId=None)</code> 297 <pre>Deletes the specified ForwardingRule resource. 298 299Args: 300 project: string, Project ID for this request. (required) 301 region: string, Name of the region scoping this request. (required) 302 forwardingRule: string, Name of the ForwardingRule resource to delete. (required) 303 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. 304 305For 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. 306 307The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). 308 309Returns: 310 An object of the form: 311 312 { # Represents an Operation resource. 313 # 314 # You can use an operation resource to manage asynchronous API requests. For more information, read Handling API responses. 315 # 316 # Operations can be global, regional or zonal. 317 # - For global operations, use the globalOperations resource. 318 # - For regional operations, use the regionOperations resource. 319 # - For zonal operations, use the zonalOperations resource. 320 # 321 # 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 ==) 322 "targetId": "A String", # [Output Only] The unique target ID, which identifies a specific incarnation of the target resource. 323 "clientOperationId": "A String", # [Output Only] The value of `requestId` if you provided it in the request. Not present otherwise. 324 "creationTimestamp": "A String", # [Deprecated] This field is deprecated. 325 "id": "A String", # [Output Only] The unique identifier for the resource. This identifier is defined by the server. 326 "zone": "A String", # [Output Only] The URL of the zone where the operation resides. Only applicable when performing per-zone operations. 327 "insertTime": "A String", # [Output Only] The time that this operation was requested. This value is in RFC3339 text format. 328 "operationType": "A String", # [Output Only] The type of operation, such as insert, update, or delete, and so on. 329 "httpErrorMessage": "A String", # [Output Only] If the operation fails, this field contains the HTTP error message that was returned, such as NOT FOUND. 330 "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. 331 "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. 332 "statusMessage": "A String", # [Output Only] An optional textual description of the current status of the operation. 333 "status": "A String", # [Output Only] The status of the operation, which can be one of the following: PENDING, RUNNING, or DONE. 334 "description": "A String", # [Output Only] A textual description of the operation, which is set when the operation is created. 335 "warnings": [ # [Output Only] If warning messages are generated during processing of the operation, this field will be populated. 336 { 337 "message": "A String", # [Output Only] A human-readable description of the warning code. 338 "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. 339 "data": [ # [Output Only] Metadata about this warning in key: value format. For example: 340 # "data": [ { "key": "scope", "value": "zones/us-east1-d" } 341 { 342 "value": "A String", # [Output Only] A warning data value corresponding to the key. 343 "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). 344 }, 345 ], 346 }, 347 ], 348 "selfLinkWithId": "A String", # [Output Only] Server-defined URL for this resource with the resource id. 349 "user": "A String", # [Output Only] User who requested the operation, for example: user@example.com. 350 "startTime": "A String", # [Output Only] The time that this operation was started by the server. This value is in RFC3339 text format. 351 "kind": "compute#operation", # [Output Only] Type of the resource. Always compute#operation for Operation resources. 352 "name": "A String", # [Output Only] Name of the resource. 353 "region": "A String", # [Output Only] The URL of the region where the operation resides. Only applicable when performing regional operations. 354 "error": { # [Output Only] If errors are generated during processing of the operation, this field will be populated. 355 "errors": [ # [Output Only] The array of errors encountered while processing this operation. 356 { 357 "message": "A String", # [Output Only] An optional, human-readable error message. 358 "code": "A String", # [Output Only] The error type identifier for this error. 359 "location": "A String", # [Output Only] Indicates the field in the request that caused the error. This property is optional. 360 }, 361 ], 362 }, 363 "endTime": "A String", # [Output Only] The time that this operation was completed. This value is in RFC3339 text format. 364 "selfLink": "A String", # [Output Only] Server-defined URL for the resource. 365 "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. 366 }</pre> 367</div> 368 369<div class="method"> 370 <code class="details" id="get">get(project, region, forwardingRule)</code> 371 <pre>Returns the specified ForwardingRule resource. 372 373Args: 374 project: string, Project ID for this request. (required) 375 region: string, Name of the region scoping this request. (required) 376 forwardingRule: string, Name of the ForwardingRule resource to return. (required) 377 378Returns: 379 An object of the form: 380 381 { # 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 ==) 382 "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. 383 "a_key": "A String", 384 }, 385 "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. 386 "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) 387 "IPProtocol": "A String", # The IP protocol to which this rule applies. Valid options are TCP, UDP, ESP, AH, SCTP or ICMP. 388 # 389 # 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. 390 "creationTimestamp": "A String", # [Output Only] Creation timestamp in RFC3339 text format. 391 "id": "A String", # [Output Only] The unique identifier for the resource. This identifier is defined by the server. 392 "network": "A String", # This field is not used for external load balancing. 393 # 394 # 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. 395 "portRange": "A String", # This field is used along with the target field for TargetHttpProxy, TargetHttpsProxy, TargetSslProxy, TargetTcpProxy, TargetVpnGateway, TargetPool, TargetInstance. 396 # 397 # 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. 398 # 399 # Some types of forwarding target have constraints on the acceptable ports: 400 # - TargetHttpProxy: 80, 8080 401 # - TargetHttpsProxy: 443 402 # - TargetTcpProxy: 25, 43, 110, 143, 195, 443, 465, 587, 700, 993, 995, 1688, 1883, 5222 403 # - TargetSslProxy: 25, 43, 110, 143, 195, 443, 465, 587, 700, 993, 995, 1688, 1883, 5222 404 # - TargetVpnGateway: 500, 4500 405 "serviceName": "A String", # [Output Only] The internal fully qualified service name for this Forwarding Rule. 406 # 407 # This field is only used for internal load balancing. 408 "backendService": "A String", # This field is only used for INTERNAL load balancing. 409 # 410 # For internal load balancing, this field identifies the BackendService resource to receive the matched traffic. 411 "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. 412 # 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. 413 # metadataFilters specified here can be overridden by those specified in the UrlMap that this ForwardingRule references. 414 # metadataFilters only applies to Loadbalancers that have their loadBalancingScheme set to INTERNAL_SELF_MANAGED. 415 { # 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. 416 # 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. 417 # 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. 418 "filterMatchCriteria": "A String", # Specifies how individual filterLabel matches within the list of filterLabels contribute towards the overall metadataFilter match. 419 # Supported values are: 420 # - MATCH_ANY: At least one of the filterLabels must have a matching label in the provided metadata. 421 # - MATCH_ALL: All filterLabels must have matching labels in the provided metadata. 422 "filterLabels": [ # The list of label value pairs that must match labels in the provided metadata based on filterMatchCriteria 423 # This list must not be empty and can have at the most 64 entries. 424 { # MetadataFilter label name value pairs that are expected to match corresponding labels presented as metadata to the loadbalancer. 425 "name": "A String", # Name of metadata label. 426 # The name can have a maximum length of 1024 characters and must be at least 1 character long. 427 "value": "A String", # The value of the label must match the specified value. 428 # value can have a maximum length of 1024 characters. 429 }, 430 ], 431 }, 432 ], 433 "IPAddress": "A String", # The IP address that this forwarding rule is serving on behalf of. 434 # 435 # Addresses are restricted based on the forwarding rule's load balancing scheme (EXTERNAL or INTERNAL) and scope (global or regional). 436 # 437 # 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. 438 # 439 # 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. 440 # 441 # 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. 442 # 443 # 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: 444 # - 100.1.2.3 445 # - https://www.googleapis.com/compute/v1/projects/project/regions/region/addresses/address 446 # - projects/project/regions/region/addresses/address 447 # - regions/region/addresses/address 448 # - global/addresses/address 449 # - address 450 "description": "A String", # An optional description of this resource. Provide this property when you create the resource. 451 "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. 452 # 453 # To see the latest fingerprint, make a get() request to retrieve a ForwardingRule. 454 "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. 455 # 456 # 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. 457 "selfLinkWithId": "A String", # [Output Only] Server-defined URL for this resource with the resource id. 458 "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. 459 # 460 # To see the latest fingerprint, make a get() request to retrieve a ForwardingRule. 461 "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. 462 # 463 # 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. 464 # 465 # This field is only used for internal load balancing. 466 "kind": "compute#forwardingRule", # [Output Only] Type of the resource. Always compute#forwardingRule for Forwarding Rule resources. 467 "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. 468 "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. 469 "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. 470 "networkTier": "A String", # This signifies the networking tier used for configuring this load balancer and can only take the following values: PREMIUM , STANDARD. 471 # 472 # For regional ForwardingRule, the valid values are PREMIUM and STANDARD. For GlobalForwardingRule, the valid value is PREMIUM. 473 # 474 # 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. 475 "isMirroringCollector": True or False, # Indicates whether or not this load balancer can be used as a collector for packet mirroring. To prevent mirroring loops, instances behind this load balancer will not have their traffic mirrored even if a PacketMirroring rule applies to them. This can only be set to true for load balancers that have their loadBalancingScheme set to INTERNAL. 476 "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. 477 "subnetwork": "A String", # This field is only used for INTERNAL load balancing. 478 # 479 # For internal load balancing, this field identifies the subnetwork that the load balanced IP should belong to for this Forwarding Rule. 480 # 481 # 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. 482 "ports": [ # This field is used along with the backend_service field for internal load balancing. 483 # 484 # 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. 485 # 486 # You may specify a maximum of up to 5 ports. 487 "A String", 488 ], 489 "selfLink": "A String", # [Output Only] Server-defined URL for the resource. 490 }</pre> 491</div> 492 493<div class="method"> 494 <code class="details" id="insert">insert(project, region, body, requestId=None)</code> 495 <pre>Creates a ForwardingRule resource in the specified project and region using the data included in the request. 496 497Args: 498 project: string, Project ID for this request. (required) 499 region: string, Name of the region scoping this request. (required) 500 body: object, The request body. (required) 501 The object takes the form of: 502 503{ # 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 ==) 504 "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. 505 "a_key": "A String", 506 }, 507 "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. 508 "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) 509 "IPProtocol": "A String", # The IP protocol to which this rule applies. Valid options are TCP, UDP, ESP, AH, SCTP or ICMP. 510 # 511 # 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. 512 "creationTimestamp": "A String", # [Output Only] Creation timestamp in RFC3339 text format. 513 "id": "A String", # [Output Only] The unique identifier for the resource. This identifier is defined by the server. 514 "network": "A String", # This field is not used for external load balancing. 515 # 516 # 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. 517 "portRange": "A String", # This field is used along with the target field for TargetHttpProxy, TargetHttpsProxy, TargetSslProxy, TargetTcpProxy, TargetVpnGateway, TargetPool, TargetInstance. 518 # 519 # 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. 520 # 521 # Some types of forwarding target have constraints on the acceptable ports: 522 # - TargetHttpProxy: 80, 8080 523 # - TargetHttpsProxy: 443 524 # - TargetTcpProxy: 25, 43, 110, 143, 195, 443, 465, 587, 700, 993, 995, 1688, 1883, 5222 525 # - TargetSslProxy: 25, 43, 110, 143, 195, 443, 465, 587, 700, 993, 995, 1688, 1883, 5222 526 # - TargetVpnGateway: 500, 4500 527 "serviceName": "A String", # [Output Only] The internal fully qualified service name for this Forwarding Rule. 528 # 529 # This field is only used for internal load balancing. 530 "backendService": "A String", # This field is only used for INTERNAL load balancing. 531 # 532 # For internal load balancing, this field identifies the BackendService resource to receive the matched traffic. 533 "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. 534 # 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. 535 # metadataFilters specified here can be overridden by those specified in the UrlMap that this ForwardingRule references. 536 # metadataFilters only applies to Loadbalancers that have their loadBalancingScheme set to INTERNAL_SELF_MANAGED. 537 { # 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. 538 # 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. 539 # 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. 540 "filterMatchCriteria": "A String", # Specifies how individual filterLabel matches within the list of filterLabels contribute towards the overall metadataFilter match. 541 # Supported values are: 542 # - MATCH_ANY: At least one of the filterLabels must have a matching label in the provided metadata. 543 # - MATCH_ALL: All filterLabels must have matching labels in the provided metadata. 544 "filterLabels": [ # The list of label value pairs that must match labels in the provided metadata based on filterMatchCriteria 545 # This list must not be empty and can have at the most 64 entries. 546 { # MetadataFilter label name value pairs that are expected to match corresponding labels presented as metadata to the loadbalancer. 547 "name": "A String", # Name of metadata label. 548 # The name can have a maximum length of 1024 characters and must be at least 1 character long. 549 "value": "A String", # The value of the label must match the specified value. 550 # value can have a maximum length of 1024 characters. 551 }, 552 ], 553 }, 554 ], 555 "IPAddress": "A String", # The IP address that this forwarding rule is serving on behalf of. 556 # 557 # Addresses are restricted based on the forwarding rule's load balancing scheme (EXTERNAL or INTERNAL) and scope (global or regional). 558 # 559 # 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. 560 # 561 # 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. 562 # 563 # 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. 564 # 565 # 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: 566 # - 100.1.2.3 567 # - https://www.googleapis.com/compute/v1/projects/project/regions/region/addresses/address 568 # - projects/project/regions/region/addresses/address 569 # - regions/region/addresses/address 570 # - global/addresses/address 571 # - address 572 "description": "A String", # An optional description of this resource. Provide this property when you create the resource. 573 "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. 574 # 575 # To see the latest fingerprint, make a get() request to retrieve a ForwardingRule. 576 "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. 577 # 578 # 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. 579 "selfLinkWithId": "A String", # [Output Only] Server-defined URL for this resource with the resource id. 580 "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. 581 # 582 # To see the latest fingerprint, make a get() request to retrieve a ForwardingRule. 583 "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. 584 # 585 # 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. 586 # 587 # This field is only used for internal load balancing. 588 "kind": "compute#forwardingRule", # [Output Only] Type of the resource. Always compute#forwardingRule for Forwarding Rule resources. 589 "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. 590 "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. 591 "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. 592 "networkTier": "A String", # This signifies the networking tier used for configuring this load balancer and can only take the following values: PREMIUM , STANDARD. 593 # 594 # For regional ForwardingRule, the valid values are PREMIUM and STANDARD. For GlobalForwardingRule, the valid value is PREMIUM. 595 # 596 # 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. 597 "isMirroringCollector": True or False, # Indicates whether or not this load balancer can be used as a collector for packet mirroring. To prevent mirroring loops, instances behind this load balancer will not have their traffic mirrored even if a PacketMirroring rule applies to them. This can only be set to true for load balancers that have their loadBalancingScheme set to INTERNAL. 598 "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. 599 "subnetwork": "A String", # This field is only used for INTERNAL load balancing. 600 # 601 # For internal load balancing, this field identifies the subnetwork that the load balanced IP should belong to for this Forwarding Rule. 602 # 603 # 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. 604 "ports": [ # This field is used along with the backend_service field for internal load balancing. 605 # 606 # 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. 607 # 608 # You may specify a maximum of up to 5 ports. 609 "A String", 610 ], 611 "selfLink": "A String", # [Output Only] Server-defined URL for the resource. 612 } 613 614 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. 615 616For 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. 617 618The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). 619 620Returns: 621 An object of the form: 622 623 { # Represents an Operation resource. 624 # 625 # You can use an operation resource to manage asynchronous API requests. For more information, read Handling API responses. 626 # 627 # Operations can be global, regional or zonal. 628 # - For global operations, use the globalOperations resource. 629 # - For regional operations, use the regionOperations resource. 630 # - For zonal operations, use the zonalOperations resource. 631 # 632 # 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 ==) 633 "targetId": "A String", # [Output Only] The unique target ID, which identifies a specific incarnation of the target resource. 634 "clientOperationId": "A String", # [Output Only] The value of `requestId` if you provided it in the request. Not present otherwise. 635 "creationTimestamp": "A String", # [Deprecated] This field is deprecated. 636 "id": "A String", # [Output Only] The unique identifier for the resource. This identifier is defined by the server. 637 "zone": "A String", # [Output Only] The URL of the zone where the operation resides. Only applicable when performing per-zone operations. 638 "insertTime": "A String", # [Output Only] The time that this operation was requested. This value is in RFC3339 text format. 639 "operationType": "A String", # [Output Only] The type of operation, such as insert, update, or delete, and so on. 640 "httpErrorMessage": "A String", # [Output Only] If the operation fails, this field contains the HTTP error message that was returned, such as NOT FOUND. 641 "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. 642 "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. 643 "statusMessage": "A String", # [Output Only] An optional textual description of the current status of the operation. 644 "status": "A String", # [Output Only] The status of the operation, which can be one of the following: PENDING, RUNNING, or DONE. 645 "description": "A String", # [Output Only] A textual description of the operation, which is set when the operation is created. 646 "warnings": [ # [Output Only] If warning messages are generated during processing of the operation, this field will be populated. 647 { 648 "message": "A String", # [Output Only] A human-readable description of the warning code. 649 "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. 650 "data": [ # [Output Only] Metadata about this warning in key: value format. For example: 651 # "data": [ { "key": "scope", "value": "zones/us-east1-d" } 652 { 653 "value": "A String", # [Output Only] A warning data value corresponding to the key. 654 "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). 655 }, 656 ], 657 }, 658 ], 659 "selfLinkWithId": "A String", # [Output Only] Server-defined URL for this resource with the resource id. 660 "user": "A String", # [Output Only] User who requested the operation, for example: user@example.com. 661 "startTime": "A String", # [Output Only] The time that this operation was started by the server. This value is in RFC3339 text format. 662 "kind": "compute#operation", # [Output Only] Type of the resource. Always compute#operation for Operation resources. 663 "name": "A String", # [Output Only] Name of the resource. 664 "region": "A String", # [Output Only] The URL of the region where the operation resides. Only applicable when performing regional operations. 665 "error": { # [Output Only] If errors are generated during processing of the operation, this field will be populated. 666 "errors": [ # [Output Only] The array of errors encountered while processing this operation. 667 { 668 "message": "A String", # [Output Only] An optional, human-readable error message. 669 "code": "A String", # [Output Only] The error type identifier for this error. 670 "location": "A String", # [Output Only] Indicates the field in the request that caused the error. This property is optional. 671 }, 672 ], 673 }, 674 "endTime": "A String", # [Output Only] The time that this operation was completed. This value is in RFC3339 text format. 675 "selfLink": "A String", # [Output Only] Server-defined URL for the resource. 676 "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. 677 }</pre> 678</div> 679 680<div class="method"> 681 <code class="details" id="list">list(project, region, orderBy=None, maxResults=None, pageToken=None, filter=None)</code> 682 <pre>Retrieves a list of ForwardingRule resources available to the specified project and region. 683 684Args: 685 project: string, Project ID for this request. (required) 686 region: string, Name of the region scoping this request. (required) 687 orderBy: string, Sorts list results by a certain order. By default, results are returned in alphanumerical order based on the resource name. 688 689You 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. 690 691Currently, only sorting by name or creationTimestamp desc is supported. 692 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) 693 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. 694 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 <. 695 696For example, if you are filtering Compute Engine instances, you can exclude instances named example-instance by specifying name != example-instance. 697 698You 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. 699 700To 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). 701 702Returns: 703 An object of the form: 704 705 { # Contains a list of ForwardingRule resources. 706 "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. 707 "kind": "compute#forwardingRuleList", # Type of resource. 708 "items": [ # A list of ForwardingRule resources. 709 { # 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 ==) 710 "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. 711 "a_key": "A String", 712 }, 713 "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. 714 "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) 715 "IPProtocol": "A String", # The IP protocol to which this rule applies. Valid options are TCP, UDP, ESP, AH, SCTP or ICMP. 716 # 717 # 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. 718 "creationTimestamp": "A String", # [Output Only] Creation timestamp in RFC3339 text format. 719 "id": "A String", # [Output Only] The unique identifier for the resource. This identifier is defined by the server. 720 "network": "A String", # This field is not used for external load balancing. 721 # 722 # 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. 723 "portRange": "A String", # This field is used along with the target field for TargetHttpProxy, TargetHttpsProxy, TargetSslProxy, TargetTcpProxy, TargetVpnGateway, TargetPool, TargetInstance. 724 # 725 # 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. 726 # 727 # Some types of forwarding target have constraints on the acceptable ports: 728 # - TargetHttpProxy: 80, 8080 729 # - TargetHttpsProxy: 443 730 # - TargetTcpProxy: 25, 43, 110, 143, 195, 443, 465, 587, 700, 993, 995, 1688, 1883, 5222 731 # - TargetSslProxy: 25, 43, 110, 143, 195, 443, 465, 587, 700, 993, 995, 1688, 1883, 5222 732 # - TargetVpnGateway: 500, 4500 733 "serviceName": "A String", # [Output Only] The internal fully qualified service name for this Forwarding Rule. 734 # 735 # This field is only used for internal load balancing. 736 "backendService": "A String", # This field is only used for INTERNAL load balancing. 737 # 738 # For internal load balancing, this field identifies the BackendService resource to receive the matched traffic. 739 "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. 740 # 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. 741 # metadataFilters specified here can be overridden by those specified in the UrlMap that this ForwardingRule references. 742 # metadataFilters only applies to Loadbalancers that have their loadBalancingScheme set to INTERNAL_SELF_MANAGED. 743 { # 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. 744 # 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. 745 # 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. 746 "filterMatchCriteria": "A String", # Specifies how individual filterLabel matches within the list of filterLabels contribute towards the overall metadataFilter match. 747 # Supported values are: 748 # - MATCH_ANY: At least one of the filterLabels must have a matching label in the provided metadata. 749 # - MATCH_ALL: All filterLabels must have matching labels in the provided metadata. 750 "filterLabels": [ # The list of label value pairs that must match labels in the provided metadata based on filterMatchCriteria 751 # This list must not be empty and can have at the most 64 entries. 752 { # MetadataFilter label name value pairs that are expected to match corresponding labels presented as metadata to the loadbalancer. 753 "name": "A String", # Name of metadata label. 754 # The name can have a maximum length of 1024 characters and must be at least 1 character long. 755 "value": "A String", # The value of the label must match the specified value. 756 # value can have a maximum length of 1024 characters. 757 }, 758 ], 759 }, 760 ], 761 "IPAddress": "A String", # The IP address that this forwarding rule is serving on behalf of. 762 # 763 # Addresses are restricted based on the forwarding rule's load balancing scheme (EXTERNAL or INTERNAL) and scope (global or regional). 764 # 765 # 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. 766 # 767 # 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. 768 # 769 # 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. 770 # 771 # 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: 772 # - 100.1.2.3 773 # - https://www.googleapis.com/compute/v1/projects/project/regions/region/addresses/address 774 # - projects/project/regions/region/addresses/address 775 # - regions/region/addresses/address 776 # - global/addresses/address 777 # - address 778 "description": "A String", # An optional description of this resource. Provide this property when you create the resource. 779 "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. 780 # 781 # To see the latest fingerprint, make a get() request to retrieve a ForwardingRule. 782 "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. 783 # 784 # 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. 785 "selfLinkWithId": "A String", # [Output Only] Server-defined URL for this resource with the resource id. 786 "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. 787 # 788 # To see the latest fingerprint, make a get() request to retrieve a ForwardingRule. 789 "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. 790 # 791 # 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. 792 # 793 # This field is only used for internal load balancing. 794 "kind": "compute#forwardingRule", # [Output Only] Type of the resource. Always compute#forwardingRule for Forwarding Rule resources. 795 "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. 796 "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. 797 "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. 798 "networkTier": "A String", # This signifies the networking tier used for configuring this load balancer and can only take the following values: PREMIUM , STANDARD. 799 # 800 # For regional ForwardingRule, the valid values are PREMIUM and STANDARD. For GlobalForwardingRule, the valid value is PREMIUM. 801 # 802 # 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. 803 "isMirroringCollector": True or False, # Indicates whether or not this load balancer can be used as a collector for packet mirroring. To prevent mirroring loops, instances behind this load balancer will not have their traffic mirrored even if a PacketMirroring rule applies to them. This can only be set to true for load balancers that have their loadBalancingScheme set to INTERNAL. 804 "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. 805 "subnetwork": "A String", # This field is only used for INTERNAL load balancing. 806 # 807 # For internal load balancing, this field identifies the subnetwork that the load balanced IP should belong to for this Forwarding Rule. 808 # 809 # 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. 810 "ports": [ # This field is used along with the backend_service field for internal load balancing. 811 # 812 # 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. 813 # 814 # You may specify a maximum of up to 5 ports. 815 "A String", 816 ], 817 "selfLink": "A String", # [Output Only] Server-defined URL for the resource. 818 }, 819 ], 820 "warning": { # [Output Only] Informational warning message. 821 "message": "A String", # [Output Only] A human-readable description of the warning code. 822 "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. 823 "data": [ # [Output Only] Metadata about this warning in key: value format. For example: 824 # "data": [ { "key": "scope", "value": "zones/us-east1-d" } 825 { 826 "value": "A String", # [Output Only] A warning data value corresponding to the key. 827 "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). 828 }, 829 ], 830 }, 831 "id": "A String", # [Output Only] Unique identifier for the resource; defined by the server. 832 "selfLink": "A String", # [Output Only] Server-defined URL for this resource. 833 }</pre> 834</div> 835 836<div class="method"> 837 <code class="details" id="list_next">list_next(previous_request, previous_response)</code> 838 <pre>Retrieves the next page of results. 839 840Args: 841 previous_request: The request for the previous page. (required) 842 previous_response: The response from the request for the previous page. (required) 843 844Returns: 845 A request object that you can call 'execute()' on to request the next 846 page. Returns None if there are no more items in the collection. 847 </pre> 848</div> 849 850<div class="method"> 851 <code class="details" id="patch">patch(project, region, forwardingRule, body, requestId=None)</code> 852 <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. 853 854Args: 855 project: string, Project ID for this request. (required) 856 region: string, Name of the region scoping this request. (required) 857 forwardingRule: string, Name of the ForwardingRule resource to patch. (required) 858 body: object, The request body. (required) 859 The object takes the form of: 860 861{ # 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 ==) 862 "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. 863 "a_key": "A String", 864 }, 865 "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. 866 "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) 867 "IPProtocol": "A String", # The IP protocol to which this rule applies. Valid options are TCP, UDP, ESP, AH, SCTP or ICMP. 868 # 869 # 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. 870 "creationTimestamp": "A String", # [Output Only] Creation timestamp in RFC3339 text format. 871 "id": "A String", # [Output Only] The unique identifier for the resource. This identifier is defined by the server. 872 "network": "A String", # This field is not used for external load balancing. 873 # 874 # 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. 875 "portRange": "A String", # This field is used along with the target field for TargetHttpProxy, TargetHttpsProxy, TargetSslProxy, TargetTcpProxy, TargetVpnGateway, TargetPool, TargetInstance. 876 # 877 # 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. 878 # 879 # Some types of forwarding target have constraints on the acceptable ports: 880 # - TargetHttpProxy: 80, 8080 881 # - TargetHttpsProxy: 443 882 # - TargetTcpProxy: 25, 43, 110, 143, 195, 443, 465, 587, 700, 993, 995, 1688, 1883, 5222 883 # - TargetSslProxy: 25, 43, 110, 143, 195, 443, 465, 587, 700, 993, 995, 1688, 1883, 5222 884 # - TargetVpnGateway: 500, 4500 885 "serviceName": "A String", # [Output Only] The internal fully qualified service name for this Forwarding Rule. 886 # 887 # This field is only used for internal load balancing. 888 "backendService": "A String", # This field is only used for INTERNAL load balancing. 889 # 890 # For internal load balancing, this field identifies the BackendService resource to receive the matched traffic. 891 "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. 892 # 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. 893 # metadataFilters specified here can be overridden by those specified in the UrlMap that this ForwardingRule references. 894 # metadataFilters only applies to Loadbalancers that have their loadBalancingScheme set to INTERNAL_SELF_MANAGED. 895 { # 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. 896 # 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. 897 # 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. 898 "filterMatchCriteria": "A String", # Specifies how individual filterLabel matches within the list of filterLabels contribute towards the overall metadataFilter match. 899 # Supported values are: 900 # - MATCH_ANY: At least one of the filterLabels must have a matching label in the provided metadata. 901 # - MATCH_ALL: All filterLabels must have matching labels in the provided metadata. 902 "filterLabels": [ # The list of label value pairs that must match labels in the provided metadata based on filterMatchCriteria 903 # This list must not be empty and can have at the most 64 entries. 904 { # MetadataFilter label name value pairs that are expected to match corresponding labels presented as metadata to the loadbalancer. 905 "name": "A String", # Name of metadata label. 906 # The name can have a maximum length of 1024 characters and must be at least 1 character long. 907 "value": "A String", # The value of the label must match the specified value. 908 # value can have a maximum length of 1024 characters. 909 }, 910 ], 911 }, 912 ], 913 "IPAddress": "A String", # The IP address that this forwarding rule is serving on behalf of. 914 # 915 # Addresses are restricted based on the forwarding rule's load balancing scheme (EXTERNAL or INTERNAL) and scope (global or regional). 916 # 917 # 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. 918 # 919 # 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. 920 # 921 # 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. 922 # 923 # 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: 924 # - 100.1.2.3 925 # - https://www.googleapis.com/compute/v1/projects/project/regions/region/addresses/address 926 # - projects/project/regions/region/addresses/address 927 # - regions/region/addresses/address 928 # - global/addresses/address 929 # - address 930 "description": "A String", # An optional description of this resource. Provide this property when you create the resource. 931 "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. 932 # 933 # To see the latest fingerprint, make a get() request to retrieve a ForwardingRule. 934 "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. 935 # 936 # 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. 937 "selfLinkWithId": "A String", # [Output Only] Server-defined URL for this resource with the resource id. 938 "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. 939 # 940 # To see the latest fingerprint, make a get() request to retrieve a ForwardingRule. 941 "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. 942 # 943 # 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. 944 # 945 # This field is only used for internal load balancing. 946 "kind": "compute#forwardingRule", # [Output Only] Type of the resource. Always compute#forwardingRule for Forwarding Rule resources. 947 "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. 948 "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. 949 "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. 950 "networkTier": "A String", # This signifies the networking tier used for configuring this load balancer and can only take the following values: PREMIUM , STANDARD. 951 # 952 # For regional ForwardingRule, the valid values are PREMIUM and STANDARD. For GlobalForwardingRule, the valid value is PREMIUM. 953 # 954 # 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. 955 "isMirroringCollector": True or False, # Indicates whether or not this load balancer can be used as a collector for packet mirroring. To prevent mirroring loops, instances behind this load balancer will not have their traffic mirrored even if a PacketMirroring rule applies to them. This can only be set to true for load balancers that have their loadBalancingScheme set to INTERNAL. 956 "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. 957 "subnetwork": "A String", # This field is only used for INTERNAL load balancing. 958 # 959 # For internal load balancing, this field identifies the subnetwork that the load balanced IP should belong to for this Forwarding Rule. 960 # 961 # 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. 962 "ports": [ # This field is used along with the backend_service field for internal load balancing. 963 # 964 # 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. 965 # 966 # You may specify a maximum of up to 5 ports. 967 "A String", 968 ], 969 "selfLink": "A String", # [Output Only] Server-defined URL for the resource. 970 } 971 972 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. 973 974For 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. 975 976The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). 977 978Returns: 979 An object of the form: 980 981 { # Represents an Operation resource. 982 # 983 # You can use an operation resource to manage asynchronous API requests. For more information, read Handling API responses. 984 # 985 # Operations can be global, regional or zonal. 986 # - For global operations, use the globalOperations resource. 987 # - For regional operations, use the regionOperations resource. 988 # - For zonal operations, use the zonalOperations resource. 989 # 990 # 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 ==) 991 "targetId": "A String", # [Output Only] The unique target ID, which identifies a specific incarnation of the target resource. 992 "clientOperationId": "A String", # [Output Only] The value of `requestId` if you provided it in the request. Not present otherwise. 993 "creationTimestamp": "A String", # [Deprecated] This field is deprecated. 994 "id": "A String", # [Output Only] The unique identifier for the resource. This identifier is defined by the server. 995 "zone": "A String", # [Output Only] The URL of the zone where the operation resides. Only applicable when performing per-zone operations. 996 "insertTime": "A String", # [Output Only] The time that this operation was requested. This value is in RFC3339 text format. 997 "operationType": "A String", # [Output Only] The type of operation, such as insert, update, or delete, and so on. 998 "httpErrorMessage": "A String", # [Output Only] If the operation fails, this field contains the HTTP error message that was returned, such as NOT FOUND. 999 "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. 1000 "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. 1001 "statusMessage": "A String", # [Output Only] An optional textual description of the current status of the operation. 1002 "status": "A String", # [Output Only] The status of the operation, which can be one of the following: PENDING, RUNNING, or DONE. 1003 "description": "A String", # [Output Only] A textual description of the operation, which is set when the operation is created. 1004 "warnings": [ # [Output Only] If warning messages are generated during processing of the operation, this field will be populated. 1005 { 1006 "message": "A String", # [Output Only] A human-readable description of the warning code. 1007 "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. 1008 "data": [ # [Output Only] Metadata about this warning in key: value format. For example: 1009 # "data": [ { "key": "scope", "value": "zones/us-east1-d" } 1010 { 1011 "value": "A String", # [Output Only] A warning data value corresponding to the key. 1012 "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). 1013 }, 1014 ], 1015 }, 1016 ], 1017 "selfLinkWithId": "A String", # [Output Only] Server-defined URL for this resource with the resource id. 1018 "user": "A String", # [Output Only] User who requested the operation, for example: user@example.com. 1019 "startTime": "A String", # [Output Only] The time that this operation was started by the server. This value is in RFC3339 text format. 1020 "kind": "compute#operation", # [Output Only] Type of the resource. Always compute#operation for Operation resources. 1021 "name": "A String", # [Output Only] Name of the resource. 1022 "region": "A String", # [Output Only] The URL of the region where the operation resides. Only applicable when performing regional operations. 1023 "error": { # [Output Only] If errors are generated during processing of the operation, this field will be populated. 1024 "errors": [ # [Output Only] The array of errors encountered while processing this operation. 1025 { 1026 "message": "A String", # [Output Only] An optional, human-readable error message. 1027 "code": "A String", # [Output Only] The error type identifier for this error. 1028 "location": "A String", # [Output Only] Indicates the field in the request that caused the error. This property is optional. 1029 }, 1030 ], 1031 }, 1032 "endTime": "A String", # [Output Only] The time that this operation was completed. This value is in RFC3339 text format. 1033 "selfLink": "A String", # [Output Only] Server-defined URL for the resource. 1034 "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. 1035 }</pre> 1036</div> 1037 1038<div class="method"> 1039 <code class="details" id="setLabels">setLabels(project, region, resource, body, requestId=None)</code> 1040 <pre>Sets the labels on the specified resource. To learn more about labels, read the Labeling Resources documentation. 1041 1042Args: 1043 project: string, Project ID for this request. (required) 1044 region: string, The region for this request. (required) 1045 resource: string, Name or id of the resource for this request. (required) 1046 body: object, The request body. (required) 1047 The object takes the form of: 1048 1049{ 1050 "labelFingerprint": "A String", # The fingerprint of the previous set of labels for this resource, used to detect conflicts. The fingerprint is initially generated by Compute Engine and changes after every request to modify or update labels. You must always provide an up-to-date fingerprint hash in order to update or change labels. Make a get() request to the resource to get the latest fingerprint. 1051 "labels": { # The labels to set for this resource. 1052 "a_key": "A String", 1053 }, 1054 } 1055 1056 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. 1057 1058For 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. 1059 1060The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). 1061 1062Returns: 1063 An object of the form: 1064 1065 { # Represents an Operation resource. 1066 # 1067 # You can use an operation resource to manage asynchronous API requests. For more information, read Handling API responses. 1068 # 1069 # Operations can be global, regional or zonal. 1070 # - For global operations, use the globalOperations resource. 1071 # - For regional operations, use the regionOperations resource. 1072 # - For zonal operations, use the zonalOperations resource. 1073 # 1074 # 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 ==) 1075 "targetId": "A String", # [Output Only] The unique target ID, which identifies a specific incarnation of the target resource. 1076 "clientOperationId": "A String", # [Output Only] The value of `requestId` if you provided it in the request. Not present otherwise. 1077 "creationTimestamp": "A String", # [Deprecated] This field is deprecated. 1078 "id": "A String", # [Output Only] The unique identifier for the resource. This identifier is defined by the server. 1079 "zone": "A String", # [Output Only] The URL of the zone where the operation resides. Only applicable when performing per-zone operations. 1080 "insertTime": "A String", # [Output Only] The time that this operation was requested. This value is in RFC3339 text format. 1081 "operationType": "A String", # [Output Only] The type of operation, such as insert, update, or delete, and so on. 1082 "httpErrorMessage": "A String", # [Output Only] If the operation fails, this field contains the HTTP error message that was returned, such as NOT FOUND. 1083 "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. 1084 "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. 1085 "statusMessage": "A String", # [Output Only] An optional textual description of the current status of the operation. 1086 "status": "A String", # [Output Only] The status of the operation, which can be one of the following: PENDING, RUNNING, or DONE. 1087 "description": "A String", # [Output Only] A textual description of the operation, which is set when the operation is created. 1088 "warnings": [ # [Output Only] If warning messages are generated during processing of the operation, this field will be populated. 1089 { 1090 "message": "A String", # [Output Only] A human-readable description of the warning code. 1091 "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. 1092 "data": [ # [Output Only] Metadata about this warning in key: value format. For example: 1093 # "data": [ { "key": "scope", "value": "zones/us-east1-d" } 1094 { 1095 "value": "A String", # [Output Only] A warning data value corresponding to the key. 1096 "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). 1097 }, 1098 ], 1099 }, 1100 ], 1101 "selfLinkWithId": "A String", # [Output Only] Server-defined URL for this resource with the resource id. 1102 "user": "A String", # [Output Only] User who requested the operation, for example: user@example.com. 1103 "startTime": "A String", # [Output Only] The time that this operation was started by the server. This value is in RFC3339 text format. 1104 "kind": "compute#operation", # [Output Only] Type of the resource. Always compute#operation for Operation resources. 1105 "name": "A String", # [Output Only] Name of the resource. 1106 "region": "A String", # [Output Only] The URL of the region where the operation resides. Only applicable when performing regional operations. 1107 "error": { # [Output Only] If errors are generated during processing of the operation, this field will be populated. 1108 "errors": [ # [Output Only] The array of errors encountered while processing this operation. 1109 { 1110 "message": "A String", # [Output Only] An optional, human-readable error message. 1111 "code": "A String", # [Output Only] The error type identifier for this error. 1112 "location": "A String", # [Output Only] Indicates the field in the request that caused the error. This property is optional. 1113 }, 1114 ], 1115 }, 1116 "endTime": "A String", # [Output Only] The time that this operation was completed. This value is in RFC3339 text format. 1117 "selfLink": "A String", # [Output Only] Server-defined URL for the resource. 1118 "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. 1119 }</pre> 1120</div> 1121 1122<div class="method"> 1123 <code class="details" id="setTarget">setTarget(project, region, forwardingRule, body, requestId=None)</code> 1124 <pre>Changes target URL for forwarding rule. The new target should be of the same type as the old target. 1125 1126Args: 1127 project: string, Project ID for this request. (required) 1128 region: string, Name of the region scoping this request. (required) 1129 forwardingRule: string, Name of the ForwardingRule resource in which target is to be set. (required) 1130 body: object, The request body. (required) 1131 The object takes the form of: 1132 1133{ 1134 "target": "A String", 1135 } 1136 1137 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. 1138 1139For 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. 1140 1141The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). 1142 1143Returns: 1144 An object of the form: 1145 1146 { # Represents an Operation resource. 1147 # 1148 # You can use an operation resource to manage asynchronous API requests. For more information, read Handling API responses. 1149 # 1150 # Operations can be global, regional or zonal. 1151 # - For global operations, use the globalOperations resource. 1152 # - For regional operations, use the regionOperations resource. 1153 # - For zonal operations, use the zonalOperations resource. 1154 # 1155 # 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 ==) 1156 "targetId": "A String", # [Output Only] The unique target ID, which identifies a specific incarnation of the target resource. 1157 "clientOperationId": "A String", # [Output Only] The value of `requestId` if you provided it in the request. Not present otherwise. 1158 "creationTimestamp": "A String", # [Deprecated] This field is deprecated. 1159 "id": "A String", # [Output Only] The unique identifier for the resource. This identifier is defined by the server. 1160 "zone": "A String", # [Output Only] The URL of the zone where the operation resides. Only applicable when performing per-zone operations. 1161 "insertTime": "A String", # [Output Only] The time that this operation was requested. This value is in RFC3339 text format. 1162 "operationType": "A String", # [Output Only] The type of operation, such as insert, update, or delete, and so on. 1163 "httpErrorMessage": "A String", # [Output Only] If the operation fails, this field contains the HTTP error message that was returned, such as NOT FOUND. 1164 "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. 1165 "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. 1166 "statusMessage": "A String", # [Output Only] An optional textual description of the current status of the operation. 1167 "status": "A String", # [Output Only] The status of the operation, which can be one of the following: PENDING, RUNNING, or DONE. 1168 "description": "A String", # [Output Only] A textual description of the operation, which is set when the operation is created. 1169 "warnings": [ # [Output Only] If warning messages are generated during processing of the operation, this field will be populated. 1170 { 1171 "message": "A String", # [Output Only] A human-readable description of the warning code. 1172 "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. 1173 "data": [ # [Output Only] Metadata about this warning in key: value format. For example: 1174 # "data": [ { "key": "scope", "value": "zones/us-east1-d" } 1175 { 1176 "value": "A String", # [Output Only] A warning data value corresponding to the key. 1177 "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). 1178 }, 1179 ], 1180 }, 1181 ], 1182 "selfLinkWithId": "A String", # [Output Only] Server-defined URL for this resource with the resource id. 1183 "user": "A String", # [Output Only] User who requested the operation, for example: user@example.com. 1184 "startTime": "A String", # [Output Only] The time that this operation was started by the server. This value is in RFC3339 text format. 1185 "kind": "compute#operation", # [Output Only] Type of the resource. Always compute#operation for Operation resources. 1186 "name": "A String", # [Output Only] Name of the resource. 1187 "region": "A String", # [Output Only] The URL of the region where the operation resides. Only applicable when performing regional operations. 1188 "error": { # [Output Only] If errors are generated during processing of the operation, this field will be populated. 1189 "errors": [ # [Output Only] The array of errors encountered while processing this operation. 1190 { 1191 "message": "A String", # [Output Only] An optional, human-readable error message. 1192 "code": "A String", # [Output Only] The error type identifier for this error. 1193 "location": "A String", # [Output Only] Indicates the field in the request that caused the error. This property is optional. 1194 }, 1195 ], 1196 }, 1197 "endTime": "A String", # [Output Only] The time that this operation was completed. This value is in RFC3339 text format. 1198 "selfLink": "A String", # [Output Only] Server-defined URL for the resource. 1199 "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. 1200 }</pre> 1201</div> 1202 1203<div class="method"> 1204 <code class="details" id="testIamPermissions">testIamPermissions(project, region, resource, body)</code> 1205 <pre>Returns permissions that a caller has on the specified resource. 1206 1207Args: 1208 project: string, Project ID for this request. (required) 1209 region: string, The name of the region for this request. (required) 1210 resource: string, Name or id of the resource for this request. (required) 1211 body: object, The request body. (required) 1212 The object takes the form of: 1213 1214{ 1215 "permissions": [ # The set of permissions to check for the 'resource'. Permissions with wildcards (such as '*' or 'storage.*') are not allowed. 1216 "A String", 1217 ], 1218 } 1219 1220 1221Returns: 1222 An object of the form: 1223 1224 { 1225 "permissions": [ # A subset of `TestPermissionsRequest.permissions` that the caller is allowed. 1226 "A String", 1227 ], 1228 }</pre> 1229</div> 1230 1231</body></html>