@Path(value="/forwardingRules")
@Consumes(value="application/json")
public interface ForwardingRuleApi
Modifier and Type | Interface and Description |
---|---|
static class |
ForwardingRuleApi.ForwardingRulePages |
Modifier and Type | Method and Description |
---|---|
Operation |
create(String forwardingRuleName,
ForwardingRuleCreationOptions options)
Creates a ForwardingRule resource in the specified project and region using the data included in the request.
|
Operation |
delete(String forwardingRule)
Deletes a forwarding rule by name and returns the operation in progress, or null if not found.
|
ForwardingRule |
get(String forwardingRule)
Returns a forwarding rule by name or null if not found.
|
Iterator<ListPage<ForwardingRule>> |
list() |
Iterator<ListPage<ForwardingRule>> |
list(ListOptions options) |
ListPage<ForwardingRule> |
listPage(String pageToken,
ListOptions listOptions)
Retrieves the list of forwarding rule resources available to the specified project.
|
Operation |
setTarget(String forwardingRule,
URI target)
Changes the target url for a forwarding rule.
|
@Named(value="ForwardingRules:get") @GET @Path(value="/{forwardingRule}") @Nullable ForwardingRule get(@PathParam(value="forwardingRule") String forwardingRule)
@Named(value="ForwardingRules:insert") @POST @Produces(value="application/json") Operation create(String forwardingRuleName, ForwardingRuleCreationOptions options)
forwardingRuleName
- the name of the forwarding rule.@Named(value="ForwardingRules:delete") @DELETE @Path(value="/{forwardingRule}") @Nullable Operation delete(@PathParam(value="forwardingRule") String forwardingRule)
@Named(value="ForwardingRules:setTarget") @POST @Path(value="/{forwardingRule}/setTarget") @Nullable Operation setTarget(@PathParam(value="forwardingRule") String forwardingRule, URI target)
forwardingRule
- the name of the ForwardingRule resource in which target is to be set.target
- The URL of the target resource to receive traffic from this forwarding rule.
It must live in the same region as this forwarding rule.@Named(value="ForwardingRules:list") @GET ListPage<ForwardingRule> listPage(@Nullable@QueryParam(value="pageToken") String pageToken, ListOptions listOptions)
pageToken
- marks the beginning of the next list pagelistOptions
- listing options@Named(value="ForwardingRules:list") @GET Iterator<ListPage<ForwardingRule>> list()
listPage(String, ListOptions)
@Named(value="ForwardingRules:list") @GET Iterator<ListPage<ForwardingRule>> list(ListOptions options)
listPage(String, ListOptions)
Copyright © 2009-2018 The Apache Software Foundation. All Rights Reserved.