Class FirewallRules
- java.lang.Object
-
- com.ibm.cloud.sdk.core.service.BaseService
-
- com.ibm.cloud.networking.firewall_rules.v1.FirewallRules
-
public class FirewallRules extends com.ibm.cloud.sdk.core.service.BaseServiceFirewall rules. API Version: 1.0.1
-
-
Field Summary
Fields Modifier and Type Field Description static StringDEFAULT_SERVICE_NAMEstatic StringDEFAULT_SERVICE_URL
-
Constructor Summary
Constructors Constructor Description FirewallRules(String serviceName, com.ibm.cloud.sdk.core.security.Authenticator authenticator)Constructs an instance of the `FirewallRules` client.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description com.ibm.cloud.sdk.core.http.ServiceCall<FirewallRulesResp>createFirewallRules(CreateFirewallRulesOptions createFirewallRulesOptions)Create firewall rules for a zone.com.ibm.cloud.sdk.core.http.ServiceCall<DeleteFirewallRuleResp>deleteFirewallRule(DeleteFirewallRuleOptions deleteFirewallRuleOptions)Delete a firewall rule.com.ibm.cloud.sdk.core.http.ServiceCall<DeleteFirewallRulesResp>deleteFirewallRules(DeleteFirewallRulesOptions deleteFirewallRulesOptions)Delete firewall rules.com.ibm.cloud.sdk.core.http.ServiceCall<FirewallRuleResp>getFirewallRule(GetFirewallRuleOptions getFirewallRuleOptions)Get firewall rule details by id.com.ibm.cloud.sdk.core.http.ServiceCall<ListFirewallRulesResp>listAllFirewallRules(ListAllFirewallRulesOptions listAllFirewallRulesOptions)List all firewall rules for a zone.static FirewallRulesnewInstance()Class method which constructs an instance of the `FirewallRules` client.static FirewallRulesnewInstance(String serviceName)Class method which constructs an instance of the `FirewallRules` client.com.ibm.cloud.sdk.core.http.ServiceCall<FirewallRuleResp>updateFirewallRule(UpdateFirewallRuleOptions updateFirewallRuleOptions)Update a firewall rule.com.ibm.cloud.sdk.core.http.ServiceCall<FirewallRulesResp>updateFirewllRules(UpdateFirewllRulesOptions updateFirewllRulesOptions)Update firewall rules.-
Methods inherited from class com.ibm.cloud.sdk.core.service.BaseService
configureClient, configureService, constructServiceUrl, constructServiceURL, disableRetries, enableGzipCompression, enableRetries, getAuthenticator, getClient, getDefaultHeaders, getEndPoint, getName, getServiceUrl, isJsonMimeType, isJsonPatchMimeType, setClient, setDefaultHeaders, setEndPoint, setServiceUrl, toString
-
-
-
-
Field Detail
-
DEFAULT_SERVICE_NAME
public static final String DEFAULT_SERVICE_NAME
- See Also:
- Constant Field Values
-
DEFAULT_SERVICE_URL
public static final String DEFAULT_SERVICE_URL
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
FirewallRules
public FirewallRules(String serviceName, com.ibm.cloud.sdk.core.security.Authenticator authenticator)
Constructs an instance of the `FirewallRules` client. The specified service name and authenticator are used to configure the client instance.- Parameters:
serviceName- the service name to be used when configuring the client instanceauthenticator- theAuthenticatorinstance to be configured for this client
-
-
Method Detail
-
newInstance
public static FirewallRules newInstance()
Class method which constructs an instance of the `FirewallRules` client. The default service name is used to configure the client instance.- Returns:
- an instance of the `FirewallRules` client using external configuration
-
newInstance
public static FirewallRules newInstance(String serviceName)
Class method which constructs an instance of the `FirewallRules` client. The specified service name is used to configure the client instance.- Parameters:
serviceName- the service name to be used when configuring the client instance- Returns:
- an instance of the `FirewallRules` client using external configuration
-
listAllFirewallRules
public com.ibm.cloud.sdk.core.http.ServiceCall<ListFirewallRulesResp> listAllFirewallRules(ListAllFirewallRulesOptions listAllFirewallRulesOptions)
List all firewall rules for a zone. List all firewall rules for a zone.- Parameters:
listAllFirewallRulesOptions- theListAllFirewallRulesOptionscontaining the options for the call- Returns:
- a
ServiceCallwith a result of typeListFirewallRulesResp
-
createFirewallRules
public com.ibm.cloud.sdk.core.http.ServiceCall<FirewallRulesResp> createFirewallRules(CreateFirewallRulesOptions createFirewallRulesOptions)
Create firewall rules for a zone. Create new firewall rules for a given zone under a service instance.- Parameters:
createFirewallRulesOptions- theCreateFirewallRulesOptionscontaining the options for the call- Returns:
- a
ServiceCallwith a result of typeFirewallRulesResp
-
updateFirewllRules
public com.ibm.cloud.sdk.core.http.ServiceCall<FirewallRulesResp> updateFirewllRules(UpdateFirewllRulesOptions updateFirewllRulesOptions)
Update firewall rules. Update existing firewall rules for a given zone under a given service instance.- Parameters:
updateFirewllRulesOptions- theUpdateFirewllRulesOptionscontaining the options for the call- Returns:
- a
ServiceCallwith a result of typeFirewallRulesResp
-
deleteFirewallRules
public com.ibm.cloud.sdk.core.http.ServiceCall<DeleteFirewallRulesResp> deleteFirewallRules(DeleteFirewallRulesOptions deleteFirewallRulesOptions)
Delete firewall rules. Delete firewall rules by filter ids.- Parameters:
deleteFirewallRulesOptions- theDeleteFirewallRulesOptionscontaining the options for the call- Returns:
- a
ServiceCallwith a result of typeDeleteFirewallRulesResp
-
deleteFirewallRule
public com.ibm.cloud.sdk.core.http.ServiceCall<DeleteFirewallRuleResp> deleteFirewallRule(DeleteFirewallRuleOptions deleteFirewallRuleOptions)
Delete a firewall rule. Delete a firewall rule given its id.- Parameters:
deleteFirewallRuleOptions- theDeleteFirewallRuleOptionscontaining the options for the call- Returns:
- a
ServiceCallwith a result of typeDeleteFirewallRuleResp
-
getFirewallRule
public com.ibm.cloud.sdk.core.http.ServiceCall<FirewallRuleResp> getFirewallRule(GetFirewallRuleOptions getFirewallRuleOptions)
Get firewall rule details by id. Get the details of a firewall rule for a given zone under a given service instance.- Parameters:
getFirewallRuleOptions- theGetFirewallRuleOptionscontaining the options for the call- Returns:
- a
ServiceCallwith a result of typeFirewallRuleResp
-
updateFirewallRule
public com.ibm.cloud.sdk.core.http.ServiceCall<FirewallRuleResp> updateFirewallRule(UpdateFirewallRuleOptions updateFirewallRuleOptions)
Update a firewall rule. Update an existing firewall rule for a given zone under a given service instance.- Parameters:
updateFirewallRuleOptions- theUpdateFirewallRuleOptionscontaining the options for the call- Returns:
- a
ServiceCallwith a result of typeFirewallRuleResp
-
-