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